1 #ifndef MWGUI_DIALOGE_H
2 #define MWGUI_DIALOGE_H
9 #include "../mwdialogue/keywordsearch.hpp"
23 class DialogueHistoryViewModel;
44 void onCancel (MyGUI::Widget* sender);
85 Response(
const std::string& text,
const std::string& title =
"");
93 Message(
const std::string& text);
112 void addResponse (
const std::string& text,
const std::string& title=
"");
116 void addChoice(
const std::string& choice,
int id);
159 std::vector<std::pair<std::string, int> >
mChoices;
virtual void open()
Notify that window has been made visible.
Definition: dialogue.cpp:88
void onCancel(MyGUI::Widget *sender)
Definition: dialogue.cpp:65
void onByeClicked(MyGUI::Widget *_sender)
Definition: dialogue.cpp:316
Definition: dialogue.hpp:128
virtual void onReferenceUnavailable()
called when reference has become unavailable
Definition: dialogue.cpp:633
int mChoiceId
Definition: dialogue.hpp:65
void setKeywords(std::list< std::string > keyWord)
Definition: dialogue.cpp:407
std::map< std::string, Link * > mTopicLinks
Definition: dialogue.hpp:162
void onMouseWheel(MyGUI::Widget *_sender, int _rel)
Definition: dialogue.cpp:307
KeywordSearchT mKeywordSearch
Definition: dialogue.hpp:164
a very simple list widget that supports word-wrapping entries
Definition: list.hpp:12
MyGUI::Button * mCancelButton
Definition: dialogue.hpp:35
Definition: dialogue.hpp:127
void updateHistory(bool scrollbar=false)
Definition: dialogue.cpp:466
Definition: dialogue.hpp:26
std::string mTitle
Definition: dialogue.hpp:88
MyGUI::TextBox * mGoldLabel
Definition: dialogue.hpp:42
BookPage * mHistory
Definition: dialogue.hpp:166
void addResponse(const std::string &text, const std::string &title="")
Definition: dialogue.cpp:553
Definition: dialogue.hpp:130
void notifyLinkClicked(TypesetBook::InteractiveId link)
Definition: dialogue.cpp:543
bool mGoodbye
Definition: dialogue.hpp:156
DialogueWindow()
Definition: dialogue.cpp:250
Definition: dialogue.hpp:69
virtual void exit()
Gracefully exits the window.
Definition: dialogue.cpp:286
MyGUI::EditBox * mDispositionText
Definition: dialogue.hpp:170
void onWindowResize(MyGUI::Window *_sender)
Definition: dialogue.cpp:301
std::vector< Link * > mLinks
Definition: dialogue.hpp:161
MyGUI::Button * mBribe1000Button
Definition: dialogue.hpp:41
Definition: dialogue.hpp:97
MyGUI::Button * mIntimidateButton
Definition: dialogue.hpp:37
void startDialogue(MWWorld::Ptr actor, std::string npcName, bool resetHistory)
Definition: dialogue.cpp:364
void addTopicLink(BookTypesetter::Ptr typesetter, intptr_t topicId, size_t begin, size_t end) const
Definition: dialogue.cpp:200
Topic(const std::string &id)
Definition: dialogue.hpp:57
MyGUI::Button * mTauntButton
Definition: dialogue.hpp:38
Definition: dialogue.hpp:76
Definition: dialogue.hpp:49
Gui::MWList * mTopicsList
Definition: dialogue.hpp:167
virtual void activated()
Definition: dialogue.cpp:227
virtual void activated()
Definition: dialogue.cpp:241
std::vector< std::pair< std::string, int > > mChoices
Definition: dialogue.hpp:159
void clearChoices()
Definition: dialogue.cpp:588
std::string mTopicId
Definition: dialogue.hpp:58
Definition: dialogue.hpp:62
virtual void write(BookTypesetter::Ptr typesetter, KeywordSearchT *keywordSearch, std::map< std::string, Link * > &topicLinks) const
Definition: dialogue.cpp:218
virtual ~DialogueText()
Definition: dialogue.hpp:78
Definition: dialogue.hpp:133
void addMessageBox(const std::string &text)
Definition: dialogue.cpp:576
MyGUI::delegates::CMultiDelegate0 EventHandle_Void
Definition: dialogue.hpp:105
Definition: dialogue.hpp:83
MWDialogue::KeywordSearch< std::string, intptr_t > KeywordSearchT
Definition: dialogue.hpp:74
MyGUI::Button * mBribe10Button
Definition: dialogue.hpp:39
Response(const std::string &text, const std::string &title="")
Definition: dialogue.cpp:110
Choice(int id)
Definition: dialogue.hpp:64
void onPersuade(MyGUI::Widget *sender)
Definition: dialogue.cpp:70
Message(const std::string &text)
Definition: dialogue.cpp:213
virtual void activated()
Definition: dialogue.cpp:234
Definition: dialogue.hpp:129
Definition: dialogue.hpp:131
void onScrollbarMoved(MyGUI::ScrollBar *sender, size_t pos)
Definition: dialogue.cpp:548
boost::shared_ptr< BookTypesetter > Ptr
Definition: bookpage.hpp:36
void goodbye()
Definition: dialogue.cpp:626
Definition: windowbase.hpp:16
MyGUI::ScrollBar * mScrollBar
Definition: dialogue.hpp:168
An interface to the BookPage widget.
Definition: bookpage.hpp:99
void restock()
Definition: dialogue.cpp:393
std::vector< DialogueText * > mHistoryContents
Definition: dialogue.hpp:158
this class is intended for GUI interfaces that access an MW-Reference for example dialogue window acc...
Definition: referenceinterface.hpp:12
void addChoice(const std::string &choice, int id)
Definition: dialogue.cpp:582
Definition: dialogue.hpp:55
PersuasionDialog()
Definition: dialogue.cpp:44
int mServices
Definition: dialogue.hpp:152
PersuasionDialog mPersuasionDialog
Definition: dialogue.hpp:172
MyGUI::Button * mBribe100Button
Definition: dialogue.hpp:40
virtual ~Link()
Definition: dialogue.hpp:51
std::string mText
Definition: dialogue.hpp:80
virtual void exit()
Gracefully exits the window.
Definition: dialogue.cpp:103
bool mEnabled
Definition: dialogue.hpp:154
virtual void write(BookTypesetter::Ptr typesetter, KeywordSearchT *keywordSearch, std::map< std::string, Link * > &topicLinks) const =0
MyGUI::Button * mAdmireButton
Definition: dialogue.hpp:36
void setServices(int services)
Definition: dialogue.hpp:123
void updateOptions()
Definition: dialogue.cpp:594
Definition: dialogue.hpp:132
Pointer to a LiveCellRef.
Definition: ptr.hpp:19
void onSelectTopic(const std::string &topic, int id)
Definition: dialogue.cpp:321
void onFrame()
Definition: dialogue.cpp:638
virtual void write(BookTypesetter::Ptr typesetter, KeywordSearchT *keywordSearch, std::map< std::string, Link * > &topicLinks) const
Definition: dialogue.cpp:116
virtual void activated()=0
Services
Definition: dialogue.hpp:125
Definition: dialogue.hpp:91
MyGUI::ProgressBar * mDispositionBar
Definition: dialogue.hpp:169
Definition: windowbase.hpp:41