OpenMW
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
Classes | Public Types | Public Member Functions | Static Public Member Functions | Public Attributes | List of all members
MWGui::JournalViewModelImpl Struct Reference
Inheritance diagram for MWGui::JournalViewModelImpl:
Collaboration diagram for MWGui::JournalViewModelImpl:

Classes

struct  BaseEntry
 
struct  JournalEntryImpl
 
struct  TopicEntryImpl
 

Public Types

typedef
MWDialogue::KeywordSearch
< std::string, intptr_t
KeywordSearchT
 
- Public Types inherited from MWGui::JournalViewModel
typedef std::shared_ptr
< JournalViewModel
Ptr
 
typedef intptr_t QuestId
 
typedef intptr_t TopicId
 
typedef uint8_t const * Utf8Point
 
typedef std::pair< Utf8Point,
Utf8Point
Utf8Span
 

Public Member Functions

 JournalViewModelImpl ()
 
virtual ~JournalViewModelImpl ()
 
void load ()
 called prior to journal opening More...
 
void unload ()
 called prior to journal closing More...
 
void ensureKeyWordSearchLoaded () const
 
bool isEmpty () const
 returns true if their are no journal entries to display More...
 
void visitQuestNames (bool active_only, std::function< void(const std::string &, bool)> visitor) const
 walks the active and optionally completed, quests providing the name and completed status More...
 
void visitJournalEntries (const std::string &questName, std::function< void(JournalEntry const &)> visitor) const
 
void visitTopicName (TopicId topicId, std::function< void(Utf8Span)> visitor) const
 provides the name of the topic specified by its id More...
 
void visitTopicNamesStartingWith (Utf8Stream::UnicodeChar character, std::function< void(const std::string &) > visitor) const
 walks over the topics whose names start with the character More...
 
void visitTopicEntries (TopicId topicId, std::function< void(TopicEntry const &)> visitor) const
 walks over the topic entries for the topic specified by its identifier More...
 

Static Public Member Functions

static Utf8Span toUtf8Span (std::string const &str)
 
- Static Public Member Functions inherited from MWGui::JournalViewModel
static Ptr create ()
 

Public Attributes

bool mKeywordSearchLoaded
 
KeywordSearchT mKeywordSearch
 

Member Typedef Documentation

Constructor & Destructor Documentation

MWGui::JournalViewModelImpl::JournalViewModelImpl ( )
inline
virtual MWGui::JournalViewModelImpl::~JournalViewModelImpl ( )
inlinevirtual

Member Function Documentation

void MWGui::JournalViewModelImpl::ensureKeyWordSearchLoaded ( ) const
inline

Here is the call graph for this function:

Here is the caller graph for this function:

bool MWGui::JournalViewModelImpl::isEmpty ( ) const
inlinevirtual

returns true if their are no journal entries to display

Implements MWGui::JournalViewModel.

Here is the call graph for this function:

void MWGui::JournalViewModelImpl::load ( )
inlinevirtual

called prior to journal opening

Implements MWGui::JournalViewModel.

static Utf8Span MWGui::JournalViewModelImpl::toUtf8Span ( std::string const &  str)
inlinestatic
Todo:
replace this nasty BS

Here is the caller graph for this function:

void MWGui::JournalViewModelImpl::unload ( )
inlinevirtual

called prior to journal closing

Implements MWGui::JournalViewModel.

Here is the call graph for this function:

void MWGui::JournalViewModelImpl::visitJournalEntries ( const std::string &  questName,
std::function< void(JournalEntry const &)>  visitor 
) const
inlinevirtual

walks over the journal entries related to all quests with the given name If questName is empty, simply visits all journal entries

Implements MWGui::JournalViewModel.

Here is the call graph for this function:

void MWGui::JournalViewModelImpl::visitQuestNames ( bool  active_only,
std::function< void(const std::string &, bool)>  visitor 
) const
inlinevirtual

walks the active and optionally completed, quests providing the name and completed status

Implements MWGui::JournalViewModel.

Here is the call graph for this function:

void MWGui::JournalViewModelImpl::visitTopicEntries ( TopicId  topicId,
std::function< void(TopicEntry const &)>  visitor 
) const
inlinevirtual

walks over the topic entries for the topic specified by its identifier

Implements MWGui::JournalViewModel.

Here is the call graph for this function:

void MWGui::JournalViewModelImpl::visitTopicName ( TopicId  topicId,
std::function< void(Utf8Span)>  visitor 
) const
inlinevirtual

provides the name of the topic specified by its id

Implements MWGui::JournalViewModel.

Here is the call graph for this function:

void MWGui::JournalViewModelImpl::visitTopicNamesStartingWith ( Utf8Stream::UnicodeChar  character,
std::function< void(const std::string &) >  visitor 
) const
inlinevirtual

walks over the topics whose names start with the character

Implements MWGui::JournalViewModel.

Here is the call graph for this function:

Member Data Documentation

KeywordSearchT MWGui::JournalViewModelImpl::mKeywordSearch
mutable
bool MWGui::JournalViewModelImpl::mKeywordSearchLoaded
mutable

The documentation for this struct was generated from the following file: