Changeset 7917 in orxonox.OLD for branches/gui
- Timestamp:
- May 28, 2006, 2:29:53 PM (18 years ago)
- Location:
- branches/gui/src
- Files:
-
- 9 edited
- 1 copied
Legend:
- Unmodified
- Added
- Removed
-
branches/gui/src/lib/gui/gl_gui/Makefile.am
r7914 r7917 33 33 signal_connector.h \ 34 34 glgui.h \ 35 glgui_defs.h \ 35 36 glgui_handler.h \ 36 37 glgui_mainwidget.h \ -
branches/gui/src/lib/gui/gl_gui/glgui.h
r7901 r7917 21 21 #include "glgui_textfield.h" 22 22 23 namespace OrxGui24 {25 26 27 };28 29 30 31 32 23 33 24 #endif /* _GLGUI_H */ -
branches/gui/src/lib/gui/gl_gui/glgui_bar.cc
r7779 r7917 46 46 this->setClassID(CL_GLGUI_BAR, "GLGuiBar"); 47 47 48 this->frontMat .setDiffuse(1,1,1);48 this->frontMaterial().setDiffuse(1,1,1); 49 49 50 50 this->setSize2D(50, 10); … … 64 64 GLGuiWidget::draw(); 65 65 66 this->frontMat .select();66 this->frontMaterial().select(); 67 67 glBegin(GL_QUADS); 68 68 -
branches/gui/src/lib/gui/gl_gui/glgui_defs.h
r7916 r7917 1 1 /*! 2 * @file glgui .h3 * includes all the Files the GLGui knows.2 * @file glgui_defs.h 3 * Definitions for the GLGui. 4 4 */ 5 5 6 #ifndef _GLGUI_ H7 #define _GLGUI_ H6 #ifndef _GLGUI_DEFS_H 7 #define _GLGUI_DEFS_H 8 8 9 #include "glgui_handler.h" 10 11 #include "glgui_widget.h" 12 13 #include "glgui_bar.h" 14 #include "glgui_box.h" 15 #include "glgui_button.h" 16 #include "glgui_checkbutton.h" 17 //#include "glgui_colorselector.h" 18 #include "glgui_pushbutton.h" 19 #include "glgui_cursor.h" 20 #include "glgui_inputline.h" 21 #include "glgui_textfield.h" 22 9 /// TODO MOVE TO ORXGUI_TYPES 23 10 namespace OrxGui 24 11 { 25 26 12 //! An enumeration for the Orientation of an Element. 13 typedef enum { 14 Horizontal, //!< Horizontal Orientation. 15 Vertical //!< Vertical Orientation. 16 } Orientation; 27 17 }; 28 18 29 19 30 31 32 33 #endif /* _GLGUI_H */ 20 #endif /* _GLGUI_DEFS_H */ -
branches/gui/src/lib/gui/gl_gui/glgui_slider.h
r7914 r7917 9 9 10 10 #include "glgui_widget.h" 11 11 #include "glgui_defs.h" 12 12 13 13 namespace OrxGui … … 31 31 32 32 private: 33 Orientation orientation; 34 35 float _maxValue; 36 float _minValue; 37 38 float _value; 33 39 34 40 }; -
branches/gui/src/lib/gui/gl_gui/glgui_widget.cc
r7903 r7917 65 65 this->backMat.setDiffuse(1.0, 1.0, 1.0); 66 66 this->frontMat.setDiffuse(1.0, 0.0, 0.0); 67 68 this->frontModel = 0;69 this->backModel = 0;70 71 67 72 68 this->widgetSignals.resize(SignalCount, SignalConnector()); -
branches/gui/src/lib/gui/gl_gui/glgui_widget.h
r7899 r7917 8 8 9 9 #include "element_2d.h" 10 #include "event.h" 10 #include "rect2D.h" 11 11 12 #include "material.h" 12 13 14 #include "event.h" 15 #include "signal_connector.h" 16 13 17 #include "glincl.h" 14 #include "signal_connector.h" 18 15 19 #include <vector> 16 20 … … 117 121 118 122 119 protected: 123 private: 124 /// LOOKS 120 125 Material backMat; 121 GLuint backModel;126 Rect2D backRect; 122 127 123 128 Material frontMat; 124 GLuint frontModel;129 Rect2D frontRect; 125 130 126 private: 131 132 /// SIGNALS 127 133 std::vector<SignalConnector> widgetSignals; 128 134 135 /// EVENTS 129 136 bool _focusable; //!< If this widget can receive focus. 130 137 bool _clickable; //!< if this widget can be clicked upon. -
branches/gui/src/lib/math/rect2D.h
r7915 r7917 24 24 #define __RECT2D_H_ 25 25 26 #include <cmath>27 26 #include "vector2D.h" 28 27 … … 34 33 { 35 34 public: 35 Rect2D() { }; 36 36 Rect2D(float x, float y, float width, float height); 37 37 Rect2D(const Vector2D& topLeft, const Vector2D& bottomRight ); -
branches/gui/src/lib/math/vector2D.h
r7914 r7917 24 24 #define __VECTOR2D_H_ 25 25 26 #include < math.h>26 #include <cmath> 27 27 #include "compiler.h" 28 28 -
branches/gui/src/story_entities/simple_game_menu.cc
r7913 r7917 66 66 /// GUI 67 67 ///(this is as modular as it is possible). 68 /*69 68 OrxGui::GLGuiPushButton* pb = new OrxGui::GLGuiPushButton("PUSH ME"); 70 69 pb->show(); … … 87 86 OrxGui::GLGuiHandler::getInstance()->activateCursor(); 88 87 OrxGui::GLGuiHandler::getInstance()->activate(); 89 */90 88 ///// 91 89 … … 109 107 if( this->dataTank) 110 108 delete this->dataTank; 111 //delete OrxGui::GLGuiHandler::getInstance( );109 delete OrxGui::GLGuiHandler::getInstance( ); 112 110 } 113 111
Note: See TracChangeset
for help on using the changeset viewer.