OpenMW
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
Classes | Public Types | Public Member Functions | Public Attributes | List of all members
anonymous_namespace{journalwindow.cpp}::JournalWindowImpl Struct Reference
Inheritance diagram for anonymous_namespace{journalwindow.cpp}::JournalWindowImpl:
Collaboration diagram for anonymous_namespace{journalwindow.cpp}::JournalWindowImpl:

Classes

struct  AddNamesToList
 
struct  DisplayState
 
struct  SetNamesInactive
 

Public Types

typedef std::stack< DisplayStateDisplayStateStack
 
- Public Types inherited from MWGui::JournalBooks
typedef TypesetBook::Ptr Book
 
- Public Types inherited from MWGui::WindowBase
typedef
MyGUI::delegates::CMultiDelegate1
< WindowBase * > 
EventHandle_WindowBase
 

Public Member Functions

template<typename T >
TgetWidget (char const *name)
 
template<typename value_type >
void setText (char const *name, value_type const &value)
 
void setVisible (char const *name, bool visible)
 
void adviseButtonClick (char const *name, void(JournalWindowImpl::*Handler)(MyGUI::Widget *_sender))
 
void adviseKeyPress (char const *name, void(JournalWindowImpl::*Handler)(MyGUI::Widget *_sender, MyGUI::KeyCode key, MyGUI::Char character))
 
MWGui::BookPagegetPage (char const *name)
 
 JournalWindowImpl (MWGui::JournalViewModel::Ptr Model, bool questList, ToUTF8::FromType encoding)
 
void adjustButton (char const *name)
 
void onOpen ()
 Notify that window has been made visible. More...
 
void onClose ()
 Notify that window has been hidden. More...
 
void setVisible (bool newValue)
 show/hide the journal window More...
 
void setBookMode ()
 
void setOptionsMode ()
 
void pushBook (Book book, unsigned int page)
 
void replaceBook (Book book, unsigned int page)
 
void popBook ()
 
void updateCloseJournalButton ()
 
void updateShowingPages ()
 
void notifyKeyPress (MyGUI::Widget *sender, MyGUI::KeyCode key, MyGUI::Char character)
 
void notifyTopicClicked (intptr_t linkId)
 
void notifyTopicSelected (const std::string &topic, int id)
 
void notifyQuestClicked (const std::string &name, int id)
 
void notifyOptions (MyGUI::Widget *_sender)
 
void notifyJournal (MyGUI::Widget *_sender)
 
void notifyIndexLinkClicked (MWGui::TypesetBook::InteractiveId index)
 
void notifyTopics (MyGUI::Widget *_sender)
 
void notifyQuests (MyGUI::Widget *_sender)
 
void notifyShowAll (MyGUI::Widget *_sender)
 
void notifyShowActive (MyGUI::Widget *_sender)
 
void notifyCancel (MyGUI::Widget *_sender)
 
void notifyClose (MyGUI::Widget *_sender)
 
void notifyMouseWheel (MyGUI::Widget *sender, int rel)
 
void notifyNextPage (MyGUI::Widget *_sender)
 
void notifyPrevPage (MyGUI::Widget *_sender)
 
- Public Member Functions inherited from MWGui::JournalBooks
 JournalBooks (JournalViewModel::Ptr model, ToUTF8::FromType encoding)
 
Book createEmptyJournalBook ()
 
Book createJournalBook ()
 
Book createTopicBook (uintptr_t topicId)
 
Book createTopicBook (const std::string &topicId)
 
Book createQuestBook (const std::string &questName)
 
Book createTopicIndexBook ()
 
- Public Member Functions inherited from MWGui::JournalWindow
 JournalWindow ()
 
virtual ~JournalWindow ()
 destroy this instance of the JournalWindow implementation More...
 
- Public Member Functions inherited from MWGui::WindowBase
 WindowBase (const std::string &parLayout)
 
virtual MyGUI::Widget * getDefaultKeyFocus ()
 
virtual void setPtr (const MWWorld::Ptr &ptr)
 Open this object in the GUI, for windows that support it. More...
 
virtual void onFrame (float duration)
 Called every frame if the window is in an active GUI mode. More...
 
virtual bool exit ()
 Gracefully exits the window. More...
 
