2013-01-27 12:07:28 -08:00
|
|
|
#ifndef MWGUI_JOURNALBOOKS_HPP
|
|
|
|
#define MWGUI_JOURNALBOOKS_HPP
|
|
|
|
|
|
|
|
#include "bookpage.hpp"
|
|
|
|
#include "journalviewmodel.hpp"
|
|
|
|
|
|
|
|
namespace MWGui
|
|
|
|
{
|
2014-03-17 14:15:52 +01:00
|
|
|
MWGui::BookTypesetter::Utf8Span to_utf8_span (char const * text);
|
2014-03-16 23:38:51 +01:00
|
|
|
|
2013-01-27 12:07:28 -08:00
|
|
|
struct JournalBooks
|
|
|
|
{
|
2013-05-01 10:28:59 +02:00
|
|
|
typedef TypesetBook::Ptr Book;
|
|
|
|
JournalViewModel::Ptr mModel;
|
2013-01-27 12:07:28 -08:00
|
|
|
|
2013-05-01 10:28:59 +02:00
|
|
|
JournalBooks (JournalViewModel::Ptr model);
|
2013-01-27 12:07:28 -08:00
|
|
|
|
2013-05-01 10:28:59 +02:00
|
|
|
Book createEmptyJournalBook ();
|
|
|
|
Book createJournalBook ();
|
|
|
|
Book createTopicBook (uintptr_t topicId);
|
2014-06-03 16:04:18 +02:00
|
|
|
Book createTopicBook (const std::string& topicId);
|
2014-06-03 00:16:32 +02:00
|
|
|
Book createQuestBook (const std::string& questName);
|
2013-05-01 10:28:59 +02:00
|
|
|
Book createTopicIndexBook ();
|
2013-01-27 12:07:28 -08:00
|
|
|
|
|
|
|
private:
|
2013-05-01 10:28:59 +02:00
|
|
|
BookTypesetter::Ptr createTypesetter ();
|
2013-01-27 12:07:28 -08:00
|
|
|
};
|
|
|
|
}
|
|
|
|
|
|
|
|
#endif // MWGUI_JOURNALBOOKS_HPP
|