BornAgain  1.19.79
Simulate and fit neutron and x-ray scattering at grazing incidence
DesignerHelper Class Reference

Description

collection of static methods with SampleDesigner geometry settings

Definition at line 19 of file DesignerHelper.h.

Static Public Member Functions

static int getLabelFontSize ()
 
static int getPortFontSize ()
 
static int getPythonEditorFontSize ()
 
static int getSectionFontSize ()
 Returns system dependent font size. More...
 

Member Function Documentation

◆ getLabelFontSize()

int DesignerHelper::getLabelFontSize ( )
static

Definition at line 23 of file DesignerHelper.cpp.

24 {
25  return GUI::Util::Style::SystemPointSize() * 0.9;
26 }
int SystemPointSize()
Returns size in points of default system font.
Definition: StyleUtils.cpp:119

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

Referenced by RunFitControlWidget::RunFitControlWidget(), AboutDialog::createTextLayout(), and GUI::Util::Style::labelFont().

Here is the call graph for this function:

◆ getPortFontSize()

int DesignerHelper::getPortFontSize ( )
static

Definition at line 28 of file DesignerHelper.cpp.

29 {
30  return GUI::Util::Style::SystemPointSize() * 0.7;
31 }

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

Referenced by RunFitControlWidget::RunFitControlWidget().

Here is the call graph for this function:

◆ getPythonEditorFontSize()

int DesignerHelper::getPythonEditorFontSize ( )
static

Definition at line 33 of file DesignerHelper.cpp.

34 {
36 }

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

Referenced by PythonScriptWidget::PythonScriptWidget(), and ScriptPanel::ScriptPanel().

Here is the call graph for this function:

◆ getSectionFontSize()

int DesignerHelper::getSectionFontSize ( )
static

Returns system dependent font size.

Definition at line 18 of file DesignerHelper.cpp.

19 {
20  return GUI::Util::Style::SystemPointSize() * 1.2;
21 }

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

Referenced by ProjectLoadProblemDialog::ProjectLoadProblemDialog(), OverlayLabelWidget::paintEvent(), and GUI::Util::Style::sectionFont().

Here is the call graph for this function:

The documentation for this class was generated from the following files: