#include <dialogpatternproperties.h>
Signals | |
void | UpdateGradation () |
Public Member Functions | |
DialogPatternProperties (VPattern *doc, VContainer *pattern, QWidget *parent=nullptr) | |
virtual | ~DialogPatternProperties () Q_DECL_OVERRIDE |
Private Slots | |
void | DefValueChanged () |
void | LabelDataChanged () |
void | Apply () |
void | Ok () |
void | SelectAll (int state) |
void | CheckStateHeight (int state) |
void | CheckStateSize (int state) |
void | DescEdited () |
void | ChangeImage () |
void | SaveImage () |
void | EditLabel () |
Private Member Functions | |
void | SetHeightsChecked (bool enabled) |
void | SetSizesChecked (bool enabled) |
void | InitHeights () |
void | InitSizes () |
template<typename Func > | |
void | Init (QCheckBox *check, int val, Func slot) |
template<typename GVal > | |
void | SetOptions (const QMap< GVal, bool > &option) |
template<typename GVal > | |
void | InitComboBox (QComboBox *box, const QMap< GVal, bool > &option) |
void | initComboBoxFormats (QComboBox *box, const QStringList &items, const QString ¤tFormat) |
void | CheckApplyOk () |
void | SaveDescription () |
void | SaveGradation () |
void | SaveDefValues () |
void | SaveLabelData () |
void | SaveTemplateData () |
void | SaveReadOnlyState () |
void | SetDefaultHeight (const QString &def) |
void | SetDefaultSize (const QString &def) |
void | UpdateDefHeight () |
void | UpdateDefSize () |
void | InitImage () |
QImage | GetImage () |
Private Attributes | |
Ui::DialogPatternProperties * | ui |
VPattern * | doc |
VContainer * | pattern |
int | heightsChecked |
int | sizesChecked |
QMap< GHeights, bool > | heights |
QMap< GSizes, bool > | sizes |
QMap< QCheckBox *, int > | data |
bool | descriptionChanged |
bool | gradationChanged |
bool | defaultChanged |
bool | securityChanged |
bool | labelDataChanged |
bool | askSaveLabelData |
bool | templateDataChanged |
QAction * | deleteAction |
QAction * | changeImageAction |
QAction * | saveImageAction |
QAction * | showImageAction |
QVector< VLabelTemplateLine > | templateLines |
Definition at line 68 of file dialogpatternproperties.h.
|
explicit |
Definition at line 72 of file dialogpatternproperties.cpp.
References Apply(), defaultChanged, DefValueChanged(), DescEdited(), doc, EditLabel(), VAbstractPattern::GetCompanyName(), VAbstractPattern::GetCustomerName(), VPattern::GetDefCustomHeight(), VPattern::GetDefCustomSize(), VAbstractPattern::GetDescription(), VAbstractPattern::GetGradationHeights(), VAbstractPattern::GetGradationSizes(), VAbstractPattern::GetLabelDateFormat(), VAbstractPattern::GetLabelTimeFormat(), VAbstractPattern::GetNotes(), VCommonSettings::GetOsSeparator(), VAbstractPattern::GetPatternName(), VAbstractPattern::GetPatternNumber(), VCommonSettings::GetUserDefinedDateFormats(), VCommonSettings::GetUserDefinedTimeFormats(), gradationChanged, heights, InitComboBox(), initComboBoxFormats(), InitHeights(), InitImage(), InitSizes(), VPattern::IsDefCustom(), VPattern::IsReadOnly(), LabelDataChanged(), Multisize, Ok(), VCommonSettings::PredefinedDateFormats(), VCommonSettings::PredefinedTimeFormats(), qApp, SCASSERT, securityChanged, SetDefaultHeight(), SetDefaultSize(), SetOptions(), sizes, and ui.
|
virtual |
Definition at line 222 of file dialogpatternproperties.cpp.
References ui.
|
privateslot |
Definition at line 228 of file dialogpatternproperties.cpp.
References doc, SaveDefValues(), SaveDescription(), SaveGradation(), SaveLabelData(), SaveReadOnlyState(), SaveTemplateData(), ui, and VAbstractPattern::UpdatePatternLabel().
Referenced by DialogPatternProperties().
|
privateslot |
Definition at line 831 of file dialogpatternproperties.cpp.
References deleteAction, doc, saveImageAction, VAbstractPattern::SetImage(), showImageAction, and ui.
Referenced by InitImage().
|
private |
Definition at line 558 of file dialogpatternproperties.cpp.
References heightsChecked, sizesChecked, and ui.
Referenced by CheckStateHeight(), and CheckStateSize().
|
privateslot |
Definition at line 310 of file dialogpatternproperties.cpp.
References ALL, CheckApplyOk(), data, gradationChanged, heights, heightsChecked, heightsCount, ui, and UpdateDefHeight().
Referenced by InitHeights().
|
privateslot |
Definition at line 351 of file dialogpatternproperties.cpp.
References ALL, CheckApplyOk(), data, gradationChanged, sizes, sizesChecked, sizesCount, ui, and UpdateDefSize().
Referenced by InitSizes().
|
privateslot |
Definition at line 399 of file dialogpatternproperties.cpp.
References defaultChanged.
Referenced by DialogPatternProperties().
|
privateslot |
Definition at line 393 of file dialogpatternproperties.cpp.
References descriptionChanged.
Referenced by DialogPatternProperties().
|
privateslot |
Definition at line 898 of file dialogpatternproperties.cpp.
References askSaveLabelData, doc, VAbstractPattern::getPatternLabelTemplate(), EditLabelTemplateDialog::GetTemplate(), labelDataChanged, SaveLabelData(), EditLabelTemplateDialog::SetTemplate(), templateDataChanged, and templateLines.
Referenced by DialogPatternProperties().
|
private |
Definition at line 762 of file dialogpatternproperties.cpp.
References doc, VAbstractPattern::GetImage(), and VAbstractPattern::GetImageExtension().
Referenced by InitImage().
|
private |
Definition at line 713 of file dialogpatternproperties.cpp.
References data.
Referenced by InitHeights(), and InitSizes().
|
private |
Definition at line 743 of file dialogpatternproperties.cpp.
References Cm, VContainer::GetPatternUnit(), pattern, SCASSERT, and UnitConvertor().
Referenced by DialogPatternProperties(), UpdateDefHeight(), and UpdateDefSize().
|
private |
Definition at line 540 of file dialogpatternproperties.cpp.
References SCASSERT.
Referenced by DialogPatternProperties().
|
private |
Definition at line 474 of file dialogpatternproperties.cpp.
References ALL, CheckStateHeight(), H104, H110, H116, H122, H128, H134, H140, H146, H152, H158, H164, H170, H176, H182, H188, H194, H200, H50, H56, H62, H68, H74, H80, H86, H92, H98, Init(), SelectAll(), and ui.
Referenced by DialogPatternProperties().
|
private |
Definition at line 777 of file dialogpatternproperties.cpp.
References ChangeImage(), changeImageAction, deleteAction, VAbstractPattern::DeleteImage(), doc, GetImage(), SaveImage(), saveImageAction, showImageAction, and ui.
Referenced by DialogPatternProperties().
|
private |
|
privateslot |
Definition at line 405 of file dialogpatternproperties.cpp.
References askSaveLabelData, and labelDataChanged.
Referenced by DialogPatternProperties().
|
privateslot |
Definition at line 253 of file dialogpatternproperties.cpp.
References doc, SaveDefValues(), SaveDescription(), SaveGradation(), SaveLabelData(), SaveReadOnlyState(), SaveTemplateData(), and VAbstractPattern::UpdatePatternLabel().
Referenced by DialogPatternProperties().
|
private |
Definition at line 592 of file dialogpatternproperties.cpp.
References defaultChanged, doc, VAbstractPattern::patternChanged(), VPattern::SetDefCustom(), VPattern::SetDefCustomHeight(), VPattern::SetDefCustomSize(), and ui.
|
private |
Definition at line 566 of file dialogpatternproperties.cpp.
References descriptionChanged, doc, VAbstractPattern::patternChanged(), VAbstractPattern::SetDescription(), VAbstractPattern::SetNotes(), and ui.
|
private |
Definition at line 579 of file dialogpatternproperties.cpp.
References doc, gradationChanged, heights, VAbstractPattern::patternChanged(), VAbstractPattern::SetGradationHeights(), VAbstractPattern::SetGradationSizes(), sizes, and UpdateGradation().
|
privateslot |
Definition at line 873 of file dialogpatternproperties.cpp.
References doc, VAbstractPattern::GetImage(), and VAbstractPattern::GetImageExtension().
Referenced by InitImage().
|
private |
Definition at line 612 of file dialogpatternproperties.cpp.
References askSaveLabelData, doc, labelDataChanged, VAbstractPattern::patternChanged(), VAbstractPattern::SetCompanyName(), VAbstractPattern::SetCustomerName(), VAbstractPattern::SetLabelDateFormat(), VAbstractPattern::SetLabelTimeFormat(), VAbstractPattern::SetPatternName(), VAbstractPattern::SetPatternNumber(), ui, and VAbstractPattern::UpdatePatternLabel().
Referenced by Apply(), EditLabel(), and Ok().
|
private |
Definition at line 643 of file dialogpatternproperties.cpp.
References doc, VAbstractPattern::patternChanged(), securityChanged, VPattern::SetReadOnly(), and ui.
|
private |
Definition at line 631 of file dialogpatternproperties.cpp.
References doc, VAbstractPattern::patternChanged(), VAbstractPattern::setPatternLabelTemplate(), templateDataChanged, templateLines, and VAbstractPattern::UpdatePatternLabel().
|
privateslot |
Definition at line 268 of file dialogpatternproperties.cpp.
References data, heights, SetHeightsChecked(), SetSizesChecked(), sizes, and ui.
Referenced by InitHeights(), and InitSizes().
|
private |
Definition at line 654 of file dialogpatternproperties.cpp.
References defaultChanged, VContainer::height(), and ui.
Referenced by DialogPatternProperties(), and UpdateDefHeight().
|
private |
Definition at line 675 of file dialogpatternproperties.cpp.
References defaultChanged, VContainer::size(), and ui.
Referenced by DialogPatternProperties(), and UpdateDefSize().
|
private |
Definition at line 412 of file dialogpatternproperties.cpp.
References ui.
Referenced by SelectAll().
|
private |
Definition at line 721 of file dialogpatternproperties.cpp.
References data.
Referenced by DialogPatternProperties().
|
private |
Definition at line 443 of file dialogpatternproperties.cpp.
References ui.
Referenced by SelectAll().
|
private |
Definition at line 696 of file dialogpatternproperties.cpp.
References heights, InitComboBox(), SetDefaultHeight(), and ui.
Referenced by CheckStateHeight().
|
private |
Definition at line 704 of file dialogpatternproperties.cpp.
References InitComboBox(), SetDefaultSize(), sizes, and ui.
Referenced by CheckStateSize().
|
signal |
Referenced by SaveGradation().
|
private |
Definition at line 103 of file dialogpatternproperties.h.
Referenced by EditLabel(), LabelDataChanged(), and SaveLabelData().
|
private |
Definition at line 106 of file dialogpatternproperties.h.
Referenced by InitImage().
|
private |
Definition at line 97 of file dialogpatternproperties.h.
Referenced by CheckStateHeight(), CheckStateSize(), Init(), SelectAll(), and SetOptions().
|
private |
Definition at line 100 of file dialogpatternproperties.h.
Referenced by DefValueChanged(), DialogPatternProperties(), SaveDefValues(), SetDefaultHeight(), and SetDefaultSize().
|
private |
Definition at line 105 of file dialogpatternproperties.h.
Referenced by ChangeImage(), and InitImage().
|
private |
Definition at line 98 of file dialogpatternproperties.h.
Referenced by DescEdited(), and SaveDescription().
|
private |
Definition at line 91 of file dialogpatternproperties.h.
Referenced by Apply(), ChangeImage(), DialogPatternProperties(), EditLabel(), GetImage(), InitImage(), Ok(), SaveDefValues(), SaveDescription(), SaveGradation(), SaveImage(), SaveLabelData(), SaveReadOnlyState(), and SaveTemplateData().
|
private |
Definition at line 99 of file dialogpatternproperties.h.
Referenced by CheckStateHeight(), CheckStateSize(), DialogPatternProperties(), and SaveGradation().
Definition at line 95 of file dialogpatternproperties.h.
Referenced by CheckStateHeight(), DialogPatternProperties(), SaveGradation(), SelectAll(), and UpdateDefHeight().
|
private |
Definition at line 93 of file dialogpatternproperties.h.
Referenced by CheckApplyOk(), and CheckStateHeight().
|
private |
Definition at line 102 of file dialogpatternproperties.h.
Referenced by EditLabel(), LabelDataChanged(), and SaveLabelData().
|
private |
Definition at line 92 of file dialogpatternproperties.h.
Referenced by InitComboBox().
|
private |
Definition at line 107 of file dialogpatternproperties.h.
Referenced by ChangeImage(), and InitImage().
|
private |
Definition at line 101 of file dialogpatternproperties.h.
Referenced by DialogPatternProperties(), and SaveReadOnlyState().
|
private |
Definition at line 108 of file dialogpatternproperties.h.
Referenced by ChangeImage(), and InitImage().
Definition at line 96 of file dialogpatternproperties.h.
Referenced by CheckStateSize(), DialogPatternProperties(), SaveGradation(), SelectAll(), and UpdateDefSize().
|
private |
Definition at line 94 of file dialogpatternproperties.h.
Referenced by CheckApplyOk(), and CheckStateSize().
|
private |
Definition at line 104 of file dialogpatternproperties.h.
Referenced by EditLabel(), and SaveTemplateData().
|
private |
Definition at line 110 of file dialogpatternproperties.h.
Referenced by EditLabel(), and SaveTemplateData().
|
private |
Definition at line 90 of file dialogpatternproperties.h.
Referenced by Apply(), ChangeImage(), CheckApplyOk(), CheckStateHeight(), CheckStateSize(), DialogPatternProperties(), InitHeights(), InitImage(), InitSizes(), SaveDefValues(), SaveDescription(), SaveLabelData(), SaveReadOnlyState(), SelectAll(), SetDefaultHeight(), SetDefaultSize(), SetHeightsChecked(), SetSizesChecked(), UpdateDefHeight(), UpdateDefSize(), and ~DialogPatternProperties().