SUMO - Simulation of Urban MObility
GNEDialog_FixAdditionalPositions.h
Go to the documentation of this file.
1 /****************************************************************************/
2 // Eclipse SUMO, Simulation of Urban MObility; see https://eclipse.org/sumo
3 // Copyright (C) 2001-2017 German Aerospace Center (DLR) and others.
4 /****************************************************************************/
5 //
6 // This program and the accompanying materials
7 // are made available under the terms of the Eclipse Public License v2.0
8 // which accompanies this distribution, and is available at
9 // http://www.eclipse.org/legal/epl-v20.html
10 //
11 /****************************************************************************/
17 // Dialog used to fix invalid stopping places
18 /****************************************************************************/
19 #ifndef GNEDialog_FixAdditionalPositions_h
20 #define GNEDialog_FixAdditionalPositions_h
21 
22 // ===========================================================================
23 // included modules
24 // ===========================================================================
25 
26 #ifdef _MSC_VER
27 #include <windows_config.h>
28 #else
29 #include <config.h>
30 #endif
31 
32 #include <fx.h>
33 
34 // ===========================================================================
35 // class declarations
36 // ===========================================================================
37 class GNEStoppingPlace;
38 class GNEDetector;
39 class GNEViewNet;
40 
41 // ===========================================================================
42 // class definitions
43 // ===========================================================================
44 
49 class GNEDialog_FixAdditionalPositions : public FXDialogBox {
52 
53 public:
55  GNEDialog_FixAdditionalPositions(GNEViewNet* viewNet, const std::vector<GNEStoppingPlace*>& invalidStoppingPlaces, const std::vector<GNEDetector*>& invalidDetectors);
56 
59 
63  long onCmdSelectOption(FXObject* obj, FXSelector, void*);
64 
66  long onCmdAccept(FXObject*, FXSelector, void*);
67 
69  long onCmdCancel(FXObject*, FXSelector, void*);
71 
72 protected:
75 
78 
80  std::vector<GNEStoppingPlace*> myInvalidStoppingPlaces;
81 
83  std::vector<GNEDetector*> myInvalidDetectors;
84 
86  FXTable* myTable;
87 
89  FXRadioButton* myOptionA;
90 
92  FXRadioButton* myOptionB;
93 
95  FXRadioButton* myOptionC;
96 
98  FXRadioButton* myOptionD;
99 
101  FXButton* myAcceptButton;
102 
104  FXButton* myCancelButton;
105 
106 private:
109 
112 };
113 
114 #endif
FXRadioButton * myOptionD
Option "Select invalid stops and cancel".
FXRadioButton * myOptionA
Option "Activate friendlyPos and save".
long onCmdAccept(FXObject *, FXSelector, void *)
event after press accept button
FXRadioButton * myOptionC
Option "Save invalid".
std::vector< GNEStoppingPlace * > myInvalidStoppingPlaces
vector with the invalid stoppingplaces
FXTable * myTable
list with the stoppingPlaces and detectors
FXRadioButton * myOptionB
Option "Fix Positions and save".
std::vector< GNEDetector * > myInvalidDetectors
vector with the invalid stoppingplaces
GNEDialog_FixAdditionalPositions & operator=(const GNEDialog_FixAdditionalPositions &)=delete
Invalidated assignment operator.
long onCmdCancel(FXObject *, FXSelector, void *)
event after press cancel button
long onCmdSelectOption(FXObject *obj, FXSelector, void *)