diff options
author | Timothy Pearson <kb9vqf@pearsoncomputing.net> | 2011-12-21 14:07:05 -0600 |
---|---|---|
committer | Timothy Pearson <kb9vqf@pearsoncomputing.net> | 2011-12-21 14:07:05 -0600 |
commit | c18386d69b76ef0218b5f0a08ca773fa824322b6 (patch) | |
tree | 0bea571897791e4a9ae01e42d0923c3c7baf0bda /src/gui/configuration/MIDIConfigurationPage.cpp | |
parent | 97f1c43c867725d49f3943a68ef08d7e71767e99 (diff) | |
download | rosegarden-c18386d69b76ef0218b5f0a08ca773fa824322b6.tar.gz rosegarden-c18386d69b76ef0218b5f0a08ca773fa824322b6.zip |
Rename obsolete tq methods to standard names
Diffstat (limited to 'src/gui/configuration/MIDIConfigurationPage.cpp')
-rw-r--r-- | src/gui/configuration/MIDIConfigurationPage.cpp | 66 |
1 files changed, 33 insertions, 33 deletions
diff --git a/src/gui/configuration/MIDIConfigurationPage.cpp b/src/gui/configuration/MIDIConfigurationPage.cpp index 44c4c49..84d9956 100644 --- a/src/gui/configuration/MIDIConfigurationPage.cpp +++ b/src/gui/configuration/MIDIConfigurationPage.cpp @@ -78,38 +78,38 @@ MIDIConfigurationPage::MIDIConfigurationPage( // ---------------- General tab ------------------ // TQFrame *frame = new TQFrame(m_tabWidget); - TQGridLayout *tqlayout = new TQGridLayout(frame, 9, 4, 10, 5); + TQGridLayout *layout = new TQGridLayout(frame, 9, 4, 10, 5); int row = 0; - tqlayout->setRowSpacing(row, 15); + layout->setRowSpacing(row, 15); ++row; TQLabel *label = 0; m_cfg->setGroup(GeneralOptionsConfigGroup); - tqlayout->addMultiCellWidget(new TQLabel(i18n("Base octave number for MIDI pitch display"), + layout->addMultiCellWidget(new TQLabel(i18n("Base octave number for MIDI pitch display"), frame), row, row, 0, 1); m_midiPitchOctave = new TQSpinBox(frame); m_midiPitchOctave->setMaxValue(10); m_midiPitchOctave->setMinValue( -10); m_midiPitchOctave->setValue(m_cfg->readNumEntry("midipitchoctave", -2)); - tqlayout->addMultiCellWidget(m_midiPitchOctave, row, row, 2, 3); + layout->addMultiCellWidget(m_midiPitchOctave, row, row, 2, 3); ++row; - tqlayout->setRowSpacing(row, 20); + layout->setRowSpacing(row, 20); ++row; m_cfg->setGroup(GeneralOptionsConfigGroup); - tqlayout->addMultiCellWidget(new TQLabel(i18n("Always use default studio when loading files"), + layout->addMultiCellWidget(new TQLabel(i18n("Always use default studio when loading files"), frame), row, row, 0, 1); m_studio = new TQCheckBox(frame); m_studio->setChecked(m_cfg->readBoolEntry("alwaysusedefaultstudio", false)); - tqlayout->addWidget(m_studio, row, 2); + layout->addWidget(m_studio, row, 2); ++row; // Send Controllers @@ -121,14 +121,14 @@ MIDIConfigurationPage::MIDIConfigurationPage( TQString controllerTip = i18n("Rosegarden can send all MIDI Controllers (Pan, Reverb etc) to all MIDI devices every\ntime you hit play if you so wish. Please note that this option will usually incur a\ndelay at the start of playback due to the amount of data being transmitted."); TQToolTip::add (label, controllerTip); - tqlayout->addMultiCellWidget(label, row, row, 0, 1); + layout->addMultiCellWidget(label, row, row, 0, 1); m_sendControllersAtPlay = new TQCheckBox(frame); bool sendControllers = m_cfg->readBoolEntry("alwayssendcontrollers", false); m_sendControllersAtPlay->setChecked(sendControllers); TQToolTip::add (m_sendControllersAtPlay, controllerTip); - tqlayout->addWidget(m_sendControllersAtPlay, row, 2); + layout->addWidget(m_sendControllersAtPlay, row, 2); ++row; // Timer selection @@ -136,10 +136,10 @@ MIDIConfigurationPage::MIDIConfigurationPage( m_cfg->setGroup(SequencerOptionsConfigGroup); label = new TQLabel(i18n("Sequencer timing source"), frame); - tqlayout->addMultiCellWidget(label, row, row, 0, 1); + layout->addMultiCellWidget(label, row, row, 0, 1); m_timer = new KComboBox(frame); - tqlayout->addMultiCellWidget(m_timer, row, row, 2, 3); + layout->addMultiCellWidget(m_timer, row, row, 2, 3); TQStringList timers = m_doc->getTimers(); m_origTimer = m_doc->getCurrentTimer(); @@ -153,7 +153,7 @@ MIDIConfigurationPage::MIDIConfigurationPage( ++row; - tqlayout->setRowSpacing(row, 20); + layout->setRowSpacing(row, 20); ++row; m_cfg->setGroup(SequencerOptionsConfigGroup); @@ -163,25 +163,25 @@ MIDIConfigurationPage::MIDIConfigurationPage( TQLabel* lbl = new TQLabel(i18n("Load SoundFont to SoundBlaster card at startup"), frame); TQString tooltip = i18n("Check this box to enable soundfont loading on EMU10K-based cards when Rosegarden is launched"); TQToolTip::add(lbl, tooltip); - tqlayout->addMultiCellWidget(lbl, row, row, 0, 1); + layout->addMultiCellWidget(lbl, row, row, 0, 1); m_sfxLoadEnabled = new TQCheckBox(frame); - tqlayout->addWidget(m_sfxLoadEnabled, row, 2); + layout->addWidget(m_sfxLoadEnabled, row, 2); TQToolTip::add(m_sfxLoadEnabled, tooltip); ++row; - tqlayout->addWidget(new TQLabel(i18n("Path to 'asfxload' or 'sfxload' command"), frame), row, 0); + layout->addWidget(new TQLabel(i18n("Path to 'asfxload' or 'sfxload' command"), frame), row, 0); m_sfxLoadPath = new TQLineEdit(m_cfg->readEntry("sfxloadpath", "/bin/sfxload"), frame); - tqlayout->addMultiCellWidget(m_sfxLoadPath, row, row, 1, 2); + layout->addMultiCellWidget(m_sfxLoadPath, row, row, 1, 2); m_sfxLoadChoose = new TQPushButton("Choose...", frame); - tqlayout->addWidget(m_sfxLoadChoose, row, 3); + layout->addWidget(m_sfxLoadChoose, row, 3); ++row; - tqlayout->addWidget(new TQLabel(i18n("SoundFont"), frame), row, 0); + layout->addWidget(new TQLabel(i18n("SoundFont"), frame), row, 0); m_soundFontPath = new TQLineEdit(m_cfg->readEntry("soundfontpath", ""), frame); - tqlayout->addMultiCellWidget(m_soundFontPath, row, row, 1, 2); + layout->addMultiCellWidget(m_soundFontPath, row, row, 1, 2); m_soundFontChoose = new TQPushButton("Choose...", frame); - tqlayout->addWidget(m_soundFontChoose, row, 3); + layout->addWidget(m_soundFontChoose, row, 3); ++row; bool sfxLoadEnabled = m_cfg->readBoolEntry("sfxloadenabled", false); @@ -202,7 +202,7 @@ MIDIConfigurationPage::MIDIConfigurationPage( connect(m_soundFontChoose, TQT_SIGNAL(clicked()), this, TQT_SLOT(slotSoundFontChoose())); - tqlayout->setRowStretch(row, 10); + layout->setRowStretch(row, 10); addTab(frame, i18n("General")); @@ -211,19 +211,19 @@ MIDIConfigurationPage::MIDIConfigurationPage( // -------------- Synchronisation tab ----------------- // frame = new TQFrame(m_tabWidget); - tqlayout = new TQGridLayout(frame, 7, 2, 10, 5); + layout = new TQGridLayout(frame, 7, 2, 10, 5); row = 0; - tqlayout->setRowSpacing(row, 15); + layout->setRowSpacing(row, 15); ++row; // MIDI Clock and System Realtime Messages // label = new TQLabel(i18n("MIDI Clock and System messages"), frame); - tqlayout->addWidget(label, row, 0); + layout->addWidget(label, row, 0); m_midiSync = new KComboBox(frame); - tqlayout->addWidget(m_midiSync, row, 1); + layout->addWidget(m_midiSync, row, 1); m_midiSync->insertItem(i18n("Off")); m_midiSync->insertItem(i18n("Send MIDI Clock, Start and Stop")); @@ -239,10 +239,10 @@ MIDIConfigurationPage::MIDIConfigurationPage( // MMC Transport // label = new TQLabel(i18n("MIDI Machine Control mode"), frame); - tqlayout->addWidget(label, row, 0); + layout->addWidget(label, row, 0); m_mmcTransport = new KComboBox(frame); - tqlayout->addWidget(m_mmcTransport, row, 1); //, TQt::AlignHCenter); + layout->addWidget(m_mmcTransport, row, 1); //, TQt::AlignHCenter); m_mmcTransport->insertItem(i18n("Off")); m_mmcTransport->insertItem(i18n("MMC Master")); @@ -258,10 +258,10 @@ MIDIConfigurationPage::MIDIConfigurationPage( // MTC transport // label = new TQLabel(i18n("MIDI Time Code mode"), frame); - tqlayout->addWidget(label, row, 0); + layout->addWidget(label, row, 0); m_mtcTransport = new KComboBox(frame); - tqlayout->addWidget(m_mtcTransport, row, 1); + layout->addWidget(m_mtcTransport, row, 1); m_mtcTransport->insertItem(i18n("Off")); m_mtcTransport->insertItem(i18n("MTC Master")); @@ -276,18 +276,18 @@ MIDIConfigurationPage::MIDIConfigurationPage( TQHBox *hbox = new TQHBox(frame); hbox->setSpacing(5); - tqlayout->addMultiCellWidget(hbox, row, row, 0, 1); + layout->addMultiCellWidget(hbox, row, row, 0, 1); label = new TQLabel(i18n("Automatically connect sync output to all devices in use"), hbox); -// tqlayout->addWidget(label, row, 0); +// layout->addWidget(label, row, 0); m_midiSyncAuto = new TQCheckBox(hbox); -// tqlayout->addWidget(m_midiSyncAuto, row, 1); +// layout->addWidget(m_midiSyncAuto, row, 1); m_midiSyncAuto->setChecked(m_cfg->readBoolEntry("midisyncautoconnect", false)); ++row; - tqlayout->setRowStretch(row, 10); + layout->setRowStretch(row, 10); addTab(frame, i18n("MIDI Sync")); } |