Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

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


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

Location:
branches/qt_gui/src
Files:
14 edited
21 copied

Legend:

Unmodified
Added
Removed
  • branches/qt_gui/src/Makefile.am

    r7462 r7608  
    1212bin_PROGRAMS = orxonox
    1313
    14 orxonox_CPPFLAGS = -DIS_ORXONOX
    15 orxonox_LDFLAGS = -u global_ModelParticles_Factory
     14orxonox_CPPFLAGS = \
     15                -DIS_ORXONOX \
     16                @QT_CXXFLAGS@
     17
     18orxonox_LDFLAGS = @QT_LDFLAGS@
    1619
    1720orxonox_DEPENDENCIES = \
     
    2427                util/libORXutils.a \
    2528                $(libORXlibs_a_LIBRARIES_) \
    26                 $(GTK2_LIBS) $(GTHREAD_LIBS) $(CURL_LIBS)
     29                $(GTK2_LIBS) $(GTHREAD_LIBS) $(CURL_LIBS) \
     30                @QT_LIBS@
    2731
    2832orxonox_SOURCES = \
     
    6670
    6771## orxonox.conf will be used from home-dir instead.
    68 EXTRA_DIST = proto/proto_class.h \
    69              proto/proto_class.cc \
    70              proto/proto_singleton.h \
    71              proto/proto_singleton.cc \
    72              proto/proto_world_entity.h \
    73              proto/proto_world_entity.cc \
    74              defs/include_paths.am \
    75              story_entities/Makefile.am
     72EXTRA_DIST = \
     73                proto/proto_class.h \
     74                proto/proto_class.cc \
     75                proto/proto_singleton.h \
     76                proto/proto_singleton.cc \
     77                proto/proto_world_entity.h \
     78                proto/proto_world_entity.cc \
     79                defs/include_paths.am \
     80                story_entities/Makefile.am
    7681
    7782if SUB_PROJECTS
     
    8186endif
    8287
    83 SUBDIRS = lib \
    84           util \
    85           world_entities \
    86           . \
    87           $(SUB_PROGS)
     88SUBDIRS = \
     89                lib \
     90                util \
     91                world_entities \
     92                . \
     93                $(SUB_PROGS)
    8894
    8995
  • branches/qt_gui/src/defs/class_id.h

    r7486 r7608  
    322322  CL_GLGUI_BAR                  =    0x00000b30,
    323323
     324  // QT_GUI
     325  CL_GUI_SAVEABLE               =    0x00b10000,
     326  CL_QTGUI_BUTTON               =    0x00000ba0,
     327  CL_QTGUI_PUSHBUTTON           =    0x00000ba3,
     328  CL_QTGUI_CHECKBUTTON          =    0x00000ba4,
     329  CL_QTGUI_RADIOBUTTON          =    0x00000ba5,
     330  CL_QTGUI_CONTAINER            =    0x00b200a0,
     331  CL_QTGUI_BOX                  =    0x00000ba7,
     332  CL_QTGUI_FRAME                =    0x00000ba8,
     333  CL_QTGUI_WINDOW               =    0x00000ba9,
     334  CL_QTMENU_IMAGE_SCREEN        =    0x00000ba0,
     335  CL_QTGUI_BAR                  =    0x00000ba0,
     336
    324337  /// AUDIO stuff (range from 0x00000c00 to 0x00000cff)
    325338  CL_SOUND_BUFFER               =    0x00000c01,
  • branches/qt_gui/src/defs/debug.h

    r7374 r7608  
    2828#include "confincl.h"
    2929#ifndef NO_SHELL
    30  #include "shell_buffer.h"
     30#include "lib/shell/shell_buffer.h"
    3131#endif /* NO_SHELL */
    3232
  • branches/qt_gui/src/defs/globals.h

    r7256 r7608  
    3838#define   CONFIG_SECTION_VIDEO_ADVANCED    "video_advanced"
    3939#define   CONFIG_SECTION_AUDIO             "audio"
    40 #define   CONFIG_SECTION_EXEC              "exec"
    41 #define   CONFIG_SECTION_DATA              "data"
     40#define   CONFIG_SECTION_GENERAL           "general"
    4241
    4342/*
     
    5453#define   CONFIG_NAME_FOG                  "Fog"
    5554#define   CONFIG_NAME_REFLECTIONS          "Reflections"
    56 #define   CONFIG_NAME_TEXTURES             "TEXTURES"
     55#define   CONFIG_NAME_TEXTURES             "Textures"
    5756#define   CONFIG_NAME_TEXTURE_DETAIL       "Texture-Detail"
    5857#define   CONFIG_NAME_MODEL_DETAIL         "Model-Detail"
     
    6160#define   CONFIG_NAME_FILTER_METHOD        "Filtering-Method"
    6261
     62#define   CONFIG_NAME_SOUNDCARD            "Soundcard"
    6363#define   CONFIG_NAME_DISABLE_AUDIO        "Disable-Audio"
    6464#define   CONFIG_NAME_AUDIO_CHANNELS       "Audio-Channels"
     
    6969#define   CONFIG_NAME_VERBOSE_MODE         "Verbose-Mode"
    7070#define   CONFIG_NAME_ALWAYS_SHOW_GUI      "Always-Show-The-Gui"
     71#define   CONFIG_NAME_DEBUG_LEVEL          "Debug-Level"
     72
    7173// evenets
    7274#define   CONFIG_NAME_PLAYER_FORWARD       "Forward"
  • branches/qt_gui/src/lib/BuildLibs.am

    r7457 r7608  
    33                $(LIB_PREFIX)/libORXlibs.a \
    44                $(LIB_PREFIX)/shell/libORXshell.a \
    5                 $(LIB_PREFIX)/gui/gtk_gui/libORXgui.a \
     5                $(LIB_PREFIX)/gui/gtk_gui/libORXgtkgui.a \
     6                $(LIB_PREFIX)/gui/qt_gui/libORXqtgui.a \
    67                $(LIB_PREFIX)/gui/gl_gui/libORXglgui.a \
     8                $(LIB_PREFIX)/gui/libORXbasegui.a \
    79                $(LIB_PREFIX)/graphics/importer/libORXimporter.a \
    810                $(LIB_PREFIX)/graphics/libORXgraphics.a \
  • branches/qt_gui/src/lib/gui/Makefile.am

    r5315 r7608  
    1 SUBDIRS = gtk_gui \
    2           gl_gui
     1MAINSRCDIR=../..
     2include $(MAINSRCDIR)/defs/include_paths.am
     3
     4AM_LDFLAGS =
     5
     6noinst_LIBRARIES = libORXbasegui.a
     7
     8
     9libORXbasegui_a_SOURCES = \
     10                gui_element.cc \
     11                gui_saveable.cc \
     12                gui.cc
     13
     14
     15noinst_HEADERS= \
     16                gui_element.h \
     17                gui_saveable.h \
     18                gui.h
     19
     20
     21EXTRA_DIST =
     22
     23SUBDIRS = \
     24        . \
     25        gtk_gui \
     26        gl_gui \
     27        qt_gui
  • branches/qt_gui/src/lib/gui/gtk_gui/Makefile.am

    r5463 r7608  
    22include $(MAINSRCDIR)/defs/include_paths.am
    33
    4 noinst_LIBRARIES = libORXgui.a
     4noinst_LIBRARIES = libORXgtkgui.a
    55
    6 libORXgui_a_CPPFLAGS = -DBUILD_ORXONOX \
    7                         $(GTK2_CFLAGS) $(GTHREAD_CFLAGS) $(CURL_CFLAGS) $(MSBITFIELDS)
     6libORXgtkgui_a_CPPFLAGS = \
     7                -DBUILD_ORXONOX \
     8                $(GTK2_CFLAGS) $(GTHREAD_CFLAGS) $(CURL_CFLAGS) $(MSBITFIELDS)
    89
    9 libORXgui_a_SOURCES = gui.cc \
    10                       gui_gtk.cc \
    11                       gui_element.cc \
    12                       gui_video.cc \
    13                       gui_audio.cc \
    14                       gui_exec.cc \
    15                       gui_flags.cc \
    16                       gui_banner.cc \
    17                       gui_keys.cc \
    18                       gui_update.cc
     10libORXgtkgui_a_SOURCES = \
     11                gui.cc \
     12                gui_gtk.cc \
     13                gui_element.cc \
     14                gui_video.cc \
     15                gui_audio.cc \
     16                gui_exec.cc \
     17                gui_flags.cc \
     18                gui_banner.cc \
     19                gui_keys.cc \
     20                gui_update.cc
    1921
    2022noinst_HEADERS= gui.h \
    21                 gui_gtk.h \
    22                 gui_element.h \
    23                 gui_video.h \
    24                 gui_audio.h \
    25                 gui_exec.h \
    26                 gui_flags.h \
    27                 gui_banner.h \
    28                 gui_keys.h \
    29                 gui_update.h
     23                gui_gtk.h \
     24                gui_element.h \
     25                gui_video.h \
     26                gui_audio.h \
     27                gui_exec.h \
     28                gui_flags.h \
     29                gui_banner.h \
     30                gui_keys.h \
     31                gui_update.h
    3032
    3133EXTRA_DIST = rc \
  • branches/qt_gui/src/lib/gui/gtk_gui/gui_element.h

    r5039 r7608  
    1 /*! 
     1/*!
    22 * @file gui_element.h
    3   *  Definition of ...
     3 *  Definition of ...
    44
    55*/
     
    1616  GuiElement();
    1717  virtual ~GuiElement();
    18  
     18
    1919  /** @returns the main Widget of this GuiElement. */
    20   Widget* getWidget() {return this->mainWidget;}
     20  Widget* getWidget() { return this->mainWidget; }
    2121 protected:
    2222  void setMainWidget(Widget* widget);
    23  
     23
    2424 private:
    2525  Widget* mainWidget;
  • branches/qt_gui/src/lib/gui/gtk_gui/gui_update.cc

    r5766 r7608  
    5151
    5252  this->updateFrame = new Frame("Update-Options:");
    53   this->updateFrame->setGroupName(CONFIG_SECTION_DATA);
     53  this->updateFrame->setGroupName(CONFIG_SECTION_GENERAL);
    5454  this->updateBox = new Box('v');
    5555
  • branches/qt_gui/src/lib/lang/base_object.cc

    r7429 r7608  
    2020
    2121#include "util/loading/load_param.h"
    22 #include "compiler.h"
    2322#include "class_list.h"
    2423
     
    3231 * @param root the element to load from
    3332 */
    34 BaseObject::BaseObject()
     33BaseObject::BaseObject(const std::string& objectName)
    3534{
    3635  this->classID = CL_BASE_OBJECT;
    3736  this->className = "BaseObject";
    3837
    39   this->objectName = "";
     38  this->objectName = objectName;
    4039  this->classList = NULL;
    4140  this->xmlElem = NULL;
  • branches/qt_gui/src/lib/lang/base_object.h

    r7221 r7608  
    2727
    2828 public:
    29   BaseObject ();
     29   BaseObject (const std::string& objectName = "");
    3030  virtual ~BaseObject ();
    3131
  • branches/qt_gui/src/lib/particles/dot_emitter.cc

    r7302 r7608  
    2323#include "util/loading/factory.h"
    2424#include "debug.h"
    25 #include "stdlibincl.h"
    2625
    2726using namespace std;
  • branches/qt_gui/src/lib/shell/shell_buffer.h

    r7374 r7608  
    1010#include <stdarg.h>
    1111#include <list>
    12 #include "threading.h"
     12#include "lib/util/threading.h"
    1313
    1414#define      SHELL_BUFFER_SIZE       16384         //!< The Size of the input-buffers (should be large enough to carry any kind of input)
  • 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.