1 /*! 2 @file 3 @author Albert Semenov 4 @date 09/2010 5 */ 6 7 #ifndef _b8560ae2_b63d_469a_9007_4562b883e6e1_ 8 #define _b8560ae2_b63d_469a_9007_4562b883e6e1_ 9 10 #include "Control.h" 11 12 namespace tools 13 { 14 15 class SettingsGeneralControl : 16 public Control 17 { 18 public: 19 SettingsGeneralControl(); 20 virtual ~SettingsGeneralControl(); 21 22 protected: 23 virtual void OnInitialise(Control* _parent, MyGUI::Widget* _place, const std::string& _layoutName); 24 virtual void OnCommand(const std::string& _command); 25 26 private: 27 void loadSettings(); 28 void saveSettings(); 29 30 void notifyNewGridStep(MyGUI::Widget* _sender, MyGUI::Widget* _new = nullptr); 31 void notifyNewGridStepAccept(MyGUI::EditBox* _sender); 32 void notifyMouseButtonClick(MyGUI::Widget* _sender); 33 34 int getGridStep(); 35 void setGridStep(); 36 void setLanguageValue(const std::string& _value); 37 std::string getLanguageValue(); 38 39 private: 40 int mGridStep; 41 42 MyGUI::EditBox* mGridEdit; 43 MyGUI::Button* mLoadLastProject; 44 MyGUI::ComboBox* mInterfaceLanguage; 45 MyGUI::EditBox* mWorkspaceSize; 46 }; 47 48 } 49 50 #endif 51