OpenMW
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
Public Types | Public Member Functions | Protected Member Functions | Private Member Functions | Private Attributes | List of all members
MWGui::DialogueWindow Class Reference

#include <dialogue.hpp>

Inheritance diagram for MWGui::DialogueWindow:
Collaboration diagram for MWGui::DialogueWindow:

Public Types

typedef
MyGUI::delegates::CMultiDelegate0 
EventHandle_Void
 
- Public Types inherited from MWGui::WindowBase
typedef
MyGUI::delegates::CMultiDelegate1
< WindowBase * > 
EventHandle_WindowBase
 

Public Member Functions

 DialogueWindow ()
 
 ~DialogueWindow ()
 
void onTradeComplete ()
 
virtual bool exit ()
 Gracefully exits the window. More...
 
void notifyLinkClicked (TypesetBook::InteractiveId link)
 
void setPtr (const MWWorld::Ptr &actor)
 Open this object in the GUI, for windows that support it. More...
 
void setKeywords (std::list< std::string > keyWord)
 
void addResponse (const std::string &title, const std::string &text, bool needMargin=true)
 
void addMessageBox (const std::string &text)
 
void onFrame (float dt)
 Called every frame if the window is in an active GUI mode. More...
 
void clear ()
 Clear any state specific to the running game. More...
 
void updateTopics ()
 
- Public Member Functions inherited from MWGui::WindowBase
 WindowBase (const std::string &parLayout)
 
virtual MyGUI::Widget * getDefaultKeyFocus ()
 
virtual void onOpen ()
 Notify that window has been made visible. More...
 
virtual void onClose ()
 Notify that window has been hidden. More...
 
virtual void setVisible (bool visible)
 Sets the visibility of the window. More...
 
bool isVisible ()
 Returns the visibility state of the window. More...
 
void center ()
 
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 Member Functions inherited from MWGui::ReferenceInterface
 ReferenceInterface ()
 
virtual ~ReferenceInterface ()
 
void checkReferenceAvailable ()
 closes the window, if the MW-reference has become unavailable More...
 
virtual void resetReference ()
 

Protected Member Functions

void updateTopicsPane ()
 
bool isCompanion (const MWWorld::Ptr &actor)
 
bool isCompanion ()
 
void onSelectListItem (const std::string &topic, int id)
 
void onByeClicked (MyGUI::Widget *_sender)
 
void onMouseWheel (MyGUI::Widget *_sender, int _rel)
 
void onWindowResize (MyGUI::Window *_sender)
 
void onTopicActivated (const std::string &topicId)
 
void onChoiceActivated (int id)
 
void onGoodbyeActivated ()
 
void onScrollbarMoved (MyGUI::ScrollBar *sender, size_t pos)
 
void updateHistory (bool scrollbar=false)
 
virtual void onReferenceUnavailable ()
 called when reference has become unavailable More...
 

Private Member Functions

void updateDisposition ()
 
void restock ()
 
void deleteLater ()
 

Private Attributes

bool mIsCompanion
 
std::list< std::string > mKeywords
 
std::vector< DialogueText * > mHistoryContents
 
std::vector< std::pair
< std::string, int > > 
mChoices
 
bool mGoodbye
 
std::vector< Link * > mLinks
 
std::map< std::string, Link * > mTopicLinks
 
std::vector< Link * > mDeleteLater
 
KeywordSearchT mKeywordSearch
 
BookPagemHistory
 
Gui::MWListmTopicsList
 
MyGUI::ScrollBar * mScrollBar
 
MyGUI::ProgressBar * mDispositionBar
 
MyGUI::TextBox * mDispositionText
 
MyGUI::Button * mGoodbyeButton
 
PersuasionDialog mPersuasionDialog
 
MyGUI::IntSize mCurrentWindowSize
 
std::unique_ptr< ResponseCallbackmCallback
 
std::unique_ptr< ResponseCallbackmGreetingCallback
 

Additional Inherited Members

- Public Attributes inherited from MWGui::Layout
MyGUI::Widget * mMainWidget
 
- Protected Attributes inherited from MWGui::Layout
std::string mPrefix
 
std::string mLayoutName
 
MyGUI::VectorWidgetPtr mListWindowRoot
 
- Protected Attributes inherited from MWGui::ReferenceInterface
MWWorld::Ptr mPtr
 

Member Typedef Documentation

typedef MyGUI::delegates::CMultiDelegate0 MWGui::DialogueWindow::EventHandle_Void

Constructor & Destructor Documentation

MWGui::DialogueWindow::DialogueWindow ( )

Here is the call graph for this function:

MWGui::DialogueWindow::~DialogueWindow ( )

Here is the call graph for this function:

Member Function Documentation

void MWGui::DialogueWindow::addMessageBox ( const std::string &  text)

Here is the call graph for this function:

Here is the caller graph for this function:

void MWGui::DialogueWindow::addResponse ( const std::string &  title,
const std::string &  text,
bool  needMargin = true 
)

Here is the call graph for this function:

Here is the caller graph for this function:

void MWGui::DialogueWindow::clear ( )
inlinevirtual

Clear any state specific to the running game.

Reimplemented from MWGui::WindowBase.

