#include <dialogmdatabase.h>
Public Member Functions | |
MeasurementDatabaseDialog (const QStringList &measurements, QWidget *parent=nullptr) | |
MeasurementDatabaseDialog (QWidget *parent=nullptr) | |
virtual | ~MeasurementDatabaseDialog () Q_DECL_OVERRIDE |
void | retranslateGroups () |
QStringList | getNewMeasurementNames () const |
Static Public Member Functions | |
static QString | imageUrl (const QString &number) |
Protected Member Functions | |
virtual void | changeEvent (QEvent *event) Q_DECL_OVERRIDE |
virtual bool | eventFilter (QObject *target, QEvent *event) Q_DECL_OVERRIDE |
Private Slots | |
void | updateChecks (QTreeWidgetItem *item, int column) |
void | showDescription (QTreeWidgetItem *item, int column) |
void | treeContextMenu (const QPoint &pos) |
void | recheckState () |
Private Member Functions | |
void | initDataBase (const QStringList &measurements=QStringList()) |
void | initGroup (QTreeWidgetItem **group, const QString &groupName, const QStringList &groupList, const QStringList &measurementList=QStringList()) |
Q_REQUIRED_RESULT QTreeWidgetItem * | addMeasurementGroup (const QString &text) |
void | addMeasurement (QTreeWidgetItem *group, const QString &groupName, const QStringList &newMeasurements) |
void | readSettings () |
void | writeSettings () |
void | filterGroups (const QString searchString) |
void | filterGroup (QTreeWidgetItem *group, const QString &searchString) |
void | retranslateGroup (QTreeWidgetItem *group, const QString &groupName, const QStringList &measurements) |
void | retranslateMeasurement (QTreeWidgetItem *group, int index, const QString &name) |
void | changeCheckState (QTreeWidgetItem *group, Qt::CheckState state) |
Qt::CheckState | globalCheckState () const |
Private Attributes | |
Ui::DialogMDataBase * | ui |
bool | selectMode |
QStringList | measurements |
QStringList | newMeasurements |
const QString | groupAText = "A. " + MeasurementDatabaseDialog::tr("Direct Height", "Measurement section") |
const QString | groupBText = "B. " + MeasurementDatabaseDialog::tr("Direct Width", "Measurement section") |
const QString | groupCText = "C. " + MeasurementDatabaseDialog::tr("Indentation", "Measurement section") |
const QString | groupDText = "D. " + MeasurementDatabaseDialog::tr("Hand", "Measurement section") |
const QString | groupEText = "E. " + MeasurementDatabaseDialog::tr("Foot", "Measurement section") |
const QString | groupFText = "F. " + MeasurementDatabaseDialog::tr("Head", "Measurement section") |
const QString | groupGText = "G. " + MeasurementDatabaseDialog::tr("Circumference and Arc", "Measurement section") |
const QString | groupHText = "H. " + MeasurementDatabaseDialog::tr("Vertical", "Measurement section") |
const QString | groupIText = "I. " + MeasurementDatabaseDialog::tr("Horizontal", "Measurement section") |
const QString | groupJText = "J. " + MeasurementDatabaseDialog::tr("Bust", "Measurement section") |
const QString | groupKText = "K. " + MeasurementDatabaseDialog::tr("Balance", "Measurement section") |
const QString | groupLText = "L. " + MeasurementDatabaseDialog::tr("Arm", "Measurement section") |
const QString | groupMText = "M. " + MeasurementDatabaseDialog::tr("Leg", "Measurement section") |
const QString | groupNText = "N. " + MeasurementDatabaseDialog::tr("Crotch and Rise", "Measurement section") |
const QString | groupOText = "O. " + MeasurementDatabaseDialog::tr("Men & Tailoring", "Measurement section") |
const QString | groupPText = "P. " + MeasurementDatabaseDialog::tr("Historical & Specialty", "Measurement section") |
const QString | groupQText = "Q. " + MeasurementDatabaseDialog::tr("Patternmaking measurements", "Measurement section") |
QTreeWidgetItem * | groupA |
QTreeWidgetItem * | groupB |
QTreeWidgetItem * | groupC |
QTreeWidgetItem * | groupD |
QTreeWidgetItem * | groupE |
QTreeWidgetItem * | groupF |
QTreeWidgetItem * | groupG |
QTreeWidgetItem * | groupH |
QTreeWidgetItem * | groupI |
QTreeWidgetItem * | groupJ |
QTreeWidgetItem * | groupK |
QTreeWidgetItem * | groupL |
QTreeWidgetItem * | groupM |
QTreeWidgetItem * | groupN |
QTreeWidgetItem * | groupO |
QTreeWidgetItem * | groupP |
QTreeWidgetItem * | groupQ |
Definition at line 64 of file dialogmdatabase.h.
|
explicit |
Definition at line 63 of file dialogmdatabase.cpp.
References filterGroups(), initDataBase(), readSettings(), showDescription(), treeContextMenu(), ui, and updateChecks().
|
explicit |
Definition at line 107 of file dialogmdatabase.cpp.
References filterGroups(), initDataBase(), readSettings(), showDescription(), treeContextMenu(), and ui.
|
virtual |
Definition at line 151 of file dialogmdatabase.cpp.
References ui, and writeSettings().
|
private |
Definition at line 475 of file dialogmdatabase.cpp.
References measurements, qApp, SCASSERT, selectMode, and updateChecks().
Referenced by initGroup().
|
private |
Definition at line 459 of file dialogmdatabase.cpp.
References selectMode, and ui.
Referenced by initGroup().
|
private |
Definition at line 594 of file dialogmdatabase.cpp.
References SCASSERT.
Referenced by recheckState().
|
protectedvirtual |
Definition at line 230 of file dialogmdatabase.cpp.
References ui.
|
protectedvirtual |
Definition at line 243 of file dialogmdatabase.cpp.
References showDescription(), and ui.
|
private |
Definition at line 544 of file dialogmdatabase.cpp.
References SCASSERT.
Referenced by filterGroups().
|
private |
QStringList MeasurementDatabaseDialog::getNewMeasurementNames | ( | ) | const |
Definition at line 158 of file dialogmdatabase.cpp.
References newMeasurements.
|
private |
|
static |
Definition at line 188 of file dialogmdatabase.cpp.
References MapDiagrams(), and qApp.
Referenced by showDescription(), and TMainWindow::ShowMDiagram().
|
private |
Definition at line 426 of file dialogmdatabase.cpp.
References groupA, groupAText, groupB, groupBText, groupC, groupCText, groupD, groupDText, groupE, groupEText, groupF, groupFText, groupG, groupGText, groupH, groupHText, groupI, groupIText, groupJ, groupJText, groupK, groupKText, groupL, groupLText, groupM, groupMText, groupN, groupNText, groupO, groupOText, groupP, groupPText, groupQ, groupQText, initGroup(), ListGroupA(), ListGroupB(), ListGroupC(), ListGroupD(), ListGroupE(), ListGroupF(), ListGroupG(), ListGroupH(), ListGroupI(), ListGroupJ(), ListGroupK(), ListGroupL(), ListGroupM(), ListGroupN(), ListGroupO(), ListGroupP(), and ListGroupQ().
Referenced by MeasurementDatabaseDialog().
|
private |
Definition at line 448 of file dialogmdatabase.cpp.
References addMeasurement(), and addMeasurementGroup().
Referenced by initDataBase().
|
private |
Definition at line 508 of file dialogmdatabase.cpp.
References qApp.
Referenced by MeasurementDatabaseDialog().
|
privateslot |
Definition at line 399 of file dialogmdatabase.cpp.
References changeCheckState(), globalCheckState(), groupA, groupB, groupC, groupD, groupE, groupF, groupG, groupH, groupI, groupJ, groupK, groupL, groupM, groupN, groupO, groupP, groupQ, and selectMode.
Referenced by treeContextMenu().
|
private |
Definition at line 571 of file dialogmdatabase.cpp.
References retranslateMeasurement().
Referenced by retranslateGroups().
void MeasurementDatabaseDialog::retranslateGroups | ( | ) |
Definition at line 164 of file dialogmdatabase.cpp.
References groupA, groupAText, groupB, groupBText, groupC, groupCText, groupD, groupDText, groupE, groupEText, groupF, groupFText, groupG, groupGText, groupH, groupHText, groupI, groupIText, groupJ, groupJText, groupK, groupKText, groupL, groupLText, groupM, groupMText, groupN, groupNText, groupO, groupOText, groupP, groupPText, groupQ, groupQText, ListGroupA(), ListGroupB(), ListGroupC(), ListGroupD(), ListGroupE(), ListGroupF(), ListGroupG(), ListGroupH(), ListGroupI(), ListGroupJ(), ListGroupK(), ListGroupL(), ListGroupM(), ListGroupN(), ListGroupO(), ListGroupP(), ListGroupQ(), retranslateGroup(), showDescription(), and ui.
|
private |
Definition at line 584 of file dialogmdatabase.cpp.
References qApp.
Referenced by retranslateGroup().
|
privateslot |
Definition at line 343 of file dialogmdatabase.cpp.
References VTranslateMeasurements::Description(), VTranslateMeasurements::guiText(), imageUrl(), VTranslateMeasurements::MNumber(), qApp, and ui.
Referenced by eventFilter(), filterGroups(), MeasurementDatabaseDialog(), retranslateGroups(), and treeContextMenu().
|
privateslot |
Definition at line 368 of file dialogmdatabase.cpp.
References globalCheckState(), recheckState(), selectMode, showDescription(), and ui.
Referenced by MeasurementDatabaseDialog().
|
privateslot |
Definition at line 272 of file dialogmdatabase.cpp.
References measurements, and newMeasurements.
Referenced by addMeasurement(), and MeasurementDatabaseDialog().
|
private |
Definition at line 514 of file dialogmdatabase.cpp.
References qApp.
Referenced by ~MeasurementDatabaseDialog().
|
private |
Definition at line 113 of file dialogmdatabase.h.
Referenced by filterGroups(), globalCheckState(), initDataBase(), recheckState(), and retranslateGroups().
|
private |
Definition at line 95 of file dialogmdatabase.h.
Referenced by initDataBase(), and retranslateGroups().
|
private |
Definition at line 114 of file dialogmdatabase.h.
Referenced by filterGroups(), globalCheckState(), initDataBase(), recheckState(), and retranslateGroups().
|
private |
Definition at line 96 of file dialogmdatabase.h.
Referenced by initDataBase(), and retranslateGroups().
|
private |
Definition at line 115 of file dialogmdatabase.h.
Referenced by filterGroups(), globalCheckState(), initDataBase(), recheckState(), and retranslateGroups().
|
private |
Definition at line 97 of file dialogmdatabase.h.
Referenced by initDataBase(), and retranslateGroups().
|
private |
Definition at line 116 of file dialogmdatabase.h.
Referenced by filterGroups(), globalCheckState(), initDataBase(), recheckState(), and retranslateGroups().
|
private |
Definition at line 98 of file dialogmdatabase.h.
Referenced by initDataBase(), and retranslateGroups().
|
private |
Definition at line 117 of file dialogmdatabase.h.
Referenced by filterGroups(), globalCheckState(), initDataBase(), recheckState(), and retranslateGroups().
|
private |
Definition at line 99 of file dialogmdatabase.h.
Referenced by initDataBase(), and retranslateGroups().
|
private |
Definition at line 118 of file dialogmdatabase.h.
Referenced by filterGroups(), globalCheckState(), initDataBase(), recheckState(), and retranslateGroups().
|
private |
Definition at line 100 of file dialogmdatabase.h.
Referenced by initDataBase(), and retranslateGroups().
|
private |
Definition at line 119 of file dialogmdatabase.h.
Referenced by filterGroups(), globalCheckState(), initDataBase(), recheckState(), and retranslateGroups().
|
private |
Definition at line 101 of file dialogmdatabase.h.
Referenced by initDataBase(), and retranslateGroups().
|
private |
Definition at line 120 of file dialogmdatabase.h.
Referenced by filterGroups(), globalCheckState(), initDataBase(), recheckState(), and retranslateGroups().
|
private |
Definition at line 102 of file dialogmdatabase.h.
Referenced by initDataBase(), and retranslateGroups().
|
private |
Definition at line 121 of file dialogmdatabase.h.
Referenced by filterGroups(), globalCheckState(), initDataBase(), recheckState(), and retranslateGroups().
|
private |
Definition at line 103 of file dialogmdatabase.h.
Referenced by initDataBase(), and retranslateGroups().
|
private |
Definition at line 122 of file dialogmdatabase.h.
Referenced by filterGroups(), globalCheckState(), initDataBase(), recheckState(), and retranslateGroups().
|
private |
Definition at line 104 of file dialogmdatabase.h.
Referenced by initDataBase(), and retranslateGroups().
|
private |
Definition at line 123 of file dialogmdatabase.h.
Referenced by filterGroups(), globalCheckState(), initDataBase(), recheckState(), and retranslateGroups().
|
private |
Definition at line 105 of file dialogmdatabase.h.
Referenced by initDataBase(), and retranslateGroups().
|
private |
Definition at line 124 of file dialogmdatabase.h.
Referenced by filterGroups(), globalCheckState(), initDataBase(), recheckState(), and retranslateGroups().
|
private |
Definition at line 106 of file dialogmdatabase.h.
Referenced by initDataBase(), and retranslateGroups().
|
private |
Definition at line 125 of file dialogmdatabase.h.
Referenced by filterGroups(), globalCheckState(), initDataBase(), recheckState(), and retranslateGroups().
|
private |
Definition at line 107 of file dialogmdatabase.h.
Referenced by initDataBase(), and retranslateGroups().
|
private |
Definition at line 126 of file dialogmdatabase.h.
Referenced by filterGroups(), globalCheckState(), initDataBase(), recheckState(), and retranslateGroups().
|
private |
Definition at line 108 of file dialogmdatabase.h.
Referenced by initDataBase(), and retranslateGroups().
|
private |
Definition at line 127 of file dialogmdatabase.h.
Referenced by filterGroups(), globalCheckState(), initDataBase(), recheckState(), and retranslateGroups().
|
private |
Definition at line 109 of file dialogmdatabase.h.
Referenced by initDataBase(), and retranslateGroups().
|
private |
Definition at line 128 of file dialogmdatabase.h.
Referenced by filterGroups(), globalCheckState(), initDataBase(), recheckState(), and retranslateGroups().
|
private |
Definition at line 110 of file dialogmdatabase.h.
Referenced by initDataBase(), and retranslateGroups().
|
private |
Definition at line 129 of file dialogmdatabase.h.
Referenced by filterGroups(), globalCheckState(), initDataBase(), recheckState(), and retranslateGroups().
|
private |
Definition at line 111 of file dialogmdatabase.h.
Referenced by initDataBase(), and retranslateGroups().
|
private |
Definition at line 92 of file dialogmdatabase.h.
Referenced by addMeasurement(), and updateChecks().
|
private |
Definition at line 93 of file dialogmdatabase.h.
Referenced by getNewMeasurementNames(), and updateChecks().
|
private |
Definition at line 91 of file dialogmdatabase.h.
Referenced by addMeasurement(), addMeasurementGroup(), globalCheckState(), recheckState(), and treeContextMenu().
|
private |
Definition at line 90 of file dialogmdatabase.h.
Referenced by addMeasurementGroup(), changeEvent(), eventFilter(), filterGroups(), MeasurementDatabaseDialog(), retranslateGroups(), showDescription(), treeContextMenu(), and ~MeasurementDatabaseDialog().