2013-04-10 04:32:05 +00:00
|
|
|
#ifndef MWGUI_WINDOW_PINNABLE_BASE_H
|
|
|
|
#define MWGUI_WINDOW_PINNABLE_BASE_H
|
|
|
|
|
|
|
|
#include "windowbase.hpp"
|
|
|
|
|
|
|
|
namespace MWGui
|
|
|
|
{
|
|
|
|
class WindowManager;
|
|
|
|
|
|
|
|
class WindowPinnableBase: public WindowBase
|
|
|
|
{
|
|
|
|
public:
|
2013-04-10 18:46:21 +00:00
|
|
|
WindowPinnableBase(const std::string& parLayout);
|
2013-04-10 04:32:05 +00:00
|
|
|
bool pinned() { return mPinned; }
|
2014-06-10 15:47:59 +00:00
|
|
|
void setPinned (bool pinned);
|
2013-08-07 21:30:08 +00:00
|
|
|
void setPinButtonVisible(bool visible);
|
2013-04-10 04:32:05 +00:00
|
|
|
|
|
|
|
private:
|
|
|
|
void onPinButtonClicked(MyGUI::Widget* _sender);
|
2014-08-04 15:03:47 +00:00
|
|
|
void onDoubleClick(MyGUI::Widget* _sender);
|
2013-04-10 04:32:05 +00:00
|
|
|
|
|
|
|
protected:
|
|
|
|
virtual void onPinToggled() = 0;
|
2014-08-04 15:03:47 +00:00
|
|
|
virtual void onTitleDoubleClicked() = 0;
|
2013-04-10 04:32:05 +00:00
|
|
|
|
|
|
|
MyGUI::Widget* mPinButton;
|
|
|
|
bool mPinned;
|
|
|
|
};
|
|
|
|
}
|
|
|
|
|
|
|
|
#endif
|