1
0
mirror of https://gitlab.com/OpenMW/openmw.git synced 2025-01-25 15:35:23 +00:00
OpenMW/apps/openmw/mwgui/alchemywindow.hpp

52 lines
1.0 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 18:38:27 +02:00
#include "windowbase.hpp"
namespace MWGui
{
2013-05-11 18:38:27 +02:00
class ItemView;
class SortFilterItemModel;
class AlchemyWindow : public WindowBase
{
public:
AlchemyWindow();
virtual void open();
2013-05-11 18:38:27 +02:00
private:
ItemView* mItemView;
SortFilterItemModel* mSortModel;
MyGUI::Button* mCreateButton;
MyGUI::Button* mCancelButton;
2012-05-25 16:20:57 +02: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 18:38:27 +02:00
void onSelectedItem(int index);
void removeIngredient(MyGUI::Widget* ingredient);
void update();
MWMechanics::Alchemy mAlchemy;
std::vector<MyGUI::ImageBox *> mApparatus;
std::vector<MyGUI::ImageBox *> mIngredients;
};
}
#endif