15 #ifndef BORNAGAIN_GUI_VIEW_MAIN_MAINWINDOW_H
16 #define BORNAGAIN_GUI_VIEW_MAIN_MAINWINDOW_H
18 #include <QMainWindow>
77 void addView(
ViewId id,
const QIcon& icon,
const QString& title,
const QString& tooltip,
Class to handle MainWindow's menu and corresponding actions.
The ImportDataView class is a main view for importing experimental data.
The JobView class is a main view to show list of jobs, job results and widgets for real time and fitt...
void closeEvent(QCloseEvent *event) override
SimulationView * m_simulationView
void raiseView(int viewId)
WelcomeView * m_welcomeView
SessionModelView * m_sessionModelView
void setCurrentView(int viewId)
void onDocumentOpenedOrClosed(bool open)
QButtonGroup * m_viewSelectionButtons
InstrumentView * m_instrumentView
QWidget * currentView() const
void onSessionModelViewActive(bool isActive)
Inserts/removes developers SessionModelView on the left tabbar.
ProjectManager * m_projectManager
ActionManager * m_actionManager
ImportDataView * m_importDataView
void onFocusRequest(int index)
void addView(ViewId id, const QIcon &icon, const QString &title, const QString &tooltip, QWidget *view)
UpdateNotifier * m_updateNotifier
void onRunSimulationShortcut()
QStackedLayout * m_viewsStack
QProgressBar * progressBar()
QVBoxLayout * m_viewSelectionButtonsLayout
QProgressBar * m_progressBar
void currentViewChanged(ViewId newView)
void onAboutToCloseDocument()
void onDocumentModified()
ProjectManager * projectManager()
ProjectSettingsView * m_projectSettingsView
QToolButton * createViewSelectionButton() const
UpdateNotifier * updateNotifier()
void updateViewSelectionButtonsGeometry() const
Recalculate the size of the view selection buttons to show complete button text.
SampleView * m_sampleView
Handles activity related to opening/save projects.
Widget to define project settings.
The SessionModelView is a technical view which shows the content all current application models....
Widget to define a simulation. Contains: