SUMO - Simulation of Urban MObility
GNECalibratorDialog Class Reference

Dialog for edit calibrators. More...

#include <GNECalibratorDialog.h>

Inheritance diagram for GNECalibratorDialog:
Inheritance graph
Collaboration diagram for GNECalibratorDialog:
Collaboration graph

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

void execute ()
 Invalidated execute dialog for external calls. More...
 
 GNECalibratorDialog ()
 FOX needs this. More...
 
void hide ()
 Invalidated show dialog for external calls. More...
 
void show ()
 Invalidated show dialog for external calls. More...
 

Protected Attributes

FXButton * myAcceptButton
 accept button More...
 
FXButton * myAddRow
 Button for insert row. More...
 
GNECalibratormyCalibratorParent
 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::CalibratorFlowmyFlowValues
 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...
 
GNECalibratorDialogoperator= (const GNECalibratorDialog &)
 Invalidated assignment operator. More...
 
void updateTable ()
 update data table More...
 

Detailed Description

Dialog for edit calibrators.

Definition at line 44 of file GNECalibratorDialog.h.

Constructor & Destructor Documentation

GNECalibratorDialog::GNECalibratorDialog ( GNECalibrator calibratorParent)
GNECalibratorDialog::~GNECalibratorDialog ( )

Definition at line 142 of file GNECalibratorDialog.cpp.

GNECalibratorDialog::GNECalibratorDialog ( )
inlineprotected

FOX needs this.

Definition at line 76 of file GNECalibratorDialog.h.

GNECalibratorDialog::GNECalibratorDialog ( const GNECalibratorDialog )
private

Invalidated copy constructor.

Member Function Documentation

void GNEAdditionalDialog::execute ( )
protectedinherited

Invalidated execute dialog for external calls.

Definition at line 88 of file GNEAdditionalDialog.cpp.

Referenced by GNEAdditionalDialog::GNEAdditionalDialog().

void GNEAdditionalDialog::hide ( )
protectedinherited

Invalidated show dialog for external calls.

Definition at line 82 of file GNEAdditionalDialog.cpp.

Referenced by GNEAdditionalDialog::GNEAdditionalDialog().

long GNECalibratorDialog::onCmdAccept ( FXObject *  ,
FXSelector  ,
void *   
)
virtual

event after press accept button

Implements GNEAdditionalDialog.

Definition at line 256 of file GNECalibratorDialog.cpp.

References myCalibratorParent, myFlowValues, and GNECalibrator::setFlowValues().

long GNECalibratorDialog::onCmdCancel ( FXObject *  ,
FXSelector  ,
void *   
)
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().

long GNECalibratorDialog::onCmdReset ( FXObject *  ,
FXSelector  ,
void *   
)
virtual

event after press reset button

Implements GNEAdditionalDialog.

Definition at line 274 of file GNECalibratorDialog.cpp.

References GNECalibrator::getFlowValues(), myCalibratorParent, myFlowValues, and updateTable().

GNECalibratorDialog& GNECalibratorDialog::operator= ( const GNECalibratorDialog )
private

Invalidated assignment operator.

void GNEAdditionalDialog::show ( )
protectedinherited

Invalidated show dialog for external calls.

Definition at line 76 of file GNEAdditionalDialog.cpp.

Referenced by GNEAdditionalDialog::GNEAdditionalDialog().

void GNECalibratorDialog::updateTable ( )
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().

Field Documentation

FXButton* GNEAdditionalDialog::myAcceptButton
protectedinherited

accept button

Definition at line 90 of file GNEAdditionalDialog.h.

FXButton* GNECalibratorDialog::myAddRow
protected

Button for insert row.

Definition at line 145 of file GNECalibratorDialog.h.

GNECalibrator* GNECalibratorDialog::myCalibratorParent
protected

pointer to calibrator parent

Definition at line 79 of file GNECalibratorDialog.h.

Referenced by onCmdAccept(), and onCmdReset().

FXButton* GNEAdditionalDialog::myCancelButton
protectedinherited

cancel button

Definition at line 93 of file GNEAdditionalDialog.h.

FXVerticalFrame* GNEAdditionalDialog::myContentFrame
protectedinherited

frame for contents

Definition at line 87 of file GNEAdditionalDialog.h.

FXTable* GNECalibratorDialog::myDataList
protected

Table with the data.

Definition at line 85 of file GNECalibratorDialog.h.

Referenced by onCmdRemoveRow(), and updateTable().

std::map<std::string, GNECalibrator::CalibratorFlow> GNECalibratorDialog::myFlowValues
protected

Map with the temporal FlowValues.

Definition at line 82 of file GNECalibratorDialog.h.

Referenced by onCmdAccept(), onCmdAddRow(), onCmdRemoveRow(), onCmdReset(), and updateTable().

FXButton* GNEAdditionalDialog::myResetButton
protectedinherited

cancel button

Definition at line 96 of file GNEAdditionalDialog.h.

FXHorizontalFrame* GNECalibratorDialog::myRowFrame
protected

Horizontal frame for row elements.

Definition at line 148 of file GNECalibratorDialog.h.

FXTextField* GNECalibratorDialog::myTextFieldArrivalLane
protected

textField for insert a flow's ArrivalLane

Definition at line 115 of file GNECalibratorDialog.h.

Referenced by onCmdAddRow().

FXTextField* GNECalibratorDialog::myTextFieldArrivalPos
protected

textField for insert a flow's ArrivalPos

Definition at line 118 of file GNECalibratorDialog.h.

Referenced by onCmdAddRow().

FXTextField* GNECalibratorDialog::myTextFieldArrivalSpeed
protected

textField for insert a flow's ArrivalSpeed

Definition at line 121 of file GNECalibratorDialog.h.

Referenced by onCmdAddRow().

FXTextField* GNECalibratorDialog::myTextFieldBegin
protected

textField for insert a flow's begin

Definition at line 91 of file GNECalibratorDialog.h.

Referenced by onCmdAddRow().

FXTextField* GNECalibratorDialog::myTextFieldColor
protected

textField for insert a flow's color

Definition at line 103 of file GNECalibratorDialog.h.

Referenced by onCmdAddRow().

FXTextField* GNECalibratorDialog::myTextFieldContainerNumber
protected

textField for insert a flow's ContainerNumber

Definition at line 130 of file GNECalibratorDialog.h.

Referenced by onCmdAddRow().

FXTextField* GNECalibratorDialog::myTextFieldDepartLane
protected

textField for insert a flow's DepartLane

Definition at line 106 of file GNECalibratorDialog.h.

Referenced by onCmdAddRow().

FXTextField* GNECalibratorDialog::myTextFieldDepartPos
protected

textField for insert a flow's DepartPos

Definition at line 109 of file GNECalibratorDialog.h.

Referenced by onCmdAddRow().

FXTextField* GNECalibratorDialog::myTextFieldDepartSpeed
protected

textField for insert a flow's DepartSpeed

Definition at line 112 of file GNECalibratorDialog.h.

Referenced by onCmdAddRow().

FXTextField* GNECalibratorDialog::myTextFieldEnd
protected

textField for insert a flow's end

Definition at line 94 of file GNECalibratorDialog.h.

Referenced by onCmdAddRow().

FXTextField* GNECalibratorDialog::myTextFieldId
protected

textField for insert a flow's Id

Definition at line 88 of file GNECalibratorDialog.h.

Referenced by onCmdAddRow().

FXTextField* GNECalibratorDialog::myTextFieldLine
protected

textField for insert a flow's Line

Definition at line 124 of file GNECalibratorDialog.h.

Referenced by onCmdAddRow().

FXTextField* GNECalibratorDialog::myTextFieldNumber
protected

textField for insert a flow's number

Definition at line 142 of file GNECalibratorDialog.h.

Referenced by onCmdAddRow().

FXTextField* GNECalibratorDialog::myTextFieldPeriod
protected

textField for insert a flow's period

Definition at line 136 of file GNECalibratorDialog.h.

Referenced by onCmdAddRow().

FXTextField* GNECalibratorDialog::myTextFieldPersonNumber
protected

textField for insert a flow's PersonNumber

Definition at line 127 of file GNECalibratorDialog.h.

Referenced by onCmdAddRow().

FXTextField* GNECalibratorDialog::myTextFieldProbability
protected

textField for insert a flow's probability

Definition at line 139 of file GNECalibratorDialog.h.

Referenced by onCmdAddRow().

FXTextField* GNECalibratorDialog::myTextFieldRoute
protected

textField for insert a flow's Route

Definition at line 100 of file GNECalibratorDialog.h.

Referenced by onCmdAddRow().

FXTextField* GNECalibratorDialog::myTextFieldType
protected

textField for insert a flow's Type

Definition at line 97 of file GNECalibratorDialog.h.

Referenced by onCmdAddRow().

FXTextField* GNECalibratorDialog::myTextFieldVehsPerHour
protected

textField for insert a flow's vehsPerHour

Definition at line 133 of file GNECalibratorDialog.h.

Referenced by onCmdAddRow().


The documentation for this class was generated from the following files: