OpenMW
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
textinput.hpp
Go to the documentation of this file.
1 #ifndef MWGUI_TEXT_INPUT_H
2 #define MWGUI_TEXT_INPUT_H
3 
4 #include "windowbase.hpp"
5 
6 namespace MWGui
7 {
8  class WindowManager;
9 }
10 
11 namespace MWGui
12 {
14  {
15  public:
17 
18  std::string getTextInput() const;
19  void setTextInput(const std::string &text);
20 
21  void setNextButtonShow(bool shown);
22  void setTextLabel(const std::string &label);
23  virtual void open();
24 
29 
30  protected:
31  void onOkClicked(MyGUI::Widget* _sender);
32  void onTextAccepted(MyGUI::Edit* _sender);
33 
34  private:
35  MyGUI::EditBox* mTextEdit;
36  };
37 }
38 #endif
TextInputDialog()
Definition: textinput.cpp:12
Definition: textinput.hpp:13
void onOkClicked(MyGUI::Widget *_sender)
Definition: textinput.cpp:54
void onTextAccepted(MyGUI::Edit *_sender)
Definition: textinput.cpp:65
std::string getTextInput() const
Definition: textinput.cpp:70
void setTextInput(const std::string &text)
Definition: textinput.cpp:75
EventHandle_WindowBase eventDone
Definition: textinput.hpp:28
virtual void open()
Notify that window has been made visible.
Definition: textinput.cpp:45
void setTextLabel(const std::string &label)
Definition: textinput.cpp:40
MyGUI::delegates::CMultiDelegate1< WindowBase * > EventHandle_WindowBase
Definition: windowbase.hpp:22
MyGUI::EditBox * mTextEdit
Definition: textinput.hpp:35
void setNextButtonShow(bool shown)
Definition: textinput.cpp:29
Definition: windowbase.hpp:41