1
0
Fork 1
mirror of https://github.com/TES3MP/openmw-tes3mp.git synced 2025-01-15 18:19:55 +00:00
openmw-tes3mp/apps/openmw/mwgui/scrollwindow.hpp

46 lines
1 KiB
C++
Raw Normal View History

2012-05-03 01:33:33 +00:00
#ifndef MWGUI_SCROLLWINDOW_H
#define MWGUI_SCROLLWINDOW_H
#include "windowbase.hpp"
2012-05-03 01:33:33 +00:00
#include "../mwworld/ptr.hpp"
2015-01-10 02:56:06 +00:00
namespace Gui
{
class ImageButton;
}
2012-05-03 01:33:33 +00:00
namespace MWGui
{
class ScrollWindow : public BookWindowBase
2012-05-03 01:33:33 +00:00
{
public:
ScrollWindow ();
void setPtr (const MWWorld::Ptr& scroll) override;
void setInventoryAllowed(bool allowed);
void onResChange(int, int) override { center(); }
2017-09-23 20:07:30 +00:00
protected:
void onCloseButtonClicked (MyGUI::Widget* _sender);
void onTakeButtonClicked (MyGUI::Widget* _sender);
2015-03-11 19:33:55 +00:00
void setTakeButtonShow(bool show);
void onKeyButtonPressed(MyGUI::Widget* sender, MyGUI::KeyCode key, MyGUI::Char character);
private:
Gui::ImageButton* mCloseButton;
Gui::ImageButton* mTakeButton;
MyGUI::ScrollView* mTextView;
MWWorld::Ptr mScroll;
bool mTakeButtonShow;
bool mTakeButtonAllowed;
2012-05-03 01:33:33 +00:00
};
}
#endif