QXRD  0.11.16
qxrdwelcomewindow.h
Go to the documentation of this file.
1 #ifndef QXRDWELCOMEWINDOW_H
2 #define QXRDWELCOMEWINDOW_H
3 
4 #include <QMainWindow>
5 #include <QSignalMapper>
6 #include <QSettings>
7 #include <QLabel>
8 #include <QTimer>
9 #include "ui_qxrdwelcomewindow.h"
10 
11 #include "qxrdapplication-ptr.h"
12 
13 class QxrdWelcomeWindow : public QMainWindow
14 {
15  Q_OBJECT
16 
17 public:
18  explicit QxrdWelcomeWindow(QxrdApplication *app);
20 
21  void appendRecentExperiment(QString title);
22 
23  void possiblyClose();
24  bool wantToClose();
25  void closeEvent (QCloseEvent * event);
26 
27  void readSettings(QSettings *settings, QString section);
28  void writeSettings(QSettings *settings, QString section);
29 
30 public slots:
31  void displayMessage(QString msg);
32  void clearStatusMessage();
33 
34 protected:
35  void changeEvent(QEvent *e);
36 
37 private slots:
39  void openMostRecent();
40 
41 private:
42  void setupRecentExperimentsMenu(QAction *action);
43 
44 private:
45  Ui::QxrdWelcomeWindow *ui;
48  QSignalMapper m_SignalMapper;
49  QLabel *m_StatusMsg;
50  QTimer m_StatusTimer;
51 
53 };
54 
55 #endif // QXRDWELCOMEWINDOW_H
void writeSettings(QSettings *settings, QString section)
QxrdApplication * m_Application
void setupRecentExperimentsMenu(QAction *action)
Ui::QxrdWelcomeWindow * ui
void appendRecentExperiment(QString title)
void populateRecentExperimentsMenu()
void displayMessage(QString msg)
void changeEvent(QEvent *e)
void readSettings(QSettings *settings, QString section)
QSignalMapper m_SignalMapper
void closeEvent(QCloseEvent *event)
QMenu * m_RecentExperimentsMenu
QxrdWelcomeWindow(QxrdApplication *app)