From 87d3692e1ad5a79a3608ffd361c637e44d9291c7 Mon Sep 17 00:00:00 2001 From: Orcan Ogetbil Date: Thu, 18 Nov 2010 09:11:56 +0000 Subject: ported .ui widgets to Qt4 --- muse2/ChangeLog | 1 + muse2/muse/miditransform.cpp | 50 +- muse2/muse/miditransform.h | 25 +- muse2/muse/mplugins/midiitransform.cpp | 65 +- muse2/muse/mplugins/midiitransform.h | 28 +- muse2/muse/mplugins/mitplugin.cpp | 2 +- muse2/muse/widgets/CMakeLists.txt | 4 +- muse2/muse/widgets/itransformbase.ui | 2455 +++++++++++++++----------------- muse2/muse/widgets/transformbase.ui | 2200 ++++++++++++++-------------- 9 files changed, 2333 insertions(+), 2497 deletions(-) diff --git a/muse2/ChangeLog b/muse2/ChangeLog index c6ceaf78..b05cd8de 100644 --- a/muse2/ChangeLog +++ b/muse2/ChangeLog @@ -2,6 +2,7 @@ - Updated build part README file - read it! Tell user to specify Release build type. (Tim) - Added printout of build type in top level cmake. (Tim) - Removed duplicate LASH detection in top level cmake. (Tim) + - Ported the following .ui widgets to Qt4: transformbase, itransformbase (Orcan) 17.11.2010 - Removed a fix which cured graphic corruption for me in MusE-1. Not required now. (Tim) - Small change to Orcan's filedialog, re-enabled global button. (Tim) diff --git a/muse2/muse/miditransform.cpp b/muse2/muse/miditransform.cpp index 486f47c5..0f9f247c 100644 --- a/muse2/muse/miditransform.cpp +++ b/muse2/muse/miditransform.cpp @@ -8,13 +8,10 @@ #include #include -#include -#include -#include -#include -#include -#include -#include + + +#include +#include #include "helper.h" #include "spinboxFP.h" @@ -155,9 +152,8 @@ static MidiTransformationList mtlist; // buttonNew buttonDelete buttonApply buttonOk //--------------------------------------------------------- -MidiTransformerDialog::MidiTransformerDialog(QWidget* parent, - const char* name, bool modal, Qt::WFlags fl) - : MidiTransformDialogBase(parent, name, modal, fl) +MidiTransformerDialog::MidiTransformerDialog(QDialog* parent, Qt::WFlags fl) + : MidiTransformDialogBaseWidget(parent, fl) { data = new MidiTransformPrivate; data->cmt = 0; @@ -179,8 +175,8 @@ MidiTransformerDialog::MidiTransformerDialog(QWidget* parent, connect(procPosOp, SIGNAL(activated(int)), SLOT(procPosOpSel(int))); connect(funcOp, SIGNAL(activated(int)), SLOT(funcOpSel(int))); connect(funcQuantVal, SIGNAL(valueChanged(int)), SLOT(funcQuantValSel(int))); - connect(presetList, SIGNAL(highlighted(Q3ListBoxItem*)), - SLOT(presetChanged(Q3ListBoxItem*))); + connect(presetList, SIGNAL(highlighted(QListWidgetItem*)), + SLOT(presetChanged(QListWidgetItem*))); connect(nameEntry, SIGNAL(textChanged(const QString&)), SLOT(nameChanged(const QString&))); connect(commentEntry, SIGNAL(textChanged()), SLOT(commentChanged())); @@ -243,14 +239,14 @@ void MidiTransformerDialog::updatePresetList() data->cindex = 0; presetList->clear(); for (iMidiTransformation i = mtlist.begin(); i != mtlist.end(); ++i) { - presetList->insertItem((*i)->name); + presetList->addItem((*i)->name); if (data->cmt == 0) data->cmt = *i; } if (data->cmt == 0) { data->cmt = new MidiTransformation(tr("New")); mtlist.push_back(data->cmt); - presetList->insertItem(tr("New")); + presetList->addItem(tr("New")); presetList->setCurrentItem(0); } @@ -1333,9 +1329,11 @@ void MidiTransformerDialog::presetNew() break; } MidiTransformation* mt = new MidiTransformation(name); - Q3ListBoxText* lbi = new Q3ListBoxText(presetList, name); + QListWidgetItem* lbi = new QListWidgetItem(name); + presetList->addItem(lbi); mtlist.push_back(mt); presetList->setCurrentItem(lbi); + presetChanged(lbi); } //--------------------------------------------------------- @@ -1348,7 +1346,9 @@ void MidiTransformerDialog::presetDelete() iMidiTransformation mt = mtlist.begin(); for (int i = 0; i < data->cindex; ++i, ++mt) { mtlist.erase(mt); - presetList->removeItem(data->cindex); + presetList->setCurrentItem(presetList->item(data->cindex - 1)); + presetList->takeItem(data->cindex); + presetChanged(presetList->item(data->cindex - 1)); break; } } @@ -1358,9 +1358,9 @@ void MidiTransformerDialog::presetDelete() // presetChanged //--------------------------------------------------------- -void MidiTransformerDialog::presetChanged(Q3ListBoxItem* item) +void MidiTransformerDialog::presetChanged(QListWidgetItem* item) { - data->cindex = presetList->index(item); + data->cindex = presetList->row(item); iMidiTransformation i; for (i = mtlist.begin(); i != mtlist.end(); ++i) { if (item->text() == (*i)->name) { @@ -1449,13 +1449,15 @@ void MidiTransformerDialog::presetChanged(Q3ListBoxItem* item) void MidiTransformerDialog::nameChanged(const QString& s) { data->cmt->name = s; - Q3ListBoxItem* item = presetList->item(data->cindex); + QListWidgetItem* item = presetList->item(data->cindex); if (s != item->text()) { - disconnect(presetList, SIGNAL(highlighted(Q3ListBoxItem*)), - this, SLOT(presetChanged(Q3ListBoxItem*))); - presetList->changeItem(s, data->cindex); - connect(presetList, SIGNAL(highlighted(Q3ListBoxItem*)), - SLOT(presetChanged(Q3ListBoxItem*))); + disconnect(presetList, SIGNAL(highlighted(QListWidgetItem*)), + this, SLOT(presetChanged(QListWidgetItem*))); + presetList->insertItem(data->cindex, s); + presetList->takeItem(data->cindex); + presetList->setCurrentItem(presetList->item(data->cindex)); + connect(presetList, SIGNAL(highlighted(QListWidgetItem*)), + SLOT(presetChanged(QListWidgetItem*))); } } diff --git a/muse2/muse/miditransform.h b/muse2/muse/miditransform.h index 3dcb4a98..0c71b98b 100644 --- a/muse2/muse/miditransform.h +++ b/muse2/muse/miditransform.h @@ -9,9 +9,10 @@ #ifndef __MIDITRANSFORM_H__ #define __MIDITRANSFORM_H__ -#include "transformbase.h" +#include "ui_transformbase.h" -class Q3ListBoxItem; +class QListWidgetItem; +class QDialog; class MidiTransformation; class MidiTransformPrivate; class Event; @@ -32,11 +33,24 @@ enum TransformOperator { ScaleMap, Flip, Dynamic, Random }; +//--------------------------------------------------------- +// MidiTransformDialogBaseWidget +// Wrapper around Ui::MidiTransformDialogBase +//--------------------------------------------------------- + +class MidiTransformDialogBaseWidget : public QDialog, public Ui::MidiTransformDialogBase +{ + Q_OBJECT + + public: + MidiTransformDialogBaseWidget(QDialog *parent = 0, Qt::WFlags f = 0) : QDialog(parent, f) { setupUi(this); } +}; + //--------------------------------------------------------- // MidiTransformDialog //--------------------------------------------------------- -class MidiTransformerDialog : public MidiTransformDialogBase { +class MidiTransformerDialog : public MidiTransformDialogBaseWidget { Q_OBJECT MidiTransformPrivate* data; @@ -68,7 +82,7 @@ class MidiTransformerDialog : public MidiTransformDialogBase { void procLenOpSel(int); void procPosOpSel(int); void funcOpSel(int); - void presetChanged(Q3ListBoxItem*); + void presetChanged(QListWidgetItem*); void nameChanged(const QString&); void commentChanged(); void selVal1aChanged(int); @@ -94,8 +108,7 @@ class MidiTransformerDialog : public MidiTransformDialogBase { void songChanged(int); public: - MidiTransformerDialog(QWidget* parent = 0, const char* name = 0, - bool modal = false, Qt::WFlags fl = 0); + MidiTransformerDialog(QDialog* parent = 0, Qt::WFlags fl = 0); ~MidiTransformerDialog(); }; diff --git a/muse2/muse/mplugins/midiitransform.cpp b/muse2/muse/mplugins/midiitransform.cpp index f3eecece..e7d8763b 100644 --- a/muse2/muse/mplugins/midiitransform.cpp +++ b/muse2/muse/mplugins/midiitransform.cpp @@ -8,18 +8,12 @@ #include #include -#include -#include -#include -#include -#include -#include -#include -#include -#include -//Added by qt3to4: #include +#include +#include +#include + #include "spinboxFP.h" #include "midi.h" #include "midictrl.h" @@ -597,14 +591,19 @@ bool MidiInputTransformation::typesMatch(MidiRecordEvent& e, int selType) const // procChannelOp procChannelVala procChannelValb //--------------------------------------------------------- -MidiInputTransformDialog::MidiInputTransformDialog(QWidget* parent, - const char* name, bool modal, Qt::WFlags fl) - : MidiInputTransformDialogBase(parent, name, modal, fl) +MidiInputTransformDialog::MidiInputTransformDialog(QDialog* parent, Qt::WFlags fl) + : MidiInputTransformDialogBaseWidget(parent, fl) { cindex = 0; cmodul = 0; cmt = 0; + modulGroup = new QButtonGroup; + modulGroup->addButton(modul1select,0); + modulGroup->addButton(modul2select,1); + modulGroup->addButton(modul3select,2); + modulGroup->addButton(modul4select,3); + for (unsigned i = 0; i < sizeof(oplist)/sizeof(*oplist); ++i) funcOp->insertItem(oplist[i].text, i); @@ -619,8 +618,8 @@ MidiInputTransformDialog::MidiInputTransformDialog(QWidget* parent, connect(procVal1Op, SIGNAL(activated(int)), SLOT(procVal1OpSel(int))); connect(procVal2Op, SIGNAL(activated(int)), SLOT(procVal2OpSel(int))); connect(funcOp, SIGNAL(activated(int)), SLOT(funcOpSel(int))); - connect(presetList, SIGNAL(highlighted(Q3ListBoxItem*)), - SLOT(presetChanged(Q3ListBoxItem*))); + connect(presetList, SIGNAL(itemActivated(QListWidgetItem*)), + SLOT(presetChanged(QListWidgetItem*))); connect(nameEntry, SIGNAL(textChanged(const QString&)), SLOT(nameChanged(const QString&))); connect(commentEntry, SIGNAL(textChanged()), SLOT(commentChanged())); @@ -638,7 +637,7 @@ MidiInputTransformDialog::MidiInputTransformDialog(QWidget* parent, connect(modul2enable, SIGNAL(toggled(bool)), SLOT(modul2enableChanged(bool))); connect(modul3enable, SIGNAL(toggled(bool)), SLOT(modul3enableChanged(bool))); connect(modul4enable, SIGNAL(toggled(bool)), SLOT(modul4enableChanged(bool))); - connect(modulGroup, SIGNAL(clicked(int)), SLOT(changeModul(int))); + connect(modulGroup, SIGNAL(buttonClicked(int)), SLOT(changeModul(int))); connect(selPortOp, SIGNAL(activated(int)), SLOT(selPortOpSel(int))); connect(selPortVala, SIGNAL(valueChanged(int)), SLOT(selPortValaChanged(int))); @@ -661,6 +660,8 @@ MidiInputTransformDialog::MidiInputTransformDialog(QWidget* parent, //--------------------------------------------------- updatePresetList(); + presetList->setCurrentItem(presetList->item(0)); + presetChanged(presetList->item(0)); connect(song, SIGNAL(songChanged(int)), SLOT(songChanged(int))); } @@ -687,7 +688,7 @@ void MidiInputTransformDialog::updatePresetList() modul1select->setOn(true); for (iMidiInputTransformation i = mtlist.begin(); i != mtlist.end(); ++i) { - presetList->insertItem((*i)->name); + presetList->addItem((*i)->name); if (cmt == 0) cmt = *i; } @@ -695,7 +696,7 @@ void MidiInputTransformDialog::updatePresetList() // create default "New" preset cmt = new MidiInputTransformation(tr("New")); mtlist.push_back(cmt); - presetList->insertItem(tr("New")); + presetList->addItem(tr("New")); presetList->setCurrentItem(0); } changeModul(0); @@ -1189,9 +1190,11 @@ void MidiInputTransformDialog::presetNew() break; } MidiInputTransformation* mt = new MidiInputTransformation(name); - Q3ListBoxText* lbi = new Q3ListBoxText(presetList, name); + QListWidgetItem* lbi = new QListWidgetItem(name); + presetList->addItem(lbi); mtlist.push_back(mt); presetList->setCurrentItem(lbi); + presetChanged(lbi); } //--------------------------------------------------------- @@ -1204,7 +1207,9 @@ void MidiInputTransformDialog::presetDelete() iMidiInputTransformation mt = mtlist.begin(); for (int i = 0; i < cindex; ++i, ++mt) { mtlist.erase(mt); - presetList->removeItem(cindex); + presetList->setCurrentItem(presetList->item(cindex - 1)); + presetList->takeItem(cindex); + presetChanged(presetList->item(cindex - 1)); break; } } @@ -1217,13 +1222,15 @@ void MidiInputTransformDialog::presetDelete() void MidiInputTransformDialog::nameChanged(const QString& s) { cmt->name = s; - Q3ListBoxItem* item = presetList->item(cindex); + QListWidgetItem* item = presetList->item(cindex); if (s != item->text()) { - disconnect(presetList, SIGNAL(highlighted(Q3ListBoxItem*)), - this, SLOT(presetChanged(Q3ListBoxItem*))); - presetList->changeItem(s, cindex); - connect(presetList, SIGNAL(highlighted(Q3ListBoxItem*)), - SLOT(presetChanged(Q3ListBoxItem*))); + disconnect(presetList, SIGNAL(itemActivated(QListWidgetItem*)), + this, SLOT(presetChanged(QListWidgetItem*))); + presetList->insertItem(cindex, s); + presetList->takeItem(cindex+1); + presetList->setCurrentItem(presetList->item(cindex)); + connect(presetList, SIGNAL(itemActivated(QListWidgetItem*)), + SLOT(presetChanged(QListWidgetItem*))); } } @@ -1565,7 +1572,7 @@ printf("change modul %d\n", k); iMidiInputTransformation i; for (i = mtlist.begin(); i != mtlist.end(); ++i, ++idx) { if (*i == modules[k].transform) { - presetList->setCurrentItem(idx); + presetList->setCurrentItem(presetList->item(idx)); break; } } @@ -1578,9 +1585,9 @@ printf("change modul %d\n", k); // presetChanged //--------------------------------------------------------- -void MidiInputTransformDialog::presetChanged(Q3ListBoxItem* item) +void MidiInputTransformDialog::presetChanged(QListWidgetItem* item) { - cindex = presetList->index(item); + cindex = presetList->row(item); //--------------------------------------------------- // search transformation in list and set diff --git a/muse2/muse/mplugins/midiitransform.h b/muse2/muse/mplugins/midiitransform.h index 860797c5..3180bf23 100644 --- a/muse2/muse/mplugins/midiitransform.h +++ b/muse2/muse/mplugins/midiitransform.h @@ -9,11 +9,11 @@ #ifndef __MIDIITRANSFORM_H__ #define __MIDIITRANSFORM_H__ -#include "itransformbase.h" -//Added by qt3to4: +#include "ui_itransformbase.h" + #include -class Q3ListBoxItem; +class QButtonGroup; class MidiTransformation; class MidiInputTransformation; class MidiRecordEvent; @@ -23,11 +23,25 @@ class Xml; #include "miditransform.h" enum InputTransformProcEventOp { KeepType, FixType }; + +//--------------------------------------------------------- +// MidiInputTransformDialogBaseWidget +// Wrapper around Ui::MidiInputTransformDialogBase +//--------------------------------------------------------- + +class MidiInputTransformDialogBaseWidget : public QDialog, public Ui::MidiInputTransformDialogBase +{ + Q_OBJECT + + public: + MidiInputTransformDialogBaseWidget(QDialog *parent = 0, Qt::WFlags f = 0) : QDialog(parent, f) { setupUi(this); } +}; + //--------------------------------------------------------- // MidiInputTransform //--------------------------------------------------------- -class MidiInputTransformDialog : public MidiInputTransformDialogBase { +class MidiInputTransformDialog : public MidiInputTransformDialogBaseWidget { Q_OBJECT MidiInputTransformation* cmt; int cindex; // current index in preset list @@ -39,6 +53,7 @@ class MidiInputTransformDialog : public MidiInputTransformDialogBase { virtual void closeEvent(QCloseEvent*); void updatePresetList(); + QButtonGroup* modulGroup; signals: void hideWindow(); @@ -57,7 +72,7 @@ class MidiInputTransformDialog : public MidiInputTransformDialogBase { void procVal1OpSel(int); void procVal2OpSel(int); void funcOpSel(int); - void presetChanged(Q3ListBoxItem*); + void presetChanged(QListWidgetItem*); void nameChanged(const QString&); void commentChanged(); void selVal1aChanged(int); @@ -90,8 +105,7 @@ class MidiInputTransformDialog : public MidiInputTransformDialogBase { void songChanged(int); public: - MidiInputTransformDialog(QWidget* parent = 0, const char* name = 0, - bool modal = false, Qt::WFlags fl = 0); + MidiInputTransformDialog(QDialog* parent = 0, Qt::WFlags fl = 0); }; extern void writeMidiInputTransforms(int level, Xml& xml); diff --git a/muse2/muse/mplugins/mitplugin.cpp b/muse2/muse/mplugins/mitplugin.cpp index 1923f1d6..e06f4c24 100644 --- a/muse2/muse/mplugins/mitplugin.cpp +++ b/muse2/muse/mplugins/mitplugin.cpp @@ -116,7 +116,7 @@ void processMidiInputTransformPlugins(MEvent& event) void MusE::startMidiTransformer() { if (midiTransformerDialog == 0) - midiTransformerDialog = new MidiTransformerDialog(this); + midiTransformerDialog = new MidiTransformerDialog; midiTransformerDialog->show(); } diff --git a/muse2/muse/widgets/CMakeLists.txt b/muse2/muse/widgets/CMakeLists.txt index 7cbcb959..209371e2 100644 --- a/muse2/muse/widgets/CMakeLists.txt +++ b/muse2/muse/widgets/CMakeLists.txt @@ -133,8 +133,10 @@ QT4_WRAP_CPP (widget_mocs QT4_WRAP_UI (UIC fdialogbuttons.ui + itransformbase.ui mittransposebase.ui songinfo.ui + transformbase.ui velocitybase.ui ) @@ -145,9 +147,7 @@ QT4_WRAP_UI3 (widget_ui_headers gensetbase.ui mixdowndialogbase.ui transposebase.ui - transformbase.ui appearancebase.ui - itransformbase.ui commentbase.ui synthconfigbase.ui gatetimebase.ui diff --git a/muse2/muse/widgets/itransformbase.ui b/muse2/muse/widgets/itransformbase.ui index 1c4a9387..4100b2f6 100644 --- a/muse2/muse/widgets/itransformbase.ui +++ b/muse2/muse/widgets/itransformbase.ui @@ -1,1296 +1,1173 @@ - -MidiInputTransformDialogBase - - - MidiInputTransformDialogBase - - - - 0 - 0 - 760 - 587 - - - - MusE: Midi Input Transformator - - - true - - - - unnamed + + + MidiInputTransformDialogBase + + + + 0 + 0 + 832 + 587 + + + + MusE: Midi Input Transformator + + + true + + + + 11 + + + 6 + + + + + Filter + + + + 11 + + + 6 + + + + + + All + + + + + Equal + + + + + Unequal + + + + + + + + false - - 11 + + + Note + + + + + Poly Pressure + + + + + Control Change + + + + + Aftertouch + + + + + Pitch Bend + + + + + NRPN + + + + + RPN + + + + + + + + Value 2 + + + false + + + + + + + Value 1 + + + false + + + + + + + Event Type + + + false + + + + + + + + Ignore + + + + + Equal + + + + + Unequal + + + + + Higher + + + + + Lower + + + + + Inside + + + + + Outside + + + + + + + + 127 + + + + + + + 127 + + + + + + + 127 + + + + + + + + Ignore + + + + + Equal + + + + + Unequal + + + + + Higher + + + + + Lower + + + + + Inside + + + + + Outside + + + + + + + + + Ignore + + + + + Equal + + + + + Unequal + + + + + Higher + + + + + Lower + + + + + Inside + + + + + Outside + + + + + + + + + Ignore + + + + + Equal + + + + + Unequal + + + + + Higher + + + + + Lower + + + + + Inside + + + + + Outside + + + + + + + + Channel + + + false + + + + + + + Port + + + false + + + + + + + 127 + + + + + + + 127 + + + + + + + 127 + + + + + + + 127 + + + + + + + 127 + + + + + + + + + + Processing + + + + 11 + + + 6 + + + + + Event Type + + + false + + + + + + + + Keep + + + + + Fix + + + + + + + + false + + + + Poly Pressure + + + + + Control Change + + + + + Aftertouch + + + + + Pitch Bend + + + + + NRPN + + + + + RPN + + + + + + + + + Keep + + + + + Plus + + + + + Minus + + + + + Multiply + + + + + Divide + + + + + Fix + + + + + Value 2 + + + + + Invert + + + + + ScaleMap + + + + + Flip + + + + + Dyn + + + + + Random + + + + + + + + Value 1 + + + false + + + + + + + Value 2 + + + false + + + + + + + 9999 + + + + + + + 9999 + + + + + + + 99999999 + + + + + + + 127 + + + + + + + 127 + + + + + + + Port + + false + + + + + + + + Keep + + + + + Plus + + + + + Minus + + + + + Multiply + + + + + Divide + + + + + Fix + + + + + Value 1 + + + + + Invert + + + + + Dyn + + + + + Random + + + + + + + + + Keep + + + + + Plus + + + + + Minus + + + + + Multiply + + + + + Divide + + + + + Fix + + + + + Value 1 + + + + + Invert + + + + + Dyn + + + + + Random + + + + + + + + + Keep + + + + + Plus + + + + + Minus + + + + + Multiply + + + + + Divide + + + + + Fix + + + + + Value 1 + + + + + Invert + + + + + Dyn + + + + + Random + + + + + + + + Channel + + + false + + + + + + + 99999999 + + + + + + + 99999999 + + + + + + + 99999999 + + + + + + + + + + + 0 + 0 + + + + Modules + + + + 11 + + + 6 + + + + + + 0 + 0 + + + + + + + true + + + 0 + + + true + + + + + + 1 + + + true + + + true + + + + + + + 2 + + + true + + + + + + + 3 + + + true + + + + + + + 4 + + + true + + + + + + + + + + + 0 + 0 + + + + enable modul 1 + + + + + + + + + + + 0 + 0 + + + + enable modul 2 + + + + + + + + + + + 0 + 0 + + + + enable modul 3 + + + + + + + + + + + 0 + 0 + + + + enable modul 4 + + + + + + + + + + + + + + 0 + 0 + + + + Preset + + + + 6 + + + 11 + + + - 6 + 6 + + + 0 - - - GroupBox3 - - - Filter - - - - unnamed - - - 11 - - - 6 - - - - - All - - - - - Equal - - - - - Unequal - - - - selEventOp - - - - - - Note - - - - - Poly Pressure - - - - - Control Change - - - - - Aftertouch - - - - - Pitch Bend - - - - - NRPN - - - - - RPN - - - - selType - - - - - TextLabel3 - - - Value 2 - - - - - TextLabel2 - - - Value 1 - - - - - TextLabel1 - - - Event Type - - - - - - Ignore - - - - - Equal - - - - - Unequal - - - - - Higher - - - - - Lower - - - - - Inside - - - - - Outside - - - - selVal1Op - - - - - selVal1b - - - 127 - - - - - selVal2b - - - 127 - - - - - selVal1a - - - 127 - - - - - - Ignore - - - - - Equal - - - - - Unequal - - - - - Higher - - - - - Lower - - - - - Inside - - - - - Outside - - - - selVal2Op - - - - - - Ignore - - - - - Equal - - - - - Unequal - - - - - Higher - - - - - Lower - - - - - Inside - - - - - Outside - - - - selPortOp - - - - - - Ignore - - - - - Equal - - - - - Unequal - - - - - Higher - - - - - Lower - - - - - Inside - - - - - Outside - - - - selChannelOp - - - - - TextLabel2_2 - - - Channel - - - - - TextLabel1_3 - - - Port - - - - - selVal2a - - - 127 - - - - - selChannelVala - - - 127 - - - - - selPortVala - - - 127 - - - - - selChannelValb - - - 127 - - - - - selPortValb - - - 127 - - - - - - - GroupBox5 - - - Processing - - - - unnamed - - - 11 - - - 6 - - - - TextLabel5 - - - Event Type - - - - - - Keep - - - - - Fix - - - - procEventOp - - - - - - Poly Pressure - - - - - Control Change - - - - - Aftertouch - - - - - Pitch Bend - - - - - NRPN - - - - - RPN - - - - procType - - - - - - Keep - - - - - Plus - - - - - Minus - - - - - Multiply - - - - - Divide - - - - - Fix - - - - - Value 2 - - - - - Invert - - - - - ScaleMap - - - - - Flip - - - - - Dyn - - - - - Random - - - - procVal1Op - - - - - TextLabel6 - - - Value 1 - - - - - TextLabel7 - - - Value 2 - - - - - procVal1b - - - 9999 - - - - - procVal2b - - - 9999 - - - - - procVal1a - - - 99999999 - - - - - procChannelValb - - - 127 - - - - - procPortValb - - - 127 - - - - - TextLabel1_3_2 - - - Port - - - - - - Keep - - - - - Plus - - - - - Minus - - - - - Multiply - - - - - Divide - - - - - Fix - - - - - Value 1 - - - - - Invert - - - - - Dyn - - - - - Random - - - - procVal2Op - - - - - - Keep - - - - - Plus - - - - - Minus - - - - - Multiply - - - - - Divide - - - - - Fix - - - - - Value 1 - - - - - Invert - - - - - Dyn - - - - - Random - - - - procChannelOp - - - - - - Keep - - - - - Plus - - - - - Minus - - - - - Multiply - - - - - Divide - - - - - Fix - - - - - Value 1 - - - - - Invert - - - - - Dyn - - - - - Random - - - - procPortOp - - - - - TextLabel2_2_2 - - - Channel - - - - - procVal2a - - - 99999999 - - - - - procPortVala - - - 99999999 - - - - - procChannelVala - - - 99999999 - - - - - - - GroupBox5_2 - - - - 4 - 5 - 0 - 0 - - - - Modules - - - - unnamed - - - 11 - - - 6 - - - - modulGroup - - - - 5 - 7 - 0 - 0 - - - - NoFrame - - - Plain - - - 0 - - - - - - true - - - true - - - - unnamed - - - - modul1select - - - - 5 - 1 - 0 - 0 - - - - 1 - - - true - - - true - - - 0 - - - - - modul2select - - - 2 - - - true - - - 1 - - - - - modul3select - - - 3 - - - true - - - 2 - - - - - modul4select - - - 4 - - - true - - - 3 - - - - - - - modul1enable - - - - 4 - 0 - 0 - 0 - - - - - - - enable modul 1 - - - - - modul2enable - - - - 4 - 0 - 0 - 0 - - - - - - - enable modul 2 - - - - - modul3enable - - - - 4 - 0 - 0 - 0 - - - - - - - enable modul 3 - - - - - modul4enable - - - - 4 - 0 - 0 - 0 - - - - - - - enable modul 4 - - - - - - - GroupBox6_2 - - - - 3 - 5 - 0 - 0 - - - - Preset - - - - unnamed - - - 11 - - - 6 - - - - Layout5_3 - - - - unnamed - - - 0 - - - 6 - - - - TextLabel13_2 - - - Name: - - - - - nameEntry - - - - 3 - 0 - 0 - 0 - - - - - - - - TextLabel14_2 - - - Comment: - - - - - commentEntry - - - - 1 - 7 - 0 - 0 - - - - - - - - GroupBox7_2 - - - - 4 - 5 - 0 - 0 - - - - Function - - - - unnamed - - - 11 - - - 6 - - - - funcOp - - - - - - - Layout4 - - - - unnamed - - - 0 - - - 6 - - - - buttonNew - - - &New - - - true - - - create new preset - - - - - buttonDelete - - - &Delete - - - true - - - delete preset - - - - - Horizontal Spacing2 - - - Horizontal - - - Expanding - - - - 20 - 20 - - - - - - buttonOk - - - &Dismiss - - - true - - - true - - - - - - - Layout7 - - - - unnamed - - - 0 - - - 6 - - - - TextLabel1_2 - - - PresetList - - - - - presetList - - - - 3 - 3 - 0 - 0 - - - - - - - - - - SpinBoxFP -
spinboxFP.h
- - 50 - 20 - - 0 - - 5 - 5 + + + + Name: + + + false + + + + + + + 0 0 + + + + + + + + + + Comment: + + + false + + + + + + + + 0 + 0 + + + + + + + + + + + + 0 + 0 + + + + Function + + + + 6 + + + 11 + + + + + + + + + + + 6 + + + 0 + + + + + create new preset + + + &New + + + true + + + + + + + delete preset + + + &Delete + + + true + + + + + + + Qt::Horizontal + + + QSizePolicy::Expanding + + + + 20 + 20 + + + + + + + + &Dismiss + + + true + + + true + + + + + + + + + 6 + + + 0 + + + + + PresetList + + + false + + + + + + + + 0 + 0 - image0 - valueChanged(int value) - valueChanged(const QString&) - setValue(int) - setPrefix(const QString&) - setSuffix(const QString&) - stepUp() - stepDown() - precision - minValue - maxValue -
-
- - - 789c6dd2c10ac2300c00d07bbf2234b7229d1be245fc04c5a3201e4615f430059d0711ff5ddb2e6bb236ec90eed134cb5a19d8ef36602af5ecdbfeeac05dda0798d3abebde87e3faa374d3807fa0d633a52d38d8de6f679fe33fc776e196f53cd010188256a3600a292882096246517815ca99884606e18044a3a40d91824820924265a7923a2e8bcd05f33db1173e002913175f2a6be6d3294871a2d95fa00e8a94ee017b69d339d90df1e77c57ea072ede6758 - - - - - buttonOk - clicked() - MidiInputTransformDialogBase - accept() - - - - selEventOp - selType - selVal1Op - selVal1a - selVal1b - selVal2Op - selVal2a - selVal2b - selPortOp - selPortVala - selPortValb - selChannelOp - selChannelVala - selChannelValb - procEventOp - procType - procVal1Op - procVal1b - procVal2Op - procVal2b - procPortOp - procPortValb - procChannelOp - procChannelValb - modul1enable - modul2enable - modul3enable - modul4enable - funcOp - nameEntry - commentEntry - presetList - buttonNew - buttonDelete - buttonOk - - - - spinboxFP.h - -
+ + + + + + + + + + + SpinBoxFP + QWidget +
spinboxFP.h
+
+
+ + selEventOp + selType + selVal1Op + selVal1a + selVal1b + selVal2Op + selVal2a + selVal2b + selPortOp + selPortVala + selPortValb + selChannelOp + selChannelVala + selChannelValb + procEventOp + procType + procVal1Op + procVal1b + procVal2Op + procVal2b + procPortOp + procPortValb + procChannelOp + procChannelValb + modul1enable + modul2enable + modul3enable + modul4enable + funcOp + nameEntry + commentEntry + presetList + buttonNew + buttonDelete + buttonOk + + + spinboxFP.h + + + + + buttonOk + clicked() + MidiInputTransformDialogBase + accept() + + + 20 + 20 + + + 20 + 20 + + + + + diff --git a/muse2/muse/widgets/transformbase.ui b/muse2/muse/widgets/transformbase.ui index 06aea442..5ad09459 100644 --- a/muse2/muse/widgets/transformbase.ui +++ b/muse2/muse/widgets/transformbase.ui @@ -1,1146 +1,1068 @@ - -MidiTransformDialogBase - - - MidiTransformDialogBase - - - - 0 - 0 - 636 - 521 - - - - MusE: Midi Transformator - - + + + MidiTransformDialogBase + + + + 0 + 0 + 826 + 545 + + + + MusE: Midi Transformator + + + true + + + + 11 + + + 6 + + + + + 6 + + + 0 + + + + + &New + + true - - - - unnamed + + + + + + + &Delete + + + true + + + + + + + Qt::Horizontal + + + QSizePolicy::Expanding + + + + 20 + 20 + + + + + + + + &Apply + + + true + + + + + + + &OK + + + true + + + true + + + + + + + &Cancel + + + true + + + + + + + + + 6 + + + 0 + + + + + PresetList + + + false + + + + + + + + 0 + 0 + + + + + + + + + + Processing + + + + 11 + + + 6 + + + + + Event Type - - 11 + + false + + + + + + + + Keep + + + + + Fix + + + + + + + + false + + + + Note + + + + + Poly Pressure + + + + + Control Change + + + + + Aftertouch + + + + + Pitch Bend + + + + + NRPN + + + + + RPN + + + + + + + + + Keep + + + + + Plus + + + + + Minus + + + + + Multiply + + + + + Divide + + + + + Fix + + + + + Value 2 + + + + + Invert + + + + + ScaleMap + + + + + Flip + + + + + Dyn + + + + + Random + + + + + + + + Value 1 + + + false + + + + + + + Value 2 + + + false + + + + + + + Length + + + false + + + + + + + Position + + + false + + + + + + + + Keep + + + + + Plus + + + + + Minus + + + + + Multiply + + + + + Divide + + + + + Fix + + + + + Value 1 + + + + + Invert + + + + + Dyn + + + + + Random + + + + + + + + + Keep + + + + + Plus + + + + + Minus + + + + + Multiply + + + + + Divide + + + + + Fix + + + + + + + + 9999 + + + + + + + 9999 + + + + + + + 99999999 + + + + + + + + Keep + + + + + Plus + + + + + Minus + + + + + Multiply + + + + + Divide + + + + + + + + 99999999 + + + + + + + 99999999 + + + + + + + 99999999 + + + + + + + + + + Filter + + + + 11 + + + 6 + + + + + + All + + + + + Equal + + + + + Unequal + + + + + + + + false + + + + Note + + + + + Poly Pressure + + + + + Control Change + + + + + Aftertouch + + + + + Pitch Bend + + + + + NRPN + + + + + RPN + + + + + + + + Value 2 + + + false + + + + + + + Value 1 + + + false + + + + + + + Event Type + + + false + + + + + + + + Ignore + + + + + Equal + + + + + Unequal + + + + + Higher + + + + + Lower + + + + + Inside + + + + + Outside + + + + + + + + Length + + false + + + + + + + Bar Range + + + false + + + + + + + + Ignore + + + + + Equal + + + + + Unequal + + + + + Higher + + + + + Lower + + + + + Inside + + + + + Outside + + + + + + + + + Ignore + + + + + Equal + + + + + Unequal + + + + + Higher + + + + + Lower + + + + + Inside + + + + + Outside + + + + + + + + + Ignore + + + + + Equal + + + + + Unequal + + + + + Higher + + + + + Lower + + + + + Inside + + + + + Outside + + + + + + + + 127 + + + + + + + 127 + + + + + + + 127 + + + + + + + 127 + + + + + + + 127 + + + + + + + 127 + + + + + + + 3 + + + + + + + 1000 + + + 3 + + + + + + + + + + 6 + + + 0 + + + + + Preset + + - 6 + 6 - - - Layout4 - - - - unnamed - - - 0 - - - 6 - - - - buttonNew - - - &New - - - true - - - - - buttonDelete - - - &Delete - - - true - - - - - Horizontal Spacing2 - - - Horizontal - - - Expanding - - - - 20 - 20 - - - - - - buttonApply - - - &Apply - - - true - - - - - buttonOk - - - &OK - - - true - - - true - - - - - buttonCancel - - - &Cancel - - - true - - - - - - - Layout4 - - - - unnamed - - - 0 - - - 6 - - - - TextLabel1_2 - - - PresetList - - - - - presetList - - - - 3 - 3 - 0 - 0 - - - - - - - - GroupBox5 - - - Processing - - - - unnamed - - - 11 - - - 6 - - - - TextLabel5 - - - Event Type - - - - - - Keep - - - - - Fix - - - - procEventOp - - - - - - Note - - - - - Poly Pressure - - - - - Control Change - - - - - Aftertouch - - - - - Pitch Bend - - - - - NRPN - - - - - RPN - - - - procType - - - - - - Keep - - - - - Plus - - - - - Minus - - - - - Multiply - - - - - Divide - - - - - Fix - - - - - Value 2 - - - - - Invert - - - - - ScaleMap - - - - - Flip - - - - - Dyn - - - - - Random - - - - procVal1Op - - - - - TextLabel6 - - - Value 1 - - - - - TextLabel7 - - - Value 2 - - - - - TextLabel10_2 - - - Length - - - - - TextLabel12 - - - Position - - - - - - Keep - - - - - Plus - - - - - Minus - - - - - Multiply - - - - - Divide - - - - - Fix - - - - - Value 1 - - - - - Invert - - - - - Dyn - - - - - Random - - - - procVal2Op - - - - - - Keep - - - - - Plus - - - - - Minus - - - - - Multiply - - - - - Divide - - - - - Fix - - - - procLenOp - - - - - procVal1b - - - 9999 - - - - - procVal2b - - - 9999 - - - - - procVal1a - - - 99999999 - - - - - - Keep - - - - - Plus - - - - - Minus - - - - - Multiply - - - - - Divide - - - - procPosOp - - - - - procVal2a - - - 99999999 - - - - - procLenA - - - 99999999 - - - - - procPosA - - - 99999999 - - - - - - - GroupBox3 - - - Filter + + 11 + + + + + 6 + + + 0 + + + + + Name: - - - unnamed - - - 11 - - - 6 - - - - - All - - - - - Equal - - - - - Unequal - - - - selEventOp - - - - - - Note - - - - - Poly Pressure - - - - - Control Change - - - - - Aftertouch - - - - - Pitch Bend - - - - - NRPN - - - - - RPN - - - - selType - - - - - TextLabel3 - - - Value 2 - - - - - TextLabel2 - - - Value 1 - - - - - TextLabel1 - - - Event Type - - - - - - Ignore - - - - - Equal - - - - - Unequal - - - - - Higher - - - - - Lower - - - - - Inside - - - - - Outside - - - - selVal1Op - - - - - TextLabel10 - - - Length - - - - - TextLabel11 - - - Bar Range - - - - - - Ignore - - - - - Equal - - - - - Unequal - - - - - Higher - - - - - Lower - - - - - Inside - - - - - Outside - - - - selVal2Op - - - - - - Ignore - - - - - Equal - - - - - Unequal - - - - - Higher - - - - - Lower - - - - - Inside - - - - - Outside - - - - selLenOp - - - - - - Ignore - - - - - Equal - - - - - Unequal - - - - - Higher - - - - - Lower - - - - - Inside - - - - - Outside - - - - selRangeOp - - - - - selVal1b - - - 127 - - - - - selLenA - - - 127 - - - - - selLenB - - - 127 - - - - - selVal2a - - - 127 - - - - - selVal2b - - - 127 - - - - - selVal1a - - - 127 - - - - - selBarB - - - 3 - - - - - selBarA - - - 1000 - - - 3 - - - - - - - Layout6 + + false - - - unnamed - - - 0 - - - 6 - - - - GroupBox6_2 - - - Preset - - - - unnamed - - - 11 - - - 6 - - - - Layout5_3 - - - - unnamed - - - 0 - - - 6 - - - - TextLabel13_2 - - - Name: - - - - - nameEntry - - - - - - - TextLabel14_2 - - - Comment: - - - - - commentEntry - - - - - - - GroupBox5_2 - - - Range - - - - unnamed - - - 11 - - - 6 - - - - processAll - - - process all events - - - - - selectedTracks - - - selected tracks - - - - - insideLoop - - - inside loop - - - - - - - GroupBox7_2 - - - Function - - - - unnamed - - - 11 - - - 6 - - - - - Select - - - - - Quantize - - - - - Delete - - - - - Transform - - - - - Insert - - - - - Copy - - - - - Extract - - - - funcOp - - - - - TextLabel9_2 - - - Quantize Value - - - - - funcQuantVal - - - - - - - - - - - SpinBoxFP -
spinboxFP.h
- - 50 - 20 - - 0 - - 5 - 5 - 0 - 0 - - image0 - valueChanged(int value) - valueChanged(const QString&) - setValue(int) - setPrefix(const QString&) - setSuffix(const QString&) - stepUp() - stepDown() - precision - minValue - maxValue -
- - ComboQuant -
comboQuant.h
- - 50 - 20 - - 0 - - 5 - 5 - 0 - 0 - - image0 - valueChanged(int) - setValue(int) -
-
- - - 789c6dd2c10ac2300c00d07bbf2234b7229d1be245fc04c5a3201e4615f430059d0711ff5ddb2e6bb236ec90eed134cb5a19d8ef36602af5ecdbfeeac05dda0798d3abebde87e3faa374d3807fa0d633a52d38d8de6f679fe33fc776e196f53cd010188256a3600a292882096246517815ca99884606e18044a3a40d91824820924265a7923a2e8bcd05f33db1173e002913175f2a6be6d3294871a2d95fa00e8a94ee017b69d339d90df1e77c57ea072ede6758 - - - - - buttonOk - clicked() - MidiTransformDialogBase - accept() - - - buttonCancel - clicked() - MidiTransformDialogBase - reject() - - - - selEventOp - selType - selVal1Op - selVal1a - selVal1b - selVal2Op - selVal2a - selVal2b - selLenOp - selLenA - selLenB - selRangeOp - procEventOp - procType - procVal1Op - procVal1b - procVal2Op - procVal2b - procLenOp - procPosOp - nameEntry - commentEntry - processAll - selectedTracks - insideLoop - funcOp - presetList - buttonNew - buttonDelete - buttonApply - buttonOk - buttonCancel - - -
+
+ + + + + + + + + + Comment: + + + false + + + + + + + + + + + + + Range + + + + 6 + + + 11 + + + + + process all events + + + + + + + selected tracks + + + + + + + inside loop + + + + + + + + + + Function + + + + 6 + + + 11 + + + + + + Select + + + + + Quantize + + + + + Delete + + + + + Transform + + + + + Insert + + + + + Copy + + + + + Extract + + + + + + + + Quantize Value + + + false + + + + + + + + + + + + + + + + + SpinBoxFP + QWidget +
spinboxFP.h
+
+ + ComboQuant + QWidget +
comboQuant.h
+
+
+ + selEventOp + selType + selVal1Op + selVal1a + selVal1b + selVal2Op + selVal2a + selVal2b + selLenOp + selLenA + selLenB + selRangeOp + procEventOp + procType + procVal1Op + procVal1b + procVal2Op + procVal2b + procLenOp + procPosOp + nameEntry + commentEntry + processAll + selectedTracks + insideLoop + funcOp + presetList + buttonNew + buttonDelete + buttonApply + buttonOk + buttonCancel + + + + + buttonOk + clicked() + MidiTransformDialogBase + accept() + + + 20 + 20 + + + 20 + 20 + + + + + buttonCancel + clicked() + MidiTransformDialogBase + reject() + + + 20 + 20 + + + 20 + 20 + + + + +
-- cgit v1.2.3