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 onOpen();
24 
25  bool exit() { return false; }
26 
31 
32  protected:
33  void onOkClicked(MyGUI::Widget* _sender);
34  void onTextAccepted(MyGUI::Edit* _sender);
35 
36  private:
37  MyGUI::EditBox* mTextEdit;
38  };
39 }
40 #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:73
void setTextInput(const std::string &text)
Definition: textinput.cpp:78
EventHandle_WindowBase eventDone
Definition: textinput.hpp:30
void setTextLabel(const std::string &label)
Definition: textinput.cpp:40
virtual void onOpen()
Notify that window has been made visible.
Definition: textinput.cpp:45
bool exit()
Gracefully exits the window.
Definition: textinput.hpp:25
MyGUI::delegates::CMultiDelegate1< WindowBase * > EventHandle_WindowBase
Definition: windowbase.hpp:29
MyGUI::EditBox * mTextEdit
Definition: textinput.hpp:37
void setNextButtonShow(bool shown)
Definition: textinput.cpp:29
Definition: windowbase.hpp:61