Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 8035 in orxonox.OLD for trunk/src/lib/gui/gl_gui/glgui_inputline.h


Ignore:
Timestamp:
May 31, 2006, 4:20:51 PM (18 years ago)
Author:
bensch
Message:

gui: merged the gui back to the trunk

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/lib/gui/gl_gui/glgui_inputline.h

    r7919 r8035  
    1616{
    1717
    18   //! This is part of the openglGUI class
     18  //! This is InputLine part of the openglGUI class
    1919  /**
     20   * The InputLine is a Widget, that displays a Line, that can be manipulated through
     21   * Writing Text on it.
    2022   *
     23   * Whenever the Text is changed the textChanged signal is emitted.
    2124   */
    2225  class GLGuiInputLine : public OrxGui::GLGuiWidget
     
    2730    virtual ~GLGuiInputLine();
    2831
    29     void init();
     32
     33    /** @returns the text of the inputLine */
     34    const std::string& getText() const { return this->text.getText(); };
    3035
    3136    void setText(const std::string& text);
     
    3338    void appendCharacter(char character);
    3439    void removeCharacters(unsigned int chars);
    35     const std::string& getName() const { return this->text.getText(); };
    36 
    3740
    3841    virtual void removedFocus();
     
    4346    virtual bool processEvent(const Event& event);
    4447
    45     private:
    46       void resize();
     48    DeclareSignal1(textChanged, const std::string&);
    4749
     50  private:
     51    void init();
     52    void resize();
    4853
    4954  private:
     
    5560    float                   delayNext;        //!< How much time must pass before next output.
    5661
    57     static float            repeatDelay;
    58     static float            repeatRate;
    59 
    60 
     62    static float            repeatDelay;      //!< Repead Delay.
     63    static float            repeatRate;       //!< Repeat Rate.
    6164  };
    6265}
Note: See TracChangeset for help on using the changeset viewer.