OpenMW
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
windowpinnablebase.hpp
Go to the documentation of this file.
1 #ifndef MWGUI_WINDOW_PINNABLE_BASE_H
2 #define MWGUI_WINDOW_PINNABLE_BASE_H
3 
4 #include "windowbase.hpp"
5 
6 namespace MWGui
7 {
8  class WindowManager;
9 
11  {
12  public:
13  WindowPinnableBase(const std::string& parLayout);
14  bool pinned() { return mPinned; }
15  void setPinned (bool pinned);
16  void setPinButtonVisible(bool visible);
17 
18  private:
19  void onPinButtonPressed(MyGUI::Widget* _sender, int left, int top, MyGUI::MouseButton id);
20  void onDoubleClick(MyGUI::Widget* _sender);
21 
22  protected:
23  virtual void onPinToggled() = 0;
24  virtual void onTitleDoubleClicked() = 0;
25 
26  MyGUI::Widget* mPinButton;
27  bool mPinned;
28  };
29 }
30 
31 #endif
bool pinned()
Definition: windowpinnablebase.hpp:14
MyGUI::Widget * mPinButton
Definition: windowpinnablebase.hpp:26
bool mPinned
Definition: windowpinnablebase.hpp:27
void setPinButtonVisible(bool visible)
Definition: windowpinnablebase.cpp:55
Definition: windowpinnablebase.hpp:10
virtual void onPinToggled()=0
void onDoubleClick(MyGUI::Widget *_sender)
Definition: windowpinnablebase.cpp:44
void setPinned(bool pinned)
Definition: windowpinnablebase.cpp:49
Definition: windowbase.hpp:16
virtual void onTitleDoubleClicked()=0
WindowPinnableBase(const std::string &parLayout)
Definition: windowpinnablebase.cpp:9
void onPinButtonPressed(MyGUI::Widget *_sender, int left, int top, MyGUI::MouseButton id)
Definition: windowpinnablebase.cpp:29