mirror of
https://github.com/OpenMW/openmw.git
synced 2025-10-28 06:56:41 +00:00
45 lines
1.1 KiB
C++
45 lines
1.1 KiB
C++
#ifndef MWGUI_JOURNAL_H
|
|
#define MWGUI_JOURNAL_H
|
|
|
|
#include "windowbase.hpp"
|
|
|
|
#include <components/toutf8/toutf8.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
|
|
static std::unique_ptr<JournalWindow> create(
|
|
std::shared_ptr<JournalViewModel> model, bool questList, ToUTF8::FromType encoding);
|
|
|
|
/// destroy this instance of the JournalWindow implementation
|
|
virtual ~JournalWindow() {}
|
|
|
|
/// show/hide the journal window
|
|
void setVisible(bool newValue) override = 0;
|
|
|
|
std::string_view getWindowIdForLua() const override { return "Journal"; }
|
|
|
|
size_t mIndexRowCount;
|
|
|
|
std::vector<MyGUI::Button*> mButtons;
|
|
size_t mSelectedQuest = 0;
|
|
size_t mSelectedIndex = 0;
|
|
void setIndexControllerFocus(bool focused);
|
|
void setControllerFocusedQuest(size_t index);
|
|
};
|
|
}
|
|
|
|
#endif
|