SUMO - Simulation of Urban MObility
GNEDialog_Wizard.h
Go to the documentation of this file.
1 /****************************************************************************/
7 // A Dialog for setting options (see OptionsCont)
8 /****************************************************************************/
9 // SUMO, Simulation of Urban MObility; see http://sumo.dlr.de/
10 // Copyright (C) 2001-2016 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_Wizard_h
21 #define GNEDialog_Wizard_h
22 
23 
24 // ===========================================================================
25 // included modules
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 // ===========================================================================
37 // class definitions
38 // ===========================================================================
43 class GNEDialog_Wizard : public FXDialogBox {
44 public:
52  GNEDialog_Wizard(FXWindow* parent, const char* name, int width, int height);
53 
56 
57  // ===========================================================================
58  // Option input classes
59  // ===========================================================================
60  class InputString : public FXHorizontalFrame {
63 
64  public:
66  InputString(FXComposite* parent, const std::string& name);
67 
69  long onCmdSetOption(FXObject*, FXSelector, void*);
70 
71  protected:
74 
75  private:
77  std::string myName;
78 
80  FXTextField* myTextField;
81  };
82 
83  class InputBool : public FXHorizontalFrame {
86 
87  public:
89  InputBool(FXComposite* parent, const std::string& name);
90 
92  long onCmdSetOption(FXObject*, FXSelector, void*);
93 
94  protected:
96  InputBool() {}
97 
98  private:
100  std::string myName;
102  FXMenuCheck* myCheck;
103  };
104 
105 
106  class InputInt : public FXHorizontalFrame {
108  FXDECLARE(GNEDialog_Wizard::InputInt)
109 
110  public:
112  InputInt(FXComposite* parent, const std::string& name);
113 
115  long onCmdSetOption(FXObject*, FXSelector, void*);
116 
117  protected:
119  InputInt() {}
120 
121  private:
123  std::string myName;
124 
126  FXTextField* myTextField;
127  };
128 
129  class InputFloat : public FXHorizontalFrame {
132 
133  public:
135  InputFloat(FXComposite* parent, const std::string& name);
136 
138  long onCmdSetOption(FXObject*, FXSelector, void*);
139 
140  protected:
143 
144  private:
146  std::string myName;
147 
149  FXTextField* myTextField;
150  };
151 };
152 
153 
154 #endif
155 
156 /****************************************************************************/
157 
FXMenuCheck * myCheck
menu check
GNEDialog_Wizard(FXWindow *parent, const char *name, 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