SUMO - Simulation of Urban MObility
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Modules Pages
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
Enumerator
ID_TEXT_CHANGED 
ID_LAST 

Definition at line 137 of file MFXAddEditTypedTable.h.

Constructor & Destructor Documentation

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 ( )

Definition at line 61 of file MFXAddEditTypedTable.cpp.

MFXAddEditTypedTable::MFXAddEditTypedTable ( )
inlineprotected

Definition at line 160 of file MFXAddEditTypedTable.h.

Member Function Documentation

void MFXAddEditTypedTable::acceptInput ( FXbool  notify)
protected
void MFXAddEditTypedTable::addEnum ( int  pos,
const std::string &  e 
)

Definition at line 619 of file MFXAddEditTypedTable.cpp.

References myEnums.

void MFXAddEditTypedTable::cancelInput ( )

Definition at line 281 of file MFXAddEditTypedTable.cpp.

Referenced by acceptInput().

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

Definition at line 629 of file MFXAddEditTypedTable.cpp.

References myEnums.

MFXAddEditTypedTable::NumberCellParams MFXAddEditTypedTable::getNumberCellParams ( int  pos) const
long MFXAddEditTypedTable::onClicked ( FXObject *  ,
FXSelector  ,
void *  ptr 
)

Definition at line 518 of file MFXAddEditTypedTable.cpp.

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

Definition at line 538 of file MFXAddEditTypedTable.cpp.

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

Definition at line 457 of file MFXAddEditTypedTable.cpp.

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

Definition at line 417 of file MFXAddEditTypedTable.cpp.

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().

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

Definition at line 609 of file MFXAddEditTypedTable.cpp.

References myEnums.

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

Field Documentation

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

Definition at line 155 of file MFXAddEditTypedTable.h.

Referenced by getCellType(), and setCellType().

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

Definition at line 157 of file MFXAddEditTypedTable.h.

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

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: