2012-05-03 01:33:33 +00:00
|
|
|
#ifndef MWGUI_SCROLLWINDOW_H
|
|
|
|
#define MWGUI_SCROLLWINDOW_H
|
|
|
|
|
|
|
|
#include "window_base.hpp"
|
|
|
|
|
|
|
|
#include "../mwworld/ptr.hpp"
|
|
|
|
|
|
|
|
namespace MWGui
|
|
|
|
{
|
|
|
|
class ScrollWindow : public WindowBase
|
|
|
|
{
|
|
|
|
public:
|
2012-08-12 16:11:09 +00:00
|
|
|
ScrollWindow (MWBase::WindowManager& parWindowManager);
|
2012-05-15 16:05:53 +00:00
|
|
|
|
2012-05-03 03:26:05 +00:00
|
|
|
void open (MWWorld::Ptr scroll);
|
2012-05-15 16:05:53 +00:00
|
|
|
void setTakeButtonShow(bool show);
|
2012-05-03 03:26:05 +00:00
|
|
|
|
|
|
|
protected:
|
|
|
|
void onCloseButtonClicked (MyGUI::Widget* _sender);
|
|
|
|
void onTakeButtonClicked (MyGUI::Widget* _sender);
|
|
|
|
|
|
|
|
private:
|
|
|
|
MyGUI::Button* mCloseButton;
|
|
|
|
MyGUI::Button* mTakeButton;
|
2012-05-07 22:39:52 +00:00
|
|
|
MyGUI::ScrollView* mTextView;
|
2012-05-03 03:26:05 +00:00
|
|
|
|
|
|
|
MWWorld::Ptr mScroll;
|
2012-05-03 01:33:33 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
#endif
|