SUMO - Simulation of Urban MObility
GNEDialog_Wizard.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 // A Dialog for setting options (see OptionsCont)
18 /****************************************************************************/
19 #ifndef GNEDialog_Wizard_h
20 #define GNEDialog_Wizard_h
21 
22 
23 // ===========================================================================
24 // included modules
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 // ===========================================================================
36 // class definitions
37 // ===========================================================================
42 class GNEDialog_Wizard : public FXDialogBox {
43 public:
51  GNEDialog_Wizard(FXWindow* parent, const char* titleName, int width, int height);
52 
55 
56  // ===========================================================================
57  // Option input classes
58  // ===========================================================================
59  class InputString : public FXHorizontalFrame {
62 
63  public:
65  InputString(FXComposite* parent, const std::string& name);
66 
68  long onCmdSetOption(FXObject*, FXSelector, void*);
69 
70  protected:
73 
74  private:
76  std::string myName;
77 
79  FXTextField* myTextField;
80  };
81 
82  class InputBool : public FXHorizontalFrame {
85 
86  public:
88  InputBool(FXComposite* parent, const std::string& name);
89 
91  long onCmdSetOption(FXObject*, FXSelector, void*);
92 
93  protected:
95  InputBool() {}
96 
97  private:
99  std::string myName;
101  FXMenuCheck* myCheck;
102  };
103 
104 
105  class InputInt : public FXHorizontalFrame {
107  FXDECLARE(GNEDialog_Wizard::InputInt)
108 
109  public:
111  InputInt(FXComposite* parent, const std::string& name);
112 
114  long onCmdSetOption(FXObject*, FXSelector, void*);
115 
116  protected:
118  InputInt() {}
119 
120  private:
122  std::string myName;
123 
125  FXTextField* myTextField;
126  };
127 
128  class InputFloat : public FXHorizontalFrame {
131 
132  public:
134  InputFloat(FXComposite* parent, const std::string& name);
135 
137  long onCmdSetOption(FXObject*, FXSelector, void*);
138 
139  protected:
142 
143  private:
145  std::string myName;
146 
148  FXTextField* myTextField;
149  };
150 };
151 
152 
153 #endif
154 
155 /****************************************************************************/
156 
FXMenuCheck * myCheck
menu check
GNEDialog_Wizard(FXWindow *parent, const char *titleName, int width, int height)
Constructor.
~GNEDialog_Wizard()
Destructor.
FXTextField * myTextField
text field
FXTextField * myTextField
text field
FXTextField * myTextField
text field
long onCmdSetOption(FXObject *, FXSelector, void *)
try to set new attribute value