9 #include <ui_output_save_dir_input_config.h> 14 ui_ =
new Ui::OutputSaveDirInputConfigWindow();
33 std::string json_suffix =
".json";
34 std::size_t found = str.find_last_of(json_suffix);
36 while(str.size()-1 == found)
38 str = str.substr(0, found - json_suffix.size() + 1);
39 found = str.find_last_of(json_suffix);
42 str = str + json_suffix;
48 ui_->lineedit_filepath->setText(QString(
params_.file_path.c_str()));
53 params_.file_path =
ui_->lineedit_filepath->text().toLocal8Bit().constData();
60 QString
filename = QFileDialog::getSaveFileName(
64 tr(
"mpp-format json file (*.json)"));
66 params_.file_path = filename.toLocal8Bit().constData();
virtual void accept_changes_handler()
virtual void save_changes_handler()
virtual void cancel_changes_handler()