Here is the call graph for this function:

void MWGui::DialogueWindow::deleteLater ( )
private

Here is the caller graph for this function:

bool MWGui::DialogueWindow::exit ( )
virtual

Gracefully exits the window.

Reimplemented from MWGui::WindowBase.

Here is the call graph for this function:

Here is the caller graph for this function:

bool MWGui::DialogueWindow::isCompanion ( const MWWorld::Ptr actor)
protected

Here is the call graph for this function:

bool MWGui::DialogueWindow::isCompanion ( )
protected

Here is the caller graph for this function:

void MWGui::DialogueWindow::notifyLinkClicked ( TypesetBook::InteractiveId  link)

Here is the caller graph for this function:

void MWGui::DialogueWindow::onByeClicked ( MyGUI::Widget *  _sender)
protected

Here is the call graph for this function:

Here is the caller graph for this function:

void MWGui::DialogueWindow::onChoiceActivated ( int  id)
protected

Here is the call graph for this function:

Here is the caller graph for this function:

void MWGui::DialogueWindow::onFrame ( float  duration)
virtual

Called every frame if the window is in an active GUI mode.

Reimplemented from MWGui::WindowBase.

Here is the call graph for this function:

void MWGui::DialogueWindow::onGoodbyeActivated ( )
protected

Here is the call graph for this function:

Here is the caller graph for this function:

void MWGui::DialogueWindow::onMouseWheel ( MyGUI::Widget *  _sender,
int  _rel 
)
protected

Here is the call graph for this function:

Here is the caller graph for this function:

void MWGui::DialogueWindow::onReferenceUnavailable ( )
protectedvirtual

called when reference has become unavailable

Implements MWGui::ReferenceInterface.

Here is the call graph for this function:

void MWGui::DialogueWindow::onScrollbarMoved ( MyGUI::ScrollBar *  sender,
size_t  pos 
)
protected

Here is the caller graph for this function:

void MWGui::DialogueWindow::onSelectListItem ( const std::string &  topic,
int  id 
)
protected

Here is the call graph for this function:

Here is the caller graph for this function:

void MWGui::DialogueWindow::onTopicActivated ( const std::string &  topicId)
protected

Here is the call graph for this function:

Here is the caller graph for this function:

void MWGui::DialogueWindow::onTradeComplete ( )

Here is the call graph for this function:

Here is the caller graph for this function:

void MWGui::DialogueWindow::onWindowResize ( MyGUI::Window *  _sender)
protected

Here is the call graph for this function:

Here is the caller graph for this function:

void MWGui::DialogueWindow::restock ( )
private

Here is the call graph for this function:

Here is the caller graph for this function:

void MWGui::DialogueWindow::setKeywords ( std::list< std::string >  keyWord)

Here is the call graph for this function:

Here is the caller graph for this function:

void MWGui::DialogueWindow::setPtr ( const MWWorld::Ptr ptr)
virtual

Open this object in the GUI, for windows that support it.

Reimplemented from MWGui::WindowBase.

Here is the call graph for this function:

void MWGui::DialogueWindow::updateDisposition ( )
private

Here is the call graph for this function:

Here is the caller graph for this function:

void MWGui::DialogueWindow::updateHistory ( bool  scrollbar = false)
protected

Here is the call graph for this function:

Here is the caller graph for this function:

void MWGui::DialogueWindow::updateTopics ( )

Here is the call graph for this function:

Here is the caller graph for this function:

void MWGui::DialogueWindow::updateTopicsPane ( )
protected

Here is the call graph for this function:

Here is the caller graph for this function:

Member Data Documentation

std::unique_ptr<ResponseCallback> MWGui::DialogueWindow::mCallback
private
std::vector<std::pair<std::string, int> > MWGui::DialogueWindow::mChoices
private
MyGUI::IntSize MWGui::DialogueWindow::mCurrentWindowSize
private
std::vector<Link*> MWGui::DialogueWindow::mDeleteLater
private
MyGUI::ProgressBar* MWGui::DialogueWindow::mDispositionBar
private
MyGUI::TextBox* MWGui::DialogueWindow::mDispositionText
private
bool MWGui::DialogueWindow::mGoodbye
private
MyGUI::Button* MWGui::DialogueWindow::mGoodbyeButton
private
std::unique_ptr<ResponseCallback> MWGui::DialogueWindow::mGreetingCallback
private
BookPage* MWGui::DialogueWindow::mHistory
private
std::vector<DialogueText*> MWGui::DialogueWindow::mHistoryContents
private
bool MWGui::DialogueWindow::mIsCompanion
private
std::list<std::string> MWGui::DialogueWindow::mKeywords
private
KeywordSearchT MWGui::DialogueWindow::mKeywordSearch
private
std::vector<Link*> MWGui::DialogueWindow::mLinks
private
PersuasionDialog MWGui::DialogueWindow::mPersuasionDialog
private
MyGUI::ScrollBar* MWGui::DialogueWindow::mScrollBar
private
std::map<std::string, Link*> MWGui::DialogueWindow::mTopicLinks
private
Gui::MWList* MWGui::DialogueWindow::mTopicsList
private

The documentation for this class was generated from the following files: