openmw-tes3coop/apps/openmw/mwgui/scrollwindow.hpp

44 lines
869 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 open (MWWorld::Ptr scroll);
virtual void exit();
void setTakeButtonShow(bool show);
void setInventoryAllowed(bool allowed);
protected:
void onCloseButtonClicked (MyGUI::Widget* _sender);
void onTakeButtonClicked (MyGUI::Widget* _sender);
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