Class InfoWidget

Inheritance Relationships

Base Types

Class Documentation

class SmartPeak::InfoWidget : public SmartPeak::Widget, public SmartPeak::ISequenceObserver

Public Functions

inline InfoWidget(const std::string title, ApplicationHandler &application_handler)
virtual void sequenceUpdated() override

ISequenceObserver

virtual void draw() override

Interface to show the widget

NOTE: free to override in inherited implmementations

inline void setRefreshNeeded()
inline void setTransitions(const Eigen::Tensor<std::string, 2> *transitions)
inline void setWorkflowDone(bool done)
inline void setFileLoadingDone(bool done, bool load_error)
inline void clearErrorMessages()
inline void addErrorMessage(const std::string &error_message)
inline void setLastRunTime(const std::chrono::steady_clock::duration &last_run_time)

Protected Attributes

ApplicationHandler &application_handler_
const Eigen::Tensor<std::string, 2> *transitions_ = nullptr
std::chrono::steady_clock::duration last_run_time_ = std::chrono::steady_clock::duration::zero()
int number_of_chromatograms_ = 0
int number_of_spectrums_ = 0
int number_of_samples_ = 0
int number_of_transitions_ = 0
bool workflow_is_done_ = true
bool file_loading_is_done_ = true
bool file_load_error_ = false
bool refresh_needed_ = true
std::vector<std::string> error_messages_