Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 4056 in orxonox.OLD for orxonox/trunk/src/lib/gui/gui/gui_exec.cc


Ignore:
Timestamp:
May 5, 2005, 1:43:20 AM (19 years ago)
Author:
bensch
Message:

orxonox/trunk/gui: naming

File:
1 edited

Legend:

Unmodified
Added
Removed
  • orxonox/trunk/src/lib/gui/gui/gui_exec.cc

    r4054 r4056  
    3838    \brief Creates the Exec-Frame
    3939*/
    40 OrxonoxGuiExec::OrxonoxGuiExec(void)
     40GuiExec::GuiExec(void)
    4141{
    4242  Frame* execFrame;            //!< The Frame that holds the ExecutionOptions.
     
    7676      quit = new Button("Quit");
    7777#ifdef HAVE_GTK2
    78       quit->connectSignal("clicked", this, OrxonoxGuiExec::quitGui);
    79       //  Window::mainWindow->connectSignal("remove", this, OrxonoxGuiExec::quitGui);
    80       Window::mainWindow->connectSignal("destroy", this, OrxonoxGuiExec::quitGui);
     78      quit->connectSignal("clicked", this, GuiExec::quitGui);
     79      //  Window::mainWindow->connectSignal("remove", this, GuiExec::quitGui);
     80      Window::mainWindow->connectSignal("destroy", this, GuiExec::quitGui);
    8181#endif /* HAVE_GTK2 */
    8282      execBox->fill(quit);
     
    9090   \brief Destructs the Execution-stuff
    9191*/
    92 OrxonoxGuiExec::~OrxonoxGuiExec(void)
     92GuiExec::~GuiExec(void)
    9393{
    9494  if(this->confFile)
     
    104104   \param confDir the Directory for the configuration files
    105105*/
    106 void OrxonoxGuiExec::setConfDir(const char* confDir)
     106void GuiExec::setConfDir(const char* confDir)
    107107{
    108108  this->confDir = ResourceManager::homeDirCheck(confDir);
     
    123123   The name will be parsed from ~/ to /home/[username] on unix and c:/Documents and Settings/username/Settings/ on Windows
    124124*/
    125 void OrxonoxGuiExec::setConfFile(const char* fileName)
     125void GuiExec::setConfFile(const char* fileName)
    126126{
    127127  if (!this->confDir)
     
    135135   \returns The name of the Configuration-File
    136136*/
    137 const char* OrxonoxGuiExec::getConfigFile(void) const
     137const char* GuiExec::getConfigFile(void) const
    138138{
    139139  return this->confFile;
     
    144144   \return 1 if it should 0 if not/
    145145*/
    146 int OrxonoxGuiExec::shouldsave()
     146int GuiExec::shouldsave()
    147147{
    148148  return(static_cast<Option*>(this->saveSettings)->value);
     
    153153    \param widget from which Widget on should be saved.
    154154
    155     this Function only opens and closes the file, in between OrxonoxGuiExec::writeFileText(Widget* widget) will execute the real writing process.
    156 */
    157 void OrxonoxGuiExec::writeToFile(Widget* widget)
     155    this Function only opens and closes the file, in between GuiExec::writeFileText(Widget* widget) will execute the real writing process.
     156*/
     157void GuiExec::writeToFile(Widget* widget)
    158158{
    159159  this->CONFIG_FILE = fopen(this->confFile, "w");
     
    168168   \param depth initially "0", and grows higher, while new Groups are bundeled.
    169169*/
    170 void OrxonoxGuiExec::writeFileText(Widget* widget, int depth)
     170void GuiExec::writeFileText(Widget* widget, int depth)
    171171{
    172172  int counter = 0;
     
    219219   \param widget from which Widget on should be saved.
    220220*/
    221 void OrxonoxGuiExec::readFromFile(Widget* widget)
     221void GuiExec::readFromFile(Widget* widget)
    222222{
    223223  this->CONFIG_FILE = fopen(this->confFile, "r");
     
    268268   \param varInfo Information about the Variable to read
    269269*/
    270 void OrxonoxGuiExec::readFileText(Widget* widget, void* varInfo)
     270void GuiExec::readFileText(Widget* widget, void* varInfo)
    271271{
    272272  VarInfo* info =(VarInfo*)varInfo;
     
    288288   \todo do this in gui-gtk.
    289289*/
    290 Widget* OrxonoxGuiExec::locateGroup(Widget* widget, char* groupName, int depth)
     290Widget* GuiExec::locateGroup(Widget* widget, char* groupName, int depth)
    291291{
    292292  Widget* tmp;
     
    329329*/
    330330#ifdef HAVE_GTK2
    331 int OrxonoxGuiExec::startOrxonox(GtkWidget* widget, void* data)
     331int GuiExec::startOrxonox(GtkWidget* widget, void* data)
    332332#else /* HAVE_GTK2 */
    333 int OrxonoxGuiExec::startOrxonox(void* widget, void* data)
     333int GuiExec::startOrxonox(void* widget, void* data)
    334334#endif /* HAVE_GTK2 */
    335335{
     
    343343
    344344  PRINT(3)("Starting Orxonox\n");
    345   OrxonoxGui::startOrxonox = true;
     345  Gui::startOrxonox = true;
    346346}
    347347
     
    354354*/
    355355#ifdef HAVE_GTK2
    356 int OrxonoxGuiExec::quitGui(GtkWidget* widget, void* data)
     356int GuiExec::quitGui(GtkWidget* widget, void* data)
    357357#else /* HAVE_GTK2 */
    358 int OrxonoxGuiExec::quitGui(void* widget, void* data)
    359 #endif /* HAVE_GTK2 */
    360 {
    361   OrxonoxGuiExec* exec =(OrxonoxGuiExec*)data;
     358int GuiExec::quitGui(void* widget, void* data)
     359#endif /* HAVE_GTK2 */
     360{
     361  GuiExec* exec =(GuiExec*)data;
    362362  if(exec->shouldsave())
    363363    exec->writeToFile(Window::mainWindow);
Note: See TracChangeset for help on using the changeset viewer.