mirror of
				https://github.com/TES3MP/openmw-tes3mp.git
				synced 2025-11-04 12:26:42 +00:00 
			
		
		
		
	
		
			
				
	
	
		
			43 lines
		
	
	
	
		
			1.2 KiB
		
	
	
	
		
			C++
		
	
	
	
	
	
			
		
		
	
	
			43 lines
		
	
	
	
		
			1.2 KiB
		
	
	
	
		
			C++
		
	
	
	
	
	
#ifndef MWGUI_COUNTDIALOG_H
 | 
						|
#define MWGUI_COUNTDIALOG_H
 | 
						|
 | 
						|
#include "windowbase.hpp"
 | 
						|
 | 
						|
namespace Gui
 | 
						|
{
 | 
						|
    class NumericEditBox;
 | 
						|
}
 | 
						|
 | 
						|
namespace MWGui
 | 
						|
{
 | 
						|
    class CountDialog : public WindowModal
 | 
						|
    {
 | 
						|
        public:
 | 
						|
            CountDialog();
 | 
						|
            void openCountDialog(const std::string& item, const std::string& message, const int maxCount);
 | 
						|
 | 
						|
            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;
 | 
						|
            Gui::NumericEditBox* mItemEdit;
 | 
						|
            MyGUI::TextBox* mItemText;
 | 
						|
            MyGUI::TextBox* mLabelText;
 | 
						|
            MyGUI::Button* mOkButton;
 | 
						|
            MyGUI::Button* mCancelButton;
 | 
						|
 | 
						|
            void onCancelButtonClicked(MyGUI::Widget* _sender);
 | 
						|
            void onOkButtonClicked(MyGUI::Widget* _sender);
 | 
						|
            void onEditValueChanged(int value);
 | 
						|
            void onSliderMoved(MyGUI::ScrollBar* _sender, size_t _position);
 | 
						|
            void onEnterKeyPressed(MyGUI::EditBox* _sender);
 | 
						|
    };
 | 
						|
 | 
						|
}
 | 
						|
 | 
						|
#endif
 |