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

Method DoOpenDirModal

Src/OpenSaveDialogs.cpp:72–86  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

70
71
72void 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
89void Viewer::DoSaveCurrentModal(bool savePressed)

Callers

nothing calls this directly

Calls 3

DoPopupMethod · 0.80
GetResultMethod · 0.80
OpenPopupMethod · 0.45

Tested by

no test coverage detected