Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 7608 in orxonox.OLD for branches/qt_gui/src/orxonox.cc


Ignore:
Timestamp:
May 12, 2006, 10:43:53 AM (18 years ago)
Author:
bensch
Message:

merged the old qt-gui back with
svn merge -r7438:HEAD https://svn.orxonox.net/orxonox/branches/qt_gui_old .
minor conflict in BuildLibs.am

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/qt_gui/src/orxonox.cc

    r7460 r7608  
    3030#include "globals.h"
    3131
    32 #include "gui.h"
     32#include "gui/qt_gui/qt_gui.h"
    3333
    3434#include "parser/ini_parser/ini_parser.h"
     
    280280  PRINT(3)("> Initializing input\n");
    281281
     282  EventHandler::getInstance()->
    282283  EventHandler::getInstance()->init();
    283284  EventHandler::getInstance()->subscribe(GraphicsEngine::getInstance(), ES_ALL, EV_VIDEO_RESIZE);
     
    319320  // init the resource manager
    320321  std::string dataPath;
    321   if ((dataPath = Preferences::getInstance()->getString(CONFIG_SECTION_DATA, CONFIG_NAME_DATADIR, ""))!= "")
     322  if ((dataPath = Preferences::getInstance()->getString(CONFIG_SECTION_GENERAL, CONFIG_NAME_DATADIR, ""))!= "")
    322323  {
    323324    if (!ResourceManager::getInstance()->setDataDir(dataPath) &&
     
    334335    ResourceManager::getInstance()->getDataDir().c_str(),
    335336    this->configFileName.c_str(),
    336               CONFIG_SECTION_DATA,
     337              CONFIG_SECTION_GENERAL,
    337338              CONFIG_NAME_DATADIR );
    338     Gui* gui = new Gui(argc, argv);
     339    OrxGui::Gui* gui = new OrxGui::QtGui(argc, argv);
    339340    gui->startGui();
    340341    delete gui;
     
    426427
    427428  IniFilePrefsReader ini(ResourceManager::homeDirCheck(DEFAULT_CONFIG_FILE));
     429  Preferences::getInstance()->setUserIni(ResourceManager::homeDirCheck(DEFAULT_CONFIG_FILE));
    428430
    429431  prefs.parse(argc, argv);
     
    512514
    513515    // starting the GUI
    514     Gui* gui = new Gui(argc, argv);
    515     gui->startGui();
    516 
    517     if (! gui->startOrxonox)
     516    OrxGui::QtGui gui(argc, argv);
     517    gui.startGui();
     518
     519    if (gui.getState() & OrxGui::Gui::Quitting)
    518520      return 0;
    519521
    520     delete gui;
    521522  }
    522523
Note: See TracChangeset for help on using the changeset viewer.