bool isVisible ()
 Returns the visibility state of the window. More...
 
void center ()
 
virtual void clear ()
 Clear any state specific to the running game. More...
 
virtual void onResChange (int width, int height)
 Called when GUI viewport changes size. More...
 
- Public Member Functions inherited from MWGui::Layout
 Layout (const std::string &_layout, MyGUI::Widget *_parent=nullptr)
 
virtual ~Layout ()
 
MyGUI::Widget * getWidget (const std::string &_name)
 
template<typename T >
void getWidget (T *&_widget, const std::string &_name)
 
void setCoord (int x, int y, int w, int h)
 
void setText (const std::string &name, const std::string &caption)
 
void setTitle (const std::string &title)
 

Public Attributes

DisplayStateStack mStates
 
Book mTopicIndexBook
 
bool mQuestMode
 
bool mOptionsMode
 
bool mTopicsMode
 
bool mAllQuests
 
- Public Attributes inherited from MWGui::JournalBooks
JournalViewModel::Ptr mModel
 
ToUTF8::FromType mEncoding
 
int mIndexPagesCount
 
- Public Attributes inherited from MWGui::Layout
MyGUI::Widget * mMainWidget
 

Additional Inherited Members

- Static Public Member Functions inherited from MWGui::JournalWindow
static JournalWindowcreate (std::shared_ptr< JournalViewModel > Model, bool questList, ToUTF8::FromType encoding)
 construct a new instance of the one JournalWindow implementation More...
 
- Protected Attributes inherited from MWGui::Layout
std::string mPrefix
 
std::string mLayoutName
 
MyGUI::VectorWidgetPtr mListWindowRoot
 

Member Typedef Documentation

typedef std::stack<DisplayState> anonymous_namespace{journalwindow.cpp}::JournalWindowImpl::DisplayStateStack

Constructor & Destructor Documentation

anonymous_namespace{journalwindow.cpp}::JournalWindowImpl::JournalWindowImpl ( MWGui::JournalViewModel::Ptr  Model,
bool  questList,
ToUTF8::FromType  encoding 
)
inline

Here is the call graph for this function:

Member Function Documentation

void anonymous_namespace{journalwindow.cpp}::JournalWindowImpl::adjustButton ( char const *  name)
inline

Here is the call graph for this function:

void anonymous_namespace{journalwindow.cpp}::JournalWindowImpl::adviseButtonClick ( char const *  name,
void(JournalWindowImpl::*)(MyGUI::Widget *_sender)  Handler 
)
inline
void anonymous_namespace{journalwindow.cpp}::JournalWindowImpl::adviseKeyPress ( char const *  name,
void(JournalWindowImpl::*)(MyGUI::Widget *_sender, MyGUI::KeyCode key, MyGUI::Char character)  Handler 
)
inline
MWGui::BookPage* anonymous_namespace{journalwindow.cpp}::JournalWindowImpl::getPage ( char const *  name)
inline
template<typename T >
T* anonymous_namespace{journalwindow.cpp}::JournalWindowImpl::getWidget ( char const *  name)
inline
void anonymous_namespace{journalwindow.cpp}::JournalWindowImpl::notifyCancel ( MyGUI::Widget *  _sender)
inline

Here is the call graph for this function:

void anonymous_namespace{journalwindow.cpp}::JournalWindowImpl::notifyClose ( MyGUI::Widget *  _sender)
inline

Here is the call graph for this function:

void anonymous_namespace{journalwindow.cpp}::JournalWindowImpl::notifyIndexLinkClicked ( MWGui::TypesetBook::InteractiveId  index)
inline

Here is the call graph for this function:

void anonymous_namespace{journalwindow.cpp}::JournalWindowImpl::notifyJournal ( MyGUI::Widget *  _sender)
inline

Here is the call graph for this function:

void anonymous_namespace{journalwindow.cpp}::JournalWindowImpl::notifyKeyPress ( MyGUI::Widget *  sender,
MyGUI::KeyCode  key,
MyGUI::Char  character 
)
inline
void anonymous_namespace{journalwindow.cpp}::JournalWindowImpl::notifyMouseWheel ( MyGUI::Widget *  sender,
int  rel 
)
inline
void anonymous_namespace{journalwindow.cpp}::JournalWindowImpl::notifyNextPage ( MyGUI::Widget *  _sender)
inline

