79 if (infoB.size() > 0) {
116 insertElement(route);
122 return removeElement(route);
151 insertElement(vType);
157 return removeElement(vType);
179 myRoutesList(routesList),
180 myVTypesList(vTypesList) {
192 if (myVTypesList->getEditedElements().size() > 0) {
193 vType = myVTypesList->getEditedElements().back();
199 if (myVTypesList->getEditedElements().size() > 0) {
200 route = myVTypesList->getEditedElements().back();
205 if (route && vType) {
209 insertElement(calibratorFlow);
215 return removeElement(calibratorFlow);
#define GUIDesignUniformHorizontalFrame
design for horizontal frame used to pack another frames with a uniform width
#define GUIDesignAuxiliarFrame
design for auxiliar (Without borders) frame extended in all directions
@ SUMO_TAG_VTYPE
description of a vehicle/person/container type
@ SUMO_TAG_ROUTE
description of a route
@ GNE_TAG_CALIBRATOR_FLOW
a flow definition within in Calibrator
std::string toString(const T &t, std::streamsize accuracy=gPrecision)
const std::string getID() const
get ID (all Attribute Carriers have one)
const std::string & getTagStr() const
get tag assigned to this object in string format
GNENet * getNet() const
get pointer to net
long openElementDialog(const size_t rowIndex)
open element dialog
long addNewElement()
add new element
CalibratorFlowsList(GNECalibratorDialog *rerouterDialog, FXVerticalFrame *contentFrame, RoutesList *routesList, VTypesList *vTypesList)
constructor
RoutesList(GNECalibratorDialog *rerouterDialog, FXVerticalFrame *contentFrame)
constructor
long addNewElement()
add new element
long openElementDialog(const size_t rowIndex)
open element dialog
long openElementDialog(const size_t rowIndex)
open element dialog
VTypesList(GNECalibratorDialog *rerouterDialog, FXVerticalFrame *contentFrame)
constructor
long addNewElement()
add new element
long onCmdReset(FXObject *, FXSelector, void *)
event after press reset button
RoutesList * myRoutes
list with routes
long onCmdAccept(FXObject *, FXSelector, void *)
event after press accept button
VTypesList * myVTypes
list with vTypes
CalibratorFlowsList * myCalibratorFlows
list with calibrator flows
~GNECalibratorDialog()
destructor
GNECalibratorDialog(GNEAdditional *calibrator)
Constructor.
void runInternalTest(const InternalTestStep::DialogArgument *dialogArgument)
run internal test
FXVerticalFrame * myContentFrame
content frame
void openDialog(FXWindow *focusableElement=nullptr)
open dialog
void disableList(const std::string &reason)
disable list
bool isListValid() const
check if the current list is valid
const std::unordered_map< SumoXMLTag, std::unordered_map< const GUIGlObject *, GNEDemandElement * >, std::hash< int > > & getDemandElements() const
get demand elements
GNENetHelper::AttributeCarriers * getAttributeCarriers() const
get all attribute carriers used in this net
GNEViewNet * getViewNet() const
get view net
GNEAdditional * myElement
pointer to edited element
T * getElement() const
get edited element
void resetChanges()
reset changes did in this dialog.
long acceptElementDialog()
close dialog commiting changes
long updateList()
update element list
GNEViewParent * getViewParent() const
get the net object
GNEApplicationWindow * getGNEAppWindows() const
get GNE Application Windows
dialog arguments, used for certain modal dialogs that can not be edited using tab