Changeset 5365 in orxonox.OLD for trunk/src/lib/gui/gl_gui
- Timestamp:
- Oct 11, 2005, 11:52:55 PM (19 years ago)
- Location:
- trunk/src/lib/gui/gl_gui
- Files:
-
- 9 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/lib/gui/gl_gui/glgui_bar.cc
r5360 r5365 23 23 * standard constructor 24 24 */ 25 GLGui ::GLGui()25 GLGuiBar::GLGuiBar () 26 26 { 27 27 this->init(); … … 33 33 * standard deconstructor 34 34 */ 35 GLGui ::~GLGui()35 GLGuiBar::~GLGuiBar() 36 36 { 37 37 … … 41 41 * initializes the GUI-element 42 42 */ 43 GLGui ::init()43 GLGuiBar::init() 44 44 { 45 this->setClassID(CL_GLGUI_ , "GLGui");45 this->setClassID(CL_GLGUI_BAR, "GLGuiBar"); 46 46 47 47 } 48 48 49 49 /** 50 * draws the GLGui 50 * draws the GLGuiBar 51 51 */ 52 void GLGui ::draw()52 void GLGuiBar::draw() 53 53 { 54 54 -
trunk/src/lib/gui/gl_gui/glgui_bar.h
r5360 r5365 1 1 /*! 2 * @file glgui_ .h2 * @file glgui_bar.h 3 3 * The gl_ widget of th openglGUI 4 4 * 5 5 */ 6 6 7 #ifndef _GLGUI_ _H8 #define _GLGUI_ _H7 #ifndef _GLGUI_BAR_H 8 #define _GLGUI_BAR_H 9 9 10 #include " base_object.h"10 #include "glgui_widget.h" 11 11 12 12 // FORWARD DECLARATION 13 13 14 //! This is part of the openglGUI class14 //! This is Bar part of the openglGUI class 15 15 /** 16 16 * 17 17 */ 18 class GLGui : public GLGui{18 class GLGuiBar : public GLGuiWidget { 19 19 20 20 public: 21 GLGui ();22 virtual ~GLGui ();21 GLGuiBar(); 22 virtual ~GLGuiBar(); 23 23 24 24 void init(); -
trunk/src/lib/gui/gl_gui/glgui_slider.cc
r5360 r5365 16 16 #define DEBUG_SPECIAL_MODULE DEBUG_MODULE_GUI 17 17 18 #include "glgui_ .h"18 #include "glgui_slider.h" 19 19 20 20 using namespace std; … … 23 23 * standard constructor 24 24 */ 25 GLGui ::GLGui()25 GLGuiSlider::GLGuiSlider () 26 26 { 27 27 this->init(); … … 33 33 * standard deconstructor 34 34 */ 35 GLGui ::~GLGui()35 GLGuiSlider::~GLGuiSlider() 36 36 { 37 37 … … 41 41 * initializes the GUI-element 42 42 */ 43 GLGui::init()43 void GLGuiSlider::init() 44 44 { 45 this->setClassID(CL_GLGUI_ , "GLGui");45 this->setClassID(CL_GLGUI_SLIDER, "GLGuiSlider"); 46 46 47 47 } 48 48 49 49 /** 50 * draws the GLGui 50 * draws the GLGuiSlider 51 51 */ 52 void GLGui ::draw()52 void GLGuiSlider::draw() 53 53 { 54 54 -
trunk/src/lib/gui/gl_gui/glgui_slider.h
r5360 r5365 1 1 /*! 2 * @file glgui_ .h2 * @file glgui_slider.h 3 3 * The gl_ widget of th openglGUI 4 4 * 5 5 */ 6 6 7 #ifndef _GLGUI_ _H8 #define _GLGUI_ _H7 #ifndef _GLGUI_SLIDER_H 8 #define _GLGUI_SLIDER_H 9 9 10 10 #include "base_object.h" … … 16 16 * 17 17 */ 18 class GLGui : public GLGui{18 class GLGuiSlider : public GLGuiSlider { 19 19 20 20 public: 21 GLGui ();22 virtual ~GLGui ();21 GLGuiSlider(); 22 virtual ~GLGuiSlider(); 23 23 24 24 void init(); … … 30 30 }; 31 31 32 #endif /* _GLGUI_ _H */32 #endif /* _GLGUI_SLIDER_H */ -
trunk/src/lib/gui/gl_gui/glgui_text.cc
r5360 r5365 16 16 #define DEBUG_SPECIAL_MODULE DEBUG_MODULE_GUI 17 17 18 #include "glgui_.h" 18 #include "glgui_text.h" 19 20 #include "text.h" 19 21 20 22 using namespace std; … … 23 25 * standard constructor 24 26 */ 25 GLGui ::GLGui()27 GLGuiText::GLGuiText () 26 28 { 27 29 this->init(); … … 33 35 * standard deconstructor 34 36 */ 35 GLGui ::~GLGui()37 GLGuiText::~GLGuiText() 36 38 { 37 39 … … 41 43 * initializes the GUI-element 42 44 */ 43 GLGui::init()45 void GLGuiText::init() 44 46 { 45 this->setClassID(CL_GLGUI_, "GLGui ");47 this->setClassID(CL_GLGUI_, "GLGuiText"); 46 48 47 49 } 48 50 49 51 /** 50 * draws the GLGui 52 * draws the GLGuiText 51 53 */ 52 void GLGui ::draw()54 void GLGuiText::draw() 53 55 { 54 56 -
trunk/src/lib/gui/gl_gui/glgui_text.h
r5360 r5365 1 1 /*! 2 * @file glgui_ .h3 * The gl_ widget of th openglGUI2 * @file glgui_text.h 3 * The gl_TEXT widget of th openglGUI 4 4 * 5 5 */ 6 6 7 #ifndef _GLGUI_ _H8 #define _GLGUI_ _H7 #ifndef _GLGUI_TEXT_H 8 #define _GLGUI_TEXT_H 9 9 10 #include " base_object.h"10 #include "glgui_widget.h" 11 11 12 12 // FORWARD DECLARATION 13 class Text; 13 14 14 15 //! This is part of the openglGUI class … … 16 17 * 17 18 */ 18 class GLGui : public GLGui{19 class GLGuiText : public GLWidget { 19 20 20 21 public: 21 GLGui ();22 virtual ~GLGui ();22 GLGuiText(); 23 virtual ~GLGuiText(); 23 24 24 25 void init(); … … 27 28 28 29 private: 29 30 Text* text; 30 31 }; 31 32 32 #endif /* _GLGUI_ _H */33 #endif /* _GLGUI_TEXT_H */ -
trunk/src/lib/gui/gl_gui/glgui_textfield.cc
r5360 r5365 16 16 #define DEBUG_SPECIAL_MODULE DEBUG_MODULE_GUI 17 17 18 #include "glgui_ .h"18 #include "glgui_textfield_.h" 19 19 20 20 using namespace std; … … 23 23 * standard constructor 24 24 */ 25 GLGui ::GLGui()25 GLGuiTextfield::GLGuiTextfield () 26 26 { 27 27 this->init(); … … 33 33 * standard deconstructor 34 34 */ 35 GLGui ::~GLGui()35 GLGuiTextfield::~GLGuiTextfield() 36 36 { 37 37 … … 41 41 * initializes the GUI-element 42 42 */ 43 GLGui::init()43 void GLGuiTextfield::init() 44 44 { 45 this->setClassID(CL_GLGUI_, "GLGui ");45 this->setClassID(CL_GLGUI_, "GLGuiTextfield"); 46 46 47 47 } 48 48 49 49 /** 50 * draws the GLGui 50 * draws the GLGuiTextfield 51 51 */ 52 void GLGui ::draw()52 void GLGuiTextfield::draw() 53 53 { 54 54 -
trunk/src/lib/gui/gl_gui/glgui_textfield.h
r5360 r5365 1 1 /*! 2 * @file glgui_ .h2 * @file glgui_textfield.h 3 3 * The gl_ widget of th openglGUI 4 4 * 5 5 */ 6 6 7 #ifndef _GLGUI_ _H8 #define _GLGUI_ _H7 #ifndef _GLGUI_TEXTFIELD_H 8 #define _GLGUI_TEXTFIELD_H 9 9 10 #include " base_object.h"10 #include "glgui_widget.h" 11 11 12 12 // FORWARD DECLARATION 13 class Text; 14 template<class T> class tList; 13 15 14 16 //! This is part of the openglGUI class … … 16 18 * 17 19 */ 18 class GLGui : public GLGui{20 class GLGuiTextfield : public GLGuiWidget { 19 21 20 22 public: 21 GLGui ();22 virtual ~GLGui ();23 GLGuiTextfield(); 24 virtual ~GLGuiTextfield(); 23 25 24 26 void init(); … … 27 29 28 30 private: 31 tList<Text>* textLines; 29 32 30 33 }; -
trunk/src/lib/gui/gl_gui/glgui_widget.h
r5364 r5365 8 8 9 9 #include "element_2d.h" 10 #include "glincl.h" 10 11 11 12 // FORWARD DECLARATION 13 class Material; 12 14 13 15 //! This is part of the openglGUI class … … 16 18 */ 17 19 class GLGuiWidget : public Element2D { 18 19 20 public: 20 21 GLGuiWidget(); … … 31 32 32 33 private: 34 bool managed; //!< if this GUI-element should be managed. true means it gets deleted with the deletion of it's parent. 35 bool focusable; //!< If it can receive focus. 36 bool clickable; //!< if it can be clicked upon. 37 38 Material* backGround; 39 GLuint renderModel; 40 41 33 42 34 43 };
Note: See TracChangeset
for help on using the changeset viewer.