OpenMW
apps/openmw/mwgui/windowpinnablebase.hpp
Go to the documentation of this file.
00001 #ifndef MWGUI_WINDOW_PINNABLE_BASE_H
00002 #define MWGUI_WINDOW_PINNABLE_BASE_H
00003 
00004 #include "windowbase.hpp"
00005 
00006 namespace MWGui
00007 {
00008     class WindowManager;
00009 
00010     class WindowPinnableBase: public WindowBase
00011     {
00012     public:
00013         WindowPinnableBase(const std::string& parLayout);
00014         bool pinned() { return mPinned; }
00015         void setPinButtonVisible(bool visible);
00016 
00017     private:
00018         void onPinButtonClicked(MyGUI::Widget* _sender);
00019 
00020     protected:
00021         virtual void onPinToggled() = 0;
00022 
00023         MyGUI::Widget* mPinButton;
00024         bool mPinned;
00025     };
00026 }
00027 
00028 #endif