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 
54 
57 
58 
59  // ===========================================================================
60  // Option input classes
61  // ===========================================================================
62  class InputString : public FXHorizontalFrame {
63  // FOX-declarations
65  public:
66  InputString(FXComposite* parent, const std::string& name);
68  long onCmdSetOption(FXObject*, FXSelector, void*);
69  protected:
72  private:
73  std::string myName;
74  FXTextField* myTextField;
75  };
76 
77  class InputBool : public FXHorizontalFrame {
78  // FOX-declarations
80  public:
81  InputBool(FXComposite* parent, const std::string& name);
83  long onCmdSetOption(FXObject*, FXSelector, void*);
84  protected:
86  InputBool() {}
87  private:
88  std::string myName;
89  FXMenuCheck* myCheck;
90  };
91 
92 
93  class InputInt : public FXHorizontalFrame {
94  // FOX-declarations
96  public:
97  InputInt(FXComposite* parent, const std::string& name);
99  long onCmdSetOption(FXObject*, FXSelector, void*);
100  protected:
102  InputInt() {}
103  private:
104  std::string myName;
105  FXTextField* myTextField;
106  };
107 
108 
109  class InputFloat : public FXHorizontalFrame {
110  // FOX-declarations
112  public:
113  InputFloat(FXComposite* parent, const std::string& name);
115  long onCmdSetOption(FXObject*, FXSelector, void*);
116  protected:
119  private:
120  std::string myName;
121  FXTextField* myTextField;
122  };
123 
124 
125 };
126 
127 
128 #endif
129 
130 /****************************************************************************/
131 
GNEDialog_Wizard(FXWindow *parent, const char *name, int width, int height)
Constructor.
~GNEDialog_Wizard()
Destructor.
long onCmdSetOption(FXObject *, FXSelector, void *)
try to set new attribute value