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

45 lines
899 B
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 WindowBase
{
public:
ScrollWindow ();
void setPtr (const MWWorld::Ptr& scroll);
void setInventoryAllowed(bool allowed);
2017-09-23 20:07:30 +00:00
void onResChange(int, int) { center(); }
protected:
void onCloseButtonClicked (MyGUI::Widget* _sender);
void onTakeButtonClicked (MyGUI::Widget* _sender);
2015-03-11 19:33:55 +00:00
void setTakeButtonShow(bool show);
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