Here is the call graph for this function:

void anonymous_namespace{journalwindow.cpp}::JournalWindowImpl::notifyOptions ( MyGUI::Widget *  _sender)
inline
void anonymous_namespace{journalwindow.cpp}::JournalWindowImpl::notifyPrevPage ( MyGUI::Widget *  _sender)
inline

Here is the call graph for this function:

void anonymous_namespace{journalwindow.cpp}::JournalWindowImpl::notifyQuestClicked ( const std::string &  name,
int  id 
)
inline

Here is the call graph for this function:

void anonymous_namespace{journalwindow.cpp}::JournalWindowImpl::notifyQuests ( MyGUI::Widget *  _sender)
inline

Here is the call graph for this function:

void anonymous_namespace{journalwindow.cpp}::JournalWindowImpl::notifyShowActive ( MyGUI::Widget *  _sender)
inline
void anonymous_namespace{journalwindow.cpp}::JournalWindowImpl::notifyShowAll ( MyGUI::Widget *  _sender)
inline
void anonymous_namespace{journalwindow.cpp}::JournalWindowImpl::notifyTopicClicked ( intptr_t  linkId)
inline

Here is the call graph for this function:

void anonymous_namespace{journalwindow.cpp}::JournalWindowImpl::notifyTopics ( MyGUI::Widget *  _sender)
inline

Here is the call graph for this function:

void anonymous_namespace{journalwindow.cpp}::JournalWindowImpl::notifyTopicSelected ( const std::string &  topic,
int  id 
)
inline
Todo:
get rid of intptr ids

Here is the call graph for this function:

void anonymous_namespace{journalwindow.cpp}::JournalWindowImpl::onClose ( )
inlinevirtual

Notify that window has been hidden.

Reimplemented from MWGui::WindowBase.

void anonymous_namespace{journalwindow.cpp}::JournalWindowImpl::onOpen ( )
inlinevirtual

Notify that window has been made visible.

Reimplemented from MWGui::WindowBase.

Here is the call graph for this function:

void anonymous_namespace{journalwindow.cpp}::JournalWindowImpl::popBook ( )
inline
void anonymous_namespace{journalwindow.cpp}::JournalWindowImpl::pushBook ( Book  book,
unsigned int  page 
)
inline
void anonymous_namespace{journalwindow.cpp}::JournalWindowImpl::replaceBook ( Book  book,
unsigned int  page 
)
inline
void anonymous_namespace{journalwindow.cpp}::JournalWindowImpl::setBookMode ( )
inline
void anonymous_namespace{journalwindow.cpp}::JournalWindowImpl::setOptionsMode ( )
inline
template<typename value_type >
void anonymous_namespace{journalwindow.cpp}::JournalWindowImpl::setText ( char const *  name,
value_type const &  value 
)
inline

Here is the call graph for this function:

void anonymous_namespace{journalwindow.cpp}::JournalWindowImpl::setVisible ( char const *  name,
bool  visible 
)
inline
void anonymous_namespace{journalwindow.cpp}::JournalWindowImpl::setVisible ( bool  newValue)
inlinevirtual

show/hide the journal window

Implements MWGui::JournalWindow.

void anonymous_namespace{journalwindow.cpp}::JournalWindowImpl::updateCloseJournalButton ( )
inline
void anonymous_namespace{journalwindow.cpp}::JournalWindowImpl::updateShowingPages ( )
inline

Here is the call graph for this function:

Member Data Documentation

bool anonymous_namespace{journalwindow.cpp}::JournalWindowImpl::mAllQuests
bool anonymous_namespace{journalwindow.cpp}::JournalWindowImpl::mOptionsMode
bool anonymous_namespace{journalwindow.cpp}::JournalWindowImpl::mQuestMode
DisplayStateStack anonymous_namespace{journalwindow.cpp}::JournalWindowImpl::mStates
Book anonymous_namespace{journalwindow.cpp}::JournalWindowImpl::mTopicIndexBook
bool anonymous_namespace{journalwindow.cpp}::JournalWindowImpl::mTopicsMode

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