BornAgain  1.19.79
Simulate and fit neutron and x-ray scattering at grazing incidence
mainwindow_constants.h
Go to the documentation of this file.
1 // ************************************************************************************************
2 //
3 // BornAgain: simulate and fit reflection and scattering
4 //
5 //! @file GUI/View/Tool/mainwindow_constants.h
6 //! @brief Defines namespace GUI::Constants
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_VIEW_TOOL_MAINWINDOW_CONSTANTS_H
16 #define BORNAGAIN_GUI_VIEW_TOOL_MAINWINDOW_CONSTANTS_H
17 
18 #include <QString>
19 
20 namespace GUI::Constants {
21 
22 // Settings groups
23 const char S_MAINWINDOW[] = "MainWindow";
24 const char S_MASKEDITOR[] = "MaskEditor";
25 const char S_MATERIALEDITOR[] = "MaterialEditor";
26 const char S_SESSIONMODELVIEW[] = "SessionModelView";
27 
28 // Settings keys
29 const char S_WINDOWSIZE[] = "size";
30 const char S_WINDOWPOSITION[] = "pos";
31 const char S_SPLITTERSIZE[] = "SplitterSize";
32 const char S_VIEWISACTIVE[] = "ViewIsActive";
33 
34 const int MAX_RECENT_PROJECTS = 10;
35 
36 const char MIME_JOBQUEUE[] = "application/org.bornagainproject.jobqueue";
37 
38 // Hints
39 
40 const unsigned int REALTIME_WIDGET_WIDTH_HINT = 480;
41 const unsigned int FIT_ACTIVITY_PANEL_HEIGHT = 380;
42 const unsigned int RUN_FIT_CONTROL_WIDGET_HEIGHT = 50;
43 const unsigned int ITEM_SELECTOR_WIDGET_WIDTH = 96;
44 const unsigned int ITEM_SELECTOR_WIDGET_HEIGHT = 765;
45 
46 const unsigned int hint_panel_width = 230;
47 const unsigned int hint_panel_height = 64;
48 
49 // Widget names
50 
51 const QString JobRealTimeWidgetName = "Job Real Time";
52 const QString JobPropertiesWidgetName = "Job Properties";
53 const QString JobFitPanelName = "Fit Panel";
54 const QString JobSelectorWidgetName = "Job Selector";
55 
56 const QString JobViewActivityName = "Job View Activity";
57 const QString JobRealTimeActivityName = "Real Time Activity";
58 const QString JobFittingActivityName = "Fitting Activity";
59 
60 const int toolbar_icon_size = 32;
61 
62 const int styled_toolbar_height = 25;
63 
64 } // namespace GUI::Constants
65 
66 #endif // BORNAGAIN_GUI_VIEW_TOOL_MAINWINDOW_CONSTANTS_H
const unsigned int ITEM_SELECTOR_WIDGET_WIDTH
const QString JobRealTimeWidgetName
const int styled_toolbar_height
const char MIME_JOBQUEUE[]
const unsigned int hint_panel_height
const int toolbar_icon_size
const char S_MASKEDITOR[]
const unsigned int ITEM_SELECTOR_WIDGET_HEIGHT
const char S_VIEWISACTIVE[]
const QString JobViewActivityName
const char S_MAINWINDOW[]
const QString JobRealTimeActivityName
const char S_SESSIONMODELVIEW[]
const char S_WINDOWSIZE[]
const char S_MATERIALEDITOR[]
const unsigned int hint_panel_width
const unsigned int REALTIME_WIDGET_WIDTH_HINT
const char S_SPLITTERSIZE[]
const QString JobPropertiesWidgetName
const QString JobFittingActivityName
const unsigned int FIT_ACTIVITY_PANEL_HEIGHT
const QString JobSelectorWidgetName
const int MAX_RECENT_PROJECTS
const char S_WINDOWPOSITION[]
const QString JobFitPanelName
const unsigned int RUN_FIT_CONTROL_WIDGET_HEIGHT