SUMO - Simulation of Urban MObility
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
MFXAddEditTypedTable Class Reference

#include <MFXAddEditTypedTable.h>

Inheritance diagram for MFXAddEditTypedTable:
FXTable

Data Structures

struct  EditedTableItem
struct  NumberCellParams

Public Types

enum  { ID_TEXT_CHANGED = FXTable::ID_LAST, ID_LAST }

Public Member Functions

void addEnum (size_t pos, const std::string &e)
void cancelInput ()
CellType getCellType (size_t pos) const
const std::vector< std::string > & getEnums (size_t pos) const
NumberCellParams getNumberCellParams (size_t 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 (size_t pos, CellType t)
void setEnums (size_t pos, const std::vector< std::string > &params)
void setNumberCellParams (size_t 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 ( size_t  pos,
const std::string &  e 
)

Definition at line 621 of file MFXAddEditTypedTable.cpp.

References myEnums.

void MFXAddEditTypedTable::cancelInput ( )

Definition at line 281 of file MFXAddEditTypedTable.cpp.

Referenced by acceptInput().

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

Definition at line 631 of file MFXAddEditTypedTable.cpp.

References myEnums.

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

Definition at line 520 of file MFXAddEditTypedTable.cpp.

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

Definition at line 540 of file MFXAddEditTypedTable.cpp.

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

Definition at line 459 of file MFXAddEditTypedTable.cpp.

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

Definition at line 419 of file MFXAddEditTypedTable.cpp.

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

Definition at line 568 of file MFXAddEditTypedTable.cpp.

References CT_UNDEFINED, and myCellTypes.

Referenced by GUIDialog_ViewSettings::rebuildColorMatrices().

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

Definition at line 611 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: