1
0
mirror of https://gitlab.com/OpenMW/openmw.git synced 2025-01-09 12:42:11 +00:00
OpenMW/apps/openmw/mwgui/enchantingdialog.hpp

68 lines
1.8 KiB
C++
Raw Normal View History

#ifndef MWGUI_ENCHANTINGDIALOG_H
#define MWGUI_ENCHANTINGDIALOG_H
#include "windowbase.hpp"
#include "referenceinterface.hpp"
#include "spellcreationdialog.hpp"
#include "../mwbase/windowmanager.hpp"
2013-03-28 16:41:00 +00:00
#include "../mwmechanics/enchanting.hpp"
namespace MWGui
{
2013-03-16 18:00:14 +00:00
class ItemSelectionDialog;
class EnchantingDialog : public WindowBase, public ReferenceInterface, public EffectEditorBase
{
public:
EnchantingDialog();
2013-03-16 18:00:14 +00:00
virtual ~EnchantingDialog();
virtual void open();
void startEnchanting(MWWorld::Ptr actor);
void startSelfEnchanting(MWWorld::Ptr soulgem);
protected:
virtual void onReferenceUnavailable();
2013-03-28 16:41:00 +00:00
virtual void notifyEffectsChanged ();
2012-10-03 13:06:54 +00:00
void onCancelButtonClicked(MyGUI::Widget* sender);
2013-03-16 18:00:14 +00:00
void onSelectItem (MyGUI::Widget* sender);
void onSelectSoul (MyGUI::Widget* sender);
void onRemoveItem (MyGUI::Widget* sender);
void onRemoveSoul (MyGUI::Widget* sender);
void onItemSelected(MWWorld::Ptr item);
void onItemCancel();
void onSoulSelected(MWWorld::Ptr item);
void onSoulCancel();
2013-03-28 16:41:00 +00:00
void onBuyButtonClicked(MyGUI::Widget* sender);
2013-03-16 18:00:14 +00:00
void updateLabels();
2013-03-28 16:41:00 +00:00
void onTypeButtonClicked(MyGUI::Widget* sender);
2013-03-16 18:00:14 +00:00
ItemSelectionDialog* mItemSelectionDialog;
2012-10-03 13:06:54 +00:00
MyGUI::Button* mCancelButton;
2013-03-16 18:00:14 +00:00
MyGUI::ImageBox* mItemBox;
MyGUI::ImageBox* mSoulBox;
MyGUI::Button* mTypeButton;
MyGUI::Button* mBuyButton;
2013-03-28 16:41:00 +00:00
MyGUI::TextBox* mName;
2013-03-16 18:00:14 +00:00
MyGUI::TextBox* mEnchantmentPoints;
MyGUI::TextBox* mCastCost;
MyGUI::TextBox* mCharge;
MyGUI::TextBox* mPrice;
2013-04-03 16:02:30 +00:00
MyGUI::TextBox* mPriceText;
2013-03-16 18:00:14 +00:00
2013-03-28 16:41:00 +00:00
MWMechanics::Enchanting mEnchanting;
ESM::EffectList mEffectList;
};
}
#endif