2012-04-01 17:36:57 +00:00
|
|
|
#ifndef MWGUI_WINDOW_PINNABLE_BASE_H
|
|
|
|
#define MWGUI_WINDOW_PINNABLE_BASE_H
|
|
|
|
|
|
|
|
#include "window_base.hpp"
|
|
|
|
|
|
|
|
namespace MWGui
|
|
|
|
{
|
|
|
|
class WindowManager;
|
|
|
|
|
|
|
|
class WindowPinnableBase: public WindowBase
|
|
|
|
{
|
|
|
|
public:
|
2012-08-12 16:11:09 +00:00
|
|
|
WindowPinnableBase(const std::string& parLayout, MWBase::WindowManager& parWindowManager);
|
2012-05-26 03:46:46 +00:00
|
|
|
bool pinned() { return mPinned; }
|
2012-04-01 17:36:57 +00:00
|
|
|
|
|
|
|
private:
|
2013-02-17 15:29:38 +00:00
|
|
|
void onPinButtonClicked(MyGUI::Widget* _sender);
|
2012-08-12 16:11:09 +00:00
|
|
|
|
2012-04-01 20:51:49 +00:00
|
|
|
protected:
|
2012-04-05 22:17:23 +00:00
|
|
|
virtual void onPinToggled() = 0;
|
|
|
|
|
2013-02-17 01:56:07 +00:00
|
|
|
MyGUI::Widget* mPinButton;
|
2012-04-01 20:51:49 +00:00
|
|
|
bool mPinned;
|
|
|
|
bool mVisible;
|
2012-04-01 17:36:57 +00:00
|
|
|
};
|
|
|
|
}
|
|
|
|
|
|
|
|
#endif
|