15 #ifndef BORNAGAIN_GUI_COREGUI_MAINWINDOW_MAINWINDOW_H
16 #define BORNAGAIN_GUI_COREGUI_MAINWINDOW_MAINWINDOW_H
18 #include <QMainWindow>
96 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...
The LinkInstrumentManager class provides communication between InstrumentModel and RealDataModel.
SimulationView * m_simulationView
WelcomeView * m_welcomeView
SessionModelView * m_sessionModelView
void setCurrentView(int viewId)
QButtonGroup * m_viewSelectionButtons
InstrumentView * m_instrumentView
LinkInstrumentManager * m_linkManager
QWidget * currentView() const
UpdateNotifier * updateNotifier()
void closeEvent(QCloseEvent *event)
static MainWindow * instance()
Returns the one and only instance of this class.
void onSessionModelViewActive(bool isActive)
Inserts/removes developers SessionModelView on the left tabbar.
ProjectManager * m_projectManager
ActionManager * m_actionManager
ImportDataView * m_importDataView
InstrumentModel * instrumentModel()
void onFocusRequest(int index)
LinkInstrumentManager * linkInstrumentManager()
void addView(ViewId id, const QIcon &icon, const QString &title, const QString &tooltip, QWidget *view)
UpdateNotifier * m_updateNotifier
void onRunSimulationShortcut()
QStackedLayout * m_viewsStack
ApplicationModels * m_applicationModels
QProgressBar * progressBar()
ApplicationModels * models()
QVBoxLayout * m_viewSelectionButtonsLayout
SampleModel * sampleModel()
QProgressBar * m_progressBar
MaterialModel * materialModel()
void currentViewChanged(ViewId newView)
ProjectManager * projectManager()
RealDataModel * realDataModel()
QToolButton * createViewSelectionButton() const
static MainWindow * s_instance
Holds the one and only instance of this class.
void updateViewSelectionButtonsGeometry() const
Recalculate the size of the view selection buttons to show complete button text.
ToolTipDataBase * m_toolTipDataBase
SampleView * m_sampleView
Handles activity related to opening/save projects.
The RealDataModel class is a model to store all imported RealDataItem's.
Main model to hold sample items.
The SessionModelView is a technical view which shows the content all current application models.