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

41 lines
1.2 KiB
C++
Raw Normal View History

#ifndef MWGUI_COUNTDIALOG_H
#define MWGUI_COUNTDIALOG_H
#include "windowbase.hpp"
namespace MWGui
{
class CountDialog : public WindowModal
{
public:
CountDialog();
2012-05-18 15:58:33 +00:00
void open(const std::string& item, const std::string& message, const int maxCount);
void cancel();
virtual void exit();
typedef MyGUI::delegates::CMultiDelegate2<MyGUI::Widget*, int> EventHandle_WidgetInt;
/** Event : Ok button was clicked.\n
signature : void method(MyGUI::Widget* _sender, int _count)\n
*/
EventHandle_WidgetInt eventOkClicked;
private:
MyGUI::ScrollBar* mSlider;
MyGUI::EditBox* mItemEdit;
MyGUI::TextBox* mItemText;
MyGUI::TextBox* mLabelText;
MyGUI::Button* mOkButton;
MyGUI::Button* mCancelButton;
void onCancelButtonClicked(MyGUI::Widget* _sender);
void onOkButtonClicked(MyGUI::Widget* _sender);
void onEditTextChange(MyGUI::EditBox* _sender);
void onSliderMoved(MyGUI::ScrollBar* _sender, size_t _position);
2013-05-16 18:05:22 +00:00
void onEnterKeyPressed(MyGUI::EditBox* _sender);
};
}
#endif