BornAgain  1.19.0
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/coregui/mainwindow/mainwindow_constants.h
6 //! @brief Defines namespace 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_COREGUI_MAINWINDOW_MAINWINDOW_CONSTANTS_H
16 #define BORNAGAIN_GUI_COREGUI_MAINWINDOW_MAINWINDOW_CONSTANTS_H
17 
18 #include <QString>
19 
20 namespace Constants {
21 
22 // general application settings
23 const char APPLICATION_NAME[] = "BornAgain";
24 const char ORGANIZATION_NAME[] = "Scientific Computing at MLZ";
25 
26 // Settings groups
27 const char S_MAINWINDOW[] = "MainWindow";
28 const char S_MASKEDITOR[] = "MaskEditor";
29 const char S_UPDATES[] = "Updates";
30 const char S_MATERIALEDITOR[] = "MaterialEditor";
31 const char S_SESSIONMODELVIEW[] = "SessionModelView";
32 
33 // Settings keys
34 const char S_WINDOWSIZE[] = "size";
35 const char S_WINDOWPOSITION[] = "pos";
36 const char S_SPLITTERSIZE[] = "SplitterSize";
37 const char S_CHECKFORUPDATES[] = "CheckForUpdates";
38 const char S_VIEWISACTIVE[] = "ViewIsActive";
39 
40 // Updates
41 const char S_VERSION_URL[] = "http://apps.jcns.fz-juelich.de/src/BornAgain/CHANGELOG";
42 const char S_DOWNLOAD_LINK[] = "http://www.bornagainproject.org/download";
43 
44 const int MAX_RECENT_PROJECTS = 10;
45 
46 const char MIME_JOBQUEUE[] = "application/org.bornagainproject.jobqueue";
47 
48 // Hints
49 
50 const unsigned int REALTIME_WIDGET_WIDTH_HINT = 480;
51 const unsigned int FIT_ACTIVITY_PANEL_HEIGHT = 380;
52 const unsigned int FIT_SUITE_WIDGET_HEIGHT = 330;
53 const unsigned int RUN_FIT_CONTROL_WIDGET_HEIGHT = 50;
54 const unsigned int ITEM_SELECTOR_WIDGET_WIDTH = 96;
55 const unsigned int ITEM_SELECTOR_WIDGET_HEIGHT = 765;
56 
57 const unsigned int hint_panel_width = 230;
58 const unsigned int hint_panel_height = 64;
59 
60 // Widget names
61 
62 const QString JobRealTimeWidgetName = "Job Real Time";
63 const QString JobPropertiesWidgetName = "Job Properties";
64 const QString JobFitPanelName = "Fit Panel";
65 const QString JobSelectorWidgetName = "Job Selector";
66 const QString JobMessagePanelName = "Message Panel";
67 
68 const QString JobViewActivityName = "Job View Activity";
69 const QString JobRealTimeActivityName = "Real Time Activity";
70 const QString JobFittingActivityName = "Fitting Activity";
71 
72 const int toolbar_icon_size = 32;
73 
74 const int styled_toolbar_height = 25;
75 
76 } // namespace Constants
77 
78 #endif // BORNAGAIN_GUI_COREGUI_MAINWINDOW_MAINWINDOW_CONSTANTS_H
const QString JobPropertiesWidgetName
const QString JobMessagePanelName
const char S_CHECKFORUPDATES[]
const unsigned int FIT_SUITE_WIDGET_HEIGHT
const unsigned int REALTIME_WIDGET_WIDTH_HINT
const char S_MASKEDITOR[]
const unsigned int ITEM_SELECTOR_WIDGET_WIDTH
const unsigned int FIT_ACTIVITY_PANEL_HEIGHT
const QString JobFitPanelName
const unsigned int RUN_FIT_CONTROL_WIDGET_HEIGHT
const char S_MATERIALEDITOR[]
const QString JobFittingActivityName
const char S_SESSIONMODELVIEW[]
const unsigned int ITEM_SELECTOR_WIDGET_HEIGHT
const int styled_toolbar_height
const char MIME_JOBQUEUE[]
const unsigned int hint_panel_height
const int toolbar_icon_size
const QString JobRealTimeActivityName
const QString JobViewActivityName
const unsigned int hint_panel_width
const int MAX_RECENT_PROJECTS
const QString JobSelectorWidgetName
const char S_DOWNLOAD_LINK[]
const char APPLICATION_NAME[]
const char ORGANIZATION_NAME[]
const char S_VIEWISACTIVE[]
const char S_WINDOWPOSITION[]
const QString JobRealTimeWidgetName
const char S_UPDATES[]
const char S_WINDOWSIZE[]
const char S_SPLITTERSIZE[]
const char S_MAINWINDOW[]
const char S_VERSION_URL[]