33 , m_activityActions(this)
34 , m_document(document)
36 setObjectName(
"JobView");
51 auto* action =
new QAction(menu);
52 action->setText(
"Reset to default layout");
54 menu->addAction(action);
63 if (jobs.size() != 1 || jobItem != jobs.front()) {
77 std::vector<int> docks_id;
78 for (
auto x : docksToShow)
79 docks_id.push_back(
static_cast<int>(x));
92 jobItem = jobs.front();
121 auto* action =
new QAction(
this);
123 action->setCheckable(
true);
124 connect(action, &QAction::triggered, [=]() {
setActivity(activity); });
Defines class DocksController.
Defines class FitActivityPanel.
Defines class JobMessagePanel.
Defines class JobProgressAssistant.
Defines class JobResultsPresenter.
Defines class JobViewActivities.
Defines class MainWindow.
Defines class ProjectManager.
Handles creation and appearance of docked widgets in the context of QMainWindow. It is used for Sampl...
void addDockActionsToMenu(QMenu *menu)
void addWidget(int id, QWidget *widget, Qt::DockWidgetArea area)
void setVisibleDocks(const std::vector< int > &visibleDocks)
Show docks with id's from the list. Other docks will be hidden.
The FitActivityPanel class is a main widget to run the fitting. Occupies bottom right corner of JobVi...
void showLog(FitLog *log)
void setRealTimeWidget(JobRealTimeWidget *realTimeWidget)
void setItem(JobItem *item)
bool runInBackground() const
The JobMessagePanel class shows log messages from FitActivityPanel at the bottom part of JobView.
void focusRequest(JobItem *item)
The JobProgressAssistant class helps JobView to visualize current progress.
Presents results of job (JobItem) using stack of different widgets and combo box in the right top cor...
void setItem(SessionItem *item) override
void setPresentation(const QString &presentationType) override
Sets stack to show widget corresponding to given presentation.
void connectJobRelated()
Connects signals related to JobItem.
void connectActivityRelated()
Connects signal related to activity change.
void setActivity(JobViewActivity activity)
Sets docks visibility in accordance with required activity.
void setAppropriateActivityForJob(JobItem *jobItem)
Sets appropriate activity for new JobItem.
JobResultsPresenter * m_jobResultsPresenter
JobView(MainWindow *mainWindow, ProjectDocument *document)
FitActivityPanel * m_fitActivityPanel
JobRealTimeWidget * m_jobRealTimeWidget
DocksController * m_docks
void onSelectionChanged(const QVector< JobItem * > &jobs)
Propagates change in JobItem's selection down into main widgets.
void fillViewMenu(QMenu *menu)
void onFocusRequest(JobItem *jobItem)
void activityChanged(JobViewActivity activity)
ProjectDocument * m_document
JobSelectorWidget * m_jobSelector
JobMessagePanel * m_jobMessagePanel
QActionGroup m_activityActions
Project document class handles all data related to the opened project (sample, job,...
JobModel * jobModel() const
static QMainWindow * mainWindow
QString name(JobViewActivity activity)
Returns name of activity.
QVector< JobViewFlags::Dock > activeDocks(JobViewActivity activity)
Returns vector of JobView's dockId which have to be shown for given activity.
QList< JobViewActivity > all()
Returns list of all available activities.