From 559296557943bde865979ba8b496cb3175f4a00b Mon Sep 17 00:00:00 2001 From: "Maurizio M. Gavioli" Date: Mon, 11 Mar 2013 14:31:33 +0100 Subject: [PATCH] TAB: edit staff type dlg box. Re-order controls. Correct enabled/disabled dependencies of "Stems above/below" from "Stems through" --- mscore/editstafftype.cpp | 16 +++++++++------ mscore/stafftype.ui | 42 ++++++++++++++++++++-------------------- 2 files changed, 31 insertions(+), 27 deletions(-) diff --git a/mscore/editstafftype.cpp b/mscore/editstafftype.cpp index 8195d8592d81..0a45bb44e181 100644 --- a/mscore/editstafftype.cpp +++ b/mscore/editstafftype.cpp @@ -109,10 +109,10 @@ EditStaffType::EditStaffType(QWidget* parent, Staff* st) connect(genTimesig, SIGNAL(toggled(bool)), SLOT(updateTabPreview())); connect(noteValuesSymb, SIGNAL(toggled(bool)), SLOT(updateTabPreview())); connect(noteValuesStems,SIGNAL(toggled(bool)), SLOT(on_tabStemsToggled(bool))); - connect(stemAboveRadio, SIGNAL(toggled(bool)), SLOT(updateTabPreview())); - connect(stemBelowRadio, SIGNAL(toggled(bool)), SLOT(updateTabPreview())); connect(stemBesideRadio,SIGNAL(toggled(bool)), SLOT(updateTabPreview())); connect(stemThroughRadio,SIGNAL(toggled(bool)), SLOT(on_tabStemThroughToggled(bool))); + connect(stemAboveRadio, SIGNAL(toggled(bool)), SLOT(updateTabPreview())); + connect(stemBelowRadio, SIGNAL(toggled(bool)), SLOT(updateTabPreview())); // connect(minimNoneRadio, SIGNAL(toggled(bool)), SLOT(updateTabPreview())); connect(minimShortRadio,SIGNAL(toggled(bool)), SLOT(on_tabMinimShortToggled(bool))); connect(minimSlashedRadio,SIGNAL(toggled(bool)), SLOT(updateTabPreview())); @@ -569,8 +569,8 @@ void EditStaffType::blockTabPreviewSignals(bool block) void EditStaffType::tabStemsCompatibility(bool checked) { - stemAboveRadio->setEnabled(checked); - stemBelowRadio->setEnabled(checked); + stemAboveRadio->setEnabled(checked && !stemThroughRadio->isChecked()); + stemBelowRadio->setEnabled(checked && !stemThroughRadio->isChecked()); stemBesideRadio->setEnabled(checked); stemThroughRadio->setEnabled(checked && !minimShortRadio->isChecked()); minimNoneRadio->setEnabled(checked); @@ -602,6 +602,7 @@ void EditStaffType::tabMinimShortCompatibility(bool checked) // // Setting "stems through" is incompatible with "minim short": // if checking and "minim short" is checked, move check to "minim slashed" +// It also make "Stems above" and "Stems below" meaningless: disable them //--------------------------------------------------------- void EditStaffType::tabStemThroughCompatibility(bool checked) @@ -612,8 +613,11 @@ void EditStaffType::tabStemThroughCompatibility(bool checked) minimSlashedRadio->setChecked(true); } } - // disable / enable "minim short" according "stems through" is checked / unchecked - minimShortRadio->setEnabled(!checked && noteValuesStems->isChecked()); + // disable / enable "minim short" and "stems above/below" according "stems through" is checked / unchecked + bool enab = !checked && noteValuesStems->isChecked(); + minimShortRadio->setEnabled(enab); + stemAboveRadio->setEnabled(enab); + stemBelowRadio->setEnabled(enab); } //--------------------------------------------------------- diff --git a/mscore/stafftype.ui b/mscore/stafftype.ui index 544ac57bc3b8..dd3ad7f5bc1d 100644 --- a/mscore/stafftype.ui +++ b/mscore/stafftype.ui @@ -756,19 +756,19 @@ - + QFrame::NoFrame QFrame::Plain - + 0 - + 120 @@ -776,12 +776,12 @@ - Stem position: + Stem style: - + 110 @@ -789,19 +789,19 @@ - Above + Beside staff - + - Below + Through staff - + Qt::Horizontal @@ -817,19 +817,19 @@ - + QFrame::NoFrame QFrame::Plain - + 0 - + 120 @@ -837,12 +837,12 @@ - Stem style: + Stem position: - + 110 @@ -850,19 +850,19 @@ - Beside staff + Above - + - Through staff + Below - + Qt::Horizontal @@ -1248,7 +1248,6 @@ presetTablatureCombo pushFullConfig upsideDown - pushQuickConfig fretFontName fretFontSize fretY @@ -1261,10 +1260,10 @@ noteValuesNone noteValuesSymb noteValuesStems - stemAboveRadio - stemBelowRadio stemBesideRadio stemThroughRadio + stemAboveRadio + stemBelowRadio minimNoneRadio minimShortRadio minimSlashedRadio @@ -1272,6 +1271,7 @@ durFontName durFontSize durY + pushQuickConfig newTypeTablature showLedgerLinesPercussion genKeysigPercussion