Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

source: orxonox.OLD/orxonox/trunk/src/lib/gui/gui/orxonox_gui_exec.h @ 3625

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

orxonox/trunk: merged the branches/updater back to the trunk.
merged with command
svn merge -r 3423:HEAD branches/updater/src/gui trunk/src/lib/graphics/gui/gui.

I do not wish to make such jokes again, because it is even worse than copy-pasting. All Files had to be eddited manually, and many diffs where a little bit strange (artifacts).

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