| 281 | } |
| 282 | |
| 283 | void SeparatePanel::loadDefaultSize() |
| 284 | { |
| 285 | if (!mSaveAs.empty()) |
| 286 | mDefaultPanelSize = |
| 287 | SettingsManager::getInstance().getValue<MyGUI::IntSize>("Controls/SeparateControl/" + mSaveAs); |
| 288 | |
| 289 | if (mDefaultPanelSize.empty()) |
| 290 | { |
| 291 | if (mMainWidget->isUserString("DefaultSize")) |
| 292 | { |
| 293 | int size = MyGUI::utility::parseValue<int>(mMainWidget->getUserString("DefaultSize")); |
| 294 | mDefaultPanelSize = MyGUI::IntSize(size, size); |
| 295 | } |
| 296 | else |
| 297 | { |
| 298 | mDefaultPanelSize = MyGUI::IntSize( |
| 299 | (mMainWidget->getWidth() - mSeparatorH->getWidth()) / 2, |
| 300 | (mMainWidget->getHeight() - mSeparatorV->getHeight()) / 2); |
| 301 | } |
| 302 | } |
| 303 | } |
| 304 | |
| 305 | void SeparatePanel::saveDefaultSize() |
| 306 | { |
nothing calls this directly
no test coverage detected