2011-11-28 16:51:11 +01:00
|
|
|
#ifndef MWGUI_JOURNAL_H
|
|
|
|
#define MWGUI_JOURNAL_H
|
|
|
|
|
|
|
|
#include <sstream>
|
|
|
|
#include <set>
|
|
|
|
#include <string>
|
|
|
|
#include <utility>
|
|
|
|
|
|
|
|
#include "window_base.hpp"
|
2013-01-03 01:09:03 +01:00
|
|
|
#include "imagebutton.hpp"
|
2011-11-28 16:51:11 +01:00
|
|
|
|
|
|
|
namespace MWGui
|
|
|
|
{
|
|
|
|
class JournalWindow : public WindowBase
|
|
|
|
{
|
|
|
|
public:
|
2012-08-12 18:11:09 +02:00
|
|
|
JournalWindow(MWBase::WindowManager& parWindowManager);
|
2012-08-27 21:29:04 +02:00
|
|
|
virtual void open();
|
2012-12-30 17:06:17 +01:00
|
|
|
virtual void close();
|
2012-05-07 19:42:04 +02:00
|
|
|
|
2011-11-28 16:51:11 +01:00
|
|
|
private:
|
|
|
|
void displayLeftText(std::string text);
|
|
|
|
void displayRightText(std::string text);
|
|
|
|
|
2012-01-16 17:46:25 +01:00
|
|
|
|
|
|
|
/**
|
|
|
|
*Called when next/prev button is used.
|
|
|
|
*/
|
2013-01-03 01:09:03 +01:00
|
|
|
void notifyNextPage(MyGUI::Widget* _sender);
|
|
|
|
void notifyPrevPage(MyGUI::Widget* _sender);
|
2012-01-16 17:46:25 +01:00
|
|
|
|
2011-11-28 16:51:11 +01:00
|
|
|
MyGUI::EditPtr mLeftTextWidget;
|
|
|
|
MyGUI::EditPtr mRightTextWidget;
|
2013-01-03 01:09:03 +01:00
|
|
|
MWGui::ImageButton* mPrevBtn;
|
|
|
|
MWGui::ImageButton* mNextBtn;
|
2012-07-13 03:51:58 -07:00
|
|
|
std::vector<std::string> mLeftPages;
|
|
|
|
std::vector<std::string> mRightPages;
|
2012-01-16 17:46:25 +01:00
|
|
|
int mPageNumber; //store the number of the current left page
|
2011-11-28 16:51:11 +01:00
|
|
|
};
|
|
|
|
|
|
|
|
}
|
|
|
|
|
2012-03-22 15:23:23 +01:00
|
|
|
#endif
|