| 70 | |
| 71 | |
| 72 | void Viewer::DoOpenDirModal(bool openDirPressed) |
| 73 | { |
| 74 | if (openDirPressed) |
| 75 | OpenDirDialog.OpenPopup(ImagesDir); |
| 76 | |
| 77 | FileDialog::DialogState state = OpenDirDialog.DoPopup(); |
| 78 | if (state == FileDialog::DialogState::OK) |
| 79 | { |
| 80 | tString chosenDir = OpenDirDialog.GetResult(); |
| 81 | ImageToLoad = chosenDir + "dummyfile.txt"; |
| 82 | PopulateImages(); |
| 83 | SetCurrentImage(); |
| 84 | Gutil::SetWindowTitle(); |
| 85 | } |
| 86 | } |
| 87 | |
| 88 | |
| 89 | void Viewer::DoSaveCurrentModal(bool savePressed) |