From 0c684973a47f26e0f669d4ef4631021c46c1ecd2 Mon Sep 17 00:00:00 2001 From: Bert Peters Date: Mon, 26 Mar 2018 13:44:26 +0200 Subject: [PATCH] Add labels to the file dialogs. --- src/tools/launcher.cpp | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/src/tools/launcher.cpp b/src/tools/launcher.cpp index a76d256..8a9935d 100644 --- a/src/tools/launcher.cpp +++ b/src/tools/launcher.cpp @@ -61,6 +61,12 @@ private: Launcher::Launcher() : Gtk::Window(), + fmriChooser("Select FMRI executable"), + modelChooser("Select caffe model prototxt"), + weightsChooser("Select caffe model weights"), + labelChooser("Select label text file"), + meansChooser("Select means file"), + inputChooser("Select input directory", Gtk::FileChooserAction::FILE_CHOOSER_ACTION_SELECT_FOLDER), startButton("Start FMRI") { set_size_request(400, -1); @@ -78,8 +84,6 @@ Launcher::Launcher() grid.attach_next_to(*getManagedLabel("Weights"), weightsChooser, Gtk::PositionType::POS_LEFT, 1, 1); grid.attach(labelChooser, 1, 3, 1, 1); grid.attach_next_to(*getManagedLabel("Labels (optional)"), labelChooser, Gtk::PositionType::POS_LEFT, 1, 1); - - 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);