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