mirror of
https://gitlab.com/OpenMW/openmw.git
synced 2025-01-09 21:42:13 +00:00
d09f0610ea
Create WindowPinnableBase class for windows which should be allowed to be pinned. Add skin for pinnable windows - currently just a copy of normal window with 1 extra button (hopefully this can be improved later). Handle clicking on PinToggle button (pinning/unpinning a window).
25 lines
491 B
C++
25 lines
491 B
C++
#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:
|
|
WindowPinnableBase(const std::string& parLayout, WindowManager& parWindowManager);
|
|
void setVisible(bool b);
|
|
|
|
private:
|
|
void onWindowButtonPressed(MyGUI::Window* sender, const std::string& eventName);
|
|
|
|
bool mIsPinned;
|
|
};
|
|
}
|
|
|
|
#endif
|
|
|