SUMO - Simulation of Urban MObility
|
Dialog for edit calibrators. More...
#include <GNECalibratorDialog.h>
Public Member Functions | |
GNECalibratorDialog (GNECalibrator *calibratorParent) | |
FOX-declaration. More... | |
~GNECalibratorDialog () | |
FOX-callbacks | |
event called after press add row button | |
long | onCmdAddRow (FXObject *, FXSelector, void *) |
long | onCmdRemoveRow (FXObject *, FXSelector, void *) |
event called after press remove row More... | |
long | onCmdAccept (FXObject *, FXSelector, void *) |
event after press accept button More... | |
long | onCmdCancel (FXObject *, FXSelector, void *) |
event after press cancel button More... | |
long | onCmdReset (FXObject *, FXSelector, void *) |
event after press reset button More... | |
Protected Member Functions | |
GNECalibratorDialog () | |
FOX needs this. More... | |
Protected Attributes | |
FXButton * | myAcceptButton |
accept button More... | |
FXButton * | myAddRow |
Button for insert row. More... | |
GNECalibrator * | myCalibratorParent |
pointer to calibrator parent More... | |
FXButton * | myCancelButton |
cancel button More... | |
FXVerticalFrame * | myContentFrame |
frame for contents More... | |
FXTable * | myDataList |
Table with the data. More... | |
std::map< std::string, GNECalibrator::CalibratorFlow > | myFlowValues |
Map with the temporal FlowValues. More... | |
FXButton * | myResetButton |
cancel button More... | |
FXHorizontalFrame * | myRowFrame |
Horizontal frame for row elements. More... | |
FXTextField * | myTextFieldArrivalLane |
textField for insert a flow's ArrivalLane More... | |
FXTextField * | myTextFieldArrivalPos |
textField for insert a flow's ArrivalPos More... | |
FXTextField * | myTextFieldArrivalSpeed |
textField for insert a flow's ArrivalSpeed More... | |
FXTextField * | myTextFieldBegin |
textField for insert a flow's begin More... | |
FXTextField * | myTextFieldColor |
textField for insert a flow's color More... | |
FXTextField * | myTextFieldContainerNumber |
textField for insert a flow's ContainerNumber More... | |
FXTextField * | myTextFieldDepartLane |
textField for insert a flow's DepartLane More... | |
FXTextField * | myTextFieldDepartPos |
textField for insert a flow's DepartPos More... | |
FXTextField * | myTextFieldDepartSpeed |
textField for insert a flow's DepartSpeed More... | |
FXTextField * | myTextFieldEnd |
textField for insert a flow's end More... | |
FXTextField * | myTextFieldId |
textField for insert a flow's Id More... | |
FXTextField * | myTextFieldLine |
textField for insert a flow's Line More... | |
FXTextField * | myTextFieldNumber |
textField for insert a flow's number More... | |
FXTextField * | myTextFieldPeriod |
textField for insert a flow's period More... | |
FXTextField * | myTextFieldPersonNumber |
textField for insert a flow's PersonNumber More... | |
FXTextField * | myTextFieldProbability |
textField for insert a flow's probability More... | |
FXTextField * | myTextFieldRoute |
textField for insert a flow's Route More... | |
FXTextField * | myTextFieldType |
textField for insert a flow's Type More... | |
FXTextField * | myTextFieldVehsPerHour |
textField for insert a flow's vehsPerHour More... | |
Private Member Functions | |
GNECalibratorDialog (const GNECalibratorDialog &) | |
Invalidated copy constructor. More... | |
GNECalibratorDialog & | operator= (const GNECalibratorDialog &) |
Invalidated assignment operator. More... | |
void | updateTable () |
update data table More... | |
Dialog for edit calibrators.
Definition at line 44 of file GNECalibratorDialog.h.
GNECalibratorDialog::GNECalibratorDialog | ( | GNECalibrator * | calibratorParent | ) |
FOX-declaration.
Definition at line 60 of file GNECalibratorDialog.cpp.
References MID_GNE_CALIBRATOR_ADDROW, MID_GNE_CALIBRATOR_CHANGEVALUE, and MID_GNE_CALIBRATOR_REMOVEROW.
GNECalibratorDialog::~GNECalibratorDialog | ( | ) |
Definition at line 142 of file GNECalibratorDialog.cpp.
|
inlineprotected |
FOX needs this.
Definition at line 76 of file GNECalibratorDialog.h.
|
private |
Invalidated copy constructor.
|
virtual |
event after press accept button
Implements GNEAdditionalDialog.
Definition at line 256 of file GNECalibratorDialog.cpp.
References myCalibratorParent, myFlowValues, and GNECalibrator::setFlowValues().
long GNECalibratorDialog::onCmdAddRow | ( | FXObject * | , |
FXSelector | , | ||
void * | |||
) |
Definition at line 147 of file GNECalibratorDialog.cpp.
References TplConvert::_str2int(), TplCheck::_str2SUMOReal(), TplConvert::_str2SUMOReal(), GNECalibrator::CalibratorFlow::arrivalLane, GNECalibrator::CalibratorFlow::arrivalPos, GNECalibrator::CalibratorFlow::arrivalSpeed, GNECalibrator::CalibratorFlow::begin, GNECalibrator::CalibratorFlow::color, GNECalibrator::CalibratorFlow::containerNumber, GNECalibrator::CalibratorFlow::departLane, GNECalibrator::CalibratorFlow::departPos, GNECalibrator::CalibratorFlow::departSpeed, GNECalibrator::CalibratorFlow::end, GNECalibrator::CalibratorFlow::line, myFlowValues, myTextFieldArrivalLane, myTextFieldArrivalPos, myTextFieldArrivalSpeed, myTextFieldBegin, myTextFieldColor, myTextFieldContainerNumber, myTextFieldDepartLane, myTextFieldDepartPos, myTextFieldDepartSpeed, myTextFieldEnd, myTextFieldId, myTextFieldLine, myTextFieldNumber, myTextFieldPeriod, myTextFieldPersonNumber, myTextFieldProbability, myTextFieldRoute, myTextFieldType, myTextFieldVehsPerHour, GNECalibrator::CalibratorFlow::number, GNECalibrator::CalibratorFlow::period, GNECalibrator::CalibratorFlow::personNumber, GNECalibrator::CalibratorFlow::probability, GNECalibrator::CalibratorFlow::route, GNECalibrator::CalibratorFlow::type, updateTable(), and GNECalibrator::CalibratorFlow::vehsPerHour.
|
virtual |
event after press cancel button
Implements GNEAdditionalDialog.
Definition at line 266 of file GNECalibratorDialog.cpp.
long GNECalibratorDialog::onCmdRemoveRow | ( | FXObject * | , |
FXSelector | , | ||
void * | |||
) |
event called after press remove row
Definition at line 239 of file GNECalibratorDialog.cpp.
References myDataList, myFlowValues, and updateTable().
|
virtual |
event after press reset button
Implements GNEAdditionalDialog.
Definition at line 274 of file GNECalibratorDialog.cpp.
References GNECalibrator::getFlowValues(), myCalibratorParent, myFlowValues, and updateTable().
|
private |
Invalidated assignment operator.
|
privatevirtual |
update data table
Implements GNEAdditionalDialog.
Definition at line 284 of file GNECalibratorDialog.cpp.
References GUIIconSubSys::getIcon(), ICON_REMOVE, myDataList, myFlowValues, and toString().
Referenced by onCmdAddRow(), onCmdRemoveRow(), and onCmdReset().
|
protectedinherited |
accept button
Definition at line 81 of file GNEAdditionalDialog.h.
|
protected |
Button for insert row.
Definition at line 145 of file GNECalibratorDialog.h.
|
protected |
pointer to calibrator parent
Definition at line 79 of file GNECalibratorDialog.h.
Referenced by onCmdAccept(), and onCmdReset().
|
protectedinherited |
cancel button
Definition at line 84 of file GNEAdditionalDialog.h.
|
protectedinherited |
frame for contents
Definition at line 78 of file GNEAdditionalDialog.h.
|
protected |
Table with the data.
Definition at line 85 of file GNECalibratorDialog.h.
Referenced by onCmdRemoveRow(), and updateTable().
|
protected |
Map with the temporal FlowValues.
Definition at line 82 of file GNECalibratorDialog.h.
Referenced by onCmdAccept(), onCmdAddRow(), onCmdRemoveRow(), onCmdReset(), and updateTable().
|
protectedinherited |
cancel button
Definition at line 87 of file GNEAdditionalDialog.h.
|
protected |
Horizontal frame for row elements.
Definition at line 148 of file GNECalibratorDialog.h.
|
protected |
textField for insert a flow's ArrivalLane
Definition at line 115 of file GNECalibratorDialog.h.
Referenced by onCmdAddRow().
|
protected |
textField for insert a flow's ArrivalPos
Definition at line 118 of file GNECalibratorDialog.h.
Referenced by onCmdAddRow().
|
protected |
textField for insert a flow's ArrivalSpeed
Definition at line 121 of file GNECalibratorDialog.h.
Referenced by onCmdAddRow().
|
protected |
textField for insert a flow's begin
Definition at line 91 of file GNECalibratorDialog.h.
Referenced by onCmdAddRow().
|
protected |
textField for insert a flow's color
Definition at line 103 of file GNECalibratorDialog.h.
Referenced by onCmdAddRow().
|
protected |
textField for insert a flow's ContainerNumber
Definition at line 130 of file GNECalibratorDialog.h.
Referenced by onCmdAddRow().
|
protected |
textField for insert a flow's DepartLane
Definition at line 106 of file GNECalibratorDialog.h.
Referenced by onCmdAddRow().
|
protected |
textField for insert a flow's DepartPos
Definition at line 109 of file GNECalibratorDialog.h.
Referenced by onCmdAddRow().
|
protected |
textField for insert a flow's DepartSpeed
Definition at line 112 of file GNECalibratorDialog.h.
Referenced by onCmdAddRow().
|
protected |
textField for insert a flow's end
Definition at line 94 of file GNECalibratorDialog.h.
Referenced by onCmdAddRow().
|
protected |
textField for insert a flow's Id
Definition at line 88 of file GNECalibratorDialog.h.
Referenced by onCmdAddRow().
|
protected |
textField for insert a flow's Line
Definition at line 124 of file GNECalibratorDialog.h.
Referenced by onCmdAddRow().
|
protected |
textField for insert a flow's number
Definition at line 142 of file GNECalibratorDialog.h.
Referenced by onCmdAddRow().
|
protected |
textField for insert a flow's period
Definition at line 136 of file GNECalibratorDialog.h.
Referenced by onCmdAddRow().
|
protected |
textField for insert a flow's PersonNumber
Definition at line 127 of file GNECalibratorDialog.h.
Referenced by onCmdAddRow().
|
protected |
textField for insert a flow's probability
Definition at line 139 of file GNECalibratorDialog.h.
Referenced by onCmdAddRow().
|
protected |
textField for insert a flow's Route
Definition at line 100 of file GNECalibratorDialog.h.
Referenced by onCmdAddRow().
|
protected |
textField for insert a flow's Type
Definition at line 97 of file GNECalibratorDialog.h.
Referenced by onCmdAddRow().
|
protected |
textField for insert a flow's vehsPerHour
Definition at line 133 of file GNECalibratorDialog.h.
Referenced by onCmdAddRow().