diff options
author | Orcan Ogetbil <oget.fedora@gmail.com> | 2010-11-20 04:30:21 +0000 |
---|---|---|
committer | Orcan Ogetbil <oget.fedora@gmail.com> | 2010-11-20 04:30:21 +0000 |
commit | c78f8f241423e16df682d77f2b9cb4080d492774 (patch) | |
tree | d287c66bc3d22a577091a19bef093447231a854b /muse2/muse/mplugins | |
parent | 3b63d9a339d8e850ba6d8e4ae979fa60eef2dc4d (diff) |
Ported .ui widgets to Qt4
Diffstat (limited to 'muse2/muse/mplugins')
-rw-r--r-- | muse2/muse/mplugins/CMakeLists.txt | 4 | ||||
-rw-r--r-- | muse2/muse/mplugins/midifilter.ui | 1609 | ||||
-rw-r--r-- | muse2/muse/mplugins/midifilterimpl.cpp | 8 | ||||
-rw-r--r-- | muse2/muse/mplugins/midifilterimpl.h | 23 |
4 files changed, 753 insertions, 891 deletions
diff --git a/muse2/muse/mplugins/CMakeLists.txt b/muse2/muse/mplugins/CMakeLists.txt index 242540a5..bd8366f5 100644 --- a/muse2/muse/mplugins/CMakeLists.txt +++ b/muse2/muse/mplugins/CMakeLists.txt @@ -40,8 +40,8 @@ QT4_WRAP_CPP ( mplugins_mocs mittranspose.h midiitransform.h midifilterimpl.h mrconfig.h rhythm.h ) # QT4_WRAP_UI ( mplugins_uis transform.ui ) -QT4_WRAP_UI ( mplugins_UIC mrconfigbase.ui ) -QT4_WRAP_UI3 ( mplugins_uis midifilter.ui rhythmbase.ui ) +QT4_WRAP_UI ( mplugins_UIC midifilter.ui mrconfigbase.ui ) +QT4_WRAP_UI3 ( mplugins_uis rhythmbase.ui ) # add_library ( mplugins SHARED add_library ( mplugins STATIC diff --git a/muse2/muse/mplugins/midifilter.ui b/muse2/muse/mplugins/midifilter.ui index 412e735d..529f893a 100644 --- a/muse2/muse/mplugins/midifilter.ui +++ b/muse2/muse/mplugins/midifilter.ui @@ -1,879 +1,730 @@ -<!DOCTYPE UI><UI version="3.1" stdsetdef="1"> -<class>MidiFilterConfigBase</class> -<widget class="QDialog"> - <property name="name"> - <cstring>MidiFilterConfigBase</cstring> - </property> - <property name="geometry"> - <rect> - <x>0</x> - <y>0</y> - <width>348</width> - <height>431</height> - </rect> - </property> - <property name="sizePolicy"> - <sizepolicy> - <hsizetype>3</hsizetype> - <vsizetype>5</vsizetype> - <horstretch>0</horstretch> - <verstretch>0</verstretch> - </sizepolicy> - </property> - <property name="caption"> - <string>MusE: Midi Input Filter</string> - </property> - <grid> - <property name="name"> - <cstring>unnamed</cstring> - </property> - <property name="margin"> - <number>11</number> - </property> - <property name="spacing"> - <number>6</number> - </property> - <widget class="QGroupBox" row="0" column="0"> - <property name="name"> - <cstring>GroupBoxx</cstring> - </property> - <property name="sizePolicy"> - <sizepolicy> - <hsizetype>3</hsizetype> - <vsizetype>5</vsizetype> - <horstretch>0</horstretch> - <verstretch>0</verstretch> - </sizepolicy> - </property> - <property name="title"> - <string>Record Filter</string> - </property> - <property name="layoutSpacing" stdset="0"> - </property> - <vbox> - <property name="name"> - <cstring>unnamed</cstring> - </property> - <property name="margin"> - <number>11</number> - </property> - <property name="spacing"> - <number>6</number> - </property> - <widget class="QCheckBox"> - <property name="name"> - <cstring>rf1</cstring> - </property> - <property name="sizePolicy"> - <sizepolicy> - <hsizetype>7</hsizetype> - <vsizetype>0</vsizetype> - <horstretch>0</horstretch> - <verstretch>0</verstretch> - </sizepolicy> - </property> - <property name="text"> - <string>Note On</string> - </property> - </widget> - <widget class="QCheckBox"> - <property name="name"> - <cstring>rf2</cstring> - </property> - <property name="sizePolicy"> - <sizepolicy> - <hsizetype>7</hsizetype> - <vsizetype>0</vsizetype> - <horstretch>0</horstretch> - <verstretch>0</verstretch> - </sizepolicy> - </property> - <property name="text"> - <string>Poly Pressure</string> - </property> - </widget> - <widget class="QCheckBox"> - <property name="name"> - <cstring>rf3</cstring> - </property> - <property name="sizePolicy"> - <sizepolicy> - <hsizetype>7</hsizetype> - <vsizetype>0</vsizetype> - <horstretch>0</horstretch> - <verstretch>0</verstretch> - </sizepolicy> - </property> - <property name="text"> - <string>Controller</string> - </property> - </widget> - <widget class="QCheckBox"> - <property name="name"> - <cstring>rf4</cstring> - </property> - <property name="sizePolicy"> - <sizepolicy> - <hsizetype>7</hsizetype> - <vsizetype>0</vsizetype> - <horstretch>0</horstretch> - <verstretch>0</verstretch> - </sizepolicy> - </property> - <property name="text"> - <string>Program Change</string> - </property> - </widget> - <widget class="QCheckBox"> - <property name="name"> - <cstring>rf5</cstring> - </property> - <property name="sizePolicy"> - <sizepolicy> - <hsizetype>7</hsizetype> - <vsizetype>0</vsizetype> - <horstretch>0</horstretch> - <verstretch>0</verstretch> - </sizepolicy> - </property> - <property name="text"> - <string>After Touch</string> - </property> - </widget> - <widget class="QCheckBox"> - <property name="name"> - <cstring>rf6</cstring> - </property> - <property name="sizePolicy"> - <sizepolicy> - <hsizetype>7</hsizetype> - <vsizetype>0</vsizetype> - <horstretch>0</horstretch> - <verstretch>0</verstretch> - </sizepolicy> - </property> - <property name="text"> - <string>Pitch Bend</string> - </property> - </widget> - <widget class="QCheckBox"> - <property name="name"> - <cstring>rf7</cstring> - </property> - <property name="sizePolicy"> - <sizepolicy> - <hsizetype>7</hsizetype> - <vsizetype>0</vsizetype> - <horstretch>0</horstretch> - <verstretch>0</verstretch> - </sizepolicy> - </property> - <property name="text"> - <string>Sysex</string> - </property> - </widget> - </vbox> - </widget> - <widget class="QGroupBox" row="0" column="1"> - <property name="name"> - <cstring>GroupBox2</cstring> - </property> - <property name="sizePolicy"> - <sizepolicy> - <hsizetype>7</hsizetype> - <vsizetype>5</vsizetype> - <horstretch>0</horstretch> - <verstretch>0</verstretch> - </sizepolicy> - </property> - <property name="title"> - <string>Thru Filter</string> - </property> - <vbox> - <property name="name"> - <cstring>unnamed</cstring> - </property> - <property name="margin"> - <number>11</number> - </property> - <property name="spacing"> - <number>6</number> - </property> - <widget class="QCheckBox"> - <property name="name"> - <cstring>tf1</cstring> - </property> - <property name="sizePolicy"> - <sizepolicy> - <hsizetype>5</hsizetype> - <vsizetype>5</vsizetype> - <horstretch>0</horstretch> - <verstretch>0</verstretch> - </sizepolicy> - </property> - <property name="text"> - <string>Note On</string> - </property> - </widget> - <widget class="QCheckBox"> - <property name="name"> - <cstring>tf2</cstring> - </property> - <property name="sizePolicy"> - <sizepolicy> - <hsizetype>7</hsizetype> - <vsizetype>0</vsizetype> - <horstretch>0</horstretch> - <verstretch>0</verstretch> - </sizepolicy> - </property> - <property name="text"> - <string>Poly Pressure</string> - </property> - </widget> - <widget class="QCheckBox"> - <property name="name"> - <cstring>tf3</cstring> - </property> - <property name="sizePolicy"> - <sizepolicy> - <hsizetype>7</hsizetype> - <vsizetype>0</vsizetype> - <horstretch>0</horstretch> - <verstretch>0</verstretch> - </sizepolicy> - </property> - <property name="text"> - <string>Controller</string> - </property> - </widget> - <widget class="QCheckBox"> - <property name="name"> - <cstring>tf4</cstring> - </property> - <property name="sizePolicy"> - <sizepolicy> - <hsizetype>1</hsizetype> - <vsizetype>5</vsizetype> - <horstretch>0</horstretch> - <verstretch>0</verstretch> - </sizepolicy> - </property> - <property name="text"> - <string>Program Change</string> - </property> - </widget> - <widget class="QCheckBox"> - <property name="name"> - <cstring>tf5</cstring> - </property> - <property name="sizePolicy"> - <sizepolicy> - <hsizetype>7</hsizetype> - <vsizetype>0</vsizetype> - <horstretch>0</horstretch> - <verstretch>0</verstretch> - </sizepolicy> - </property> - <property name="text"> - <string>After Touch</string> - </property> - </widget> - <widget class="QCheckBox"> - <property name="name"> - <cstring>tf6</cstring> - </property> - <property name="sizePolicy"> - <sizepolicy> - <hsizetype>7</hsizetype> - <vsizetype>0</vsizetype> - <horstretch>0</horstretch> - <verstretch>0</verstretch> - </sizepolicy> - </property> - <property name="text"> - <string>Pitch Bend</string> - </property> - </widget> - <widget class="QCheckBox"> - <property name="name"> - <cstring>tf7</cstring> - </property> - <property name="sizePolicy"> - <sizepolicy> - <hsizetype>7</hsizetype> - <vsizetype>0</vsizetype> - <horstretch>0</horstretch> - <verstretch>0</verstretch> - </sizepolicy> - </property> - <property name="text"> - <string>Sysex</string> - </property> - </widget> - </vbox> - </widget> - <widget class="QGroupBox" row="1" column="1"> - <property name="name"> - <cstring>GroupBox4</cstring> - </property> - <property name="sizePolicy"> - <sizepolicy> - <hsizetype>7</hsizetype> - <vsizetype>7</vsizetype> - <horstretch>0</horstretch> - <verstretch>0</verstretch> - </sizepolicy> - </property> - <property name="title"> - <string>Controller Filter</string> - </property> - <vbox> - <property name="name"> - <cstring>unnamed</cstring> - </property> - <property name="margin"> - <number>11</number> - </property> - <property name="spacing"> - <number>6</number> - </property> - <widget class="CtrlComboBox"> - <property name="name"> - <cstring>cb1</cstring> - </property> - </widget> - <widget class="CtrlComboBox"> - <property name="name"> - <cstring>cb2</cstring> - </property> - </widget> - <widget class="CtrlComboBox"> - <property name="name"> - <cstring>cb3</cstring> - </property> - </widget> - <widget class="CtrlComboBox"> - <property name="name"> - <cstring>cb4</cstring> - </property> - </widget> - </vbox> - </widget> - <widget class="QButtonGroup" row="1" column="0"> - <property name="name"> - <cstring>ButtonGroup1</cstring> - </property> - <property name="sizePolicy"> - <sizepolicy> - <hsizetype>5</hsizetype> - <vsizetype>7</vsizetype> - <horstretch>0</horstretch> - <verstretch>0</verstretch> - </sizepolicy> - </property> - <property name="title"> - <string>Channel Filter</string> - </property> - <property name="layoutSpacing" stdset="0"> - </property> - <grid> - <property name="name"> - <cstring>unnamed</cstring> - </property> - <property name="margin"> - <number>11</number> - </property> - <property name="spacing"> - <number>3</number> - </property> - <widget class="QPushButton" row="3" column="1"> - <property name="name"> - <cstring>cf14</cstring> - </property> - <property name="sizePolicy"> - <sizepolicy> - <hsizetype>0</hsizetype> - <vsizetype>0</vsizetype> - <horstretch>0</horstretch> - <verstretch>0</verstretch> - </sizepolicy> - </property> - <property name="maximumSize"> - <size> - <width>30</width> - <height>32767</height> - </size> - </property> - <property name="text"> - <string>14</string> - </property> - <property name="toggleButton"> - <bool>true</bool> - </property> - </widget> - <widget class="QPushButton" row="2" column="1"> - <property name="name"> - <cstring>cf10</cstring> - </property> - <property name="sizePolicy"> - <sizepolicy> - <hsizetype>5</hsizetype> - <vsizetype>0</vsizetype> - <horstretch>0</horstretch> - <verstretch>0</verstretch> - </sizepolicy> - </property> - <property name="maximumSize"> - <size> - <width>30</width> - <height>32767</height> - </size> - </property> - <property name="text"> - <string>10</string> - </property> - <property name="toggleButton"> - <bool>true</bool> - </property> - </widget> - <widget class="QPushButton" row="1" column="1"> - <property name="name"> - <cstring>cf6</cstring> - </property> - <property name="sizePolicy"> - <sizepolicy> - <hsizetype>5</hsizetype> - <vsizetype>5</vsizetype> - <horstretch>0</horstretch> - <verstretch>0</verstretch> - </sizepolicy> - </property> - <property name="maximumSize"> - <size> - <width>30</width> - <height>32767</height> - </size> - </property> - <property name="text"> - <string>6</string> - </property> - <property name="toggleButton"> - <bool>true</bool> - </property> - </widget> - <widget class="QPushButton" row="2" column="3"> - <property name="name"> - <cstring>cf12</cstring> - </property> - <property name="sizePolicy"> - <sizepolicy> - <hsizetype>5</hsizetype> - <vsizetype>0</vsizetype> - <horstretch>0</horstretch> - <verstretch>0</verstretch> - </sizepolicy> - </property> - <property name="maximumSize"> - <size> - <width>30</width> - <height>32767</height> - </size> - </property> - <property name="text"> - <string>12</string> - </property> - <property name="toggleButton"> - <bool>true</bool> - </property> - </widget> - <widget class="QPushButton" row="0" column="3"> - <property name="name"> - <cstring>cf4</cstring> - </property> - <property name="sizePolicy"> - <sizepolicy> - <hsizetype>5</hsizetype> - <vsizetype>0</vsizetype> - <horstretch>0</horstretch> - <verstretch>0</verstretch> - </sizepolicy> - </property> - <property name="minimumSize"> - <size> - <width>25</width> - <height>0</height> - </size> - </property> - <property name="maximumSize"> - <size> - <width>30</width> - <height>32767</height> - </size> - </property> - <property name="text"> - <string>4</string> - </property> - <property name="toggleButton"> - <bool>true</bool> - </property> - </widget> - <widget class="QPushButton" row="0" column="1"> - <property name="name"> - <cstring>cf2</cstring> - </property> - <property name="sizePolicy"> - <sizepolicy> - <hsizetype>5</hsizetype> - <vsizetype>0</vsizetype> - <horstretch>0</horstretch> - <verstretch>0</verstretch> - </sizepolicy> - </property> - <property name="minimumSize"> - <size> - <width>25</width> - <height>0</height> - </size> - </property> - <property name="maximumSize"> - <size> - <width>30</width> - <height>32767</height> - </size> - </property> - <property name="text"> - <string>2</string> - </property> - <property name="toggleButton"> - <bool>true</bool> - </property> - </widget> - <widget class="QPushButton" row="2" column="0"> - <property name="name"> - <cstring>cf9</cstring> - </property> - <property name="sizePolicy"> - <sizepolicy> - <hsizetype>0</hsizetype> - <vsizetype>0</vsizetype> - <horstretch>0</horstretch> - <verstretch>0</verstretch> - </sizepolicy> - </property> - <property name="maximumSize"> - <size> - <width>30</width> - <height>32767</height> - </size> - </property> - <property name="text"> - <string>9</string> - </property> - <property name="toggleButton"> - <bool>true</bool> - </property> - </widget> - <widget class="QPushButton" row="1" column="3"> - <property name="name"> - <cstring>cf8</cstring> - </property> - <property name="sizePolicy"> - <sizepolicy> - <hsizetype>5</hsizetype> - <vsizetype>5</vsizetype> - <horstretch>0</horstretch> - <verstretch>0</verstretch> - </sizepolicy> - </property> - <property name="maximumSize"> - <size> - <width>30</width> - <height>32767</height> - </size> - </property> - <property name="text"> - <string>8</string> - </property> - <property name="toggleButton"> - <bool>true</bool> - </property> - </widget> - <widget class="QPushButton" row="0" column="2"> - <property name="name"> - <cstring>cf3</cstring> - </property> - <property name="sizePolicy"> - <sizepolicy> - <hsizetype>5</hsizetype> - <vsizetype>0</vsizetype> - <horstretch>0</horstretch> - <verstretch>0</verstretch> - </sizepolicy> - </property> - <property name="minimumSize"> - <size> - <width>25</width> - <height>0</height> - </size> - </property> - <property name="maximumSize"> - <size> - <width>30</width> - <height>32767</height> - </size> - </property> - <property name="text"> - <string>3</string> - </property> - <property name="toggleButton"> - <bool>true</bool> - </property> - </widget> - <widget class="QPushButton" row="3" column="0"> - <property name="name"> - <cstring>cf13</cstring> - </property> - <property name="sizePolicy"> - <sizepolicy> - <hsizetype>0</hsizetype> - <vsizetype>0</vsizetype> - <horstretch>0</horstretch> - <verstretch>0</verstretch> - </sizepolicy> - </property> - <property name="maximumSize"> - <size> - <width>30</width> - <height>32767</height> - </size> - </property> - <property name="text"> - <string>13</string> - </property> - <property name="toggleButton"> - <bool>true</bool> - </property> - </widget> - <widget class="QPushButton" row="3" column="2"> - <property name="name"> - <cstring>cf15</cstring> - </property> - <property name="sizePolicy"> - <sizepolicy> - <hsizetype>0</hsizetype> - <vsizetype>0</vsizetype> - <horstretch>0</horstretch> - <verstretch>0</verstretch> - </sizepolicy> - </property> - <property name="maximumSize"> - <size> - <width>30</width> - <height>32767</height> - </size> - </property> - <property name="text"> - <string>15</string> - </property> - <property name="toggleButton"> - <bool>true</bool> - </property> - </widget> - <widget class="QPushButton" row="3" column="3"> - <property name="name"> - <cstring>cf16</cstring> - </property> - <property name="sizePolicy"> - <sizepolicy> - <hsizetype>0</hsizetype> - <vsizetype>0</vsizetype> - <horstretch>0</horstretch> - <verstretch>0</verstretch> - </sizepolicy> - </property> - <property name="maximumSize"> - <size> - <width>30</width> - <height>32767</height> - </size> - </property> - <property name="text"> - <string>16</string> - </property> - <property name="toggleButton"> - <bool>true</bool> - </property> - </widget> - <widget class="QPushButton" row="1" column="2"> - <property name="name"> - <cstring>cf7</cstring> - </property> - <property name="sizePolicy"> - <sizepolicy> - <hsizetype>5</hsizetype> - <vsizetype>5</vsizetype> - <horstretch>0</horstretch> - <verstretch>0</verstretch> - </sizepolicy> - </property> - <property name="maximumSize"> - <size> - <width>30</width> - <height>32767</height> - </size> - </property> - <property name="text"> - <string>7</string> - </property> - <property name="toggleButton"> - <bool>true</bool> - </property> - </widget> - <widget class="QPushButton" row="2" column="2"> - <property name="name"> - <cstring>cf11</cstring> - </property> - <property name="sizePolicy"> - <sizepolicy> - <hsizetype>5</hsizetype> - <vsizetype>0</vsizetype> - <horstretch>0</horstretch> - <verstretch>0</verstretch> - </sizepolicy> - </property> - <property name="maximumSize"> - <size> - <width>30</width> - <height>32767</height> - </size> - </property> - <property name="text"> - <string>11</string> - </property> - <property name="toggleButton"> - <bool>true</bool> - </property> - </widget> - <widget class="QPushButton" row="1" column="0"> - <property name="name"> - <cstring>cf5</cstring> - </property> - <property name="sizePolicy"> - <sizepolicy> - <hsizetype>0</hsizetype> - <vsizetype>0</vsizetype> - <horstretch>0</horstretch> - <verstretch>0</verstretch> - </sizepolicy> - </property> - <property name="maximumSize"> - <size> - <width>30</width> - <height>32767</height> - </size> - </property> - <property name="text"> - <string>5</string> - </property> - <property name="toggleButton"> - <bool>true</bool> - </property> - </widget> - <widget class="QPushButton" row="0" column="0"> - <property name="name"> - <cstring>cf1</cstring> - </property> - <property name="sizePolicy"> - <sizepolicy> - <hsizetype>0</hsizetype> - <vsizetype>0</vsizetype> - <horstretch>0</horstretch> - <verstretch>0</verstretch> - </sizepolicy> - </property> - <property name="minimumSize"> - <size> - <width>25</width> - <height>0</height> - </size> - </property> - <property name="maximumSize"> - <size> - <width>30</width> - <height>32767</height> - </size> - </property> - <property name="text"> - <string>1</string> - </property> - <property name="toggleButton"> - <bool>true</bool> - </property> - </widget> - </grid> - </widget> - </grid> -</widget> -<customwidgets> - <customwidget> - <class>CtrlComboBox</class> - <header location="global">ctrlcombo.h</header> - <sizehint> - <width>50</width> - <height>20</height> - </sizehint> - <container>0</container> - <sizepolicy> - <hordata>5</hordata> - <verdata>5</verdata> - <horstretch>0</horstretch> - <verstretch>0</verstretch> - </sizepolicy> - <pixmap>image0</pixmap> - <signal>activated(int index)</signal> - <signal>activated(const QString&)</signal> - </customwidget> -</customwidgets> -<images> - <image name="image0"> - <data format="XPM.GZ" length="646">789c6dd2c10ac2300c00d07bbf2234b7229d1be245fc04c5a3201e4615f430059d0711ff5ddb2e6bb236ec90eed134cb5a19d8ef36602af5ecdbfeeac05dda0798d3abebde87e3faa374d3807fa0d633a52d38d8de6f679fe33fc776e196f53cd010188256a3600a292882096246517815ca99884606e18044a3a40d91824820924265a7923a2e8bcd05f33db1173e002913175f2a6be6d3294871a2d95fa00e8a94ee017b69d339d90df1e77c57ea072ede6758</data> - </image> -</images> -<tabstops> - <tabstop>rf1</tabstop> - <tabstop>rf2</tabstop> - <tabstop>rf3</tabstop> - <tabstop>rf4</tabstop> - <tabstop>rf5</tabstop> - <tabstop>rf6</tabstop> - <tabstop>rf7</tabstop> - <tabstop>tf1</tabstop> - <tabstop>tf2</tabstop> - <tabstop>tf3</tabstop> - <tabstop>tf4</tabstop> - <tabstop>tf5</tabstop> - <tabstop>tf6</tabstop> - <tabstop>tf7</tabstop> - <tabstop>cf1</tabstop> - <tabstop>cf2</tabstop> - <tabstop>cf3</tabstop> - <tabstop>cf4</tabstop> - <tabstop>cf5</tabstop> - <tabstop>cf6</tabstop> - <tabstop>cf7</tabstop> - <tabstop>cf8</tabstop> - <tabstop>cf9</tabstop> - <tabstop>cf10</tabstop> - <tabstop>cf11</tabstop> - <tabstop>cf12</tabstop> - <tabstop>cf13</tabstop> - <tabstop>cf14</tabstop> - <tabstop>cf15</tabstop> - <tabstop>cf16</tabstop> -</tabstops> -<layoutdefaults spacing="6" margin="11"/> -<includehints> - <includehint>ctrlcombo.h</includehint> -</includehints> -</UI> +<?xml version="1.0" encoding="UTF-8"?> +<ui version="4.0"> + <class>MidiFilterConfigBase</class> + <widget class="QDialog" name="MidiFilterConfigBase"> + <property name="geometry"> + <rect> + <x>0</x> + <y>0</y> + <width>348</width> + <height>431</height> + </rect> + </property> + <property name="sizePolicy"> + <sizepolicy hsizetype="MinimumExpanding" vsizetype="Preferred"> + <horstretch>0</horstretch> + <verstretch>0</verstretch> + </sizepolicy> + </property> + <property name="windowTitle"> + <string>MusE: Midi Input Filter</string> + </property> + <layout class="QGridLayout"> + <property name="margin"> + <number>11</number> + </property> + <property name="spacing"> + <number>6</number> + </property> + <item row="0" column="0"> + <widget class="QGroupBox" name="GroupBoxx"> + <property name="sizePolicy"> + <sizepolicy hsizetype="MinimumExpanding" vsizetype="Preferred"> + <horstretch>0</horstretch> + <verstretch>0</verstretch> + </sizepolicy> + </property> + <property name="title"> + <string>Record Filter</string> + </property> + <layout class="QVBoxLayout"> + <property name="spacing"> + <number>6</number> + </property> + <property name="margin"> + <number>11</number> + </property> + <item> + <widget class="QCheckBox" name="rf1"> + <property name="sizePolicy"> + <sizepolicy hsizetype="Expanding" vsizetype="Fixed"> + <horstretch>0</horstretch> + <verstretch>0</verstretch> + </sizepolicy> + </property> + <property name="text"> + <string>Note On</string> + </property> + </widget> + </item> + <item> + <widget class="QCheckBox" name="rf2"> + <property name="sizePolicy"> + <sizepolicy hsizetype="Expanding" vsizetype="Fixed"> + <horstretch>0</horstretch> + <verstretch>0</verstretch> + </sizepolicy> + </property> + <property name="text"> + <string>Poly Pressure</string> + </property> + </widget> + </item> + <item> + <widget class="QCheckBox" name="rf3"> + <property name="sizePolicy"> + <sizepolicy hsizetype="Expanding" vsizetype="Fixed"> + <horstretch>0</horstretch> + <verstretch>0</verstretch> + </sizepolicy> + </property> + <property name="text"> + <string>Controller</string> + </property> + </widget> + </item> + <item> + <widget class="QCheckBox" name="rf4"> + <property name="sizePolicy"> + <sizepolicy hsizetype="Expanding" vsizetype="Fixed"> + <horstretch>0</horstretch> + <verstretch>0</verstretch> + </sizepolicy> + </property> + <property name="text"> + <string>Program Change</string> + </property> + </widget> + </item> + <item> + <widget class="QCheckBox" name="rf5"> + <property name="sizePolicy"> + <sizepolicy hsizetype="Expanding" vsizetype="Fixed"> + <horstretch>0</horstretch> + <verstretch>0</verstretch> + </sizepolicy> + </property> + <property name="text"> + <string>After Touch</string> + </property> + </widget> + </item> + <item> + <widget class="QCheckBox" name="rf6"> + <property name="sizePolicy"> + <sizepolicy hsizetype="Expanding" vsizetype="Fixed"> + <horstretch>0</horstretch> + <verstretch>0</verstretch> + </sizepolicy> + </property> + <property name="text"> + <string>Pitch Bend</string> + </property> + </widget> + </item> + <item> + <widget class="QCheckBox" name="rf7"> + <property name="sizePolicy"> + <sizepolicy hsizetype="Expanding" vsizetype="Fixed"> + <horstretch>0</horstretch> + <verstretch>0</verstretch> + </sizepolicy> + </property> + <property name="text"> + <string>Sysex</string> + </property> + </widget> + </item> + </layout> + </widget> + </item> + <item row="0" column="1"> + <widget class="QGroupBox" name="GroupBox2"> + <property name="sizePolicy"> + <sizepolicy hsizetype="Expanding" vsizetype="Preferred"> + <horstretch>0</horstretch> + <verstretch>0</verstretch> + </sizepolicy> + </property> + <property name="title"> + <string>Thru Filter</string> + </property> + <layout class="QVBoxLayout"> + <property name="spacing"> + <number>6</number> + </property> + <property name="margin"> + <number>11</number> + </property> + <item> + <widget class="QCheckBox" name="tf1"> + <property name="sizePolicy"> + <sizepolicy hsizetype="Preferred" vsizetype="Preferred"> + <horstretch>0</horstretch> + <verstretch>0</verstretch> + </sizepolicy> + </property> + <property name="text"> + <string>Note On</string> + </property> + </widget> + </item> + <item> + <widget class="QCheckBox" name="tf2"> + <property name="sizePolicy"> + <sizepolicy hsizetype="Expanding" vsizetype="Fixed"> + <horstretch>0</horstretch> + <verstretch>0</verstretch> + </sizepolicy> + </property> + <property name="text"> + <string>Poly Pressure</string> + </property> + </widget> + </item> + <item> + <widget class="QCheckBox" name="tf3"> + <property name="sizePolicy"> + <sizepolicy hsizetype="Expanding" vsizetype="Fixed"> + <horstretch>0</horstretch> + <verstretch>0</verstretch> + </sizepolicy> + </property> + <property name="text"> + <string>Controller</string> + </property> + </widget> + </item> + <item> + <widget class="QCheckBox" name="tf4"> + <property name="sizePolicy"> + <sizepolicy hsizetype="Minimum" vsizetype="Preferred"> + <horstretch>0</horstretch> + <verstretch>0</verstretch> + </sizepolicy> + </property> + <property name="text"> + <string>Program Change</string> + </property> + </widget> + </item> + <item> + <widget class="QCheckBox" name="tf5"> + <property name="sizePolicy"> + <sizepolicy hsizetype="Expanding" vsizetype="Fixed"> + <horstretch>0</horstretch> + <verstretch>0</verstretch> + </sizepolicy> + </property> + <property name="text"> + <string>After Touch</string> + </property> + </widget> + </item> + <item> + <widget class="QCheckBox" name="tf6"> + <property name="sizePolicy"> + <sizepolicy hsizetype="Expanding" vsizetype="Fixed"> + <horstretch>0</horstretch> + <verstretch>0</verstretch> + </sizepolicy> + </property> + <property name="text"> + <string>Pitch Bend</string> + </property> + </widget> + </item> + <item> + <widget class="QCheckBox" name="tf7"> + <property name="sizePolicy"> + <sizepolicy hsizetype="Expanding" vsizetype="Fixed"> + <horstretch>0</horstretch> + <verstretch>0</verstretch> + </sizepolicy> + </property> + <property name="text"> + <string>Sysex</string> + </property> + </widget> + </item> + </layout> + </widget> + </item> + <item row="1" column="1"> + <widget class="QGroupBox" name="GroupBox4"> + <property name="sizePolicy"> + <sizepolicy hsizetype="Expanding" vsizetype="Expanding"> + <horstretch>0</horstretch> + <verstretch>0</verstretch> + </sizepolicy> + </property> + <property name="title"> + <string>Controller Filter</string> + </property> + <layout class="QVBoxLayout"> + <property name="spacing"> + <number>6</number> + </property> + <property name="margin"> + <number>11</number> + </property> + <item> + <widget class="CtrlComboBox" name="cb1" native="true"/> + </item> + <item> + <widget class="CtrlComboBox" name="cb2" native="true"/> + </item> + <item> + <widget class="CtrlComboBox" name="cb3" native="true"/> + </item> + <item> + <widget class="CtrlComboBox" name="cb4" native="true"/> + </item> + </layout> + </widget> + </item> + <item row="1" column="0"> + <widget class="QGroupBox" name="ButtonGroup1"> + <property name="sizePolicy"> + <sizepolicy hsizetype="Preferred" vsizetype="Expanding"> + <horstretch>0</horstretch> + <verstretch>0</verstretch> + </sizepolicy> + </property> + <property name="title"> + <string>Channel Filter</string> + </property> + <layout class="QGridLayout"> + <property name="margin"> + <number>11</number> + </property> + <property name="spacing"> + <number>3</number> + </property> + <item row="3" column="1"> + <widget class="QPushButton" name="cf14"> + <property name="sizePolicy"> + <sizepolicy hsizetype="Fixed" vsizetype="Fixed"> + <horstretch>0</horstretch> + <verstretch>0</verstretch> + </sizepolicy> + </property> + <property name="maximumSize"> + <size> + <width>30</width> + <height>32767</height> + </size> + </property> + <property name="text"> + <string>14</string> + </property> + <property name="checkable"> + <bool>true</bool> + </property> + </widget> + </item> + <item row="2" column="1"> + <widget class="QPushButton" name="cf10"> + <property name="sizePolicy"> + <sizepolicy hsizetype="Preferred" vsizetype="Fixed"> + <horstretch>0</horstretch> + <verstretch>0</verstretch> + </sizepolicy> + </property> + <property name="maximumSize"> + <size> + <width>30</width> + <height>32767</height> + </size> + </property> + <property name="text"> + <string>10</string> + </property> + <property name="checkable"> + <bool>true</bool> + </property> + </widget> + </item> + <item row="1" column="1"> + <widget class="QPushButton" name="cf6"> + <property name="sizePolicy"> + <sizepolicy hsizetype="Preferred" vsizetype="Preferred"> + <horstretch>0</horstretch> + <verstretch>0</verstretch> + </sizepolicy> + </property> + <property name="maximumSize"> + <size> + <width>30</width> + <height>32767</height> + </size> + </property> + <property name="text"> + <string>6</string> + </property> + <property name="checkable"> + <bool>true</bool> + </property> + </widget> + </item> + <item row="2" column="3"> + <widget class="QPushButton" name="cf12"> + <property name="sizePolicy"> + <sizepolicy hsizetype="Preferred" vsizetype="Fixed"> + <horstretch>0</horstretch> + <verstretch>0</verstretch> + </sizepolicy> + </property> + <property name="maximumSize"> + <size> + <width>30</width> + <height>32767</height> + </size> + </property> + <property name="text"> + <string>12</string> + </property> + <property name="checkable"> + <bool>true</bool> + </property> + </widget> + </item> + <item row="0" column="3"> + <widget class="QPushButton" name="cf4"> + <property name="sizePolicy"> + <sizepolicy hsizetype="Preferred" vsizetype="Fixed"> + <horstretch>0</horstretch> + <verstretch>0</verstretch> + </sizepolicy> + </property> + <property name="minimumSize"> + <size> + <width>25</width> + <height>0</height> + </size> + </property> + <property name="maximumSize"> + <size> + <width>30</width> + <height>32767</height> + </size> + </property> + <property name="text"> + <string>4</string> + </property> + <property name="checkable"> + <bool>true</bool> + </property> + </widget> + </item> + <item row="0" column="1"> + <widget class="QPushButton" name="cf2"> + <property name="sizePolicy"> + <sizepolicy hsizetype="Preferred" vsizetype="Fixed"> + <horstretch>0</horstretch> + <verstretch>0</verstretch> + </sizepolicy> + </property> + <property name="minimumSize"> + <size> + <width>25</width> + <height>0</height> + </size> + </property> + <property name="maximumSize"> + <size> + <width>30</width> + <height>32767</height> + </size> + </property> + <property name="text"> + <string>2</string> + </property> + <property name="checkable"> + <bool>true</bool> + </property> + </widget> + </item> + <item row="2" column="0"> + <widget class="QPushButton" name="cf9"> + <property name="sizePolicy"> + <sizepolicy hsizetype="Fixed" vsizetype="Fixed"> + <horstretch>0</horstretch> + <verstretch>0</verstretch> + </sizepolicy> + </property> + <property name="maximumSize"> + <size> + <width>30</width> + <height>32767</height> + </size> + </property> + <property name="text"> + <string>9</string> + </property> + <property name="checkable"> + <bool>true</bool> + </property> + </widget> + </item> + <item row="1" column="3"> + <widget class="QPushButton" name="cf8"> + <property name="sizePolicy"> + <sizepolicy hsizetype="Preferred" vsizetype="Preferred"> + <horstretch>0</horstretch> + <verstretch>0</verstretch> + </sizepolicy> + </property> + <property name="maximumSize"> + <size> + <width>30</width> + <height>32767</height> + </size> + </property> + <property name="text"> + <string>8</string> + </property> + <property name="checkable"> + <bool>true</bool> + </property> + </widget> + </item> + <item row="0" column="2"> + <widget class="QPushButton" name="cf3"> + <property name="sizePolicy"> + <sizepolicy hsizetype="Preferred" vsizetype="Fixed"> + <horstretch>0</horstretch> + <verstretch>0</verstretch> + </sizepolicy> + </property> + <property name="minimumSize"> + <size> + <width>25</width> + <height>0</height> + </size> + </property> + <property name="maximumSize"> + <size> + <width>30</width> + <height>32767</height> + </size> + </property> + <property name="text"> + <string>3</string> + </property> + <property name="checkable"> + <bool>true</bool> + </property> + </widget> + </item> + <item row="3" column="0"> + <widget class="QPushButton" name="cf13"> + <property name="sizePolicy"> + <sizepolicy hsizetype="Fixed" vsizetype="Fixed"> + <horstretch>0</horstretch> + <verstretch>0</verstretch> + </sizepolicy> + </property> + <property name="maximumSize"> + <size> + <width>30</width> + <height>32767</height> + </size> + </property> + <property name="text"> + <string>13</string> + </property> + <property name="checkable"> + <bool>true</bool> + </property> + </widget> + </item> + <item row="3" column="2"> + <widget class="QPushButton" name="cf15"> + <property name="sizePolicy"> + <sizepolicy hsizetype="Fixed" vsizetype="Fixed"> + <horstretch>0</horstretch> + <verstretch>0</verstretch> + </sizepolicy> + </property> + <property name="maximumSize"> + <size> + <width>30</width> + <height>32767</height> + </size> + </property> + <property name="text"> + <string>15</string> + </property> + <property name="checkable"> + <bool>true</bool> + </property> + </widget> + </item> + <item row="3" column="3"> + <widget class="QPushButton" name="cf16"> + <property name="sizePolicy"> + <sizepolicy hsizetype="Fixed" vsizetype="Fixed"> + <horstretch>0</horstretch> + <verstretch>0</verstretch> + </sizepolicy> + </property> + <property name="maximumSize"> + <size> + <width>30</width> + <height>32767</height> + </size> + </property> + <property name="text"> + <string>16</string> + </property> + <property name="checkable"> + <bool>true</bool> + </property> + </widget> + </item> + <item row="1" column="2"> + <widget class="QPushButton" name="cf7"> + <property name="sizePolicy"> + <sizepolicy hsizetype="Preferred" vsizetype="Preferred"> + <horstretch>0</horstretch> + <verstretch>0</verstretch> + </sizepolicy> + </property> + <property name="maximumSize"> + <size> + <width>30</width> + <height>32767</height> + </size> + </property> + <property name="text"> + <string>7</string> + </property> + <property name="checkable"> + <bool>true</bool> + </property> + </widget> + </item> + <item row="2" column="2"> + <widget class="QPushButton" name="cf11"> + <property name="sizePolicy"> + <sizepolicy hsizetype="Preferred" vsizetype="Fixed"> + <horstretch>0</horstretch> + <verstretch>0</verstretch> + </sizepolicy> + </property> + <property name="maximumSize"> + <size> + <width>30</width> + <height>32767</height> + </size> + </property> + <property name="text"> + <string>11</string> + </property> + <property name="checkable"> + <bool>true</bool> + </property> + </widget> + </item> + <item row="1" column="0"> + <widget class="QPushButton" name="cf5"> + <property name="sizePolicy"> + <sizepolicy hsizetype="Fixed" vsizetype="Fixed"> + <horstretch>0</horstretch> + <verstretch>0</verstretch> + </sizepolicy> + </property> + <property name="maximumSize"> + <size> + <width>30</width> + <height>32767</height> + </size> + </property> + <property name="text"> + <string>5</string> + </property> + <property name="checkable"> + <bool>true</bool> + </property> + </widget> + </item> + <item row="0" column="0"> + <widget class="QPushButton" name="cf1"> + <property name="sizePolicy"> + <sizepolicy hsizetype="Fixed" vsizetype="Fixed"> + <horstretch>0</horstretch> + <verstretch>0</verstretch> + </sizepolicy> + </property> + <property name="minimumSize"> + <size> + <width>25</width> + <height>0</height> + </size> + </property> + <property name="maximumSize"> + <size> + <width>30</width> + <height>32767</height> + </size> + </property> + <property name="text"> + <string>1</string> + </property> + <property name="checkable"> + <bool>true</bool> + </property> + </widget> + </item> + </layout> + </widget> + </item> + </layout> + </widget> + <layoutdefault spacing="6" margin="11"/> + <customwidgets> + <customwidget> + <class>CtrlComboBox</class> + <extends>QWidget</extends> + <header location="global">ctrlcombo.h</header> + </customwidget> + </customwidgets> + <tabstops> + <tabstop>rf1</tabstop> + <tabstop>rf2</tabstop> + <tabstop>rf3</tabstop> + <tabstop>rf4</tabstop> + <tabstop>rf5</tabstop> + <tabstop>rf6</tabstop> + <tabstop>rf7</tabstop> + <tabstop>tf1</tabstop> + <tabstop>tf2</tabstop> + <tabstop>tf3</tabstop> + <tabstop>tf4</tabstop> + <tabstop>tf5</tabstop> + <tabstop>tf6</tabstop> + <tabstop>tf7</tabstop> + <tabstop>cf1</tabstop> + <tabstop>cf2</tabstop> + <tabstop>cf3</tabstop> + <tabstop>cf4</tabstop> + <tabstop>cf5</tabstop> + <tabstop>cf6</tabstop> + <tabstop>cf7</tabstop> + <tabstop>cf8</tabstop> + <tabstop>cf9</tabstop> + <tabstop>cf10</tabstop> + <tabstop>cf11</tabstop> + <tabstop>cf12</tabstop> + <tabstop>cf13</tabstop> + <tabstop>cf14</tabstop> + <tabstop>cf15</tabstop> + <tabstop>cf16</tabstop> + </tabstops> + <includes> + <include location="local">ctrlcombo.h</include> + </includes> + <resources/> + <connections/> +</ui> diff --git a/muse2/muse/mplugins/midifilterimpl.cpp b/muse2/muse/mplugins/midifilterimpl.cpp index 56d5caf5..d02296ba 100644 --- a/muse2/muse/mplugins/midifilterimpl.cpp +++ b/muse2/muse/mplugins/midifilterimpl.cpp @@ -9,9 +9,7 @@ #include "midifilterimpl.h" #include "ctrlcombo.h" -#include <qpushbutton.h> -#include <qcheckbox.h> -//Added by qt3to4: +#include <QDialog> #include <QCloseEvent> //--------------------------------------------------------- @@ -40,8 +38,8 @@ void MidiFilterConfig::setCtrl4(int n) // MidiFilterConfig //--------------------------------------------------------- -MidiFilterConfig::MidiFilterConfig(QWidget* parent, const char* name) - : MidiFilterConfigBase(parent, name) +MidiFilterConfig::MidiFilterConfig(QDialog* parent) + : MidiFilterConfigBaseWidget(parent) { cb1->setCurrentItem(midiFilterCtrl1); cb2->setCurrentItem(midiFilterCtrl2); diff --git a/muse2/muse/mplugins/midifilterimpl.h b/muse2/muse/mplugins/midifilterimpl.h index 4ab722c1..aec17ada 100644 --- a/muse2/muse/mplugins/midifilterimpl.h +++ b/muse2/muse/mplugins/midifilterimpl.h @@ -10,15 +10,28 @@ #define __MIDIFILTERIMP_H__ #include "globals.h" -#include "midifilter.h" -//Added by qt3to4: -#include <QCloseEvent> +#include "ui_midifilter.h" + +class QCloseEvent; + +//--------------------------------------------------------- +// MidiFilterConfigBaseWidget +// Wrapper around Ui::MidiFilterConfigBase +//--------------------------------------------------------- + +class MidiFilterConfigBaseWidget : public QDialog, public Ui::MidiFilterConfigBase +{ + Q_OBJECT + + public: + MidiFilterConfigBaseWidget(QDialog *parent = 0) : QDialog(parent) { setupUi(this); } +}; //--------------------------------------------------------- // MidiFilterConfig //--------------------------------------------------------- -class MidiFilterConfig : public MidiFilterConfigBase { +class MidiFilterConfig : public MidiFilterConfigBaseWidget { Q_OBJECT void rChanged(bool f, int val) { @@ -84,7 +97,7 @@ class MidiFilterConfig : public MidiFilterConfigBase { void setCtrl4(int); public: - MidiFilterConfig(QWidget* parent=0, const char* name=0); + MidiFilterConfig(QDialog* parent=0); }; #endif |