2011-11-28 16:51:11 +01:00
|
|
|
#ifndef MWGUI_JOURNAL_H
|
|
|
|
#define MWGUI_JOURNAL_H
|
|
|
|
|
2017-09-22 20:46:08 +02:00
|
|
|
#include "windowbase.hpp"
|
|
|
|
|
2017-11-22 08:32:38 +04:00
|
|
|
#include <components/to_utf8/to_utf8.hpp>
|
|
|
|
|
2017-05-05 21:21:11 +02:00
|
|
|
#include <memory>
|
2013-01-27 12:16:46 -08:00
|
|
|
|
2013-01-13 13:03:11 -08:00
|
|
|
namespace MWBase { class WindowManager; }
|
2011-11-28 16:51:11 +01:00
|
|
|
|
|
|
|
namespace MWGui
|
|
|
|
{
|
2013-03-06 20:02:00 -08:00
|
|
|
struct JournalViewModel;
|
2013-01-27 12:16:46 -08:00
|
|
|
|
2019-04-01 21:47:12 +04:00
|
|
|
struct JournalWindow : public BookWindowBase
|
2011-11-28 16:51:11 +01:00
|
|
|
{
|
2017-09-22 20:46:08 +02:00
|
|
|
JournalWindow();
|
|
|
|
|
2013-01-13 13:03:11 -08:00
|
|
|
/// construct a new instance of the one JournalWindow implementation
|
2017-11-22 08:32:38 +04:00
|
|
|
static JournalWindow * create (std::shared_ptr <JournalViewModel> Model, bool questList, ToUTF8::FromType encoding);
|
2011-11-28 16:51:11 +01:00
|
|
|
|
2013-01-13 13:03:11 -08:00
|
|
|
/// destroy this instance of the JournalWindow implementation
|
2020-10-16 22:18:54 +04:00
|
|
|
virtual ~JournalWindow () {}
|
2012-01-16 17:46:25 +01:00
|
|
|
|
2013-01-13 13:03:11 -08:00
|
|
|
/// show/hide the journal window
|
2020-10-16 22:18:54 +04:00
|
|
|
void setVisible (bool newValue) override = 0;
|
2011-11-28 16:51:11 +01:00
|
|
|
};
|
|
|
|
}
|
|
|
|
|
2012-03-22 15:23:23 +01:00
|
|
|
#endif
|