diff options
Diffstat (limited to 'src/gui/dialogs/SimpleEventEditDialog.cpp')
-rw-r--r-- | src/gui/dialogs/SimpleEventEditDialog.cpp | 62 |
1 files changed, 31 insertions, 31 deletions
diff --git a/src/gui/dialogs/SimpleEventEditDialog.cpp b/src/gui/dialogs/SimpleEventEditDialog.cpp index b3009f6..41830be 100644 --- a/src/gui/dialogs/SimpleEventEditDialog.cpp +++ b/src/gui/dialogs/SimpleEventEditDialog.cpp @@ -24,7 +24,7 @@ #include "SimpleEventEditDialog.h" -#include <tqlayout.h> +#include <layout.h> #include "base/BaseProperties.h" #include "base/Event.h" @@ -76,16 +76,16 @@ SimpleEventEditDialog::SimpleEventEditDialog(TQWidget *parent, TQFrame *frame = new TQFrame(groupBox); - TQGridLayout *tqlayout = new TQGridLayout(frame, 7, 3, 5, 5); + TQGridLayout *layout = new TQGridLayout(frame, 7, 3, 5, 5); - tqlayout->addWidget(new TQLabel(i18n("Event type:"), frame), 0, 0); + layout->addWidget(new TQLabel(i18n("Event type:"), frame), 0, 0); if (inserting) { m_typeLabel = 0; m_typeCombo = new KComboBox(frame); - tqlayout->addWidget(m_typeCombo, 0, 1); + layout->addWidget(m_typeCombo, 0, 1); m_typeCombo->insertItem(strtoqstr(Note::EventType)); m_typeCombo->insertItem(strtoqstr(Controller::EventType)); @@ -111,15 +111,15 @@ SimpleEventEditDialog::SimpleEventEditDialog(TQWidget *parent, m_typeCombo = 0; m_typeLabel = new TQLabel(frame); - tqlayout->addWidget(m_typeLabel, 0, 1); + layout->addWidget(m_typeLabel, 0, 1); } m_timeLabel = new TQLabel(i18n("Absolute time:"), frame); - tqlayout->addWidget(m_timeLabel, 1, 0); + layout->addWidget(m_timeLabel, 1, 0); m_timeSpinBox = new TQSpinBox(INT_MIN, INT_MAX, Note(Note::Shortest).getDuration(), frame); m_timeEditButton = new TQPushButton("edit", frame); - tqlayout->addWidget(m_timeSpinBox, 1, 1); - tqlayout->addWidget(m_timeEditButton, 1, 2); + layout->addWidget(m_timeSpinBox, 1, 1); + layout->addWidget(m_timeEditButton, 1, 2); connect(m_timeSpinBox, TQT_SIGNAL(valueChanged(int)), TQT_SLOT(slotAbsoluteTimeChanged(int))); @@ -127,11 +127,11 @@ SimpleEventEditDialog::SimpleEventEditDialog(TQWidget *parent, TQT_SLOT(slotEditAbsoluteTime())); m_durationLabel = new TQLabel(i18n("Duration:"), frame); - tqlayout->addWidget(m_durationLabel, 2, 0); + layout->addWidget(m_durationLabel, 2, 0); m_durationSpinBox = new TQSpinBox(0, INT_MAX, Note(Note::Shortest).getDuration(), frame); m_durationEditButton = new TQPushButton("edit", frame); - tqlayout->addWidget(m_durationSpinBox, 2, 1); - tqlayout->addWidget(m_durationEditButton, 2, 2); + layout->addWidget(m_durationSpinBox, 2, 1); + layout->addWidget(m_durationEditButton, 2, 2); connect(m_durationSpinBox, TQT_SIGNAL(valueChanged(int)), TQT_SLOT(slotDurationChanged(int))); @@ -139,11 +139,11 @@ SimpleEventEditDialog::SimpleEventEditDialog(TQWidget *parent, TQT_SLOT(slotEditDuration())); m_pitchLabel = new TQLabel(i18n("Pitch:"), frame); - tqlayout->addWidget(m_pitchLabel, 3, 0); + layout->addWidget(m_pitchLabel, 3, 0); m_pitchSpinBox = new TQSpinBox(frame); m_pitchEditButton = new TQPushButton("edit", frame); - tqlayout->addWidget(m_pitchSpinBox, 3, 1); - tqlayout->addWidget(m_pitchEditButton, 3, 2); + layout->addWidget(m_pitchSpinBox, 3, 1); + layout->addWidget(m_pitchEditButton, 3, 2); connect(m_pitchSpinBox, TQT_SIGNAL(valueChanged(int)), TQT_SLOT(slotPitchChanged(int))); @@ -155,15 +155,15 @@ SimpleEventEditDialog::SimpleEventEditDialog(TQWidget *parent, m_controllerLabel = new TQLabel(i18n("Controller name:"), frame); m_controllerLabelValue = new TQLabel(i18n("<none>"), frame); - m_controllerLabelValue->tqsetAlignment(TQLabel::AlignRight); + m_controllerLabelValue->setAlignment(TQLabel::AlignRight); - tqlayout->addWidget(m_controllerLabel, 4, 0); - tqlayout->addWidget(m_controllerLabelValue, 4, 1); + layout->addWidget(m_controllerLabel, 4, 0); + layout->addWidget(m_controllerLabelValue, 4, 1); m_velocityLabel = new TQLabel(i18n("Velocity:"), frame); - tqlayout->addWidget(m_velocityLabel, 5, 0); + layout->addWidget(m_velocityLabel, 5, 0); m_velocitySpinBox = new TQSpinBox(frame); - tqlayout->addWidget(m_velocitySpinBox, 5, 1); + layout->addWidget(m_velocitySpinBox, 5, 1); connect(m_velocitySpinBox, TQT_SIGNAL(valueChanged(int)), TQT_SLOT(slotVelocityChanged(int))); @@ -172,14 +172,14 @@ SimpleEventEditDialog::SimpleEventEditDialog(TQWidget *parent, m_velocitySpinBox->setMaxValue(MidiMaxValue); m_metaLabel = new TQLabel(i18n("Meta string:"), frame); - tqlayout->addWidget(m_metaLabel, 6, 0); + layout->addWidget(m_metaLabel, 6, 0); m_metaEdit = new TQLineEdit(frame); - tqlayout->addWidget(m_metaEdit, 6, 1); + layout->addWidget(m_metaEdit, 6, 1); m_sysexLoadButton = new TQPushButton(i18n("Load data"), frame); - tqlayout->addWidget(m_sysexLoadButton, 6, 2); + layout->addWidget(m_sysexLoadButton, 6, 2); m_sysexSaveButton = new TQPushButton(i18n("Save data"), frame); - tqlayout->addWidget(m_sysexSaveButton, 4, 2); + layout->addWidget(m_sysexSaveButton, 4, 2); connect(m_metaEdit, TQT_SIGNAL(textChanged(const TQString &)), TQT_SLOT(slotMetaChanged(const TQString &))); @@ -193,21 +193,21 @@ SimpleEventEditDialog::SimpleEventEditDialog(TQWidget *parent, frame = new TQFrame(m_notationGroupBox); - tqlayout = new TQGridLayout(frame, 3, 3, 5, 5); + layout = new TQGridLayout(frame, 3, 3, 5, 5); m_lockNotationValues = new TQCheckBox(i18n("Lock to changes in performed values"), frame); - tqlayout->addMultiCellWidget(m_lockNotationValues, 0, 0, 0, 2); + layout->addMultiCellWidget(m_lockNotationValues, 0, 0, 0, 2); m_lockNotationValues->setChecked(true); connect(m_lockNotationValues, TQT_SIGNAL(released()), TQT_SLOT(slotLockNotationChanged())); m_notationTimeLabel = new TQLabel(i18n("Notation time:"), frame); - tqlayout->addWidget(m_notationTimeLabel, 1, 0); + layout->addWidget(m_notationTimeLabel, 1, 0); m_notationTimeSpinBox = new TQSpinBox(INT_MIN, INT_MAX, Note(Note::Shortest).getDuration(), frame); m_notationTimeEditButton = new TQPushButton("edit", frame); - tqlayout->addWidget(m_notationTimeSpinBox, 1, 1); - tqlayout->addWidget(m_notationTimeEditButton, 1, 2); + layout->addWidget(m_notationTimeSpinBox, 1, 1); + layout->addWidget(m_notationTimeEditButton, 1, 2); connect(m_notationTimeSpinBox, TQT_SIGNAL(valueChanged(int)), TQT_SLOT(slotNotationAbsoluteTimeChanged(int))); @@ -215,11 +215,11 @@ SimpleEventEditDialog::SimpleEventEditDialog(TQWidget *parent, TQT_SLOT(slotEditNotationAbsoluteTime())); m_notationDurationLabel = new TQLabel(i18n("Notation duration:"), frame); - tqlayout->addWidget(m_notationDurationLabel, 2, 0); + layout->addWidget(m_notationDurationLabel, 2, 0); m_notationDurationSpinBox = new TQSpinBox(0, INT_MAX, Note(Note::Shortest).getDuration(), frame); m_notationDurationEditButton = new TQPushButton("edit", frame); - tqlayout->addWidget(m_notationDurationSpinBox, 2, 1); - tqlayout->addWidget(m_notationDurationEditButton, 2, 2); + layout->addWidget(m_notationDurationSpinBox, 2, 1); + layout->addWidget(m_notationDurationEditButton, 2, 2); connect(m_notationDurationSpinBox, TQT_SIGNAL(valueChanged(int)), TQT_SLOT(slotNotationDurationChanged(int))); |