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

44 lines
896 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 openScroll (MWWorld::Ptr scroll, bool showTakeButton);
virtual void exit();
void setInventoryAllowed(bool allowed);
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