Changeset 5363 in orxonox.OLD for trunk/src/lib/gui/gl_gui
- Timestamp:
- Oct 11, 2005, 10:13:55 AM (19 years ago)
- Location:
- trunk/src/lib/gui/gl_gui
- Files:
-
- 6 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/lib/gui/gl_gui/Makefile.am
r5362 r5363 10 10 11 11 libORXglgui_a_SOURCES = glmenu/glmenu_imagescreen.cc \ 12 glgui_widget.cc 12 glgui_widget.cc \ 13 glgui_button.cc 13 14 14 15 noinst_HEADERS= glmenu/glmenu_imagescreen.h \ 15 16 glgui.h \ 16 glgui_widget.h 17 glgui_widget.h \ 18 glgui_button.h 19 17 20 18 21 -
trunk/src/lib/gui/gl_gui/Makefile.in
r5362 r5363 55 55 libORXglgui_a_LIBADD = 56 56 am_libORXglgui_a_OBJECTS = libORXglgui_a-glmenu_imagescreen.$(OBJEXT) \ 57 libORXglgui_a-glgui_widget.$(OBJEXT) 57 libORXglgui_a-glgui_widget.$(OBJEXT) \ 58 libORXglgui_a-glgui_button.$(OBJEXT) 58 59 libORXglgui_a_OBJECTS = $(am_libORXglgui_a_OBJECTS) 59 60 DEFAULT_INCLUDES = -I. -I$(srcdir) -I$(top_builddir) 60 61 depcomp = $(SHELL) $(top_srcdir)/depcomp 61 62 am__depfiles_maybe = depfiles 62 @AMDEP_TRUE@DEP_FILES = ./$(DEPDIR)/libORXglgui_a-glgui_widget.Po \ 63 @AMDEP_TRUE@DEP_FILES = ./$(DEPDIR)/libORXglgui_a-glgui_button.Po \ 64 @AMDEP_TRUE@ ./$(DEPDIR)/libORXglgui_a-glgui_widget.Po \ 63 65 @AMDEP_TRUE@ ./$(DEPDIR)/libORXglgui_a-glmenu_imagescreen.Po 64 66 CXXCOMPILE = $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) \ … … 186 188 libORXglgui_a_CPPFLAGS = -DBUILD_ORXONOX 187 189 libORXglgui_a_SOURCES = glmenu/glmenu_imagescreen.cc \ 188 glgui_widget.cc 190 glgui_widget.cc \ 191 glgui_button.cc 189 192 190 193 noinst_HEADERS = glmenu/glmenu_imagescreen.h \ 191 194 glgui.h \ 192 glgui_widget.h 195 glgui_widget.h \ 196 glgui_button.h 193 197 194 198 EXTRA_DIST = … … 240 244 -rm -f *.tab.c 241 245 246 @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libORXglgui_a-glgui_button.Po@am__quote@ 242 247 @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libORXglgui_a-glgui_widget.Po@am__quote@ 243 248 @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libORXglgui_a-glmenu_imagescreen.Po@am__quote@ … … 290 295 @AMDEP_TRUE@@am__fastdepCXX_FALSE@ $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ 291 296 @am__fastdepCXX_FALSE@ $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libORXglgui_a_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -c -o libORXglgui_a-glgui_widget.obj `if test -f 'glgui_widget.cc'; then $(CYGPATH_W) 'glgui_widget.cc'; else $(CYGPATH_W) '$(srcdir)/glgui_widget.cc'; fi` 297 298 libORXglgui_a-glgui_button.o: glgui_button.cc 299 @am__fastdepCXX_TRUE@ if $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libORXglgui_a_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -MT libORXglgui_a-glgui_button.o -MD -MP -MF "$(DEPDIR)/libORXglgui_a-glgui_button.Tpo" -c -o libORXglgui_a-glgui_button.o `test -f 'glgui_button.cc' || echo '$(srcdir)/'`glgui_button.cc; \ 300 @am__fastdepCXX_TRUE@ then mv -f "$(DEPDIR)/libORXglgui_a-glgui_button.Tpo" "$(DEPDIR)/libORXglgui_a-glgui_button.Po"; else rm -f "$(DEPDIR)/libORXglgui_a-glgui_button.Tpo"; exit 1; fi 301 @AMDEP_TRUE@@am__fastdepCXX_FALSE@ source='glgui_button.cc' object='libORXglgui_a-glgui_button.o' libtool=no @AMDEPBACKSLASH@ 302 @AMDEP_TRUE@@am__fastdepCXX_FALSE@ depfile='$(DEPDIR)/libORXglgui_a-glgui_button.Po' tmpdepfile='$(DEPDIR)/libORXglgui_a-glgui_button.TPo' @AMDEPBACKSLASH@ 303 @AMDEP_TRUE@@am__fastdepCXX_FALSE@ $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ 304 @am__fastdepCXX_FALSE@ $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libORXglgui_a_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -c -o libORXglgui_a-glgui_button.o `test -f 'glgui_button.cc' || echo '$(srcdir)/'`glgui_button.cc 305 306 libORXglgui_a-glgui_button.obj: glgui_button.cc 307 @am__fastdepCXX_TRUE@ if $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libORXglgui_a_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -MT libORXglgui_a-glgui_button.obj -MD -MP -MF "$(DEPDIR)/libORXglgui_a-glgui_button.Tpo" -c -o libORXglgui_a-glgui_button.obj `if test -f 'glgui_button.cc'; then $(CYGPATH_W) 'glgui_button.cc'; else $(CYGPATH_W) '$(srcdir)/glgui_button.cc'; fi`; \ 308 @am__fastdepCXX_TRUE@ then mv -f "$(DEPDIR)/libORXglgui_a-glgui_button.Tpo" "$(DEPDIR)/libORXglgui_a-glgui_button.Po"; else rm -f "$(DEPDIR)/libORXglgui_a-glgui_button.Tpo"; exit 1; fi 309 @AMDEP_TRUE@@am__fastdepCXX_FALSE@ source='glgui_button.cc' object='libORXglgui_a-glgui_button.obj' libtool=no @AMDEPBACKSLASH@ 310 @AMDEP_TRUE@@am__fastdepCXX_FALSE@ depfile='$(DEPDIR)/libORXglgui_a-glgui_button.Po' tmpdepfile='$(DEPDIR)/libORXglgui_a-glgui_button.TPo' @AMDEPBACKSLASH@ 311 @AMDEP_TRUE@@am__fastdepCXX_FALSE@ $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ 312 @am__fastdepCXX_FALSE@ $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libORXglgui_a_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -c -o libORXglgui_a-glgui_button.obj `if test -f 'glgui_button.cc'; then $(CYGPATH_W) 'glgui_button.cc'; else $(CYGPATH_W) '$(srcdir)/glgui_button.cc'; fi` 292 313 uninstall-info-am: 293 314 -
trunk/src/lib/gui/gl_gui/glgui_button.cc
r5360 r5363 16 16 #define DEBUG_SPECIAL_MODULE DEBUG_MODULE_GUI 17 17 18 #include "glgui_ .h"18 #include "glgui_button.h" 19 19 20 20 using namespace std; … … 23 23 * standard constructor 24 24 */ 25 GLGui ::GLGui()25 GLGuiButton::GLGuiButton () 26 26 { 27 27 this->init(); … … 33 33 * standard deconstructor 34 34 */ 35 GLGui ::~GLGui()35 GLGuiButton::~GLGuiButton() 36 36 { 37 37 … … 41 41 * initializes the GUI-element 42 42 */ 43 GLGui::init()43 void GLGuiButton::init() 44 44 { 45 this->setClassID(CL_GLGUI_ , "GLGui");45 this->setClassID(CL_GLGUI_BUTTON, "GLGuiButton"); 46 46 47 47 } 48 48 49 49 /** 50 * draws the GLGui 50 * draws the GLGuiButton 51 51 */ 52 void GLGui ::draw()52 void GLGuiButton::draw() 53 53 { 54 54 -
trunk/src/lib/gui/gl_gui/glgui_button.h
r5360 r5363 1 1 /*! 2 * @file glgui_ .h3 * The gl_ widget of th openglGUI2 * @file glgui_button.h 3 * The gl_BUTTON widget of th openglGUI 4 4 * 5 5 */ 6 6 7 #ifndef _GLGUI_ _H8 #define _GLGUI_ _H7 #ifndef _GLGUI_BUTTON_H 8 #define _GLGUI_BUTTON_H 9 9 10 #include "base_object.h" 10 #include "glgui_widget.h" 11 12 typedef enum 13 { 14 GLGui_Button_Active, 15 GLGui_Button_Inactive, 16 GLGui_Button_Pressed, 17 GLGui_Button_Released, 18 GLGui_Button_Activating, 19 GLGui_Button_Deactivating, 20 21 } GLGui_ButtonState; 11 22 12 23 // FORWARD DECLARATION … … 16 27 * 17 28 */ 18 class GLGui : public GLGui{29 class GLGuiButton : public GLGuiWidget { 19 30 20 31 public: 21 GLGui ();22 virtual ~GLGui ();32 GLGuiButton(); 33 virtual ~GLGuiButton(); 23 34 24 35 void init(); … … 27 38 28 39 private: 40 char* text; 41 GLGui_ButtonState state; 29 42 30 43 }; -
trunk/src/lib/gui/gl_gui/glgui_widget.cc
r5362 r5363 47 47 48 48 } 49 50 51 /**52 * draws the GLGuiWidget53 */54 void GLGuiWidget::draw()55 {56 57 }58 59 /**60 * updates a GLGuiWidget61 */62 void GLGuiWidget::update()63 {64 65 } -
trunk/src/lib/gui/gl_gui/glgui_widget.h
r5362 r5363 23 23 void init(); 24 24 25 virtual void draw(); 26 virtual void update(); 27 25 virtual void draw() = 0; 26 virtual void update() = 0; 28 27 29 28 private:
Note: See TracChangeset
for help on using the changeset viewer.