Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

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

Last change on this file since 8456 was 8145, checked in by bensch, 18 years ago

trunk: merged the gui back
merged with command:
svn merge -r8114:HEAD https://svn.orxonox.net/orxonox/branches/gui .
→ no conflicts

File size: 1.8 KB
RevLine 
[2588]1/*!
[5024]2 * file gui_exec.h
3 * File that holds the class that creates the execute-Options.
4 */
[2588]5
[4048]6#ifndef _GUI_EXEC_H
7#define _GUI_EXEC_H
[2018]8
[4047]9#include "gui.h"
10#include "gui_element.h"
[4051]11#include "gui_gtk.h"
[4024]12
[7221]13#include <string>
14
[4051]15class Widget;
16class CheckButton;
[2018]17using namespace std;
[5021]18class IniParser;
[1812]19
[2588]20//! Class that creates the execute-Options.
[4056]21class GuiExec : public GuiElement
[2018]22{
23 private:
[3187]24  CheckButton* saveSettings;   //!< A CheckBox for if the Options should be saved.
[4051]25
[7221]26  std::string confDir;         //!< The directory of the orxonox-configuration-files.
27  std::string confFile;        //!< The name of the .orxonox.conf(ig)-file.
[4051]28
[3423]29  //! A struct that holds informations about variables.
30  struct VarInfo
31  {
[5015]32    const char* variableName;  //!< The Name of this variable;
33    const char* variableValue; //!< The Value this variable gets.
[3423]34  };
[3187]35
[2018]36 public:
[4746]37  GuiExec();
[6981]38  virtual ~GuiExec();
[5015]39
[4051]40  void setConfDir(const char* confDir);
41  void setConfFile(const char* confFile);
[4746]42  const char* getConfigFile() const;
43  int shouldsave();
[3423]44  void writeToFile(Widget* widget);
[5021]45  void writeFileText(Widget* widget, IniParser* parser, int depth);
[3423]46  void readFromFile(Widget* widget);
47  static void readFileText(Widget* widget, void* varInfo);
[5015]48  Widget* locateGroup(Widget* widget, const char* groupName, int depth);
[1829]49
[3165]50#ifdef HAVE_GTK2
[3423]51  static int startOrxonox(GtkWidget *widget, void* data);
[4042]52  static int quitGui(GtkWidget *widget, void* data);
[3423]53#else /* HAVE_GTK2 */
54  static int startOrxonox(void* widget, void* data);
[4042]55  static int quitGui(void* widget, void* data);
[3165]56#endif /* HAVE_GTK2 */
[3423]57};
58
[5015]59//! A simple hashtable
[3423]60struct HashTable
61{
[7221]62  std::string name;           //!< name of the entry
63  std::string value;          //!< value of the entry
[3452]64  HashTable* next;      //!< pointer to the next entry
[3423]65};
66
67
[4048]68#endif /* _GUI_EXEC_H */
Note: See TracBrowser for help on using the repository browser.