BornAgain  1.19.0
Simulate and fit neutron and x-ray scattering at grazing incidence
SplashScreen.h
Go to the documentation of this file.
1 // ************************************************************************************************
2 //
3 // BornAgain: simulate and fit reflection and scattering
4 //
5 //! @file GUI/coregui/mainwindow/SplashScreen.h
6 //! @brief Defines class SplashScreen
7 //!
8 //! @homepage http://www.bornagainproject.org
9 //! @license GNU General Public License v3 or higher (see COPYING)
10 //! @copyright Forschungszentrum Jülich GmbH 2018
11 //! @authors Scientific Computing Group at MLZ (see CITATION, AUTHORS)
12 //
13 // ************************************************************************************************
14 
15 #ifndef BORNAGAIN_GUI_COREGUI_MAINWINDOW_SPLASHSCREEN_H
16 #define BORNAGAIN_GUI_COREGUI_MAINWINDOW_SPLASHSCREEN_H
17 
18 #include <QSplashScreen>
19 
20 class SplashScreen : public QSplashScreen {
21  Q_OBJECT
22 public:
23  explicit SplashScreen(QWidget* parent = nullptr);
24 
25  void start(int show_during = 1500);
26 
27 public slots:
28  void setProgress(int value);
29 
30 protected:
31  void drawContents(QPainter* painter);
32 
33 private:
35 };
36 
37 #endif // BORNAGAIN_GUI_COREGUI_MAINWINDOW_SPLASHSCREEN_H
SplashScreen(QWidget *parent=nullptr)
void drawContents(QPainter *painter)
void start(int show_during=1500)
int m_percentage_done
Definition: SplashScreen.h:34
void setProgress(int value)