1
0
mirror of https://gitlab.com/OpenMW/openmw.git synced 2025-01-25 15:35:23 +00:00
OpenMW/apps/openmw/mwgui/scrollwindow.hpp

46 lines
1.0 KiB
C++
Raw Normal View History

2012-05-03 03:33:33 +02:00
#ifndef MWGUI_SCROLLWINDOW_H
#define MWGUI_SCROLLWINDOW_H
#include "windowbase.hpp"
2012-05-03 03:33:33 +02:00
#include "../mwworld/ptr.hpp"
2015-01-10 03:56:06 +01:00
namespace Gui
{
class ImageButton;
}
2012-05-03 03:33:33 +02:00
namespace MWGui
{
class ScrollWindow : public BookWindowBase
2012-05-03 03:33:33 +02:00
{
public:
ScrollWindow ();
void setPtr (const MWWorld::Ptr& scroll) override;
void setInventoryAllowed(bool allowed);
void onResChange(int, int) override { center(); }
2017-09-23 22:07:30 +02:00
protected:
void onCloseButtonClicked (MyGUI::Widget* _sender);
void onTakeButtonClicked (MyGUI::Widget* _sender);
2015-03-11 20:33:55 +01: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 03:33:33 +02:00
};
}
#endif