OpenMW
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
enchantingdialog.hpp
Go to the documentation of this file.
1 #ifndef MWGUI_ENCHANTINGDIALOG_H
2 #define MWGUI_ENCHANTINGDIALOG_H
3 
5 
6 #include "../mwbase/windowmanager.hpp"
7 
8 #include "../mwmechanics/enchanting.hpp"
9 
10 namespace MWGui
11 {
12 
13  class ItemSelectionDialog;
14  class ItemWidget;
15 
17  {
18  public:
20  virtual ~EnchantingDialog();
21 
22  virtual void open();
23 
24  virtual void exit();
25 
26  void setSoulGem (const MWWorld::Ptr& gem);
27  void setItem (const MWWorld::Ptr& item);
28 
29  void startEnchanting(MWWorld::Ptr actor);
30  void startSelfEnchanting(MWWorld::Ptr soulgem);
31 
32  virtual void resetReference();
33 
34  protected:
35  virtual void onReferenceUnavailable();
36  virtual void notifyEffectsChanged ();
37 
38  void onCancelButtonClicked(MyGUI::Widget* sender);
39  void onSelectItem (MyGUI::Widget* sender);
40  void onSelectSoul (MyGUI::Widget* sender);
41 
42  void onItemSelected(MWWorld::Ptr item);
43  void onItemCancel();
44  void onSoulSelected(MWWorld::Ptr item);
45  void onSoulCancel();
46  void onBuyButtonClicked(MyGUI::Widget* sender);
47  void updateLabels();
48  void onTypeButtonClicked(MyGUI::Widget* sender);
49 
51 
52  MyGUI::Button* mCancelButton;
55 
56  MyGUI::Button* mTypeButton;
57  MyGUI::Button* mBuyButton;
58 
59  MyGUI::TextBox* mName;
60  MyGUI::TextBox* mEnchantmentPoints;
61  MyGUI::TextBox* mCastCost;
62  MyGUI::TextBox* mCharge;
63  MyGUI::TextBox* mPrice;
64  MyGUI::TextBox* mPriceText;
65 
68  };
69 
70 }
71 
72 #endif
void onCancelButtonClicked(MyGUI::Widget *sender)
Definition: enchantingdialog.cpp:199
MyGUI::TextBox * mPriceText
Definition: enchantingdialog.hpp:64
void onItemSelected(MWWorld::Ptr item)
Definition: enchantingdialog.cpp:223
void onSelectItem(MyGUI::Widget *sender)
Definition: enchantingdialog.cpp:204
void onSelectSoul(MyGUI::Widget *sender)
Definition: enchantingdialog.cpp:259
void onTypeButtonClicked(MyGUI::Widget *sender)
Definition: enchantingdialog.cpp:287
ItemWidget * mItemBox
Definition: enchantingdialog.hpp:53
void setItem(const MWWorld::Ptr &item)
Definition: enchantingdialog.cpp:87
Definition: itemselection.hpp:19
void onBuyButtonClicked(MyGUI::Widget *sender)
Definition: enchantingdialog.cpp:294
EnchantingDialog()
Definition: enchantingdialog.cpp:32
void onItemCancel()
Definition: enchantingdialog.cpp:233
void startSelfEnchanting(MWWorld::Ptr soulgem)
Definition: enchantingdialog.cpp:163
void setSoulGem(const MWWorld::Ptr &gem)
Definition: enchantingdialog.cpp:70
ESM::EffectList mEffectList
Definition: enchantingdialog.hpp:67
void onSoulSelected(MWWorld::Ptr item)
Definition: enchantingdialog.cpp:238
virtual void notifyEffectsChanged()
Definition: enchantingdialog.cpp:280
MyGUI::TextBox * mCastCost
Definition: enchantingdialog.hpp:61
virtual void open()
Notify that window has been made visible.
Definition: enchantingdialog.cpp:65
MWMechanics::Enchanting mEnchanting
Definition: enchantingdialog.hpp:66
Definition: enchantingdialog.hpp:16
Definition: enchanting.hpp:15
ItemWidget * mSoulBox
Definition: enchantingdialog.hpp:54
void startEnchanting(MWWorld::Ptr actor)
Definition: enchantingdialog.cpp:145
Definition: windowbase.hpp:16
void updateLabels()
Definition: enchantingdialog.cpp:110
this class is intended for GUI interfaces that access an MW-Reference for example dialogue window acc...
Definition: referenceinterface.hpp:12
MyGUI::Button * mBuyButton
Definition: enchantingdialog.hpp:57
MyGUI::Button * mCancelButton
Definition: enchantingdialog.hpp:52
MyGUI::TextBox * mCharge
Definition: enchantingdialog.hpp:62
virtual void onReferenceUnavailable()
called when reference has become unavailable
Definition: enchantingdialog.cpp:183
virtual ~EnchantingDialog()
Definition: enchantingdialog.cpp:60
virtual void exit()
Gracefully exits the window.
Definition: enchantingdialog.cpp:105
void onSoulCancel()
Definition: enchantingdialog.cpp:254
Pointer to a LiveCellRef.
Definition: ptr.hpp:19
MyGUI::Button * mTypeButton
Definition: enchantingdialog.hpp:56
virtual void resetReference()
Definition: enchantingdialog.cpp:190
ItemSelectionDialog * mItemSelectionDialog
Definition: enchantingdialog.hpp:50
Definition: spellcreationdialog.hpp:94
EffectList, ENAM subrecord.
Definition: effectlist.hpp:33
MyGUI::TextBox * mPrice
Definition: enchantingdialog.hpp:63
A widget that shows an icon for an MWWorld::Ptr.
Definition: itemwidget.hpp:15
MyGUI::TextBox * mEnchantmentPoints
Definition: enchantingdialog.hpp:60
MyGUI::TextBox * mName
Definition: enchantingdialog.hpp:59