From c06938272fc2b6c5ebcb095acaee33486320f8b4 Mon Sep 17 00:00:00 2001 From: Roman Telezhynskyi Date: Mon, 2 Feb 2015 13:06:58 +0200 Subject: [PATCH] Color comboboxs in dialogs. --HG-- branch : feature --- src/app/dialogs/tools/dialogalongline.ui | 21 ++++- src/app/dialogs/tools/dialogarc.ui | 63 ++++++++------ src/app/dialogs/tools/dialogbisector.ui | 12 ++- .../dialogs/tools/dialogcurveintersectaxis.ui | 12 ++- src/app/dialogs/tools/dialogheight.ui | 12 ++- src/app/dialogs/tools/dialogline.ui | 16 +++- .../dialogs/tools/dialoglineintersectaxis.ui | 12 ++- src/app/dialogs/tools/dialognormal.ui | 85 ++++++++++--------- src/app/dialogs/tools/dialogshoulderpoint.ui | 12 ++- src/app/dialogs/tools/dialogspline.ui | 24 ++++-- src/app/dialogs/tools/dialogsplinepath.ui | 24 ++++-- src/app/dialogs/tools/dialogtool.h | 3 + 12 files changed, 207 insertions(+), 89 deletions(-) diff --git a/src/app/dialogs/tools/dialogalongline.ui b/src/app/dialogs/tools/dialogalongline.ui index a2e13e7e6..3dec6c83a 100644 --- a/src/app/dialogs/tools/dialogalongline.ui +++ b/src/app/dialogs/tools/dialogalongline.ui @@ -7,7 +7,7 @@ 0 0 428 - 499 + 532 @@ -223,6 +223,9 @@ + + QFormLayout::AllNonFixedFieldsGrow + @@ -230,9 +233,6 @@ - - - @@ -299,6 +299,19 @@ + + + + Line color + + + + + + + + + diff --git a/src/app/dialogs/tools/dialogarc.ui b/src/app/dialogs/tools/dialogarc.ui index 4bf89a0cc..84ccc7856 100644 --- a/src/app/dialogs/tools/dialogarc.ui +++ b/src/app/dialogs/tools/dialogarc.ui @@ -6,8 +6,8 @@ 0 0 - 423 - 544 + 425 + 577 @@ -583,32 +583,42 @@ - - - - - - - 0 - 0 - - - - Center point - - - - - - - Select point of center of arc - - - - - + + + + + + + 0 + 0 + + + + Center point + + + + + + + Select point of center of arc + + + + + + + + + + Color + + + + + @@ -782,7 +792,6 @@ pushButtonGrowLengthF1 toolButtonPutHereF2 toolButtonEqualF2 - comboBoxBasePoint radioButtonSizeGrowth radioButtonStandardTable radioButtonIncrements diff --git a/src/app/dialogs/tools/dialogbisector.ui b/src/app/dialogs/tools/dialogbisector.ui index c4ad6001a..40d359b8b 100644 --- a/src/app/dialogs/tools/dialogbisector.ui +++ b/src/app/dialogs/tools/dialogbisector.ui @@ -7,7 +7,7 @@ 0 0 428 - 532 + 565 @@ -325,6 +325,16 @@ + + + + Line color + + + + + + diff --git a/src/app/dialogs/tools/dialogcurveintersectaxis.ui b/src/app/dialogs/tools/dialogcurveintersectaxis.ui index 39a9ccba9..514b73d75 100644 --- a/src/app/dialogs/tools/dialogcurveintersectaxis.ui +++ b/src/app/dialogs/tools/dialogcurveintersectaxis.ui @@ -7,7 +7,7 @@ 0 0 419 - 499 + 532 @@ -308,6 +308,16 @@ + + + + Line color + + + + + + diff --git a/src/app/dialogs/tools/dialogheight.ui b/src/app/dialogs/tools/dialogheight.ui index 4338c7de7..e500e407f 100644 --- a/src/app/dialogs/tools/dialogheight.ui +++ b/src/app/dialogs/tools/dialogheight.ui @@ -7,7 +7,7 @@ 0 0 285 - 212 + 245 @@ -134,6 +134,16 @@ + + + + Line color + + + + + + diff --git a/src/app/dialogs/tools/dialogline.ui b/src/app/dialogs/tools/dialogline.ui index 50dc4afe7..e57621c42 100644 --- a/src/app/dialogs/tools/dialogline.ui +++ b/src/app/dialogs/tools/dialogline.ui @@ -10,19 +10,19 @@ 0 0 286 - 151 + 179 286 - 151 + 179 286 - 151 + 179 @@ -143,6 +143,16 @@ + + + + Line color + + + + + + diff --git a/src/app/dialogs/tools/dialoglineintersectaxis.ui b/src/app/dialogs/tools/dialoglineintersectaxis.ui index 2ad7bac18..a31e877d1 100644 --- a/src/app/dialogs/tools/dialoglineintersectaxis.ui +++ b/src/app/dialogs/tools/dialoglineintersectaxis.ui @@ -7,7 +7,7 @@ 0 0 457 - 532 + 565 @@ -325,6 +325,16 @@ + + + + Line color + + + + + + diff --git a/src/app/dialogs/tools/dialognormal.ui b/src/app/dialogs/tools/dialognormal.ui index 959714a6d..cf79e9586 100644 --- a/src/app/dialogs/tools/dialognormal.ui +++ b/src/app/dialogs/tools/dialognormal.ui @@ -7,7 +7,7 @@ 0 0 517 - 645 + 678 @@ -472,44 +472,54 @@ - - - - - - Type of line - - - - - - - - 80 - 0 - - - - - 110 - 16777215 - - - - Show line from first point to this point - - - - 80 - 14 - - - - - - + + + + + + Type of line + + + + + + + + 80 + 0 + + + + + 110 + 16777215 + + + + Show line from first point to this point + + + + 80 + 14 + + + + + + + + + + + Line color + + + + + @@ -689,7 +699,6 @@ toolButtonArrowLeftDown toolButtonArrowLeft toolButtonArrowLeftUp - comboBoxLineType radioButtonSizeGrowth radioButtonStandardTable radioButtonIncrements diff --git a/src/app/dialogs/tools/dialogshoulderpoint.ui b/src/app/dialogs/tools/dialogshoulderpoint.ui index 8c306b556..c63a6d001 100644 --- a/src/app/dialogs/tools/dialogshoulderpoint.ui +++ b/src/app/dialogs/tools/dialogshoulderpoint.ui @@ -7,7 +7,7 @@ 0 0 488 - 532 + 565 @@ -364,6 +364,16 @@ + + + + Line color + + + + + + diff --git a/src/app/dialogs/tools/dialogspline.ui b/src/app/dialogs/tools/dialogspline.ui index 580268256..10238a584 100644 --- a/src/app/dialogs/tools/dialogspline.ui +++ b/src/app/dialogs/tools/dialogspline.ui @@ -6,8 +6,8 @@ 0 0 - 524 - 254 + 540 + 233 @@ -152,8 +152,11 @@ - - + + + QFormLayout::AllNonFixedFieldsGrow + + @@ -172,7 +175,7 @@ - + @@ -194,6 +197,16 @@ + + + + Color + + + + + + @@ -215,7 +228,6 @@ comboBoxP4 doubleSpinBoxKasm2 spinBoxAngle2 - doubleSpinBoxKcurve buttonBox diff --git a/src/app/dialogs/tools/dialogsplinepath.ui b/src/app/dialogs/tools/dialogsplinepath.ui index 44c1b3459..7c00882f6 100644 --- a/src/app/dialogs/tools/dialogsplinepath.ui +++ b/src/app/dialogs/tools/dialogsplinepath.ui @@ -6,8 +6,8 @@ 0 0 - 524 - 321 + 528 + 322 @@ -141,8 +141,11 @@ - - + + + QFormLayout::AllNonFixedFieldsGrow + + @@ -161,7 +164,7 @@ - + @@ -183,6 +186,16 @@ + + + + Color + + + + + + @@ -204,7 +217,6 @@ doubleSpinBoxKasm2 doubleSpinBoxAngle2 listWidget - doubleSpinBoxKcurve buttonBox diff --git a/src/app/dialogs/tools/dialogtool.h b/src/app/dialogs/tools/dialogtool.h index b5041d7a2..aad677211 100644 --- a/src/app/dialogs/tools/dialogtool.h +++ b/src/app/dialogs/tools/dialogtool.h @@ -209,6 +209,7 @@ protected: virtual void closeEvent ( QCloseEvent * event ); virtual void showEvent( QShowEvent *event ); + void FillComboBoxPoints(QComboBox *box)const; void FillComboBoxArcs(QComboBox *box, ComboBoxCutArc cut = ComboBoxCutArc::NoCutArc)const; void FillComboBoxSplines(QComboBox *box, ComboBoxCutSpline cut = ComboBoxCutSpline::NoCutSpline)const; @@ -217,8 +218,10 @@ protected: void FillComboBoxCurves(QComboBox *box)const; void FillComboBoxTypeLine(QComboBox *box, const QMap &stylesPics) const; void FillComboBoxLineColors(QComboBox *box)const; + virtual void CheckState(); QString GetTypeLine(const QComboBox *box)const; + QString GetLineColor(const QComboBox *box)const; template void ShowVariable(const QMap var); void SetupTypeLine(QComboBox *box, const QString &value);