- Timestamp:
- May 31, 2006, 12:02:50 AM (18 years ago)
- Location:
- branches/gui/src
- Files:
-
- 7 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/gui/src/lib/gui/gl_gui/glgui_box.cc
r7997 r8002 73 73 74 74 this->show(); 75 76 75 } 77 76 -
branches/gui/src/lib/gui/gl_gui/glgui_box.h
r7997 r8002 31 31 virtual void pack(GLGuiWidget* widget); 32 32 virtual void unpack(GLGuiWidget* widget); 33 virtual void clear(); 34 33 35 virtual void showAll(); 34 36 virtual void hideAll(); -
branches/gui/src/lib/gui/gl_gui/glgui_container.h
r7779 r8002 25 25 virtual ~GLGuiContainer(); 26 26 27 void init(); 28 29 30 void setBorderWidth(float borderwidth); 31 32 27 /** @brief packs a widget into this one. */ 33 28 virtual void pack(GLGuiWidget* widget) = 0; 34 29 /** unpacks a Widget from this container. @param widget the GLGuiWidget to unpack, if NULL all subwidgets will be unpackt. */ 35 30 virtual void unpack(GLGuiWidget* widget) = 0; 31 /** @brief clears all Widgets out. */ 32 virtual void clear() = 0; 33 36 34 virtual void hideAll() = 0; 37 35 virtual void showAll() = 0; … … 41 39 42 40 private: 43 41 void init(); 44 42 }; 45 43 } -
branches/gui/src/lib/gui/gl_gui/glgui_inputline.cc
r7998 r8002 21 21 { 22 22 /** 23 * standard constructor23 * @brief standard constructor 24 24 */ 25 25 GLGuiInputLine::GLGuiInputLine () … … 30 30 31 31 /** 32 * standard deconstructor33 */32 * @brief standard deconstructor 33 */ 34 34 GLGuiInputLine::~GLGuiInputLine() 35 35 {} … … 40 40 41 41 /** 42 * initializes the GUI-element42 * @brief initializes the GUI-element 43 43 */ 44 44 void GLGuiInputLine::init() … … 53 53 } 54 54 55 56 /** 57 * @brief sets the Text of the InputLine 58 * @param text The new Text. 59 */ 55 60 void GLGuiInputLine::setText(const std::string& text) 56 61 { … … 61 66 } 62 67 68 /** 69 * @brief appends text to the InputLine 70 * @param appendText the Text to append 71 */ 63 72 void GLGuiInputLine::append(const std::string& appendText) 64 73 { … … 68 77 } 69 78 79 80 /** 81 * @brief appends a Character to the InputLine 82 * @param character the Character to append. 83 */ 70 84 void GLGuiInputLine::appendCharacter(char character) 71 85 { … … 76 90 77 91 92 /** 93 * @brief Removes Characters from the InputLine 94 * @param chars The count of characters to remove 95 */ 78 96 void GLGuiInputLine::removeCharacters(unsigned int chars) 79 97 { … … 84 102 85 103 104 /** 105 * removes the focus from this Widget. 106 */ 86 107 void GLGuiInputLine::removedFocus() 87 108 { … … 92 113 93 114 115 /** 116 * Processes an Event. 117 * @param event The event to be processed 118 * @return true if the event was catched. 119 */ 94 120 bool GLGuiInputLine::processEvent(const Event& event) 95 121 { … … 130 156 131 157 158 /** 159 * @brief Resizes the Widget to the new Size-constraints. 160 */ 132 161 void GLGuiInputLine::resize() 133 162 { … … 139 168 140 169 170 /** 171 * ticks the InputLine 172 * @param dt the time passed. 173 */ 141 174 void GLGuiInputLine::tick(float dt) 142 175 { -
branches/gui/src/lib/gui/gl_gui/glgui_inputline.h
r8001 r8002 16 16 { 17 17 18 //! This is part of the openglGUI class18 //! This is InputLine part of the openglGUI class 19 19 /** 20 * The InputLine is a Widget, that displays a Line, that can be manipulated through 21 * Writing Text on it. 20 22 * 23 * Whenever the Text is changed the textChanged signal is emitted. 21 24 */ 22 25 class GLGuiInputLine : public OrxGui::GLGuiWidget … … 27 30 virtual ~GLGuiInputLine(); 28 31 29 void init();30 32 31 33 /** @returns the text of the inputLine */ … … 36 38 void appendCharacter(char character); 37 39 void removeCharacters(unsigned int chars); 38 const std::string& getName() const { return this->text.getText(); };39 40 40 41 41 virtual void removedFocus(); … … 48 48 DeclareSignal1(textChanged, const std::string&); 49 49 50 51 void resize();52 50 private: 51 void init(); 52 void resize(); 53 53 54 54 private: … … 60 60 float delayNext; //!< How much time must pass before next output. 61 61 62 static float repeatDelay; 63 static float repeatRate; 64 65 62 static float repeatDelay; //!< Repead Delay. 63 static float repeatRate; //!< Repeat Rate. 66 64 }; 67 65 } -
branches/gui/src/lib/gui/gl_gui/glgui_widget.h
r7988 r8002 88 88 void setBorderSize(float borderSize); 89 89 90 91 void setBackgroundColor(float x, float y, float z) { this->backMaterial().setDiffuse(x,y,z); }; 92 90 93 inline void drawRect(const Rect2D& rect) const { 91 94 glBegin(GL_QUADS); -
branches/gui/src/story_entities/simple_game_menu.cc
r8001 r8002 104 104 OrxGui::GLGuiSlider* slider = new OrxGui::GLGuiSlider(); 105 105 slider->connect(SIGNAL(slider, valueChanged), this, SLOT(SimpleGameMenu, TEST)); 106 slider->setRange(-1, 10); 106 slider->connect(SIGNAL(slider, valueChanged), slider, SLOT(OrxGui::GLGuiWidget, setBackgroundColor)); 107 slider->setRange(0, 1); 107 108 slider->setValue(slider->min()); 108 109 slider->show();
Note: See TracChangeset
for help on using the changeset viewer.