diff options
author | Orcan Ogetbil <oget.fedora@gmail.com> | 2010-11-21 22:41:17 +0000 |
---|---|---|
committer | Orcan Ogetbil <oget.fedora@gmail.com> | 2010-11-21 22:41:17 +0000 |
commit | 147b944d89c06c9cfe28d39ff2ba820c0cc4b83f (patch) | |
tree | 8bc96133f42aeb07eafc1a6bfa4ad8a5803cfe1c | |
parent | cfb6f6d2d233f77fc6bea846486b2ab54fc32e2d (diff) |
port .ui widgets to Qt4
-rw-r--r-- | muse2/ChangeLog | 3 | ||||
-rw-r--r-- | muse2/muse/cliplist/cliplist.cpp | 36 | ||||
-rw-r--r-- | muse2/muse/cliplist/cliplist.h | 28 | ||||
-rw-r--r-- | muse2/muse/conf.cpp | 5 | ||||
-rw-r--r-- | muse2/muse/conf.h | 8 | ||||
-rw-r--r-- | muse2/muse/transpose.cpp | 6 | ||||
-rw-r--r-- | muse2/muse/widgets/CMakeLists.txt | 4 | ||||
-rw-r--r-- | muse2/muse/widgets/cliplisteditorbase.ui | 311 | ||||
-rw-r--r-- | muse2/muse/widgets/configmidifilebase.ui | 466 |
9 files changed, 427 insertions, 440 deletions
diff --git a/muse2/ChangeLog b/muse2/ChangeLog index dbb8a4f9..39197f03 100644 --- a/muse2/ChangeLog +++ b/muse2/ChangeLog @@ -1,7 +1,8 @@ 21.11.2010 - All menus now use QActions. Some shortcuts are left to be assigned correctly (Orcan) - Clean up: Remove submenu integer ids from the MusE class in favor of QActions (Orcan) - - Ported the following .ui widgets to Qt4: didyouknow, transposebase (Orcan) + - Ported the following .ui widgets to Qt4: didyouknow, transposebase, cliplist, + configmidifilebase (Orcan) 20.11.2010 - Remove most wrapper classes around .ui widgets. I was wrapping them too much. Some widgets (e.g. songinfo) still need wrappers though. (Orcan) diff --git a/muse2/muse/cliplist/cliplist.cpp b/muse2/muse/cliplist/cliplist.cpp index 30b269d3..256a3f9c 100644 --- a/muse2/muse/cliplist/cliplist.cpp +++ b/muse2/muse/cliplist/cliplist.cpp @@ -12,15 +12,11 @@ #include "wave.h" #include "xml.h" #include "posedit.h" -#include "cliplisteditorbase.h" - -#include <q3listview.h> -#include <qlayout.h> -#include <q3groupbox.h> -#include <qlabel.h> -#include <qstyle.h> -//Added by qt3to4: +#include "ui_cliplisteditorbase.h" + #include <QCloseEvent> +#include <QDialog> +#include <QStyle> extern int mtcType; enum { COL_NAME=0, COL_REFS, COL_POS, COL_LEN }; @@ -29,18 +25,18 @@ enum { COL_NAME=0, COL_REFS, COL_POS, COL_LEN }; // ClipItem //--------------------------------------------------------- -class ClipItem : public Q3ListViewItem { +class ClipItem : public QTreeWidgetItem { SndFileR _wf; virtual QString text(int) const; public: - ClipItem(Q3ListView*, const SndFileR&); + ClipItem(QTreeWidget*, const SndFileR&); SndFileR* wf() { return &_wf; } }; -ClipItem::ClipItem(Q3ListView* parent, const SndFileR& w) - : Q3ListViewItem(parent), _wf(w) +ClipItem::ClipItem(QTreeWidget* parent, const SndFileR& w) + : QTreeWidgetItem(parent), _wf(w) { } @@ -108,21 +104,21 @@ ClipListEdit::ClipListEdit() //setAttribute(Qt::WA_DeleteOnClose); setCaption(tr("MusE: Clip List Editor")); - editor = new ClipListEditorBase(this, "edit"); + editor = new ClipListEditorBaseWidget; setCentralWidget(editor); - editor->view->setColumnAlignment(COL_REFS, Qt::AlignRight); - + //editor->view->setColumnAlignment(COL_REFS, Qt::AlignRight); + QFontMetrics fm(editor->view->font()); int fw = style()->pixelMetric(QStyle::PM_DefaultFrameWidth,0, this); // ddskrjo 0 int w = 2 + fm.width('9') * 9 + fm.width(':') * 3 + fw * 4; - editor->view->setColumnAlignment(COL_POS, Qt::AlignRight); + //editor->view->setColumnAlignment(COL_POS, Qt::AlignRight); editor->view->setColumnWidth(COL_POS, w); - editor->view->setColumnAlignment(COL_LEN, Qt::AlignRight); + //editor->view->setColumnAlignment(COL_LEN, Qt::AlignRight); editor->view->setColumnWidth(COL_LEN, w); - connect(editor->view, SIGNAL(selectionChanged()), SLOT(clipSelectionChanged())); - connect(editor->view, SIGNAL(clicked(Q3ListViewItem*)), SLOT(clicked(Q3ListViewItem*))); + connect(editor->view, SIGNAL(itemSelectionChanged()), SLOT(clipSelectionChanged())); + connect(editor->view, SIGNAL(itemClicked(QTreeWidgetItem*, int)), SLOT(clicked(QTreeWidgetItem*, int))); connect(song, SIGNAL(songChanged(int)), SLOT(songChanged(int))); connect(editor->start, SIGNAL(valueChanged(const Pos&)), SLOT(startChanged(const Pos&))); @@ -254,7 +250,7 @@ void ClipListEdit::clipSelectionChanged() // clicked //--------------------------------------------------------- -void ClipListEdit::clicked(Q3ListViewItem*) +void ClipListEdit::clicked(QTreeWidgetItem*, int) { // printf("clicked\n"); } diff --git a/muse2/muse/cliplist/cliplist.h b/muse2/muse/cliplist/cliplist.h index 3f13d586..156bc230 100644 --- a/muse2/muse/cliplist/cliplist.h +++ b/muse2/muse/cliplist/cliplist.h @@ -11,14 +11,28 @@ #include "../cobject.h" #include "event.h" -//Added by qt3to4: -#include <QCloseEvent> -class Q3ListView; -class Q3ListViewItem; +#include "ui_cliplisteditorbase.h" + +class QCloseEvent; +class QDialog; +class QTreeWidgetItem; + class Xml; class Pos; -class ClipListEditorBase; + +//--------------------------------------------------------- +// ClipListEditorBaseWidget +// Wrapper around Ui::ClipListEditorBase +//--------------------------------------------------------- + +class ClipListEditorBaseWidget : public QWidget, public Ui::ClipListEditorBase +{ + Q_OBJECT + + public: + ClipListEditorBaseWidget(QWidget *parent = 0) : QWidget(parent) { setupUi(this); } +}; //--------------------------------------------------------- // ClipListEdit @@ -26,7 +40,7 @@ class ClipListEditorBase; class ClipListEdit : public TopWin { Q_OBJECT - ClipListEditorBase* editor; + ClipListEditorBaseWidget* editor; virtual void closeEvent(QCloseEvent*); void updateList(); @@ -36,7 +50,7 @@ class ClipListEdit : public TopWin { void startChanged(const Pos&); void lenChanged(const Pos&); void clipSelectionChanged(); - void clicked(Q3ListViewItem*); + void clicked(QTreeWidgetItem*, int); signals: void deleted(unsigned long); diff --git a/muse2/muse/conf.cpp b/muse2/muse/conf.cpp index 53fa3deb..33631211 100644 --- a/muse2/muse/conf.cpp +++ b/muse2/muse/conf.cpp @@ -1340,9 +1340,10 @@ void MusE::configMidiFile() // config properties of exported midi files //--------------------------------------------------------- -MidiFileConfig::MidiFileConfig() - : ConfigMidiFileBase() +MidiFileConfig::MidiFileConfig(QWidget* parent) + : QDialog(parent), ConfigMidiFileBase() { + setupUi(this); connect(buttonOk, SIGNAL(clicked()), SLOT(okClicked())); connect(buttonCancel, SIGNAL(clicked()), SLOT(cancelClicked())); } diff --git a/muse2/muse/conf.h b/muse2/muse/conf.h index 285f5e98..656be4a7 100644 --- a/muse2/muse/conf.h +++ b/muse2/muse/conf.h @@ -9,9 +9,9 @@ #ifndef __CONF_H__ #define __CONF_H__ -#include <q3groupbox.h> -#include "configmidifilebase.h" +#include "ui_configmidifilebase.h" +class QDialog; class QLineEdit; //--------------------------------------------------------- @@ -19,7 +19,7 @@ class QLineEdit; // config properties of exported midi files //--------------------------------------------------------- -class MidiFileConfig : public ConfigMidiFileBase { +class MidiFileConfig : public QDialog, public Ui::ConfigMidiFileBase { Q_OBJECT private slots: @@ -27,7 +27,7 @@ class MidiFileConfig : public ConfigMidiFileBase { void cancelClicked(); public: - MidiFileConfig(); + MidiFileConfig(QWidget* parent=0); void updateValues(); }; diff --git a/muse2/muse/transpose.cpp b/muse2/muse/transpose.cpp index 3462dfc4..c7ab912d 100644 --- a/muse2/muse/transpose.cpp +++ b/muse2/muse/transpose.cpp @@ -1,8 +1,8 @@ #include <stdio.h> -#include <qcombobox.h> -#include <qspinbox.h> -#include <qradiobutton.h> + +#include <QDialog> + #include "transpose.h" #include "track.h" #include "song.h" diff --git a/muse2/muse/widgets/CMakeLists.txt b/muse2/muse/widgets/CMakeLists.txt index d91e362d..d62339ca 100644 --- a/muse2/muse/widgets/CMakeLists.txt +++ b/muse2/muse/widgets/CMakeLists.txt @@ -135,7 +135,9 @@ QT4_WRAP_CPP (widget_mocs QT4_WRAP_UI (UIC aboutbox.ui appearancebase.ui + cliplisteditorbase.ui commentbase.ui + configmidifilebase.ui didyouknow.ui editnotedialogbase.ui editsysexdialogbase.ui @@ -163,8 +165,6 @@ QT4_WRAP_UI3 (widget_ui_headers editmetadialogbase.ui gatetimebase.ui wtrackinfobase.ui - cliplisteditorbase.ui - configmidifilebase.ui ) # add_custom_command(OUTPUT ui_midisync.h diff --git a/muse2/muse/widgets/cliplisteditorbase.ui b/muse2/muse/widgets/cliplisteditorbase.ui index 272c578c..5c4806c2 100644 --- a/muse2/muse/widgets/cliplisteditorbase.ui +++ b/muse2/muse/widgets/cliplisteditorbase.ui @@ -1,168 +1,163 @@ -<!DOCTYPE UI><UI version="3.0" stdsetdef="1"> -<class>ClipListEditorBase</class> -<widget class="QWidget"> - <property name="name"> - <cstring>ClipListEditorBase</cstring> - </property> +<?xml version="1.0" encoding="UTF-8"?> +<ui version="4.0" stdsetdef="1"> + <author></author> + <comment></comment> + <exportmacro></exportmacro> + <class>ClipListEditorBase</class> + <widget class="QWidget" name="ClipListEditorBase"> <property name="geometry"> - <rect> - <x>0</x> - <y>0</y> - <width>600</width> - <height>480</height> - </rect> + <rect> + <x>0</x> + <y>0</y> + <width>600</width> + <height>480</height> + </rect> </property> - <property name="caption"> - <string>MusE: ClipList</string> + <property name="windowTitle"> + <string>MusE: ClipList</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="QListView"> - <column> - <property name="text"> - <string>Name</string> - </property> - <property name="clickable"> - <bool>true</bool> - </property> - <property name="resizeable"> - <bool>true</bool> - </property> - </column> - <column> - <property name="text"> - <string>Refs</string> - </property> - <property name="clickable"> - <bool>true</bool> - </property> - <property name="resizeable"> - <bool>true</bool> - </property> - </column> - <column> - <property name="text"> - <string>Start</string> - </property> - <property name="clickable"> - <bool>true</bool> - </property> - <property name="resizeable"> - <bool>true</bool> - </property> - </column> - <column> - <property name="text"> - <string>Len</string> - </property> - <property name="clickable"> - <bool>true</bool> - </property> - <property name="resizeable"> - <bool>true</bool> - </property> - </column> - <column> - <property name="text"> - <string>Data</string> - </property> - <property name="clickable"> - <bool>true</bool> - </property> - <property name="resizeable"> - <bool>true</bool> - </property> - </column> - <property name="name"> - <cstring>view</cstring> + <layout class="QVBoxLayout"> + <property name="margin"> + <number>11</number> + </property> + <property name="spacing"> + <number>6</number> + </property> + <item> + <widget class="QTreeWidget" name="view"> + <property name="allColumnsShowFocus"> + <bool>true</bool> + </property> + <property name="rootIsDecorated"> + <bool>true</bool> + </property> + <column> + <property name="text"> + <string>Name</string> + </property> + <property name="clickable"> + <bool>true</bool> + </property> + <property name="resizeable"> + <bool>true</bool> + </property> + </column> + <column> + <property name="text"> + <string>Refs</string> + </property> + <property name="clickable"> + <bool>true</bool> + </property> + <property name="resizeable"> + <bool>true</bool> + </property> + </column> + <column> + <property name="text"> + <string>Start</string> + </property> + <property name="clickable"> + <bool>true</bool> + </property> + <property name="resizeable"> + <bool>true</bool> </property> - <property name="allColumnsShowFocus"> - <bool>true</bool> + </column> + <column> + <property name="text"> + <string>Len</string> </property> - <property name="rootIsDecorated"> - <bool>true</bool> + <property name="clickable"> + <bool>true</bool> </property> + <property name="resizeable"> + <bool>true</bool> + </property> + </column> + <column> + <property name="text"> + <string>Data</string> + </property> + <property name="clickable"> + <bool>true</bool> + </property> + <property name="resizeable"> + <bool>true</bool> + </property> + </column> </widget> - <widget class="QGroupBox"> - <property name="name"> - <cstring>GroupBox1</cstring> + </item> + <item> + <widget class="QGroupBox" name="GroupBox1"> + <property name="title"> + <string>Clip Properties</string> + </property> + <layout class="QHBoxLayout"> + <property name="margin"> + <number>11</number> </property> - <property name="title"> - <string>Clip Properties</string> + <property name="spacing"> + <number>6</number> </property> - <hbox> - <property name="name"> - <cstring>unnamed</cstring> - </property> - <property name="margin"> - <number>11</number> - </property> - <property name="spacing"> - <number>6</number> - </property> - <widget class="QLabel"> - <property name="name"> - <cstring>TextLabel1</cstring> - </property> - <property name="text"> - <string>Pos:</string> - </property> - </widget> - <widget class="PosEdit"> - <property name="name"> - <cstring>start</cstring> - </property> - <property name="smpte"> - <bool>true</bool> - </property> - </widget> - <widget class="QLabel"> - <property name="name"> - <cstring>TextLabel2</cstring> - </property> - <property name="text"> - <string>Len:</string> - </property> - </widget> - <widget class="PosEdit"> - <property name="name"> - <cstring>len</cstring> - </property> - <property name="smpte"> - <bool>true</bool> - </property> - </widget> - <spacer> - <property name="name" stdset="0"> - <cstring>Spacer1</cstring> - </property> - <property name="orientation"> - <enum>Horizontal</enum> - </property> - <property name="sizeType"> - <enum>Expanding</enum> - </property> - <property name="sizeHint"> - <size> - <width>20</width> - <height>20</height> - </size> - </property> - </spacer> - </hbox> + <item> + <widget class="QLabel" name="TextLabel1"> + <property name="text"> + <string>Pos:</string> + </property> + <property name="wordWrap"> + <bool>false</bool> + </property> + </widget> + </item> + <item> + <widget class="PosEdit" name="start"> + <property name="smpte"> + <bool>true</bool> + </property> + </widget> + </item> + <item> + <widget class="QLabel" name="TextLabel2"> + <property name="text"> + <string>Len:</string> + </property> + <property name="wordWrap"> + <bool>false</bool> + </property> + </widget> + </item> + <item> + <widget class="PosEdit" name="len"> + <property name="smpte"> + <bool>true</bool> + </property> + </widget> + </item> + <item> + <spacer name="Spacer1"> + <property name="sizeHint"> + <size> + <width>20</width> + <height>20</height> + </size> + </property> + <property name="sizeType"> + <enum>QSizePolicy::Expanding</enum> + </property> + <property name="orientation"> + <enum>Qt::Horizontal</enum> + </property> + </spacer> + </item> + </layout> </widget> - </vbox> -</widget> -<includes> - <include location="local" impldecl="in declaration">posedit.h</include> -</includes> -<layoutdefaults spacing="6" margin="11"/> -</UI> + </item> + </layout> + </widget> + <layoutdefault spacing="6" margin="11"/> + <pixmapfunction>qPixmapFromMimeSource</pixmapfunction> + <includes> + <include location="local">posedit.h</include> + </includes> +</ui> diff --git a/muse2/muse/widgets/configmidifilebase.ui b/muse2/muse/widgets/configmidifilebase.ui index 4ba53d7e..9fd603dc 100644 --- a/muse2/muse/widgets/configmidifilebase.ui +++ b/muse2/muse/widgets/configmidifilebase.ui @@ -1,259 +1,239 @@ -<!DOCTYPE UI><UI version="3.2" stdsetdef="1"> -<class>ConfigMidiFileBase</class> -<widget class="QDialog"> - <property name="name"> - <cstring>ConfigMidiFileBase</cstring> - </property> +<?xml version="1.0" encoding="UTF-8"?> +<ui version="4.0" stdsetdef="1"> + <author></author> + <comment></comment> + <exportmacro></exportmacro> + <class>ConfigMidiFileBase</class> + <widget class="QDialog" name="ConfigMidiFileBase"> <property name="geometry"> - <rect> - <x>0</x> - <y>0</y> - <width>548</width> - <height>353</height> - </rect> + <rect> + <x>0</x> + <y>0</y> + <width>548</width> + <height>353</height> + </rect> </property> - <property name="caption"> - <string>MusE: Config Midi File Import/Export</string> + <property name="windowTitle"> + <string>MusE: Config Midi File Import/Export</string> </property> <property name="sizeGripEnabled"> - <bool>true</bool> + <bool>true</bool> </property> - <vbox> - <property name="name"> - <cstring>unnamed</cstring> - </property> - <widget class="QGroupBox"> - <property name="name"> - <cstring>midiImportGroupBox</cstring> - </property> - <property name="sizePolicy"> - <sizepolicy> - <hsizetype>5</hsizetype> - <vsizetype>1</vsizetype> - <horstretch>0</horstretch> - <verstretch>0</verstretch> - </sizepolicy> - </property> - <property name="title"> - <string>Import:</string> - </property> - <grid> - <property name="name"> - <cstring>unnamed</cstring> + <layout class="QVBoxLayout"> + <item> + <widget class="QGroupBox" name="midiImportGroupBox"> + <property name="sizePolicy"> + <sizepolicy> + <hsizetype>5</hsizetype> + <vsizetype>1</vsizetype> + <horstretch>0</horstretch> + <verstretch>0</verstretch> + </sizepolicy> + </property> + <property name="title"> + <string>Import:</string> + </property> + <layout class="QGridLayout"> + <item row="0" column="0"> + <widget class="QCheckBox" name="splitPartsCheckBox"> + <property name="text"> + <string>Split tracks into &parts</string> </property> - <widget class="QCheckBox" row="0" column="0"> - <property name="name"> - <cstring>splitPartsCheckBox</cstring> - </property> - <property name="text"> - <string>Split tracks into &parts</string> - </property> - <property name="accel"> - <string>Alt+P</string> - </property> - <property name="toolTip" stdset="0"> - <string>Split tracks into parts, or one single part</string> - </property> - </widget> - </grid> - </widget> - <widget class="QGroupBox"> - <property name="name"> - <cstring>midiExportGroupBox</cstring> - </property> - <property name="sizePolicy"> - <sizepolicy> - <hsizetype>5</hsizetype> - <vsizetype>7</vsizetype> - <horstretch>0</horstretch> - <verstretch>0</verstretch> - </sizepolicy> - </property> - <property name="title"> - <string>Export:</string> - </property> - <grid> - <property name="name"> - <cstring>unnamed</cstring> + <property name="shortcut"> + <string>Alt+P</string> + </property> + <property name="toolTip" stdset="0"> + <string>Split tracks into parts, or one single part</string> </property> - <widget class="QLineEdit" row="2" column="1"> - <property name="name"> - <cstring>copyrightEdit</cstring> - </property> - </widget> - <widget class="QComboBox" row="1" column="1"> - <item> - <property name="text"> - <string>96</string> - </property> - </item> - <item> - <property name="text"> - <string>192</string> - </property> - </item> - <item> - <property name="text"> - <string>384</string> - </property> - </item> - <property name="name"> - <cstring>divisionCombo</cstring> - </property> - </widget> - <widget class="QCheckBox" row="3" column="0" rowspan="1" colspan="2"> - <property name="name"> - <cstring>extendedFormat</cstring> - </property> - <property name="enabled"> - <bool>true</bool> - </property> - <property name="text"> - <string>Enable extended smf format (currently not implemented)</string> - </property> - </widget> - <widget class="QCheckBox" row="4" column="0" rowspan="1" colspan="2"> - <property name="name"> - <cstring>twoByteTimeSigs</cstring> - </property> - <property name="text"> - <string>Use &2-byte time signatures instead of standard 4</string> - </property> - <property name="accel"> - <string>Alt+2</string> - </property> - </widget> - <widget class="QLabel" row="2" column="0"> - <property name="name"> - <cstring>textLabel2</cstring> - </property> - <property name="text"> - <string>Copyright:</string> - </property> - </widget> - <widget class="QLabel" row="0" column="0"> - <property name="name"> - <cstring>textLabel3</cstring> - </property> - <property name="text"> - <string>Format:</string> - </property> - </widget> - <widget class="QLabel" row="1" column="0"> - <property name="name"> - <cstring>textLabel1</cstring> - </property> - <property name="text"> - <string>Division:</string> - </property> - </widget> - <widget class="QCheckBox" row="5" column="0" rowspan="1" colspan="2"> - <property name="name"> - <cstring>optNoteOffs</cstring> - </property> - <property name="text"> - <string>Save space by replacing note-offs with &zero velocity note-ons</string> - </property> - <property name="accel"> - <string>Alt+Z</string> - </property> - </widget> - <widget class="QComboBox" row="0" column="1"> - <item> - <property name="text"> - <string>0 (single track)</string> - </property> - </item> - <item> - <property name="text"> - <string>1 (multiple tracks)</string> - </property> - </item> - <property name="name"> - <cstring>formatCombo</cstring> - </property> - </widget> - </grid> + </widget> + </item> + </layout> </widget> - <widget class="QLayoutWidget"> - <property name="name"> - <cstring>Layout1</cstring> - </property> - <hbox> - <property name="name"> - <cstring>unnamed</cstring> + </item> + <item> + <widget class="QGroupBox" name="midiExportGroupBox"> + <property name="sizePolicy"> + <sizepolicy> + <hsizetype>5</hsizetype> + <vsizetype>7</vsizetype> + <horstretch>0</horstretch> + <verstretch>0</verstretch> + </sizepolicy> + </property> + <property name="title"> + <string>Export:</string> + </property> + <layout class="QGridLayout"> + <item row="2" column="1"> + <widget class="QLineEdit" name="copyrightEdit"/> + </item> + <item row="1" column="1"> + <widget class="QComboBox" name="divisionCombo"> + <item> + <property name="text"> + <string>96</string> + </property> + </item> + <item> + <property name="text"> + <string>192</string> + </property> + </item> + <item> + <property name="text"> + <string>384</string> + </property> + </item> + </widget> + </item> + <item row="3" column="0" rowspan="1" colspan="2"> + <widget class="QCheckBox" name="extendedFormat"> + <property name="enabled"> + <bool>true</bool> + </property> + <property name="text"> + <string>Enable extended smf format (currently not implemented)</string> + </property> + </widget> + </item> + <item row="4" column="0" rowspan="1" colspan="2"> + <widget class="QCheckBox" name="twoByteTimeSigs"> + <property name="text"> + <string>Use &2-byte time signatures instead of standard 4</string> + </property> + <property name="shortcut"> + <string>Alt+2</string> + </property> + </widget> + </item> + <item row="2" column="0"> + <widget class="QLabel" name="textLabel2"> + <property name="text"> + <string>Copyright:</string> + </property> + <property name="wordWrap"> + <bool>false</bool> + </property> + </widget> + </item> + <item row="0" column="0"> + <widget class="QLabel" name="textLabel3"> + <property name="text"> + <string>Format:</string> + </property> + <property name="wordWrap"> + <bool>false</bool> + </property> + </widget> + </item> + <item row="1" column="0"> + <widget class="QLabel" name="textLabel1"> + <property name="text"> + <string>Division:</string> + </property> + <property name="wordWrap"> + <bool>false</bool> </property> - <property name="margin"> - <number>0</number> + </widget> + </item> + <item row="5" column="0" rowspan="1" colspan="2"> + <widget class="QCheckBox" name="optNoteOffs"> + <property name="text"> + <string>Save space by replacing note-offs with &zero velocity note-ons</string> </property> - <property name="spacing"> - <number>6</number> + <property name="shortcut"> + <string>Alt+Z</string> </property> - <spacer> - <property name="name"> - <cstring>Horizontal Spacing2</cstring> - </property> - <property name="orientation"> - <enum>Horizontal</enum> - </property> - <property name="sizeType"> - <enum>Expanding</enum> - </property> - <property name="sizeHint"> - <size> - <width>20</width> - <height>20</height> - </size> - </property> - </spacer> - <widget class="QPushButton"> - <property name="name"> - <cstring>buttonOk</cstring> - </property> - <property name="text"> - <string>&OK</string> - </property> - <property name="accel"> - <string></string> - </property> - <property name="autoDefault"> - <bool>true</bool> - </property> - <property name="default"> - <bool>true</bool> - </property> - </widget> - <widget class="QPushButton"> - <property name="name"> - <cstring>buttonCancel</cstring> - </property> - <property name="text"> - <string>&Cancel</string> - </property> - <property name="accel"> - <string></string> - </property> - <property name="autoDefault"> - <bool>true</bool> - </property> - </widget> - </hbox> + </widget> + </item> + <item row="0" column="1"> + <widget class="QComboBox" name="formatCombo"> + <item> + <property name="text"> + <string>0 (single track)</string> + </property> + </item> + <item> + <property name="text"> + <string>1 (multiple tracks)</string> + </property> + </item> + </widget> + </item> + </layout> </widget> - </vbox> -</widget> -<connections> + </item> + <item> + <layout class="QHBoxLayout"> + <property name="margin"> + <number>0</number> + </property> + <property name="spacing"> + <number>6</number> + </property> + <item> + <spacer name="Horizontal Spacing2"> + <property name="sizeHint"> + <size> + <width>20</width> + <height>20</height> + </size> + </property> + <property name="sizeType"> + <enum>QSizePolicy::Expanding</enum> + </property> + <property name="orientation"> + <enum>Qt::Horizontal</enum> + </property> + </spacer> + </item> + <item> + <widget class="QPushButton" name="buttonOk"> + <property name="text"> + <string>&OK</string> + </property> + <property name="shortcut"> + <string/> + </property> + <property name="autoDefault"> + <bool>true</bool> + </property> + <property name="default"> + <bool>true</bool> + </property> + </widget> + </item> + <item> + <widget class="QPushButton" name="buttonCancel"> + <property name="text"> + <string>&Cancel</string> + </property> + <property name="shortcut"> + <string/> + </property> + <property name="autoDefault"> + <bool>true</bool> + </property> + </widget> + </item> + </layout> + </item> + </layout> + </widget> + <layoutdefault spacing="6" margin="11"/> + <pixmapfunction>qPixmapFromMimeSource</pixmapfunction> + <connections> <connection> - <sender>buttonOk</sender> - <signal>clicked()</signal> - <receiver>ConfigMidiFileBase</receiver> - <slot>accept()</slot> + <sender>buttonOk</sender> + <signal>clicked()</signal> + <receiver>ConfigMidiFileBase</receiver> + <slot>accept()</slot> </connection> <connection> - <sender>buttonCancel</sender> - <signal>clicked()</signal> - <receiver>ConfigMidiFileBase</receiver> - <slot>reject()</slot> + <sender>buttonCancel</sender> + <signal>clicked()</signal> + <receiver>ConfigMidiFileBase</receiver> + <slot>reject()</slot> </connection> -</connections> -<layoutdefaults spacing="6" margin="11"/> -</UI> + </connections> +</ui> |