| 197 | } |
| 198 | |
| 199 | void OpenSaveFileDialog::onDoModal() |
| 200 | { |
| 201 | update(); |
| 202 | |
| 203 | MyGUI::IntSize windowSize = mMainWidget->getSize(); |
| 204 | MyGUI::IntSize parentSize = mMainWidget->getParentSize(); |
| 205 | |
| 206 | mMainWidget->setPosition( |
| 207 | (parentSize.width - windowSize.width) / 2, |
| 208 | (parentSize.height - windowSize.height) / 2); |
| 209 | } |
| 210 | |
| 211 | void OpenSaveFileDialog::onEndModal() |
| 212 | { |
nothing calls this directly
no test coverage detected