Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 7479 in orxonox.OLD


Ignore:
Timestamp:
May 2, 2006, 10:04:13 PM (18 years ago)
Author:
bensch
Message:

orxonox/qt_gui: opens up a Windows

Location:
branches/qt_gui/src
Files:
8 edited

Legend:

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

    r7428 r7479  
    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 =
    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 = \
     
    6367
    6468## orxonox.conf will be used from home-dir instead.
    65 EXTRA_DIST = proto/proto_class.h \
    66              proto/proto_class.cc \
    67              proto/proto_singleton.h \
    68              proto/proto_singleton.cc \
    69              proto/proto_world_entity.h \
    70              proto/proto_world_entity.cc \
    71              defs/include_paths.am \
    72              story_entities/Makefile.am
     69EXTRA_DIST = \
     70                proto/proto_class.h \
     71                proto/proto_class.cc \
     72                proto/proto_singleton.h \
     73                proto/proto_singleton.cc \
     74                proto/proto_world_entity.h \
     75                proto/proto_world_entity.cc \
     76                defs/include_paths.am \
     77                story_entities/Makefile.am
    7378
    7479if SUB_PROJECTS
     
    7883endif
    7984
    80 SUBDIRS = lib \
    81           util \
    82           world_entities \
    83           . \
    84           $(SUB_PROGS)
     85SUBDIRS = \
     86                lib \
     87                util \
     88                world_entities \
     89                . \
     90                $(SUB_PROGS)
    8591
    8692
  • branches/qt_gui/src/lib/BuildLibs.am

    r7256 r7479  
    22libORXlibs_a_LIBRARIES_ = \
    33                $(LIB_PREFIX)/libORXlibs.a \
    4                 $(LIB_PREFIX)/gui/gtk_gui/libORXgui.a \
     4                $(LIB_PREFIX)/gui/gtk_gui/libORXgtkgui.a \
     5                $(LIB_PREFIX)/gui/qt_gui/libORXqtgui.a \
    56                $(LIB_PREFIX)/gui/gl_gui/libORXglgui.a \
     7                $(LIB_PREFIX)/gui/libORXbasegui.a \
    68                $(LIB_PREFIX)/graphics/importer/libORXimporter.a \
    79                $(LIB_PREFIX)/graphics/libORXgraphics.a \
  • branches/qt_gui/src/lib/gui/gtk_gui/Makefile.am

    r5463 r7479  
    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/gui_saveable.cc

    r7478 r7479  
    2525  */
    2626  GuiSaveable::GuiSaveable (const std::string& optionName)
     27  : BaseObject(optionName)
    2728  {
    2829    this->bSaveable = false;
     30
    2931  }
    3032
     
    4951      : GuiSaveable(groupName)
    5052  {
    51     //    this->setName(groupName);
    5253  }
    5354
  • branches/qt_gui/src/lib/gui/gui_saveable.h

    r7478 r7479  
    1515{
    1616  //! A class for ...
    17   class GuiSaveable
     17  class GuiSaveable : public BaseObject
    1818  {
    1919  public:
  • branches/qt_gui/src/lib/gui/qt_gui/qt_gui.cc

    r7478 r7479  
    2727  {
    2828
     29    this->mainWindow = new QMainWindow();
     30    this->mainWindow->show();
     31
     32    this->exec();
    2933
    3034
  • branches/qt_gui/src/lib/gui/qt_gui/qt_gui.h

    r7478 r7479  
    1010#include "gui_element.h"
    1111#include <qapplication.h>
     12#include <qmainwindow.h>
    1213
    1314namespace OrxGui
     
    3031
    3132    private:
     33      QMainWindow*              mainWindow;
    3234      std::list<GuiElement*>    elements;   //!< A List of Elements within the QTGui
    3335  };
  • branches/qt_gui/src/orxonox.cc

    r7427 r7479  
    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"
     
    330330              CONFIG_SECTION_DATA,
    331331              CONFIG_NAME_DATADIR );
    332     Gui* gui = new Gui(argc, argv);
     332    OrxGui::Gui* gui = new OrxGui::QtGui(argc, argv);
    333333    gui->startGui();
    334334    delete gui;
     
    497497
    498498    // starting the GUI
    499     Gui* gui = new Gui(argc, argv);
     499    OrxGui::Gui* gui = new OrxGui::QtGui(argc, argv);
    500500    gui->startGui();
    501501
    502     if (! gui->startOrxonox)
    503       return 0;
     502//    if (!gui->startOrxonox)
     503//      return 0;
    504504
    505505    delete gui;
Note: See TracChangeset for help on using the changeset viewer.