BornAgain  1.19.0
Simulate and fit neutron and x-ray scattering at grazing incidence
styleutils.h
Go to the documentation of this file.
1 // ************************************************************************************************
2 //
3 // BornAgain: simulate and fit reflection and scattering
4 //
5 //! @file gui2/mainwindow/styleutils.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_MAINWINDOW_STYLEUTILS_H
16 #define BORNAGAIN_GUI2_MAINWINDOW_STYLEUTILS_H
17 
18 #include "darefl_export.h"
19 
20 class QSize;
21 class QFont;
22 class QToolBar;
23 
24 namespace gui2 {
25 
26 //! Namespace for central access to all theme styling.
27 
28 namespace StyleUtils {
29 
30 //! Size of tolbar icons for LayerEditor, MaterialEditor and similar.
31 DAREFLCORE_EXPORT QSize ToolBarIconSize();
32 
33 //! Hint on size of docks on main reflectometry window.
34 DAREFLCORE_EXPORT QSize DockSizeHint();
35 
36 //! Hint on minimum size of docks on main reflectometry window.
37 DAREFLCORE_EXPORT QSize DockMinimumSizeHint();
38 
39 //! Set common style for a toolbar.
40 DAREFLCORE_EXPORT void SetToolBarStyleTextBesides(QToolBar* toolbar);
41 
42 }; // namespace StyleUtils
43 
44 } // namespace gui2
45 
46 #endif // BORNAGAIN_GUI2_MAINWINDOW_STYLEUTILS_H
DAREFLCORE_EXPORT QSize ToolBarIconSize()
Size of tolbar icons for LayerEditor, MaterialEditor and similar.
Definition: styleutils.cpp:24
DAREFLCORE_EXPORT void SetToolBarStyleTextBesides(QToolBar *toolbar)
Set common style for a toolbar.
Definition: styleutils.cpp:39
DAREFLCORE_EXPORT QSize DockMinimumSizeHint()
Hint on minimum size of docks on main reflectometry window.
Definition: styleutils.cpp:34
DAREFLCORE_EXPORT QSize DockSizeHint()
Hint on size of docks on main reflectometry window.
Definition: styleutils.cpp:29
Based on Qt example "codeeditor" Copyright (C) 2016 The Qt Company Ltd.
Definition: app_constants.h:20