SUMO - Simulation of Urban MObility
GNEDialog_FixAdditionalPositions.h
Go to the documentation of this file.
1 /****************************************************************************/
7 // Dialog used to fix invalid stopping places
8 /****************************************************************************/
9 // SUMO, Simulation of Urban MObility; see http://sumo.dlr.de/
10 // Copyright (C) 2001-2017 DLR (http://www.dlr.de/) and contributors
11 /****************************************************************************/
12 //
13 // This file is part of SUMO.
14 // SUMO is free software: you can redistribute it and/or modify
15 // it under the terms of the GNU General Public License as published by
16 // the Free Software Foundation, either version 3 of the License, or
17 // (at your option) any later version.
18 //
19 /****************************************************************************/
20 #ifndef GNEDialog_FixAdditionalPositions_h
21 #define GNEDialog_FixAdditionalPositions_h
22 
23 // ===========================================================================
24 // included modules
25 // ===========================================================================
26 
27 #ifdef _MSC_VER
28 #include <windows_config.h>
29 #else
30 #include <config.h>
31 #endif
32 
33 #include <fx.h>
34 
35 // ===========================================================================
36 // class declarations
37 // ===========================================================================
38 class GNEStoppingPlace;
39 class GNEDetector;
40 class GNEViewNet;
41 
42 // ===========================================================================
43 // class definitions
44 // ===========================================================================
45 
50 class GNEDialog_FixAdditionalPositions : public FXDialogBox {
53 
54 public:
56  GNEDialog_FixAdditionalPositions(GNEViewNet* viewNet, const std::vector<GNEStoppingPlace*>& invalidStoppingPlaces, const std::vector<GNEDetector*>& invalidDetectors);
57 
60 
64  long onCmdSelectOption(FXObject* obj, FXSelector, void*);
65 
67  long onCmdAccept(FXObject*, FXSelector, void*);
68 
70  long onCmdCancel(FXObject*, FXSelector, void*);
72 
73 protected:
76 
79 
81  std::vector<GNEStoppingPlace*> myInvalidStoppingPlaces;
82 
84  std::vector<GNEDetector*> myInvalidDetectors;
85 
87  FXTable* myTable;
88 
90  FXRadioButton* myOptionA;
91 
93  FXRadioButton* myOptionB;
94 
96  FXRadioButton* myOptionC;
97 
99  FXRadioButton* myOptionD;
100 
102  FXButton* myAcceptButton;
103 
105  FXButton* myCancelButton;
106 
107 private:
110 
113 };
114 
115 #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 *)