MCPcopy Create free account
hub / github.com/bluescan/tacentview / DoOpenFileModal

Method DoOpenFileModal

Src/OpenSaveDialogs.cpp:55–69  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

53
54
55void 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
72void Viewer::DoOpenDirModal(bool openDirPressed)

Callers

nothing calls this directly

Calls 3

DoPopupMethod · 0.80
GetResultMethod · 0.80
OpenPopupMethod · 0.45

Tested by

no test coverage detected