2012-05-03 01:33:33 +00:00
|
|
|
#ifndef MWGUI_BOOKWINDOW_H
|
|
|
|
#define MWGUI_BOOKWINDOW_H
|
|
|
|
|
|
|
|
#include "window_base.hpp"
|
|
|
|
|
|
|
|
#include "../mwworld/ptr.hpp"
|
|
|
|
|
|
|
|
namespace MWGui
|
|
|
|
{
|
|
|
|
class BookWindow : public WindowBase
|
|
|
|
{
|
|
|
|
public:
|
|
|
|
BookWindow(WindowManager& parWindowManager);
|
|
|
|
void open(MWWorld::Ptr book);
|
2012-05-03 03:26:05 +00:00
|
|
|
|
|
|
|
protected:
|
|
|
|
void onNextPageButtonClicked (MyGUI::Widget* _sender);
|
|
|
|
void onPrevPageButtonClicked (MyGUI::Widget* _sender);
|
|
|
|
void onCloseButtonClicked (MyGUI::Widget* _sender);
|
|
|
|
void onTakeButtonClicked (MyGUI::Widget* _sender);
|
|
|
|
|
|
|
|
private:
|
|
|
|
MyGUI::Button* mCloseButton;
|
|
|
|
MyGUI::Button* mTakeButton;
|
|
|
|
MyGUI::Button* mNextPageButton;
|
|
|
|
MyGUI::Button* mPrevPageButton;
|
|
|
|
|
|
|
|
MWWorld::Ptr mBook;
|
2012-05-03 01:33:33 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
#endif
|
|
|
|
|