![]() |
Eclipse SUMO - Simulation of Urban MObility
|
#include <GNEFrameAttributesModuls.h>
Public Member Functions | |
GenericParametersEditor (GNEFrame *frameParent) | |
FOX-declaration. More... | |
std::string | getGenericParametersStr () const |
get generic parameters as string More... | |
void | hideGenericParametersEditor () |
hide netedit attributes editor More... | |
void | refreshGenericParametersEditor () |
refresh netedit attributes More... | |
void | showGenericParametersEditor (GNEAttributeCarrier *AC) |
show netedit attributes editor (used for edit generic parameters of an existent AC) More... | |
void | showGenericParametersEditor (std::vector< GNEAttributeCarrier * > ACs) |
show netedit attributes editor (used for edit generic parameters of an existent list of AC) More... | |
~GenericParametersEditor () | |
destructor More... | |
FOX-callbacks | |
Called when user clicks over add generic parameter | |
long | onCmdEditGenericParameter (FXObject *, FXSelector, void *) |
long | onCmdSetGenericParameter (FXObject *, FXSelector, void *) |
Called when user udpate the generic parameter text field. More... | |
Protected Member Functions | |
GenericParametersEditor () | |
FOX needs this. More... | |
Private Attributes | |
GNEAttributeCarrier * | myAC |
edited Attribute Carrier More... | |
std::vector< GNEAttributeCarrier * > | myACs |
list of edited ACs More... | |
FXButton * | myEditGenericParameterButton |
button for add generic parameter More... | |
GNEFrame * | myFrameParent |
pointer to inspector frame parent More... | |
std::vector< std::pair< std::string, std::string > > * | myGenericParameters |
pointer to current vector of generic parameters More... | |
FXTextField * | myTextFieldGenericParameter |
text field for write generic parameter More... | |
Definition at line 398 of file GNEFrameAttributesModuls.h.
GNEFrameAttributesModuls::GenericParametersEditor::GenericParametersEditor | ( | GNEFrame * | frameParent | ) |
FOX-declaration.
constructor
Definition at line 1618 of file GNEFrameAttributesModuls.cpp.
References GUIDesignButton, GUIDesignTextField, GUIDesignTextFieldNCol, MID_GNE_SET_ATTRIBUTE, MID_GNE_SET_ATTRIBUTE_DIALOG, myEditGenericParameterButton, myGenericParameters, and myTextFieldGenericParameter.
GNEFrameAttributesModuls::GenericParametersEditor::~GenericParametersEditor | ( | ) |
destructor
Definition at line 1631 of file GNEFrameAttributesModuls.cpp.
|
inlineprotected |
FOX needs this.
Definition at line 435 of file GNEFrameAttributesModuls.h.
std::string GNEFrameAttributesModuls::GenericParametersEditor::getGenericParametersStr | ( | ) | const |
get generic parameters as string
Definition at line 1727 of file GNEFrameAttributesModuls.cpp.
void GNEFrameAttributesModuls::GenericParametersEditor::hideGenericParametersEditor | ( | ) |
hide netedit attributes editor
Definition at line 1681 of file GNEFrameAttributesModuls.cpp.
Referenced by GNEInspectorFrame::inspectMultisection().
long GNEFrameAttributesModuls::GenericParametersEditor::onCmdEditGenericParameter | ( | FXObject * | , |
FXSelector | , | ||
void * | |||
) |
Definition at line 1742 of file GNEFrameAttributesModuls.cpp.
References GNE_ATTR_GENERIC, and WRITE_DEBUG.
long GNEFrameAttributesModuls::GenericParametersEditor::onCmdSetGenericParameter | ( | FXObject * | , |
FXSelector | , | ||
void * | |||
) |
Called when user udpate the generic parameter text field.
Definition at line 1772 of file GNEFrameAttributesModuls.cpp.
References GNE_ATTR_GENERIC, StringTokenizer::hasNext(), GNEAttributeCarrier::isGenericParametersValid(), SUMOXMLDefinitions::isValidGenericParameterKey(), SUMOXMLDefinitions::isValidGenericParameterValue(), StringTokenizer::next(), and WRITE_WARNING.
void GNEFrameAttributesModuls::GenericParametersEditor::refreshGenericParametersEditor | ( | ) |
refresh netedit attributes
Definition at line 1689 of file GNEFrameAttributesModuls.cpp.
References GNE_ATTR_GENERIC, GNE_SUPERMODE_DEMAND, and GNE_SUPERMODE_NETWORK.
Referenced by GNEInspectorFrame::updateFrameAfterUndoRedo().
void GNEFrameAttributesModuls::GenericParametersEditor::showGenericParametersEditor | ( | GNEAttributeCarrier * | AC | ) |
show netedit attributes editor (used for edit generic parameters of an existent AC)
Definition at line 1637 of file GNEFrameAttributesModuls.cpp.
References GNEAttributeCarrier::getGenericParameters().
Referenced by GNEInspectorFrame::inspectMultisection().
void GNEFrameAttributesModuls::GenericParametersEditor::showGenericParametersEditor | ( | std::vector< GNEAttributeCarrier * > | ACs | ) |
show netedit attributes editor (used for edit generic parameters of an existent list of AC)
Definition at line 1654 of file GNEFrameAttributesModuls.cpp.
References GNE_ATTR_GENERIC.
|
private |
edited Attribute Carrier
Definition at line 442 of file GNEFrameAttributesModuls.h.
|
private |
list of edited ACs
Definition at line 445 of file GNEFrameAttributesModuls.h.
|
private |
button for add generic parameter
Definition at line 454 of file GNEFrameAttributesModuls.h.
Referenced by GenericParametersEditor().
|
private |
pointer to inspector frame parent
Definition at line 439 of file GNEFrameAttributesModuls.h.
|
private |
pointer to current vector of generic parameters
Definition at line 448 of file GNEFrameAttributesModuls.h.
Referenced by GenericParametersEditor().
|
private |
text field for write generic parameter
Definition at line 451 of file GNEFrameAttributesModuls.h.
Referenced by GenericParametersEditor().