1
0
Fork 1
mirror of https://github.com/TES3MP/openmw-tes3mp.git synced 2025-01-16 09:19:58 +00:00
openmw-tes3mp/apps/openmw/mwgui/alchemywindow.hpp

59 lines
1.1 KiB
C++
Raw Normal View History

#ifndef MWGUI_ALCHEMY_H
#define MWGUI_ALCHEMY_H
#include <vector>
#include "widgets.hpp"
2013-05-11 16:38:27 +00:00
#include "windowbase.hpp"
2015-01-10 00:00:52 +00:00
namespace MWMechanics
{
class Alchemy;
}
namespace MWGui
{
2013-05-11 16:38:27 +00:00
class ItemView;
class ItemWidget;
2013-05-11 16:38:27 +00:00
class SortFilterItemModel;
class AlchemyWindow : public WindowBase
{
public:
AlchemyWindow();
virtual void open();
virtual void exit();
2013-05-11 16:38:27 +00:00
private:
2014-10-20 15:28:22 +00:00
std::string mSuggestedPotionName;
2013-05-11 16:38:27 +00:00
ItemView* mItemView;
SortFilterItemModel* mSortModel;
MyGUI::Button* mCreateButton;
MyGUI::Button* mCancelButton;
2012-05-25 14:20:57 +00:00
MyGUI::Widget* mEffectsBox;
MyGUI::EditBox* mNameEdit;
void onCancelButtonClicked(MyGUI::Widget* _sender);
void onCreateButtonClicked(MyGUI::Widget* _sender);
void onIngredientSelected(MyGUI::Widget* _sender);
2013-05-11 16:38:27 +00:00
void onSelectedItem(int index);
void removeIngredient(MyGUI::Widget* ingredient);
void update();
2015-01-10 00:00:52 +00:00
std::auto_ptr<MWMechanics::Alchemy> mAlchemy;
std::vector<ItemWidget*> mApparatus;
std::vector<ItemWidget*> mIngredients;
};
}
#endif