diff --git a/src/tools/launcher.cpp b/src/tools/launcher.cpp index 209a317..92f3437 100644 --- a/src/tools/launcher.cpp +++ b/src/tools/launcher.cpp @@ -47,6 +47,7 @@ private: Gtk::FileChooserButton modelChooser; Gtk::FileChooserButton weightsChooser; Gtk::FileChooserButton labelChooser; + Gtk::FileChooserButton meansChooser; Gtk::FileChooserButton inputChooser; Gtk::Button startButton; @@ -81,6 +82,8 @@ Launcher::Launcher() inputChooser.set_action(Gtk::FileChooserAction::FILE_CHOOSER_ACTION_SELECT_FOLDER); grid.attach(inputChooser, 1, 4, 1, 1); grid.attach_next_to(*getManagedLabel("Input directory"), inputChooser, Gtk::PositionType::POS_LEFT, 1, 1); + grid.attach(meansChooser, 1, 5, 1, 1); + grid.attach_next_to(*getManagedLabel("Means (optional)"), meansChooser, Gtk::PositionType::POS_LEFT, 1, 1); startButton.signal_clicked().connect(sigc::mem_fun(*this, &Launcher::start)); grid.attach_next_to(startButton, Gtk::PositionType::POS_BOTTOM, 2, 1); @@ -120,6 +123,11 @@ void Launcher::start() argv.push_back(wrap_string(labelChooser.get_file()->get_path())); } + if (meansChooser.get_file()) { + argv.push_back(wrap_string("-m")); + argv.push_back(wrap_string(meansChooser.get_file()->get_path())); + } + std::transform(inputs.begin(), inputs.end(), std::back_inserter(argv), [](const auto& x) { return wrap_string(x); });