void EditFactory::Edit_MaxTextLength(WidgetPtr _widget, const Ogre::String &_key, const Ogre::String &_value) { MYGUI_RETURN_IS_FALSE_TYPE(EditPtr, _widget, _key); static_cast<EditPtr>(_widget)->setMaxTextLength(utility::parseSizeT(_value)); }
void EditFactory::Edit_MultiLine(WidgetPtr _widget, const Ogre::String &_key, const Ogre::String &_value) { MYGUI_RETURN_IS_FALSE_TYPE(EditPtr, _widget, _key); static_cast<EditPtr>(_widget)->setEditMultiLine(utility::parseBool(_value)); }
void EditFactory::Edit_PasswordChar(WidgetPtr _widget, const Ogre::String &_key, const Ogre::String &_value) { MYGUI_RETURN_IS_FALSE_TYPE(EditPtr, _widget, _key); static_cast<EditPtr>(_widget)->setPasswordChar(_value); }
void EditFactory::Edit_CursorPosition(WidgetPtr _widget, const Ogre::String &_key, const Ogre::String &_value) { MYGUI_RETURN_IS_FALSE_TYPE(EditPtr, _widget, _key); static_cast<EditPtr>(_widget)->setTextCursor(utility::parseSizeT(_value)); }
void EditFactory::Edit_TextSelect(WidgetPtr _widget, const Ogre::String &_key, const Ogre::String &_value) { MYGUI_RETURN_IS_FALSE_TYPE(EditPtr, _widget, _key); std::vector<std::string> vec = utility::split(_value); if (vec.size() == 2) static_cast<EditPtr>(_widget)->setTextSelect(utility::parseSizeT(vec[0]), utility::parseSizeT(vec[1])); }
void ProgressFactory::Progress_StartPoint(WidgetPtr _widget, const Ogre::String &_key, const Ogre::String &_value) { MYGUI_RETURN_IS_FALSE_TYPE(ProgressPtr, _widget, _key); static_cast<ProgressPtr>(_widget)->setProgressStartPoint(SkinManager::parseAlign(_value)); }
void EditFactory::Edit_OverflowToTheLeft(WidgetPtr _widget, const Ogre::String &_key, const Ogre::String &_value) { MYGUI_RETURN_IS_FALSE_TYPE(EditPtr, _widget, _key); static_cast<EditPtr>(_widget)->setOverflowToTheLeft(utility::parseBool(_value)); }
void ProgressFactory::Progress_Position(WidgetPtr _widget, const Ogre::String &_key, const Ogre::String &_value) { MYGUI_RETURN_IS_FALSE_TYPE(ProgressPtr, _widget, _key); static_cast<ProgressPtr>(_widget)->setProgressPosition(utility::parseSizeT(_value)); }
void ProgressFactory::Progress_AutoTrack(WidgetPtr _widget, const Ogre::String &_key, const Ogre::String &_value) { MYGUI_RETURN_IS_FALSE_TYPE(ProgressPtr, _widget, _key); static_cast<ProgressPtr>(_widget)->setProgressAutoTrack(utility::parseBool(_value)); }
// методы для парсинга void ComboBoxFactory::Combo_ModeDrop(WidgetPtr _widget, const Ogre::String &_key, const Ogre::String &_value) { MYGUI_RETURN_IS_FALSE_TYPE(ComboBoxPtr, _widget, _key); static_cast<ComboBoxPtr>(_widget)->setComboModeDrop(utility::parseBool(_value)); }
void ComboBoxFactory::Combo_AddString(WidgetPtr _widget, const Ogre::String &_key, const Ogre::String &_value) { MYGUI_RETURN_IS_FALSE_TYPE(ComboBoxPtr, _widget, _key); static_cast<ComboBoxPtr>(_widget)->addItem(_value); }
void VScrollFactory::Scroll_Page(WidgetPtr _widget, const Ogre::String &_key, const Ogre::String &_value) { MYGUI_RETURN_IS_FALSE_TYPE(VScrollPtr, _widget, _key); static_cast<VScrollPtr>(_widget)->setScrollPage(utility::parseSizeT(_value)); }
void TabFactory::Tab_SelectSheet(WidgetPtr _widget, const Ogre::String &_key, const Ogre::String &_value) { MYGUI_RETURN_IS_FALSE_TYPE(TabPtr, _widget, _key); static_cast<TabPtr>(_widget)->selectSheetIndex(utility::parseSizeT(_value)); }
void TabFactory::Tab_AddSheet(WidgetPtr _widget, const Ogre::String &_key, const Ogre::String &_value) { MYGUI_RETURN_IS_FALSE_TYPE(TabPtr, _widget, _key); static_cast<TabPtr>(_widget)->addSheet(_value); }
void TabFactory::Tab_SmoothShow(WidgetPtr _widget, const Ogre::String &_key, const Ogre::String &_value) { MYGUI_RETURN_IS_FALSE_TYPE(TabPtr, _widget, _key); static_cast<TabPtr>(_widget)->setSmoothShow(utility::parseBool(_value)); }
void TabFactory::Tab_ButtonWidth(WidgetPtr _widget, const Ogre::String &_key, const Ogre::String &_value) { MYGUI_RETURN_IS_FALSE_TYPE(TabPtr, _widget, _key); static_cast<TabPtr>(_widget)->setButtonDefaultWidth(utility::parseInt(_value)); }