Changeset 8035 in orxonox.OLD for trunk/src/lib/gui/gl_gui/glgui_inputline.h
- Timestamp:
- May 31, 2006, 4:20:51 PM (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/lib/gui/gl_gui/glgui_inputline.h
r7919 r8035 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(); 32 33 /** @returns the text of the inputLine */ 34 const std::string& getText() const { return this->text.getText(); }; 30 35 31 36 void setText(const std::string& text); … … 33 38 void appendCharacter(char character); 34 39 void removeCharacters(unsigned int chars); 35 const std::string& getName() const { return this->text.getText(); };36 37 40 38 41 virtual void removedFocus(); … … 43 46 virtual bool processEvent(const Event& event); 44 47 45 private: 46 void resize(); 48 DeclareSignal1(textChanged, const std::string&); 47 49 50 private: 51 void init(); 52 void resize(); 48 53 49 54 private: … … 55 60 float delayNext; //!< How much time must pass before next output. 56 61 57 static float repeatDelay; 58 static float repeatRate; 59 60 62 static float repeatDelay; //!< Repead Delay. 63 static float repeatRate; //!< Repeat Rate. 61 64 }; 62 65 }
Note: See TracChangeset
for help on using the changeset viewer.