OpenMW
Public Types | Public Member Functions | Protected Member Functions | Private Member Functions | Private Attributes
MWGui::DialogueWindow Class Reference

#include <dialogue.hpp>

List of all members.

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 Member Functions

 DialogueWindow ()
void notifyLinkClicked (TypesetBook::InteractiveId link)
void startDialogue (MWWorld::Ptr actor, std::string npcName)
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)

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

Private Member Functions

void updateOptions ()

Private Attributes

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

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


Member Function Documentation

void MWGui::DialogueWindow::addChoice ( const std::string &  choice,
int  id 
)
void MWGui::DialogueWindow::addMessageBox ( const std::string &  text)
void MWGui::DialogueWindow::addResponse ( const std::string &  text,
const std::string &  title = "" 
)
void MWGui::DialogueWindow::onByeClicked ( MyGUI::Widget *  _sender) [protected]
void MWGui::DialogueWindow::onMouseWheel ( MyGUI::Widget *  _sender,
int  _rel 
) [protected]
void MWGui::DialogueWindow::onReferenceUnavailable ( ) [protected, virtual]

called when reference has become unavailable

Implements MWGui::ReferenceInterface.

void MWGui::DialogueWindow::onScrollbarMoved ( MyGUI::ScrollBar *  sender,
size_t  pos 
) [protected]
void MWGui::DialogueWindow::onSelectTopic ( const std::string &  topic,
int  id 
) [protected]
void MWGui::DialogueWindow::onWindowResize ( MyGUI::Window *  _sender) [protected]
void MWGui::DialogueWindow::setKeywords ( std::list< std::string >  keyWord)
void MWGui::DialogueWindow::setServices ( int  services) [inline]
void MWGui::DialogueWindow::startDialogue ( MWWorld::Ptr  actor,
std::string  npcName 
)
void MWGui::DialogueWindow::updateHistory ( bool  scrollbar = false) [protected]

Member Data Documentation

std::map<std::string, int> MWGui::DialogueWindow::mChoices [private]
MyGUI::ProgressPtr MWGui::DialogueWindow::mDispositionBar [private]
MyGUI::EditBox* MWGui::DialogueWindow::mDispositionText [private]
std::vector<Link*> MWGui::DialogueWindow::mLinks [private]
MyGUI::ScrollBar* MWGui::DialogueWindow::mScrollBar [private]
std::map<std::string, Link*> MWGui::DialogueWindow::mTopicLinks [private]

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