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-2018 German Aerospace Center (DLR) and others.
4 // This program and the accompanying materials
5 // are made available under the terms of the Eclipse Public License v2.0
6 // which accompanies this distribution, and is available at
7 // http://www.eclipse.org/legal/epl-v20.html
8 // SPDX-License-Identifier: EPL-2.0
9 /****************************************************************************/
15 // Dialog used to fix invalid stopping places
16 /****************************************************************************/
17 #ifndef GNEDialog_FixAdditionalPositions_h
18 #define GNEDialog_FixAdditionalPositions_h
19 
20 // ===========================================================================
21 // included modules
22 // ===========================================================================
23 
24 #include <config.h>
25 
26 #include <fx.h>
27 
28 // ===========================================================================
29 // class declarations
30 // ===========================================================================
31 class GNEStoppingPlace;
32 class GNEDetector;
33 class GNEViewNet;
34 
35 // ===========================================================================
36 // class definitions
37 // ===========================================================================
38 
43 class GNEDialog_FixAdditionalPositions : public FXDialogBox {
46 
47 public:
49  GNEDialog_FixAdditionalPositions(GNEViewNet* viewNet, const std::vector<GNEStoppingPlace*>& invalidStoppingPlaces, const std::vector<GNEDetector*>& invalidDetectors);
50 
53 
57  long onCmdSelectOption(FXObject* obj, FXSelector, void*);
58 
60  long onCmdAccept(FXObject*, FXSelector, void*);
61 
63  long onCmdCancel(FXObject*, FXSelector, void*);
65 
66 protected:
69 
72 
74  std::vector<GNEStoppingPlace*> myInvalidStoppingPlaces;
75 
77  std::vector<GNEDetector*> myInvalidDetectors;
78 
80  FXTable* myTable;
81 
83  FXRadioButton* myOptionA;
84 
86  FXRadioButton* myOptionB;
87 
89  FXRadioButton* myOptionC;
90 
92  FXRadioButton* myOptionD;
93 
95  FXButton* myAcceptButton;
96 
98  FXButton* myCancelButton;
99 
100 private:
103 
106 };
107 
108 #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 *)