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
RevLine 
[2588]1/*!
[4048]2  \file gui_exec.h
[2588]3  \brief File that holds the class that creates the execute-Options.
4*/
5
[4048]6#ifndef _GUI_EXEC_H
7#define _GUI_EXEC_H
[2018]8
[4047]9#include "gui.h"
10#include "gui_element.h"
[4024]11
[2018]12using namespace std;
[1812]13
[2588]14//! Class that creates the execute-Options.
[4024]15class OrxonoxGuiExec : public OrxonoxGuiElement
[2018]16{
17 private:
[3187]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.
[3625]25  char* confDir;               //!< The directory of the orxonox-configuration-files.
[3187]26  char* configFile;            //!< The name of the .orxonox.conf(ig)-file.
27  FILE* CONFIG_FILE;           //!< Filehandler for reading and writing.
[3423]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  };
[3187]35
[2018]36 public:
[3423]37  OrxonoxGuiExec(void);
38  ~OrxonoxGuiExec(void);
[2018]39 
[3625]40  void setConfFile(char* confFile);
41  void setConfDir(char* confDir);
42  void setFileName(char* fileName);
43  char* getConfigFile(void) const;
[3423]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);
[2634]49  Widget* locateGroup(Widget* widget, char* groupName, int depth);
[1829]50
[3165]51#ifdef HAVE_GTK2
[3423]52  static int startOrxonox(GtkWidget *widget, void* data);
[4042]53  static int quitGui(GtkWidget *widget, void* data);
[3423]54#else /* HAVE_GTK2 */
55  static int startOrxonox(void* widget, void* data);
[4042]56  static int quitGui(void* widget, void* data);
[3165]57#endif /* HAVE_GTK2 */
[3423]58};
59
[3452]60//! A simple hashtable
[3423]61struct HashTable
62{
[3452]63  char* name;           //!< name of the entry
64  char* value;          //!< value of the entry
65  HashTable* next;      //!< pointer to the next entry
[3423]66};
67
68
[4048]69#endif /* _GUI_EXEC_H */
Note: See TracBrowser for help on using the repository browser.