BornAgain  1.19.0
Simulate and fit neutron and x-ray scattering at grazing incidence
openprojectwidget.h
Go to the documentation of this file.
1 // ************************************************************************************************
2 //
3 // BornAgain: simulate and fit reflection and scattering
4 //
5 //! @file gui2/welcomeview/openprojectwidget.h
6 //! @brief Defines class CLASS?
7 //!
8 //! @homepage http://www.bornagainproject.org
9 //! @license GNU General Public License v3 or higher (see COPYING)
10 //! @copyright Forschungszentrum Jülich GmbH 2020
11 //! @authors Scientific Computing Group at MLZ (see CITATION, AUTHORS)
12 //
13 // ************************************************************************************************
14 
15 #ifndef BORNAGAIN_GUI2_WELCOMEVIEW_OPENPROJECTWIDGET_H
16 #define BORNAGAIN_GUI2_WELCOMEVIEW_OPENPROJECTWIDGET_H
17 
18 #include "darefl_export.h"
19 #include <QWidget>
20 #include <memory>
21 
22 class QBoxLayout;
23 class QPushButton;
24 class QLabel;
25 
26 namespace gui2 {
27 
28 //! Widget with logo, name of the program and buttons to create new project or open existing one.
29 //! Occupies right part of WelcomeView.
30 
31 class DAREFLCORE_EXPORT OpenProjectWidget : public QWidget {
32  Q_OBJECT
33 
34 public:
35  explicit OpenProjectWidget(QWidget* parent = nullptr);
36 
37  QSize sizeHint() const override;
38  QSize minimumSizeHint() const override;
39 
40 signals:
43 
44 private:
45  QBoxLayout* createProjectTitleLayout();
46  QBoxLayout* createLinkedLabelLayout();
47 
48  QLabel* m_newProjectLabel{nullptr};
49  QLabel* m_openProjectLabel{nullptr};
50 };
51 
52 } // namespace gui2
53 
54 #endif // BORNAGAIN_GUI2_WELCOMEVIEW_OPENPROJECTWIDGET_H
Widget with logo, name of the program and buttons to create new project or open existing one.
Based on Qt example "codeeditor" Copyright (C) 2016 The Qt Company Ltd.
Definition: app_constants.h:20