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

enum  Services {
  Service_Trade = 0x01, Service_BuySpells = 0x02, Service_CreateSpells = 0x04, Service_Enchant = 0x08,
  Service_Training = 0x10, Service_Travel = 0x20, Service_Repair = 0x40
}
 
typedef
MyGUI::delegates::CMultiDelegate0 
EventHandle_Void
 
- Public Types inherited from MWGui::WindowBase
typedef
MyGUI::delegates::CMultiDelegate1
< WindowBase * > 
EventHandle_WindowBase
 

Public Member Functions

 DialogueWindow ()
 
virtual void exit ()
 Gracefully exits the window. More...
 
void notifyLinkClicked (TypesetBook::InteractiveId link)
 
void startDialogue (MWWorld::Ptr actor, std::string npcName, bool resetHistory)
 
void setKeywords (std::list< std::string > keyWord)
 
void addResponse (const std::string &text, const std::string &title="")
 
void addMessageBox (const std::string &text)
 
void addChoice (const std::string &choice, int id)
 
void clearChoices ()
 
void goodbye ()
 
void onFrame ()
 
void setServices (int services)
 
- Public Member Functions inherited from MWGui::WindowBase
 WindowBase (const std::string &parLayout)
 
virtual void open ()
 Notify that window has been made visible. More...
 
virtual void close ()
 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 ()
 
- 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 onSelectTopic (const std::string &topic, int id)
 
void onByeClicked (MyGUI::Widget *_sender)
 
void onMouseWheel (MyGUI::Widget *_sender, int _rel)
 
void onWindowResize (MyGUI::Window *_sender)
 
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 updateOptions ()
 
void restock ()
 

Private Attributes

int mServices
 
bool mEnabled
 
bool mGoodbye
 
std::vector< DialogueText * > mHistoryContents
 
std::vector< std::pair
< std::string, int > > 
mChoices
 
std::vector< Link * > mLinks
 
std::map< std::string, Link * > mTopicLinks
 
KeywordSearchT mKeywordSearch
 
BookPagemHistory
 
Gui::MWListmTopicsList
 
MyGUI::ScrollBar * mScrollBar
 
MyGUI::ProgressBar * mDispositionBar
 
MyGUI::EditBox * mDispositionText
 
PersuasionDialog mPersuasionDialog
 

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

Member Enumeration Documentation

Enumerator
Service_Trade 
Service_BuySpells 
Service_CreateSpells 
Service_Enchant 
Service_Training 
Service_Travel 
Service_Repair 

Constructor & Destructor Documentation

MWGui::DialogueWindow::DialogueWindow ( )

Here is the call graph for this function:

Member Function Documentation

void MWGui::DialogueWindow::addChoice ( const std::string &  choice,
int  id 
)

Here is the call graph for this function:

Here is the caller graph for this function:

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 &  text,
const std::string &  title = "" 
)

Here is the call graph for this function:

Here is the caller graph for this function:

void MWGui::DialogueWindow::clearChoices ( )

Here is the call graph for this function:

Here is the caller graph for this function:

void 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:

void MWGui::DialogueWindow::goodbye ( )

Here is the call graph for this function:

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::onFrame ( )

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::onSelectTopic ( 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::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::setServices ( int  services)
inline

Here is the caller graph for this function:

void MWGui::DialogueWindow::startDialogue ( MWWorld::Ptr  actor,
std::string  npcName,
bool  resetHistory 
)

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::updateOptions ( )
private

Here is the call graph for this function:

Here is the caller graph for this function:

Member Data Documentation

std::vector<std::pair<std::string, int> > MWGui::DialogueWindow::mChoices
private
MyGUI::ProgressBar* MWGui::DialogueWindow::mDispositionBar
private
MyGUI::EditBox* MWGui::DialogueWindow::mDispositionText
private
bool MWGui::DialogueWindow::mEnabled
private
bool MWGui::DialogueWindow::mGoodbye
private
BookPage* MWGui::DialogueWindow::mHistory
private
std::vector<DialogueText*> MWGui::DialogueWindow::mHistoryContents
private
KeywordSearchT MWGui::DialogueWindow::mKeywordSearch
private
std::vector<Link*> MWGui::DialogueWindow::mLinks
private
PersuasionDialog MWGui::DialogueWindow::mPersuasionDialog
private
MyGUI::ScrollBar* MWGui::DialogueWindow::mScrollBar
private
int MWGui::DialogueWindow::mServices
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: