diff options
Diffstat (limited to 'src/gui/dialogs/ManageMetronomeDialog.cpp')
-rw-r--r-- | src/gui/dialogs/ManageMetronomeDialog.cpp | 102 |
1 files changed, 51 insertions, 51 deletions
diff --git a/src/gui/dialogs/ManageMetronomeDialog.cpp b/src/gui/dialogs/ManageMetronomeDialog.cpp index a0f73d6..0b51e26 100644 --- a/src/gui/dialogs/ManageMetronomeDialog.cpp +++ b/src/gui/dialogs/ManageMetronomeDialog.cpp @@ -24,7 +24,7 @@ #include "ManageMetronomeDialog.h" -#include <qlayout.h> +#include <tqlayout.h> #include <klocale.h> #include "misc/Debug.h" @@ -44,42 +44,42 @@ #include "sound/MappedEvent.h" #include <kcombobox.h> #include <kdialogbase.h> -#include <qcheckbox.h> -#include <qframe.h> -#include <qgroupbox.h> -#include <qhbox.h> -#include <qlabel.h> -#include <qspinbox.h> -#include <qstring.h> -#include <qvbox.h> -#include <qwidget.h> +#include <tqcheckbox.h> +#include <tqframe.h> +#include <tqgroupbox.h> +#include <tqhbox.h> +#include <tqlabel.h> +#include <tqspinbox.h> +#include <tqstring.h> +#include <tqvbox.h> +#include <tqwidget.h> namespace Rosegarden { -ManageMetronomeDialog::ManageMetronomeDialog(QWidget *parent, +ManageMetronomeDialog::ManageMetronomeDialog(TQWidget *parent, RosegardenGUIDoc *doc) : KDialogBase(parent, 0, true, i18n("Metronome"), Ok | Apply | Close | Help), m_doc(doc) { setHelp("studio-metronome"); - QHBox *hbox = makeHBoxMainWidget(); + TQHBox *hbox = makeHBoxMainWidget(); // I think having this as well probably just overcomplicates things m_instrumentParameterBox = 0; // m_instrumentParameterBox = new InstrumentParameterBox(doc, hbox); - QVBox *vbox = new QVBox(hbox); + TQVBox *vbox = new TQVBox(hbox); - QGroupBox *deviceBox = new QGroupBox + TQGroupBox *deviceBox = new QGroupBox (1, Horizontal, i18n("Metronome Instrument"), vbox); - QFrame *frame = new QFrame(deviceBox); - QGridLayout *layout = new QGridLayout(frame, 2, 2, 10, 5); + TQFrame *frame = new TQFrame(deviceBox); + TQGridLayout *layout = new TQGridLayout(frame, 2, 2, 10, 5); - layout->addWidget(new QLabel(i18n("Device"), frame), 0, 0); + layout->addWidget(new TQLabel(i18n("Device"), frame), 0, 0); m_metronomeDevice = new KComboBox(frame); layout->addWidget(m_metronomeDevice, 0, 1); @@ -94,8 +94,8 @@ ManageMetronomeDialog::ManageMetronomeDialog(QWidget *parent, dynamic_cast<MidiDevice*>(*it); if (dev && dev->getDirection() == MidiDevice::Play) { - QString label = strtoqstr(dev->getName()); - QString connection = strtoqstr(dev->getConnection()); + TQString label = strtoqstr(dev->getName()); + TQString connection = strtoqstr(dev->getConnection()); label += " - "; if (connection == "") label += i18n("No connection"); @@ -108,76 +108,76 @@ ManageMetronomeDialog::ManageMetronomeDialog(QWidget *parent, } } - layout->addWidget(new QLabel(i18n("Instrument"), frame), 1, 0); + layout->addWidget(new TQLabel(i18n("Instrument"), frame), 1, 0); m_metronomeInstrument = new KComboBox(frame); - connect(m_metronomeInstrument, SIGNAL(activated(int)), this, SLOT(slotSetModified())); - connect(m_metronomeInstrument, SIGNAL(activated(int)), this, SLOT(slotInstrumentChanged(int))); + connect(m_metronomeInstrument, TQT_SIGNAL(activated(int)), this, TQT_SLOT(slotSetModified())); + connect(m_metronomeInstrument, TQT_SIGNAL(activated(int)), this, TQT_SLOT(slotInstrumentChanged(int))); layout->addWidget(m_metronomeInstrument, 1, 1); - QGroupBox *beatBox = new QGroupBox + TQGroupBox *beatBox = new QGroupBox (1, Horizontal, i18n("Beats"), vbox); - frame = new QFrame(beatBox); - layout = new QGridLayout(frame, 4, 2, 10, 5); + frame = new TQFrame(beatBox); + layout = new TQGridLayout(frame, 4, 2, 10, 5); - layout->addWidget(new QLabel(i18n("Resolution"), frame), 0, 0); + layout->addWidget(new TQLabel(i18n("Resolution"), frame), 0, 0); m_metronomeResolution = new KComboBox(frame); m_metronomeResolution->insertItem(i18n("None")); m_metronomeResolution->insertItem(i18n("Bars only")); m_metronomeResolution->insertItem(i18n("Bars and beats")); m_metronomeResolution->insertItem(i18n("Bars, beats, and divisions")); - connect(m_metronomeResolution, SIGNAL(activated(int)), this, SLOT(slotResolutionChanged(int))); + connect(m_metronomeResolution, TQT_SIGNAL(activated(int)), this, TQT_SLOT(slotResolutionChanged(int))); layout->addWidget(m_metronomeResolution, 0, 1); - layout->addWidget(new QLabel(i18n("Bar velocity"), frame), 1, 0); - m_metronomeBarVely = new QSpinBox(frame); + layout->addWidget(new TQLabel(i18n("Bar velocity"), frame), 1, 0); + m_metronomeBarVely = new TQSpinBox(frame); m_metronomeBarVely->setMinValue(0); m_metronomeBarVely->setMaxValue(127); - connect(m_metronomeBarVely, SIGNAL(valueChanged(int)), this, SLOT(slotSetModified())); + connect(m_metronomeBarVely, TQT_SIGNAL(valueChanged(int)), this, TQT_SLOT(slotSetModified())); layout->addWidget(m_metronomeBarVely, 1, 1); - layout->addWidget(new QLabel(i18n("Beat velocity"), frame), 2, 0); - m_metronomeBeatVely = new QSpinBox(frame); + layout->addWidget(new TQLabel(i18n("Beat velocity"), frame), 2, 0); + m_metronomeBeatVely = new TQSpinBox(frame); m_metronomeBeatVely->setMinValue(0); m_metronomeBeatVely->setMaxValue(127); - connect(m_metronomeBeatVely, SIGNAL(valueChanged(int)), this, SLOT(slotSetModified())); + connect(m_metronomeBeatVely, TQT_SIGNAL(valueChanged(int)), this, TQT_SLOT(slotSetModified())); layout->addWidget(m_metronomeBeatVely, 2, 1); - layout->addWidget(new QLabel(i18n("Sub-beat velocity"), frame), 3, 0); - m_metronomeSubBeatVely = new QSpinBox(frame); + layout->addWidget(new TQLabel(i18n("Sub-beat velocity"), frame), 3, 0); + m_metronomeSubBeatVely = new TQSpinBox(frame); m_metronomeSubBeatVely->setMinValue(0); m_metronomeSubBeatVely->setMaxValue(127); - connect(m_metronomeSubBeatVely, SIGNAL(valueChanged(int)), this, SLOT(slotSetModified())); + connect(m_metronomeSubBeatVely, TQT_SIGNAL(valueChanged(int)), this, TQT_SLOT(slotSetModified())); layout->addWidget(m_metronomeSubBeatVely, 3, 1); - vbox = new QVBox(hbox); + vbox = new TQVBox(hbox); m_metronomePitch = new PitchChooser(i18n("Pitch"), vbox, 60); - connect(m_metronomePitch, SIGNAL(pitchChanged(int)), this, SLOT(slotPitchChanged(int))); - connect(m_metronomePitch, SIGNAL(preview(int)), this, SLOT(slotPreviewPitch(int))); + connect(m_metronomePitch, TQT_SIGNAL(pitchChanged(int)), this, TQT_SLOT(slotPitchChanged(int))); + connect(m_metronomePitch, TQT_SIGNAL(preview(int)), this, TQT_SLOT(slotPreviewPitch(int))); m_metronomePitchSelector = new KComboBox(m_metronomePitch); m_metronomePitchSelector->insertItem(i18n("for Bar")); m_metronomePitchSelector->insertItem(i18n("for Beat")); m_metronomePitchSelector->insertItem(i18n("for Sub-beat")); - connect(m_metronomePitchSelector, SIGNAL(activated(int)), this, SLOT(slotPitchSelectorChanged(int))); + connect(m_metronomePitchSelector, TQT_SIGNAL(activated(int)), this, TQT_SLOT(slotPitchSelectorChanged(int))); - QGroupBox *enableBox = new QGroupBox + TQGroupBox *enableBox = new QGroupBox (1, Horizontal, i18n("Metronome Activated"), vbox); - m_playEnabled = new QCheckBox(i18n("Playing"), enableBox); - m_recordEnabled = new QCheckBox(i18n("Recording"), enableBox); - connect(m_playEnabled, SIGNAL(clicked()), this, SLOT(slotSetModified())); - connect(m_recordEnabled, SIGNAL(clicked()), this, SLOT(slotSetModified())); + m_playEnabled = new TQCheckBox(i18n("Playing"), enableBox); + m_recordEnabled = new TQCheckBox(i18n("Recording"), enableBox); + connect(m_playEnabled, TQT_SIGNAL(clicked()), this, TQT_SLOT(slotSetModified())); + connect(m_recordEnabled, TQT_SIGNAL(clicked()), this, TQT_SLOT(slotSetModified())); // populate the dialog populate(m_metronomeDevice->currentItem()); // connect up the device list - connect(m_metronomeDevice, SIGNAL(activated(int)), - this, SLOT(populate(int))); + connect(m_metronomeDevice, TQT_SIGNAL(activated(int)), + this, TQT_SLOT(populate(int))); // connect up the device list - connect(m_metronomeDevice, SIGNAL(activated(int)), - this, SLOT(slotSetModified())); + connect(m_metronomeDevice, TQT_SIGNAL(activated(int)), + this, TQT_SLOT(slotSetModified())); setModified(false); } @@ -245,8 +245,8 @@ ManageMetronomeDialog::populate(int deviceIndex) int position = 0; int count = 0; for (iit = list.begin(); iit != list.end(); ++iit) { - QString iname(strtoqstr((*iit)->getPresentationName())); - QString pname(strtoqstr((*iit)->getProgramName())); + TQString iname(strtoqstr((*iit)->getPresentationName())); + TQString pname(strtoqstr((*iit)->getProgramName())); if (pname != "") iname += " (" + pname + ")"; |