Class SessionFilesWidget

Nested Relationships

Nested Types

Inheritance Relationships

Base Type

Class Documentation

class SmartPeak::SessionFilesWidget : public SmartPeak::Widget

Public Types

enum Mode

Values:

enumerator ECreation
enumerator EModification

Public Functions

SessionFilesWidget(ApplicationHandler &application_handler, SessionFilesWidget::Mode mode, WorkflowManager &workflow_manager, IApplicationProcessorObserver *application_processor_observer = nullptr, ISequenceProcessorObserver *sequence_processor_observer = nullptr, ISequenceSegmentProcessorObserver *sequence_segment_processor_observer = nullptr, ISampleGroupProcessorObserver *sample_group_processor_observer = nullptr)
virtual void draw() override

Interface to show the widget

NOTE: free to override in inherited implmementations

void open(const Filenames &filenames, const std::set<std::string> &requirements = {})

Protected Functions

virtual void doUpdateSession()
virtual bool isModified(const std::string &file_id) const
virtual bool isToBeSaved(const std::string &file_id) const
virtual void clearEntry(const std::string &file_id)
virtual bool isMissingRequirement(const std::string &file_id) const
virtual bool isInvalid(const std::string &file_id) const

Protected Attributes

Filenames filenames_
std::optional<std::string> popup_file_picker_
FilePicker file_picker_
ApplicationHandler &application_handler_
std::map<std::string, FileEditorFields> file_editor_fields_
std::map<std::string, std::filesystem::path> hints_
Mode mode_
std::set<std::string> requirements_
WorkflowManager &workflow_manager_
struct FileEditorFields

Public Members

std::string text_editor_hint_
std::string text_editor_
std::string text_editor_last_update_
std::string original_filepath_
bool embedded_ = false
bool original_embedded_ = false
bool file_exists_ = false
std::string combo_file_mode_ = ""