#include <preferencespatternpage.h>
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 ¤tFormat) |
template<typename T > | |
void | callDateTimeFormatEditor (const T &type, const QStringList &predefinedFormats, const QStringList &userDefinedFormats, QComboBox *box) |
Private Attributes | |
Ui::PreferencesPatternPage * | ui |
Definition at line 64 of file preferencespatternpage.h.
|
explicit |
Definition at line 82 of file preferencespatternpage.cpp.
References initDefaultSeamAllowance(), initGrainlines(), initializeLabelsTab(), initNotches(), and ui.
|
virtual |
Definition at line 96 of file preferencespatternpage.cpp.
References ui.
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().
|
private |
Definition at line 372 of file preferencespatternpage.cpp.
References DialogDateTimeFormats::GetFormats(), and SCASSERT.
Referenced by editDateTimeFormats().
|
privateslot |
Definition at line 227 of file preferencespatternpage.cpp.
References callDateTimeFormatEditor(), VCommonSettings::GetUserDefinedDateFormats(), VCommonSettings::GetUserDefinedTimeFormats(), VCommonSettings::PredefinedDateFormats(), VCommonSettings::PredefinedTimeFormats(), qApp, and ui.
Referenced by initializeLabelsTab().
|
private |
Definition at line 354 of file preferencespatternpage.cpp.
References SCASSERT.
Referenced by initializeLabelsTab().
void PreferencesPatternPage::initDefaultSeamAllowance | ( | ) |
Definition at line 152 of file preferencespatternpage.cpp.
References qApp, StrToUnits(), ui, and UnitsToStr().
Referenced by DialogPreferences::Apply(), and PreferencesPatternPage().
|
private |
Definition at line 335 of file preferencespatternpage.cpp.
References qApp, StrToUnits(), ui, and UnitsToStr().
Referenced by PreferencesPatternPage().
|
private |
Definition at line 269 of file preferencespatternpage.cpp.
References editDateTimeFormats(), VCommonSettings::getDefaultPatternTemplate(), VCommonSettings::getDefaultPieceTemplate(), VCommonSettings::GetLabelDateFormat(), VCommonSettings::GetLabelTimeFormat(), VCommonSettings::GetUserDefinedDateFormats(), VCommonSettings::GetUserDefinedTimeFormats(), initComboBoxFormats(), VCommonSettings::PredefinedDateFormats(), VCommonSettings::PredefinedTimeFormats(), qApp, setDefaultTemplate(), StrToUnits(), ui, and UnitsToStr().
Referenced by PreferencesPatternPage().
|
private |
Definition at line 304 of file preferencespatternpage.cpp.
References qApp, StrToUnits(), ui, and UnitsToStr().
Referenced by PreferencesPatternPage().
|
privateslot |
Definition at line 245 of file preferencespatternpage.cpp.
References VCommonSettings::GetPathLabelTemplate(), qApp, VCommonSettings::setDefaultPatternTemplate(), VCommonSettings::setDefaultPieceTemplate(), and ui.
Referenced by initializeLabelsTab().
|
private |
Definition at line 81 of file preferencespatternpage.h.
Referenced by Apply(), editDateTimeFormats(), initDefaultSeamAllowance(), initGrainlines(), initializeLabelsTab(), initNotches(), PreferencesPatternPage(), setDefaultTemplate(), and ~PreferencesPatternPage().