Seamly2D
Code documentation
PreferencesPatternPage Class Reference

#include <preferencespatternpage.h>

Inheritance diagram for PreferencesPatternPage:
Collaboration diagram for PreferencesPatternPage:

Public Member Functions

 PreferencesPatternPage (QWidget *parent=nullptr)
 
virtual ~PreferencesPatternPage ()
 
void Apply ()
 
void initDefaultSeamAllowance ()
 

Private Slots

void editDateTimeFormats ()
 
void setDefaultTemplate ()
 

Private Member Functions

void initializeLabelsTab ()
 
void initNotches ()
 
void initGrainlines ()
 
void initComboBoxFormats (QComboBox *box, const QStringList &items, const QString &currentFormat)
 
template<typename T >
void callDateTimeFormatEditor (const T &type, const QStringList &predefinedFormats, const QStringList &userDefinedFormats, QComboBox *box)
 

Private Attributes

Ui::PreferencesPatternPage * ui
 

Detailed Description

Definition at line 64 of file preferencespatternpage.h.

Constructor & Destructor Documentation

◆ PreferencesPatternPage()

PreferencesPatternPage::PreferencesPatternPage ( QWidget *  parent = nullptr)
explicit

◆ ~PreferencesPatternPage()

PreferencesPatternPage::~PreferencesPatternPage ( )
virtual

Definition at line 96 of file preferencespatternpage.cpp.

References ui.

Member Function Documentation

◆ Apply()

void PreferencesPatternPage::Apply ( )

Definition at line 102 of file preferencespatternpage.cpp.

References anonymous_namespace{preferencespatternpage.cpp}::initAllStringsComboBox(), qApp, VCommonSettings::setDefaultCutColor(), VCommonSettings::setDefaultCutLinetype(), VCommonSettings::setDefaultCutLineweight(), VCommonSettings::setDefaultCutoutColor(), VCommonSettings::setDefaultCutoutLinetype(), VCommonSettings::setDefaultCutoutLineweight(), VCommonSettings::setDefaultGrainlineColor(), VCommonSettings::setDefaultGrainlineLength(), VCommonSettings::setDefaultGrainlineLineweight(), VCommonSettings::setDefaultGrainlineVisibilty(), VCommonSettings::setDefaultInternalColor(), VCommonSettings::setDefaultInternalLinetype(), VCommonSettings::setDefaultInternalLineweight(), VCommonSettings::setDefaultLabelColor(), VCommonSettings::setDefaultLabelHeight(), VCommonSettings::setDefaultLabelWidth(), VCommonSettings::setDefaultNotchColor(), VCommonSettings::setDefaultNotchLength(), VCommonSettings::setDefaultNotchType(), VCommonSettings::setDefaultNotchWidth(), VCommonSettings::SetDefaultSeamAllowance(), VCommonSettings::setDefaultSeamAllowanceVisibilty(), VCommonSettings::setDefaultSeamColor(), VCommonSettings::setDefaultSeamLinetype(), VCommonSettings::setDefaultSeamLineweight(), VCommonSettings::setForbidPieceFlipping(), VCommonSettings::setHideSeamLine(), VCommonSettings::SetLabelDateFormat(), VCommonSettings::SetLabelTimeFormat(), VCommonSettings::setShowPatternLabels(), VCommonSettings::setShowPieceLabels(), VCommonSettings::setShowSeamAllowanceNotch(), VCommonSettings::setShowSeamlineNotch(), VCommonSettings::SetUserDefinedDateFormats(), VCommonSettings::SetUserDefinedTimeFormats(), and ui.

Referenced by DialogPreferences::Apply().

◆ callDateTimeFormatEditor()

template<typename T >
void PreferencesPatternPage::callDateTimeFormatEditor ( const T &  type,
const QStringList &  predefinedFormats,
const QStringList &  userDefinedFormats,
QComboBox *  box 
)
private

Definition at line 372 of file preferencespatternpage.cpp.

References DialogDateTimeFormats::GetFormats(), and SCASSERT.

Referenced by editDateTimeFormats().

◆ editDateTimeFormats

◆ initComboBoxFormats()

void PreferencesPatternPage::initComboBoxFormats ( QComboBox *  box,
const QStringList &  items,
const QString &  currentFormat 
)
private

Definition at line 354 of file preferencespatternpage.cpp.

References SCASSERT.

Referenced by initializeLabelsTab().

◆ initDefaultSeamAllowance()

void PreferencesPatternPage::initDefaultSeamAllowance ( )

Definition at line 152 of file preferencespatternpage.cpp.

References qApp, StrToUnits(), ui, and UnitsToStr().

Referenced by DialogPreferences::Apply(), and PreferencesPatternPage().

◆ initGrainlines()

void PreferencesPatternPage::initGrainlines ( )
private

Definition at line 335 of file preferencespatternpage.cpp.

References qApp, StrToUnits(), ui, and UnitsToStr().

Referenced by PreferencesPatternPage().

◆ initializeLabelsTab()

◆ initNotches()

void PreferencesPatternPage::initNotches ( )
private

Definition at line 304 of file preferencespatternpage.cpp.

References qApp, StrToUnits(), ui, and UnitsToStr().

Referenced by PreferencesPatternPage().

◆ setDefaultTemplate

void PreferencesPatternPage::setDefaultTemplate ( )
privateslot

Member Data Documentation

◆ ui


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