diff options
| author | Robert Jonsson <spamatica@gmail.com> | 2011-03-05 20:32:44 +0000 |
|---|---|---|
| committer | Robert Jonsson <spamatica@gmail.com> | 2011-03-05 20:32:44 +0000 |
| commit | 03b22522651de83a45494a2745f05b7a19ecb3d7 (patch) | |
| tree | cba211d87226e907aaf73b509246c310b4741920 /muse2/muse/widgets | |
| parent | 1f615170b3519ca56951fbdd7cd86ef5f35817cc (diff) | |
tweaks here and tweaks there
Diffstat (limited to 'muse2/muse/widgets')
| -rw-r--r-- | muse2/muse/widgets/mtrackinfobase.ui | 1628 | ||||
| -rw-r--r-- | muse2/muse/widgets/shortcutconfig.cpp | 7 | ||||
| -rw-r--r-- | muse2/muse/widgets/shortcutconfig.h | 4 | ||||
| -rw-r--r-- | muse2/muse/widgets/shortcutconfigbase.ui | 22 | ||||
| -rw-r--r-- | muse2/muse/widgets/visibletracks.cpp | 14 | ||||
| -rw-r--r-- | muse2/muse/widgets/visibletracks.h | 1 |
6 files changed, 857 insertions, 819 deletions
diff --git a/muse2/muse/widgets/mtrackinfobase.ui b/muse2/muse/widgets/mtrackinfobase.ui index ca431c8b..0ecf7c10 100644 --- a/muse2/muse/widgets/mtrackinfobase.ui +++ b/muse2/muse/widgets/mtrackinfobase.ui @@ -6,8 +6,8 @@ <rect> <x>0</x> <y>0</y> - <width>114</width> - <height>361</height> + <width>96</width> + <height>588</height> </rect> </property> <property name="sizePolicy"> @@ -28,6 +28,12 @@ <height>32767</height> </size> </property> + <property name="font"> + <font> + <family>Arial</family> + <pointsize>7</pointsize> + </font> + </property> <property name="windowTitle"> <string>MusE: TrackInfo</string> </property> @@ -37,898 +43,926 @@ <property name="whatsThis"> <string/> </property> - <layout class="QGridLayout"> - <property name="sizeConstraint"> - <enum>QLayout::SetDefaultConstraint</enum> - </property> - <property name="margin"> + <layout class="QVBoxLayout" name="verticalLayout_2"> + <property name="spacing"> <number>0</number> </property> - <property name="spacing"> + <property name="margin"> <number>0</number> </property> - <item row="0" column="0" colspan="2"> - <widget class="QLabel" name="trackNameLabel"> - <property name="sizePolicy"> - <sizepolicy hsizetype="Ignored" vsizetype="Minimum"> - <horstretch>0</horstretch> - <verstretch>0</verstretch> - </sizepolicy> - </property> - <property name="wordWrap"> - <bool>true</bool> - </property> - </widget> - </item> - <item row="1" column="0" colspan="2"> - <widget class="QComboBox" name="iOutput"> - <property name="sizePolicy"> - <sizepolicy hsizetype="Ignored" vsizetype="Fixed"> - <horstretch>0</horstretch> - <verstretch>0</verstretch> - </sizepolicy> - </property> - <property name="toolTip"> - <string>output port</string> - </property> - </widget> - </item> - <item row="2" column="0"> - <widget class="SpinBox" name="iOutputChannel" native="true"> - <property name="sizePolicy"> - <sizepolicy hsizetype="Minimum" vsizetype="Fixed"> - <horstretch>0</horstretch> - <verstretch>0</verstretch> - </sizepolicy> - </property> - <property name="toolTip"> - <string>output channel</string> - </property> - <property name="whatsThis"> - <string>all midi events are sent to this output channel</string> - </property> - <property name="maximum" stdset="0"> - <number>16</number> - </property> - <property name="minimum" stdset="0"> - <number>1</number> - </property> - </widget> - </item> - <item row="2" column="1"> - <widget class="QLabel" name="TextLabel2"> - <property name="sizePolicy"> - <sizepolicy hsizetype="Minimum" vsizetype="Fixed"> - <horstretch>0</horstretch> - <verstretch>0</verstretch> - </sizepolicy> - </property> - <property name="text"> - <string>Out ch</string> - </property> - <property name="wordWrap"> - <bool>false</bool> - </property> - <property name="margin"> - <number>0</number> - </property> - <property name="indent"> - <number>1</number> - </property> - </widget> - </item> - <item row="3" column="0"> - <layout class="QHBoxLayout" stretch="0,0"> + <item> + <layout class="QVBoxLayout" name="verticalLayout"> <property name="spacing"> <number>0</number> </property> <item> - <widget class="QToolButton" name="iRButton"> + <widget class="QLabel" name="trackNameLabel"> <property name="sizePolicy"> - <sizepolicy hsizetype="Minimum" vsizetype="Minimum"> + <sizepolicy hsizetype="Ignored" vsizetype="Minimum"> <horstretch>0</horstretch> <verstretch>0</verstretch> </sizepolicy> </property> - <property name="toolTip"> - <string>input routing</string> - </property> - <property name="text"> - <string>iR</string> + <property name="wordWrap"> + <bool>true</bool> </property> </widget> </item> <item> - <widget class="QToolButton" name="oRButton"> + <widget class="QComboBox" name="iOutput"> <property name="sizePolicy"> - <sizepolicy hsizetype="Minimum" vsizetype="Minimum"> + <sizepolicy hsizetype="Ignored" vsizetype="Fixed"> <horstretch>0</horstretch> <verstretch>0</verstretch> </sizepolicy> </property> <property name="toolTip"> - <string>output routing</string> - </property> - <property name="text"> - <string>oR</string> + <string>output port</string> </property> </widget> </item> - </layout> - </item> - <item row="3" column="1"> - <layout class="QHBoxLayout"> - <property name="spacing"> - <number>0</number> - </property> <item> - <widget class="QLabel" name="iChanDetectLabel"> - <property name="sizePolicy"> - <sizepolicy hsizetype="Maximum" vsizetype="Fixed"> - <horstretch>0</horstretch> - <verstretch>0</verstretch> - </sizepolicy> - </property> - <property name="toolTip"> - <string>input detect</string> - </property> - <property name="whatsThis"> - <string>Input detect indicator. Detects all note on-off, controller, aftertouch, + <layout class="QHBoxLayout" name="horizontalLayout_8"> + <property name="spacing"> + <number>0</number> + </property> + <item> + <widget class="SpinBox" name="iOutputChannel"> + <property name="sizePolicy"> + <sizepolicy hsizetype="Minimum" vsizetype="Fixed"> + <horstretch>0</horstretch> + <verstretch>0</verstretch> + </sizepolicy> + </property> + <property name="toolTip"> + <string>output channel</string> + </property> + <property name="whatsThis"> + <string>all midi events are sent to this output channel</string> + </property> + <property name="autoFillBackground"> + <bool>false</bool> + </property> + <property name="minimum"> + <number>1</number> + </property> + <property name="maximum"> + <number>16</number> + </property> + </widget> + </item> + <item> + <widget class="QLabel" name="TextLabel2"> + <property name="sizePolicy"> + <sizepolicy hsizetype="Minimum" vsizetype="Fixed"> + <horstretch>0</horstretch> + <verstretch>0</verstretch> + </sizepolicy> + </property> + <property name="text"> + <string>Out ch</string> + </property> + <property name="wordWrap"> + <bool>false</bool> + </property> + <property name="margin"> + <number>0</number> + </property> + <property name="indent"> + <number>1</number> + </property> + </widget> + </item> + </layout> + </item> + <item> + <layout class="QHBoxLayout" stretch="0,0,0,0,0"> + <property name="spacing"> + <number>0</number> + </property> + <item> + <widget class="QToolButton" name="iRButton"> + <property name="sizePolicy"> + <sizepolicy hsizetype="Minimum" vsizetype="Minimum"> + <horstretch>0</horstretch> + <verstretch>0</verstretch> + </sizepolicy> + </property> + <property name="toolTip"> + <string>input routing</string> + </property> + <property name="text"> + <string>iR</string> + </property> + </widget> + </item> + <item> + <widget class="QToolButton" name="oRButton"> + <property name="sizePolicy"> + <sizepolicy hsizetype="Minimum" vsizetype="Minimum"> + <horstretch>0</horstretch> + <verstretch>0</verstretch> + </sizepolicy> + </property> + <property name="toolTip"> + <string>output routing</string> + </property> + <property name="text"> + <string>oR</string> + </property> + </widget> + </item> + <item> + <widget class="QLabel" name="iChanDetectLabel"> + <property name="sizePolicy"> + <sizepolicy hsizetype="Maximum" vsizetype="Fixed"> + <horstretch>0</horstretch> + <verstretch>0</verstretch> + </sizepolicy> + </property> + <property name="toolTip"> + <string>input detect</string> + </property> + <property name="whatsThis"> + <string>Input detect indicator. Detects all note on-off, controller, aftertouch, program change, and pitchbend (but not sysex or realtime) events on the selected channels, on the selected midi ports.</string> - </property> - <property name="text"> - <string>W</string> - </property> - <property name="alignment"> - <set>Qt::AlignCenter</set> - </property> - <property name="wordWrap"> - <bool>false</bool> - </property> - <property name="margin"> - <number>2</number> - </property> - <property name="indent"> - <number>-1</number> - </property> - </widget> + </property> + <property name="text"> + <string>W</string> + </property> + <property name="alignment"> + <set>Qt::AlignCenter</set> + </property> + <property name="wordWrap"> + <bool>false</bool> + </property> + <property name="margin"> + <number>2</number> + </property> + <property name="indent"> + <number>-1</number> + </property> + </widget> + </item> + <item> + <widget class="QToolButton" name="recEchoButton"> + <property name="sizePolicy"> + <sizepolicy hsizetype="Minimum" vsizetype="Minimum"> + <horstretch>0</horstretch> + <verstretch>0</verstretch> + </sizepolicy> + </property> + <property name="toolTip"> + <string>Midi thru</string> + </property> + <property name="whatsThis"> + <string>Pass input events through ('thru') to output.</string> + </property> + <property name="checkable"> + <bool>true</bool> + </property> + </widget> + </item> + <item> + <spacer name="echoSpacer"> + <property name="orientation"> + <enum>Qt::Horizontal</enum> + </property> + <property name="sizeType"> + <enum>QSizePolicy::Expanding</enum> + </property> + <property name="sizeHint" stdset="0"> + <size> + <width>13</width> + <height>13</height> + </size> + </property> + </spacer> + </item> + </layout> </item> <item> - <widget class="QToolButton" name="recEchoButton"> - <property name="sizePolicy"> - <sizepolicy hsizetype="Minimum" vsizetype="Minimum"> - <horstretch>0</horstretch> - <verstretch>0</verstretch> - </sizepolicy> - </property> - <property name="toolTip"> - <string>Midi thru</string> - </property> - <property name="whatsThis"> - <string>Pass input events through ('thru') to output.</string> - </property> - <property name="checkable"> - <bool>true</bool> - </property> - </widget> + <layout class="QHBoxLayout" name="horizontalLayout"> + <property name="spacing"> + <number>0</number> + </property> + <item> + <widget class="SpinBox" name="iTransp"> + <property name="sizePolicy"> + <sizepolicy hsizetype="Minimum" vsizetype="Fixed"> + <horstretch>0</horstretch> + <verstretch>0</verstretch> + </sizepolicy> + </property> + <property name="autoFillBackground"> + <bool>false</bool> + </property> + <property name="specialValueText"> + <string>off</string> + </property> + <property name="minimum"> + <number>-127</number> + </property> + <property name="maximum"> + <number>127</number> + </property> + <property name="value"> + <number>1</number> + </property> + </widget> + </item> + <item> + <widget class="QLabel" name="TextLabel9"> + <property name="sizePolicy"> + <sizepolicy hsizetype="Minimum" vsizetype="Fixed"> + <horstretch>0</horstretch> + <verstretch>0</verstretch> + </sizepolicy> + </property> + <property name="text"> + <string>Transp.</string> + </property> + <property name="wordWrap"> + <bool>false</bool> + </property> + <property name="indent"> + <number>2</number> + </property> + </widget> + </item> + </layout> </item> <item> - <spacer name="echoSpacer"> - <property name="orientation"> - <enum>Qt::Horizontal</enum> - </property> - <property name="sizeType"> - <enum>QSizePolicy::Expanding</enum> - </property> - <property name="sizeHint" stdset="0"> - <size> - <width>2</width> - <height>2</height> - </size> - </property> - </spacer> + <layout class="QHBoxLayout" name="horizontalLayout_2"> + <property name="spacing"> + <number>0</number> + </property> + <item> + <widget class="SpinBox" name="iVerz"> + <property name="sizePolicy"> + <sizepolicy hsizetype="Minimum" vsizetype="Fixed"> + <horstretch>0</horstretch> + <verstretch>0</verstretch> + </sizepolicy> + </property> + <property name="autoFillBackground"> + <bool>false</bool> + </property> + <property name="specialValueText"> + <string>off</string> + </property> + <property name="minimum"> + <number>-1000</number> + </property> + <property name="maximum"> + <number>1000</number> + </property> + </widget> + </item> + <item> + <widget class="QLabel" name="TextLabel10"> + <property name="sizePolicy"> + <sizepolicy hsizetype="Minimum" vsizetype="Fixed"> + <horstretch>0</horstretch> + <verstretch>0</verstretch> + </sizepolicy> + </property> + <property name="text"> + <string>Delay</string> + </property> + <property name="wordWrap"> + <bool>false</bool> + </property> + <property name="indent"> + <number>2</number> + </property> + </widget> + </item> + </layout> </item> - </layout> - </item> - <item row="5" column="0"> - <widget class="SpinBox" name="iTransp" native="true"> - <property name="sizePolicy"> - <sizepolicy hsizetype="Minimum" vsizetype="Fixed"> - <horstretch>0</horstretch> - <verstretch>0</verstretch> - </sizepolicy> - </property> - <property name="specialValueText" stdset="0"> - <string>off</string> - </property> - <property name="maximum" stdset="0"> - <number>127</number> - </property> - <property name="minimum" stdset="0"> - <number>-127</number> - </property> - <property name="value" stdset="0"> - <number>1</number> - </property> - </widget> - </item> - <item row="5" column="1"> - <widget class="QLabel" name="TextLabel9"> - <property name="sizePolicy"> - <sizepolicy hsizetype="Minimum" vsizetype="Fixed"> - <horstretch>0</horstretch> - <verstretch>0</verstretch> - </sizepolicy> - </property> - <property name="text"> - <string>Transp.</string> - </property> - <property name="wordWrap"> - <bool>false</bool> - </property> - <property name="indent"> - <number>2</number> - </property> - </widget> - </item> - <item row="6" column="0"> - <widget class="SpinBox" name="iVerz" native="true"> - <property name="sizePolicy"> - <sizepolicy hsizetype="Minimum" vsizetype="Fixed"> - <horstretch>0</horstretch> - <verstretch>0</verstretch> - </sizepolicy> - </property> - <property name="specialValueText" stdset="0"> - <string>off</string> - </property> - <property name="maximum" stdset="0"> - <number>1000</number> - </property> - <property name="minimum" stdset="0"> - <number>-1000</number> - </property> - </widget> - </item> - <item row="6" column="1"> - <widget class="QLabel" name="TextLabel10"> - <property name="sizePolicy"> - <sizepolicy hsizetype="Minimum" vsizetype="Fixed"> - <horstretch>0</horstretch> - <verstretch>0</verstretch> - </sizepolicy> - </property> - <property name="text"> - <string>Delay</string> - </property> - <property name="wordWrap"> - <bool>false</bool> - </property> - <property name="indent"> - <number>2</number> - </property> - </widget> - </item> - <item row="7" column="0"> - <widget class="SpinBox" name="iLen" native="true"> - <property name="sizePolicy"> - <sizepolicy hsizetype="Maximum" vsizetype="Fixed"> - <horstretch>0</horstretch> - <verstretch>0</verstretch> - </sizepolicy> - </property> - <property name="suffix" stdset="0"> - <string>%</string> - </property> - <property name="maximum" stdset="0"> - <number>200</number> - </property> - <property name="minimum" stdset="0"> - <number>25</number> - </property> - <property name="value" stdset="0"> - <number>100</number> - </property> - </widget> - </item> - <item row="7" column="1"> - <widget class="QLabel" name="TextLabel11"> - <property name="sizePolicy"> - <sizepolicy hsizetype="Minimum" vsizetype="Fixed"> - <horstretch>0</horstretch> - <verstretch>0</verstretch> - </sizepolicy> - </property> - <property name="text"> - <string>Length</string> - </property> - <property name="wordWrap"> - <bool>false</bool> - </property> - <property name="indent"> - <number>2</number> - </property> - </widget> - </item> - <item row="8" column="0"> - <widget class="SpinBox" name="iAnschl" native="true"> - <property name="sizePolicy"> - <sizepolicy hsizetype="Minimum" vsizetype="Fixed"> - <horstretch>0</horstretch> - <verstretch>0</verstretch> - </sizepolicy> - </property> - <property name="maximum" stdset="0"> - <number>127</number> - </property> - <property name="minimum" stdset="0"> - <number>-127</number> - </property> - <property name="value" stdset="0"> - <number>0</number> - </property> - </widget> - </item> - <item row="8" column="1"> - <widget class="QLabel" name="TextLabel12"> - <property name="sizePolicy"> - <sizepolicy hsizetype="Minimum" vsizetype="Fixed"> - <horstretch>0</horstretch> - <verstretch>0</verstretch> - </sizepolicy> - </property> - <property name="text"> - <string>Velocity</string> - </property> - <property name="wordWrap"> - <bool>false</bool> - </property> - <property name="indent"> - <number>0</number> - </property> - </widget> - </item> - <item row="9" column="0"> - <widget class="SpinBox" name="iKompr" native="true"> - <property name="sizePolicy"> - <sizepolicy hsizetype="Maximum" vsizetype="Fixed"> - <horstretch>0</horstretch> - <verstretch>0</verstretch> - </sizepolicy> - </property> - <property name="prefix" stdset="0"> - <string/> - </property> - <property name="suffix" stdset="0"> - <string>%</string> - </property> - <property name="maximum" stdset="0"> - <number>200</number> - </property> - <property name="minimum" stdset="0"> - <number>25</number> - </property> - <property name="value" stdset="0"> - <number>100</number> - </property> - </widget> - </item> - <item row="9" column="1"> - <widget class="QLabel" name="TextLabel13"> - <property name="sizePolicy"> - <sizepolicy hsizetype="Minimum" vsizetype="Fixed"> - <horstretch>0</horstretch> - <verstretch>0</verstretch> - </sizepolicy> - </property> - <property name="text"> - <string>Compr.</string> - </property> - <property name="wordWrap"> - <bool>false</bool> - </property> - <property name="indent"> - <number>2</number> - </property> - </widget> - </item> - <item row="10" column="0" colspan="2"> - <widget class="QLabel" name="TextLabel1_2"> - <property name="sizePolicy"> - <sizepolicy hsizetype="Minimum" vsizetype="Maximum"> - <horstretch>0</horstretch> - <verstretch>0</verstretch> - </sizepolicy> - </property> - <property name="frameShape"> - <enum>QFrame::WinPanel</enum> - </property> - <property name="frameShadow"> - <enum>QFrame::Raised</enum> - </property> - <property name="lineWidth"> - <number>1</number> - </property> - <property name="midLineWidth"> - <number>1</number> - </property> - <property name="text"> - <string>Channel Info</string> - </property> - <property name="alignment"> - <set>Qt::AlignCenter</set> - </property> - <property name="wordWrap"> - <bool>false</bool> - </property> - </widget> - </item> - <item row="11" column="0" colspan="2"> - <widget class="QPushButton" name="iPatch"> - <property name="sizePolicy"> - <sizepolicy hsizetype="Ignored" vsizetype="Fixed"> - <horstretch>0</horstretch> - <verstretch>0</verstretch> - </sizepolicy> - </property> - <property name="toolTip"> - <string>Select instrument patch</string> - </property> - <property name="text"> - <string><unknown></string> - </property> - </widget> - </item> - <item row="12" column="0"> - <widget class="QLabel" name="textLabel1"> - <property name="sizePolicy"> - <sizepolicy hsizetype="Minimum" vsizetype="Fixed"> - <horstretch>0</horstretch> - <verstretch>0</verstretch> - </sizepolicy> - </property> - <property name="text"> - <string>Rec:</string> - </property> - <property name="alignment"> - <set>Qt::AlignRight|Qt::AlignTrailing|Qt::AlignVCenter</set> - </property> - <property name="wordWrap"> - <bool>false</bool> - </property> - </widget> - </item> - <item row="12" column="1"> - <layout class="QHBoxLayout"> - <property name="spacing"> - <number>0</number> - </property> <item> - <spacer name="recSpacer"> - <property name="orientation"> - <enum>Qt::Horizontal</enum> - </property> - <property name="sizeType"> - <enum>QSizePolicy::Minimum</enum> - </property> - <property name="sizeHint" stdset="0"> - <size> - <width>2</width> - <height>2</height> - </size> - </property> - </spacer> + <layout class="QHBoxLayout" name="horizontalLayout_3"> + <property name="spacing"> + <number>0</number> + </property> + <item> + <widget class="SpinBox" name="iLen"> + <property name="sizePolicy"> + <sizepolicy hsizetype="Maximum" vsizetype="Fixed"> + <horstretch>0</horstretch> + <verstretch>0</verstretch> + </sizepolicy> + </property> + <property name="autoFillBackground"> + <bool>false</bool> + </property> + <property name="suffix"> + <string>%</string> + </property> + <property name="minimum"> + <number>25</number> + </property> + <property name="maximum"> + <number>200</number> + </property> + <property name="value"> + <number>100</number> + </property> + </widget> + </item> + <item> + <widget class="QLabel" name="TextLabel11"> + <property name="sizePolicy"> + <sizepolicy hsizetype="Minimum" vsizetype="Fixed"> + <horstretch>0</horstretch> + <verstretch>0</verstretch> + </sizepolicy> + </property> + <property name="text"> + <string>Length</string> + </property> + <property name="wordWrap"> + <bool>false</bool> + </property> + <property name="indent"> + <number>2</number> + </property> + </widget> + </item> + </layout> + </item> + <item> + <layout class="QHBoxLayout" name="horizontalLayout_4"> + <property name="spacing"> + <number>0</number> + </property> + <item> + <widget class="SpinBox" name="iAnschl"> + <property name="sizePolicy"> + <sizepolicy hsizetype="Minimum" vsizetype="Fixed"> + <horstretch>0</horstretch> + <verstretch>0</verstretch> + </sizepolicy> + </property> + <property name="baseSize"> + <size> + <width>8</width> + <height>5</height> + </size> + </property> + <property name="autoFillBackground"> + <bool>false</bool> + </property> + <property name="minimum"> + <number>-127</number> + </property> + <property name="maximum"> + <number>127</number> + </property> + <property name="value"> + <number>0</number> + </property> + </widget> + </item> + <item> + <widget class="QLabel" name="TextLabel12"> + <property name="sizePolicy"> + <sizepolicy hsizetype="Minimum" vsizetype="Fixed"> + <horstretch>0</horstretch> + <verstretch>0</verstretch> + </sizepolicy> + </property> + <property name="text"> + <string>Velocity</string> + </property> + <property name="wordWrap"> + <bool>false</bool> + </property> + <property name="indent"> + <number>0</number> + </property> + </widget> + </item> + </layout> </item> <item> - <widget class="QToolButton" name="recordButton"> + <layout class="QHBoxLayout" name="horizontalLayout_5"> + <property name="spacing"> + <number>0</number> + </property> + <item> + <widget class="SpinBox" name="iKompr"> + <property name="sizePolicy"> + <sizepolicy hsizetype="Maximum" vsizetype="Fixed"> + <horstretch>0</horstretch> + <verstretch>0</verstretch> + </sizepolicy> + </property> + <property name="autoFillBackground"> + <bool>false</bool> + </property> + <property name="suffix"> + <string>%</string> + </property> + <property name="prefix"> + <string/> + </property> + <property name="minimum"> + <number>25</number> + </property> + <property name="maximum"> + <number>200</number> + </property> + <property name="value"> + <number>100</number> + </property> + </widget> + </item> + <item> + <widget class="QLabel" name="TextLabel13"> + <property name="sizePolicy"> + <sizepolicy hsizetype="Minimum" vsizetype="Fixed"> + <horstretch>0</horstretch> + <verstretch>0</verstretch> + </sizepolicy> + </property> + <property name="text"> + <string>Compr.</string> + </property> + <property name="wordWrap"> + <bool>false</bool> + </property> + <property name="indent"> + <number>2</number> + </property> + </widget> + </item> + </layout> + </item> + <item> + <widget class="QLabel" name="TextLabel1_2"> <property name="sizePolicy"> - <sizepolicy hsizetype="Minimum" vsizetype="Minimum"> + <sizepolicy hsizetype="Minimum" vsizetype="Maximum"> <horstretch>0</horstretch> <verstretch>0</verstretch> </sizepolicy> </property> - <property name="toolTip"> - <string>Add all settings to song</string> + <property name="frameShape"> + <enum>QFrame::WinPanel</enum> </property> - <property name="text"> - <string>All</string> + <property name="frameShadow"> + <enum>QFrame::Raised</enum> </property> - </widget> - </item> - <item> - <spacer name="allRecSpacer"> - <property name="orientation"> - <enum>Qt::Horizontal</enum> - </property> - <property name="sizeType"> - <enum>QSizePolicy::Expanding</enum> + <property name="lineWidth"> + <number>1</number> </property> - <property name="sizeHint" stdset="0"> - <size> - <width>2</width> - <height>2</height> - </size> + <property name="midLineWidth"> + <number>1</number> </property> - </spacer> - </item> - </layout> - </item> - <item row="13" column="0"> - <widget class="SpinBox" name="iHBank" native="true"> - <property name="sizePolicy"> - <sizepolicy hsizetype="Minimum" vsizetype="Fixed"> - <horstretch>0</horstretch> - <verstretch>0</verstretch> - </sizepolicy> - </property> - <property name="toolTip"> - <string>Bank Select MSB. Double-click on/off.</string> - </property> - <property name="specialValueText" stdset="0"> - <string>off</string> - </property> - <property name="maximum" stdset="0"> - <number>128</number> - </property> - <property name="minimum" stdset="0"> - <number>0</number> - </property> - <property name="value" stdset="0"> - <number>0</number> - </property> - </widget> - </item> - <item row="13" column="1"> - <widget class="QLabel" name="TextLabel4"> - <property name="sizePolicy"> - <sizepolicy hsizetype="Minimum" vsizetype="Fixed"> - <horstretch>0</horstretch> - <verstretch>0</verstretch> - </sizepolicy> - </property> - <property name="lineWidth"> - <number>1</number> - </property> - <property name="text"> - <string>H-Bank</string> - </property> - <property name="wordWrap"> - <bool>false</bool> - </property> - <property name="margin"> - <number>0</number> - </property> - <property name="indent"> - <number>2</number> - </property> - </widget> - </item> - <item row="14" column="0"> - <widget class="SpinBox" name="iLBank" native="true"> - <property name="sizePolicy"> - <sizepolicy hsizetype="Minimum" vsizetype="Fixed"> - <horstretch>0</horstretch> - <verstretch>0</verstretch> - </sizepolicy> - </property> - <property name="toolTip"> - <string>Bank Select LSB. Double-click on/off.</string> - </property> - <property name="specialValueText" stdset="0"> - <string>off</string> - </property> - <property name="maximum" stdset="0"> - <number>128</number> - </property> - <property name="minimum" stdset="0"> - <number>0</number> - </property> - <property name="value" stdset="0"> - <number>0</number> - </property> - </widget> - </item> - <item row="14" column="1"> - <widget class="QLabel" name="TextLabel5"> - <property name="sizePolicy"> - <sizepolicy hsizetype="Minimum" vsizetype="Fixed"> - <horstretch>0</horstretch> - <verstretch>0</verstretch> - </sizepolicy> - </property> - <property name="lineWidth"> - <number>1</number> - </property> - <property name="text"> - <string>L-Bank</string> - </property> - <property name="wordWrap"> - <bool>false</bool> - </property> - <property name="margin"> - <number>0</number> - </property> - <property name="indent"> - <number>2</number> - </property> - </widget> - </item> - <item row="15" column="0"> - <widget class="SpinBox" name="iProgram" native="true"> - <property name="sizePolicy"> - <sizepolicy hsizetype="Minimum" vsizetype="Fixed"> - <horstretch>0</horstretch> - <verstretch>0</verstretch> - </sizepolicy> - </property> - <property name="toolTip"> - <string>Program. Double-click on/off.</string> - </property> - <property name="specialValueText" stdset="0"> - <string>off</string> - </property> - <property name="maximum" stdset="0"> - <number>128</number> - </property> - <property name="minimum" stdset="0"> - <number>0</number> - </property> - <property name="value" stdset="0"> - <number>0</number> - </property> - </widget> - </item> - <item row="15" column="1"> - <layout class="QHBoxLayout"> - <property name="spacing"> - <number>0</number> - </property> - <property name="margin"> - <number>0</number> - </property> - <item> - <spacer name="progSpacer"> - <property name="orientation"> - <enum>Qt::Horizontal</enum> + <property name="text"> + <string>Channel Info</string> </property> - <property name="sizeType"> - <enum>QSizePolicy::Minimum</enum> + <property name="alignment"> + <set>Qt::AlignCenter</set> </property> - <property name="sizeHint" stdset="0"> - <size> - <width>2</width> - <height>2</height> - </size> + <property name="wordWrap"> + <bool>false</bool> </property> - </spacer> + </widget> </item> <item> - <widget class="QToolButton" name="progRecButton"> + <widget class="QPushButton" name="iPatch"> <property name="sizePolicy"> - <sizepolicy hsizetype="Minimum" vsizetype="Minimum"> + <sizepolicy hsizetype="Ignored" vsizetype="Fixed"> <horstretch>0</horstretch> <verstretch>0</verstretch> </sizepolicy> </property> <property name="toolTip"> - <string>Add bank + prog settings to song</string> + <string>Select instrument patch</string> </property> <property name="text"> - <string>Prog</string> + <string><unknown></string> </property> </widget> </item> <item> - <spacer name="progRecSpacer"> - <property name="orientation"> - <enum>Qt::Horizontal</enum> - </property> - <property name="sizeType"> - <enum>QSizePolicy::Expanding</enum> - </property> - <property name="sizeHint" stdset="0"> - <size> - <width>2</width> - <height>2</height> - </size> - </property> - </spacer> + <layout class="QHBoxLayout"> + <property name="spacing"> + <number>0</number> + </property> + <item> + <widget class="QLabel" name="textLabel1"> + <property name="sizePolicy"> + <sizepolicy hsizetype="Minimum" vsizetype="Fixed"> + <horstretch>0</horstretch> + <verstretch>0</verstretch> + </sizepolicy> + </property> + <property name="text"> + <string>Rec:</string> + </property> + <property name="alignment"> + <set>Qt::AlignRight|Qt::AlignTrailing|Qt::AlignVCenter</set> + </property> + <property name="wordWrap"> + <bool>false</bool> + </property> + </widget> + </item> + <item> + <widget class="QToolButton" name="recordButton"> + <property name="sizePolicy"> + <sizepolicy hsizetype="Minimum" vsizetype="Minimum"> + <horstretch>0</horstretch> + <verstretch>0</verstretch> + </sizepolicy> + </property> + <property name="toolTip"> + <string>Add all settings to song</string> + </property> + <property name="text"> + <string>All</string> + </property> + </widget> + </item> + <item> + <spacer name="allRecSpacer"> + <property name="orientation"> + <enum>Qt::Horizontal</enum> + </property> + <property name="sizeType"> + <enum>QSizePolicy::Expanding</enum> + </property> + <property name="sizeHint" stdset="0"> + <size> + <width>2</width> + <height>2</height> + </size> + </property> + </spacer> + </item> + </layout> </item> - </layout> - </item> - <item row="16" column="0"> - <widget class="SpinBox" name="iLautst" native="true"> - <property name="sizePolicy"> - <sizepolicy hsizetype="Minimum" vsizetype="Fixed"> - <horstretch>0</horstretch> - <verstretch>0</verstretch> - </sizepolicy> - </property> - <property name="toolTip"> - <string>Volume. Double-click on/off.</string> - </property> - <property name="specialValueText" stdset="0"> - <string>off</string> - </property> - <property name="maximum" stdset="0"> - <number>127</number> - </property> - <property name="minimum" stdset="0"> - <number>-1</number> - </property> - <property name="value" stdset="0"> - <number>-1</number> - </property> - </widget> - </item> - <item row="16" column="1"> - <layout class="QHBoxLayout"> - <property name="spacing"> - <number>0</number> - </property> - <property name="margin"> - <number>0</number> - </property> <item> - <spacer name="volSpacer"> - <property name="orientation"> - <enum>Qt::Horizontal</enum> - </property> - <property name="sizeType"> - <enum>QSizePolicy::Minimum</enum> - </property> - <property name="sizeHint" stdset="0"> - <size> - <width>2</width> - <height>2</height> - </size> - </property> - </spacer> + <layout class="QHBoxLayout" name="horizontalLayout_7"> + <property name="spacing"> + <number>0</number> + </property> + <item> + <widget class="SpinBox" name="iHBank"> + <property name="sizePolicy"> + <sizepolicy hsizetype="Minimum" vsizetype="Fixed"> + <horstretch>0</horstretch> + <verstretch>0</verstretch> + </sizepolicy> + </property> + <property name="toolTip"> + <string>Bank Select MSB. Double-click on/off.</string> + </property> + <property name="autoFillBackground"> + <bool>false</bool> + </property> + <property name="specialValueText"> + <string>off</string> + </property> + <property name="minimum"> + <number>0</number> + </property> + <property name="maximum"> + <number>128</number> + </property> + <property name="value"> + <number>0</number> + </property> + </widget> + </item> + <item> + <widget class="QLabel" name="TextLabel4"> + <property name="sizePolicy"> + <sizepolicy hsizetype="Minimum" vsizetype="Fixed"> + <horstretch>0</horstretch> + <verstretch>0</verstretch> + </sizepolicy> + </property> + <property name="lineWidth"> + <number>1</number> + </property> + <property name="text"> + <string>H-Bank</string> + </property> + <property name="wordWrap"> + <bool>false</bool> + </property> + <property name="margin"> + <number>0</number> + </property> + <property name="indent"> + <number>2</number> + </property> + </widget> + </item> + </layout> </item> <item> - <widget class="QToolButton" name="volRecButton"> - <property name="sizePolicy"> - <sizepolicy hsizetype="Minimum" vsizetype="Minimum"> - <horstretch>0</horstretch> - <verstretch>0</verstretch> - </sizepolicy> - </property> - <property name="toolTip"> - <string>Add vol setting to song</string> - </property> - <property name="text"> - <string>Vol</string> - </property> - </widget> + <layout class="QHBoxLayout" name="horizontalLayout_6"> + <property name="spacing"> + <number>0</number> + </property> + <item> + <widget class="SpinBox" name="iLBank"> + <property name="sizePolicy"> + <sizepolicy hsizetype="Minimum" vsizetype="Fixed"> + <horstretch>0</horstretch> + <verstretch>0</verstretch> + </sizepolicy> + </property> + <property name="toolTip"> + <string>Bank Select LSB. Double-click on/off.</string> + </property> + <property name="autoFillBackground"> + <bool>false</bool> + </property> + <property name="specialValueText"> + <string>off</string> + </property> + <property name="minimum"> + <number>0</number> + </property> + <property name="maximum"> + <number>128</number> + </property> + <property name="value"> + <number>0</number> + </property> + </widget> + </item> + <item> + <widget class="QLabel" name="TextLabel5"> + <property name="sizePolicy"> + <sizepolicy hsizetype="Minimum" vsizetype="Fixed"> + <horstretch>0</horstretch> + <verstretch>0</verstretch> + </sizepolicy> + </property> + <property name="lineWidth"> + <number>1</number> + </property> + <property name="text"> + <string>L-Bank</string> + </property> + <property name="wordWrap"> + <bool>false</bool> + </property> + <property name="margin"> + <number>0</number> + </property> + <property name="indent"> + <number>2</number> + </property> + </widget> + </item> + </layout> </item> <item> - <spacer name="volRecSpacer"> - <property name="orientation"> - <enum>Qt::Horizontal</enum> + <layout class="QHBoxLayout"> + <property name="spacing"> + <number>0</number> </property> - <property name="sizeType"> - <enum>QSizePolicy::Expanding</enum> - </property> - <property name="sizeHint" stdset="0"> - <size> - <width>2</width> - <height>2</height> - </size> - </property> - </spacer> + <property name="margin"> + <number>0</number> + </property> + <item> + <widget class="SpinBox" name="iProgram"> + <property name="sizePolicy"> + <sizepolicy hsizetype="Minimum" vsizetype="Fixed"> + <horstretch>0</horstretch> + <verstretch>0</verstretch> + </sizepolicy> + </property> + <property name="toolTip"> + <string>Program. Double-click on/off.</string> + </property> + <property name="autoFillBackground"> + <bool>false</bool> + </property> + <property name="specialValueText"> + <string>off</string> + </property> + <property name="minimum"> + <number>0</number> + </property> + <property name="maximum"> + <number>128</number> + </property> + <property name="value"> + <number>0</number> + </property> + </widget> + </item> + <item> + <widget class="QToolButton" name="progRecButton"> + <property name="sizePolicy"> + <sizepolicy hsizetype="Minimum" vsizetype="Minimum"> + <horstretch>0</horstretch> + <verstretch>0</verstretch> + </sizepolicy> + </property> + <property name="toolTip"> + <string>Add bank + prog settings to song</string> + </property> + <property name="text"> + <string>Prog</string> + </property> + </widget> + </item> + <item> + <spacer name="progRecSpacer"> + <property name="orientation"> + <enum>Qt::Horizontal</enum> + </property> + <property name="sizeType"> + <enum>QSizePolicy::Expanding</enum> + </property> + <property name="sizeHint" stdset="0"> + <size> + <width>2</width> + <height>2</height> + </size> + </property> + </spacer> + </item> + </layout> </item> - </layout> - </item> - <item row="17" column="0"> - <widget class="SpinBox" name="iPan" native="true"> - <property name="sizePolicy"> - <sizepolicy hsizetype="Minimum" vsizetype="Fixed"> - <horstretch>0</horstretch> - <verstretch>0</verstretch> - </sizepolicy> - </property> - <property name="toolTip"> - <string>Change stereo position. Double-click on/off.</string> - </property> - <property name="whatsThis"> - <string>Change stereo position. Double-click on/off.</string> - </property> - <property name="specialValueText" stdset="0"> - <string>off</string> - </property> - <property name="maximum" stdset="0"> - <number>63</number> - </property> - <property name="minimum" stdset="0"> - <number>-65</number> - </property> - <property name="value" stdset="0"> - <number>-65</number> - </property> - </widget> - </item> - <item row="17" column="1"> - <layout class="QHBoxLayout"> - <property name="spacing"> - <number>0</number> - </property> - <property name="margin"> - <number>0</number> - </property> <item> - <spacer name="panSpacer"> - <property name="orientation"> - <enum>Qt::Horizontal</enum> - </property> - <property name="sizeType"> - <enum>QSizePolicy::Minimum</enum> - </property> - <property name="sizeHint" stdset="0"> - <size> - <width>2</width> - <height>2</height> - </size> + <layout class="QHBoxLayout"> + <property name="spacing"> + <number>0</number> </property> - </spacer> + <property name="margin"> + <number>0</number> + </property> + <item> + <widget class="SpinBox" name="iLautst"> + <property name="sizePolicy"> + <sizepolicy hsizetype="Minimum" vsizetype="Fixed"> + <horstretch>0</horstretch> + <verstretch>0</verstretch> + </sizepolicy> + </property> + <property name="toolTip"> + <string>Volume. Double-click on/off.</string> + </property> + <property name="autoFillBackground"> + <bool>false</bool> + </property> + <property name="specialValueText"> + <string>off</string> + </property> + <property name="minimum"> + <number>-1</number> + </property> + <property name="maximum"> + <number>127</number> + </property> + <property name="value"> + <number>-1</number> + </property> + </widget> + </item> + <item> + <widget class="QToolButton" name="volRecButton"> + <property name="sizePolicy"> + <sizepolicy hsizetype="Minimum" vsizetype="Minimum"> + <horstretch>0</horstretch> + <verstretch>0</verstretch> + </sizepolicy> + </property> + <property name="toolTip"> + <string>Add vol setting to song</string> + </property> + <property name="text"> + <string>Vol</string> + </property> + </widget> + </item> + <item> + <spacer name="volRecSpacer"> + <property name="orientation"> + <enum>Qt::Horizontal</enum> + </property> + <property name="sizeType"> + <enum>QSizePolicy::Expanding</enum> + </property> + <property name="sizeHint" stdset="0"> + <size> + <width>2</width> + <height>2</height> + </size> + </property> + </spacer> + </item> + </layout> </item> <item> - <widget class="QToolButton" name="panRecButton"> - <property name="sizePolicy"> - <sizepolicy hsizetype="Minimum" vsizetype="Minimum"> - <horstretch>0</horstretch> - <verstretch>0</verstretch> - </sizepolicy> + <layout class="QHBoxLayout"> + <property name="spacing"> + <number>0</number> </property> - <property name="toolTip"> - <string>Add pan setting to song</string> - </property> - <property name="text"> - <string>Pan</string> - </property> - </widget> + <property name="margin"> + <number>0</number> + </property> + <item> + <widget class="SpinBox" name="iPan"> + <property name="sizePolicy"> + <sizepolicy hsizetype="Minimum" vsizetype="Fixed"> + <horstretch>0</horstretch> + <verstretch>0</verstretch> + </sizepolicy> + </property> + <property name="toolTip"> + <string>Change stereo position. Double-click on/off.</string> + </property> + <property name="whatsThis"> + <string>Change stereo position. Double-click on/off.</string> + </property> + <property name="autoFillBackground"> + <bool>false</bool> + </property> + <property name="specialValueText"> + <string>off</string> + </property> + <property name="minimum"> + <number>-65</number> + </property> + <property name="maximum"> + <number>63</number> + </property> + <property name="value"> + <number>-65</number> + </property> + </widget> + </item> + <item> + <widget class="QToolButton" name="panRecButton"> + <property name="sizePolicy"> + <sizepolicy hsizetype="Minimum" vsizetype="Minimum"> + <horstretch>0</horstretch> + <verstretch>0</verstretch> + </sizepolicy> + </property> + <property name="toolTip"> + <string>Add pan setting to song</string> + </property> + <property name="text"> + <string>Pan</string> + </property> + </widget> + </item> + <item> + <spacer name="panRecSpacer"> + <property name="orientation"> + <enum>Qt::Horizontal</enum> + </property> + <property name="sizeType"> + <enum>QSizePolicy::Expanding</enum> + </property> + <property name="sizeHint" stdset="0"> + <size> + <width>2</width> + <height>2</height> + </size> + </property> + </spacer> + </item> + </layout> </item> <item> - <spacer name="panRecSpacer"> + <spacer name="spacer5"> <property name="orientation"> - <enum>Qt::Horizontal</enum> + <enum>Qt::Vertical</enum> </property> <property name="sizeType"> <enum>QSizePolicy::Expanding</enum> </property> <property name="sizeHint" stdset="0"> <size> - <width>2</width> - <height>2</height> + <width>18</width> + <height>13</height> </size> </property> </spacer> </item> </layout> </item> - <item row="18" column="0" colspan="2"> - <spacer name="spacer5"> - <property name="orientation"> - <enum>Qt::Vertical</enum> - </property> - <property name="sizeType"> - <enum>QSizePolicy::Expanding</enum> - </property> - <property name="sizeHint" stdset="0"> - <size> - <width>20</width> - <height>20</height> - </size> - </property> - </spacer> - </item> </layout> </widget> <layoutdefault spacing="6" margin="11"/> <customwidgets> <customwidget> <class>SpinBox</class> - <extends>QWidget</extends> + <extends>QSpinBox</extends> <header location="global">spinbox.h</header> </customwidget> </customwidgets> diff --git a/muse2/muse/widgets/shortcutconfig.cpp b/muse2/muse/widgets/shortcutconfig.cpp index 78162f50..80d0290f 100644 --- a/muse2/muse/widgets/shortcutconfig.cpp +++ b/muse2/muse/widgets/shortcutconfig.cpp @@ -12,6 +12,7 @@ #include <QCloseEvent> #include <QKeySequence> #include <QString> +#include <QSettings> #include "shortcutconfig.h" #include "shortcutcapturedialog.h" @@ -21,6 +22,9 @@ ShortcutConfig::ShortcutConfig(QWidget* parent) : QDialog(parent) { setupUi(this); + QSettings settings("MusE", "MusE-qt"); + restoreGeometry(settings.value("ShortcutConfig/geometry").toByteArray()); + connect(cgListView, SIGNAL(itemActivated(QTreeWidgetItem*, int )), this, SLOT(categorySelChanged(QTreeWidgetItem*, int))); connect(scListView, SIGNAL(itemActivated(QTreeWidgetItem*, int )), @@ -46,6 +50,7 @@ ShortcutConfig::ShortcutConfig(QWidget* parent) if(selItem) cgListView->setCurrentItem(selItem); // Tim updateSCListView(); + } void ShortcutConfig::updateSCListView(int category) @@ -116,6 +121,8 @@ void ShortcutConfig::shortcutSelChanged(QTreeWidgetItem* in_item, int /*column*/ void ShortcutConfig::closeEvent(QCloseEvent* /*e*/) // prevent compiler warning : unused variable { + QSettings settings("MusE", "MusE-qt"); + settings.setValue("ShortcutConfig/geometry", saveGeometry()); done(_config_changed); } diff --git a/muse2/muse/widgets/shortcutconfig.h b/muse2/muse/widgets/shortcutconfig.h index 0cc11dd7..f68bfd5a 100644 --- a/muse2/muse/widgets/shortcutconfig.h +++ b/muse2/muse/widgets/shortcutconfig.h @@ -19,8 +19,8 @@ class QCloseEvent; #define SHRT_CATEGORY_COL 0 enum { - SHRT_DESCR_COL = 0, - SHRT_SHRTCUT_COL + SHRT_SHRTCUT_COL = 0, + SHRT_DESCR_COL, }; class SCListViewItem : public QTreeWidgetItem { diff --git a/muse2/muse/widgets/shortcutconfigbase.ui b/muse2/muse/widgets/shortcutconfigbase.ui index 892cc7c3..119a7007 100644 --- a/muse2/muse/widgets/shortcutconfigbase.ui +++ b/muse2/muse/widgets/shortcutconfigbase.ui @@ -47,12 +47,6 @@ <property name="text"> <string>Shortcut Category</string> </property> - <property name="clickable"> - <bool>true</bool> - </property> - <property name="resizable"> - <bool>false</bool> - </property> </column> </widget> </item> @@ -72,24 +66,12 @@ </property> <column> <property name="text"> - <string>Description</string> - </property> - <property name="clickable"> - <bool>true</bool> - </property> - <property name="resizable"> - <bool>true</bool> + <string>Shortcut</string> </property> </column> <column> <property name="text"> - <string>Shortcut</string> - </property> - <property name="clickable"> - <bool>true</bool> - </property> - <property name="resizable"> - <bool>true</bool> + <string>Description</string> </property> </column> </widget> diff --git a/muse2/muse/widgets/visibletracks.cpp b/muse2/muse/widgets/visibletracks.cpp index b2a88d1c..e261c274 100644 --- a/muse2/muse/widgets/visibletracks.cpp +++ b/muse2/muse/widgets/visibletracks.cpp @@ -67,6 +67,20 @@ VisibleTracks::VisibleTracks(QWidget* parent, const char*) connect(action, SIGNAL(selected(QAction*)), SLOT(visibilityChanged(QAction*))); } + +//--------------------------------------------------------- +// updateVisibleTracksButtons +//--------------------------------------------------------- +void VisibleTracks::updateVisibleTracksButtons() +{ + actions[0]->setChecked(WaveTrack::visible()); + actions[1]->setChecked(AudioGroup::visible()); + actions[2]->setChecked(AudioAux::visible()); + actions[3]->setChecked(AudioInput::visible()); + actions[4]->setChecked(AudioOutput::visible()); + actions[5]->setChecked(MidiTrack::visible()); + actions[6]->setChecked(SynthI::visible()); +} //--------------------------------------------------------- // toolChanged //--------------------------------------------------------- diff --git a/muse2/muse/widgets/visibletracks.h b/muse2/muse/widgets/visibletracks.h index 75ec06ae..2f17e323 100644 --- a/muse2/muse/widgets/visibletracks.h +++ b/muse2/muse/widgets/visibletracks.h @@ -41,6 +41,7 @@ class VisibleTracks : public QToolBar { public: VisibleTracks(QWidget* /*parent*/, const char* name = 0); // Needs a parent ! + void updateVisibleTracksButtons(); ~VisibleTracks(); }; |
