Last change
on this file since 2989 was
2634,
checked in by bensch, 20 years ago
|
orxonox/trunk/gui: load now more efficient. Loads first searches for a group, then inside the group for the option.
|
File size:
1022 bytes
|
Line | |
---|
1 | /*! |
---|
2 | \file orxonox_gui_exec.h |
---|
3 | \brief File that holds the class that creates the execute-Options. |
---|
4 | */ |
---|
5 | |
---|
6 | #ifndef _ORXONOX_GUI_EXEC_H |
---|
7 | #define _ORXONOX_GUI_EXEC_H |
---|
8 | |
---|
9 | #include "orxonox_gui.h" |
---|
10 | #include <stdio.h> |
---|
11 | using namespace std; |
---|
12 | |
---|
13 | //! Class that creates the execute-Options. |
---|
14 | class OrxonoxGuiExec |
---|
15 | { |
---|
16 | private: |
---|
17 | Frame* execFrame; |
---|
18 | Box* execBox; |
---|
19 | Button* start; |
---|
20 | CheckButton* saveSettings; |
---|
21 | Menu* verboseMode; |
---|
22 | CheckButton* alwaysShow; |
---|
23 | Button* quit; |
---|
24 | char* configFile; |
---|
25 | FILE* CONFIG_FILE; |
---|
26 | public: |
---|
27 | OrxonoxGuiExec (Window* orxonoxGUI); |
---|
28 | ~OrxonoxGuiExec (); |
---|
29 | |
---|
30 | Widget* getWidget (); |
---|
31 | |
---|
32 | void setFilename (char* filename); |
---|
33 | int shouldsave (); |
---|
34 | void writeToFile (Widget* widget); |
---|
35 | void writeFileText (Widget* widget, int depth); |
---|
36 | void readFromFile (Widget* widget); |
---|
37 | void readFileText (Widget* widget, char* variableName, int variableValue, int depth); |
---|
38 | Widget* locateGroup(Widget* widget, char* groupName, int depth); |
---|
39 | |
---|
40 | }; |
---|
41 | gint startOrxonox (GtkWidget *widget, Widget* data); |
---|
42 | |
---|
43 | #endif /* _ORXONOX_GUI_EXEC_H */ |
---|
Note: See
TracBrowser
for help on using the repository browser.