MCPcopy Create free account
hub / github.com/chrxh/alien / onOpenSimulationDialog

Method onOpenSimulationDialog

source/Gui/FileTransferController.cpp:13–22  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

11#include "Viewport.h"
12
13void FileTransferController::onOpenSimulationDialog()
14{
15 GenericFileDialog::get().showOpenFileDialog(
16 "Open simulation", "Simulation file (*.sim){.sim},.*", _referencePath, [&](std::filesystem::path const& filename) {
17 auto filenameCopy = filename;
18 _referencePath = filenameCopy.remove_filename().string();
19 onOpenSimulation(filename);
20
21 });
22}
23
24void FileTransferController::onOpenSimulation(std::filesystem::path const& filename)
25{

Callers 1

processMenubarMethod · 0.80

Calls 1

showOpenFileDialogMethod · 0.80

Tested by

no test coverage detected