1
0
mirror of https://gitlab.com/OpenMW/openmw.git synced 2025-01-12 12:38:02 +00:00
OpenMW/apps/openmw/mwgui/journalwindow.hpp

50 lines
1.3 KiB
C++
Raw Normal View History

#ifndef MWGUI_JOURNAL_H
#define MWGUI_JOURNAL_H
#include <sstream>
#include <set>
#include <string>
#include <utility>
#include "window_base.hpp"
namespace MWGui
{
class JournalWindow : public WindowBase
{
public:
JournalWindow(MWBase::WindowManager& parWindowManager);
2011-12-29 16:58:58 +00:00
void open();
2012-05-07 17:42:04 +00:00
virtual void setVisible(bool visible); // only used to play close sound
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.
*/
void notifyNextPage(MyGUI::WidgetPtr _sender);
void notifyPrevPage(MyGUI::WidgetPtr _sender);
static const int sLineHeight;
MyGUI::WidgetPtr mSkillAreaWidget, mSkillClientWidget;
MyGUI::ScrollBar* mSkillScrollerWidget;
int mLastPos, mClientHeight;
MyGUI::EditPtr mLeftTextWidget;
MyGUI::EditPtr mRightTextWidget;
2012-01-16 16:46:25 +00:00
MyGUI::ButtonPtr mPrevBtn;
MyGUI::ButtonPtr mNextBtn;
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
2012-05-07 17:42:04 +00:00
bool mVisible;
};
}
2012-03-22 14:23:23 +00:00
#endif