Changeset 7140 in orxonox.OLD
- Timestamp:
- Feb 14, 2006, 5:39:01 PM (19 years ago)
- Location:
- branches/qt_gui
- Files:
-
- 1 added
- 3 edited
- 5 copied
Legend:
- Unmodified
- Added
- Removed
-
branches/qt_gui/configure.ac
r7127 r7140 640 640 src/lib/gui/gtk_gui/Makefile 641 641 src/lib/gui/gl_gui/Makefile 642 src/lib/gui/qt_gui/Makefile 642 643 src/lib/parser/Makefile 643 644 src/lib/parser/tinyxml/Makefile -
branches/qt_gui/src/defs/class_id.h
r7123 r7140 312 312 CL_GLGUI_BAR = 0x00000b30, 313 313 314 // QT_GUI 315 CL_GUI_SAVEABLE = 0x00b10000, 316 CL_QTGUI_BUTTON = 0x00000ba0, 317 CL_QTGUI_PUSHBUTTON = 0x00000ba3, 318 CL_QTGUI_CHECKBUTTON = 0x00000ba4, 319 CL_QTGUI_RADIOBUTTON = 0x00000ba5, 320 CL_QTGUI_CONTAINER = 0x00b200a0, 321 CL_QTGUI_BOX = 0x00000ba7, 322 CL_QTGUI_FRAME = 0x00000ba8, 323 CL_QTGUI_WINDOW = 0x00000ba9, 324 CL_QTMENU_IMAGE_SCREEN = 0x00000ba0, 325 CL_QTGUI_BAR = 0x00000ba0, 326 314 327 /// AUDIO stuff (range from 0x00000c00 to 0x00000cff) 315 328 CL_SOUND_BUFFER = 0x00000c01, -
branches/qt_gui/src/lib/gui/Makefile.am
r5315 r7140 1 1 SUBDIRS = gtk_gui \ 2 gl_gui 2 gl_gui \ 3 qt_gui -
branches/qt_gui/src/lib/gui/qt_gui/Makefile.am
r7122 r7140 4 4 AM_LDFLAGS = 5 5 6 noinst_LIBRARIES = libORXglgui.a 7 8 libORXglgui_a_CPPFLAGS = -DBUILD_ORXONOX 6 noinst_LIBRARIES = libORXqtgui.a 9 7 10 8 11 libORXglgui_a_SOURCES = glmenu/glmenu_imagescreen.cc \ 12 glgui_handler.cc \ 13 glgui_mainwidget.cc \ 14 glgui_widget.cc \ 15 glgui_button.cc \ 16 glgui_pushbutton.cc \ 17 glgui_container.cc \ 18 glgui_bar.cc \ 19 glgui_box.cc \ 20 glgui_frame.cc \ 21 glgui_window.cc 9 libORXqtgui_a_CPPFLAGS = -DBUILD_ORXONOX 22 10 23 11 24 noinst_HEADERS= glmenu/glmenu_imagescreen.h \ 25 glgui.h \ 26 glgui_handler.h \ 27 glgui_mainwidget.h \ 28 glgui_widget.h \ 29 glgui_button.h \ 30 glgui_pushbutton.h \ 31 glgui_container.h \ 32 glgui_bar.h \ 33 glgui_box.h \ 34 glgui_frame.h \ 35 glgui_window.h 12 libORXqtgui_a_SOURCES = \ 13 gui_saveable.cc \ 14 qt_gui.cc 36 15 37 38 16 noinst_HEADERS= 39 17 40 18 EXTRA_DIST = -
branches/qt_gui/src/lib/gui/qt_gui/gui_saveable.cc
r7122 r7140 10 10 11 11 ### File Specific: 12 main-programmer: ...12 main-programmer: Benjamin Grauer 13 13 co-programmer: ... 14 14 */ … … 16 16 //#define DEBUG_SPECIAL_MODULE DEBUG_MODULE_ 17 17 18 #include " proto_class.h"18 #include "gui_saveable.h" 19 19 20 20 using namespace std; … … 23 23 /** 24 24 * standard constructor 25 * @todo this constructor is not jet implemented - do it26 25 */ 27 ProtoClass::ProtoClass()26 GuiSaveable::GuiSaveable () 28 27 { 29 this->setClassID(CL_ PROTO_ID, "ProtoClass");28 this->setClassID(CL_GUI_SAVEABLE, "GuiSaveable"); 30 29 31 /* If you make a new class, what is most probably the case when you write this file32 don't forget to:33 1. Add the new file new_class.cc to the ./src/Makefile.am34 2. Add the class identifier to ./src/class_id.h eg. CL_NEW_CLASS35 36 Advanced Topics:37 - if you want to let your object be managed via the ObjectManager make sure to read38 the object_manager.h header comments. You will use this most certanly only if you39 make many objects of your class, like a weapon bullet.40 */41 30 } 42 31 … … 45 34 * standard deconstructor 46 35 */ 47 ProtoClass::~ProtoClass()36 GuiSaveable::~GuiSaveable () 48 37 { 49 38 // delete what has to be deleted here -
branches/qt_gui/src/lib/gui/qt_gui/gui_saveable.h
r7122 r7140 1 1 /*! 2 * @file proto_class.h2 * @file gui_saveable.h 3 3 * @brief Definition of ... 4 4 */ 5 5 6 #ifndef _ PROTO_CLASS_H7 #define _ PROTO_CLASS_H6 #ifndef _GUI_SAVEABLE_H 7 #define _GUI_SAVEABLE_H 8 8 9 9 #include "base_object.h" 10 #include "multi_type.h" 10 11 11 12 // FORWARD DECLARATION 12 13 14 //! A class for ... 15 class GuiSaveable : virtual public BaseObject { 16 17 public: 18 virtual void load(const MultiType& value) = 0; 19 virtual const MultiType& save() = 0; 13 20 14 21 15 //! A class for ... 16 class ProtoClass : public BaseObject { 17 18 public: 19 ProtoClass(); 20 virtual ~ProtoClass(); 21 22 protected: 23 GuiSaveable(); 24 virtual ~GuiSaveable(); 22 25 23 26 private: 24 27 MultiType value; 25 28 }; 26 29 27 #endif /* _ PROTO_CLASS_H */30 #endif /* _GUI_SAVEABLE_H */ -
branches/qt_gui/src/lib/gui/qt_gui/qt_gui.cc
r7122 r7140 16 16 //#define DEBUG_SPECIAL_MODULE DEBUG_MODULE_ 17 17 18 #include " proto_class.h"18 #include "qt_gui.h" 19 19 20 20 using namespace std; 21 21 22 23 /**24 * standard constructor25 * @todo this constructor is not jet implemented - do it26 */27 ProtoClass::ProtoClass ()28 {29 this->setClassID(CL_PROTO_ID, "ProtoClass");30 31 /* If you make a new class, what is most probably the case when you write this file32 don't forget to:33 1. Add the new file new_class.cc to the ./src/Makefile.am34 2. Add the class identifier to ./src/class_id.h eg. CL_NEW_CLASS35 36 Advanced Topics:37 - if you want to let your object be managed via the ObjectManager make sure to read38 the object_manager.h header comments. You will use this most certanly only if you39 make many objects of your class, like a weapon bullet.40 */41 }42 43 44 /**45 * standard deconstructor46 */47 ProtoClass::~ProtoClass ()48 {49 // delete what has to be deleted here50 } -
branches/qt_gui/src/lib/gui/qt_gui/qt_gui.h
r7122 r7140 1 1 /*! 2 * @file proto_class.h2 * @file qt_gui.h 3 3 * @brief Definition of ... 4 4 */ 5 5 6 #ifndef _ PROTO_CLASS_H7 #define _ PROTO_CLASS_H6 #ifndef __QT_GUI_H 7 #define __QT_GUI_H 8 8 9 9 #include "base_object.h" 10 11 // FORWARD DECLARATION 10 #include <QtGui/qpushbutton.h> 11 #include <QtGui/qcheckbox> 12 #include <QtGui/qslider> 12 13 13 14 14 15 15 //! A class for ...16 class ProtoClass : public BaseObject {17 16 18 public: 19 ProtoClass(); 20 virtual ~ProtoClass(); 21 22 23 private: 24 25 }; 26 27 #endif /* _PROTO_CLASS_H */ 17 #endif /* __QT_GUI_H */
Note: See TracChangeset
for help on using the changeset viewer.