mirror of
https://gitlab.com/OpenMW/openmw.git
synced 2025-01-09 12:42:11 +00:00
52 lines
1.3 KiB
C++
52 lines
1.3 KiB
C++
#ifndef MWGUI_JOURNAL_H
|
|
#define MWGUI_JOURNAL_H
|
|
|
|
#include <sstream>
|
|
#include <set>
|
|
#include <string>
|
|
#include <utility>
|
|
|
|
#include "window_base.hpp"
|
|
|
|
namespace MWGui
|
|
{
|
|
class WindowManager;
|
|
|
|
class JournalWindow : public WindowBase
|
|
{
|
|
public:
|
|
JournalWindow(WindowManager& parWindowManager);
|
|
void open();
|
|
|
|
virtual void setVisible(bool visible); // only used to play close sound
|
|
|
|
private:
|
|
void displayLeftText(std::string text);
|
|
void displayRightText(std::string text);
|
|
|
|
|
|
/**
|
|
*Called when next/prev button is used.
|
|
*/
|
|
void notifyNextPage(MyGUI::WidgetPtr _sender);
|
|
void notifyPrevPage(MyGUI::WidgetPtr _sender);
|
|
|
|
static const int lineHeight;
|
|
|
|
MyGUI::WidgetPtr skillAreaWidget, skillClientWidget;
|
|
MyGUI::ScrollBar* skillScrollerWidget;
|
|
int lastPos, clientHeight;
|
|
MyGUI::EditPtr mLeftTextWidget;
|
|
MyGUI::EditPtr mRightTextWidget;
|
|
MyGUI::ButtonPtr mPrevBtn;
|
|
MyGUI::ButtonPtr mNextBtn;
|
|
std::vector<std::string> leftPages;
|
|
std::vector<std::string> rightPages;
|
|
int mPageNumber; //store the number of the current left page
|
|
bool mVisible;
|
|
};
|
|
|
|
}
|
|
|
|
#endif
|