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