SUMO - Simulation of Urban MObility
MFXAddEditTypedTable Class Reference

#include <MFXAddEditTypedTable.h>

Inheritance diagram for MFXAddEditTypedTable:
Inheritance graph
Collaboration diagram for MFXAddEditTypedTable:
Collaboration graph

Data Structures

struct  EditedTableItem
 
struct  NumberCellParams
 

Public Types

enum  { ID_TEXT_CHANGED = FXTable::ID_LAST, ID_LAST }
 

Public Member Functions

void addEnum (int pos, const std::string &e)
 
void cancelInput ()
 
CellType getCellType (int pos) const
 
const std::vector< std::string > & getEnums (int pos) const
 
NumberCellParams getNumberCellParams (int pos) const
 
 MFXAddEditTypedTable (FXComposite *p, FXObject *tgt=NULL, FXSelector sel=0, FXuint opts=0, FXint x=0, FXint y=0, FXint w=0, FXint h=0, FXint pl=DEFAULT_MARGIN, FXint pr=DEFAULT_MARGIN, FXint pt=DEFAULT_MARGIN, FXint pb=DEFAULT_MARGIN)
 
long onClicked (FXObject *, FXSelector, void *ptr)
 
long onDoubleClicked (FXObject *, FXSelector, void *ptr)
 
long onLeftBtnPress (FXObject *, FXSelector, void *ptr)
 
long onLeftBtnRelease (FXObject *, FXSelector, void *ptr)
 
void setCellType (int pos, CellType t)
 
void setEnums (int pos, const std::vector< std::string > &params)
 
void setNumberCellParams (int pos, double min, double max, double steps1, double steps2, double steps3, const std::string &format)
 
 ~MFXAddEditTypedTable ()
 

Protected Member Functions

void acceptInput (FXbool notify)
 
virtual FXWindow * getControlForItem (FXint r, FXint c)
 
 MFXAddEditTypedTable ()
 
virtual void setItemFromControl (FXint r, FXint c, FXWindow *control)
 
void setItemFromControl_NoRelease (FXint r, FXint c, FXWindow *control)
 

Protected Attributes

std::vector< CellTypemyCellTypes
 
std::vector< std::vector< std::string > > myEnums
 
std::vector< NumberCellParamsmyNumberCellParams
 

Detailed Description

Definition at line 49 of file MFXAddEditTypedTable.h.

Member Enumeration Documentation

§ anonymous enum

anonymous enum
Enumerator
ID_TEXT_CHANGED 
ID_LAST 

Definition at line 137 of file MFXAddEditTypedTable.h.

Constructor & Destructor Documentation

§ MFXAddEditTypedTable() [1/2]

MFXAddEditTypedTable::MFXAddEditTypedTable ( FXComposite *  p,
FXObject *  tgt = NULL,
FXSelector  sel = 0,
FXuint  opts = 0,
FXint  x = 0,
FXint  y = 0,
FXint  w = 0,
FXint  h = 0,
FXint  pl = DEFAULT_MARGIN,
FXint  pr = DEFAULT_MARGIN,
FXint  pt = DEFAULT_MARGIN,
FXint  pb = DEFAULT_MARGIN 
)

Definition at line 54 of file MFXAddEditTypedTable.cpp.

§ ~MFXAddEditTypedTable()

MFXAddEditTypedTable::~MFXAddEditTypedTable ( )

Definition at line 61 of file MFXAddEditTypedTable.cpp.

§ MFXAddEditTypedTable() [2/2]

MFXAddEditTypedTable::MFXAddEditTypedTable ( )
inlineprotected

Definition at line 160 of file MFXAddEditTypedTable.h.

Member Function Documentation

§ acceptInput()

void MFXAddEditTypedTable::acceptInput ( FXbool  notify)
protected

§ addEnum()

void MFXAddEditTypedTable::addEnum ( int  pos,
const std::string &  e 
)

Definition at line 619 of file MFXAddEditTypedTable.cpp.

References myEnums.

§ cancelInput()

void MFXAddEditTypedTable::cancelInput ( )

Definition at line 281 of file MFXAddEditTypedTable.cpp.

Referenced by acceptInput().

§ getCellType()

CellType MFXAddEditTypedTable::getCellType ( int  pos) const

§ getControlForItem()

§ getEnums()

const std::vector< std::string > & MFXAddEditTypedTable::getEnums ( int  pos) const

Definition at line 629 of file MFXAddEditTypedTable.cpp.

References myEnums.

§ getNumberCellParams()

MFXAddEditTypedTable::NumberCellParams MFXAddEditTypedTable::getNumberCellParams ( int  pos) const

§ onClicked()

long MFXAddEditTypedTable::onClicked ( FXObject *  ,
FXSelector  ,
void *  ptr 
)

Definition at line 518 of file MFXAddEditTypedTable.cpp.

§ onDoubleClicked()

long MFXAddEditTypedTable::onDoubleClicked ( FXObject *  ,
FXSelector  ,
void *  ptr 
)

Definition at line 538 of file MFXAddEditTypedTable.cpp.

§ onLeftBtnPress()

long MFXAddEditTypedTable::onLeftBtnPress ( FXObject *  ,
FXSelector  ,
void *  ptr 
)

Definition at line 457 of file MFXAddEditTypedTable.cpp.

§ onLeftBtnRelease()

long MFXAddEditTypedTable::onLeftBtnRelease ( FXObject *  ,
FXSelector  ,
void *  ptr 
)

Definition at line 417 of file MFXAddEditTypedTable.cpp.

§ setCellType()

void MFXAddEditTypedTable::setCellType ( int  pos,
CellType  t 
)

Definition at line 566 of file MFXAddEditTypedTable.cpp.

References CT_UNDEFINED, and myCellTypes.

Referenced by GUIDialog_ViewSettings::rebuildColorMatrices().

§ setEnums()

void MFXAddEditTypedTable::setEnums ( int  pos,
const std::vector< std::string > &  params 
)

Definition at line 609 of file MFXAddEditTypedTable.cpp.

References myEnums.

§ setItemFromControl()

§ setItemFromControl_NoRelease()

void MFXAddEditTypedTable::setItemFromControl_NoRelease ( FXint  r,
FXint  c,
FXWindow *  control 
)
protected

§ setNumberCellParams()

Field Documentation

§ myCellTypes

std::vector<CellType> MFXAddEditTypedTable::myCellTypes
protected

Definition at line 155 of file MFXAddEditTypedTable.h.

Referenced by getCellType(), and setCellType().

§ myEnums

std::vector<std::vector<std::string> > MFXAddEditTypedTable::myEnums
protected

Definition at line 157 of file MFXAddEditTypedTable.h.

Referenced by addEnum(), getEnums(), and setEnums().

§ myNumberCellParams

std::vector<NumberCellParams> MFXAddEditTypedTable::myNumberCellParams
protected

Definition at line 156 of file MFXAddEditTypedTable.h.

Referenced by getNumberCellParams(), and setNumberCellParams().


The documentation for this class was generated from the following files: