67 void setParameters(
const std::vector<std::pair<std::string, std::string> >& newParameters);
70 void addParameter(std::pair<std::string, std::string> newParameter);
79 bool keyExist(
const std::string& key)
const;
84 long onPaint(FXObject* o, FXSelector f,
void* p);
113 void enableRow(
const std::string& parameter,
const std::string& value)
const;
270 long onCmdReset(FXObject*, FXSelector,
void*);
ParametersOperations * myParametersOperationsParent
pointer to ParametersOperations parent
~GNEParameterHandler()
Destructor.
void myStartElement(int element, const SUMOSAXAttributes &attrs)
Called on the opening of a tag;.
long onCmdLoadParameters(FXObject *, FXSelector, void *)
FXButton * mySortButton
sort button
long onCmdSortParameters(FXObject *, FXSelector, void *)
event when user press sort parameters button
long onCmdHelpParameter(FXObject *, FXSelector, void *)
event when user press help parameters button
FXButton * myClearButton
clear button
long onCmdSaveParameters(FXObject *, FXSelector, void *)
event when user press save parameters button
long onCmdClearParameters(FXObject *, FXSelector, void *)
event when user press clear parameters button
~ParametersOperations()
destructor
GNEMultipleParametersDialog * myParameterDialogParent
pointer to Shape Frame Parent
FXButton * myHelpButton
help button
FXButton * myLoadButton
load button
FXButton * mySaveButton
save button
FXCheckButton * myOnlyForExistentKeys
apply changes only for existent keys
bool onlyForExistentKeys() const
apply changes to all elements
~ParametersOptions()
destructor
FXButton * button
Button for add or remove row.
FXTextField * valueField
TextField for value.
void enableRow(const std::string ¶meter, const std::string &value) const
enable row
void copyValues(const ParameterRow &other)
copy values of other parameter Row
void toggleAddButton()
toggle add button
FXHorizontalFrame * horizontalFrame
frame in which elements of ParameterRow are placed
bool isButtonInAddMode() const
check if remove button is in mode "add"
void disableRow()
disable row
FXTextField * keyField
TextField for parameter.
~ParameterRow()
destructor
bool valueChanged
flag to check that parameter was changed
bool keyExist(const std::string &key) const
check if given key exist already
long onPaint(FXObject *o, FXSelector f, void *p)
FXVerticalFrame * myVerticalFrameRow
vertical frame in which rows are placed
void setParameters(const std::vector< std::pair< std::string, std::string > > &newParameters)
set parameters
const std::vector< ParameterRow * > getParameterRows() const
get vector with the ParameterRows
std::vector< ParameterRow * > myParameterRows
vector with the ParameterRows
long onCmdSetAttribute(FXObject *, FXSelector, void *)
event when user change an attribute
void addParameter(std::pair< std::string, std::string > newParameter)
add a single parameter
void clearParameters()
clear all parameters
FXLabel * myKeyLabel
label for key (its neccesary because has to be resized in every onPaint() iteration)
~ParametersValues()
destructor
long onCmdButtonPress(FXObject *, FXSelector, void *)
event when user press a remove (or add) button
Dialog for edit parameters.
ParametersOperations * myParametersOperations
pointer to parameters operations
~GNEMultipleParametersDialog()
destructor
long onCmdAccept(FXObject *, FXSelector, void *)
long onCmdCancel(FXObject *, FXSelector, void *)
event after press cancel button
FXButton * myCancelButton
cancel button
FXButton * myAcceptButton
accept button
GNEFrameAttributeModules::ParametersEditor * myParametersEditor
FOX need this.
ParametersOptions * myParametersOptions
pointer to parameters options
ParametersValues * myParametersValues
pointer to parameters values
long onCmdReset(FXObject *, FXSelector, void *)
event after press reset button
FXButton * myResetButton
cancel button
void constructor()
auxiliar constructor
Encapsulated SAX-Attributes.
SAX-handler base for SUMO-files.