BornAgain  1.19.79
Simulate and fit neutron and x-ray scattering at grazing incidence
GUI::Constants Namespace Reference

Functions

int plot_axes_label_size ()
 
int plot_colorbar_size ()
 
int plot_tick_label_size ()
 

Variables

const unsigned int FIT_ACTIVITY_PANEL_HEIGHT = 380
 
const unsigned int hint_panel_height = 64
 
const unsigned int hint_panel_width = 230
 
const unsigned int ITEM_SELECTOR_WIDGET_HEIGHT = 765
 
const unsigned int ITEM_SELECTOR_WIDGET_WIDTH = 96
 
const QString JobFitPanelName = "Fit Panel"
 
const QString JobFittingActivityName = "Fitting Activity"
 
const QString JobPropertiesWidgetName = "Job Properties"
 
const QString JobRealTimeActivityName = "Real Time Activity"
 
const QString JobRealTimeWidgetName = "Job Real Time"
 
const QString JobSelectorWidgetName = "Job Selector"
 
const QString JobViewActivityName = "Job View Activity"
 
const int MAX_RECENT_PROJECTS = 10
 
const char MIME_JOBQUEUE [] = "application/org.bornagainproject.jobqueue"
 
const unsigned int REALTIME_WIDGET_WIDTH_HINT = 480
 
const unsigned int RUN_FIT_CONTROL_WIDGET_HEIGHT = 50
 
const char S_MAINWINDOW [] = "MainWindow"
 
const char S_MASKEDITOR [] = "MaskEditor"
 
const char S_MATERIALEDITOR [] = "MaterialEditor"
 
const char S_SESSIONMODELVIEW [] = "SessionModelView"
 
const char S_SPLITTERSIZE [] = "SplitterSize"
 
const char S_VIEWISACTIVE [] = "ViewIsActive"
 
const char S_WINDOWPOSITION [] = "pos"
 
const char S_WINDOWSIZE [] = "size"
 
const int styled_toolbar_height = 25
 
const int toolbar_icon_size = 32
 

Function Documentation

◆ plot_axes_label_size()

int GUI::Constants::plot_axes_label_size ( )
inline

Definition at line 28 of file PlotConstants.h.

29 {
31 }
int SystemPointSize()
Returns size in points of default system font.
Definition: StyleUtils.cpp:119

References GUI::Util::Style::SystemPointSize().

Referenced by HistogramPlot::HistogramPlot().

Here is the call graph for this function:

◆ plot_colorbar_size()

int GUI::Constants::plot_colorbar_size ( )
inline

Definition at line 33 of file PlotConstants.h.

34 {
35  return GUI::Util::Style::SizeOfLetterM().width();
36 }
QSize SizeOfLetterM(const QWidget *widget=nullptr)
Returns size of largest letter of default system font.
Definition: StyleUtils.cpp:113

References GUI::Util::Style::SizeOfLetterM().

Referenced by ColorMap::initColorMap().

Here is the call graph for this function:

◆ plot_tick_label_size()

int GUI::Constants::plot_tick_label_size ( )
inline

Definition at line 23 of file PlotConstants.h.

24 {
25  return GUI::Util::Style::SystemPointSize() * 0.9;
26 }

References GUI::Util::Style::SystemPointSize().

Referenced by HistogramPlot::HistogramPlot(), Plot1D::Plot1D(), ProjectionsPlot::ProjectionsPlot(), ColorMap::initColorMap(), and SpecularPlot::initPlot().

Here is the call graph for this function:

Variable Documentation

◆ FIT_ACTIVITY_PANEL_HEIGHT

const unsigned int GUI::Constants::FIT_ACTIVITY_PANEL_HEIGHT = 380

Definition at line 41 of file mainwindow_constants.h.

Referenced by FitActivityPanel::sizeHint().

◆ hint_panel_height

const unsigned int GUI::Constants::hint_panel_height = 64

Definition at line 47 of file mainwindow_constants.h.

◆ hint_panel_width

const unsigned int GUI::Constants::hint_panel_width = 230

Definition at line 46 of file mainwindow_constants.h.

◆ ITEM_SELECTOR_WIDGET_HEIGHT

const unsigned int GUI::Constants::ITEM_SELECTOR_WIDGET_HEIGHT = 765

Definition at line 44 of file mainwindow_constants.h.

◆ ITEM_SELECTOR_WIDGET_WIDTH

