1 /*! 2 @file 3 @author Albert Semenov 4 @date 08/2010 5 */ 6 7 #ifndef _535c1422_4ed5_44f0_a04c_83a1cb68b28b_ 8 #define _535c1422_4ed5_44f0_a04c_83a1cb68b28b_ 9 10 #include "TextureControl.h" 11 12 namespace tools 13 { 14 15 class MYGUI_EXPORT_DLL TextureToolControl : 16 public TextureControl, 17 public sigslot::has_slots<> 18 { 19 public: 20 TextureToolControl(); 21 virtual ~TextureToolControl(); 22 23 protected: 24 virtual void OnInitialise(Control* _parent, MyGUI::Widget* _place, const std::string& _layoutName); 25 26 virtual void onMouseWheel(int _rel); 27 28 bool checkCommand(); 29 bool checkMenuCommand(); 30 31 private: 32 void notifySettingsChanged(const std::string& _path); 33 34 void CommandChangeNextScale(const MyGUI::UString& _commandName, bool& _result); 35 void CommandChangePrevScale(const MyGUI::UString& _commandName, bool& _result); 36 void CommandChangeScale(const MyGUI::UString& _commandName, bool& _result); 37 38 bool doPrevScale(); 39 bool doNextScale(); 40 41 private: 42 typedef std::vector<size_t> VectorSizeT; 43 VectorSizeT mScaleValue; 44 size_t mCurrentScaleValue; 45 std::string mColourValueName; 46 }; 47 48 } 49 50 #endif 51