Class SetInputOutputWidget

Inheritance Relationships

Base Type

Class Documentation

class SmartPeak::SetInputOutputWidget : public SmartPeak::Widget

A widget that shows the workflow’s input and output directories, and allow the user to edit them.

Public Functions

SetInputOutputWidget(ApplicationHandler &application_handler)
virtual void draw() override

Interface to show the widget

NOTE: free to override in inherited implmementations

void open(Filenames &filenames, ISetInputOutputWidgetObserver *observer)

Protected Functions

void setEditField(int id, std::string label, std::string &edit_box, std::shared_ptr<IFilePickerHandler> &file_picker_handler)
void setDirectories()
void cancel()

Protected Attributes

Filenames *filenames_ = nullptr
ApplicationHandler &application_handler_
std::optional<std::tuple<std::string, std::shared_ptr<IFilePickerHandler>>> popup_file_picker_
FilePicker file_picker_
std::string mzML_dir_edit_
std::string features_in_dir_edit_
std::string features_out_dir_edit_
std::string mzML_dir_old_
std::string features_in_dir_old_
std::string features_out_dir_old_
std::shared_ptr<IFilePickerHandler> set_raw_data_path_name
std::shared_ptr<IFilePickerHandler> set_input_features_path_name
std::shared_ptr<IFilePickerHandler> set_output_features_path_name
bool one_missing_directory_ = false
ISetInputOutputWidgetObserver *observer_ = nullptr