Changeset 7608 in orxonox.OLD for branches/qt_gui/src
- Timestamp:
- May 12, 2006, 10:43:53 AM (19 years ago)
- Location:
- branches/qt_gui/src
- Files:
-
- 14 edited
- 21 copied
Legend:
- Unmodified
- Added
- Removed
-
branches/qt_gui/src/Makefile.am
r7462 r7608 12 12 bin_PROGRAMS = orxonox 13 13 14 orxonox_CPPFLAGS = -DIS_ORXONOX 15 orxonox_LDFLAGS = -u global_ModelParticles_Factory 14 orxonox_CPPFLAGS = \ 15 -DIS_ORXONOX \ 16 @QT_CXXFLAGS@ 17 18 orxonox_LDFLAGS = @QT_LDFLAGS@ 16 19 17 20 orxonox_DEPENDENCIES = \ … … 24 27 util/libORXutils.a \ 25 28 $(libORXlibs_a_LIBRARIES_) \ 26 $(GTK2_LIBS) $(GTHREAD_LIBS) $(CURL_LIBS) 29 $(GTK2_LIBS) $(GTHREAD_LIBS) $(CURL_LIBS) \ 30 @QT_LIBS@ 27 31 28 32 orxonox_SOURCES = \ … … 66 70 67 71 ## 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 72 EXTRA_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 76 81 77 82 if SUB_PROJECTS … … 81 86 endif 82 87 83 SUBDIRS = lib \ 84 util \ 85 world_entities \ 86 . \ 87 $(SUB_PROGS) 88 SUBDIRS = \ 89 lib \ 90 util \ 91 world_entities \ 92 . \ 93 $(SUB_PROGS) 88 94 89 95 -
branches/qt_gui/src/defs/class_id.h
r7486 r7608 322 322 CL_GLGUI_BAR = 0x00000b30, 323 323 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 324 337 /// AUDIO stuff (range from 0x00000c00 to 0x00000cff) 325 338 CL_SOUND_BUFFER = 0x00000c01, -
branches/qt_gui/src/defs/debug.h
r7374 r7608 28 28 #include "confincl.h" 29 29 #ifndef NO_SHELL 30 #include "shell_buffer.h"30 #include "lib/shell/shell_buffer.h" 31 31 #endif /* NO_SHELL */ 32 32 -
branches/qt_gui/src/defs/globals.h
r7256 r7608 38 38 #define CONFIG_SECTION_VIDEO_ADVANCED "video_advanced" 39 39 #define CONFIG_SECTION_AUDIO "audio" 40 #define CONFIG_SECTION_EXEC "exec" 41 #define CONFIG_SECTION_DATA "data" 40 #define CONFIG_SECTION_GENERAL "general" 42 41 43 42 /* … … 54 53 #define CONFIG_NAME_FOG "Fog" 55 54 #define CONFIG_NAME_REFLECTIONS "Reflections" 56 #define CONFIG_NAME_TEXTURES "T EXTURES"55 #define CONFIG_NAME_TEXTURES "Textures" 57 56 #define CONFIG_NAME_TEXTURE_DETAIL "Texture-Detail" 58 57 #define CONFIG_NAME_MODEL_DETAIL "Model-Detail" … … 61 60 #define CONFIG_NAME_FILTER_METHOD "Filtering-Method" 62 61 62 #define CONFIG_NAME_SOUNDCARD "Soundcard" 63 63 #define CONFIG_NAME_DISABLE_AUDIO "Disable-Audio" 64 64 #define CONFIG_NAME_AUDIO_CHANNELS "Audio-Channels" … … 69 69 #define CONFIG_NAME_VERBOSE_MODE "Verbose-Mode" 70 70 #define CONFIG_NAME_ALWAYS_SHOW_GUI "Always-Show-The-Gui" 71 #define CONFIG_NAME_DEBUG_LEVEL "Debug-Level" 72 71 73 // evenets 72 74 #define CONFIG_NAME_PLAYER_FORWARD "Forward" -
branches/qt_gui/src/lib/BuildLibs.am
r7457 r7608 3 3 $(LIB_PREFIX)/libORXlibs.a \ 4 4 $(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 \ 6 7 $(LIB_PREFIX)/gui/gl_gui/libORXglgui.a \ 8 $(LIB_PREFIX)/gui/libORXbasegui.a \ 7 9 $(LIB_PREFIX)/graphics/importer/libORXimporter.a \ 8 10 $(LIB_PREFIX)/graphics/libORXgraphics.a \ -
branches/qt_gui/src/lib/gui/Makefile.am
r5315 r7608 1 SUBDIRS = gtk_gui \ 2 gl_gui 1 MAINSRCDIR=../.. 2 include $(MAINSRCDIR)/defs/include_paths.am 3 4 AM_LDFLAGS = 5 6 noinst_LIBRARIES = libORXbasegui.a 7 8 9 libORXbasegui_a_SOURCES = \ 10 gui_element.cc \ 11 gui_saveable.cc \ 12 gui.cc 13 14 15 noinst_HEADERS= \ 16 gui_element.h \ 17 gui_saveable.h \ 18 gui.h 19 20 21 EXTRA_DIST = 22 23 SUBDIRS = \ 24 . \ 25 gtk_gui \ 26 gl_gui \ 27 qt_gui -
branches/qt_gui/src/lib/gui/gtk_gui/Makefile.am
r5463 r7608 2 2 include $(MAINSRCDIR)/defs/include_paths.am 3 3 4 noinst_LIBRARIES = libORXg ui.a4 noinst_LIBRARIES = libORXgtkgui.a 5 5 6 libORXgui_a_CPPFLAGS = -DBUILD_ORXONOX \ 7 $(GTK2_CFLAGS) $(GTHREAD_CFLAGS) $(CURL_CFLAGS) $(MSBITFIELDS) 6 libORXgtkgui_a_CPPFLAGS = \ 7 -DBUILD_ORXONOX \ 8 $(GTK2_CFLAGS) $(GTHREAD_CFLAGS) $(CURL_CFLAGS) $(MSBITFIELDS) 8 9 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 10 libORXgtkgui_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 19 21 20 22 noinst_HEADERS= gui.h \ 21 22 23 24 25 26 27 28 29 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 30 32 31 33 EXTRA_DIST = rc \ -
branches/qt_gui/src/lib/gui/gtk_gui/gui_element.h
r5039 r7608 1 /*! 1 /*! 2 2 * @file gui_element.h 3 3 * Definition of ... 4 4 5 5 */ … … 16 16 GuiElement(); 17 17 virtual ~GuiElement(); 18 18 19 19 /** @returns the main Widget of this GuiElement. */ 20 Widget* getWidget() { return this->mainWidget;}20 Widget* getWidget() { return this->mainWidget; } 21 21 protected: 22 22 void setMainWidget(Widget* widget); 23 23 24 24 private: 25 25 Widget* mainWidget; -
branches/qt_gui/src/lib/gui/gtk_gui/gui_update.cc
r5766 r7608 51 51 52 52 this->updateFrame = new Frame("Update-Options:"); 53 this->updateFrame->setGroupName(CONFIG_SECTION_ DATA);53 this->updateFrame->setGroupName(CONFIG_SECTION_GENERAL); 54 54 this->updateBox = new Box('v'); 55 55 -
branches/qt_gui/src/lib/lang/base_object.cc
r7429 r7608 20 20 21 21 #include "util/loading/load_param.h" 22 #include "compiler.h"23 22 #include "class_list.h" 24 23 … … 32 31 * @param root the element to load from 33 32 */ 34 BaseObject::BaseObject( )33 BaseObject::BaseObject(const std::string& objectName) 35 34 { 36 35 this->classID = CL_BASE_OBJECT; 37 36 this->className = "BaseObject"; 38 37 39 this->objectName = "";38 this->objectName = objectName; 40 39 this->classList = NULL; 41 40 this->xmlElem = NULL; -
branches/qt_gui/src/lib/lang/base_object.h
r7221 r7608 27 27 28 28 public: 29 BaseObject ();29 BaseObject (const std::string& objectName = ""); 30 30 virtual ~BaseObject (); 31 31 -
branches/qt_gui/src/lib/particles/dot_emitter.cc
r7302 r7608 23 23 #include "util/loading/factory.h" 24 24 #include "debug.h" 25 #include "stdlibincl.h"26 25 27 26 using namespace std; -
branches/qt_gui/src/lib/shell/shell_buffer.h
r7374 r7608 10 10 #include <stdarg.h> 11 11 #include <list> 12 #include " threading.h"12 #include "lib/util/threading.h" 13 13 14 14 #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 30 30 #include "globals.h" 31 31 32 #include "gui .h"32 #include "gui/qt_gui/qt_gui.h" 33 33 34 34 #include "parser/ini_parser/ini_parser.h" … … 280 280 PRINT(3)("> Initializing input\n"); 281 281 282 EventHandler::getInstance()-> 282 283 EventHandler::getInstance()->init(); 283 284 EventHandler::getInstance()->subscribe(GraphicsEngine::getInstance(), ES_ALL, EV_VIDEO_RESIZE); … … 319 320 // init the resource manager 320 321 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, ""))!= "") 322 323 { 323 324 if (!ResourceManager::getInstance()->setDataDir(dataPath) && … … 334 335 ResourceManager::getInstance()->getDataDir().c_str(), 335 336 this->configFileName.c_str(), 336 CONFIG_SECTION_ DATA,337 CONFIG_SECTION_GENERAL, 337 338 CONFIG_NAME_DATADIR ); 338 Gui* gui = newGui(argc, argv);339 OrxGui::Gui* gui = new OrxGui::QtGui(argc, argv); 339 340 gui->startGui(); 340 341 delete gui; … … 426 427 427 428 IniFilePrefsReader ini(ResourceManager::homeDirCheck(DEFAULT_CONFIG_FILE)); 429 Preferences::getInstance()->setUserIni(ResourceManager::homeDirCheck(DEFAULT_CONFIG_FILE)); 428 430 429 431 prefs.parse(argc, argv); … … 512 514 513 515 // 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) 518 520 return 0; 519 521 520 delete gui;521 522 } 522 523
Note: See TracChangeset
for help on using the changeset viewer.