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-04-01 17:36:57 +00:00
|
|
|
void setVisible(bool b);
|
2012-05-26 03:46:46 +00:00
|
|
|
bool pinned() { return mPinned; }
|
2012-04-01 17:36:57 +00:00
|
|
|
|
|
|
|
private:
|
|
|
|
void onWindowButtonPressed(MyGUI::Window* sender, const std::string& eventName);
|
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;
|
|
|
|
|
2012-04-01 20:51:49 +00:00
|
|
|
bool mPinned;
|
|
|
|
bool mVisible;
|
2012-04-01 17:36:57 +00:00
|
|
|
};
|
|
|
|
}
|
|
|
|
|
|
|
|
#endif
|