Changeset 8438 in orxonox.OLD for branches/gui
- Timestamp:
- Jun 15, 2006, 1:49:32 AM (19 years ago)
- Location:
- branches/gui/src/lib/gui/gl
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/gui/src/lib/gui/gl/glgui_button.h
r8419 r8438 41 41 virtual void draw() const; 42 42 43 DeclareSignal0(clicked); 43 44 DeclareSignal0(released); 44 DeclareSignal0(clicked);45 45 46 46 protected: -
branches/gui/src/lib/gui/gl/glgui_inputline.cc
r8437 r8438 65 65 { 66 66 this->_text.setText(text); 67 this->resize(); 68 69 emit(this->textChanged(this->_text.getText())); 67 this->changedText(); 70 68 } 71 69 … … 77 75 { 78 76 this->_text.append(appendText); 79 this->resize(); 80 emit(this->textChanged(this->_text.getText())); 77 this->changedText(); 81 78 } 82 79 … … 89 86 { 90 87 this->_text.appendCharacter(character); 91 this->resize(); 92 emit(this->textChanged(this->_text.getText())); 88 this->changedText(); 93 89 } 94 90 … … 101 97 { 102 98 this->_text.removeCharacters(chars); 99 this->changedText(); 100 } 101 102 /** 103 * @brief If the Text has been changed this function is called. 104 * 105 * This Function also emits the Signal textChanged. 106 */ 107 void GLGuiInputLine::changedText() 108 { 103 109 this->resize(); 110 this->setFrontColor(Color(1,1,1,1), true); 111 this->setFrontColor(Color(0,1,0,1)); 104 112 emit(this->textChanged(this->_text.getText())); 105 113 } -
branches/gui/src/lib/gui/gl/glgui_inputline.h
r8419 r8438 52 52 virtual void hiding(); 53 53 virtual void showing(); 54 virtual void resize(); 54 55 55 56 56 57 private: 57 58 void init(); 58 void resize();59 void changedText(); 59 60 60 61 private:
Note: See TracChangeset
for help on using the changeset viewer.