Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

source: orxonox.OLD/orxonox/branches/guiMerge/src/lib/gui/gui/gui_exec.h @ 4048

Last change on this file since 4048 was 4048, checked in by bensch, 19 years ago

orxonox/branches/guiMerge: more naming issues

File size: 2.3 KB
Line 
1/*!
2  \file gui_exec.h
3  \brief File that holds the class that creates the execute-Options.
4*/
5
6#ifndef _GUI_EXEC_H
7#define _GUI_EXEC_H
8
9#include "gui.h"
10#include "gui_element.h"
11
12using namespace std;
13
14//! Class that creates the execute-Options.
15class OrxonoxGuiExec : public OrxonoxGuiElement
16{
17 private:
18  Frame* execFrame;            //!< The Frame that holds the ExecutionOptions.
19  Box* execBox;                //!< The Box that holds the ExecutionOptions.
20  Button* start;               //!< The start Button of orxonox.
21  CheckButton* saveSettings;   //!< A CheckBox for if the Options should be saved.
22  Menu* verboseMode;           //!< A Menu for setting the verbose-Mode. \todo setting up a verbose-class.
23  CheckButton* alwaysShow;     //!< A CheckButton, for if orxonox should start with or without gui.
24  Button* quit;                //!< A Button to quit the Gui without starting orxonox.
25  char* confDir;               //!< The directory of the orxonox-configuration-files.
26  char* configFile;            //!< The name of the .orxonox.conf(ig)-file.
27  FILE* CONFIG_FILE;           //!< Filehandler for reading and writing.
28 
29  //! A struct that holds informations about variables.
30  struct VarInfo
31  {
32    char* variableName;        //!< The Name of this variable;
33    char* variableValue;       //!< The Value this variable gets.
34  };
35
36 public:
37  OrxonoxGuiExec(void);
38  ~OrxonoxGuiExec(void);
39 
40  void setConfFile(char* confFile);
41  void setConfDir(char* confDir);
42  void setFileName(char* fileName);
43  char* getConfigFile(void) const;
44  int shouldsave(void);
45  void writeToFile(Widget* widget);
46  void writeFileText(Widget* widget, int depth);
47  void readFromFile(Widget* widget);
48  static void readFileText(Widget* widget, void* varInfo);
49  Widget* locateGroup(Widget* widget, char* groupName, int depth);
50
51#ifdef HAVE_GTK2
52  static int startOrxonox(GtkWidget *widget, void* data);
53  static int quitGui(GtkWidget *widget, void* data);
54#else /* HAVE_GTK2 */
55  static int startOrxonox(void* widget, void* data);
56  static int quitGui(void* widget, void* data);
57#endif /* HAVE_GTK2 */
58};
59
60//! A simple hashtable
61struct HashTable
62{
63  char* name;           //!< name of the entry
64  char* value;          //!< value of the entry
65  HashTable* next;      //!< pointer to the next entry
66};
67
68
69#endif /* _GUI_EXEC_H */
Note: See TracBrowser for help on using the repository browser.