MuseScore/mscore/editstaff.ui
anatoly-os 578d4a9659 fix #295121: crazy behaviour of the colorLabel
Rewrite ColorLabel to be a child of QPushButton instead of QFrame. The reason is that QFrame doesn't implement MouseClickEvent. That led to the issues when opening the colour picker widget on mousePressEvent.

I have to move `Awl::ColorLabel` `else if` statement checks above the `QPushButton` ones, because the latter set incorrect connects for the `ColorLabel` which inherits `QPushButton` now.
2019-10-02 14:56:54 +02:00

1004 lines
30 KiB
XML

<?xml version="1.0" encoding="UTF-8"?>
<ui version="4.0">
<class>EditStaffBase</class>
<widget class="QDialog" name="EditStaffBase">
<property name="geometry">
<rect>
<x>0</x>
<y>0</y>
<width>760</width>
<height>600</height>
</rect>
</property>
<property name="sizePolicy">
<sizepolicy hsizetype="Preferred" vsizetype="Preferred">
<horstretch>0</horstretch>
<verstretch>0</verstretch>
</sizepolicy>
</property>
<property name="minimumSize">
<size>
<width>0</width>
<height>0</height>
</size>
</property>
<property name="windowTitle">
<string>Staff/Part Properties</string>
</property>
<layout class="QGridLayout" name="gridLayout">
<item row="0" column="0" colspan="2">
<widget class="QGroupBox" name="groupStaffProps">
<property name="sizePolicy">
<sizepolicy hsizetype="Preferred" vsizetype="Expanding">
<horstretch>0</horstretch>
<verstretch>0</verstretch>
</sizepolicy>
</property>
<property name="minimumSize">
<size>
<width>0</width>
<height>0</height>
</size>
</property>
<property name="title">
<string>Staff Properties</string>
</property>
<layout class="QVBoxLayout" name="verticalLayout_2">
<item>
<layout class="QGridLayout" name="grid_StaffProps">
<item row="4" column="2">
<widget class="QCheckBox" name="cutaway">
<property name="text">
<string>Cutaway</string>
</property>
</widget>
</item>
<item row="4" column="1">
<widget class="QCheckBox" name="hideSystemBarLine">
<property name="text">
<string>Hide system barline</string>
</property>
</widget>
</item>
<item row="1" column="2">
<widget class="QCheckBox" name="small">
<property name="sizePolicy">
<sizepolicy hsizetype="Minimum" vsizetype="Fixed">
<horstretch>0</horstretch>
<verstretch>0</verstretch>
</sizepolicy>
</property>
<property name="text">
<string>Small staff</string>
</property>
</widget>
</item>
<item row="1" column="1">
<widget class="QCheckBox" name="showClef">
<property name="text">
<string>Show clef</string>
</property>
</widget>
</item>
<item row="3" column="2">
<layout class="QHBoxLayout" name="hLayout_LineColor">
<item>
<widget class="QLabel" name="labelColor">
<property name="text">
<string>Staff line color:</string>
</property>
<property name="buddy">
<cstring>color</cstring>
</property>
</widget>
</item>
<item>
<widget class="Awl::ColorLabel" name="color">
<property name="focusPolicy">
<enum>Qt::TabFocus</enum>
</property>
</widget>
</item>
</layout>
</item>
<item row="3" column="1">
<widget class="QCheckBox" name="showBarlines">
<property name="text">
<string>Show barlines</string>
</property>
</widget>
</item>
<item row="2" column="1">
<widget class="QCheckBox" name="showTimesig">
<property name="text">
<string>Show time signature</string>
</property>
</widget>
</item>
<item row="0" column="2">
<widget class="QCheckBox" name="showIfEmpty">
<property name="text">
<string>Do not hide if system is empty</string>
</property>
</widget>
</item>
<item row="2" column="2">
<widget class="QCheckBox" name="invisible">
<property name="text">
<string>Invisible staff lines</string>
</property>
</widget>
</item>
<item row="5" column="2">
<widget class="QPushButton" name="changeStaffType">
<property name="text">
<string>Advanced Style Properties…</string>
</property>
</widget>
</item>
<item row="0" column="0" rowspan="5">
<layout class="QFormLayout" name="formLayout">
<property name="fieldGrowthPolicy">
<enum>QFormLayout::AllNonFixedFieldsGrow</enum>
</property>
<property name="labelAlignment">
<set>Qt::AlignLeading|Qt::AlignLeft|Qt::AlignVCenter</set>
</property>
<item row="1" column="0">
<widget class="QLabel" name="labelNumOfLines">
<property name="text">
<string>Lines:</string>
</property>
<property name="textFormat">
<enum>Qt::PlainText</enum>
</property>
<property name="buddy">
<cstring>lines</cstring>
</property>
</widget>
</item>
<item row="1" column="1">
<widget class="QSpinBox" name="lines">
<property name="minimum">
<number>1</number>
</property>
<property name="maximum">
<number>14</number>
</property>
<property name="value">
<number>5</number>
</property>
</widget>
</item>
<item row="2" column="0">
<widget class="QLabel" name="labelLineDist">
<property name="text">
<string>Line distance:</string>
</property>
<property name="buddy">
<cstring>lineDistance</cstring>
</property>
</widget>
</item>
<item row="2" column="1">
<widget class="QDoubleSpinBox" name="lineDistance">
<property name="sizePolicy">
<sizepolicy hsizetype="Preferred" vsizetype="Fixed">
<horstretch>0</horstretch>
<verstretch>0</verstretch>
</sizepolicy>
</property>
<property name="suffix">
<string>sp</string>
</property>
<property name="singleStep">
<double>0.250000000000000</double>
</property>
</widget>
</item>
<item row="4" column="0">
<widget class="QLabel" name="labelExtraDist">
<property name="text">
<string>Extra distance above staff:</string>
</property>
<property name="buddy">
<cstring>spinExtraDistance</cstring>
</property>
</widget>
</item>
<item row="4" column="1">
<widget class="QDoubleSpinBox" name="spinExtraDistance">
<property name="suffix">
<string>sp</string>
</property>
<property name="minimum">
<double>-50.000000000000000</double>
</property>
<property name="maximum">
<double>50.000000000000000</double>
</property>
<property name="singleStep">
<double>0.250000000000000</double>
</property>
</widget>
</item>
<item row="5" column="0">
<widget class="QLabel" name="label">
<property name="text">
<string>Scale:</string>
</property>
</widget>
</item>
<item row="5" column="1">
<widget class="QDoubleSpinBox" name="mag">
<property name="suffix">
<string>%</string>
</property>
<property name="decimals">
<number>1</number>
</property>
<property name="minimum">
<double>10.000000000000000</double>
</property>
<property name="maximum">
<double>1000.000000000000000</double>
</property>
<property name="value">
<double>100.000000000000000</double>
</property>
</widget>
</item>
<item row="0" column="0">
<widget class="QLabel" name="labelStaffGroup">
<property name="text">
<string>Style group:</string>
</property>
<property name="buddy">
<cstring>staffGroupName</cstring>
</property>
</widget>
</item>
<item row="0" column="1">
<widget class="QLabel" name="staffGroupName"/>
</item>
</layout>
</item>
<item row="0" column="1">
<layout class="QHBoxLayout" name="horizontalLayout">
<item>
<widget class="QLabel" name="label_2">
<property name="text">
<string>Hide when empty:</string>
</property>
</widget>
</item>
<item>
<widget class="QComboBox" name="hideMode">
<item>
<property name="text">
<string>Auto</string>
</property>
</item>
<item>
<property name="text">
<string>Always</string>
</property>
</item>
<item>
<property name="text">
<string>Never</string>
</property>
</item>
<item>
<property name="text">
<string>Instrument</string>
</property>
</item>
</widget>
</item>
</layout>
</item>
</layout>
</item>
</layout>
</widget>
</item>
<item row="1" column="0" colspan="2">
<widget class="QGroupBox" name="groupPartProps">
<property name="sizePolicy">
<sizepolicy hsizetype="Preferred" vsizetype="Expanding">
<horstretch>0</horstretch>
<verstretch>0</verstretch>
</sizepolicy>
</property>
<property name="title">
<string>Part Properties</string>
</property>
<layout class="QVBoxLayout" name="verticalLayout" stretch="0,1,0,0,0,0,0,0">
<item>
<layout class="QGridLayout" name="grid_PartProps">
<property name="leftMargin">
<number>0</number>
</property>
<item row="2" column="0" colspan="2">
<layout class="QHBoxLayout" name="horizontalLayout_2">
<property name="spacing">
<number>6</number>
</property>
<item>
<widget class="QLabel" name="labelInstrName">
<property name="text">
<string>Instrument:</string>
</property>
<property name="buddy">
<cstring>instrumentName</cstring>
</property>
</widget>
</item>
<item>
<widget class="QLabel" name="instrumentName"/>
</item>
<item>
<widget class="QPushButton" name="changeInstrument">
<property name="text">
<string>Change Instrument…</string>
</property>
</widget>
</item>
<item>
<spacer name="horizontalSpacer_4">
<property name="orientation">
<enum>Qt::Horizontal</enum>
</property>
<property name="sizeHint" stdset="0">
<size>
<width>40</width>
<height>20</height>
</size>
</property>
</spacer>
</item>
</layout>
</item>
<item row="3" column="0">
<widget class="QLabel" name="label_PartName">
<property name="text">
<string>Part name:</string>
</property>
<property name="buddy">
<cstring>partName</cstring>
</property>
</widget>
</item>
<item row="3" column="1">
<widget class="QLineEdit" name="partName"/>
</item>
</layout>
</item>
<item>
<layout class="QGridLayout" name="grid_InstrNames">
<item row="0" column="0">
<widget class="QLabel" name="labelLongName">
<property name="sizePolicy">
<sizepolicy hsizetype="Fixed" vsizetype="Fixed">
<horstretch>0</horstretch>
<verstretch>0</verstretch>
</sizepolicy>
</property>
<property name="text">
<string>Long instrument name:</string>
</property>
<property name="buddy">
<cstring>longName</cstring>
</property>
</widget>
</item>
<item row="0" column="1">
<widget class="QLabel" name="labelShortName">
<property name="sizePolicy">
<sizepolicy hsizetype="Fixed" vsizetype="Fixed">
<horstretch>0</horstretch>
<verstretch>0</verstretch>
</sizepolicy>
</property>
<property name="text">
<string>Short instrument name:</string>
</property>
<property name="buddy">
<cstring>shortName</cstring>
</property>
</widget>
</item>
<item row="1" column="0">
<widget class="QTextEdit" name="longName">
<property name="minimumSize">
<size>
<width>0</width>
<height>40</height>
</size>
</property>
<property name="tabChangesFocus">
<bool>true</bool>
</property>
</widget>
</item>
<item row="1" column="1">
<widget class="QTextEdit" name="shortName">
<property name="minimumSize">
<size>
<width>0</width>
<height>40</height>
</size>
</property>
<property name="tabChangesFocus">
<bool>true</bool>
</property>
</widget>
</item>
</layout>
</item>
<item>
<widget class="QLabel" name="labelPitchRanges">
<property name="text">
<string>Usable pitch range:</string>
</property>
</widget>
</item>
<item>
<layout class="QHBoxLayout" name="hLayout_PitchRanges">
<item>
<widget class="QLabel" name="label_7">
<property name="text">
<string>Amateur:</string>
</property>
<property name="buddy">
<cstring>minPitchA</cstring>
</property>
</widget>
</item>
<item>
<widget class="QLineEdit" name="minPitchA">
<property name="readOnly">
<bool>true</bool>
</property>
</widget>
</item>
<item>
<widget class="QToolButton" name="minPitchASelect">
<property name="text">
<string notr="true"/>
</property>
<property name="icon">
<iconset resource="musescore.qrc">
<normaloff>:/data/icons/edit.svg</normaloff>:/data/icons/edit.svg</iconset>
</property>
</widget>
</item>
<item>
<widget class="QLabel" name="label_9">
<property name="text">
<string notr="true">-</string>
</property>
</widget>
</item>
<item>
<widget class="QLineEdit" name="maxPitchA">
<property name="readOnly">
<bool>true</bool>
</property>
</widget>
</item>
<item>
<widget class="QToolButton" name="maxPitchASelect">
<property name="text">
<string notr="true"/>
</property>
<property name="icon">
<iconset resource="musescore.qrc">
<normaloff>:/data/icons/edit.svg</normaloff>:/data/icons/edit.svg</iconset>
</property>
</widget>
</item>
<item>
<spacer name="horizontalSpacer">
<property name="orientation">
<enum>Qt::Horizontal</enum>
</property>
<property name="sizeHint" stdset="0">
<size>
<width>100</width>
<height>20</height>
</size>
</property>
</spacer>
</item>
<item>
<widget class="QLabel" name="label_8">
<property name="text">
<string>Professional:</string>
</property>
<property name="buddy">
<cstring>minPitchP</cstring>
</property>
</widget>
</item>
<item>
<widget class="QLineEdit" name="minPitchP">
<property name="readOnly">
<bool>true</bool>
</property>
</widget>
</item>
<item>
<widget class="QToolButton" name="minPitchPSelect">
<property name="text">
<string notr="true"/>
</property>
<property name="icon">
<iconset resource="musescore.qrc">
<normaloff>:/data/icons/edit.svg</normaloff>:/data/icons/edit.svg</iconset>
</property>
</widget>
</item>
<item>
<widget class="QLabel" name="label_10">
<property name="text">
<string notr="true">-</string>
</property>
</widget>
</item>
<item>
<widget class="QLineEdit" name="maxPitchP">
<property name="readOnly">
<bool>true</bool>
</property>
</widget>
</item>
<item>
<widget class="QToolButton" name="maxPitchPSelect">
<property name="text">
<string notr="true"/>
</property>
<property name="icon">
<iconset resource="musescore.qrc">
<normaloff>:/data/icons/edit.svg</normaloff>:/data/icons/edit.svg</iconset>
</property>
</widget>
</item>
</layout>
</item>
<item>
<widget class="Line" name="line">
<property name="orientation">
<enum>Qt::Horizontal</enum>
</property>
</widget>
</item>
<item>
<layout class="QHBoxLayout" name="hLayout_Transposition">
<item>
<widget class="QLabel" name="labelTransp">
<property name="toolTip">
<string>Interval from written to sounding pitch</string>
</property>
<property name="text">
<string>Transposition:</string>
</property>
<property name="buddy">
<cstring>iList</cstring>
</property>
</widget>
</item>
<item>
<widget class="QSpinBox" name="octave">
<property name="accessibleName">
<string>Octave</string>
</property>
<property name="maximum">
<number>10</number>
</property>
</widget>
</item>
<item>
<widget class="QLabel" name="label_11">
<property name="text">
<string>Octave(s) +</string>
</property>
<property name="buddy">
<cstring>octave</cstring>
</property>
</widget>
</item>
<item>
<widget class="QComboBox" name="iList">
<property name="sizePolicy">
<sizepolicy hsizetype="Preferred" vsizetype="Fixed">
<horstretch>0</horstretch>
<verstretch>0</verstretch>
</sizepolicy>
</property>
<property name="accessibleName">
<string>Interval</string>
</property>
<item>
<property name="text">
<string>0 - Perfect Unison</string>
</property>
</item>
<item>
<property name="text">
<string>1 - Augmented Unison</string>
</property>
</item>
<item>
<property name="text">
<string>0 - Diminished Second</string>
</property>
</item>
<item>
<property name="text">
<string>1 - Minor Second</string>
</property>
</item>
<item>
<property name="text">
<string>2 - Major Second</string>
</property>
</item>
<item>
<property name="text">
<string>3 - Augmented Second</string>
</property>
</item>
<item>
<property name="text">
<string>2 - Diminished Third</string>
</property>
</item>
<item>
<property name="text">
<string>3 - Minor Third</string>
</property>
</item>
<item>
<property name="text">
<string>4 - Major Third</string>
</property>
</item>
<item>
<property name="text">
<string>5 - Augmented Third</string>
</property>
</item>
<item>
<property name="text">
<string>4 - Diminished Fourth</string>
</property>
</item>
<item>
<property name="text">
<string>5 - Perfect Fourth</string>
</property>
</item>
<item>
<property name="text">
<string>6 - Augmented Fourth</string>
</property>
</item>
<item>
<property name="text">
<string>6 - Diminished Fifth</string>
</property>
</item>
<item>
<property name="text">
<string>7 - Perfect Fifth</string>
</property>
</item>
<item>
<property name="text">
<string>8 - Augmented Fifth</string>
</property>
</item>
<item>
<property name="text">
<string>7 - Diminished Sixth</string>
</property>
</item>
<item>
<property name="text">
<string>8 - Minor Sixth</string>
</property>
</item>
<item>
<property name="text">
<string>9 - Major Sixth</string>
</property>
</item>
<item>
<property name="text">
<string>10 - Augmented Sixth</string>
</property>
</item>
<item>
<property name="text">
<string>9 - Diminished Seventh</string>
</property>
</item>
<item>
<property name="text">
<string>10 - Minor Seventh</string>
</property>
</item>
<item>
<property name="text">
<string>11 - Major Seventh</string>
</property>
</item>
<item>
<property name="text">
<string>12 - Augmented Seventh</string>
</property>
</item>
<item>
<property name="text">
<string>11 - Diminished Octave</string>
</property>
</item>
<item>
<property name="text">
<string>12 - Perfect Octave</string>
</property>
</item>
</widget>
</item>
<item>
<widget class="QRadioButton" name="up">
<property name="text">
<string>Up</string>
</property>
</widget>
</item>
<item>
<widget class="QRadioButton" name="down">
<property name="text">
<string>Down</string>
</property>
</widget>
</item>
<item>
<spacer name="horizontalSpacer_1">
<property name="orientation">
<enum>Qt::Horizontal</enum>
</property>
<property name="sizeHint" stdset="0">
<size>
<width>17</width>
<height>18</height>
</size>
</property>
</spacer>
</item>
</layout>
</item>
<item>
<widget class="QFrame" name="stringDataFrame">
<layout class="QHBoxLayout" name="horizontalLayout_4">
<property name="spacing">
<number>6</number>
</property>
<property name="leftMargin">
<number>0</number>
</property>
<property name="topMargin">
<number>0</number>
</property>
<property name="rightMargin">
<number>0</number>
</property>
<property name="bottomMargin">
<number>0</number>
</property>
<item>
<widget class="QLabel" name="labelNumOfStrings">
<property name="text">
<string>Number of strings:</string>
</property>
<property name="buddy">
<cstring>numOfStrings</cstring>
</property>
</widget>
</item>
<item>
<widget class="QLabel" name="numOfStrings"/>
</item>
<item>
<widget class="QPushButton" name="editStringData">
<property name="text">
<string>Edit String Data…</string>
</property>
</widget>
</item>
<item>
<spacer name="horizontalSpacer_2">
<property name="orientation">
<enum>Qt::Horizontal</enum>
</property>
<property name="sizeHint" stdset="0">
<size>
<width>40</width>
<height>20</height>
</size>
</property>
</spacer>
</item>
</layout>
</widget>
</item>
<item>
<widget class="QCheckBox" name="singleNoteDynamics">
<property name="accessibleName">
<string>Use single note dynamics</string>
</property>
<property name="text">
<string>Use single note dynamics</string>
</property>
</widget>
</item>
</layout>
</widget>
</item>
<item row="2" column="0">
<layout class="QHBoxLayout" name="groupPrevNextButtons">
<item>
<widget class="QToolButton" name="previousButton">
<property name="minimumSize">
<size>
<width>29</width>
<height>29</height>
</size>
</property>
<property name="toolTip">
<string>Go to previous staff</string>
</property>
<property name="text">
<string notr="true"/>
</property>
<property name="icon">
<iconset resource="musescore.qrc">
<normaloff>:/data/icons/arrow_up.svg</normaloff>:/data/icons/arrow_up.svg</iconset>
</property>
</widget>
</item>
<item>
<widget class="QToolButton" name="nextButton">
<property name="minimumSize">
<size>
<width>29</width>
<height>29</height>
</size>
</property>
<property name="toolTip">
<string>Go to next staff</string>
</property>
<property name="text">
<string notr="true"/>
</property>
<property name="icon">
<iconset resource="musescore.qrc">
<normaloff>:/data/icons/arrow_down.svg</normaloff>:/data/icons/arrow_down.svg</iconset>
</property>
</widget>
</item>
<item>
<spacer name="horizontalSpacer_3">
<property name="orientation">
<enum>Qt::Horizontal</enum>
</property>
<property name="sizeHint" stdset="0">
<size>
<width>40</width>
<height>20</height>
</size>
</property>
</spacer>
</item>
</layout>
</item>
<item row="2" column="1">
<widget class="QDialogButtonBox" name="buttonBox">
<property name="orientation">
<enum>Qt::Horizontal</enum>
</property>
<property name="standardButtons">
<set>QDialogButtonBox::Apply|QDialogButtonBox::Cancel|QDialogButtonBox::Ok</set>
</property>
</widget>
</item>
</layout>
</widget>
<customwidgets>
<customwidget>
<class>Awl::ColorLabel</class>
<extends>QPushButton</extends>
<header>awl/colorlabel.h</header>
<container>1</container>
</customwidget>
</customwidgets>
<tabstops>
<tabstop>lines</tabstop>
<tabstop>lineDistance</tabstop>
<tabstop>spinExtraDistance</tabstop>
<tabstop>mag</tabstop>
<tabstop>hideMode</tabstop>
<tabstop>showIfEmpty</tabstop>
<tabstop>showClef</tabstop>
<tabstop>showTimesig</tabstop>
<tabstop>showBarlines</tabstop>
<tabstop>hideSystemBarLine</tabstop>
<tabstop>small</tabstop>
<tabstop>invisible</tabstop>
<tabstop>color</tabstop>
<tabstop>cutaway</tabstop>
<tabstop>changeStaffType</tabstop>
<tabstop>changeInstrument</tabstop>
<tabstop>partName</tabstop>
<tabstop>longName</tabstop>
<tabstop>shortName</tabstop>
<tabstop>minPitchA</tabstop>
<tabstop>minPitchASelect</tabstop>
<tabstop>maxPitchA</tabstop>
<tabstop>maxPitchASelect</tabstop>
<tabstop>minPitchP</tabstop>
<tabstop>minPitchPSelect</tabstop>
<tabstop>maxPitchP</tabstop>
<tabstop>maxPitchPSelect</tabstop>
<tabstop>octave</tabstop>
<tabstop>iList</tabstop>
<tabstop>up</tabstop>
<tabstop>down</tabstop>
<tabstop>numOfStrings</tabstop>
<tabstop>editStringData</tabstop>
<tabstop>singleNoteDynamics</tabstop>
<tabstop>previousButton</tabstop>
<tabstop>nextButton</tabstop>
</tabstops>
<resources>
<include location="musescore.qrc"/>
<include location="musescore.qrc"/>
</resources>
<connections>
<connection>
<sender>buttonBox</sender>
<signal>accepted()</signal>
<receiver>EditStaffBase</receiver>
<slot>accept()</slot>
<hints>
<hint type="sourcelabel">
<x>248</x>
<y>254</y>
</hint>
<hint type="destinationlabel">
<x>157</x>
<y>274</y>
</hint>
</hints>
</connection>
<connection>
<sender>buttonBox</sender>
<signal>rejected()</signal>
<receiver>EditStaffBase</receiver>
<slot>reject()</slot>
<hints>
<hint type="sourcelabel">
<x>316</x>
<y>260</y>
</hint>
<hint type="destinationlabel">
<x>286</x>
<y>274</y>
</hint>
</hints>
</connection>
</connections>
</ui>