![]() |
Eclipse SUMO - Simulation of Urban MObility
|
#include <MFXComboBoxTagProperty.h>
Public Types | |
| enum | { ID_LIST = FXPacker::ID_LAST , ID_TEXT , ID_SEARCH , ID_LAST } |
| FOX declaration. More... | |
Public Member Functions | |
| FXint | appendTagItem (const GNETagProperties *tagProperties, FXColor bgColor=FXRGB(255, 255, 255), void *ptr=nullptr) |
| append item | |
| void | clearItems () |
| Remove all items from the list. | |
| void | create () |
| Create server-side resources. | |
| void | destroy () |
| Destroy server-side resources. | |
| void | detach () |
| Detach server-side resources. | |
| void | disable () |
| Disable combo box. | |
| void | enable () |
| Enable combo box. | |
| FXint | findItem (const FXString &text) const |
| find item | |
| FXint | getCurrentItem () const |
| Get the current item's index. | |
| const GNETagProperties * | getCurrentTagProperty () const |
| get current tag property | |
| FXint | getDefaultHeight () |
| Return default height. | |
| FXint | getDefaultWidth () |
| Return default width. | |
| std::string | getItemText (FXint index) const |
| Get text for specified item. | |
| FXint | getNumItems () const |
| Return the number of items in the list. | |
| const GNETagProperties * | getTagProperties (FXint index) const |
| get tag properties | |
| FXString | getText () const |
| Get the text. | |
| FXColor | getTextColor () const |
| Return text color. | |
| const FXString & | getTipText () const |
| Get the tool tip message for this combobox. | |
| bool | hasTagProperty (const GNETagProperties *tagProperties) const |
| check if the comboBox has the given tag property | |
| FXbool | isItemCurrent (FXint index) const |
| Return true if current item. | |
| void | layout () |
| Perform layout. | |
| MFXComboBoxTagProperty (FXComposite *p, MFXStaticToolTip *staticToolTip, const bool canSearch, const int visibleItems, FXObject *tgt, FXSelector sel, FXuint opts, FXint x=0, FXint y=0, FXint w=0, FXint h=0, FXint pl=DEFAULT_PAD, FXint pr=DEFAULT_PAD, FXint pt=DEFAULT_PAD, FXint pb=DEFAULT_PAD) | |
| Construct a Combo Box widget with room to display cols columns of text. | |
| void | removeItem (FXint index) |
| Remove this item from the list. | |
| void | setBackColor (FXColor clr) |
| Set window background color. | |
| long | setCurrentItem (const FXint index, FXbool notify=FALSE) |
| Set the current item (index is zero-based). | |
| long | setCurrentItem (const FXString &text, FXbool notify=FALSE) |
| Set the current item. | |
| long | setCurrentItem (const GNETagProperties *tagProperties, FXbool notify=FALSE) |
| Set the current item. | |
| void | setNumVisible (FXint nvis) |
| Set the number of visible items in the drop down list. | |
| void | setText (const FXString &text, FXbool notify=FALSE) |
| Set the text in the textField. | |
| void | setTextColor (FXColor clr) |
| Change text color. | |
| void | setTipText (const FXString &txt) |
| Set the tool tip message for this combobox. | |
| ~MFXComboBoxTagProperty () | |
| Destructor. | |
| long | onFocusUp (FXObject *, FXSelector, void *) |
| Commands. | |
| long | onFocusDown (FXObject *, FXSelector, void *) |
| long | onFocusSelf (FXObject *, FXSelector, void *) |
| long | onMouseWheel (FXObject *, FXSelector, void *) |
| long | onTextButton (FXObject *, FXSelector, void *) |
| long | onTextChanged (FXObject *, FXSelector, void *) |
| long | onTextCommand (FXObject *, FXSelector, void *) |
| long | onListClicked (FXObject *, FXSelector, void *) |
| long | onFwdToText (FXObject *, FXSelector, void *) |
| long | onUpdFmText (FXObject *, FXSelector, void *) |
| long | onCmdFilter (FXObject *, FXSelector, void *) |
Protected Attributes | |
| FXMenuButton * | myButton = nullptr |
| myButton | |
| MFXListIcon * | myList = nullptr |
| list with all items | |
| FXLabel * | myNoItemsLabel = nullptr |
| no items label | |
| FXPopup * | myPane = nullptr |
| popup in which place search label and list | |
| MFXTextFieldIcon * | myTextFieldIcon = nullptr |
| textField icon | |
| MFXTextFieldSearch * | myTextFieldSearch = nullptr |
| text field search | |
Private Member Functions | |
| FXint | appendIconItem (const FXString &text, FXIcon *icon=nullptr, FXColor bgColor=FXRGB(255, 255, 255), void *ptr=nullptr)=delete |
| delete original append icon item in the last position | |
| FXint | insertIconItem (FXint index, const FXString &text, FXIcon *icon=nullptr, FXColor bgColor=FXRGB(255, 255, 255), void *ptr=nullptr)=delete |
| delete original insert icon item in the given position | |
| MFXComboBoxTagProperty (const MFXComboBoxTagProperty &)=delete | |
| invalidate copy constructor | |
| MFXComboBoxTagProperty & | operator= (const MFXComboBoxTagProperty &)=delete |
| invalidate assignment operator | |
| FXint | updateIconItem (FXint index, const FXString &text, FXIcon *icon=nullptr, FXColor bgColor=FXRGB(255, 255, 255), void *ptr=nullptr)=delete |
| delete original replace the item at index | |
Private Attributes | |
| std::vector< const GNETagProperties * > | myTagProperties |
| vector with tag properties | |
Definition at line 35 of file MFXComboBoxTagProperty.h.
|
inherited |
FOX declaration.
enum for ID
| Enumerator | |
|---|---|
| ID_LIST | |
| ID_TEXT | |
| ID_SEARCH | |
| ID_LAST | |
Definition at line 45 of file MFXComboBoxIcon.h.
| MFXComboBoxTagProperty::MFXComboBoxTagProperty | ( | FXComposite * | p, |
| MFXStaticToolTip * | staticToolTip, | ||
| const bool | canSearch, | ||
| const int | visibleItems, | ||
| FXObject * | tgt, | ||
| FXSelector | sel, | ||
| FXuint | opts, | ||
| FXint | x = 0, | ||
| FXint | y = 0, | ||
| FXint | w = 0, | ||
| FXint | h = 0, | ||
| FXint | pl = DEFAULT_PAD, | ||
| FXint | pr = DEFAULT_PAD, | ||
| FXint | pt = DEFAULT_PAD, | ||
| FXint | pb = DEFAULT_PAD ) |
Construct a Combo Box widget with room to display cols columns of text.
Definition at line 29 of file MFXComboBoxTagProperty.cpp.
References MFXComboBoxIcon::MFXComboBoxIcon().
Referenced by MFXComboBoxTagProperty(), and operator=().
| MFXComboBoxTagProperty::~MFXComboBoxTagProperty | ( | ) |
Destructor.
Definition at line 35 of file MFXComboBoxTagProperty.cpp.
|
privatedelete |
invalidate copy constructor
References MFXComboBoxTagProperty().
|
privatedelete |
delete original append icon item in the last position
| FXint MFXComboBoxTagProperty::appendTagItem | ( | const GNETagProperties * | tagProperties, |
| FXColor | bgColor = FXRGB(255, 255, 255), | ||
| void * | ptr = nullptr ) |
append item
Definition at line 39 of file MFXComboBoxTagProperty.cpp.
References MFXComboBoxIcon::appendIconItem(), GNETagProperties::getGUIIcon(), GUIIconSubSys::getIcon(), GNETagProperties::getSelectorText(), and myTagProperties.
|
virtual |
Remove all items from the list.
Reimplemented from MFXComboBoxIcon.
Definition at line 81 of file MFXComboBoxTagProperty.cpp.
References MFXComboBoxIcon::clearItems(), and myTagProperties.
|
inherited |
Create server-side resources.
Definition at line 114 of file MFXComboBoxIcon.cpp.
References myPane.
|
inherited |
Destroy server-side resources.
Definition at line 128 of file MFXComboBoxIcon.cpp.
References myPane.
|
inherited |
Detach server-side resources.
Definition at line 121 of file MFXComboBoxIcon.cpp.
References myPane.
|
inherited |
Disable combo box.
Definition at line 145 of file MFXComboBoxIcon.cpp.
References myButton, and myTextFieldIcon.
|
inherited |
Enable combo box.
Definition at line 135 of file MFXComboBoxIcon.cpp.
References myButton, and myTextFieldIcon.
|
inherited |
find item
Definition at line 326 of file MFXComboBoxIcon.cpp.
References myList.
Referenced by GUIApplicationWindow::eventOccurred(), and GUIApplicationWindow::handleEvent_SimulationLoaded().
|
inherited |
Get the current item's index.
Definition at line 255 of file MFXComboBoxIcon.cpp.
References myList.
Referenced by MFXComboBoxAttrProperty::getCurrentAttrProperty(), MFXComboBoxTagProperty::getCurrentTagProperty(), onFocusDown(), onFocusUp(), and onMouseWheel().
| const GNETagProperties * MFXComboBoxTagProperty::getCurrentTagProperty | ( | ) | const |
get current tag property
Definition at line 52 of file MFXComboBoxTagProperty.cpp.
References MFXComboBoxIcon::getCurrentItem(), and myTagProperties.
|
inherited |
Return default height.
Definition at line 163 of file MFXComboBoxIcon.cpp.
References myButton, and myTextFieldIcon.
|
inherited |
Return default width.
Definition at line 155 of file MFXComboBoxIcon.cpp.
References myButton, myPane, and myTextFieldIcon.
|
inherited |
|
inherited |
Return the number of items in the list.
Definition at line 194 of file MFXComboBoxIcon.cpp.
References myList.
Referenced by appendIconItem(), GNEViewNet::buildViewToolBars(), GUIViewTraffic::buildViewToolBars(), onFocusDown(), onFocusUp(), onMouseWheel(), setCurrentItem(), and updateIconItem().
| const GNETagProperties * MFXComboBoxTagProperty::getTagProperties | ( | FXint | index | ) | const |
get tag properties
Definition at line 46 of file MFXComboBoxTagProperty.cpp.
References myTagProperties.
|
inherited |
Get the text.
Definition at line 188 of file MFXComboBoxIcon.cpp.
References myTextFieldIcon.
Referenced by onListClicked().
|
inherited |
|
inherited |
Get the tool tip message for this combobox.
Definition at line 364 of file MFXComboBoxIcon.cpp.
References myTextFieldIcon.
| bool MFXComboBoxTagProperty::hasTagProperty | ( | const GNETagProperties * | tagProperties | ) | const |
check if the comboBox has the given tag property
Definition at line 63 of file MFXComboBoxTagProperty.cpp.
References myTagProperties.
|
privatedelete |
delete original insert icon item in the given position
|
inherited |
Return true if current item.
Definition at line 212 of file MFXComboBoxIcon.cpp.
References myList.
Referenced by appendIconItem(), insertIconItem(), and updateIconItem().
|
inherited |
Perform layout.
Definition at line 172 of file MFXComboBoxIcon.cpp.
References myButton, myNoItemsLabel, myPane, myTextFieldIcon, and myTextFieldSearch.
|
inherited |
Definition at line 376 of file MFXComboBoxIcon.cpp.
References myList, myNoItemsLabel, myPane, and myTextFieldSearch.
Referenced by FXDEFMAP().
|
inherited |
Definition at line 474 of file MFXComboBoxIcon.cpp.
References getCurrentItem(), getNumItems(), and setCurrentItem().
Referenced by FXDEFMAP().
|
inherited |
Definition at line 450 of file MFXComboBoxIcon.cpp.
References myTextFieldIcon.
Referenced by FXDEFMAP().
|
inherited |
Commands.
Definition at line 456 of file MFXComboBoxIcon.cpp.
References getCurrentItem(), getNumItems(), and setCurrentItem().
Referenced by FXDEFMAP().
|
inherited |
Definition at line 386 of file MFXComboBoxIcon.cpp.
References myTextFieldIcon.
Referenced by FXDEFMAP().
|
inherited |
Definition at line 392 of file MFXComboBoxIcon.cpp.
References MFXListIconItem::getBackGroundColor(), MFXListIconItem::getIcon(), getText(), MFXListIconItem::getText(), myButton, and myTextFieldIcon.
Referenced by FXDEFMAP().
|
inherited |
Definition at line 491 of file MFXComboBoxIcon.cpp.
References getCurrentItem(), getNumItems(), and setCurrentItem().
Referenced by FXDEFMAP().
|
inherited |
Definition at line 415 of file MFXComboBoxIcon.cpp.
References myButton.
Referenced by FXDEFMAP().
|
inherited |
Definition at line 426 of file MFXComboBoxIcon.cpp.
Referenced by FXDEFMAP().
|
inherited |
Definition at line 432 of file MFXComboBoxIcon.cpp.
References CANCEL, GUIIconSubSys::getIcon(), GUIDesignBackgroundColorWhite, myList, myTextFieldIcon, and setCurrentItem().
Referenced by FXDEFMAP().
|
inherited |
Definition at line 370 of file MFXComboBoxIcon.cpp.
References myPane.
Referenced by FXDEFMAP().
|
privatedelete |
invalidate assignment operator
References MFXComboBoxTagProperty().
|
inherited |
Remove this item from the list.
Definition at line 303 of file MFXComboBoxIcon.cpp.
References myList, and setCurrentItem().
|
inherited |
Set window background color.
Definition at line 338 of file MFXComboBoxIcon.cpp.
References myList, and myTextFieldIcon.
|
inherited |
Set the current item (index is zero-based).
Definition at line 218 of file MFXComboBoxIcon.cpp.
References MFXListIconItem::getBackGroundColor(), MFXListIconItem::getIcon(), getNumItems(), MFXListIconItem::getText(), myList, and myTextFieldIcon.
Referenced by GUISettingsHandler::addSettings(), GNEViewNet::buildViewToolBars(), GUIViewTraffic::buildViewToolBars(), GUIApplicationWindow::eventOccurred(), GUIPropertySchemeStorage< GUIColorScheme >::fill(), GUIApplicationWindow::handleEvent_SimulationLoaded(), onFocusDown(), onFocusUp(), onMouseWheel(), onTextCommand(), removeItem(), MFXComboBoxAttrProperty::setCurrentItem(), setCurrentItem(), and MFXComboBoxTagProperty::setCurrentItem().
|
inherited |
Set the current item.
Definition at line 241 of file MFXComboBoxIcon.cpp.
References myList, and setCurrentItem().
| long MFXComboBoxTagProperty::setCurrentItem | ( | const GNETagProperties * | tagProperties, |
| FXbool | notify = FALSE ) |
Set the current item.
Definition at line 69 of file MFXComboBoxTagProperty.cpp.
References myTagProperties, and MFXComboBoxIcon::setCurrentItem().
|
inherited |
Set the number of visible items in the drop down list.
Definition at line 200 of file MFXComboBoxIcon.cpp.
References myList.
|
inherited |
Set the text in the textField.
Definition at line 206 of file MFXComboBoxIcon.cpp.
References myTextFieldIcon.
|
inherited |
Change text color.
Definition at line 345 of file MFXComboBoxIcon.cpp.
References myList, and myTextFieldIcon.
|
inherited |
Set the tool tip message for this combobox.
Definition at line 358 of file MFXComboBoxIcon.cpp.
References myTextFieldIcon.
|
privatedelete |
delete original replace the item at index
|
protectedinherited |
myButton
Definition at line 170 of file MFXComboBoxIcon.h.
Referenced by disable(), enable(), getDefaultHeight(), getDefaultWidth(), layout(), MFXComboBoxIcon(), onListClicked(), onTextButton(), and ~MFXComboBoxIcon().
|
protectedinherited |
list with all items
Definition at line 173 of file MFXComboBoxIcon.h.
Referenced by appendIconItem(), clearItems(), findItem(), getCurrentItem(), getItemText(), getNumItems(), insertIconItem(), isItemCurrent(), MFXComboBoxIcon(), onCmdFilter(), onTextCommand(), removeItem(), setBackColor(), setCurrentItem(), setCurrentItem(), setNumVisible(), setTextColor(), updateIconItem(), and ~MFXComboBoxIcon().
|
protectedinherited |
no items label
Definition at line 182 of file MFXComboBoxIcon.h.
Referenced by layout(), MFXComboBoxIcon(), onCmdFilter(), and ~MFXComboBoxIcon().
|
protectedinherited |
popup in which place search label and list
Definition at line 179 of file MFXComboBoxIcon.h.
Referenced by create(), destroy(), detach(), getDefaultWidth(), layout(), MFXComboBoxIcon(), onCmdFilter(), onUpdFmText(), and ~MFXComboBoxIcon().
|
private |
vector with tag properties
Definition at line 66 of file MFXComboBoxTagProperty.h.
Referenced by appendTagItem(), clearItems(), getCurrentTagProperty(), getTagProperties(), hasTagProperty(), and setCurrentItem().
|
protectedinherited |
textField icon
Definition at line 167 of file MFXComboBoxIcon.h.
Referenced by appendIconItem(), clearItems(), disable(), enable(), getDefaultHeight(), getDefaultWidth(), getText(), getTextColor(), getTipText(), insertIconItem(), layout(), MFXComboBoxIcon(), onFocusSelf(), onFwdToText(), onListClicked(), onTextCommand(), setBackColor(), setCurrentItem(), setText(), setTextColor(), setTipText(), updateIconItem(), and ~MFXComboBoxIcon().
|
protectedinherited |
text field search
Definition at line 176 of file MFXComboBoxIcon.h.
Referenced by layout(), MFXComboBoxIcon(), onCmdFilter(), and ~MFXComboBoxIcon().