Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

source: orxonox.OLD/branches/proxy/src/lib/gui/gl/glgui_textfield.h @ 9468

Last change on this file since 9468 was 9406, checked in by bensch, 18 years ago

orxonox/trunk: merged the proxy back

merged with commandsvn merge -r9346:HEAD https://svn.orxonox.net/orxonox/branches/proxy .

no conflicts

File size: 1.1 KB
Line 
1/*!
2 * @file glgui_textfield.h
3 * The gl_TEXTFIELD widget of th openglGUI
4 *
5 */
6
7#ifndef _GLGUI_TEXTFIELD_H
8#define _GLGUI_TEXTFIELD_H
9
10#include "glgui_widget.h"
11#include "multi_line_text.h"
12// FORWARD DECLARATION
13namespace OrxGui
14{
15
16  //! This is part of the openglGUI class
17  /**
18   *
19   */
20  class GLGuiTextfield : public GLGuiWidget
21  {
22
23  public:
24    GLGuiTextfield();
25    virtual ~GLGuiTextfield();
26
27    void setText(const std::string& text);
28    void append(const std::string& appendText);
29    void appendCharacter(char character);
30    void removeCharacters(unsigned int chars);
31    void clear();
32
33    void setChangedTextColor(const Color& color);
34
35    const std::string& text() const { return _text.text(); };
36
37
38    virtual void draw() const;
39
40    sigslot::signal1<const std::string&> textChanged;
41
42  protected:
43    virtual void updateFrontColor();
44    virtual void hiding();
45    virtual void showing();
46    virtual void resize();
47
48  private:
49    void init();
50    void changedText();
51
52
53  private:
54    MultiLineText      _text;
55
56    Color               _changedTextColor;
57  };
58}
59
60#endif /* _GLGUI_TEXTFIELD_H */
Note: See TracBrowser for help on using the repository browser.