const unsigned int GUI::Constants::ITEM_SELECTOR_WIDGET_WIDTH = 96

Definition at line 43 of file mainwindow_constants.h.

Referenced by ImportDataView::ImportDataView().

◆ JobFitPanelName

const QString GUI::Constants::JobFitPanelName = "Fit Panel"

Definition at line 53 of file mainwindow_constants.h.

Referenced by FitActivityPanel::FitActivityPanel().

◆ JobFittingActivityName

const QString GUI::Constants::JobFittingActivityName = "Fitting Activity"

Definition at line 58 of file mainwindow_constants.h.

◆ JobPropertiesWidgetName

const QString GUI::Constants::JobPropertiesWidgetName = "Job Properties"

Definition at line 52 of file mainwindow_constants.h.

Referenced by JobPropertiesWidget::JobPropertiesWidget().

◆ JobRealTimeActivityName

const QString GUI::Constants::JobRealTimeActivityName = "Real Time Activity"

Definition at line 57 of file mainwindow_constants.h.

◆ JobRealTimeWidgetName

const QString GUI::Constants::JobRealTimeWidgetName = "Job Real Time"

Definition at line 51 of file mainwindow_constants.h.

Referenced by JobRealTimeWidget::JobRealTimeWidget().

◆ JobSelectorWidgetName

const QString GUI::Constants::JobSelectorWidgetName = "Job Selector"

Definition at line 54 of file mainwindow_constants.h.

Referenced by JobSelectorWidget::JobSelectorWidget().

◆ JobViewActivityName

const QString GUI::Constants::JobViewActivityName = "Job View Activity"

Definition at line 56 of file mainwindow_constants.h.

◆ MAX_RECENT_PROJECTS

const int GUI::Constants::MAX_RECENT_PROJECTS = 10

Definition at line 34 of file mainwindow_constants.h.

Referenced by ProjectManager::addToRecentProjects().

◆ MIME_JOBQUEUE

const char GUI::Constants::MIME_JOBQUEUE[] = "application/org.bornagainproject.jobqueue"

Definition at line 36 of file mainwindow_constants.h.

◆ REALTIME_WIDGET_WIDTH_HINT

const unsigned int GUI::Constants::REALTIME_WIDGET_WIDTH_HINT = 480

◆ RUN_FIT_CONTROL_WIDGET_HEIGHT

const unsigned int GUI::Constants::RUN_FIT_CONTROL_WIDGET_HEIGHT = 50

Definition at line 42 of file mainwindow_constants.h.

Referenced by RunFitControlWidget::RunFitControlWidget().

◆ S_MAINWINDOW

const char GUI::Constants::S_MAINWINDOW[] = "MainWindow"

Definition at line 23 of file mainwindow_constants.h.

Referenced by MainWindow::readSettings(), and MainWindow::writeSettings().

◆ S_MASKEDITOR

const char GUI::Constants::S_MASKEDITOR[] = "MaskEditor"

Definition at line 24 of file mainwindow_constants.h.

◆ S_MATERIALEDITOR

const char GUI::Constants::S_MATERIALEDITOR[] = "MaterialEditor"

Definition at line 25 of file mainwindow_constants.h.

◆ S_SESSIONMODELVIEW

const char GUI::Constants::S_SESSIONMODELVIEW[] = "SessionModelView"

◆ S_SPLITTERSIZE

const char GUI::Constants::S_SPLITTERSIZE[] = "SplitterSize"

Definition at line 31 of file mainwindow_constants.h.

◆ S_VIEWISACTIVE

const char GUI::Constants::S_VIEWISACTIVE[] = "ViewIsActive"

◆ S_WINDOWPOSITION

const char GUI::Constants::S_WINDOWPOSITION[] = "pos"

Definition at line 30 of file mainwindow_constants.h.

Referenced by MainWindow::readSettings(), and MainWindow::writeSettings().

◆ S_WINDOWSIZE

const char GUI::Constants::S_WINDOWSIZE[] = "size"

Definition at line 29 of file mainwindow_constants.h.

Referenced by MainWindow::readSettings(), and MainWindow::writeSettings().

◆ styled_toolbar_height

const int GUI::Constants::styled_toolbar_height = 25

Definition at line 62 of file mainwindow_constants.h.

◆ toolbar_icon_size

const int GUI::Constants::toolbar_icon_size = 32