1
0
mirror of https://gitlab.com/OpenMW/openmw.git synced 2025-02-06 00:40:04 +00:00
OpenMW/apps/openmw/mwgui/journalwindow.hpp

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

38 lines
844 B
C++
Raw Normal View History

#ifndef MWGUI_JOURNAL_H
#define MWGUI_JOURNAL_H
#include "windowbase.hpp"
#include <components/to_utf8/to_utf8.hpp>
#include <memory>
namespace MWBase
{
class WindowManager;
}
namespace MWGui
{
struct JournalViewModel;
struct JournalWindow : public BookWindowBase
{
JournalWindow();
/// construct a new instance of the one JournalWindow implementation
2022-08-31 21:07:59 +02:00
static std::unique_ptr<JournalWindow> create(
2023-07-29 11:44:39 +04:00
std::shared_ptr<JournalViewModel> model, bool questList, ToUTF8::FromType encoding);
/// destroy this instance of the JournalWindow implementation
virtual ~JournalWindow() {}
2012-01-16 17:46:25 +01:00
/// show/hide the journal window
void setVisible(bool newValue) override = 0;
2023-07-09 08:42:09 +02:00
std::string_view getWindowIdForLua() const override { return "Journal"; }
};
}
2012-03-22 15:23:23 +01:00
#endif