Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

source: orxonox.OLD/trunk/src/lib/gui/gui_exec.h @ 5070

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

orxonox/trunk: icon and name get displayed correctly again

File size: 1.8 KB
Line 
1/*!
2 * file gui_exec.h
3 * 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#include "gui_gtk.h"
12
13class Widget;
14class CheckButton;
15using namespace std;
16class IniParser;
17
18//! Class that creates the execute-Options.
19class GuiExec : public GuiElement
20{
21 private:
22  CheckButton* saveSettings;   //!< A CheckBox for if the Options should be saved.
23
24  char* confDir;               //!< The directory of the orxonox-configuration-files.
25  char* confFile;              //!< 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    const char* variableName;  //!< The Name of this variable;
32    const char* variableValue; //!< The Value this variable gets.
33  };
34
35 public:
36  GuiExec();
37  ~GuiExec();
38
39  void setConfDir(const char* confDir);
40  void setConfFile(const char* confFile);
41  const char* getConfigFile() const;
42  int shouldsave();
43  void writeToFile(Widget* widget);
44  void writeFileText(Widget* widget, IniParser* parser, int depth);
45  void readFromFile(Widget* widget);
46  static void readFileText(Widget* widget, void* varInfo);
47  Widget* locateGroup(Widget* widget, const char* groupName, int depth);
48
49#ifdef HAVE_GTK2
50  static int startOrxonox(GtkWidget *widget, void* data);
51  static int quitGui(GtkWidget *widget, void* data);
52#else /* HAVE_GTK2 */
53  static int startOrxonox(void* widget, void* data);
54  static int quitGui(void* widget, void* data);
55#endif /* HAVE_GTK2 */
56};
57
58//! A simple hashtable
59struct HashTable
60{
61  char* name;           //!< name of the entry
62  char* value;          //!< value of the entry
63  HashTable* next;      //!< pointer to the next entry
64};
65
66
67#endif /* _GUI_EXEC_H */
Note: See TracBrowser for help on using the repository browser.