BornAgain
1.19.79
Simulate and fit neutron and x-ray scattering at grazing incidence
|
The JobView class is a main view to show list of jobs, job results and widgets for real time and fitting activities.
Public Slots | |
void | onFocusRequest (JobItem *jobItem) |
void | onSelectionChanged (const QVector< JobItem * > &jobs) |
Propagates change in JobItem's selection down into main widgets. More... | |
void | setActivity (JobViewActivity activity) |
Sets docks visibility in accordance with required activity. More... | |
Signals | |
void | activityChanged (JobViewActivity activity) |
void | focusRequest (int) |
Public Member Functions | |
JobView (MainWindow *mainWindow, ProjectDocument *document) | |
void | fillViewMenu (QMenu *menu) |
Private Member Functions | |
void | connectActivityRelated () |
Connects signal related to activity change. More... | |
void | connectJobRelated () |
Connects signals related to JobItem. More... | |
void | connectSignals () |
void | createActions () |
void | createSubWindows () |
void | resetLayout () |
void | setAppropriateActivityForJob (JobItem *jobItem) |
Sets appropriate activity for new JobItem. More... | |
Private Attributes | |
QActionGroup | m_activityActions |
DocksController * | m_docks |
ProjectDocument * | m_document |
FitActivityPanel * | m_fitActivityPanel = nullptr |
JobMessagePanel * | m_jobMessagePanel = nullptr |
JobRealTimeWidget * | m_jobRealTimeWidget = nullptr |
JobResultsPresenter * | m_jobResultsPresenter = nullptr |
JobSelectorWidget * | m_jobSelector = nullptr |
JobProgressAssistant * | m_progressAssistant |
JobView::JobView | ( | MainWindow * | mainWindow, |
ProjectDocument * | document | ||
) |
Definition at line 30 of file JobView.cpp.
References connectSignals(), createActions(), and createSubWindows().
|
signal |
Referenced by connectActivityRelated(), and setActivity().
|
private |
Connects signal related to activity change.
Definition at line 137 of file JobView.cpp.
References activityChanged(), m_jobResultsPresenter, and JobResultsPresenter::setPresentation().
Referenced by connectSignals().
|
private |
Connects signals related to JobItem.
Definition at line 145 of file JobView.cpp.
References JobModel::focusRequest(), ProjectDocument::jobModel(), m_document, m_fitActivityPanel, m_jobMessagePanel, m_jobSelector, onFocusRequest(), onSelectionChanged(), JobSelectorWidget::selectedJobs(), JobSelectorWidget::selectedJobsChanged(), JobMessagePanel::setLog(), and FitActivityPanel::showLog().
Referenced by connectSignals().
|
private |
Definition at line 129 of file JobView.cpp.
References connectActivityRelated(), and connectJobRelated().
Referenced by JobView().
|
private |
Definition at line 118 of file JobView.cpp.
References JobViewActivities::all(), m_activityActions, JobViewActivities::name(), and setActivity().
Referenced by JobView().
|
private |
Definition at line 98 of file JobView.cpp.
References DocksController::addWidget(), JobViewFlags::FIT_PANEL_DOCK, JobViewFlags::JOB_LIST_DOCK, JobViewFlags::JOB_MESSAGE_DOCK, ProjectDocument::jobModel(), m_docks, m_document, m_fitActivityPanel, m_jobMessagePanel, m_jobRealTimeWidget, m_jobResultsPresenter, m_jobSelector, JobViewFlags::REAL_TIME_DOCK, resetLayout(), and FitActivityPanel::setRealTimeWidget().
Referenced by JobView().
void JobView::fillViewMenu | ( | QMenu * | menu | ) |
Definition at line 42 of file JobView.cpp.
References DocksController::addDockActionsToMenu(), m_activityActions, m_docks, and resetLayout().
|
signal |
Referenced by MainWindow::initViews(), and onFocusRequest().
|
slot |
Definition at line 57 of file JobView.cpp.
References focusRequest(), MainWindow::JOB, m_jobSelector, JobSelectorWidget::makeJobItemSelected(), JobItem::runInBackground(), JobSelectorWidget::selectedJobs(), and setAppropriateActivityForJob().
Referenced by connectJobRelated().
|
slot |
Propagates change in JobItem's selection down into main widgets.
Definition at line 88 of file JobView.cpp.
References m_fitActivityPanel, m_jobRealTimeWidget, m_jobResultsPresenter, FitActivityPanel::setItem(), JobRealTimeWidget::setItem(), and JobResultsPresenter::setItem().
Referenced by connectJobRelated().
|
private |
Definition at line 177 of file JobView.cpp.
References JobView, m_docks, DocksController::resetLayout(), and setActivity().
Referenced by createSubWindows(), and fillViewMenu().
|
slot |
Sets docks visibility in accordance with required activity.
Definition at line 73 of file JobView.cpp.
References JobViewActivities::activeDocks(), activityChanged(), m_activityActions, m_docks, and DocksController::setVisibleDocks().
Referenced by createActions(), and resetLayout().
|
private |
Sets appropriate activity for new JobItem.
Definition at line 163 of file JobView.cpp.
References Fitting, JobItem::isValidForFitting(), m_jobResultsPresenter, and JobResultsPresenter::setPresentation().
Referenced by onFocusRequest().
|
private |
Definition at line 73 of file JobView.h.
Referenced by createActions(), fillViewMenu(), and setActivity().
|
private |
Definition at line 64 of file JobView.h.
Referenced by createSubWindows(), fillViewMenu(), resetLayout(), and setActivity().
|
private |
Definition at line 74 of file JobView.h.
Referenced by connectJobRelated(), and createSubWindows().
|
private |
Definition at line 70 of file JobView.h.
Referenced by connectJobRelated(), createSubWindows(), and onSelectionChanged().
|
private |
Definition at line 71 of file JobView.h.
Referenced by connectJobRelated(), and createSubWindows().
|
private |
Definition at line 69 of file JobView.h.
Referenced by createSubWindows(), and onSelectionChanged().
|
private |
Definition at line 68 of file JobView.h.
Referenced by connectActivityRelated(), createSubWindows(), onSelectionChanged(), and setAppropriateActivityForJob().
|
private |
Definition at line 67 of file JobView.h.
Referenced by connectJobRelated(), createSubWindows(), and onFocusRequest().
|
private |