| 53 | |
| 54 | |
| 55 | void Viewer::DoOpenFileModal(bool openFilePressed) |
| 56 | { |
| 57 | if (openFilePressed) |
| 58 | OpenFileDialog.OpenPopup(ImagesDir); |
| 59 | |
| 60 | FileDialog::DialogState state = OpenFileDialog.DoPopup(); |
| 61 | if (state == FileDialog::DialogState::OK) |
| 62 | { |
| 63 | tString chosenFile = OpenFileDialog.GetResult(); |
| 64 | ImageToLoad = chosenFile; |
| 65 | PopulateImages(); |
| 66 | SetCurrentImage(chosenFile); |
| 67 | Gutil::SetWindowTitle(); |
| 68 | } |
| 69 | } |
| 70 | |
| 71 | |
| 72 | void Viewer::DoOpenDirModal(bool openDirPressed) |