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

54 lines
1.1 KiB
C++
Raw Normal View History

#ifndef MWGUI_ALCHEMY_H
#define MWGUI_ALCHEMY_H
#include <vector>
#include "../mwmechanics/alchemy.hpp"
#include "widgets.hpp"
2013-05-11 16:38:27 +00:00
#include "windowbase.hpp"
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:
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();
MWMechanics::Alchemy mAlchemy;
std::vector<ItemWidget*> mApparatus;
std::vector<ItemWidget*> mIngredients;
};
}
#endif