Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

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

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

orxonox/trunk: icon and name get displayed correctly again

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