SUMO - Simulation of Urban MObility
|
#include <MFXAddEditTypedTable.h>
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 > ¶ms) |
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< CellType > | myCellTypes |
std::vector< std::vector < std::string > > | myEnums |
std::vector< NumberCellParams > | myNumberCellParams |
Definition at line 49 of file MFXAddEditTypedTable.h.
anonymous enum |
Definition at line 137 of file MFXAddEditTypedTable.h.
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.
|
inlineprotected |
Definition at line 160 of file MFXAddEditTypedTable.h.
|
protected |
Definition at line 294 of file MFXAddEditTypedTable.cpp.
References cancelInput(), setItemFromControl(), and setItemFromControl_NoRelease().
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 |
Definition at line 559 of file MFXAddEditTypedTable.cpp.
References CT_UNDEFINED, and myCellTypes.
Referenced by getControlForItem(), setItemFromControl(), and setItemFromControl_NoRelease().
|
protectedvirtual |
Definition at line 202 of file MFXAddEditTypedTable.cpp.
References CT_BOOL, CT_ENUM, CT_INT, CT_REAL, CT_STRING, CT_UNDEFINED, MFXAddEditTypedTable::NumberCellParams::format, getCellType(), getNumberCellParams(), MFXAddEditTypedTable::NumberCellParams::max, MFXAddEditTypedTable::NumberCellParams::min, MFXAddEditTypedTable::NumberCellParams::steps1, MFXAddEditTypedTable::NumberCellParams::steps2, and MFXAddEditTypedTable::NumberCellParams::steps3.
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 |
Definition at line 599 of file MFXAddEditTypedTable.cpp.
References MFXAddEditTypedTable::NumberCellParams::format, and myNumberCellParams.
Referenced by getControlForItem().
Definition at line 520 of file MFXAddEditTypedTable.cpp.
Definition at line 540 of file MFXAddEditTypedTable.cpp.
Definition at line 459 of file MFXAddEditTypedTable.cpp.
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.
|
protectedvirtual |
Definition at line 325 of file MFXAddEditTypedTable.cpp.
References MFXAddEditTypedTable::EditedTableItem::col, CT_BOOL, CT_ENUM, CT_INT, CT_REAL, CT_STRING, CT_UNDEFINED, getCellType(), ID_TEXT_CHANGED, MFXAddEditTypedTable::EditedTableItem::item, MFXAddEditTypedTable::EditedTableItem::row, toString(), and MFXAddEditTypedTable::EditedTableItem::updateOnly.
Referenced by acceptInput().
|
protected |
Definition at line 380 of file MFXAddEditTypedTable.cpp.
References MFXAddEditTypedTable::EditedTableItem::col, CT_BOOL, CT_ENUM, CT_INT, CT_REAL, CT_STRING, CT_UNDEFINED, getCellType(), ID_TEXT_CHANGED, MFXAddEditTypedTable::EditedTableItem::item, MFXAddEditTypedTable::EditedTableItem::row, toString(), and MFXAddEditTypedTable::EditedTableItem::updateOnly.
Referenced by acceptInput().
void MFXAddEditTypedTable::setNumberCellParams | ( | size_t | pos, |
double | min, | ||
double | max, | ||
double | steps1, | ||
double | steps2, | ||
double | steps3, | ||
const std::string & | format | ||
) |
Definition at line 576 of file MFXAddEditTypedTable.cpp.
References MFXAddEditTypedTable::NumberCellParams::format, MFXAddEditTypedTable::NumberCellParams::max, max, MFXAddEditTypedTable::NumberCellParams::min, min, myNumberCellParams, MFXAddEditTypedTable::NumberCellParams::pos, MFXAddEditTypedTable::NumberCellParams::steps1, MFXAddEditTypedTable::NumberCellParams::steps2, and MFXAddEditTypedTable::NumberCellParams::steps3.
Referenced by GUIDialog_ViewSettings::rebuildColorMatrices().
|
protected |
Definition at line 155 of file MFXAddEditTypedTable.h.
Referenced by getCellType(), and setCellType().
|
protected |
Definition at line 157 of file MFXAddEditTypedTable.h.
Referenced by addEnum(), getEnums(), and setEnums().
|
protected |
Definition at line 156 of file MFXAddEditTypedTable.h.
Referenced by getNumberCellParams(), and setNumberCellParams().