Last change
on this file since 3039 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
|
Rev | Line | |
---|
[2588] | 1 | /*! |
---|
| 2 | \file orxonox_gui_exec.h |
---|
| 3 | \brief File that holds the class that creates the execute-Options. |
---|
| 4 | */ |
---|
| 5 | |
---|
[1812] | 6 | #ifndef _ORXONOX_GUI_EXEC_H |
---|
| 7 | #define _ORXONOX_GUI_EXEC_H |
---|
[2018] | 8 | |
---|
[1819] | 9 | #include "orxonox_gui.h" |
---|
[2018] | 10 | #include <stdio.h> |
---|
| 11 | using namespace std; |
---|
[1812] | 12 | |
---|
[2588] | 13 | //! Class that creates the execute-Options. |
---|
[2018] | 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 | |
---|
[2595] | 30 | Widget* getWidget (); |
---|
[2018] | 31 | |
---|
| 32 | void setFilename (char* filename); |
---|
| 33 | int shouldsave (); |
---|
| 34 | void writeToFile (Widget* widget); |
---|
[2615] | 35 | void writeFileText (Widget* widget, int depth); |
---|
[2018] | 36 | void readFromFile (Widget* widget); |
---|
[2634] | 37 | void readFileText (Widget* widget, char* variableName, int variableValue, int depth); |
---|
| 38 | Widget* locateGroup(Widget* widget, char* groupName, int depth); |
---|
[1829] | 39 | |
---|
[2018] | 40 | }; |
---|
[2053] | 41 | gint startOrxonox (GtkWidget *widget, Widget* data); |
---|
| 42 | |
---|
[1812] | 43 | #endif /* _ORXONOX_GUI_EXEC_H */ |
---|
Note: See
TracBrowser
for help on using the repository browser.