1 /*! 2 @file 3 @author Albert Semenov 4 @date 08/2010 5 */ 6 7 #ifndef _1ff1ce31_9c20_47d9_ab7e_79bf431cc819_ 8 #define _1ff1ce31_9c20_47d9_ab7e_79bf431cc819_ 9 10 #include "PropertyControl.h" 11 12 namespace tools 13 { 14 15 class MYGUI_EXPORT_DLL PropertyBoolControl : 16 public PropertyControl 17 { 18 public: 19 PropertyBoolControl(); 20 virtual ~PropertyBoolControl(); 21 22 protected: 23 virtual void updateCaption(); 24 virtual void updateProperty(); 25 virtual void OnInitialise(Control* _parent, MyGUI::Widget* _place, const std::string& _layoutName); 26 27 private: 28 void notifyComboChangePosition(MyGUI::ComboBox* _sender, size_t _index); 29 30 size_t getComboIndex(const MyGUI::UString& _name); 31 32 private: 33 MyGUI::TextBox* mName; 34 MyGUI::ComboBox* mComboBox; 35 }; 36 37 } 38 39 #endif 40