diff options
author | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2010-09-06 20:59:29 +0000 |
---|---|---|
committer | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2010-09-06 20:59:29 +0000 |
commit | 11f31c37e5fa4889d9989f10272f44845449cb7b (patch) | |
tree | 4383da04a76c497950d957fc6120b0fd0d9082c2 /src/gui/dialogs | |
parent | 832eb69d571e8e518db45d0c0e6fbc0f00690209 (diff) | |
download | rosegarden-11f31c37e5fa4889d9989f10272f44845449cb7b.tar.gz rosegarden-11f31c37e5fa4889d9989f10272f44845449cb7b.zip |
Initial TQt conversion
git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/applications/rosegarden@1172292 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'src/gui/dialogs')
96 files changed, 2101 insertions, 2101 deletions
diff --git a/src/gui/dialogs/AddTracksDialog.cpp b/src/gui/dialogs/AddTracksDialog.cpp index 67e5412..498e010 100644 --- a/src/gui/dialogs/AddTracksDialog.cpp +++ b/src/gui/dialogs/AddTracksDialog.cpp @@ -27,12 +27,12 @@ #include <klocale.h> #include <kdialogbase.h> -#include <qhbox.h> -#include <qlabel.h> -#include <qspinbox.h> +#include <tqhbox.h> +#include <tqlabel.h> +#include <tqspinbox.h> #include <kcombobox.h> -#include <qvbox.h> -#include <qwidget.h> +#include <tqvbox.h> +#include <tqwidget.h> #include <kapp.h> #include <kconfig.h> @@ -42,24 +42,24 @@ namespace Rosegarden { -AddTracksDialog::AddTracksDialog(QWidget *parent, int currentTrack) : +AddTracksDialog::AddTracksDialog(TQWidget *parent, int currentTrack) : KDialogBase(parent, 0, true, i18n("Add Tracks"), Ok | Cancel), m_currentTrack(currentTrack) { - QVBox *vBox = makeVBoxMainWidget(); + TQVBox *vBox = makeVBoxMainWidget(); - QHBox *countBox = new QHBox(vBox); + TQHBox *countBox = new TQHBox(vBox); countBox->setSpacing(4); - new QLabel(i18n("How many tracks do you want to add?"), countBox); - m_count = new QSpinBox(countBox); + new TQLabel(i18n("How many tracks do you want to add?"), countBox); + m_count = new TQSpinBox(countBox); m_count->setMinValue(1); m_count->setMaxValue(32); m_count->setValue(1); - QHBox *posBox = new QHBox(vBox); + TQHBox *posBox = new TQHBox(vBox); posBox->setSpacing(4); - new QLabel(i18n("Add tracks"), posBox); + new TQLabel(i18n("Add tracks"), posBox); m_position = new KComboBox(posBox); m_position->insertItem(i18n("At the top")); m_position->insertItem(i18n("Above the current selected track")); diff --git a/src/gui/dialogs/AddTracksDialog.h b/src/gui/dialogs/AddTracksDialog.h index 9930e46..495acfa 100644 --- a/src/gui/dialogs/AddTracksDialog.h +++ b/src/gui/dialogs/AddTracksDialog.h @@ -27,9 +27,9 @@ #include <kdialogbase.h> -class QWidget; -class QSpinBox; -class QComboBox; +class TQWidget; +class TQSpinBox; +class TQComboBox; namespace Rosegarden { @@ -39,15 +39,15 @@ class AddTracksDialog : public KDialogBase Q_OBJECT public: - AddTracksDialog(QWidget *parent, int currentTrack = -1); + AddTracksDialog(TQWidget *parent, int currentTrack = -1); int getTracks(); int getInsertPosition(); protected: int m_currentTrack; - QSpinBox *m_count; - QComboBox *m_position; + TQSpinBox *m_count; + TQComboBox *m_position; }; diff --git a/src/gui/dialogs/AudioManagerDialog.cpp b/src/gui/dialogs/AudioManagerDialog.cpp index 5982632..a5c326c 100644 --- a/src/gui/dialogs/AudioManagerDialog.cpp +++ b/src/gui/dialogs/AudioManagerDialog.cpp @@ -67,23 +67,23 @@ #include <kurl.h> #include <kxmlguiclient.h> #include <kio/netaccess.h> -#include <qaccel.h> -#include <qcstring.h> -#include <qdatastream.h> -#include <qdialog.h> -#include <qdragobject.h> -#include <qfile.h> -#include <qfileinfo.h> -#include <qiconset.h> -#include <qlabel.h> -#include <qlistview.h> -#include <qpainter.h> -#include <qpixmap.h> -#include <qstring.h> -#include <qstrlist.h> -#include <qtimer.h> -#include <qvbox.h> -#include <qwidget.h> +#include <tqaccel.h> +#include <tqcstring.h> +#include <tqdatastream.h> +#include <tqdialog.h> +#include <tqdragobject.h> +#include <tqfile.h> +#include <tqfileinfo.h> +#include <tqiconset.h> +#include <tqlabel.h> +#include <tqlistview.h> +#include <tqpainter.h> +#include <tqpixmap.h> +#include <tqstring.h> +#include <tqstrlist.h> +#include <tqtimer.h> +#include <tqvbox.h> +#include <tqwidget.h> namespace Rosegarden @@ -93,29 +93,29 @@ const int AudioManagerDialog::m_maxPreviewWidth = 100; const int AudioManagerDialog::m_previewHeight = 30; const char* const AudioManagerDialog::m_listViewLayoutName = "AudioManagerDialog Layout"; -AudioManagerDialog::AudioManagerDialog(QWidget *parent, +AudioManagerDialog::AudioManagerDialog(TQWidget *parent, RosegardenGUIDoc *doc): KMainWindow(parent, "audioManagerDialog"), m_doc(doc), m_playingAudioFile(0), m_audioPlayingDialog(0), - m_playTimer(new QTimer(this)), + m_playTimer(new TQTimer(this)), m_audiblePreview(true) { setCaption(i18n("Audio File Manager")); setWFlags(WDestructiveClose); - QVBox *box = new QVBox(this); + TQVBox *box = new TQVBox(this); setCentralWidget(box); box->setMargin(10); box->setSpacing(5); m_sampleRate = 0; - QCString replyType; - QByteArray replyData; + TQCString replyType; + TQByteArray replyData; if (rgapp->sequencerCall("getSampleRate()", replyType, replyData)) { - QDataStream streamIn(replyData, IO_ReadOnly); + TQDataStream streamIn(replyData, IO_ReadOnly); unsigned int result; streamIn >> result; m_sampleRate = result; @@ -123,54 +123,54 @@ AudioManagerDialog::AudioManagerDialog(QWidget *parent, m_fileList = new AudioListView(box); - m_wrongSampleRates = new QLabel(i18n("* Some audio files are encoded at a sample rate different from that of the JACK audio server.\nRosegarden will play them at the correct speed, but they will sound terrible.\nPlease consider resampling such files externally, or adjusting the sample rate of the JACK server."), box); + m_wrongSampleRates = new TQLabel(i18n("* Some audio files are encoded at a sample rate different from that of the JACK audio server.\nRosegarden will play them at the correct speed, but they will sound terrible.\nPlease consider resampling such files externally, or adjusting the sample rate of the JACK server."), box); m_wrongSampleRates->hide(); - QString pixmapDir = KGlobal::dirs()->findResource("appdata", "pixmaps/"); - QIconSet icon(QPixmap(pixmapDir + "/toolbar/transport-play.xpm")); + TQString pixmapDir = KGlobal::dirs()->findResource("appdata", "pixmaps/"); + TQIconSet icon(TQPixmap(pixmapDir + "/toolbar/transport-play.xpm")); new KAction(i18n("&Add Audio File..."), "fileopen", 0, this, - SLOT(slotAdd()), actionCollection(), "add_audio"); + TQT_SLOT(slotAdd()), actionCollection(), "add_audio"); new KAction(i18n("&Unload Audio File"), "editdelete", 0, this, - SLOT(slotRemove()), + TQT_SLOT(slotRemove()), actionCollection(), "remove_audio"); - icon = QIconSet(QPixmap(pixmapDir + "/toolbar/transport-play.xpm")); + icon = TQIconSet(TQPixmap(pixmapDir + "/toolbar/transport-play.xpm")); new KAction(i18n("&Play Preview"), icon, 0, this, - SLOT(slotPlayPreview()), + TQT_SLOT(slotPlayPreview()), actionCollection(), "preview_audio"); /*!!! Not actually implemented -- this never worked right! new KAction(i18n("Re&label"), 0, 0, this, - SLOT(slotRename()), + TQT_SLOT(slotRename()), actionCollection(), "rename_audio"); */ - icon = QIconSet(QPixmap(pixmapDir + "/toolbar/insert_audio_into_track.xpm")); + icon = TQIconSet(TQPixmap(pixmapDir + "/toolbar/insert_audio_into_track.xpm")); new KAction(i18n("&Insert into Selected Audio Track"), - icon, 0, this, SLOT(slotInsert()), + icon, 0, this, TQT_SLOT(slotInsert()), actionCollection(), "insert_audio"); new KAction(i18n("Unload &all Audio Files"), 0, 0, this, - SLOT(slotRemoveAll()), + TQT_SLOT(slotRemoveAll()), actionCollection(), "remove_all_audio"); new KAction(i18n("Unload all &Unused Audio Files"), 0, 0, this, - SLOT(slotRemoveAllUnused()), + TQT_SLOT(slotRemoveAllUnused()), actionCollection(), "remove_all_unused_audio"); new KAction(i18n("&Delete Unused Audio Files..."), 0, 0, this, - SLOT(slotDeleteUnused()), + TQT_SLOT(slotDeleteUnused()), actionCollection(), "delete_unused_audio"); new KAction(i18n("&Export Audio File..."), "fileexport", 0, this, - SLOT(slotExportAudio()), + TQT_SLOT(slotExportAudio()), actionCollection(), "export_audio"); /* new KAction(i18n("Distribute Audio on &MIDI"), 0, 0, this, - SLOT(slotDistributeOnMidiSegment()), + TQT_SLOT(slotDistributeOnMidiSegment()), actionCollection(), "distribute_audio"); */ @@ -202,36 +202,36 @@ AudioManagerDialog::AudioManagerDialog(QWidget *parent, m_fileList->setShowToolTips(true); // connect selection mechanism - connect(m_fileList, SIGNAL(selectionChanged(QListViewItem*)), - SLOT(slotSelectionChanged(QListViewItem*))); + connect(m_fileList, TQT_SIGNAL(selectionChanged(TQListViewItem*)), + TQT_SLOT(slotSelectionChanged(TQListViewItem*))); - connect(m_fileList, SIGNAL(dropped(QDropEvent*, QListViewItem*)), - SLOT(slotDropped(QDropEvent*, QListViewItem*))); + connect(m_fileList, TQT_SIGNAL(dropped(TQDropEvent*, TQListViewItem*)), + TQT_SLOT(slotDropped(TQDropEvent*, TQListViewItem*))); // setup local accelerators // - m_accelerators = new QAccel(this); + m_accelerators = new TQAccel(this); // delete // m_accelerators->connectItem(m_accelerators->insertItem(Key_Delete), this, - SLOT(slotRemove())); + TQT_SLOT(slotRemove())); slotPopulateFileList(); // Connect command history for updates // - connect(getCommandHistory(), SIGNAL(commandExecuted(KCommand *)), - this, SLOT(slotCommandExecuted(KCommand *))); + connect(getCommandHistory(), TQT_SIGNAL(commandExecuted(KCommand *)), + this, TQT_SLOT(slotCommandExecuted(KCommand *))); //setInitialSize(configDialogSize(AudioManagerDialogConfigGroup)); - connect(m_playTimer, SIGNAL(timeout()), - this, SLOT(slotCancelPlayingAudio())); + connect(m_playTimer, TQT_SIGNAL(timeout()), + this, TQT_SLOT(slotCancelPlayingAudio())); KStdAction::close(this, - SLOT(slotClose()), + TQT_SLOT(slotClose()), actionCollection()); createGUI("audiomanager.rc"); @@ -250,7 +250,7 @@ void AudioManagerDialog::slotPopulateFileList() { // create pixmap of given size - QPixmap *audioPixmap = new QPixmap(m_maxPreviewWidth, m_previewHeight); + TQPixmap *audioPixmap = new TQPixmap(m_maxPreviewWidth, m_previewHeight); // Store last selected item if we have one // @@ -280,7 +280,7 @@ AudioManagerDialog::slotPopulateFileList() // Turn off selection and report empty list // new AudioListItem(m_fileList, i18n("<no audio files>"), 0); - m_fileList->setSelectionMode(QListView::NoSelection); + m_fileList->setSelectionMode(TQListView::NoSelection); m_fileList->setRootIsDecorated(false); m_fileList->blockSignals(false); @@ -292,10 +292,10 @@ AudioManagerDialog::slotPopulateFileList() m_fileList->setRootIsDecorated(true); // enable selection - m_fileList->setSelectionMode(QListView::Single); + m_fileList->setSelectionMode(TQListView::Single); // for the sample file length - QString msecs, sRate; + TQString msecs, sRate; RealTime length; // Create a vector of audio Segments only @@ -325,15 +325,15 @@ AudioManagerDialog::slotPopulateFileList() audioPixmap); } catch (Exception e) { audioPixmap->fill(); // white - QPainter p(audioPixmap); + TQPainter p(audioPixmap); p.setPen(Qt::black); - p.drawText(10, m_previewHeight / 2, QString("<no preview>")); + p.drawText(10, m_previewHeight / 2, TQString("<no preview>")); } //!!! Why isn't the label the label the user assigned to the file? // Why do we allow the user to assign a label at all, then? - QString label = QString((*it)->getShortFilename().c_str()); + TQString label = TQString((*it)->getShortFilename().c_str()); // Set the label, duration, envelope pixmap and filename // @@ -343,7 +343,7 @@ AudioManagerDialog::slotPopulateFileList() // length = (*it)->getLength(); msecs.sprintf("%03d", length.nsec / 1000000); - item->setText(1, QString("%1.%2s").arg(length.sec).arg(msecs)); + item->setText(1, TQString("%1.%2s").arg(length.sec).arg(msecs)); // set start time and duration item->setStartTime(RealTime::zeroTime); @@ -355,17 +355,17 @@ AudioManagerDialog::slotPopulateFileList() // File location // - item->setText(6, QString( + item->setText(6, TQString( m_doc->getAudioFileManager(). substituteHomeForTilde((*it)->getFilename()).c_str())); // Resolution // - item->setText(5, QString("%1 bits").arg((*it)->getBitsPerSample())); + item->setText(5, TQString("%1 bits").arg((*it)->getBitsPerSample())); // Channels // - item->setText(4, QString("%1").arg((*it)->getChannels())); + item->setText(4, TQString("%1").arg((*it)->getChannels())); // Sample rate // @@ -390,7 +390,7 @@ AudioManagerDialog::slotPopulateFileList() if ((*iit)->getAudioFileId() == (*it)->getId()) { AudioListItem *childItem = new AudioListItem(item, - QString((*iit)->getLabel().c_str()), + TQString((*iit)->getLabel().c_str()), (*it)->getId()); segmentDuration = (*iit)->getAudioEndTime() - (*iit)->getAudioStartTime(); @@ -403,7 +403,7 @@ AudioManagerDialog::slotPopulateFileList() // Write segment duration // msecs.sprintf("%03d", segmentDuration.nsec / 1000000); - childItem->setText(1, QString("%1.%2s") + childItem->setText(1, TQString("%1.%2s") .arg(segmentDuration.sec) .arg(msecs)); @@ -483,7 +483,7 @@ AudioManagerDialog::slotExportAudio() Segment *segment = item->getSegment(); - QString saveFile = + TQString saveFile = KFileDialog::getSaveFileName(":WAVS", i18n("*.wav|WAV files (*.wav)"), this, i18n("Choose a name to save this file as")); @@ -551,7 +551,7 @@ AudioManagerDialog::slotRemove() if (item->getSegment()) { // Get the next item to highlight // - QListViewItem *newItem = item->itemBelow(); + TQListViewItem *newItem = item->itemBelow(); // Or try above // @@ -606,8 +606,8 @@ AudioManagerDialog::slotRemove() if (haveSegments) { - QString question = i18n("This will unload audio file \"%1\" and remove all associated segments. Are you sure?") - .arg(QString(audioFile->getFilename().c_str())); + TQString question = i18n("This will unload audio file \"%1\" and remove all associated segments. Are you sure?") + .arg(TQString(audioFile->getFilename().c_str())); // Ask the question int reply = KMessageBox::warningContinueCancel(this, question); @@ -655,7 +655,7 @@ AudioManagerDialog::slotPlayPreview() // now open up the playing dialog // m_audioPlayingDialog = - new AudioPlayingDialog(this, QString(audioFile->getFilename().c_str())); + new AudioPlayingDialog(this, TQString(audioFile->getFilename().c_str())); // Setup timer to pop down dialog after file has completed // @@ -665,7 +665,7 @@ AudioManagerDialog::slotPlayPreview() // just execute // - if (m_audioPlayingDialog->exec() == QDialog::Rejected) + if (m_audioPlayingDialog->exec() == TQDialog::Rejected) emit cancelPlayingAudioFile(m_playingAudioFile); delete m_audioPlayingDialog; @@ -689,7 +689,7 @@ AudioManagerDialog::slotCancelPlayingAudio() void AudioManagerDialog::slotAdd() { - QString extensionList = i18n("*.wav|WAV files (*.wav)\n*.*|All files"); + TQString extensionList = i18n("*.wav|WAV files (*.wav)\n*.*|All files"); if (RosegardenGUIApp::self()->haveAudioImporter()) { //!!! This list really needs to come from the importer helper program @@ -759,7 +759,7 @@ AudioManagerDialog::slotInsert() void AudioManagerDialog::slotRemoveAll() { - QString question = + TQString question = i18n("This will unload all audio files and remove their associated segments.\nThis action cannot be undone, and associations with these files will be lost.\nFiles will not be removed from your disk.\nAre you sure?"); int reply = KMessageBox::warningContinueCancel(this, question); @@ -796,7 +796,7 @@ AudioManagerDialog::slotRemoveAll() void AudioManagerDialog::slotRemoveAllUnused() { - QString question = + TQString question = i18n("This will unload all audio files that are not associated with any segments in this composition.\nThis action cannot be undone, and associations with these files will be lost.\nFiles will not be removed from your disk.\nAre you sure?"); int reply = KMessageBox::warningContinueCancel(this, question); @@ -848,8 +848,8 @@ AudioManagerDialog::slotDeleteUnused() audioFiles.insert((*it)->getAudioFileId()); } - std::vector<QString> toDelete; - std::map<QString, AudioFileId> nameMap; + std::vector<TQString> toDelete; + std::map<TQString, AudioFileId> nameMap; for (std::vector<AudioFile*>::const_iterator aIt = m_doc->getAudioFileManager().begin(); @@ -865,13 +865,13 @@ AudioManagerDialog::slotDeleteUnused() i18n("The following audio files are not used in the current composition.\n\nPlease select the ones you wish to delete permanently from the hard disk.\n"), toDelete); - if (dialog->exec() == QDialog::Accepted) { + if (dialog->exec() == TQDialog::Accepted) { - std::vector<QString> names = dialog->getSelectedAudioFileNames(); + std::vector<TQString> names = dialog->getSelectedAudioFileNames(); if (names.size() > 0) { - QString question = + TQString question = i18n("<qt>About to delete 1 audio file permanently from the hard disk.<br>This action cannot be undone, and there will be no way to recover this file.<br>Are you sure?</qt>\n", "<qt>About to delete %n audio files permanently from the hard disk.<br>This action cannot be undone, and there will be no way to recover these files.<br>Are you sure?</qt>", names.size()); int reply = KMessageBox::warningContinueCancel(this, question); @@ -883,7 +883,7 @@ AudioManagerDialog::slotDeleteUnused() for (int i = 0; i < names.size(); ++i) { std::cerr << i << ": " << names[i] << std::endl; - QFile file(names[i]); + TQFile file(names[i]); if (!file.remove()) { KMessageBox::error(this, i18n("File %1 could not be deleted.").arg(names[i])); } else { @@ -894,7 +894,7 @@ AudioManagerDialog::slotDeleteUnused() std::cerr << "WARNING: Audio file name " << names[i] << " not in name map" << std::endl; } - QFile peakFile(QString("%1.pk").arg(names[i])); + TQFile peakFile(TQString("%1.pk").arg(names[i])); peakFile.remove(); } } @@ -917,10 +917,10 @@ AudioManagerDialog::slotRename() bool ok = false; - QString newText = KLineEditDlg::getText( + TQString newText = KLineEditDlg::getText( i18n("Change Audio File label"), i18n("Enter new label"), - QString(audioFile->getName().c_str()), + TQString(audioFile->getName().c_str()), &ok, this); @@ -931,7 +931,7 @@ AudioManagerDialog::slotRename() } void -AudioManagerDialog::slotSelectionChanged(QListViewItem *item) +AudioManagerDialog::slotSelectionChanged(TQListViewItem *item) { AudioListItem *aItem = dynamic_cast<AudioListItem*>(item); @@ -952,8 +952,8 @@ AudioManagerDialog::setSelected(AudioFileId id, const Segment *segment, bool propagate) { - QListViewItem *it = m_fileList->firstChild(); - QListViewItem *chIt = 0; + TQListViewItem *it = m_fileList->firstChild(); + TQListViewItem *chIt = 0; AudioListItem *aItem; while (it) { @@ -997,7 +997,7 @@ AudioManagerDialog::setSelected(AudioFileId id, } void -AudioManagerDialog::selectFileListItemNoSignal(QListViewItem* it) +AudioManagerDialog::selectFileListItemNoSignal(TQListViewItem* it) { m_fileList->blockSignals(true); @@ -1093,31 +1093,31 @@ AudioManagerDialog::addFile(const KURL& kurl) // Connect the progress dialog // - connect(&aFM, SIGNAL(setProgress(int)), - progressDlg.progressBar(), SLOT(setValue(int))); - connect(&aFM, SIGNAL(setOperationName(QString)), - &progressDlg, SLOT(slotSetOperationName(QString))); - connect(&progressDlg, SIGNAL(cancelClicked()), - &aFM, SLOT(slotStopImport())); + connect(&aFM, TQT_SIGNAL(setProgress(int)), + progressDlg.progressBar(), TQT_SLOT(setValue(int))); + connect(&aFM, TQT_SIGNAL(setOperationName(TQString)), + &progressDlg, TQT_SLOT(slotSetOperationName(TQString))); + connect(&progressDlg, TQT_SIGNAL(cancelClicked()), + &aFM, TQT_SLOT(slotStopImport())); try { id = aFM.importURL(kurl, m_sampleRate); } catch (AudioFileManager::BadAudioPathException e) { CurrentProgressDialog::freeze(); - QString errorString = i18n("Failed to add audio file. ") + strtoqstr(e.getMessage()); + TQString errorString = i18n("Failed to add audio file. ") + strtoqstr(e.getMessage()); KMessageBox::sorry(this, errorString); return false; } catch (SoundFile::BadSoundFileException e) { CurrentProgressDialog::freeze(); - QString errorString = i18n("Failed to add audio file. ") + strtoqstr(e.getMessage()); + TQString errorString = i18n("Failed to add audio file. ") + strtoqstr(e.getMessage()); KMessageBox::sorry(this, errorString); return false; } - disconnect(&progressDlg, SIGNAL(cancelClicked()), - &aFM, SLOT(slotStopImport())); - connect(&progressDlg, SIGNAL(cancelClicked()), - &aFM, SLOT(slotStopPreview())); + disconnect(&progressDlg, TQT_SIGNAL(cancelClicked()), + &aFM, TQT_SLOT(slotStopImport())); + connect(&progressDlg, TQT_SIGNAL(cancelClicked()), + &aFM, TQT_SLOT(slotStopPreview())); progressDlg.progressBar()->show(); progressDlg.slotSetOperationName(i18n("Generating audio preview...")); @@ -1126,13 +1126,13 @@ AudioManagerDialog::addFile(const KURL& kurl) } catch (Exception e) { CurrentProgressDialog::freeze(); - QString message = strtoqstr(e.getMessage()) + "\n\n" + + TQString message = strtoqstr(e.getMessage()) + "\n\n" + i18n("Try copying this file to a directory where you have write permission and re-add it"); KMessageBox::information(this, message); } - disconnect(&progressDlg, SIGNAL(cancelClicked()), - &aFM, SLOT(slotStopPreview())); + disconnect(&progressDlg, TQT_SIGNAL(cancelClicked()), + &aFM, TQT_SLOT(slotStopPreview())); slotPopulateFileList(); @@ -1143,14 +1143,14 @@ AudioManagerDialog::addFile(const KURL& kurl) } void -AudioManagerDialog::slotDropped(QDropEvent *event, QListViewItem*) +AudioManagerDialog::slotDropped(TQDropEvent *event, TQListViewItem*) { - QStrList uri; + TQStrList uri; // see if we can decode a URI.. if not, just ignore it - if (QUriDrag::decode(event, uri)) { + if (TQUriDrag::decode(event, uri)) { // okay, we have a URI.. process it - for (QString url = uri.first(); url; url = uri.next()) { + for (TQString url = uri.first(); url; url = uri.next()) { RG_DEBUG << "AudioManagerDialog::dropEvent() : got " << url << endl; @@ -1162,7 +1162,7 @@ AudioManagerDialog::slotDropped(QDropEvent *event, QListViewItem*) } void -AudioManagerDialog::closeEvent(QCloseEvent *e) +AudioManagerDialog::closeEvent(TQCloseEvent *e) { RG_DEBUG << "AudioManagerDialog::closeEvent()\n"; emit closing(); @@ -1188,9 +1188,9 @@ AudioManagerDialog::setAudioSubsystemStatus(bool ok) } bool -AudioManagerDialog::addAudioFile(const QString &filePath) +AudioManagerDialog::addAudioFile(const TQString &filePath) { - return addFile(QFileInfo(filePath).absFilePath()); + return addFile(TQFileInfo(filePath).absFilePath()); } bool diff --git a/src/gui/dialogs/AudioManagerDialog.h b/src/gui/dialogs/AudioManagerDialog.h index 728b700..eae07c0 100644 --- a/src/gui/dialogs/AudioManagerDialog.h +++ b/src/gui/dialogs/AudioManagerDialog.h @@ -31,14 +31,14 @@ #include "document/ConfigGroups.h" -class QWidget; -class QTimer; -class QString; -class QListViewItem; -class QLabel; -class QDropEvent; -class QCloseEvent; -class QAccel; +class TQWidget; +class TQTimer; +class TQString; +class TQListViewItem; +class TQLabel; +class TQDropEvent; +class TQCloseEvent; +class TQAccel; class KURL; class KListView; class KCommand; @@ -61,7 +61,7 @@ class AudioManagerDialog : public KMainWindow Q_OBJECT public: - AudioManagerDialog(QWidget *parent, + AudioManagerDialog(TQWidget *parent, RosegardenGUIDoc *doc); ~AudioManagerDialog(); @@ -91,11 +91,11 @@ public: // Return the accelerator object // - QAccel* getAccelerators() { return m_accelerators; } + TQAccel* getAccelerators() { return m_accelerators; } // Add a new file to the audio file manager // - bool addAudioFile(const QString &filePath); + bool addAudioFile(const TQString &filePath); public slots: @@ -110,7 +110,7 @@ public slots: void slotExportAudio(); // get selection - void slotSelectionChanged(QListViewItem *); + void slotSelectionChanged(TQListViewItem *); // Repopulate // @@ -168,28 +168,28 @@ signals: void closing(); protected slots: - void slotDropped(QDropEvent*, QListViewItem*); + void slotDropped(TQDropEvent*, TQListViewItem*); void slotCancelPlayingAudio(); protected: bool addFile(const KURL& kurl); bool isSelectedTrackAudio(); - void selectFileListItemNoSignal(QListViewItem*); + void selectFileListItemNoSignal(TQListViewItem*); void updateActionState(bool haveSelection); - virtual void closeEvent(QCloseEvent *); + virtual void closeEvent(TQCloseEvent *); //--------------- Data members --------------------------------- KListView *m_fileList; - QLabel *m_wrongSampleRates; + TQLabel *m_wrongSampleRates; RosegardenGUIDoc *m_doc; - QAccel *m_accelerators; + TQAccel *m_accelerators; AudioFileId m_playingAudioFile; AudioPlayingDialog *m_audioPlayingDialog; - QTimer *m_playTimer; + TQTimer *m_playTimer; static const char* const m_listViewLayoutName; static const int m_maxPreviewWidth; diff --git a/src/gui/dialogs/AudioPlayingDialog.cpp b/src/gui/dialogs/AudioPlayingDialog.cpp index 0915ef2..524278e 100644 --- a/src/gui/dialogs/AudioPlayingDialog.cpp +++ b/src/gui/dialogs/AudioPlayingDialog.cpp @@ -27,24 +27,24 @@ #include <klocale.h> #include <kdialogbase.h> -#include <qhbox.h> -#include <qlabel.h> -#include <qstring.h> -#include <qwidget.h> +#include <tqhbox.h> +#include <tqlabel.h> +#include <tqstring.h> +#include <tqwidget.h> namespace Rosegarden { -AudioPlayingDialog::AudioPlayingDialog(QWidget *parent, - const QString &name): +AudioPlayingDialog::AudioPlayingDialog(TQWidget *parent, + const TQString &name): KDialogBase(parent, 0, true, i18n("Playing audio file"), Cancel) { - QHBox *w = makeHBoxMainWidget(); - QLabel *label = new - QLabel(i18n("Playing audio file \"%1\"").arg(name), w); + TQHBox *w = makeHBoxMainWidget(); + TQLabel *label = new + TQLabel(i18n("Playing audio file \"%1\"").arg(name), w); label->setMinimumHeight(80); diff --git a/src/gui/dialogs/AudioPlayingDialog.h b/src/gui/dialogs/AudioPlayingDialog.h index 880d0bd..5cdfaba 100644 --- a/src/gui/dialogs/AudioPlayingDialog.h +++ b/src/gui/dialogs/AudioPlayingDialog.h @@ -30,8 +30,8 @@ #include "gui/application/RosegardenDCOP.h" -class QWidget; -class QString; +class TQWidget; +class TQString; namespace Rosegarden @@ -44,7 +44,7 @@ class AudioPlayingDialog : public KDialogBase Q_OBJECT public: - AudioPlayingDialog(QWidget *parent, const QString &label); + AudioPlayingDialog(TQWidget *parent, const TQString &label); signals: diff --git a/src/gui/dialogs/AudioPluginDialog.cpp b/src/gui/dialogs/AudioPluginDialog.cpp index 7f54f71..16e4500 100644 --- a/src/gui/dialogs/AudioPluginDialog.cpp +++ b/src/gui/dialogs/AudioPluginDialog.cpp @@ -24,7 +24,7 @@ #include "AudioPluginDialog.h" -#include <qlayout.h> +#include <tqlayout.h> #include <klocale.h> #include "misc/Debug.h" @@ -42,25 +42,25 @@ #include "sound/PluginIdentifier.h" #include <kcombobox.h> #include <kdialogbase.h> -#include <qaccel.h> -#include <qcheckbox.h> -#include <qframe.h> -#include <qgroupbox.h> -#include <qhbox.h> -#include <qlabel.h> -#include <qpushbutton.h> -#include <qsizepolicy.h> -#include <qstring.h> -#include <qstringlist.h> -#include <qtooltip.h> -#include <qvbox.h> -#include <qwidget.h> +#include <tqaccel.h> +#include <tqcheckbox.h> +#include <tqframe.h> +#include <tqgroupbox.h> +#include <tqhbox.h> +#include <tqlabel.h> +#include <tqpushbutton.h> +#include <tqsizepolicy.h> +#include <tqstring.h> +#include <tqstringlist.h> +#include <tqtooltip.h> +#include <tqvbox.h> +#include <tqwidget.h> #include <set> namespace Rosegarden { -AudioPluginDialog::AudioPluginDialog(QWidget *parent, +AudioPluginDialog::AudioPluginDialog(TQWidget *parent, AudioPluginManager *aPM, #ifdef HAVE_LIBLO AudioPluginOSCGUIManager *aGM, @@ -86,78 +86,78 @@ AudioPluginDialog::AudioPluginDialog(QWidget *parent, { setHelp("studio-plugins"); - setSizePolicy(QSizePolicy(QSizePolicy::Preferred, - QSizePolicy::Fixed)); + setSizePolicy(TQSizePolicy(TQSizePolicy::Preferred, + TQSizePolicy::Fixed)); #ifdef HAVE_LIBLO setButtonText(Details, i18n("Editor")); #endif - QVBox *vbox = makeVBoxMainWidget(); + TQVBox *vbox = makeVBoxMainWidget(); - QGroupBox *pluginSelectionBox = new QGroupBox + TQGroupBox *pluginSelectionBox = new QGroupBox (1, Horizontal, i18n("Plugin"), vbox); makePluginParamsBox(vbox, 0, 10); - m_pluginCategoryBox = new QHBox(pluginSelectionBox); - new QLabel(i18n("Category:"), m_pluginCategoryBox); + m_pluginCategoryBox = new TQHBox(pluginSelectionBox); + new TQLabel(i18n("Category:"), m_pluginCategoryBox); m_pluginCategoryList = new KComboBox(m_pluginCategoryBox); m_pluginCategoryList->setSizeLimit(20); - QHBox *hbox = new QHBox(pluginSelectionBox); - m_pluginLabel = new QLabel(i18n("Plugin:"), hbox); + TQHBox *hbox = new TQHBox(pluginSelectionBox); + m_pluginLabel = new TQLabel(i18n("Plugin:"), hbox); m_pluginList = new KComboBox(hbox); m_pluginList->setSizeLimit(20); - QToolTip::add + TQToolTip::add (m_pluginList, i18n("Select a plugin from this list.")); - QHBox *h = new QHBox(pluginSelectionBox); + TQHBox *h = new TQHBox(pluginSelectionBox); // top line - m_bypass = new QCheckBox(i18n("Bypass"), h); - QToolTip::add + m_bypass = new TQCheckBox(i18n("Bypass"), h); + TQToolTip::add (m_bypass, i18n("Bypass this plugin.")); - connect(m_bypass, SIGNAL(toggled(bool)), - this, SLOT(slotBypassChanged(bool))); + connect(m_bypass, TQT_SIGNAL(toggled(bool)), + this, TQT_SLOT(slotBypassChanged(bool))); - m_insOuts = new QLabel(i18n("<ports>"), h); + m_insOuts = new TQLabel(i18n("<ports>"), h); m_insOuts->setAlignment(AlignRight); - QToolTip::add + TQToolTip::add (m_insOuts, i18n("Input and output port counts.")); - m_pluginId = new QLabel(i18n("<id>"), h); + m_pluginId = new TQLabel(i18n("<id>"), h); m_pluginId->setAlignment(AlignRight); - QToolTip::add + TQToolTip::add (m_pluginId, i18n("Unique ID of plugin.")); - connect(m_pluginList, SIGNAL(activated(int)), - this, SLOT(slotPluginSelected(int))); + connect(m_pluginList, TQT_SIGNAL(activated(int)), + this, TQT_SLOT(slotPluginSelected(int))); - connect(m_pluginCategoryList, SIGNAL(activated(int)), - this, SLOT(slotCategorySelected(int))); + connect(m_pluginCategoryList, TQT_SIGNAL(activated(int)), + this, TQT_SLOT(slotCategorySelected(int))); // new line - h = new QHBox(pluginSelectionBox); - m_copyButton = new QPushButton(i18n("Copy"), h); - connect(m_copyButton, SIGNAL(clicked()), - this, SLOT(slotCopy())); - QToolTip::add + h = new TQHBox(pluginSelectionBox); + m_copyButton = new TQPushButton(i18n("Copy"), h); + connect(m_copyButton, TQT_SIGNAL(clicked()), + this, TQT_SLOT(slotCopy())); + TQToolTip::add (m_copyButton, i18n("Copy plugin parameters")); - m_pasteButton = new QPushButton(i18n("Paste"), h); - connect(m_pasteButton, SIGNAL(clicked()), - this, SLOT(slotPaste())); - QToolTip::add + m_pasteButton = new TQPushButton(i18n("Paste"), h); + connect(m_pasteButton, TQT_SIGNAL(clicked()), + this, TQT_SLOT(slotPaste())); + TQToolTip::add (m_pasteButton, i18n("Paste plugin parameters")); - m_defaultButton = new QPushButton(i18n("Default"), h); - connect(m_defaultButton, SIGNAL(clicked()), - this, SLOT(slotDefault())); - QToolTip::add + m_defaultButton = new TQPushButton(i18n("Default"), h); + connect(m_defaultButton, TQT_SIGNAL(clicked()), + this, TQT_SLOT(slotDefault())); + TQToolTip::add (m_defaultButton, i18n("Set to defaults")); populatePluginCategoryList(); @@ -165,7 +165,7 @@ AudioPluginDialog::AudioPluginDialog(QWidget *parent, m_generating = false; - m_accelerators = new QAccel(this); + m_accelerators = new TQAccel(this); } #ifdef HAVE_LIBLO @@ -192,8 +192,8 @@ AudioPluginDialog::populatePluginCategoryList() { AudioPluginInstance *inst = m_pluginContainer->getPlugin(m_index); std::set - <QString> categories; - QString currentCategory; + <TQString> categories; + TQString currentCategory; for (PluginIterator i = m_pluginManager->begin(); i != m_pluginManager->end(); ++i) { @@ -227,7 +227,7 @@ AudioPluginDialog::populatePluginCategoryList() m_pluginCategoryList->setCurrentItem(0); for (std::set - <QString>::iterator i = categories.begin(); + <TQString>::iterator i = categories.begin(); i != categories.end(); ++i) { m_pluginCategoryList->insertItem(*i); @@ -247,7 +247,7 @@ AudioPluginDialog::populatePluginList() m_pluginList->insertItem(i18n("(none)")); m_pluginsInList.push_back(0); - QString category; + TQString category; bool needCategory = false; if (m_pluginCategoryList->currentItem() > 0) { @@ -267,7 +267,7 @@ AudioPluginDialog::populatePluginList() // Use this temporary map to ensure that the plugins are sorted // by name when they go into the combobox typedef std::pair<int, AudioPlugin *> PluginPair; - typedef std::map<QString, PluginPair> PluginMap; + typedef std::map<TQString, PluginPair> PluginMap; PluginMap plugins; int count = 0; @@ -280,22 +280,22 @@ AudioPluginDialog::populatePluginList() (!isSynth() && (*i)->isEffect())) { if (needCategory) { - QString cat = ""; + TQString cat = ""; if ((*i)->getCategory()) cat = (*i)->getCategory(); if (cat != category) continue; } - QString name = (*i)->getName(); + TQString name = (*i)->getName(); bool store = true; if (plugins.find(name) != plugins.end()) { // We already have a plugin of this name. If it's a // LADSPA plugin, replace it (this one might be // something better); otherwise leave it alone. - QString id = plugins[name].second->getIdentifier(); - QString type, soname, label; + TQString id = plugins[name].second->getIdentifier(); + TQString type, soname, label; PluginIdentifier::parseIdentifier(id, type, soname, label); if (type != "ladspa") { store = false; @@ -314,7 +314,7 @@ AudioPluginDialog::populatePluginList() for (PluginMap::iterator i = plugins.begin(); i != plugins.end(); ++i) { - QString name = i->first; + TQString name = i->first; if (name.endsWith(" VST")) name = name.left(name.length() - 4); @@ -330,10 +330,10 @@ AudioPluginDialog::populatePluginList() } void -AudioPluginDialog::makePluginParamsBox(QWidget *parent, int portCount, +AudioPluginDialog::makePluginParamsBox(TQWidget *parent, int portCount, int tooManyPorts) { - m_pluginParamsBox = new QFrame(parent); + m_pluginParamsBox = new TQFrame(parent); int columns = 2; if (portCount > tooManyPorts) { @@ -351,7 +351,7 @@ AudioPluginDialog::makePluginParamsBox(QWidget *parent, int portCount, perColumn = 2; } - m_gridLayout = new QGridLayout(m_pluginParamsBox, + m_gridLayout = new TQGridLayout(m_pluginParamsBox, 1, // rows (will expand) columns * perColumn, 5); // margin @@ -381,20 +381,20 @@ AudioPluginDialog::slotPluginSelected(int i) RG_DEBUG << "AudioPluginDialog::::slotPluginSelected - " << "setting up plugin from position " << number << " at menu item " << i << endl; - QString caption = + TQString caption = strtoqstr(m_pluginContainer->getName()) + - QString(" [ %1 ] - ").arg(m_index + 1); + TQString(" [ %1 ] - ").arg(m_index + 1); if (number == 0) { setCaption(caption + i18n("<no plugin>")); m_insOuts->setText(i18n("<ports>")); m_pluginId->setText(i18n("<id>")); - QToolTip::hide(); - QToolTip::remove + TQToolTip::hide(); + TQToolTip::remove (m_pluginList); - QToolTip::add + TQToolTip::add (m_pluginList, i18n("Select a plugin from this list.")); } @@ -402,7 +402,7 @@ AudioPluginDialog::slotPluginSelected(int i) // Destroy old param widgets // - QWidget* parent = dynamic_cast<QWidget*>(m_pluginParamsBox->parent()); + TQWidget* parent = dynamic_cast<TQWidget*>(m_pluginParamsBox->parent()); delete m_pluginParamsBox; m_pluginWidgets.clear(); // The widgets are deleted with the parameter box @@ -424,7 +424,7 @@ AudioPluginDialog::slotPluginSelected(int i) if (portCount > tooManyPorts) { m_gridLayout->addMultiCellWidget( - new QLabel(i18n("This plugin has too many controls to edit here."), + new TQLabel(i18n("This plugin has too many controls to edit here."), m_pluginParamsBox), 1, 1, 0, m_gridLayout->numCols() - 1, Qt::AlignCenter); } @@ -437,13 +437,13 @@ AudioPluginDialog::slotPluginSelected(int i) setCaption(caption + plugin->getName()); m_pluginId->setText(i18n("Id: %1").arg(plugin->getUniqueId())); - QString pluginInfo = plugin->getAuthor() + QString("\n") + + TQString pluginInfo = plugin->getAuthor() + TQString("\n") + plugin->getCopyright(); - QToolTip::hide(); - QToolTip::remove + TQToolTip::hide(); + TQToolTip::remove (m_pluginList); - QToolTip::add + TQToolTip::add (m_pluginList, pluginInfo); std::string identifier = plugin->getIdentifier().data(); @@ -493,7 +493,7 @@ AudioPluginDialog::slotPluginSelected(int i) else m_insOuts->setText(i18n("%1 in, %2 out").arg(ins).arg(outs)); - QString shortName(plugin->getName()); + TQString shortName(plugin->getName()); int parenIdx = shortName.find(" ("); if (parenIdx > 0) { shortName = shortName.left(parenIdx); @@ -511,11 +511,11 @@ AudioPluginDialog::slotPluginSelected(int i) if (plugin) { int current = -1; - QStringList programs = getProgramsForInstance(inst, current); + TQStringList programs = getProgramsForInstance(inst, current); if (programs.count() > 0) { - m_programLabel = new QLabel(i18n("Program: "), m_pluginParamsBox); + m_programLabel = new TQLabel(i18n("Program: "), m_pluginParamsBox); m_programCombo = new KComboBox(m_pluginParamsBox); m_programCombo->setSizeLimit(20); @@ -525,8 +525,8 @@ AudioPluginDialog::slotPluginSelected(int i) m_gridLayout->addMultiCellWidget(m_programCombo, 0, 0, 1, m_gridLayout->numCols() - 1, Qt::AlignLeft); - connect(m_programCombo, SIGNAL(activated(const QString &)), - this, SLOT(slotPluginProgramChanged(const QString &))); + connect(m_programCombo, TQT_SIGNAL(activated(const TQString &)), + this, TQT_SLOT(slotPluginProgramChanged(const TQString &))); m_programCombo->clear(); m_programCombo->insertItem(i18n("<none selected>")); @@ -555,8 +555,8 @@ AudioPluginDialog::slotPluginSelected(int i) showBounds, portCount > tooManyPorts); - connect(control, SIGNAL(valueChanged(float)), - this, SLOT(slotPluginPortChanged(float))); + connect(control, TQT_SIGNAL(valueChanged(float)), + this, TQT_SLOT(slotPluginPortChanged(float))); m_pluginWidgets.push_back(control); } @@ -582,9 +582,9 @@ AudioPluginDialog::slotPluginSelected(int i) QStringList AudioPluginDialog::getProgramsForInstance(AudioPluginInstance *inst, int ¤t) { - QStringList list; + TQStringList list; int mappedId = inst->getMappedId(); - QString currentProgram = strtoqstr(inst->getProgram()); + TQString currentProgram = strtoqstr(inst->getProgram()); MappedObjectPropertyList propertyList = StudioControl::getStudioObjectProperty (mappedId, MappedPluginSlot::Programs); @@ -604,7 +604,7 @@ AudioPluginDialog::getProgramsForInstance(AudioPluginInstance *inst, int ¤ void AudioPluginDialog::slotPluginPortChanged(float value) { - const QObject* object = sender(); + const TQObject* object = sender(); const PluginControl* control = dynamic_cast<const PluginControl*>(object); @@ -619,7 +619,7 @@ AudioPluginDialog::slotPluginPortChanged(float value) } void -AudioPluginDialog::slotPluginProgramChanged(const QString &value) +AudioPluginDialog::slotPluginProgramChanged(const TQString &value) { // store the new value AudioPluginInstance *inst = m_pluginContainer->getPlugin(m_index); @@ -697,11 +697,11 @@ AudioPluginDialog::updatePluginProgramList() if (!m_programCombo) { int current = -1; - QStringList programs = getProgramsForInstance(inst, current); + TQStringList programs = getProgramsForInstance(inst, current); if (programs.count() > 0) { - m_programLabel = new QLabel(i18n("Program: "), m_pluginParamsBox); + m_programLabel = new TQLabel(i18n("Program: "), m_pluginParamsBox); m_programCombo = new KComboBox(m_pluginParamsBox); m_programCombo->setSizeLimit(20); @@ -722,8 +722,8 @@ AudioPluginDialog::updatePluginProgramList() m_programCombo->show(); m_programCombo->blockSignals(true); - connect(m_programCombo, SIGNAL(activated(const QString &)), - this, SLOT(slotPluginProgramChanged(const QString &))); + connect(m_programCombo, TQT_SIGNAL(activated(const TQString &)), + this, TQT_SLOT(slotPluginProgramChanged(const TQString &))); } else { return ; @@ -736,7 +736,7 @@ AudioPluginDialog::updatePluginProgramList() } int current = -1; - QStringList programs = getProgramsForInstance(inst, current); + TQStringList programs = getProgramsForInstance(inst, current); if (programs.count() > 0) { m_programCombo->show(); @@ -773,7 +773,7 @@ AudioPluginDialog::windowActivationChange(bool oldState) } void -AudioPluginDialog::closeEvent(QCloseEvent *e) +AudioPluginDialog::closeEvent(TQCloseEvent *e) { e->accept(); emit destroyed(m_containerId, m_index); diff --git a/src/gui/dialogs/AudioPluginDialog.h b/src/gui/dialogs/AudioPluginDialog.h index bc8a38b..5ff5dc4 100644 --- a/src/gui/dialogs/AudioPluginDialog.h +++ b/src/gui/dialogs/AudioPluginDialog.h @@ -29,19 +29,19 @@ #include "base/Instrument.h" #include "base/MidiProgram.h" #include <kdialogbase.h> -#include <qstring.h> -#include <qstringlist.h> +#include <tqstring.h> +#include <tqstringlist.h> #include <vector> -class QWidget; -class QPushButton; -class QLabel; -class QGridLayout; -class QFrame; -class QCloseEvent; -class QCheckBox; -class QAccel; +class TQWidget; +class TQPushButton; +class TQLabel; +class TQGridLayout; +class TQFrame; +class TQCloseEvent; +class TQCheckBox; +class TQAccel; class KComboBox; @@ -60,7 +60,7 @@ class AudioPluginDialog : public KDialogBase Q_OBJECT public: - AudioPluginDialog(QWidget *parent, + AudioPluginDialog(TQWidget *parent, AudioPluginManager *aPM, #ifdef HAVE_LIBLO AudioPluginOSCGUIManager *aGM, @@ -70,7 +70,7 @@ public: PluginContainer* getPluginContainer() const { return m_pluginContainer; } - QAccel* getAccelerators() { return m_accelerators; } + TQAccel* getAccelerators() { return m_accelerators; } bool isSynth() { return m_index == int(Instrument::SYNTH_PLUGIN_POSITION); } @@ -84,7 +84,7 @@ public slots: void slotCategorySelected(int); void slotPluginSelected(int index); void slotPluginPortChanged(float value); - void slotPluginProgramChanged(const QString &value); + void slotPluginProgramChanged(const TQString &value); void slotBypassChanged(bool); void slotCopy(); void slotPaste(); @@ -100,7 +100,7 @@ signals: void pluginPortChanged(InstrumentId, int pluginIndex, int portIndex); void pluginProgramChanged(InstrumentId, int pluginIndex); void changePluginConfiguration(InstrumentId, int pluginIndex, - bool global, QString key, QString value); + bool global, TQString key, TQString value); void showPluginGUI(InstrumentId, int pluginIndex); void stopPluginGUI(InstrumentId, int pluginIndex); @@ -114,11 +114,11 @@ protected slots: virtual void slotClose(); protected: - virtual void closeEvent(QCloseEvent *e); + virtual void closeEvent(TQCloseEvent *e); virtual void windowActivationChange(bool); - void makePluginParamsBox(QWidget*, int portCount, int tooManyPorts); - QStringList getProgramsForInstance(AudioPluginInstance *inst, int ¤t); + void makePluginParamsBox(TQWidget*, int portCount, int tooManyPorts); + TQStringList getProgramsForInstance(AudioPluginInstance *inst, int ¤t); //--------------- Data members --------------------------------- @@ -129,31 +129,31 @@ protected: PluginContainer *m_pluginContainer; InstrumentId m_containerId; - QFrame *m_pluginParamsBox; - QWidget *m_pluginCategoryBox; + TQFrame *m_pluginParamsBox; + TQWidget *m_pluginCategoryBox; KComboBox *m_pluginCategoryList; - QLabel *m_pluginLabel; + TQLabel *m_pluginLabel; KComboBox *m_pluginList; std::vector<int> m_pluginsInList; - QLabel *m_insOuts; - QLabel *m_pluginId; - QCheckBox *m_bypass; - QPushButton *m_copyButton; - QPushButton *m_pasteButton; - QPushButton *m_defaultButton; - QPushButton *m_guiButton; + TQLabel *m_insOuts; + TQLabel *m_pluginId; + TQCheckBox *m_bypass; + TQPushButton *m_copyButton; + TQPushButton *m_pasteButton; + TQPushButton *m_defaultButton; + TQPushButton *m_guiButton; - QLabel *m_programLabel; + TQLabel *m_programLabel; KComboBox *m_programCombo; std::vector<PluginControl*> m_pluginWidgets; - QGridLayout *m_gridLayout; + TQGridLayout *m_gridLayout; int m_index; bool m_generating; bool m_guiShown; - QAccel *m_accelerators; + TQAccel *m_accelerators; void populatePluginCategoryList(); void populatePluginList(); diff --git a/src/gui/dialogs/AudioSplitDialog.cpp b/src/gui/dialogs/AudioSplitDialog.cpp index 42290b3..b7a1b67 100644 --- a/src/gui/dialogs/AudioSplitDialog.cpp +++ b/src/gui/dialogs/AudioSplitDialog.cpp @@ -36,21 +36,21 @@ #include "gui/application/RosegardenApplication.h" #include "sound/AudioFileManager.h" #include <kdialogbase.h> -#include <qcanvas.h> -#include <qhbox.h> -#include <qlabel.h> -#include <qpalette.h> -#include <qscrollview.h> -#include <qspinbox.h> -#include <qstring.h> -#include <qvbox.h> -#include <qwidget.h> +#include <tqcanvas.h> +#include <tqhbox.h> +#include <tqlabel.h> +#include <tqpalette.h> +#include <tqscrollview.h> +#include <tqspinbox.h> +#include <tqstring.h> +#include <tqvbox.h> +#include <tqwidget.h> namespace Rosegarden { -AudioSplitDialog::AudioSplitDialog(QWidget *parent, +AudioSplitDialog::AudioSplitDialog(TQWidget *parent, Segment *segment, RosegardenGUIDoc *doc): KDialogBase(parent, 0, true, @@ -65,27 +65,27 @@ AudioSplitDialog::AudioSplitDialog(QWidget *parent, if (!segment || segment->getType() != Segment::Audio) reject(); - QVBox *w = makeVBoxMainWidget(); + TQVBox *w = makeVBoxMainWidget(); - new QLabel(i18n("AutoSplit Segment \"") + - strtoqstr(m_segment->getLabel()) + QString("\""), w); + new TQLabel(i18n("AutoSplit Segment \"") + + strtoqstr(m_segment->getLabel()) + TQString("\""), w); - m_canvas = new QCanvas(w); + m_canvas = new TQCanvas(w); m_canvas->resize(m_canvasWidth, m_canvasHeight); - m_canvasView = new QCanvasView(m_canvas, w); + m_canvasView = new TQCanvasView(m_canvas, w); m_canvasView->setFixedWidth(m_canvasWidth); m_canvasView->setFixedHeight(m_canvasHeight); - m_canvasView->setHScrollBarMode(QScrollView::AlwaysOff); - m_canvasView->setVScrollBarMode(QScrollView::AlwaysOff); + m_canvasView->setHScrollBarMode(TQScrollView::AlwaysOff); + m_canvasView->setVScrollBarMode(TQScrollView::AlwaysOff); m_canvasView->setDragAutoScroll(false); - QHBox *hbox = new QHBox(w); - new QLabel(i18n("Threshold"), hbox); - m_thresholdSpin = new QSpinBox(hbox); + TQHBox *hbox = new TQHBox(w); + new TQLabel(i18n("Threshold"), hbox); + m_thresholdSpin = new TQSpinBox(hbox); m_thresholdSpin->setSuffix(" %"); - connect(m_thresholdSpin, SIGNAL(valueChanged(int)), - SLOT(slotThresholdChanged(int))); + connect(m_thresholdSpin, TQT_SIGNAL(valueChanged(int)), + TQT_SLOT(slotThresholdChanged(int))); // ensure this is cleared m_previewBoxes.clear(); @@ -103,8 +103,8 @@ AudioSplitDialog::drawPreview() { // Delete everything on the canvas // - QCanvasItemList list = m_canvas->allItems(); - for (QCanvasItemList::Iterator it = list.begin(); it != list.end(); it++) + TQCanvasItemList list = m_canvas->allItems(); + for (TQCanvasItemList::Iterator it = list.begin(); it != list.end(); it++) delete *it; // empty the preview boxes @@ -113,13 +113,13 @@ AudioSplitDialog::drawPreview() // Draw a bounding box // int border = 5; - QCanvasRectangle *rect = new QCanvasRectangle(m_canvas); + TQCanvasRectangle *rect = new TQCanvasRectangle(m_canvas); rect->setSize(m_canvasWidth - border * 2, m_canvasHeight - border * 2); rect->setX(border); rect->setY(border); rect->setZ(1); - rect->setPen(kapp->palette().color(QPalette::Active, QColorGroup::Dark)); - rect->setBrush(kapp->palette().color(QPalette::Active, QColorGroup::Base)); + rect->setPen(kapp->palette().color(TQPalette::Active, TQColorGroup::Dark)); + rect->setBrush(kapp->palette().color(TQPalette::Active, TQColorGroup::Base)); rect->setVisible(true); // Get preview in vector form @@ -136,9 +136,9 @@ AudioSplitDialog::drawPreview() m_previewWidth, false); } catch (Exception e) { - QCanvasText *text = new QCanvasText(m_canvas); + TQCanvasText *text = new TQCanvasText(m_canvas); text->setColor(kapp->palette(). - color(QPalette::Active, QColorGroup::Shadow)); + color(TQPalette::Active, TQColorGroup::Shadow)); text->setText(i18n("<no preview generated for this audio file>")); text->setX(30); text->setY(30); @@ -182,28 +182,28 @@ AudioSplitDialog::drawPreview() endY = 0; } - QCanvasLine *line = new QCanvasLine(m_canvas); + TQCanvasLine *line = new TQCanvasLine(m_canvas); line->setPoints(startX + i, startY, startX + i, endY); line->setZ(3); line->setPen(kapp-> - palette().color(QPalette::Active, QColorGroup::Shadow)); + palette().color(TQPalette::Active, TQColorGroup::Shadow)); line->setBrush(kapp-> - palette().color(QPalette::Active, QColorGroup::Shadow)); + palette().color(TQPalette::Active, TQColorGroup::Shadow)); line->setVisible(true); } // Draw zero dc line // - rect = new QCanvasRectangle(m_canvas); + rect = new TQCanvasRectangle(m_canvas); rect->setX(startX); rect->setY(halfHeight - 1); rect->setSize(m_previewWidth, 2); - rect->setPen(kapp->palette().color(QPalette::Active, QColorGroup::Shadow)); - rect->setBrush(kapp->palette().color(QPalette::Active, QColorGroup::Shadow)); + rect->setPen(kapp->palette().color(TQPalette::Active, TQColorGroup::Shadow)); + rect->setBrush(kapp->palette().color(TQPalette::Active, TQColorGroup::Shadow)); rect->setZ(4); rect->setVisible(true); @@ -211,46 +211,46 @@ AudioSplitDialog::drawPreview() // char msecs[100]; sprintf(msecs, "%03d", m_segment->getAudioStartTime().msec()); - QString startText = QString("%1.%2s") + TQString startText = TQString("%1.%2s") .arg(m_segment->getAudioStartTime().sec) .arg(msecs); - QCanvasText *text = new QCanvasText(m_canvas); + TQCanvasText *text = new TQCanvasText(m_canvas); text->setColor( - kapp->palette().color(QPalette::Active, QColorGroup::Shadow)); + kapp->palette().color(TQPalette::Active, TQColorGroup::Shadow)); text->setText(startText); text->setX(startX - 20); text->setY(m_canvasHeight / 2 - m_previewHeight / 2 - 35); text->setZ(3); text->setVisible(true); - rect = new QCanvasRectangle(m_canvas); + rect = new TQCanvasRectangle(m_canvas); rect->setX(startX - 1); rect->setY(m_canvasHeight / 2 - m_previewHeight / 2 - 14); rect->setSize(1, m_previewHeight + 28); - rect->setPen(kapp->palette().color(QPalette::Active, QColorGroup::Shadow)); + rect->setPen(kapp->palette().color(TQPalette::Active, TQColorGroup::Shadow)); rect->setZ(3); rect->setVisible(true); // End time // sprintf(msecs, "%03d", m_segment->getAudioEndTime().msec()); - QString endText = QString("%1.%2s") + TQString endText = TQString("%1.%2s") .arg(m_segment->getAudioEndTime().sec) .arg(msecs); - text = new QCanvasText(m_canvas); + text = new TQCanvasText(m_canvas); text->setColor( - kapp->palette().color(QPalette::Active, QColorGroup::Shadow)); + kapp->palette().color(TQPalette::Active, TQColorGroup::Shadow)); text->setText(endText); text->setX(startX + m_previewWidth - 20); text->setY(m_canvasHeight / 2 - m_previewHeight / 2 - 35); text->setZ(3); text->setVisible(true); - rect = new QCanvasRectangle(m_canvas); + rect = new TQCanvasRectangle(m_canvas); rect->setX(startX + m_previewWidth - 1); rect->setY(m_canvasHeight / 2 - m_previewHeight / 2 - 14); rect->setSize(1, m_previewHeight + 28); - rect->setPen(kapp->palette().color(QPalette::Active, QColorGroup::Shadow)); + rect->setPen(kapp->palette().color(TQPalette::Active, TQColorGroup::Shadow)); rect->setZ(3); rect->setVisible(true); @@ -273,7 +273,7 @@ AudioSplitDialog::drawSplits(int threshold) threshold); std::vector<SplitPointPair>::iterator it; - std::vector<QCanvasRectangle*> tempRects; + std::vector<TQCanvasRectangle*> tempRects; RealTime length = endTime - startTime; double ticksPerUsec = double(m_previewWidth) / @@ -294,20 +294,20 @@ AudioSplitDialog::drawSplits(int threshold) x2 = int(ticksPerUsec * double(double(splitEnd.sec) * 1000000.0 + double(splitEnd.usec()))); - QCanvasRectangle *rect = new QCanvasRectangle(m_canvas); + TQCanvasRectangle *rect = new TQCanvasRectangle(m_canvas); rect->setX(startX + x1); rect->setY(halfHeight - m_previewHeight / 2 - overlapHeight / 2); rect->setZ(2); rect->setSize(x2 - x1, m_previewHeight + overlapHeight); rect->setPen(kapp-> - palette().color(QPalette::Active, QColorGroup::Mid)); + palette().color(TQPalette::Active, TQColorGroup::Mid)); rect->setBrush(kapp-> - palette().color(QPalette::Active, QColorGroup::Mid)); + palette().color(TQPalette::Active, TQColorGroup::Mid)); rect->setVisible(true); tempRects.push_back(rect); } - std::vector<QCanvasRectangle*>::iterator pIt; + std::vector<TQCanvasRectangle*>::iterator pIt; // We've written the new Rects, now delete the old ones // diff --git a/src/gui/dialogs/AudioSplitDialog.h b/src/gui/dialogs/AudioSplitDialog.h index 7dc52c0..0d1febf 100644 --- a/src/gui/dialogs/AudioSplitDialog.h +++ b/src/gui/dialogs/AudioSplitDialog.h @@ -28,13 +28,13 @@ #include <kdialogbase.h> #include <vector> -#include <qspinbox.h> +#include <tqspinbox.h> -class QWidget; -class QCanvasView; -class QCanvasRectangle; -class QCanvas; +class TQWidget; +class TQCanvasView; +class TQCanvasRectangle; +class TQCanvas; namespace Rosegarden @@ -48,7 +48,7 @@ class AudioSplitDialog : public KDialogBase { Q_OBJECT public: - AudioSplitDialog(QWidget *parent, + AudioSplitDialog(TQWidget *parent, Segment *segment, RosegardenGUIDoc *doc); @@ -68,16 +68,16 @@ public slots: protected: RosegardenGUIDoc *m_doc; Segment *m_segment; - QCanvas *m_canvas; - QCanvasView *m_canvasView; - QSpinBox *m_thresholdSpin; + TQCanvas *m_canvas; + TQCanvasView *m_canvasView; + TQSpinBox *m_thresholdSpin; int m_canvasWidth; int m_canvasHeight; int m_previewWidth; int m_previewHeight; - std::vector<QCanvasRectangle*> m_previewBoxes; + std::vector<TQCanvasRectangle*> m_previewBoxes; }; diff --git a/src/gui/dialogs/BeatsBarsDialog.cpp b/src/gui/dialogs/BeatsBarsDialog.cpp index 774ddb9..8f765a7 100644 --- a/src/gui/dialogs/BeatsBarsDialog.cpp +++ b/src/gui/dialogs/BeatsBarsDialog.cpp @@ -24,35 +24,35 @@ #include "BeatsBarsDialog.h" -#include <qlayout.h> +#include <tqlayout.h> #include <klocale.h> #include "base/Segment.h" #include <kcombobox.h> #include <kdialogbase.h> -#include <qframe.h> -#include <qgroupbox.h> -#include <qhbox.h> -#include <qspinbox.h> -#include <qwidget.h> +#include <tqframe.h> +#include <tqgroupbox.h> +#include <tqhbox.h> +#include <tqspinbox.h> +#include <tqwidget.h> namespace Rosegarden { -BeatsBarsDialog::BeatsBarsDialog(QWidget* parent) : +BeatsBarsDialog::BeatsBarsDialog(TQWidget* parent) : KDialogBase(parent, 0, true, i18n("Audio Segment Duration"), Ok | Cancel, Ok) { - QHBox *hbox = makeHBoxMainWidget(); + TQHBox *hbox = makeHBoxMainWidget(); - QGroupBox *gbox = new QGroupBox(1, Horizontal, + TQGroupBox *gbox = new TQGroupBox(1, Horizontal, i18n("The selected audio segment contains:"), hbox); - QFrame *frame = new QFrame(gbox); - QGridLayout *layout = new QGridLayout(frame, 1, 2, 5, 5); + TQFrame *frame = new TQFrame(gbox); + TQGridLayout *layout = new TQGridLayout(frame, 1, 2, 5, 5); - m_spinBox = new QSpinBox(1, INT_MAX, 1, frame, "glee"); + m_spinBox = new TQSpinBox(1, INT_MAX, 1, frame, "glee"); layout->addWidget(m_spinBox, 0, 0); m_comboBox = new KComboBox(false, frame); diff --git a/src/gui/dialogs/BeatsBarsDialog.h b/src/gui/dialogs/BeatsBarsDialog.h index 6546f01..658a4fb 100644 --- a/src/gui/dialogs/BeatsBarsDialog.h +++ b/src/gui/dialogs/BeatsBarsDialog.h @@ -27,10 +27,10 @@ #define _RG_BEATSBARSDIALOG_H_ #include <kdialogbase.h> -#include <qspinbox.h> +#include <tqspinbox.h> #include <kcombobox.h> -class QWidget; +class TQWidget; namespace Rosegarden @@ -46,13 +46,13 @@ class BeatsBarsDialog : public KDialogBase public: BeatsBarsDialog(); - BeatsBarsDialog(QWidget *parent); + BeatsBarsDialog(TQWidget *parent); int getQuantity() { return m_spinBox->value(); } int getMode() { return m_comboBox->currentItem(); } protected: - QSpinBox *m_spinBox; + TQSpinBox *m_spinBox; KComboBox *m_comboBox; }; diff --git a/src/gui/dialogs/ClefDialog.cpp b/src/gui/dialogs/ClefDialog.cpp index 8f802b0..bfb2ee1 100644 --- a/src/gui/dialogs/ClefDialog.cpp +++ b/src/gui/dialogs/ClefDialog.cpp @@ -30,23 +30,23 @@ #include "gui/widgets/BigArrowButton.h" #include <klocale.h> #include <kdialogbase.h> -#include <qbuttongroup.h> -#include <qgroupbox.h> -#include <qhbox.h> -#include <qlabel.h> -#include <qobject.h> -#include <qpixmap.h> -#include <qradiobutton.h> -#include <qstring.h> -#include <qtooltip.h> -#include <qvbox.h> -#include <qwidget.h> +#include <tqbuttongroup.h> +#include <tqgroupbox.h> +#include <tqhbox.h> +#include <tqlabel.h> +#include <tqobject.h> +#include <tqpixmap.h> +#include <tqradiobutton.h> +#include <tqstring.h> +#include <tqtooltip.h> +#include <tqvbox.h> +#include <tqwidget.h> namespace Rosegarden { -ClefDialog::ClefDialog(QWidget *parent, +ClefDialog::ClefDialog(TQWidget *parent, NotePixmapFactory *npf, Clef defaultClef, bool showConversionOptions) : @@ -56,38 +56,38 @@ ClefDialog::ClefDialog(QWidget *parent, { setHelp("nv-signatures-clef"); - QVBox *vbox = makeVBoxMainWidget(); + TQVBox *vbox = makeVBoxMainWidget(); - QGroupBox *clefFrame = new QGroupBox + TQGroupBox *clefFrame = new QGroupBox (1, Horizontal, i18n("Clef"), vbox); - QButtonGroup *conversionFrame = new QButtonGroup + TQButtonGroup *conversionFrame = new QButtonGroup (1, Horizontal, i18n("Existing notes following clef change"), vbox); - QHBox *clefBox = new QHBox(clefFrame); + TQHBox *clefBox = new TQHBox(clefFrame); BigArrowButton *clefDown = new BigArrowButton(clefBox, Qt::LeftArrow); - QToolTip::add + TQToolTip::add (clefDown, i18n("Lower clef")); - QHBox *clefLabelBox = new QVBox(clefBox); + TQHBox *clefLabelBox = new TQVBox(clefBox); m_octaveUp = new BigArrowButton(clefLabelBox, Qt::UpArrow); - QToolTip::add + TQToolTip::add (m_octaveUp, i18n("Up an Octave")); - m_clefLabel = new QLabel(i18n("Clef"), clefLabelBox); + m_clefLabel = new TQLabel(i18n("Clef"), clefLabelBox); m_clefLabel->setAlignment(AlignVCenter | AlignHCenter); m_octaveDown = new BigArrowButton(clefLabelBox, Qt::DownArrow); - QToolTip::add + TQToolTip::add (m_octaveDown, i18n("Down an Octave")); BigArrowButton *clefUp = new BigArrowButton(clefBox, Qt::RightArrow); - QToolTip::add + TQToolTip::add (clefUp, i18n("Higher clef")); - m_clefNameLabel = new QLabel(i18n("Clef"), clefLabelBox); + m_clefNameLabel = new TQLabel(i18n("Clef"), clefLabelBox); m_clefNameLabel->setAlignment(AlignVCenter | AlignHCenter); if (showConversionOptions) { @@ -111,10 +111,10 @@ ClefDialog::ClefDialog(QWidget *parent, conversionFrame->hide(); } - QObject::connect(clefUp, SIGNAL(clicked()), this, SLOT(slotClefUp())); - QObject::connect(clefDown, SIGNAL(clicked()), this, SLOT(slotClefDown())); - QObject::connect(m_octaveUp, SIGNAL(clicked()), this, SLOT(slotOctaveUp())); - QObject::connect(m_octaveDown, SIGNAL(clicked()), this, SLOT(slotOctaveDown())); + TQObject::connect(clefUp, TQT_SIGNAL(clicked()), this, TQT_SLOT(slotClefUp())); + TQObject::connect(clefDown, TQT_SIGNAL(clicked()), this, TQT_SLOT(slotClefDown())); + TQObject::connect(m_octaveUp, TQT_SIGNAL(clicked()), this, TQT_SLOT(slotOctaveUp())); + TQObject::connect(m_octaveDown, TQT_SIGNAL(clicked()), this, TQT_SLOT(slotOctaveDown())); redrawClefPixmap(); } @@ -219,11 +219,11 @@ ClefDialog::slotOctaveDown() void ClefDialog::redrawClefPixmap() { - QPixmap pmap = NotePixmapFactory::toQPixmap + TQPixmap pmap = NotePixmapFactory::toQPixmap (m_notePixmapFactory->makeClefDisplayPixmap(m_clef)); m_clefLabel->setPixmap(pmap); - QString name; + TQString name; int octave = m_clef.getOctaveOffset(); switch (octave) { diff --git a/src/gui/dialogs/ClefDialog.h b/src/gui/dialogs/ClefDialog.h index 771cd4a..634e4b9 100644 --- a/src/gui/dialogs/ClefDialog.h +++ b/src/gui/dialogs/ClefDialog.h @@ -30,9 +30,9 @@ #include <kdialogbase.h> -class QWidget; -class QRadioButton; -class QLabel; +class TQWidget; +class TQRadioButton; +class TQLabel; namespace Rosegarden @@ -53,7 +53,7 @@ public: Transpose, }; - ClefDialog(QWidget *parent, + ClefDialog(TQWidget *parent, NotePixmapFactory *npf, Clef defaultClef, bool showConversionOptions = true); @@ -75,15 +75,15 @@ protected: NotePixmapFactory *m_notePixmapFactory; Clef m_clef; - QLabel *m_clefLabel; - QLabel *m_clefNameLabel; + TQLabel *m_clefLabel; + TQLabel *m_clefNameLabel; BigArrowButton *m_octaveUp; BigArrowButton *m_octaveDown; - QRadioButton *m_noConversionButton; - QRadioButton *m_changeOctaveButton; - QRadioButton *m_transposeButton; + TQRadioButton *m_noConversionButton; + TQRadioButton *m_changeOctaveButton; + TQRadioButton *m_transposeButton; }; diff --git a/src/gui/dialogs/CompositionLengthDialog.cpp b/src/gui/dialogs/CompositionLengthDialog.cpp index 24a3107..85d2530 100644 --- a/src/gui/dialogs/CompositionLengthDialog.cpp +++ b/src/gui/dialogs/CompositionLengthDialog.cpp @@ -28,39 +28,39 @@ #include <klocale.h> #include "base/Composition.h" #include <kdialogbase.h> -#include <qhbox.h> -#include <qlabel.h> -#include <qspinbox.h> -#include <qvbox.h> -#include <qwidget.h> +#include <tqhbox.h> +#include <tqlabel.h> +#include <tqspinbox.h> +#include <tqvbox.h> +#include <tqwidget.h> namespace Rosegarden { CompositionLengthDialog::CompositionLengthDialog( - QWidget *parent, + TQWidget *parent, Composition *composition): KDialogBase(parent, 0, true, i18n("Change Composition Length"), Ok | Cancel), m_composition(composition) { - QVBox *vBox = makeVBoxMainWidget(); + TQVBox *vBox = makeVBoxMainWidget(); - new QLabel(i18n("Set the Start and End bar markers for this Composition"), + new TQLabel(i18n("Set the Start and End bar markers for this Composition"), vBox); - QHBox *startBox = new QHBox(vBox); - new QLabel(i18n("Start Bar"), startBox); - m_startMarkerSpinBox = new QSpinBox(startBox); + TQHBox *startBox = new TQHBox(vBox); + new TQLabel(i18n("Start Bar"), startBox); + m_startMarkerSpinBox = new TQSpinBox(startBox); m_startMarkerSpinBox->setMinValue( -10); m_startMarkerSpinBox->setMaxValue(10000); m_startMarkerSpinBox->setValue( m_composition->getBarNumber(m_composition->getStartMarker()) + 1); - QHBox *endBox = new QHBox(vBox); - new QLabel(i18n("End Bar"), endBox); - m_endMarkerSpinBox = new QSpinBox(endBox); + TQHBox *endBox = new TQHBox(vBox); + new TQLabel(i18n("End Bar"), endBox); + m_endMarkerSpinBox = new TQSpinBox(endBox); m_endMarkerSpinBox->setMinValue( -10); m_endMarkerSpinBox->setMaxValue(10000); m_endMarkerSpinBox->setValue( diff --git a/src/gui/dialogs/CompositionLengthDialog.h b/src/gui/dialogs/CompositionLengthDialog.h index e6d688c..373bf73 100644 --- a/src/gui/dialogs/CompositionLengthDialog.h +++ b/src/gui/dialogs/CompositionLengthDialog.h @@ -30,8 +30,8 @@ #include "base/Event.h" -class QWidget; -class QSpinBox; +class TQWidget; +class TQSpinBox; namespace Rosegarden @@ -44,7 +44,7 @@ class CompositionLengthDialog : public KDialogBase { Q_OBJECT public: - CompositionLengthDialog(QWidget *parent, + CompositionLengthDialog(TQWidget *parent, Composition *composition); timeT getStartMarker(); @@ -52,8 +52,8 @@ public: protected: - QSpinBox *m_startMarkerSpinBox; - QSpinBox *m_endMarkerSpinBox; + TQSpinBox *m_startMarkerSpinBox; + TQSpinBox *m_endMarkerSpinBox; Composition *m_composition; }; diff --git a/src/gui/dialogs/ConfigureDialog.cpp b/src/gui/dialogs/ConfigureDialog.cpp index 1bdd3b4..2ba63c0 100644 --- a/src/gui/dialogs/ConfigureDialog.cpp +++ b/src/gui/dialogs/ConfigureDialog.cpp @@ -24,7 +24,7 @@ #include "ConfigureDialog.h" -#include <qlayout.h> +#include <tqlayout.h> #include <klocale.h> #include "ConfigureDialogBase.h" @@ -36,37 +36,37 @@ #include <kconfig.h> #include <kdialogbase.h> #include <kstddirs.h> -#include <qstring.h> -#include <qwidget.h> +#include <tqstring.h> +#include <tqwidget.h> namespace Rosegarden { -static QPixmap loadIcon(const char *name) +static TQPixmap loadIcon(const char *name) { - QString pixmapDir = KGlobal::dirs()->findResource("appdata", "pixmaps/"); - QString fileBase = pixmapDir + "/misc/"; + TQString pixmapDir = KGlobal::dirs()->findResource("appdata", "pixmaps/"); + TQString fileBase = pixmapDir + "/misc/"; fileBase += name; - if (QFile(fileBase + ".png").exists()) { - return QPixmap(fileBase + ".png"); - } else if (QFile(fileBase + ".xpm").exists()) { - return QPixmap(fileBase + ".xpm"); + if (TQFile(fileBase + ".png").exists()) { + return TQPixmap(fileBase + ".png"); + } else if (TQFile(fileBase + ".xpm").exists()) { + return TQPixmap(fileBase + ".xpm"); } - QPixmap pmap = KGlobal::instance()->iconLoader() - ->loadIcon(QString::fromLatin1(name), KIcon::NoGroup, KIcon::SizeMedium); + TQPixmap pmap = KGlobal::instance()->iconLoader() + ->loadIcon(TQString::fromLatin1(name), KIcon::NoGroup, KIcon::SizeMedium); return pmap; } ConfigureDialog::ConfigureDialog(RosegardenGUIDoc *doc, KConfig* cfg, - QWidget *parent, + TQWidget *parent, const char *name) : ConfigureDialogBase(parent, i18n("Configure Rosegarden"), name) { - QWidget *pageWidget = 0; - QVBoxLayout *vlay = 0; + TQWidget *pageWidget = 0; + TQVBoxLayout *vlay = 0; ConfigurationPage* page = 0; // General Page @@ -74,21 +74,21 @@ ConfigureDialog::ConfigureDialog(RosegardenGUIDoc *doc, pageWidget = addPage(GeneralConfigurationPage::iconLabel(), GeneralConfigurationPage::title(), loadIcon(GeneralConfigurationPage::iconName())); - vlay = new QVBoxLayout(pageWidget, 0, spacingHint()); + vlay = new TQVBoxLayout(pageWidget, 0, spacingHint()); page = new GeneralConfigurationPage(doc, cfg, pageWidget); vlay->addWidget(page); page->setPageIndex(pageIndex(pageWidget)); m_configurationPages.push_back(page); - connect(page, SIGNAL(updateAutoSaveInterval(unsigned int)), - this, SIGNAL(updateAutoSaveInterval(unsigned int))); - connect(page, SIGNAL(updateSidebarStyle(unsigned int)), - this, SIGNAL(updateSidebarStyle(unsigned int))); + connect(page, TQT_SIGNAL(updateAutoSaveInterval(unsigned int)), + this, TQT_SIGNAL(updateAutoSaveInterval(unsigned int))); + connect(page, TQT_SIGNAL(updateSidebarStyle(unsigned int)), + this, TQT_SIGNAL(updateSidebarStyle(unsigned int))); pageWidget = addPage(MIDIConfigurationPage::iconLabel(), MIDIConfigurationPage::title(), loadIcon(MIDIConfigurationPage::iconName())); - vlay = new QVBoxLayout(pageWidget, 0, spacingHint()); + vlay = new TQVBoxLayout(pageWidget, 0, spacingHint()); page = new MIDIConfigurationPage(doc, cfg, pageWidget); vlay->addWidget(page); page->setPageIndex(pageIndex(pageWidget)); @@ -97,7 +97,7 @@ ConfigureDialog::ConfigureDialog(RosegardenGUIDoc *doc, pageWidget = addPage(AudioConfigurationPage::iconLabel(), AudioConfigurationPage::title(), loadIcon(AudioConfigurationPage::iconName())); - vlay = new QVBoxLayout(pageWidget, 0, spacingHint()); + vlay = new TQVBoxLayout(pageWidget, 0, spacingHint()); page = new AudioConfigurationPage(doc, cfg, pageWidget); vlay->addWidget(page); page->setPageIndex(pageIndex(pageWidget)); @@ -107,7 +107,7 @@ ConfigureDialog::ConfigureDialog(RosegardenGUIDoc *doc, pageWidget = addPage(NotationConfigurationPage::iconLabel(), NotationConfigurationPage::title(), loadIcon(NotationConfigurationPage::iconName())); - vlay = new QVBoxLayout(pageWidget, 0, spacingHint()); + vlay = new TQVBoxLayout(pageWidget, 0, spacingHint()); page = new NotationConfigurationPage(cfg, pageWidget); vlay->addWidget(page); page->setPageIndex(pageIndex(pageWidget)); diff --git a/src/gui/dialogs/ConfigureDialog.h b/src/gui/dialogs/ConfigureDialog.h index 4dd6fff..7b63ffd 100644 --- a/src/gui/dialogs/ConfigureDialog.h +++ b/src/gui/dialogs/ConfigureDialog.h @@ -29,7 +29,7 @@ #include "ConfigureDialogBase.h" -class QWidget; +class TQWidget; class KConfig; @@ -45,7 +45,7 @@ class ConfigureDialog : public ConfigureDialogBase public: ConfigureDialog(RosegardenGUIDoc *doc, KConfig* cfg, - QWidget *parent=0, + TQWidget *parent=0, const char *name=0); signals: void updateAutoSaveInterval(unsigned int); diff --git a/src/gui/dialogs/ConfigureDialogBase.cpp b/src/gui/dialogs/ConfigureDialogBase.cpp index 7d5555a..017e6a6 100644 --- a/src/gui/dialogs/ConfigureDialogBase.cpp +++ b/src/gui/dialogs/ConfigureDialogBase.cpp @@ -28,15 +28,15 @@ #include <klocale.h> #include "gui/configuration/ConfigurationPage.h" #include <kdialogbase.h> -#include <qstring.h> -#include <qwidget.h> +#include <tqstring.h> +#include <tqwidget.h> namespace Rosegarden { -ConfigureDialogBase::ConfigureDialogBase(QWidget *parent, - QString label, +ConfigureDialogBase::ConfigureDialogBase(TQWidget *parent, + TQString label, const char *name): KDialogBase(IconList, label ? label : i18n("Configure"), Help | Apply | Ok | Cancel, Ok, parent, name, true) // modal diff --git a/src/gui/dialogs/ConfigureDialogBase.h b/src/gui/dialogs/ConfigureDialogBase.h index fe05ebe..dc02a9c 100644 --- a/src/gui/dialogs/ConfigureDialogBase.h +++ b/src/gui/dialogs/ConfigureDialogBase.h @@ -27,11 +27,11 @@ #define _RG_CONFIGUREDIALOGBASE_H_ #include <kdialogbase.h> -#include <qstring.h> +#include <tqstring.h> #include <vector> -class QWidget; +class TQWidget; namespace Rosegarden @@ -44,8 +44,8 @@ class ConfigureDialogBase : public KDialogBase { Q_OBJECT public: - ConfigureDialogBase(QWidget *parent=0, - QString label = 0, + ConfigureDialogBase(TQWidget *parent=0, + TQString label = 0, const char *name=0); virtual ~ConfigureDialogBase(); diff --git a/src/gui/dialogs/CountdownBar.cpp b/src/gui/dialogs/CountdownBar.cpp index cfad3d8..8d4d0b8 100644 --- a/src/gui/dialogs/CountdownBar.cpp +++ b/src/gui/dialogs/CountdownBar.cpp @@ -26,25 +26,25 @@ #include "CountdownBar.h" #include "gui/general/GUIPalette.h" -#include <qframe.h> -#include <qpainter.h> -#include <qwidget.h> +#include <tqframe.h> +#include <tqpainter.h> +#include <tqwidget.h> namespace Rosegarden { -CountdownBar::CountdownBar(QWidget *parent, int width, int height): - QFrame(parent), m_width(width), m_height(height), m_position(0) +CountdownBar::CountdownBar(TQWidget *parent, int width, int height): + TQFrame(parent), m_width(width), m_height(height), m_position(0) { resize(m_width, m_height); repaint(); } void -CountdownBar::paintEvent(QPaintEvent *e) +CountdownBar::paintEvent(TQPaintEvent *e) { - QPainter p(this); + TQPainter p(this); p.setClipRegion(e->region()); p.setClipRect(e->rect().normalize()); diff --git a/src/gui/dialogs/CountdownBar.h b/src/gui/dialogs/CountdownBar.h index 364d0cf..edb17e3 100644 --- a/src/gui/dialogs/CountdownBar.h +++ b/src/gui/dialogs/CountdownBar.h @@ -26,11 +26,11 @@ #ifndef _RG_COUNTDOWNBAR_H_ #define _RG_COUNTDOWNBAR_H_ -#include <qframe.h> +#include <tqframe.h> -class QWidget; -class QPaintEvent; +class TQWidget; +class TQPaintEvent; namespace Rosegarden @@ -42,11 +42,11 @@ class CountdownBar : public QFrame { Q_OBJECT public: - CountdownBar(QWidget *parent, int width, int height); + CountdownBar(TQWidget *parent, int width, int height); void setPosition(int position); protected: - virtual void paintEvent(QPaintEvent *e); + virtual void paintEvent(TQPaintEvent *e); int m_width; int m_height; diff --git a/src/gui/dialogs/CountdownDialog.cpp b/src/gui/dialogs/CountdownDialog.cpp index f624aba..537bc2b 100644 --- a/src/gui/dialogs/CountdownDialog.cpp +++ b/src/gui/dialogs/CountdownDialog.cpp @@ -24,36 +24,36 @@ #include "CountdownDialog.h" -#include <qlayout.h> +#include <tqlayout.h> #include <klocale.h> #include "CountdownBar.h" -#include <qaccel.h> -#include <qdialog.h> -#include <qhbox.h> -#include <qlabel.h> -#include <qpushbutton.h> -#include <qstring.h> -#include <qwidget.h> +#include <tqaccel.h> +#include <tqdialog.h> +#include <tqhbox.h> +#include <tqlabel.h> +#include <tqpushbutton.h> +#include <tqstring.h> +#include <tqwidget.h> #include "misc/Debug.h" namespace Rosegarden { -CountdownDialog::CountdownDialog(QWidget *parent, int seconds): - QDialog(parent, "", false, WStyle_StaysOnTop | WStyle_DialogBorder), +CountdownDialog::CountdownDialog(TQWidget *parent, int seconds): + TQDialog(parent, "", false, WStyle_StaysOnTop | WStyle_DialogBorder), m_pastEndMode(false), m_totalTime(seconds), m_progressBarWidth(150), m_progressBarHeight(15) { - QBoxLayout *layout = new QBoxLayout(this, QBoxLayout::TopToBottom, 10, 14); + TQBoxLayout *layout = new TQBoxLayout(this, TQBoxLayout::TopToBottom, 10, 14); setCaption(i18n("Recording...")); - QHBox *hBox = new QHBox(this); - m_label = new QLabel(hBox); - m_time = new QLabel(hBox); + TQHBox *hBox = new TQHBox(this); + m_label = new TQLabel(hBox); + m_time = new TQLabel(hBox); layout->addWidget(hBox, 0, AlignCenter); @@ -65,24 +65,24 @@ CountdownDialog::CountdownDialog(QWidget *parent, int seconds): // Simply re-emit from Stop button // - m_stopButton = new QPushButton(i18n("Stop"), this); + m_stopButton = new TQPushButton(i18n("Stop"), this); m_stopButton->setFixedWidth(60); layout->addWidget(m_progressBar, 0, AlignCenter); layout->addWidget(m_stopButton, 0, AlignRight); - connect (m_stopButton, SIGNAL(released()), this, SIGNAL(stopped())); + connect (m_stopButton, TQT_SIGNAL(released()), this, TQT_SIGNAL(stopped())); // Set the total time to show the bar in initial position // setElapsedTime(0); - m_accelerators = new QAccel(this); + m_accelerators = new TQAccel(this); } void -CountdownDialog::setLabel(const QString &label) +CountdownDialog::setLabel(const TQString &label) { m_label->setText(label); } @@ -105,17 +105,17 @@ CountdownDialog::setElapsedTime(int elapsedSeconds) setPastEndMode(); } - QString h, m, s; + TQString h, m, s; h.sprintf("%02d", seconds / 3600); m.sprintf("%02d", seconds / 60); s.sprintf("%02d", seconds % 60); if (seconds < 3600) // less than an hour { - m_time->setText(QString("%1:%2").arg(m).arg(s)); + m_time->setText(TQString("%1:%2").arg(m).arg(s)); } else if (seconds < 86400) // less than a day { - m_time->setText(QString("%1:%2:%3").arg(h).arg(m).arg(s)); + m_time->setText(TQString("%1:%2:%3").arg(h).arg(m).arg(s)); } else { m_time->setText(i18n("Just how big is your hard disk?")); } diff --git a/src/gui/dialogs/CountdownDialog.h b/src/gui/dialogs/CountdownDialog.h index 00aa6e0..fdba289 100644 --- a/src/gui/dialogs/CountdownDialog.h +++ b/src/gui/dialogs/CountdownDialog.h @@ -27,14 +27,14 @@ #define _RG_COUNTDOWNDIALOG_H_ #include <kdialogbase.h> -#include <qdialog.h> +#include <tqdialog.h> -class QWidget; -class QString; -class QPushButton; -class QLabel; -class QAccel; +class TQWidget; +class TQString; +class TQPushButton; +class TQLabel; +class TQAccel; namespace Rosegarden @@ -43,20 +43,20 @@ namespace Rosegarden class CountdownBar; -class CountdownDialog : public QDialog // KDialogBase +class CountdownDialog : public TQDialog // KDialogBase { Q_OBJECT public: - CountdownDialog(QWidget *parent, int seconds = 300); + CountdownDialog(TQWidget *parent, int seconds = 300); - void setLabel(const QString &label); + void setLabel(const TQString &label); void setElapsedTime(int seconds); int getTotalTime() const { return m_totalTime; } void setTotalTime(int seconds); - QAccel* getAccelerators() { return m_accelerators; } + TQAccel* getAccelerators() { return m_accelerators; } signals: void completed(); // m_totalTime has elapsed @@ -69,16 +69,16 @@ protected: int m_totalTime; - QLabel *m_label; - QLabel *m_time; + TQLabel *m_label; + TQLabel *m_time; CountdownBar *m_progressBar; - QPushButton *m_stopButton; + TQPushButton *m_stopButton; int m_progressBarWidth; int m_progressBarHeight; - QAccel *m_accelerators; + TQAccel *m_accelerators; }; diff --git a/src/gui/dialogs/DocumentConfigureDialog.cpp b/src/gui/dialogs/DocumentConfigureDialog.cpp index 5f79f33..d959a5c 100644 --- a/src/gui/dialogs/DocumentConfigureDialog.cpp +++ b/src/gui/dialogs/DocumentConfigureDialog.cpp @@ -24,7 +24,7 @@ #include "DocumentConfigureDialog.h" -#include <qlayout.h> +#include <tqlayout.h> #include <klocale.h> #include "ConfigureDialogBase.h" @@ -34,37 +34,37 @@ #include "gui/configuration/DocumentMetaConfigurationPage.h" #include "gui/configuration/GeneralConfigurationPage.h" #include <kdialogbase.h> -#include <qstring.h> -#include <qwidget.h> +#include <tqstring.h> +#include <tqwidget.h> #include <kstddirs.h> namespace Rosegarden { -static QPixmap loadIcon(const char *name) +static TQPixmap loadIcon(const char *name) { - QString pixmapDir = KGlobal::dirs()->findResource("appdata", "pixmaps/"); - QString fileBase = pixmapDir + "/misc/"; + TQString pixmapDir = KGlobal::dirs()->findResource("appdata", "pixmaps/"); + TQString fileBase = pixmapDir + "/misc/"; fileBase += name; - if (QFile(fileBase + ".png").exists()) { - return QPixmap(fileBase + ".png"); - } else if (QFile(fileBase + ".xpm").exists()) { - return QPixmap(fileBase + ".xpm"); + if (TQFile(fileBase + ".png").exists()) { + return TQPixmap(fileBase + ".png"); + } else if (TQFile(fileBase + ".xpm").exists()) { + return TQPixmap(fileBase + ".xpm"); } - QPixmap pmap = KGlobal::instance()->iconLoader() - ->loadIcon(QString::fromLatin1(name), KIcon::NoGroup, KIcon::SizeMedium); + TQPixmap pmap = KGlobal::instance()->iconLoader() + ->loadIcon(TQString::fromLatin1(name), KIcon::NoGroup, KIcon::SizeMedium); return pmap; } DocumentConfigureDialog::DocumentConfigureDialog(RosegardenGUIDoc *doc, - QWidget *parent, + TQWidget *parent, const char *name) : ConfigureDialogBase(parent, i18n("Document Properties"), name) { - QWidget *pageWidget = 0; - QVBoxLayout *vlay = 0; + TQWidget *pageWidget = 0; + TQVBoxLayout *vlay = 0; ConfigurationPage* page = 0; // Document Meta Page @@ -72,7 +72,7 @@ DocumentConfigureDialog::DocumentConfigureDialog(RosegardenGUIDoc *doc, pageWidget = addPage(DocumentMetaConfigurationPage::iconLabel(), DocumentMetaConfigurationPage::title(), loadIcon(DocumentMetaConfigurationPage::iconName())); - vlay = new QVBoxLayout(pageWidget, 0, spacingHint()); + vlay = new TQVBoxLayout(pageWidget, 0, spacingHint()); page = new DocumentMetaConfigurationPage(doc, pageWidget); vlay->addWidget(page); page->setPageIndex(pageIndex(pageWidget)); @@ -83,7 +83,7 @@ DocumentConfigureDialog::DocumentConfigureDialog(RosegardenGUIDoc *doc, pageWidget = addPage(AudioPropertiesPage::iconLabel(), AudioPropertiesPage::title(), loadIcon(AudioPropertiesPage::iconName())); - vlay = new QVBoxLayout(pageWidget, 0, spacingHint()); + vlay = new TQVBoxLayout(pageWidget, 0, spacingHint()); page = new AudioPropertiesPage(doc, pageWidget); vlay->addWidget(page); page->setPageIndex(pageIndex(pageWidget)); @@ -94,7 +94,7 @@ DocumentConfigureDialog::DocumentConfigureDialog(RosegardenGUIDoc *doc, ColourConfigurationPage::title(), loadIcon(ColourConfigurationPage::iconName())); - vlay = new QVBoxLayout(pageWidget, 0, spacingHint()); + vlay = new TQVBoxLayout(pageWidget, 0, spacingHint()); page = new ColourConfigurationPage(doc, pageWidget); vlay->addWidget(page); page->setPageIndex(pageIndex(pageWidget)); @@ -126,7 +126,7 @@ DocumentConfigureDialog::showAudioPage() /* hjj: WHAT TO DO WITH THIS ? void -DocumentConfigureDialog::selectMetadata(QString name) +DocumentConfigureDialog::selectMetadata(TQString name) { int index = 0; diff --git a/src/gui/dialogs/DocumentConfigureDialog.h b/src/gui/dialogs/DocumentConfigureDialog.h index 6713047..08f9283 100644 --- a/src/gui/dialogs/DocumentConfigureDialog.h +++ b/src/gui/dialogs/DocumentConfigureDialog.h @@ -26,10 +26,10 @@ #define _RG_DOCUMENTCONFIGUREDIALOG_H_ #include "ConfigureDialogBase.h" -#include <qstring.h> +#include <tqstring.h> -class QWidget; +class TQWidget; namespace Rosegarden @@ -42,13 +42,13 @@ class DocumentConfigureDialog : public ConfigureDialogBase { public: DocumentConfigureDialog(RosegardenGUIDoc *doc, - QWidget *parent=0, + TQWidget *parent=0, const char *name=0); void showAudioPage(); /* hjj: WHAT TO DO WITH THIS ? - void selectMetadata(QString name); + void selectMetadata(TQString name); */ }; diff --git a/src/gui/dialogs/EventEditDialog.cpp b/src/gui/dialogs/EventEditDialog.cpp index c9991f1..6446246 100644 --- a/src/gui/dialogs/EventEditDialog.cpp +++ b/src/gui/dialogs/EventEditDialog.cpp @@ -35,29 +35,29 @@ #include "gui/editors/notation/NotePixmapFactory.h" #include <kdialogbase.h> #include <kmessagebox.h> -#include <qcheckbox.h> -#include <qfont.h> -#include <qgrid.h> -#include <qgroupbox.h> -#include <qhbox.h> -#include <qlabel.h> -#include <qlineedit.h> -#include <qobject.h> -#include <qobjectlist.h> -#include <qpushbutton.h> -#include <qscrollview.h> -#include <qsize.h> -#include <qspinbox.h> -#include <qstring.h> -#include <qtooltip.h> -#include <qvbox.h> -#include <qwidget.h> +#include <tqcheckbox.h> +#include <tqfont.h> +#include <tqgrid.h> +#include <tqgroupbox.h> +#include <tqhbox.h> +#include <tqlabel.h> +#include <tqlineedit.h> +#include <tqobject.h> +#include <tqobjectlist.h> +#include <tqpushbutton.h> +#include <tqscrollview.h> +#include <tqsize.h> +#include <tqspinbox.h> +#include <tqstring.h> +#include <tqtooltip.h> +#include <tqvbox.h> +#include <tqwidget.h> namespace Rosegarden { -EventEditDialog::EventEditDialog(QWidget *parent, +EventEditDialog::EventEditDialog(TQWidget *parent, const Event &event, bool editable) : KDialogBase(parent, 0, true, i18n(editable ? "Advanced Event Edit" : "Advanced Event Viewer"), @@ -75,66 +75,66 @@ EventEditDialog::EventEditDialog(QWidget *parent, m_subOrdering(event.getSubOrdering()), m_modified(false) { - QVBox *vbox = makeVBoxMainWidget(); + TQVBox *vbox = makeVBoxMainWidget(); - QGroupBox *intrinsicBox = new QGroupBox + TQGroupBox *intrinsicBox = new QGroupBox (1, Horizontal, i18n("Intrinsics"), vbox); - QGrid *intrinsicGrid = new QGrid(4, QGrid::Horizontal, intrinsicBox); + TQGrid *intrinsicGrid = new TQGrid(4, TQGrid::Horizontal, intrinsicBox); - new QLabel(i18n("Event type: "), intrinsicGrid); - new QLabel("", intrinsicGrid); - new QLabel("", intrinsicGrid); - QLineEdit *lineEdit = new QLineEdit(intrinsicGrid); + new TQLabel(i18n("Event type: "), intrinsicGrid); + new TQLabel("", intrinsicGrid); + new TQLabel("", intrinsicGrid); + TQLineEdit *lineEdit = new TQLineEdit(intrinsicGrid); lineEdit->setText(strtoqstr(event.getType())); - new QLabel(i18n("Absolute time: "), intrinsicGrid); - new QLabel("", intrinsicGrid); - new QLabel("", intrinsicGrid); - QSpinBox *absoluteTime = new QSpinBox + new TQLabel(i18n("Absolute time: "), intrinsicGrid); + new TQLabel("", intrinsicGrid); + new TQLabel("", intrinsicGrid); + TQSpinBox *absoluteTime = new QSpinBox (INT_MIN, INT_MAX, Note(Note::Shortest).getDuration(), intrinsicGrid); absoluteTime->setValue(event.getAbsoluteTime()); - QObject::connect(absoluteTime, SIGNAL(valueChanged(int)), - this, SLOT(slotAbsoluteTimeChanged(int))); + TQObject::connect(absoluteTime, TQT_SIGNAL(valueChanged(int)), + this, TQT_SLOT(slotAbsoluteTimeChanged(int))); slotAbsoluteTimeChanged(event.getAbsoluteTime()); - new QLabel(i18n("Duration: "), intrinsicGrid); - m_durationDisplay = new QLabel("(note)", intrinsicGrid); + new TQLabel(i18n("Duration: "), intrinsicGrid); + m_durationDisplay = new TQLabel("(note)", intrinsicGrid); m_durationDisplay->setMinimumWidth(20); - m_durationDisplayAux = new QLabel("(note)", intrinsicGrid); + m_durationDisplayAux = new TQLabel("(note)", intrinsicGrid); m_durationDisplayAux->setMinimumWidth(20); - QSpinBox *duration = new QSpinBox + TQSpinBox *duration = new QSpinBox (0, INT_MAX, Note(Note::Shortest).getDuration(), intrinsicGrid); duration->setValue(event.getDuration()); - QObject::connect(duration, SIGNAL(valueChanged(int)), - this, SLOT(slotDurationChanged(int))); + TQObject::connect(duration, TQT_SIGNAL(valueChanged(int)), + this, TQT_SLOT(slotDurationChanged(int))); slotDurationChanged(event.getDuration()); - new QLabel(i18n("Sub-ordering: "), intrinsicGrid); - new QLabel("", intrinsicGrid); - new QLabel("", intrinsicGrid); + new TQLabel(i18n("Sub-ordering: "), intrinsicGrid); + new TQLabel("", intrinsicGrid); + new TQLabel("", intrinsicGrid); - QSpinBox *subOrdering = new QSpinBox( -100, 100, 1, intrinsicGrid); + TQSpinBox *subOrdering = new TQSpinBox( -100, 100, 1, intrinsicGrid); subOrdering->setValue(event.getSubOrdering()); - QObject::connect(subOrdering, SIGNAL(valueChanged(int)), - this, SLOT(slotSubOrderingChanged(int))); + TQObject::connect(subOrdering, TQT_SIGNAL(valueChanged(int)), + this, TQT_SLOT(slotSubOrderingChanged(int))); slotSubOrderingChanged(event.getSubOrdering()); - QGroupBox *persistentBox = new QGroupBox + TQGroupBox *persistentBox = new QGroupBox (1, Horizontal, i18n("Persistent properties"), vbox); - m_persistentGrid = new QGrid(4, QGrid::Horizontal, persistentBox); + m_persistentGrid = new TQGrid(4, TQGrid::Horizontal, persistentBox); - QLabel *label = new QLabel(i18n("Name"), m_persistentGrid); - QFont font(label->font()); + TQLabel *label = new TQLabel(i18n("Name"), m_persistentGrid); + TQFont font(label->font()); font.setItalic(true); label->setFont(font); - label = new QLabel(i18n("Type"), m_persistentGrid); + label = new TQLabel(i18n("Type"), m_persistentGrid); label->setFont(font); - label = new QLabel(i18n("Value"), m_persistentGrid); + label = new TQLabel(i18n("Value"), m_persistentGrid); label->setFont(font); - label = new QLabel("", m_persistentGrid); + label = new TQLabel("", m_persistentGrid); label->setFont(font); Event::PropertyNames p = event.getPersistentPropertyNames(); @@ -151,43 +151,43 @@ EventEditDialog::EventEditDialog(QWidget *parent, m_nonPersistentGrid = 0; } else { - QGroupBox *nonPersistentBox = new QGroupBox + TQGroupBox *nonPersistentBox = new QGroupBox (1, Horizontal, i18n("Non-persistent properties"), vbox); - new QLabel(i18n("These are cached values, lost if the event is modified."), + new TQLabel(i18n("These are cached values, lost if the event is modified."), nonPersistentBox); - m_nonPersistentView = new QScrollView(nonPersistentBox); - //m_nonPersistentView->setHScrollBarMode(QScrollView::AlwaysOff); - m_nonPersistentView->setResizePolicy(QScrollView::AutoOneFit); + m_nonPersistentView = new TQScrollView(nonPersistentBox); + //m_nonPersistentView->setHScrollBarMode(TQScrollView::AlwaysOff); + m_nonPersistentView->setResizePolicy(TQScrollView::AutoOneFit); m_nonPersistentGrid = new QGrid - (4, QGrid::Horizontal, m_nonPersistentView->viewport()); + (4, TQGrid::Horizontal, m_nonPersistentView->viewport()); m_nonPersistentView->addChild(m_nonPersistentGrid); m_nonPersistentGrid->setSpacing(4); m_nonPersistentGrid->setMargin(5); - label = new QLabel(i18n("Name "), m_nonPersistentGrid); + label = new TQLabel(i18n("Name "), m_nonPersistentGrid); label->setFont(font); - label = new QLabel(i18n("Type "), m_nonPersistentGrid); + label = new TQLabel(i18n("Type "), m_nonPersistentGrid); label->setFont(font); - label = new QLabel(i18n("Value "), m_nonPersistentGrid); + label = new TQLabel(i18n("Value "), m_nonPersistentGrid); label->setFont(font); - label = new QLabel("", m_nonPersistentGrid); + label = new TQLabel("", m_nonPersistentGrid); label->setFont(font); for (Event::PropertyNames::iterator i = p.begin(); i != p.end(); ++i) { - new QLabel(strtoqstr(*i), m_nonPersistentGrid, strtoqstr(*i)); - new QLabel(strtoqstr(event.getPropertyTypeAsString(*i)), m_nonPersistentGrid, strtoqstr(*i)); - new QLabel(strtoqstr(event.getAsString(*i)), m_nonPersistentGrid, strtoqstr(*i)); - QPushButton *button = new QPushButton("P", m_nonPersistentGrid, strtoqstr(*i)); - button->setFixedSize(QSize(24, 24)); - QToolTip::add + new TQLabel(strtoqstr(*i), m_nonPersistentGrid, strtoqstr(*i)); + new TQLabel(strtoqstr(event.getPropertyTypeAsString(*i)), m_nonPersistentGrid, strtoqstr(*i)); + new TQLabel(strtoqstr(event.getAsString(*i)), m_nonPersistentGrid, strtoqstr(*i)); + TQPushButton *button = new TQPushButton("P", m_nonPersistentGrid, strtoqstr(*i)); + button->setFixedSize(TQSize(24, 24)); + TQToolTip::add (button, i18n("Make persistent")); - QObject::connect(button, SIGNAL(clicked()), - this, SLOT(slotPropertyMadePersistent())); + TQObject::connect(button, TQT_SIGNAL(clicked()), + this, TQT_SLOT(slotPropertyMadePersistent())); } } } @@ -195,9 +195,9 @@ EventEditDialog::EventEditDialog(QWidget *parent, void EventEditDialog::addPersistentProperty(const PropertyName &name) { - QLabel *label = new QLabel(strtoqstr(name), m_persistentGrid, strtoqstr(name)); + TQLabel *label = new TQLabel(strtoqstr(name), m_persistentGrid, strtoqstr(name)); label->show(); - label = new QLabel(strtoqstr(m_originalEvent.getPropertyTypeAsString(name)), + label = new TQLabel(strtoqstr(m_originalEvent.getPropertyTypeAsString(name)), m_persistentGrid, strtoqstr(name)); label->show(); @@ -212,11 +212,11 @@ EventEditDialog::addPersistentProperty(const PropertyName &name) min = 0; max = 127; } - QSpinBox *spinBox = new QSpinBox + TQSpinBox *spinBox = new QSpinBox (min, max, 1, m_persistentGrid, strtoqstr(name)); spinBox->setValue(m_originalEvent.get<Int>(name)); - QObject::connect(spinBox, SIGNAL(valueChanged(int)), - this, SLOT(slotIntPropertyChanged(int))); + TQObject::connect(spinBox, TQT_SIGNAL(valueChanged(int)), + this, TQT_SLOT(slotIntPropertyChanged(int))); spinBox->show(); break; } @@ -227,28 +227,28 @@ case UInt: { min = 0; max = 65535; } - QSpinBox *spinBox = new QSpinBox + TQSpinBox *spinBox = new QSpinBox (min, max, 1, m_persistentGrid, strtoqstr(name)); spinBox->setValue(m_originalEvent.get<UInt>(name)); - QObject::connect(spinBox, SIGNAL(valueChanged(int)), - this, SLOT(slotIntPropertyChanged(int))); + TQObject::connect(spinBox, TQT_SIGNAL(valueChanged(int)), + this, TQT_SLOT(slotIntPropertyChanged(int))); spinBox->show(); break; } case RealTimeT: { RealTime realTime = m_originalEvent.get<RealTimeT>(name); - QHBox* hbox = new QHBox(m_persistentGrid); + TQHBox* hbox = new TQHBox(m_persistentGrid); // seconds // - QSpinBox *spinBox = new QSpinBox + TQSpinBox *spinBox = new QSpinBox (INT_MIN, INT_MAX, 1, hbox, strtoqstr(name) + "%sec"); spinBox->setValue(realTime.sec); - QObject::connect(spinBox, SIGNAL(valueChanged(int)), - this, SLOT(slotRealTimePropertyChanged(int))); + TQObject::connect(spinBox, TQT_SIGNAL(valueChanged(int)), + this, TQT_SLOT(slotRealTimePropertyChanged(int))); // nseconds // @@ -257,41 +257,41 @@ case UInt: { hbox, strtoqstr(name) + "%nsec"); spinBox->setValue(realTime.nsec); - QObject::connect(spinBox, SIGNAL(valueChanged(int)), - this, SLOT(slotRealTimePropertyChanged(int))); + TQObject::connect(spinBox, TQT_SIGNAL(valueChanged(int)), + this, TQT_SLOT(slotRealTimePropertyChanged(int))); spinBox->show(); break; } case Bool: { - QCheckBox *checkBox = new QCheckBox + TQCheckBox *checkBox = new QCheckBox ("", m_persistentGrid, strtoqstr(name)); checkBox->setChecked(m_originalEvent.get<Bool>(name)); - QObject::connect(checkBox, SIGNAL(activated()), - this, SLOT(slotBoolPropertyChanged())); + TQObject::connect(checkBox, TQT_SIGNAL(activated()), + this, TQT_SLOT(slotBoolPropertyChanged())); checkBox->show(); break; } case String: { - QLineEdit *lineEdit = new QLineEdit + TQLineEdit *lineEdit = new QLineEdit (strtoqstr(m_originalEvent.get<String>(name)), m_persistentGrid, strtoqstr(name)); - QObject::connect(lineEdit, SIGNAL(textChanged(const QString &)), - this, SLOT(slotStringPropertyChanged(const QString &))); + TQObject::connect(lineEdit, TQT_SIGNAL(textChanged(const TQString &)), + this, TQT_SLOT(slotStringPropertyChanged(const TQString &))); lineEdit->show(); break; } } - QPushButton *button = new QPushButton("X", m_persistentGrid, + TQPushButton *button = new TQPushButton("X", m_persistentGrid, strtoqstr(name)); - button->setFixedSize(QSize(24, 24)); - QToolTip::add + button->setFixedSize(TQSize(24, 24)); + TQToolTip::add (button, i18n("Delete this property")); - QObject::connect(button, SIGNAL(clicked()), - this, SLOT(slotPropertyDeleted())); + TQObject::connect(button, TQT_SIGNAL(clicked()), + this, TQT_SLOT(slotPropertyDeleted())); button->show(); } @@ -302,7 +302,7 @@ EventEditDialog::getEvent() const } void -EventEditDialog::slotEventTypeChanged(const QString &type) +EventEditDialog::slotEventTypeChanged(const TQString &type) { std::string t(qstrtostr(type)); if (t != m_type) { @@ -356,28 +356,28 @@ EventEditDialog::slotSubOrderingChanged(int value) void EventEditDialog::slotIntPropertyChanged(int value) { - const QObject *s = sender(); - const QSpinBox *spinBox = dynamic_cast<const QSpinBox *>(s); + const TQObject *s = sender(); + const TQSpinBox *spinBox = dynamic_cast<const TQSpinBox *>(s); if (!spinBox) return ; m_modified = true; - QString propertyName = spinBox->name(); + TQString propertyName = spinBox->name(); m_event.set<Int>(qstrtostr(propertyName), value); } void EventEditDialog::slotRealTimePropertyChanged(int value) { - const QObject *s = sender(); - const QSpinBox *spinBox = dynamic_cast<const QSpinBox *>(s); + const TQObject *s = sender(); + const TQSpinBox *spinBox = dynamic_cast<const TQSpinBox *>(s); if (!spinBox) return ; m_modified = true; - QString propertyFullName = spinBox->name(); + TQString propertyFullName = spinBox->name(); - QString propertyName = propertyFullName.section('%', 0, 0), + TQString propertyName = propertyFullName.section('%', 0, 0), nsecOrSec = propertyFullName.section('%', 1, 1); RealTime realTime = m_event.get<RealTimeT>(qstrtostr(propertyName)); @@ -393,40 +393,40 @@ EventEditDialog::slotRealTimePropertyChanged(int value) void EventEditDialog::slotBoolPropertyChanged() { - const QObject *s = sender(); - const QCheckBox *checkBox = dynamic_cast<const QCheckBox *>(s); + const TQObject *s = sender(); + const TQCheckBox *checkBox = dynamic_cast<const TQCheckBox *>(s); if (!checkBox) return ; m_modified = true; - QString propertyName = checkBox->name(); + TQString propertyName = checkBox->name(); bool checked = checkBox->isChecked(); m_event.set<Bool>(qstrtostr(propertyName), checked); } void -EventEditDialog::slotStringPropertyChanged(const QString &value) +EventEditDialog::slotStringPropertyChanged(const TQString &value) { - const QObject *s = sender(); - const QLineEdit *lineEdit = dynamic_cast<const QLineEdit *>(s); + const TQObject *s = sender(); + const TQLineEdit *lineEdit = dynamic_cast<const TQLineEdit *>(s); if (!lineEdit) return ; m_modified = true; - QString propertyName = lineEdit->name(); + TQString propertyName = lineEdit->name(); m_event.set<String>(qstrtostr(propertyName), qstrtostr(value)); } void EventEditDialog::slotPropertyDeleted() { - const QObject *s = sender(); - const QPushButton *pushButton = dynamic_cast<const QPushButton *>(s); + const TQObject *s = sender(); + const TQPushButton *pushButton = dynamic_cast<const TQPushButton *>(s); if (!pushButton) return ; - QString propertyName = pushButton->name(); + TQString propertyName = pushButton->name(); if (KMessageBox::warningContinueCancel (this, @@ -438,9 +438,9 @@ EventEditDialog::slotPropertyDeleted() return ; m_modified = true; - QObjectList *list = m_persistentGrid->queryList(0, propertyName, false); - QObjectListIt i(*list); - QObject *obj; + TQObjectList *list = m_persistentGrid->queryList(0, propertyName, false); + TQObjectListIt i(*list); + TQObject *obj; while ((obj = i.current()) != 0) { ++i; delete obj; @@ -453,12 +453,12 @@ EventEditDialog::slotPropertyDeleted() void EventEditDialog::slotPropertyMadePersistent() { - const QObject *s = sender(); - const QPushButton *pushButton = dynamic_cast<const QPushButton *>(s); + const TQObject *s = sender(); + const TQPushButton *pushButton = dynamic_cast<const TQPushButton *>(s); if (!pushButton) return ; - QString propertyName = pushButton->name(); + TQString propertyName = pushButton->name(); if (KMessageBox::warningContinueCancel (this, @@ -470,9 +470,9 @@ EventEditDialog::slotPropertyMadePersistent() i18n("Make &Persistent")) != KMessageBox::Continue) return ; - QObjectList *list = m_nonPersistentGrid->queryList(0, propertyName, false); - QObjectListIt i(*list); - QObject *obj; + TQObjectList *list = m_nonPersistentGrid->queryList(0, propertyName, false); + TQObjectListIt i(*list); + TQObject *obj; while ((obj = i.current()) != 0) { ++i; delete obj; diff --git a/src/gui/dialogs/EventEditDialog.h b/src/gui/dialogs/EventEditDialog.h index 337a190..15f83ac 100644 --- a/src/gui/dialogs/EventEditDialog.h +++ b/src/gui/dialogs/EventEditDialog.h @@ -32,11 +32,11 @@ #include <kdialogbase.h> -class QWidget; -class QString; -class QScrollView; -class QLabel; -class QGrid; +class TQWidget; +class TQString; +class TQScrollView; +class TQLabel; +class TQGrid; namespace Rosegarden @@ -57,7 +57,7 @@ public: * the resulting edited version can subsequently be queried * through getEvent(). */ - EventEditDialog(QWidget *parent, + EventEditDialog(TQWidget *parent, const Event &event, bool editable = true); @@ -65,7 +65,7 @@ public: Event getEvent() const; public slots: - void slotEventTypeChanged(const QString &); + void slotEventTypeChanged(const TQString &); void slotAbsoluteTimeChanged(int value); void slotDurationChanged(int value); void slotSubOrderingChanged(int value); @@ -73,7 +73,7 @@ public slots: void slotIntPropertyChanged(int); void slotRealTimePropertyChanged(int); void slotBoolPropertyChanged(); - void slotStringPropertyChanged(const QString &); + void slotStringPropertyChanged(const TQString &); void slotPropertyDeleted(); void slotPropertyMadePersistent(); @@ -84,13 +84,13 @@ protected: //--------------- Data members --------------------------------- NotePixmapFactory m_notePixmapFactory; - QLabel *m_durationDisplay; - QLabel *m_durationDisplayAux; + TQLabel *m_durationDisplay; + TQLabel *m_durationDisplayAux; - QGrid *m_persistentGrid; - QGrid *m_nonPersistentGrid; + TQGrid *m_persistentGrid; + TQGrid *m_nonPersistentGrid; - QScrollView *m_nonPersistentView; + TQScrollView *m_nonPersistentView; const Event &m_originalEvent; Event m_event; diff --git a/src/gui/dialogs/EventFilterDialog.cpp b/src/gui/dialogs/EventFilterDialog.cpp index 7b0c15c..d2763a6 100644 --- a/src/gui/dialogs/EventFilterDialog.cpp +++ b/src/gui/dialogs/EventFilterDialog.cpp @@ -41,27 +41,27 @@ #include <kconfig.h> #include <kdialogbase.h> #include <klocale.h> -#include <qcheckbox.h> -#include <qcombobox.h> -#include <qdialog.h> -#include <qframe.h> -#include <qgroupbox.h> -#include <qlabel.h> -#include <qlayout.h> -#include <qpixmap.h> -#include <qpushbutton.h> -#include <qsizepolicy.h> -#include <qspinbox.h> -#include <qstring.h> -#include <qtooltip.h> -#include <qvbox.h> -#include <qwidget.h> +#include <tqcheckbox.h> +#include <tqcombobox.h> +#include <tqdialog.h> +#include <tqframe.h> +#include <tqgroupbox.h> +#include <tqlabel.h> +#include <tqlayout.h> +#include <tqpixmap.h> +#include <tqpushbutton.h> +#include <tqsizepolicy.h> +#include <tqspinbox.h> +#include <tqstring.h> +#include <tqtooltip.h> +#include <tqvbox.h> +#include <tqwidget.h> namespace Rosegarden { -EventFilterDialog::EventFilterDialog(QWidget* parent) +EventFilterDialog::EventFilterDialog(TQWidget* parent) : KDialogBase(parent, "eventfilerdialog", true, i18n("Event Filter"), Ok | Cancel, Ok), m_standardQuantizations(BasicQuantizer::getStandardQuantizations()) { @@ -77,47 +77,47 @@ EventFilterDialog::~EventFilterDialog() void EventFilterDialog::initDialog() { - QVBox* mainWidget = makeVBoxMainWidget(); + TQVBox* mainWidget = makeVBoxMainWidget(); //----------[ Note Filter Widgets ]------------------------- // Frame - QGroupBox* noteFrame = new QGroupBox(i18n("Note Events"), mainWidget); - QGridLayout* noteFrameLayout = new QGridLayout(noteFrame, 1, 1, 20, 6); + TQGroupBox* noteFrame = new TQGroupBox(i18n("Note Events"), mainWidget); + TQGridLayout* noteFrameLayout = new TQGridLayout(noteFrame, 1, 1, 20, 6); // Labels - QLabel* pitchFromLabel = new QLabel(i18n("lowest:"), noteFrame); + TQLabel* pitchFromLabel = new TQLabel(i18n("lowest:"), noteFrame); noteFrameLayout->addWidget(pitchFromLabel, 0, 2); - QLabel* pitchToLabel = new QLabel(i18n("highest:"), noteFrame); + TQLabel* pitchToLabel = new TQLabel(i18n("highest:"), noteFrame); noteFrameLayout->addWidget(pitchToLabel, 0, 4); - QLabel* pitchLabel = new QLabel(i18n("Pitch:"), noteFrame); + TQLabel* pitchLabel = new TQLabel(i18n("Pitch:"), noteFrame); noteFrameLayout->addWidget(pitchLabel, 1, 1); - QLabel* velocityLabel = new QLabel(i18n("Velocity:"), noteFrame); + TQLabel* velocityLabel = new TQLabel(i18n("Velocity:"), noteFrame); noteFrameLayout->addWidget(velocityLabel, 2, 1); - QLabel* durationLabel = new QLabel(i18n("Duration:"), noteFrame); + TQLabel* durationLabel = new TQLabel(i18n("Duration:"), noteFrame); noteFrameLayout->addWidget(durationLabel, 3, 1); // Include Boxes - m_notePitchIncludeComboBox = new QComboBox(0, noteFrame); + m_notePitchIncludeComboBox = new TQComboBox(0, noteFrame); m_notePitchIncludeComboBox->insertItem(i18n("include")); m_notePitchIncludeComboBox->insertItem(i18n("exclude")); cfg->setGroup(EventFilterDialogConfigGroup); m_notePitchIncludeComboBox->setCurrentItem(cfg->readBoolEntry("pitchinclude", 0)); noteFrameLayout->addWidget(m_notePitchIncludeComboBox, 1, 0); - m_noteVelocityIncludeComboBox = new QComboBox(0, noteFrame); + m_noteVelocityIncludeComboBox = new TQComboBox(0, noteFrame); m_noteVelocityIncludeComboBox->insertItem(i18n("include")); m_noteVelocityIncludeComboBox->insertItem(i18n("exclude")); cfg->setGroup(EventFilterDialogConfigGroup); m_noteVelocityIncludeComboBox->setCurrentItem(cfg->readBoolEntry("velocityinclude", 0)); noteFrameLayout->addWidget(m_noteVelocityIncludeComboBox, 2, 0); - m_noteDurationIncludeComboBox = new QComboBox(0, noteFrame); + m_noteDurationIncludeComboBox = new TQComboBox(0, noteFrame); m_noteDurationIncludeComboBox->insertItem(i18n("include")); m_noteDurationIncludeComboBox->insertItem(i18n("exclude")); cfg->setGroup(EventFilterDialogConfigGroup); @@ -125,92 +125,92 @@ EventFilterDialog::initDialog() noteFrameLayout->addWidget(m_noteDurationIncludeComboBox, 3, 0); // Pitch From - m_pitchFromSpinBox = new QSpinBox(noteFrame); + m_pitchFromSpinBox = new TQSpinBox(noteFrame); m_pitchFromSpinBox->setMaxValue(127); cfg->setGroup(EventFilterDialogConfigGroup); m_pitchFromSpinBox->setValue(cfg->readUnsignedNumEntry("pitchfrom", 0)); noteFrameLayout->addWidget(m_pitchFromSpinBox, 1, 2); - connect(m_pitchFromSpinBox, SIGNAL(valueChanged(int)), - SLOT(slotPitchFromChanged(int))); + connect(m_pitchFromSpinBox, TQT_SIGNAL(valueChanged(int)), + TQT_SLOT(slotPitchFromChanged(int))); - m_pitchFromChooserButton = new QPushButton(i18n("edit"), noteFrame); - m_pitchFromChooserButton->setSizePolicy(QSizePolicy((QSizePolicy::SizeType)0, - (QSizePolicy::SizeType)0, 0, 0, m_pitchFromChooserButton-> + m_pitchFromChooserButton = new TQPushButton(i18n("edit"), noteFrame); + m_pitchFromChooserButton->setSizePolicy(TQSizePolicy((TQSizePolicy::SizeType)0, + (TQSizePolicy::SizeType)0, 0, 0, m_pitchFromChooserButton-> sizePolicy().hasHeightForWidth())); - QToolTip::add + TQToolTip::add (m_pitchFromChooserButton, i18n("choose a pitch using a staff")); noteFrameLayout->addWidget(m_pitchFromChooserButton, 1, 3); - connect(m_pitchFromChooserButton, SIGNAL(clicked()), - SLOT(slotPitchFromChooser())); + connect(m_pitchFromChooserButton, TQT_SIGNAL(clicked()), + TQT_SLOT(slotPitchFromChooser())); // Pitch To - m_pitchToSpinBox = new QSpinBox(noteFrame); + m_pitchToSpinBox = new TQSpinBox(noteFrame); m_pitchToSpinBox->setMaxValue(127); cfg->setGroup(EventFilterDialogConfigGroup); m_pitchToSpinBox->setValue(cfg->readUnsignedNumEntry("pitchto", 127)); noteFrameLayout->addWidget(m_pitchToSpinBox, 1, 4); - connect(m_pitchToSpinBox, SIGNAL(valueChanged(int)), - SLOT(slotPitchToChanged(int))); + connect(m_pitchToSpinBox, TQT_SIGNAL(valueChanged(int)), + TQT_SLOT(slotPitchToChanged(int))); - m_pitchToChooserButton = new QPushButton(i18n("edit"), noteFrame); - QToolTip::add + m_pitchToChooserButton = new TQPushButton(i18n("edit"), noteFrame); + TQToolTip::add (m_pitchToChooserButton, i18n("choose a pitch using a staff")); noteFrameLayout->addWidget(m_pitchToChooserButton, 1, 5); - connect(m_pitchToChooserButton, SIGNAL(clicked()), - SLOT(slotPitchToChooser())); + connect(m_pitchToChooserButton, TQT_SIGNAL(clicked()), + TQT_SLOT(slotPitchToChooser())); // Velocity From/To - m_velocityFromSpinBox = new QSpinBox(noteFrame); + m_velocityFromSpinBox = new TQSpinBox(noteFrame); m_velocityFromSpinBox->setMaxValue(127); cfg->setGroup(EventFilterDialogConfigGroup); m_velocityFromSpinBox->setValue(cfg->readUnsignedNumEntry("velocityfrom", 0)); noteFrameLayout->addWidget(m_velocityFromSpinBox, 2, 2); - connect(m_velocityFromSpinBox, SIGNAL(valueChanged(int)), - SLOT(slotVelocityFromChanged(int))); + connect(m_velocityFromSpinBox, TQT_SIGNAL(valueChanged(int)), + TQT_SLOT(slotVelocityFromChanged(int))); - m_velocityToSpinBox = new QSpinBox(noteFrame); + m_velocityToSpinBox = new TQSpinBox(noteFrame); m_velocityToSpinBox->setMaxValue(127); cfg->setGroup(EventFilterDialogConfigGroup); m_velocityToSpinBox->setValue(cfg->readUnsignedNumEntry("velocityto", 127)); noteFrameLayout->addWidget( m_velocityToSpinBox, 2, 4 ); - connect(m_velocityToSpinBox, SIGNAL(valueChanged(int)), - SLOT(slotVelocityToChanged(int))); + connect(m_velocityToSpinBox, TQT_SIGNAL(valueChanged(int)), + TQT_SLOT(slotVelocityToChanged(int))); // Duration From/To - m_noteDurationFromComboBox = new QComboBox(0, noteFrame); + m_noteDurationFromComboBox = new TQComboBox(0, noteFrame); m_noteDurationFromComboBox->insertItem(i18n("longest")); noteFrameLayout->addWidget(m_noteDurationFromComboBox, 3, 2); - connect(m_noteDurationFromComboBox, SIGNAL(activated(int)), - SLOT(slotDurationFromChanged(int))); + connect(m_noteDurationFromComboBox, TQT_SIGNAL(activated(int)), + TQT_SLOT(slotDurationFromChanged(int))); - m_noteDurationToComboBox = new QComboBox(0, noteFrame); + m_noteDurationToComboBox = new TQComboBox(0, noteFrame); m_noteDurationToComboBox->insertItem(i18n("longest")); noteFrameLayout->addWidget(m_noteDurationToComboBox, 3, 4); - connect(m_noteDurationToComboBox, SIGNAL(activated(int)), - SLOT(slotDurationToChanged(int))); + connect(m_noteDurationToComboBox, TQT_SIGNAL(activated(int)), + TQT_SLOT(slotDurationToChanged(int))); populateDurationCombos(); //---------[ Buttons ]-------------------------------------- - QFrame* privateLayoutWidget = new QFrame(mainWidget); - QGridLayout* buttonLayout = new QGridLayout(privateLayoutWidget, 1, 1, 20, 6); + TQFrame* privateLayoutWidget = new TQFrame(mainWidget); + TQGridLayout* buttonLayout = new TQGridLayout(privateLayoutWidget, 1, 1, 20, 6); - m_buttonAll = new QPushButton(i18n("Include all"), privateLayoutWidget); + m_buttonAll = new TQPushButton(i18n("Include all"), privateLayoutWidget); m_buttonAll->setAutoDefault(true); - QToolTip::add + TQToolTip::add (m_buttonAll, i18n("Include entire range of values")); buttonLayout->addWidget( m_buttonAll, 0, 0 ); - m_buttonNone = new QPushButton(i18n("Exclude all"), privateLayoutWidget); + m_buttonNone = new TQPushButton(i18n("Exclude all"), privateLayoutWidget); m_buttonNone->setAutoDefault(true); - QToolTip::add + TQToolTip::add (m_buttonNone, i18n("Exclude entire range of values")); buttonLayout->addWidget( m_buttonNone, 0, 1 ); - connect(m_buttonAll, SIGNAL(clicked()), this, SLOT(slotToggleAll())); - connect(m_buttonNone, SIGNAL(clicked()), this, SLOT(slotToggleNone())); + connect(m_buttonAll, TQT_SIGNAL(clicked()), this, TQT_SLOT(slotToggleAll())); + connect(m_buttonNone, TQT_SIGNAL(clicked()), this, TQT_SLOT(slotToggleNone())); } @@ -218,14 +218,14 @@ EventFilterDialog::initDialog() void EventFilterDialog::populateDurationCombos() { - QPixmap noMap = NotePixmapFactory::toQPixmap + TQPixmap noMap = NotePixmapFactory::toQPixmap (NotePixmapFactory::makeToolbarPixmap("menu-no-note")); for (unsigned int i = 0; i < m_standardQuantizations.size(); ++i) { timeT time = m_standardQuantizations[i]; timeT error = 0; - QString label = NotationStrings::makeNoteMenuLabel(time, true, error); - QPixmap pmap = NotePixmapFactory::toQPixmap + TQString label = NotationStrings::makeNoteMenuLabel(time, true, error); + TQPixmap pmap = NotePixmapFactory::toQPixmap (NotePixmapFactory::makeNoteMenuPixmap(time, error)); m_noteDurationFromComboBox->insertItem(error ? noMap : pmap, label); m_noteDurationToComboBox ->insertItem(error ? noMap : pmap, label); @@ -332,7 +332,7 @@ EventFilterDialog::slotPitchFromChooser() { PitchPickerDialog dialog(this, m_pitchFromSpinBox->value(), i18n("Lowest pitch")); - if (dialog.exec() == QDialog::Accepted) { + if (dialog.exec() == TQDialog::Accepted) { m_pitchFromSpinBox->setValue(dialog.getPitch()); } } @@ -342,7 +342,7 @@ EventFilterDialog::slotPitchToChooser() { PitchPickerDialog dialog(this, m_pitchToSpinBox->value(), i18n("Highest pitch")); - if (dialog.exec() == QDialog::Accepted) { + if (dialog.exec() == TQDialog::Accepted) { m_pitchToSpinBox->setValue(dialog.getPitch()); } } diff --git a/src/gui/dialogs/EventFilterDialog.h b/src/gui/dialogs/EventFilterDialog.h index 0d3eb05..207f6e5 100644 --- a/src/gui/dialogs/EventFilterDialog.h +++ b/src/gui/dialogs/EventFilterDialog.h @@ -32,13 +32,13 @@ #include <utility> #include <vector> #include "base/Event.h" -#include <qcheckbox.h> -#include <qcombobox.h> +#include <tqcheckbox.h> +#include <tqcombobox.h> -class QWidget; -class QSpinBox; -class QPushButton; -class QGridLayout; +class TQWidget; +class TQSpinBox; +class TQPushButton; +class TQGridLayout; class KConfig; @@ -62,7 +62,7 @@ class EventFilterDialog : public KDialogBase public: - EventFilterDialog(QWidget* parent); + EventFilterDialog(TQWidget* parent); ~EventFilterDialog(); KConfig *cfg; @@ -142,23 +142,23 @@ protected slots: private: //---------[ data members ]----------------------------- - QGridLayout* layout; + TQGridLayout* layout; - QComboBox* m_noteDurationFromComboBox; - QComboBox* m_noteDurationIncludeComboBox; - QComboBox* m_noteDurationToComboBox; - QComboBox* m_notePitchIncludeComboBox; - QComboBox* m_noteVelocityIncludeComboBox; + TQComboBox* m_noteDurationFromComboBox; + TQComboBox* m_noteDurationIncludeComboBox; + TQComboBox* m_noteDurationToComboBox; + TQComboBox* m_notePitchIncludeComboBox; + TQComboBox* m_noteVelocityIncludeComboBox; - QPushButton* m_pitchFromChooserButton; - QPushButton* m_pitchToChooserButton; - QPushButton* m_buttonAll; - QPushButton* m_buttonNone; + TQPushButton* m_pitchFromChooserButton; + TQPushButton* m_pitchToChooserButton; + TQPushButton* m_buttonAll; + TQPushButton* m_buttonNone; - QSpinBox* m_pitchFromSpinBox; - QSpinBox* m_pitchToSpinBox; - QSpinBox* m_velocityFromSpinBox; - QSpinBox* m_velocityToSpinBox; + TQSpinBox* m_pitchFromSpinBox; + TQSpinBox* m_pitchToSpinBox; + TQSpinBox* m_velocityFromSpinBox; + TQSpinBox* m_velocityToSpinBox; std::vector<timeT> m_standardQuantizations; diff --git a/src/gui/dialogs/EventParameterDialog.cpp b/src/gui/dialogs/EventParameterDialog.cpp index 036491e..98abb44 100644 --- a/src/gui/dialogs/EventParameterDialog.cpp +++ b/src/gui/dialogs/EventParameterDialog.cpp @@ -31,34 +31,34 @@ #include "base/PropertyName.h" #include <kcombobox.h> #include <kdialogbase.h> -#include <qhbox.h> -#include <qlabel.h> -#include <qstring.h> -#include <qvbox.h> -#include <qwidget.h> +#include <tqhbox.h> +#include <tqlabel.h> +#include <tqstring.h> +#include <tqvbox.h> +#include <tqwidget.h> namespace Rosegarden { EventParameterDialog::EventParameterDialog( - QWidget *parent, - const QString &name, + TQWidget *parent, + const TQString &name, const PropertyName &property, int startValue): KDialogBase(parent, 0, true, name, Ok | Cancel), m_property(property) { - QVBox *vBox = makeVBoxMainWidget(); + TQVBox *vBox = makeVBoxMainWidget(); - QHBox *topBox = new QHBox(vBox); - QLabel *explainLabel = new QLabel(topBox); - QString text = i18n("Set the %1 property of the event selection:"). + TQHBox *topBox = new TQHBox(vBox); + TQLabel *explainLabel = new TQLabel(topBox); + TQString text = i18n("Set the %1 property of the event selection:"). arg(strtoqstr(property)); explainLabel->setText(text); - QHBox *patternBox = new QHBox(vBox); - new QLabel(i18n("Pattern"), patternBox); + TQHBox *patternBox = new TQHBox(vBox); + new TQLabel(i18n("Pattern"), patternBox); m_patternCombo = new KComboBox(patternBox); // create options @@ -82,20 +82,20 @@ EventParameterDialog::EventParameterDialog( text = i18n("Ringing - set %1 alternating from max to min with both dying to zero").arg(strtoqstr(property)); m_patternCombo->insertItem(text); - connect(m_patternCombo, SIGNAL(activated(int)), - this, SLOT(slotPatternSelected(int))); + connect(m_patternCombo, TQT_SIGNAL(activated(int)), + this, TQT_SLOT(slotPatternSelected(int))); - QHBox *value1Box = new QHBox(vBox); - m_value1Label = new QLabel(i18n("Value"), value1Box); + TQHBox *value1Box = new TQHBox(vBox); + m_value1Label = new TQLabel(i18n("Value"), value1Box); m_value1Combo = new KComboBox(value1Box); - QHBox *value2Box = new QHBox(vBox); - m_value2Label = new QLabel(i18n("Value"), value2Box); + TQHBox *value2Box = new TQHBox(vBox); + m_value2Label = new TQLabel(i18n("Value"), value2Box); m_value2Combo = new KComboBox(value2Box); for (unsigned int i = 0; i < 128; i++) { - m_value1Combo->insertItem(QString("%1").arg(i)); - m_value2Combo->insertItem(QString("%1").arg(i)); + m_value1Combo->insertItem(TQString("%1").arg(i)); + m_value2Combo->insertItem(TQString("%1").arg(i)); } m_value1Combo->setCurrentItem(127); diff --git a/src/gui/dialogs/EventParameterDialog.h b/src/gui/dialogs/EventParameterDialog.h index 040e2f9..848e44d 100644 --- a/src/gui/dialogs/EventParameterDialog.h +++ b/src/gui/dialogs/EventParameterDialog.h @@ -30,9 +30,9 @@ #include <kdialogbase.h> #include "commands/edit/SelectionPropertyCommand.h" -class QWidget; -class QString; -class QLabel; +class TQWidget; +class TQString; +class TQLabel; class KComboBox; @@ -46,8 +46,8 @@ class EventParameterDialog : public KDialogBase Q_OBJECT public: - EventParameterDialog(QWidget *parent, - const QString &name, // name + EventParameterDialog(TQWidget *parent, + const TQString &name, // name const PropertyName &property, // property int startValue); // start @@ -67,8 +67,8 @@ protected: KComboBox *m_value2Combo; KComboBox *m_patternCombo; - QLabel *m_value1Label; - QLabel *m_value2Label; + TQLabel *m_value1Label; + TQLabel *m_value2Label; }; diff --git a/src/gui/dialogs/ExportDeviceDialog.cpp b/src/gui/dialogs/ExportDeviceDialog.cpp index ce5f52e..348a5b8 100644 --- a/src/gui/dialogs/ExportDeviceDialog.cpp +++ b/src/gui/dialogs/ExportDeviceDialog.cpp @@ -27,28 +27,28 @@ #include <klocale.h> #include <kdialogbase.h> -#include <qbuttongroup.h> -#include <qlabel.h> -#include <qradiobutton.h> -#include <qstring.h> -#include <qvbox.h> -#include <qwidget.h> +#include <tqbuttongroup.h> +#include <tqlabel.h> +#include <tqradiobutton.h> +#include <tqstring.h> +#include <tqvbox.h> +#include <tqwidget.h> namespace Rosegarden { -ExportDeviceDialog::ExportDeviceDialog(QWidget *parent, QString deviceName) : +ExportDeviceDialog::ExportDeviceDialog(TQWidget *parent, TQString deviceName) : KDialogBase(parent, "exportdevicedialog", true, i18n("Export Devices..."), Ok | Cancel, Ok) { - QVBox *vbox = makeVBoxMainWidget(); - QButtonGroup *bg = new QButtonGroup(1, Qt::Horizontal, + TQVBox *vbox = makeVBoxMainWidget(); + TQButtonGroup *bg = new TQButtonGroup(1, Qt::Horizontal, i18n("Export devices"), vbox); - m_exportAll = new QRadioButton(i18n("Export all devices"), bg); - m_exportOne = new QRadioButton(i18n("Export selected device only"), bg); - new QLabel(i18n(" (\"%1\")").arg(deviceName), bg); + m_exportAll = new TQRadioButton(i18n("Export all devices"), bg); + m_exportOne = new TQRadioButton(i18n("Export selected device only"), bg); + new TQLabel(i18n(" (\"%1\")").arg(deviceName), bg); m_exportOne->setChecked(true); } diff --git a/src/gui/dialogs/ExportDeviceDialog.h b/src/gui/dialogs/ExportDeviceDialog.h index 21fc183..0b092bc 100644 --- a/src/gui/dialogs/ExportDeviceDialog.h +++ b/src/gui/dialogs/ExportDeviceDialog.h @@ -27,11 +27,11 @@ #define _RG_EXPORTDEVICEDIALOG_H_ #include <kdialogbase.h> -#include <qstring.h> +#include <tqstring.h> -class QWidget; -class QRadioButton; +class TQWidget; +class TQRadioButton; namespace Rosegarden @@ -44,13 +44,13 @@ class ExportDeviceDialog : public KDialogBase public: enum ExportType { ExportOne, ExportAll }; - ExportDeviceDialog(QWidget *parent, QString deviceName); + ExportDeviceDialog(TQWidget *parent, TQString deviceName); ExportType getExportType(); protected: - QRadioButton *m_exportAll; - QRadioButton *m_exportOne; + TQRadioButton *m_exportAll; + TQRadioButton *m_exportOne; }; diff --git a/src/gui/dialogs/FileLocateDialog.cpp b/src/gui/dialogs/FileLocateDialog.cpp index 4f153c8..5b2a370 100644 --- a/src/gui/dialogs/FileLocateDialog.cpp +++ b/src/gui/dialogs/FileLocateDialog.cpp @@ -29,19 +29,19 @@ #include "misc/Debug.h" #include <kdialogbase.h> #include <kfiledialog.h> -#include <qfileinfo.h> -#include <qhbox.h> -#include <qlabel.h> -#include <qstring.h> -#include <qwidget.h> +#include <tqfileinfo.h> +#include <tqhbox.h> +#include <tqlabel.h> +#include <tqstring.h> +#include <tqwidget.h> namespace Rosegarden { -FileLocateDialog::FileLocateDialog(QWidget *parent, - const QString &file, - const QString & /*path*/): +FileLocateDialog::FileLocateDialog(TQWidget *parent, + const TQString &file, + const TQString & /*path*/): KDialogBase(parent, 0, true, i18n("Locate audio file"), User1 | User2 | User3, @@ -52,12 +52,12 @@ FileLocateDialog::FileLocateDialog(QWidget *parent, i18n("&Locate")), m_file(file) { - QHBox *w = makeHBoxMainWidget(); - QString label = + TQHBox *w = makeHBoxMainWidget(); + TQString label = i18n("Can't find file \"%1\".\n" "Would you like to try and locate this file or skip it?").arg(m_file); - QLabel *labelW = new QLabel(label, w); + TQLabel *labelW = new TQLabel(label, w); labelW->setAlignment(Qt::AlignCenter); labelW->setMinimumHeight(60); } @@ -69,8 +69,8 @@ FileLocateDialog::slotUser3() m_file = KFileDialog::getOpenFileName (":WAVS", i18n("%1|Requested file (%2)\n*.wav|WAV files (*.wav)") - .arg(QFileInfo(m_file).fileName()) - .arg(QFileInfo(m_file).fileName()), + .arg(TQFileInfo(m_file).fileName()) + .arg(TQFileInfo(m_file).fileName()), this, i18n("Select an Audio File")); RG_DEBUG << "FileLocateDialog::slotUser3() : m_file = " << m_file << endl; @@ -79,7 +79,7 @@ FileLocateDialog::slotUser3() RG_DEBUG << "FileLocateDialog::slotUser3() : reject\n"; reject(); } else { - QFileInfo fileInfo(m_file); + TQFileInfo fileInfo(m_file); m_path = fileInfo.dirPath(); accept(); } diff --git a/src/gui/dialogs/FileLocateDialog.h b/src/gui/dialogs/FileLocateDialog.h index 1786221..a9e3220 100644 --- a/src/gui/dialogs/FileLocateDialog.h +++ b/src/gui/dialogs/FileLocateDialog.h @@ -27,10 +27,10 @@ #define _RG_FILELOCATEDIALOG_H_ #include <kdialogbase.h> -#include <qstring.h> +#include <tqstring.h> -class QWidget; +class TQWidget; namespace Rosegarden @@ -43,20 +43,20 @@ class FileLocateDialog : public KDialogBase Q_OBJECT public: - FileLocateDialog(QWidget *parent, - const QString &file, - const QString &path); + FileLocateDialog(TQWidget *parent, + const TQString &file, + const TQString &path); - QString getDirectory() { return m_path; } - QString getFilename() { return m_file; } + TQString getDirectory() { return m_path; } + TQString getFilename() { return m_file; } protected: virtual void slotUser1(); virtual void slotUser2(); virtual void slotUser3(); - QString m_file; - QString m_path; + TQString m_file; + TQString m_path; }; diff --git a/src/gui/dialogs/FileMergeDialog.cpp b/src/gui/dialogs/FileMergeDialog.cpp index d997327..d7d48cf 100644 --- a/src/gui/dialogs/FileMergeDialog.cpp +++ b/src/gui/dialogs/FileMergeDialog.cpp @@ -28,29 +28,29 @@ #include <klocale.h> #include <kcombobox.h> #include <kdialogbase.h> -#include <qcheckbox.h> -#include <qhbox.h> -#include <qlabel.h> -#include <qstring.h> -#include <qvbox.h> -#include <qwidget.h> +#include <tqcheckbox.h> +#include <tqhbox.h> +#include <tqlabel.h> +#include <tqstring.h> +#include <tqvbox.h> +#include <tqwidget.h> #include "document/RosegardenGUIDoc.h" namespace Rosegarden { -FileMergeDialog::FileMergeDialog(QWidget *parent, - QString /*fileName*/, +FileMergeDialog::FileMergeDialog(TQWidget *parent, + TQString /*fileName*/, bool timingsDiffer) : KDialogBase(parent, 0, true, i18n("Merge File"), Ok | Cancel | Help) { setHelp("file-merge"); - QVBox *vbox = makeVBoxMainWidget(); + TQVBox *vbox = makeVBoxMainWidget(); - QHBox *hbox = new QHBox(vbox); - new QLabel(i18n("Merge new file "), hbox); + TQHBox *hbox = new TQHBox(vbox); + new TQLabel(i18n("Merge new file "), hbox); m_choice = new KComboBox(hbox); m_choice->insertItem(i18n("At start of existing composition")); @@ -58,8 +58,8 @@ FileMergeDialog::FileMergeDialog(QWidget *parent, m_useTimings = 0; if (timingsDiffer) { - new QLabel(i18n("The file has different time signatures or tempos."), vbox); - m_useTimings = new QCheckBox(i18n("Import these as well"), vbox); + new TQLabel(i18n("The file has different time signatures or tempos."), vbox); + m_useTimings = new TQCheckBox(i18n("Import these as well"), vbox); m_useTimings->setChecked(false); } } diff --git a/src/gui/dialogs/FileMergeDialog.h b/src/gui/dialogs/FileMergeDialog.h index f305cae..33a8638 100644 --- a/src/gui/dialogs/FileMergeDialog.h +++ b/src/gui/dialogs/FileMergeDialog.h @@ -27,11 +27,11 @@ #define _RG_FILEMERGEDIALOG_H_ #include <kdialogbase.h> -#include <qstring.h> +#include <tqstring.h> -class QWidget; -class QCheckBox; +class TQWidget; +class TQCheckBox; class KComboBox; @@ -45,13 +45,13 @@ class FileMergeDialog : public KDialogBase Q_OBJECT public: - FileMergeDialog(QWidget *parent, QString fileName, bool timingsDiffer); + FileMergeDialog(TQWidget *parent, TQString fileName, bool timingsDiffer); int getMergeOptions(); private: KComboBox *m_choice; - QCheckBox *m_useTimings; + TQCheckBox *m_useTimings; }; diff --git a/src/gui/dialogs/FloatEdit.cpp b/src/gui/dialogs/FloatEdit.cpp index 06e8aa3..a4b9788 100644 --- a/src/gui/dialogs/FloatEdit.cpp +++ b/src/gui/dialogs/FloatEdit.cpp @@ -27,28 +27,28 @@ #include "gui/widgets/HSpinBox.h" #include <kdialogbase.h> -#include <qgroupbox.h> -#include <qlabel.h> -#include <qstring.h> -#include <qvbox.h> -#include <qwidget.h> +#include <tqgroupbox.h> +#include <tqlabel.h> +#include <tqstring.h> +#include <tqvbox.h> +#include <tqwidget.h> #include <cmath> namespace Rosegarden { -FloatEdit::FloatEdit(QWidget *parent, - const QString &title, - const QString &text, +FloatEdit::FloatEdit(TQWidget *parent, + const TQString &title, + const TQString &text, float min, float max, float value, float step): KDialogBase(parent, "rosegardenFloatEdit", true, title, Ok | Cancel, Ok) { - QVBox *vbox = makeVBoxMainWidget(); - QGroupBox *groupBox = new QGroupBox(1, Horizontal, text, vbox); - QVBox *inVbox = new QVBox(groupBox); + TQVBox *vbox = makeVBoxMainWidget(); + TQGroupBox *groupBox = new TQGroupBox(1, Horizontal, text, vbox); + TQVBox *inVbox = new TQVBox(groupBox); // Calculate decimal points according to the step size // @@ -59,7 +59,7 @@ FloatEdit::FloatEdit(QWidget *parent, //std::cout << "CAL DP = " << calDP << ", dps = " << dps << std::endl; m_spin = new HSpinBox(inVbox, value, 1, min, max, dps); - new QLabel(QString("(min: %1, max: %2)").arg(min).arg(max), inVbox); + new TQLabel(TQString("(min: %1, max: %2)").arg(min).arg(max), inVbox); } float diff --git a/src/gui/dialogs/FloatEdit.h b/src/gui/dialogs/FloatEdit.h index 24f1b2c..dc5a060 100644 --- a/src/gui/dialogs/FloatEdit.h +++ b/src/gui/dialogs/FloatEdit.h @@ -29,9 +29,9 @@ #include <kdialogbase.h> -class QWidget; -class QString; -class QLabel; +class TQWidget; +class TQString; +class TQLabel; namespace Rosegarden @@ -45,9 +45,9 @@ class FloatEdit : public KDialogBase Q_OBJECT public: - FloatEdit(QWidget *parent, - const QString &title, - const QString &text, + FloatEdit(TQWidget *parent, + const TQString &title, + const TQString &text, float min, float max, float value, @@ -57,7 +57,7 @@ public: protected: - QLabel *m_text; + TQLabel *m_text; HSpinBox *m_spin; }; diff --git a/src/gui/dialogs/IdentifyTextCodecDialog.cpp b/src/gui/dialogs/IdentifyTextCodecDialog.cpp index 07b5ec1..c07d887 100644 --- a/src/gui/dialogs/IdentifyTextCodecDialog.cpp +++ b/src/gui/dialogs/IdentifyTextCodecDialog.cpp @@ -30,34 +30,34 @@ #include "base/NotationTypes.h" #include <kcombobox.h> #include <kdialogbase.h> -#include <qfont.h> -#include <qlabel.h> -#include <qstring.h> -#include <qtextcodec.h> -#include <qvbox.h> -#include <qwidget.h> +#include <tqfont.h> +#include <tqlabel.h> +#include <tqstring.h> +#include <tqtextcodec.h> +#include <tqvbox.h> +#include <tqwidget.h> namespace Rosegarden { -IdentifyTextCodecDialog::IdentifyTextCodecDialog(QWidget *parent, +IdentifyTextCodecDialog::IdentifyTextCodecDialog(TQWidget *parent, std::string text) : KDialogBase(parent, 0, true, i18n("Choose Text Encoding"), Ok), m_text(text) { - QVBox *vbox = makeVBoxMainWidget(); - new QLabel(i18n("\nThis file contains text in an unknown language encoding.\n\nPlease select one of the following estimated text encodings\nfor use with the text in this file:\n"), vbox); + TQVBox *vbox = makeVBoxMainWidget(); + new TQLabel(i18n("\nThis file contains text in an unknown language encoding.\n\nPlease select one of the following estimated text encodings\nfor use with the text in this file:\n"), vbox); KComboBox *codecs = new KComboBox(vbox); std::string defaultCodec; - QTextCodec *cc = QTextCodec::codecForContent(text.c_str(), text.length()); - QTextCodec *codec = 0; + TQTextCodec *cc = TQTextCodec::codecForContent(text.c_str(), text.length()); + TQTextCodec *codec = 0; std::cerr << "cc is " << (cc ? cc->name() : "null") << std::endl; - std::map<std::string, QString> codecDescriptions; + std::map<std::string, TQString> codecDescriptions; codecDescriptions["SJIS"] = i18n("Japanese Shift-JIS"); codecDescriptions["UTF-8"] = i18n("Unicode variable-width"); codecDescriptions["ISO 8859-1"] = i18n("Western Europe"); @@ -90,7 +90,7 @@ IdentifyTextCodecDialog::IdentifyTextCodecDialog(QWidget *parent, (m_text.c_str(), m_text.length()); } - while ((codec = QTextCodec::codecForIndex(i)) != 0) { + while ((codec = TQTextCodec::codecForIndex(i)) != 0) { int probability = codec->heuristicContentMatch (m_text.c_str(), m_text.length()); @@ -111,7 +111,7 @@ IdentifyTextCodecDialog::IdentifyTextCodecDialog(QWidget *parent, cc = codec; } - QString description = codecDescriptions[name]; + TQString description = codecDescriptions[name]; if (description == "") { if (strtoqstr(name).left(3) == "CP ") { description = i18n("Microsoft Code Page %1"). @@ -136,13 +136,13 @@ IdentifyTextCodecDialog::IdentifyTextCodecDialog(QWidget *parent, ++i; } - connect(codecs, SIGNAL(activated(int)), - this, SLOT(slotCodecSelected(int))); + connect(codecs, TQT_SIGNAL(activated(int)), + this, TQT_SLOT(slotCodecSelected(int))); - new QLabel(i18n("\nExample text from file:"), vbox); - m_example = new QLabel("", vbox); - QFont font; - font.setStyleHint(QFont::TypeWriter); + new TQLabel(i18n("\nExample text from file:"), vbox); + m_example = new TQLabel("", vbox); + TQFont font; + font.setStyleHint(TQFont::TypeWriter); m_example->setFont(font); m_example->setPaletteForegroundColor(Qt::blue); std::cerr << "calling slotCodecSelected(" << current << ")" << std::endl; @@ -160,11 +160,11 @@ IdentifyTextCodecDialog::slotCodecSelected(int i) // std::cerr << "codecs: "; // for (int j = 0; j < m_codecs.size(); ++j) std::cerr << m_codecs[j] << " "; // std::cerr << std::endl; - QTextCodec *codec = QTextCodec::codecForName(strtoqstr(name)); + TQTextCodec *codec = TQTextCodec::codecForName(strtoqstr(name)); if (!codec) return; m_codec = qstrtostr(codec->name()); std::cerr << "Applying codec " << m_codec << std::endl; - QString outText = codec->toUnicode(m_text.c_str(), m_text.length()); + TQString outText = codec->toUnicode(m_text.c_str(), m_text.length()); if (outText.length() > 80) outText = outText.left(80); m_example->setText("\"" + outText + "\""); } diff --git a/src/gui/dialogs/IdentifyTextCodecDialog.h b/src/gui/dialogs/IdentifyTextCodecDialog.h index 288cd17..8b71be4 100644 --- a/src/gui/dialogs/IdentifyTextCodecDialog.h +++ b/src/gui/dialogs/IdentifyTextCodecDialog.h @@ -31,8 +31,8 @@ #include <deque> -class QWidget; -class QLabel; +class TQWidget; +class TQLabel; namespace Rosegarden @@ -45,7 +45,7 @@ class IdentifyTextCodecDialog : public KDialogBase Q_OBJECT public: - IdentifyTextCodecDialog(QWidget *parent, std::string text); + IdentifyTextCodecDialog(TQWidget *parent, std::string text); std::string getCodec() const { return m_codec; } @@ -56,7 +56,7 @@ protected: std::string m_text; std::string m_codec; std::deque<std::string> m_codecs; - QLabel *m_example; + TQLabel *m_example; }; diff --git a/src/gui/dialogs/ImportDeviceDialog.cpp b/src/gui/dialogs/ImportDeviceDialog.cpp index 58a6ce5..cde1cac 100644 --- a/src/gui/dialogs/ImportDeviceDialog.cpp +++ b/src/gui/dialogs/ImportDeviceDialog.cpp @@ -24,7 +24,7 @@ #include "ImportDeviceDialog.h" -#include <qlayout.h> +#include <tqlayout.h> #include <kapplication.h> #include <klocale.h> @@ -40,21 +40,21 @@ #include <kmessagebox.h> #include <kurl.h> #include <kio/netaccess.h> -#include <qbuttongroup.h> -#include <qcheckbox.h> -#include <qgroupbox.h> -#include <qhbox.h> -#include <qlabel.h> -#include <qradiobutton.h> -#include <qstring.h> -#include <qvbox.h> -#include <qwidget.h> +#include <tqbuttongroup.h> +#include <tqcheckbox.h> +#include <tqgroupbox.h> +#include <tqhbox.h> +#include <tqlabel.h> +#include <tqradiobutton.h> +#include <tqstring.h> +#include <tqvbox.h> +#include <tqwidget.h> namespace Rosegarden { -ImportDeviceDialog::ImportDeviceDialog(QWidget *parent, KURL url) : +ImportDeviceDialog::ImportDeviceDialog(TQWidget *parent, KURL url) : KDialogBase(parent, "importdevicedialog", true, i18n("Import from Device..."), Ok | Cancel, Ok), @@ -75,14 +75,14 @@ ImportDeviceDialog::~ImportDeviceDialog() bool ImportDeviceDialog::doImport() { - QVBox *mainFrame = makeVBoxMainWidget(); + TQVBox *mainFrame = makeVBoxMainWidget(); if (m_url.isEmpty()) { reject(); return false; } - QString target; + TQString target; if (KIO::NetAccess::download(m_url, target) == false) { KMessageBox::error(this, i18n("Cannot download file %1").arg(m_url.prettyURL())); return false; @@ -109,13 +109,13 @@ ImportDeviceDialog::doImport() return false; } - QGroupBox *groupBox = new QGroupBox(2, Qt::Horizontal, + TQGroupBox *groupBox = new TQGroupBox(2, Qt::Horizontal, i18n("Source device"), mainFrame); - QHBox *deviceBox = new QHBox(groupBox); - QHBoxLayout *bl = new QHBoxLayout(deviceBox); - bl->addWidget(new QLabel(i18n("Import from: "), deviceBox)); + TQHBox *deviceBox = new TQHBox(groupBox); + TQHBoxLayout *bl = new TQHBoxLayout(deviceBox); + bl->addWidget(new TQLabel(i18n("Import from: "), deviceBox)); bool showRenameOption = false; @@ -125,7 +125,7 @@ ImportDeviceDialog::doImport() bl->addWidget(m_deviceCombo); } else { m_deviceCombo = 0; - m_deviceLabel = new QLabel(deviceBox); + m_deviceLabel = new TQLabel(deviceBox); bl->addWidget(m_deviceLabel); } @@ -147,26 +147,26 @@ ImportDeviceDialog::doImport() ++count; } - QHBox *optionsBox = new QHBox(mainFrame); + TQHBox *optionsBox = new TQHBox(mainFrame); - QGroupBox *gb = new QGroupBox(1, Horizontal, i18n("Options"), + TQGroupBox *gb = new TQGroupBox(1, Horizontal, i18n("Options"), optionsBox); - m_importBanks = new QCheckBox(i18n("Import banks"), gb); - m_importKeyMappings = new QCheckBox(i18n("Import key mappings"), gb); - m_importControllers = new QCheckBox(i18n("Import controllers"), gb); + m_importBanks = new TQCheckBox(i18n("Import banks"), gb); + m_importKeyMappings = new TQCheckBox(i18n("Import key mappings"), gb); + m_importControllers = new TQCheckBox(i18n("Import controllers"), gb); if (showRenameOption) { - m_rename = new QCheckBox(i18n("Import device name"), gb); + m_rename = new TQCheckBox(i18n("Import device name"), gb); } else { m_rename = 0; } - m_buttonGroup = new QButtonGroup(1, Qt::Horizontal, + m_buttonGroup = new TQButtonGroup(1, Qt::Horizontal, i18n("Bank import behavior"), optionsBox); - m_mergeBanks = new QRadioButton(i18n("Merge banks"), m_buttonGroup); - m_overwriteBanks = new QRadioButton(i18n("Overwrite banks"), m_buttonGroup); + m_mergeBanks = new TQRadioButton(i18n("Merge banks"), m_buttonGroup); + m_overwriteBanks = new TQRadioButton(i18n("Overwrite banks"), m_buttonGroup); KConfig *config = kapp->config(); config->setGroup(GeneralOptionsConfigGroup); @@ -283,7 +283,7 @@ ImportDeviceDialog::shouldRename() const } bool -ImportDeviceDialog::importFromRG(QString fileName) +ImportDeviceDialog::importFromRG(TQString fileName) { m_fileDoc = new RosegardenGUIDoc(RosegardenGUIApp::self(), 0, true); // skipAutoload @@ -336,7 +336,7 @@ ImportDeviceDialog::importFromRG(QString fileName) } bool -ImportDeviceDialog::importFromSF2(QString filename) +ImportDeviceDialog::importFromSF2(TQString filename) { SF2PatchExtractor::Device sf2device; try { diff --git a/src/gui/dialogs/ImportDeviceDialog.h b/src/gui/dialogs/ImportDeviceDialog.h index bb79e3b..122e640 100644 --- a/src/gui/dialogs/ImportDeviceDialog.h +++ b/src/gui/dialogs/ImportDeviceDialog.h @@ -29,16 +29,16 @@ #include "base/MidiDevice.h" #include <string> #include <kdialogbase.h> -#include <qstring.h> +#include <tqstring.h> #include <vector> #include <kurl.h> -class QWidget; -class QRadioButton; -class QLabel; -class QCheckBox; -class QButtonGroup; +class TQWidget; +class TQRadioButton; +class TQLabel; +class TQCheckBox; +class TQButtonGroup; class ProgramList; class KeyMappingList; class KComboBox; @@ -57,7 +57,7 @@ class ImportDeviceDialog : public KDialogBase Q_OBJECT public: - ImportDeviceDialog(QWidget *parent, KURL url); + ImportDeviceDialog(TQWidget *parent, KURL url); virtual ~ImportDeviceDialog(); bool doImport(); @@ -82,22 +82,22 @@ public slots: void slotCancel(); protected: - bool importFromRG(QString fileName); - bool importFromSF2(QString fileName); + bool importFromRG(TQString fileName); + bool importFromSF2(TQString fileName); KURL m_url; KComboBox *m_deviceCombo; - QLabel *m_deviceLabel; + TQLabel *m_deviceLabel; - QCheckBox *m_importBanks; - QCheckBox *m_importKeyMappings; - QCheckBox *m_importControllers; - QCheckBox *m_rename; + TQCheckBox *m_importBanks; + TQCheckBox *m_importKeyMappings; + TQCheckBox *m_importControllers; + TQCheckBox *m_rename; - QButtonGroup *m_buttonGroup; - QRadioButton *m_mergeBanks; - QRadioButton *m_overwriteBanks; + TQButtonGroup *m_buttonGroup; + TQRadioButton *m_mergeBanks; + TQRadioButton *m_overwriteBanks; RosegardenGUIDoc *m_fileDoc; std::vector<MidiDevice *> m_devices; diff --git a/src/gui/dialogs/InterpretDialog.cpp b/src/gui/dialogs/InterpretDialog.cpp index b11e3c4..3510d1a 100644 --- a/src/gui/dialogs/InterpretDialog.cpp +++ b/src/gui/dialogs/InterpretDialog.cpp @@ -31,22 +31,22 @@ #include "commands/notation/InterpretCommand.h" #include <kconfig.h> #include <kdialogbase.h> -#include <qcheckbox.h> -#include <qgroupbox.h> -#include <qvbox.h> -#include <qwidget.h> +#include <tqcheckbox.h> +#include <tqgroupbox.h> +#include <tqvbox.h> +#include <tqwidget.h> namespace Rosegarden { -InterpretDialog::InterpretDialog(QWidget *parent) : +InterpretDialog::InterpretDialog(TQWidget *parent) : KDialogBase(parent, 0, true, i18n("Interpret"), Ok | Cancel | Help) { setHelp("nv-interpret"); - QVBox *vbox = makeVBoxMainWidget(); - QGroupBox *groupBox = new QGroupBox + TQVBox *vbox = makeVBoxMainWidget(); + TQGroupBox *groupBox = new QGroupBox (1, Horizontal, i18n("Interpretations to apply"), vbox); m_applyTextDynamics = new QCheckBox @@ -75,7 +75,7 @@ InterpretDialog::InterpretDialog(QWidget *parent) : (config->readBoolEntry("interpretarticulate", true)); connect(m_allInterpretations, - SIGNAL(clicked()), this, SLOT(slotAllBoxChanged())); + TQT_SIGNAL(clicked()), this, TQT_SLOT(slotAllBoxChanged())); slotAllBoxChanged(); } diff --git a/src/gui/dialogs/InterpretDialog.h b/src/gui/dialogs/InterpretDialog.h index 75c8694..9859259 100644 --- a/src/gui/dialogs/InterpretDialog.h +++ b/src/gui/dialogs/InterpretDialog.h @@ -29,8 +29,8 @@ #include <kdialogbase.h> -class QWidget; -class QCheckBox; +class TQWidget; +class TQCheckBox; namespace Rosegarden @@ -42,7 +42,7 @@ class InterpretDialog : public KDialogBase { Q_OBJECT public: - InterpretDialog(QWidget *parent); + InterpretDialog(TQWidget *parent); // an OR from InterpretCommand's constants int getInterpretations(); @@ -51,11 +51,11 @@ protected slots: void slotAllBoxChanged(); private: - QCheckBox *m_allInterpretations; - QCheckBox *m_applyTextDynamics; - QCheckBox *m_applyHairpins; - QCheckBox *m_stressBeats; - QCheckBox *m_articulate; + TQCheckBox *m_allInterpretations; + TQCheckBox *m_applyTextDynamics; + TQCheckBox *m_applyHairpins; + TQCheckBox *m_stressBeats; + TQCheckBox *m_articulate; }; diff --git a/src/gui/dialogs/IntervalDialog.cpp b/src/gui/dialogs/IntervalDialog.cpp index 061fc31..da8e4dc 100644 --- a/src/gui/dialogs/IntervalDialog.cpp +++ b/src/gui/dialogs/IntervalDialog.cpp @@ -24,7 +24,7 @@ #include "IntervalDialog.h" -#include <qlayout.h> +#include <tqlayout.h> #include <iostream> #include <klocale.h> @@ -33,27 +33,27 @@ #include "base/NotationRules.h" #include <kcombobox.h> #include <kdialogbase.h> -#include <qframe.h> -#include <qgroupbox.h> -#include <qcheckbox.h> -#include <qlabel.h> -#include <qradiobutton.h> -#include <qbuttongroup.h> -#include <qsizepolicy.h> -#include <qstring.h> -#include <qvbox.h> -#include <qwidget.h> +#include <tqframe.h> +#include <tqgroupbox.h> +#include <tqcheckbox.h> +#include <tqlabel.h> +#include <tqradiobutton.h> +#include <tqbuttongroup.h> +#include <tqsizepolicy.h> +#include <tqstring.h> +#include <tqvbox.h> +#include <tqwidget.h> namespace Rosegarden { -IntervalDialog::IntervalDialog(QWidget *parent, bool askChangeKey, bool askTransposeSegmentBack) : +IntervalDialog::IntervalDialog(TQWidget *parent, bool askChangeKey, bool askTransposeSegmentBack) : KDialogBase(parent, 0, true, i18n("Specify Interval"), Ok | Cancel ) { - QVBox *vBox = makeVBoxMainWidget(); + TQVBox *vBox = makeVBoxMainWidget(); - QHBox *hBox = new QHBox( vBox ); + TQHBox *hBox = new TQHBox( vBox ); m_referencenote = new DiatonicPitchChooser( i18n("Reference note:"), hBox ); m_targetnote = new DiatonicPitchChooser( i18n("Target note:"), hBox ); @@ -61,22 +61,22 @@ IntervalDialog::IntervalDialog(QWidget *parent, bool askChangeKey, bool askTrans intervalChromatic = 0; intervalDiatonic = 0; - //m_intervalPitchLabel = new QLabel( i18n("Pitch: %1").arg(intervalChromatic), hBox); - //m_intervalOctavesLabel = new QLabel( i18n("Octaves: %1").arg(intervalDiatonic / 7), hBox); - //m_intervalStepsLabel = new QLabel( i18n("Steps: %1").arg(intervalDiatonic % 7), hBox); + //m_intervalPitchLabel = new TQLabel( i18n("Pitch: %1").arg(intervalChromatic), hBox); + //m_intervalOctavesLabel = new TQLabel( i18n("Octaves: %1").arg(intervalDiatonic / 7), hBox); + //m_intervalStepsLabel = new TQLabel( i18n("Steps: %1").arg(intervalDiatonic % 7), hBox); - m_intervalLabel = new QLabel( i18n("a perfect unison"), vBox); + m_intervalLabel = new TQLabel( i18n("a perfect unison"), vBox); m_intervalLabel->setAlignment(Qt::AlignCenter); - QFont font(m_intervalLabel->font()); + TQFont font(m_intervalLabel->font()); font.setItalic(true); m_intervalLabel->setFont(font); if (askChangeKey) { - QButtonGroup *affectKeyGroup = new QButtonGroup(1, Horizontal, i18n("Effect on Key"), vBox); - m_transposeWithinKey = new QRadioButton(i18n("Transpose within key"), affectKeyGroup); + TQButtonGroup *affectKeyGroup = new TQButtonGroup(1, Horizontal, i18n("Effect on Key"), vBox); + m_transposeWithinKey = new TQRadioButton(i18n("Transpose within key"), affectKeyGroup); m_transposeWithinKey->setChecked(true); - m_transposeChangingKey = new QRadioButton(i18n("Change key for selection"), affectKeyGroup); + m_transposeChangingKey = new TQRadioButton(i18n("Change key for selection"), affectKeyGroup); } else { @@ -86,7 +86,7 @@ IntervalDialog::IntervalDialog(QWidget *parent, bool askChangeKey, bool askTrans if (askTransposeSegmentBack) { - m_transposeSegmentBack = new QCheckBox( i18n("Adjust segment transposition in opposite direction (maintain audible pitch)"), vBox ); + m_transposeSegmentBack = new TQCheckBox( i18n("Adjust segment transposition in opposite direction (maintain audible pitch)"), vBox ); m_transposeSegmentBack->setTristate(false); m_transposeSegmentBack->setChecked(false); } @@ -95,11 +95,11 @@ IntervalDialog::IntervalDialog(QWidget *parent, bool askChangeKey, bool askTrans m_transposeSegmentBack = NULL; } - connect(m_referencenote, SIGNAL(noteChanged(int,int,int)), - this, SLOT(slotSetReferenceNote(int,int,int))); + connect(m_referencenote, TQT_SIGNAL(noteChanged(int,int,int)), + this, TQT_SLOT(slotSetReferenceNote(int,int,int))); - connect(m_targetnote, SIGNAL(noteChanged(int,int,int)), - this, SLOT(slotSetTargetNote(int,int,int))); + connect(m_targetnote, TQT_SIGNAL(noteChanged(int,int,int)), + this, TQT_SLOT(slotSetTargetNote(int,int,int))); } // number of octaves the notes are apart @@ -176,8 +176,8 @@ IntervalDialog::getIntervalName(int intervalDiatonic, int intervalChromatic) bool showStep = displayIntervalDiatonic == 0 || displayIntervalDiatonic % 7 != 0 || deviation != 0; - QString textInterval = ""; - QString textIntervalDeviated = ""; + TQString textInterval = ""; + TQString textIntervalDeviated = ""; if (showStep) { switch (displayIntervalDiatonic % 7) diff --git a/src/gui/dialogs/IntervalDialog.h b/src/gui/dialogs/IntervalDialog.h index b9927d2..f08326b 100644 --- a/src/gui/dialogs/IntervalDialog.h +++ b/src/gui/dialogs/IntervalDialog.h @@ -32,10 +32,10 @@ #include "gui/widgets/DiatonicPitchChooser.h" -class QWidget; +class TQWidget; class KComboBox; -class QRadioButton; -class QCheckBox; +class TQRadioButton; +class TQCheckBox; namespace Rosegarden @@ -48,7 +48,7 @@ class IntervalDialog : public KDialogBase { Q_OBJECT public: - IntervalDialog(QWidget *parent, bool askChangeKey = false, bool askTransposeSegmentBack = false); + IntervalDialog(TQWidget *parent, bool askChangeKey = false, bool askTransposeSegmentBack = false); // Distance in semitones int getChromaticDistance(); @@ -62,7 +62,7 @@ public: // Transpose the segment itself in the opposite direction? bool getTransposeSegmentBack(); - static QString getIntervalName(int intervalDiatonic, int intervalChromatic); + static TQString getIntervalName(int intervalDiatonic, int intervalChromatic); public slots: void slotSetReferenceNote(int,int,int); @@ -76,15 +76,15 @@ private: DiatonicPitchChooser *m_referencenote; DiatonicPitchChooser *m_targetnote; - QRadioButton *m_transposeWithinKey; - QRadioButton *m_transposeChangingKey; + TQRadioButton *m_transposeWithinKey; + TQRadioButton *m_transposeChangingKey; bool changeKey; - QCheckBox *m_transposeSegmentBack; + TQCheckBox *m_transposeSegmentBack; int intervalChromatic; int intervalDiatonic; - QLabel *m_intervalLabel; + TQLabel *m_intervalLabel; }; diff --git a/src/gui/dialogs/KeySignatureDialog.cpp b/src/gui/dialogs/KeySignatureDialog.cpp index c703c0a..f47d71a 100644 --- a/src/gui/dialogs/KeySignatureDialog.cpp +++ b/src/gui/dialogs/KeySignatureDialog.cpp @@ -32,30 +32,30 @@ #include "gui/widgets/BigArrowButton.h" #include <kcombobox.h> #include <kdialogbase.h> -#include <qbuttongroup.h> -#include <qgroupbox.h> -#include <qhbox.h> -#include <qlabel.h> -#include <qobject.h> -#include <qpixmap.h> -#include <qradiobutton.h> -#include <qstring.h> -#include <qtooltip.h> -#include <qvbox.h> -#include <qwidget.h> -#include <qcheckbox.h> +#include <tqbuttongroup.h> +#include <tqgroupbox.h> +#include <tqhbox.h> +#include <tqlabel.h> +#include <tqobject.h> +#include <tqpixmap.h> +#include <tqradiobutton.h> +#include <tqstring.h> +#include <tqtooltip.h> +#include <tqvbox.h> +#include <tqwidget.h> +#include <tqcheckbox.h> #include <algorithm> namespace Rosegarden { -KeySignatureDialog::KeySignatureDialog(QWidget *parent, +KeySignatureDialog::KeySignatureDialog(TQWidget *parent, NotePixmapFactory *npf, Clef clef, Rosegarden::Key defaultKey, bool showApplyToAll, bool showConversionOptions, - QString explanatoryText) : + TQString explanatoryText) : KDialogBase(parent, 0, true, i18n("Key Change"), Ok | Cancel | Help), m_notePixmapFactory(npf), m_key(defaultKey), @@ -68,40 +68,40 @@ KeySignatureDialog::KeySignatureDialog(QWidget *parent, { setHelp("nv-signatures-key"); - QVBox *vbox = makeVBoxMainWidget(); + TQVBox *vbox = makeVBoxMainWidget(); - QHBox *keyBox = 0; - QHBox *nameBox = 0; + TQHBox *keyBox = 0; + TQHBox *nameBox = 0; - QGroupBox *keyFrame = new QGroupBox + TQGroupBox *keyFrame = new QGroupBox (1, Horizontal, i18n("Key signature"), vbox); - QGroupBox *transposeFrame = new QButtonGroup + TQGroupBox *transposeFrame = new QButtonGroup (1, Horizontal, i18n("Key transposition"), vbox); - QGroupBox *buttonFrame = new QButtonGroup + TQGroupBox *buttonFrame = new QButtonGroup (1, Horizontal, i18n("Scope"), vbox); - QButtonGroup *conversionFrame = new QButtonGroup + TQButtonGroup *conversionFrame = new QButtonGroup (1, Horizontal, i18n("Existing notes following key change"), vbox); - keyBox = new QHBox(keyFrame); - nameBox = new QHBox(keyFrame); + keyBox = new TQHBox(keyFrame); + nameBox = new TQHBox(keyFrame); - QLabel *explanatoryLabel = 0; + TQLabel *explanatoryLabel = 0; if (explanatoryText) { - explanatoryLabel = new QLabel(explanatoryText, keyFrame); + explanatoryLabel = new TQLabel(explanatoryText, keyFrame); } BigArrowButton *keyDown = new BigArrowButton(keyBox, Qt::LeftArrow); - QToolTip::add + TQToolTip::add (keyDown, i18n("Flatten")); - m_keyLabel = new QLabel(i18n("Key"), keyBox); + m_keyLabel = new TQLabel(i18n("Key"), keyBox); m_keyLabel->setAlignment(AlignVCenter | AlignHCenter); BigArrowButton *keyUp = new BigArrowButton(keyBox, Qt::RightArrow); - QToolTip::add + TQToolTip::add (keyUp, i18n("Sharpen")); m_keyCombo = new KComboBox(nameBox); @@ -120,25 +120,25 @@ KeySignatureDialog::KeySignatureDialog(QWidget *parent, m_keyLabel->setMinimumHeight(m_keyLabel->pixmap()->height()); m_yesTransposeButton = - new QRadioButton(i18n("Transpose key according to segment transposition"), + new TQRadioButton(i18n("Transpose key according to segment transposition"), transposeFrame); - QRadioButton *noTransposeButton = - new QRadioButton(i18n("Use specified key. Do not transpose"), transposeFrame); + TQRadioButton *noTransposeButton = + new TQRadioButton(i18n("Use specified key. Do not transpose"), transposeFrame); m_yesTransposeButton->setChecked(true); // just to shut up the compiler warning about unused variable: noTransposeButton->setChecked(false); if (showApplyToAll) { - QRadioButton *applyToOneButton = - new QRadioButton(i18n("Apply to current segment only"), + TQRadioButton *applyToOneButton = + new TQRadioButton(i18n("Apply to current segment only"), buttonFrame); m_applyToAllButton = - new QRadioButton(i18n("Apply to all segments at this time"), + new TQRadioButton(i18n("Apply to all segments at this time"), buttonFrame); applyToOneButton->setChecked(true); m_noPercussionCheckBox = - new QCheckBox(i18n("Exclude percussion segments"), buttonFrame); + new TQCheckBox(i18n("Exclude percussion segments"), buttonFrame); m_noPercussionCheckBox->setChecked(true); } else { @@ -164,14 +164,14 @@ KeySignatureDialog::KeySignatureDialog(QWidget *parent, conversionFrame->hide(); } - QObject::connect(keyUp, SIGNAL(clicked()), this, SLOT(slotKeyUp())); - QObject::connect(keyDown, SIGNAL(clicked()), this, SLOT(slotKeyDown())); - QObject::connect(m_keyCombo, SIGNAL(activated(const QString &)), - this, SLOT(slotKeyNameChanged(const QString &))); - QObject::connect(m_keyCombo, SIGNAL(textChanged(const QString &)), - this, SLOT(slotKeyNameChanged(const QString &))); - QObject::connect(m_majorMinorCombo, SIGNAL(activated(const QString &)), - this, SLOT(slotMajorMinorChanged(const QString &))); + TQObject::connect(keyUp, TQT_SIGNAL(clicked()), this, TQT_SLOT(slotKeyUp())); + TQObject::connect(keyDown, TQT_SIGNAL(clicked()), this, TQT_SLOT(slotKeyDown())); + TQObject::connect(m_keyCombo, TQT_SIGNAL(activated(const TQString &)), + this, TQT_SLOT(slotKeyNameChanged(const TQString &))); + TQObject::connect(m_keyCombo, TQT_SIGNAL(textChanged(const TQString &)), + this, TQT_SLOT(slotKeyNameChanged(const TQString &))); + TQObject::connect(m_majorMinorCombo, TQT_SIGNAL(activated(const TQString &)), + this, TQT_SLOT(slotMajorMinorChanged(const TQString &))); } KeySignatureDialog::ConversionType @@ -279,7 +279,7 @@ KeySignatureDialog::regenerateKeyCombo() m_explanatoryLabel->hide(); m_ignoreComboChanges = true; - QString currentText = m_keyCombo->currentText(); + TQString currentText = m_keyCombo->currentText(); Rosegarden::Key::KeyList keys(Rosegarden::Key::getKeys(m_key.isMinor())); m_keyCombo->clear(); @@ -289,7 +289,7 @@ KeySignatureDialog::regenerateKeyCombo() for (Rosegarden::Key::KeyList::iterator i = keys.begin(); i != keys.end(); ++i) { - QString name(strtoqstr(i->getName())); + TQString name(strtoqstr(i->getName())); int space = name.find(' '); if (space > 0) name = name.left(space); @@ -324,7 +324,7 @@ void KeySignatureDialog::redrawKeyPixmap() { if (m_valid) { - QPixmap pmap = + TQPixmap pmap = NotePixmapFactory::toQPixmap(m_notePixmapFactory->makeKeyDisplayPixmap(m_key, m_clef)); m_keyLabel->setPixmap(pmap); } else { @@ -333,7 +333,7 @@ KeySignatureDialog::redrawKeyPixmap() } void -KeySignatureDialog::slotKeyNameChanged(const QString &s) +KeySignatureDialog::slotKeyNameChanged(const TQString &s) { if (m_ignoreComboChanges) return ; @@ -361,7 +361,7 @@ KeySignatureDialog::slotKeyNameChanged(const QString &s) } void -KeySignatureDialog::slotMajorMinorChanged(const QString &s) +KeySignatureDialog::slotMajorMinorChanged(const TQString &s) { if (m_ignoreComboChanges) return ; @@ -388,9 +388,9 @@ KeySignatureDialog::setValid(bool valid) } std::string -KeySignatureDialog::getKeyName(const QString &s, bool minor) +KeySignatureDialog::getKeyName(const TQString &s, bool minor) { - QString u((s.length() >= 1) ? (s.left(1).upper() + s.right(s.length() - 1)) + TQString u((s.length() >= 1) ? (s.left(1).upper() + s.right(s.length() - 1)) : s); std::string name(qstrtostr(u)); diff --git a/src/gui/dialogs/KeySignatureDialog.h b/src/gui/dialogs/KeySignatureDialog.h index cd4a340..2047ee7 100644 --- a/src/gui/dialogs/KeySignatureDialog.h +++ b/src/gui/dialogs/KeySignatureDialog.h @@ -29,15 +29,15 @@ #include "base/NotationTypes.h" #include <string> #include <kdialogbase.h> -#include <qstring.h> -#include <qcheckbox.h> +#include <tqstring.h> +#include <tqcheckbox.h> -class QWidget; -class QRadioButton; -class QLabel; +class TQWidget; +class TQRadioButton; +class TQLabel; class KComboBox; -class QCheckBox; +class TQCheckBox; namespace Rosegarden @@ -57,14 +57,14 @@ public: Transpose }; - KeySignatureDialog(QWidget *parent, + KeySignatureDialog(TQWidget *parent, NotePixmapFactory *npf, Clef clef, Rosegarden::Key defaultKey = Rosegarden::Key::DefaultKey, bool showApplyToAll = true, bool showConversionOptions = true, - QString explanatoryText = 0); + TQString explanatoryText = 0); bool isValid() const; ::Rosegarden::Key getKey() const; @@ -77,15 +77,15 @@ public: public slots: void slotKeyUp(); void slotKeyDown(); - void slotKeyNameChanged(const QString &); - void slotMajorMinorChanged(const QString &); + void slotKeyNameChanged(const TQString &); + void slotMajorMinorChanged(const TQString &); protected: void redrawKeyPixmap(); void regenerateKeyCombo(); void setValid(bool valid); - std::string getKeyName(const QString &s, bool minor); + std::string getKeyName(const TQString &s, bool minor); //--------------- Data members --------------------------------- @@ -96,19 +96,19 @@ protected: bool m_valid; bool m_ignoreComboChanges; - QLabel *m_keyLabel; + TQLabel *m_keyLabel; KComboBox *m_keyCombo; KComboBox *m_majorMinorCombo; - QLabel *m_explanatoryLabel; + TQLabel *m_explanatoryLabel; - QRadioButton *m_applyToAllButton; - QRadioButton *m_yesTransposeButton; + TQRadioButton *m_applyToAllButton; + TQRadioButton *m_yesTransposeButton; - QRadioButton *m_noConversionButton; - QRadioButton *m_convertButton; - QRadioButton *m_transposeButton; + TQRadioButton *m_noConversionButton; + TQRadioButton *m_convertButton; + TQRadioButton *m_transposeButton; - QCheckBox *m_noPercussionCheckBox; + TQCheckBox *m_noPercussionCheckBox; }; diff --git a/src/gui/dialogs/LilyPondOptionsDialog.cpp b/src/gui/dialogs/LilyPondOptionsDialog.cpp index f693467..6af8f86 100644 --- a/src/gui/dialogs/LilyPondOptionsDialog.cpp +++ b/src/gui/dialogs/LilyPondOptionsDialog.cpp @@ -27,7 +27,7 @@ #include "document/io/LilyPondExporter.h" #include "gui/configuration/HeadersConfigurationPage.h" -#include <qlayout.h> +#include <tqlayout.h> #include <kapplication.h> #include "document/ConfigGroups.h" @@ -39,25 +39,25 @@ #include <kdialogbase.h> #include <kglobal.h> #include <klocale.h> -#include <qcheckbox.h> -#include <qcombobox.h> -#include <qframe.h> -#include <qgroupbox.h> -#include <qlabel.h> -#include <qstring.h> -#include <qtabwidget.h> -#include <qtooltip.h> -#include <qvbox.h> -#include <qwidget.h> +#include <tqcheckbox.h> +#include <tqcombobox.h> +#include <tqframe.h> +#include <tqgroupbox.h> +#include <tqlabel.h> +#include <tqstring.h> +#include <tqtabwidget.h> +#include <tqtooltip.h> +#include <tqvbox.h> +#include <tqwidget.h> #include <iostream> namespace Rosegarden { -LilyPondOptionsDialog::LilyPondOptionsDialog(QWidget *parent, +LilyPondOptionsDialog::LilyPondOptionsDialog(TQWidget *parent, RosegardenGUIDoc *doc, - QString windowCaption, - QString heading) : + TQString windowCaption, + TQString heading) : KDialogBase(parent, 0, true, (windowCaption = "" ? i18n("LilyPond Export/Preview") : windowCaption), Apply | Ok | Cancel), @@ -68,28 +68,28 @@ LilyPondOptionsDialog::LilyPondOptionsDialog(QWidget *parent, KConfig *config = kapp->config(); config->setGroup(NotationViewConfigGroup); - QVBox * mainbox = makeVBoxMainWidget(); + TQVBox * mainbox = makeVBoxMainWidget(); // // Arrange options in "General" and "Advanced" tabs. // - QTabWidget * tabWidget = new QTabWidget(mainbox); + TQTabWidget * tabWidget = new TQTabWidget(mainbox); - QFrame *generalFrame; - QFrame *advancedFrame; - QGridLayout *generalGrid; - QGridLayout *advancedGrid; + TQFrame *generalFrame; + TQFrame *advancedFrame; + TQGridLayout *generalGrid; + TQGridLayout *advancedGrid; - generalFrame = new QFrame(); + generalFrame = new TQFrame(); tabWidget->addTab(generalFrame, i18n("General options")); - generalGrid = new QGridLayout(generalFrame, 1, 1, 5, 5); + generalGrid = new TQGridLayout(generalFrame, 1, 1, 5, 5); - advancedFrame = new QFrame(); + advancedFrame = new TQFrame(); tabWidget->addTab(advancedFrame, i18n("Advanced options")); - advancedGrid = new QGridLayout(advancedFrame, 1, 1, 5, 5); + advancedGrid = new TQGridLayout(advancedFrame, 1, 1, 5, 5); m_headersPage = new HeadersConfigurationPage(this, m_doc); tabWidget->addTab(m_headersPage, i18n("Headers")); @@ -101,15 +101,15 @@ LilyPondOptionsDialog::LilyPondOptionsDialog(QWidget *parent, // LilyPond export: Basic options // - QGroupBox *basicOptionsBox = new QGroupBox + TQGroupBox *basicOptionsBox = new QGroupBox (1, Horizontal, i18n("Basic options"), generalFrame); generalGrid->addWidget(basicOptionsBox, 0, 0); - QFrame *frameBasic = new QFrame(basicOptionsBox); - QGridLayout *layoutBasic = new QGridLayout(frameBasic, 3, 2, 10, 5); + TQFrame *frameBasic = new TQFrame(basicOptionsBox); + TQGridLayout *layoutBasic = new TQGridLayout(frameBasic, 3, 2, 10, 5); - layoutBasic->addWidget(new QLabel( + layoutBasic->addWidget(new TQLabel( i18n("Compatibility level"), frameBasic), 0, 0); m_lilyLanguage = new KComboBox(frameBasic); @@ -121,10 +121,10 @@ LilyPondOptionsDialog::LilyPondOptionsDialog(QWidget *parent, m_lilyLanguage->setCurrentItem(config->readUnsignedNumEntry("lilylanguage", 0)); layoutBasic->addWidget(m_lilyLanguage, 0, 1); - layoutBasic->addWidget(new QLabel( + layoutBasic->addWidget(new TQLabel( i18n("Paper size"), frameBasic), 1, 0); - QHBoxLayout *hboxPaper = new QHBoxLayout( frameBasic ); + TQHBoxLayout *hboxPaper = new TQHBoxLayout( frameBasic ); m_lilyPaperSize = new KComboBox(frameBasic); m_lilyPaperSize->insertItem(i18n("A3")); m_lilyPaperSize->insertItem(i18n("A4")); @@ -140,15 +140,15 @@ LilyPondOptionsDialog::LilyPondOptionsDialog(QWidget *parent, m_lilyPaperSize->setCurrentItem(config->readUnsignedNumEntry ("lilypapersize", defaultPaperSize)); - m_lilyPaperLandscape = new QCheckBox(i18n("Landscape"), frameBasic); + m_lilyPaperLandscape = new TQCheckBox(i18n("Landscape"), frameBasic); m_lilyPaperLandscape->setChecked(config->readBoolEntry("lilypaperlandscape", false)); hboxPaper->addWidget( m_lilyPaperSize ); - hboxPaper->addWidget( new QLabel( " ", frameBasic ) ); // fixed-size spacer + hboxPaper->addWidget( new TQLabel( " ", frameBasic ) ); // fixed-size spacer hboxPaper->addWidget( m_lilyPaperLandscape ); layoutBasic->addLayout(hboxPaper, 1, 1); - layoutBasic->addWidget(new QLabel( + layoutBasic->addWidget(new TQLabel( i18n("Font size"), frameBasic), 2, 0); m_lilyFontSize = new KComboBox(frameBasic); @@ -164,15 +164,15 @@ LilyPondOptionsDialog::LilyPondOptionsDialog(QWidget *parent, // LilyPond export: Staff level options // - QGroupBox *staffOptionsBox = new QGroupBox + TQGroupBox *staffOptionsBox = new QGroupBox (1, Horizontal, i18n("Staff level options"), generalFrame); generalGrid->addWidget(staffOptionsBox, 1, 0); - QFrame *frameStaff = new QFrame(staffOptionsBox); - QGridLayout *layoutStaff = new QGridLayout(frameStaff, 2, 2, 10, 5); + TQFrame *frameStaff = new TQFrame(staffOptionsBox); + TQGridLayout *layoutStaff = new TQGridLayout(frameStaff, 2, 2, 10, 5); - layoutStaff->addWidget(new QLabel( + layoutStaff->addWidget(new TQLabel( i18n("Export content"), frameStaff), 0, 0); m_lilyExportSelection = new KComboBox(frameStaff); @@ -184,7 +184,7 @@ LilyPondOptionsDialog::LilyPondOptionsDialog(QWidget *parent, layoutStaff->addWidget(m_lilyExportSelection, 0, 1); - m_lilyExportStaffMerge = new QCheckBox( + m_lilyExportStaffMerge = new TQCheckBox( i18n("Merge tracks that have the same name"), frameStaff); m_lilyExportStaffMerge->setChecked(config->readBoolEntry("lilyexportstaffmerge", false)); layoutStaff->addMultiCellWidget(m_lilyExportStaffMerge, 1, 1, 0, 1); @@ -193,13 +193,13 @@ LilyPondOptionsDialog::LilyPondOptionsDialog(QWidget *parent, // LilyPond export: Notation options // - QGroupBox *notationOptionsBox = new QGroupBox + TQGroupBox *notationOptionsBox = new QGroupBox (1, Horizontal, i18n("Notation options"), generalFrame); generalGrid->addWidget(notationOptionsBox, 2, 0); - QFrame *frameNotation = new QFrame(notationOptionsBox); - QGridLayout *layoutNotation = new QGridLayout(frameNotation, 4, 2, 10, 5); + TQFrame *frameNotation = new TQFrame(notationOptionsBox); + TQGridLayout *layoutNotation = new TQGridLayout(frameNotation, 4, 2, 10, 5); m_lilyTempoMarks = new KComboBox( frameNotation ); m_lilyTempoMarks->insertItem(i18n("None")); @@ -207,11 +207,11 @@ LilyPondOptionsDialog::LilyPondOptionsDialog(QWidget *parent, m_lilyTempoMarks->insertItem(i18n("All")); m_lilyTempoMarks->setCurrentItem(config->readUnsignedNumEntry("lilyexporttempomarks", 0)); - layoutNotation->addWidget( new QLabel( + layoutNotation->addWidget( new TQLabel( i18n("Export tempo marks "), frameNotation), 0, 0 ); layoutNotation->addWidget(m_lilyTempoMarks, 0, 1); - m_lilyExportLyrics = new QCheckBox( + m_lilyExportLyrics = new TQCheckBox( i18n("Export lyrics"), frameNotation); // default to lyric export == false because if you export the default // empty "- - -" lyrics, crap results ensue, and people will know if they @@ -221,14 +221,14 @@ LilyPondOptionsDialog::LilyPondOptionsDialog(QWidget *parent, m_lilyExportLyrics->setChecked(config->readBoolEntry("lilyexportlyrics", true)); layoutNotation->addMultiCellWidget(m_lilyExportLyrics, 1, 1, 0, 1); - m_lilyExportBeams = new QCheckBox( + m_lilyExportBeams = new TQCheckBox( i18n("Export beamings"), frameNotation); m_lilyExportBeams->setChecked(config->readBoolEntry("lilyexportbeamings", false)); layoutNotation->addMultiCellWidget(m_lilyExportBeams, 2, 2, 0, 1); // recycle this for a new option to ignore the track brackets (so it is less // obnoxious to print single parts where brackets are in place) - m_lilyExportStaffGroup = new QCheckBox( + m_lilyExportStaffGroup = new TQCheckBox( i18n("Export track staff brackets"), frameNotation); m_lilyExportStaffGroup->setChecked(config->readBoolEntry("lilyexportstaffbrackets", true)); layoutNotation->addMultiCellWidget(m_lilyExportStaffGroup, 3, 3, 0, 1); @@ -239,13 +239,13 @@ LilyPondOptionsDialog::LilyPondOptionsDialog(QWidget *parent, // LilyPond export: Advanced options // - QGroupBox *advancedLayoutOptionsBox = new QGroupBox + TQGroupBox *advancedLayoutOptionsBox = new QGroupBox (1, Horizontal, i18n("Layout options"), advancedFrame); advancedGrid->addWidget(advancedLayoutOptionsBox, 0, 0); - QFrame *frameAdvancedLayout = new QFrame(advancedLayoutOptionsBox); - QGridLayout *layoutAdvancedLayout = new QGridLayout(frameAdvancedLayout, 2, 2, 10, 5); + TQFrame *frameAdvancedLayout = new TQFrame(advancedLayoutOptionsBox); + TQGridLayout *layoutAdvancedLayout = new TQGridLayout(frameAdvancedLayout, 2, 2, 10, 5); m_lilyLyricsHAlignment = new KComboBox( frameAdvancedLayout ); m_lilyLyricsHAlignment->insertItem(i18n("Left")); @@ -253,29 +253,29 @@ LilyPondOptionsDialog::LilyPondOptionsDialog(QWidget *parent, m_lilyLyricsHAlignment->insertItem(i18n("Right")); m_lilyLyricsHAlignment->setCurrentItem(config->readUnsignedNumEntry("lilylyricshalignment", 0)); - layoutAdvancedLayout->addWidget(new QLabel( + layoutAdvancedLayout->addWidget(new TQLabel( i18n("Lyrics alignment"), frameAdvancedLayout), 0, 0); layoutAdvancedLayout->addWidget(m_lilyLyricsHAlignment, 0, 1); - m_lilyRaggedBottom = new QCheckBox( + m_lilyRaggedBottom = new TQCheckBox( i18n("Ragged bottom (systems will not be spread vertically across the page)"), frameAdvancedLayout); m_lilyRaggedBottom->setChecked(config->readBoolEntry("lilyraggedbottom", false)); layoutAdvancedLayout->addMultiCellWidget(m_lilyRaggedBottom, 1, 2, 0, 1); - QGroupBox *miscOptionsBox = new QGroupBox + TQGroupBox *miscOptionsBox = new QGroupBox (1, Horizontal, i18n("Miscellaneous options"), advancedFrame); advancedGrid->addWidget(miscOptionsBox, 1, 0); - QFrame *frameMisc = new QFrame(miscOptionsBox); - QGridLayout *layoutMisc = new QGridLayout(frameMisc, 2, 2, 10, 5); + TQFrame *frameMisc = new TQFrame(miscOptionsBox); + TQGridLayout *layoutMisc = new TQGridLayout(frameMisc, 2, 2, 10, 5); - m_lilyExportPointAndClick = new QCheckBox( + m_lilyExportPointAndClick = new TQCheckBox( i18n("Enable \"point and click\" debugging"), frameMisc); m_lilyExportPointAndClick->setChecked(config->readBoolEntry("lilyexportpointandclick", false)); layoutMisc->addMultiCellWidget(m_lilyExportPointAndClick, 0, 0, 0, 1); - m_lilyExportMidi = new QCheckBox( + m_lilyExportMidi = new TQCheckBox( i18n("Export \\midi block"), frameMisc); m_lilyExportMidi->setChecked(config->readBoolEntry("lilyexportmidi", false)); layoutMisc->addMultiCellWidget(m_lilyExportMidi, 1, 1, 0, 1); @@ -286,7 +286,7 @@ LilyPondOptionsDialog::LilyPondOptionsDialog(QWidget *parent, m_lilyMarkerMode->insertItem(i18n("Marker text")); m_lilyMarkerMode->setCurrentItem(config->readUnsignedNumEntry("lilyexportmarkermode", 0)); - layoutMisc->addWidget( new QLabel( + layoutMisc->addWidget( new TQLabel( i18n("Export markers"), frameMisc),2, 0 ); layoutMisc->addWidget(m_lilyMarkerMode, 2, 1); @@ -327,7 +327,7 @@ LilyPondOptionsDialog::slotOk() } void -LilyPondOptionsDialog::setDefaultLilyPondVersion(QString version) +LilyPondOptionsDialog::setDefaultLilyPondVersion(TQString version) { KConfig *config = kapp->config(); config->setGroup(NotationViewConfigGroup); diff --git a/src/gui/dialogs/LilyPondOptionsDialog.h b/src/gui/dialogs/LilyPondOptionsDialog.h index a8f2476..9071818 100644 --- a/src/gui/dialogs/LilyPondOptionsDialog.h +++ b/src/gui/dialogs/LilyPondOptionsDialog.h @@ -26,15 +26,15 @@ #define _RG_LILYPONDOPTIONSDIALOG_H_ #include <kdialogbase.h> -#include <qstring.h> +#include <tqstring.h> #include "gui/configuration/HeadersConfigurationPage.h" -class QWidget; -class QCheckBox; -class QComboBox; -class QLineEdit; -class QLineEdit; +class TQWidget; +class TQCheckBox; +class TQComboBox; +class TQLineEdit; +class TQLineEdit; namespace Rosegarden { @@ -47,12 +47,12 @@ class LilyPondOptionsDialog : public KDialogBase Q_OBJECT public: - LilyPondOptionsDialog(QWidget *parent, + LilyPondOptionsDialog(TQWidget *parent, RosegardenGUIDoc *doc, - QString windowCaption = "", - QString heading = ""); + TQString windowCaption = "", + TQString heading = ""); - static void setDefaultLilyPondVersion(QString version); + static void setDefaultLilyPondVersion(TQString version); public slots: void slotApply(); @@ -60,21 +60,21 @@ public slots: protected: RosegardenGUIDoc *m_doc; - QComboBox *m_lilyLanguage; - QComboBox *m_lilyPaperSize; - QComboBox *m_lilyFontSize; - QComboBox *m_lilyTempoMarks; - QComboBox *m_lilyExportSelection; - QComboBox *m_lilyLyricsHAlignment; - QCheckBox *m_lilyPaperLandscape; - QCheckBox *m_lilyRaggedBottom; - QCheckBox *m_lilyExportLyrics; - QCheckBox *m_lilyExportMidi; - QCheckBox *m_lilyExportPointAndClick; - QCheckBox *m_lilyExportBeams; - QCheckBox *m_lilyExportStaffMerge; - QCheckBox *m_lilyExportStaffGroup; - QComboBox *m_lilyMarkerMode; + TQComboBox *m_lilyLanguage; + TQComboBox *m_lilyPaperSize; + TQComboBox *m_lilyFontSize; + TQComboBox *m_lilyTempoMarks; + TQComboBox *m_lilyExportSelection; + TQComboBox *m_lilyLyricsHAlignment; + TQCheckBox *m_lilyPaperLandscape; + TQCheckBox *m_lilyRaggedBottom; + TQCheckBox *m_lilyExportLyrics; + TQCheckBox *m_lilyExportMidi; + TQCheckBox *m_lilyExportPointAndClick; + TQCheckBox *m_lilyExportBeams; + TQCheckBox *m_lilyExportStaffMerge; + TQCheckBox *m_lilyExportStaffGroup; + TQComboBox *m_lilyMarkerMode; HeadersConfigurationPage *m_headersPage; }; diff --git a/src/gui/dialogs/LyricEditDialog.cpp b/src/gui/dialogs/LyricEditDialog.cpp index 4dfeba2..691f046 100644 --- a/src/gui/dialogs/LyricEditDialog.cpp +++ b/src/gui/dialogs/LyricEditDialog.cpp @@ -34,21 +34,21 @@ #include "base/NotationTypes.h" #include "base/Segment.h" #include <kdialogbase.h> -#include <qgroupbox.h> -#include <qregexp.h> -#include <qstring.h> -#include <qtextedit.h> -#include <qvbox.h> -#include <qwidget.h> +#include <tqgroupbox.h> +#include <tqregexp.h> +#include <tqstring.h> +#include <tqtextedit.h> +#include <tqvbox.h> +#include <tqwidget.h> #include <kcombobox.h> -#include <qlabel.h> -#include <qpushbutton.h> +#include <tqlabel.h> +#include <tqpushbutton.h> namespace Rosegarden { -LyricEditDialog::LyricEditDialog(QWidget *parent, +LyricEditDialog::LyricEditDialog(TQWidget *parent, Segment *segment) : KDialogBase(parent, 0, true, i18n("Edit Lyrics"), Ok | Cancel | Help), m_segment(segment), @@ -56,23 +56,23 @@ LyricEditDialog::LyricEditDialog(QWidget *parent, { setHelp("nv-text-lyrics"); - QVBox *vbox = makeVBoxMainWidget(); + TQVBox *vbox = makeVBoxMainWidget(); - QGroupBox *groupBox = new QGroupBox + TQGroupBox *groupBox = new QGroupBox (1, Horizontal, i18n("Lyrics for this segment"), vbox); - QHBox *hbox = new QHBox(groupBox); + TQHBox *hbox = new TQHBox(groupBox); hbox->setSpacing(5); -// new QLabel(i18n("Verse:"), hbox); +// new TQLabel(i18n("Verse:"), hbox); m_verseNumber = new KComboBox(hbox); m_verseNumber->setEditable(false); - connect(m_verseNumber, SIGNAL(activated(int)), this, SLOT(slotVerseNumberChanged(int))); - m_verseAddButton = new QPushButton(i18n("Add Verse"), hbox); - connect(m_verseAddButton, SIGNAL(clicked()), this, SLOT(slotAddVerse())); - QFrame *f = new QFrame(hbox); + connect(m_verseNumber, TQT_SIGNAL(activated(int)), this, TQT_SLOT(slotVerseNumberChanged(int))); + m_verseAddButton = new TQPushButton(i18n("Add Verse"), hbox); + connect(m_verseAddButton, TQT_SIGNAL(clicked()), this, TQT_SLOT(slotAddVerse())); + TQFrame *f = new TQFrame(hbox); hbox->setStretchFactor(f, 10); - m_textEdit = new QTextEdit(groupBox); + m_textEdit = new TQTextEdit(groupBox); m_textEdit->setTextFormat(Qt::PlainText); m_textEdit->setMinimumWidth(300); @@ -91,7 +91,7 @@ void LyricEditDialog::slotVerseNumberChanged(int verse) { NOTATION_DEBUG << "LyricEditDialog::slotVerseNumberChanged(" << verse << ")" << endl; - QString text = m_textEdit->text(); + TQString text = m_textEdit->text(); m_texts[m_currentVerse] = text; m_textEdit->setText(m_texts[verse]); m_currentVerse = verse; @@ -148,7 +148,7 @@ LyricEditDialog::unparse() int lastBarNo = comp->getBarNumber(lastTime); std::map<int, bool> haveLyric; - QString fragment = QString("[%1] ").arg(lastBarNo + 1); + TQString fragment = TQString("[%1] ").arg(lastBarNo + 1); m_skeleton = fragment; m_texts.clear(); @@ -192,7 +192,7 @@ LyricEditDialog::unparse() ++lastBarNo; } - fragment += QString("\n[%1] ").arg(myBarNo + 1); + fragment += TQString("\n[%1] ").arg(myBarNo + 1); m_skeleton += fragment; for (size_t v = 0; v < m_verseCount; ++v) m_texts[v] += fragment; @@ -218,8 +218,8 @@ LyricEditDialog::unparse() long verse = 0; (*i)->get<Int>(Text::LyricVersePropertyName, verse); - QString syllable(strtoqstr(ssyllable)); - syllable.replace(QRegExp("\\s+"), "~"); + TQString syllable(strtoqstr(ssyllable)); + syllable.replace(TQRegExp("\\s+"), "~"); m_texts[verse] += " " + syllable; haveLyric[verse] = true; diff --git a/src/gui/dialogs/LyricEditDialog.h b/src/gui/dialogs/LyricEditDialog.h index f4a5154..6f51e24 100644 --- a/src/gui/dialogs/LyricEditDialog.h +++ b/src/gui/dialogs/LyricEditDialog.h @@ -27,14 +27,14 @@ #define _RG_LYRICEDITDIALOG_H_ #include <kdialogbase.h> -#include <qstring.h> +#include <tqstring.h> #include <vector> -class QWidget; -class QTextEdit; -class QComboBox; -class QPushButton; +class TQWidget; +class TQTextEdit; +class TQComboBox; +class TQPushButton; namespace Rosegarden @@ -48,10 +48,10 @@ class LyricEditDialog : public KDialogBase Q_OBJECT public: - LyricEditDialog(QWidget *parent, Segment *segment); + LyricEditDialog(TQWidget *parent, Segment *segment); int getVerseCount() const; - QString getLyricData(int verse) const; + TQString getLyricData(int verse) const; protected slots: void slotVerseNumberChanged(int); @@ -61,13 +61,13 @@ protected: Segment *m_segment; int m_currentVerse; - QComboBox *m_verseNumber; - QTextEdit *m_textEdit; - QPushButton *m_verseAddButton; + TQComboBox *m_verseNumber; + TQTextEdit *m_textEdit; + TQPushButton *m_verseAddButton; int m_verseCount; - std::vector<QString> m_texts; - QString m_skeleton; + std::vector<TQString> m_texts; + TQString m_skeleton; void countVerses(); void unparse(); diff --git a/src/gui/dialogs/MakeOrnamentDialog.cpp b/src/gui/dialogs/MakeOrnamentDialog.cpp index 7e82a22..3dfbddb 100644 --- a/src/gui/dialogs/MakeOrnamentDialog.cpp +++ b/src/gui/dialogs/MakeOrnamentDialog.cpp @@ -28,31 +28,31 @@ #include <klocale.h> #include "gui/widgets/PitchChooser.h" #include <kdialogbase.h> -#include <qgroupbox.h> -#include <qhbox.h> -#include <qlabel.h> -#include <qlineedit.h> -#include <qstring.h> -#include <qvbox.h> -#include <qwidget.h> +#include <tqgroupbox.h> +#include <tqhbox.h> +#include <tqlabel.h> +#include <tqlineedit.h> +#include <tqstring.h> +#include <tqvbox.h> +#include <tqwidget.h> namespace Rosegarden { -MakeOrnamentDialog::MakeOrnamentDialog(QWidget *parent, QString defaultName, +MakeOrnamentDialog::MakeOrnamentDialog(TQWidget *parent, TQString defaultName, int defaultBasePitch) : KDialogBase(parent, "makeornamentdialog", true, i18n("Make Ornament"), Ok | Cancel, Ok) { - QVBox *vbox = makeVBoxMainWidget(); - QGroupBox *nameBox = new QGroupBox(2, Vertical, i18n("Name"), vbox); + TQVBox *vbox = makeVBoxMainWidget(); + TQGroupBox *nameBox = new TQGroupBox(2, Vertical, i18n("Name"), vbox); - new QLabel(i18n("The name is used to identify both the ornament\nand the triggered segment that stores\nthe ornament's notes."), nameBox); + new TQLabel(i18n("The name is used to identify both the ornament\nand the triggered segment that stores\nthe ornament's notes."), nameBox); - QHBox *hbox = new QHBox(nameBox); - new QLabel(i18n("Name: "), hbox); - m_name = new QLineEdit(defaultName, hbox); + TQHBox *hbox = new TQHBox(nameBox); + new TQLabel(i18n("Name: "), hbox); + m_name = new TQLineEdit(defaultName, hbox); m_pitch = new PitchChooser(i18n("Base pitch"), vbox, defaultBasePitch); } diff --git a/src/gui/dialogs/MakeOrnamentDialog.h b/src/gui/dialogs/MakeOrnamentDialog.h index 3f1957b..0a4a00d 100644 --- a/src/gui/dialogs/MakeOrnamentDialog.h +++ b/src/gui/dialogs/MakeOrnamentDialog.h @@ -27,11 +27,11 @@ #define _RG_MAKEORNAMENTDIALOG_H_ #include <kdialogbase.h> -#include <qstring.h> +#include <tqstring.h> -class QWidget; -class QLineEdit; +class TQWidget; +class TQLineEdit; namespace Rosegarden @@ -45,13 +45,13 @@ class MakeOrnamentDialog : public KDialogBase Q_OBJECT public: - MakeOrnamentDialog(QWidget *parent, QString defaultName, int defaultBasePitch); + MakeOrnamentDialog(TQWidget *parent, TQString defaultName, int defaultBasePitch); - QString getName() const; + TQString getName() const; int getBasePitch() const; protected: - QLineEdit *m_name; + TQLineEdit *m_name; PitchChooser *m_pitch; }; 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 + ")"; diff --git a/src/gui/dialogs/ManageMetronomeDialog.h b/src/gui/dialogs/ManageMetronomeDialog.h index 08b806c..240c0b8 100644 --- a/src/gui/dialogs/ManageMetronomeDialog.h +++ b/src/gui/dialogs/ManageMetronomeDialog.h @@ -30,9 +30,9 @@ #include <kdialogbase.h> -class QWidget; -class QSpinBox; -class QCheckBox; +class TQWidget; +class TQSpinBox; +class TQCheckBox; class KComboBox; @@ -49,7 +49,7 @@ class ManageMetronomeDialog : public KDialogBase Q_OBJECT public: - ManageMetronomeDialog(QWidget *parent, RosegardenGUIDoc *doc); + ManageMetronomeDialog(TQWidget *parent, RosegardenGUIDoc *doc); void setModified(bool value); @@ -75,12 +75,12 @@ protected: KComboBox *m_metronomeResolution; KComboBox *m_metronomePitchSelector; PitchChooser *m_metronomePitch; - QSpinBox *m_metronomeBarVely; - QSpinBox *m_metronomeBeatVely; - QSpinBox *m_metronomeSubBeatVely; + TQSpinBox *m_metronomeBarVely; + TQSpinBox *m_metronomeBeatVely; + TQSpinBox *m_metronomeSubBeatVely; InstrumentParameterBox *m_instrumentParameterBox; - QCheckBox *m_playEnabled; - QCheckBox *m_recordEnabled; + TQCheckBox *m_playEnabled; + TQCheckBox *m_recordEnabled; bool m_modified; MidiByte m_barPitch; diff --git a/src/gui/dialogs/MarkerModifyDialog.cpp b/src/gui/dialogs/MarkerModifyDialog.cpp index 69e658b..9303b67 100644 --- a/src/gui/dialogs/MarkerModifyDialog.cpp +++ b/src/gui/dialogs/MarkerModifyDialog.cpp @@ -24,38 +24,38 @@ #include "MarkerModifyDialog.h" -#include <qlayout.h> +#include <tqlayout.h> #include <klocale.h> #include "base/Composition.h" #include "document/RosegardenGUIDoc.h" #include "gui/widgets/TimeWidget.h" #include <kdialogbase.h> -#include <qframe.h> -#include <qgroupbox.h> -#include <qlabel.h> -#include <qlineedit.h> -#include <qspinbox.h> -#include <qstring.h> -#include <qvbox.h> -#include <qwidget.h> +#include <tqframe.h> +#include <tqgroupbox.h> +#include <tqlabel.h> +#include <tqlineedit.h> +#include <tqspinbox.h> +#include <tqstring.h> +#include <tqvbox.h> +#include <tqwidget.h> #include "misc/Strings.h" namespace Rosegarden { -MarkerModifyDialog::MarkerModifyDialog(QWidget *parent, +MarkerModifyDialog::MarkerModifyDialog(TQWidget *parent, Composition *composition, int time, - const QString &name, - const QString &des): + const TQString &name, + const TQString &des): KDialogBase(parent, 0, true, i18n("Edit Marker"), Ok | Cancel) { initialise(composition, time, name, des); } -MarkerModifyDialog::MarkerModifyDialog(QWidget *parent, +MarkerModifyDialog::MarkerModifyDialog(TQWidget *parent, Composition *composition, Marker *marker) : KDialogBase(parent, 0, true, i18n("Edit Marker"), Ok | Cancel) @@ -68,20 +68,20 @@ MarkerModifyDialog::MarkerModifyDialog(QWidget *parent, void MarkerModifyDialog::initialise(Composition *composition, int time, - const QString &name, - const QString &des) + const TQString &name, + const TQString &des) { m_originalTime = time; - QVBox *vbox = makeVBoxMainWidget(); + TQVBox *vbox = makeVBoxMainWidget(); m_timeEdit = new TimeWidget(i18n("Marker Time"), vbox, composition, time); /*!!! - layout->addWidget(new QLabel(i18n("Absolute Time:"), frame), 0, 0); - m_timeEdit = new QSpinBox(frame); + layout->addWidget(new TQLabel(i18n("Absolute Time:"), frame), 0, 0); + m_timeEdit = new TQSpinBox(frame); layout->addWidget(m_timeEdit, 0, 1); m_timeEdit->setMinValue(INT_MIN); @@ -90,19 +90,19 @@ MarkerModifyDialog::initialise(Composition *composition, Note(Note::Shortest).getDuration()); m_timeEdit->setValue(time); */ - QGroupBox *groupBox = new QGroupBox + TQGroupBox *groupBox = new QGroupBox (1, Horizontal, i18n("Marker Properties"), vbox); - QFrame *frame = new QFrame(groupBox); + TQFrame *frame = new TQFrame(groupBox); - QGridLayout *layout = new QGridLayout(frame, 2, 2, 5, 5); + TQGridLayout *layout = new TQGridLayout(frame, 2, 2, 5, 5); - layout->addWidget(new QLabel(i18n("Text:"), frame), 0, 0); - m_nameEdit = new QLineEdit(name, frame); + layout->addWidget(new TQLabel(i18n("Text:"), frame), 0, 0); + m_nameEdit = new TQLineEdit(name, frame); layout->addWidget(m_nameEdit, 0, 1); - layout->addWidget(new QLabel(i18n("Description:"), frame), 1, 0); - m_desEdit = new QLineEdit(des, frame); + layout->addWidget(new TQLabel(i18n("Description:"), frame), 1, 0); + m_desEdit = new TQLineEdit(des, frame); layout->addWidget(m_desEdit, 1, 1); m_nameEdit->selectAll(); diff --git a/src/gui/dialogs/MarkerModifyDialog.h b/src/gui/dialogs/MarkerModifyDialog.h index 5b87b14..da4894b 100644 --- a/src/gui/dialogs/MarkerModifyDialog.h +++ b/src/gui/dialogs/MarkerModifyDialog.h @@ -27,8 +27,8 @@ #define _RG_MARKERMODIFYDIALOG_H_ #include <kdialogbase.h> -#include <qstring.h> -#include <qlineedit.h> +#include <tqstring.h> +#include <tqlineedit.h> #include "base/Marker.h" #include "gui/widgets/TimeWidget.h" @@ -46,32 +46,32 @@ class MarkerModifyDialog : public KDialogBase { Q_OBJECT public: - MarkerModifyDialog(QWidget *parent, + MarkerModifyDialog(TQWidget *parent, Composition *composition, int time, - const QString &name, - const QString &des); + const TQString &name, + const TQString &des); - MarkerModifyDialog(QWidget *parent, + MarkerModifyDialog(TQWidget *parent, Composition *composition, Marker *marker); - QString getName() const { return m_nameEdit->text(); } - QString getDescription() const { return m_desEdit->text(); } + TQString getName() const { return m_nameEdit->text(); } + TQString getDescription() const { return m_desEdit->text(); } int getTime() const { return m_timeEdit->getTime(); } int getOriginalTime() const { return m_originalTime; } protected: void initialise(Composition *composition, int time, - const QString &name, - const QString &des); + const TQString &name, + const TQString &des); RosegardenGUIDoc *m_doc; TimeWidget *m_timeEdit; - QLineEdit *m_nameEdit; - QLineEdit *m_desEdit; + TQLineEdit *m_nameEdit; + TQLineEdit *m_desEdit; int m_originalTime; }; diff --git a/src/gui/dialogs/PasteNotationDialog.cpp b/src/gui/dialogs/PasteNotationDialog.cpp index 0c725d5..cea3b87 100644 --- a/src/gui/dialogs/PasteNotationDialog.cpp +++ b/src/gui/dialogs/PasteNotationDialog.cpp @@ -28,27 +28,27 @@ #include <klocale.h> #include "commands/edit/PasteEventsCommand.h" #include <kdialogbase.h> -#include <qbuttongroup.h> -#include <qcheckbox.h> -#include <qobject.h> -#include <qradiobutton.h> -#include <qvbox.h> -#include <qwidget.h> +#include <tqbuttongroup.h> +#include <tqcheckbox.h> +#include <tqobject.h> +#include <tqradiobutton.h> +#include <tqvbox.h> +#include <tqwidget.h> namespace Rosegarden { -PasteNotationDialog::PasteNotationDialog(QWidget *parent, +PasteNotationDialog::PasteNotationDialog(TQWidget *parent, PasteEventsCommand::PasteType defaultType) : KDialogBase(parent, 0, true, i18n("Paste"), Ok | Cancel | Help ), m_defaultType(defaultType) { setHelp("nv-paste-types"); - QVBox *vbox = makeVBoxMainWidget(); + TQVBox *vbox = makeVBoxMainWidget(); - QButtonGroup *pasteTypeGroup = new QButtonGroup + TQButtonGroup *pasteTypeGroup = new QButtonGroup (1, Horizontal, i18n("Paste type"), vbox); PasteEventsCommand::PasteTypeMap pasteTypes = @@ -57,15 +57,15 @@ PasteNotationDialog::PasteNotationDialog(QWidget *parent, for (PasteEventsCommand::PasteTypeMap::iterator i = pasteTypes.begin(); i != pasteTypes.end(); ++i) { - QRadioButton *button = new QRadioButton(i->second, pasteTypeGroup); + TQRadioButton *button = new TQRadioButton(i->second, pasteTypeGroup); button->setChecked(m_defaultType == i->first); - QObject::connect(button, SIGNAL(clicked()), - this, SLOT(slotPasteTypeChanged())); + TQObject::connect(button, TQT_SIGNAL(clicked()), + this, TQT_SLOT(slotPasteTypeChanged())); m_pasteTypeButtons.push_back(button); } - QButtonGroup *setAsDefaultGroup = new QButtonGroup + TQButtonGroup *setAsDefaultGroup = new QButtonGroup (1, Horizontal, i18n("Options"), vbox); m_setAsDefaultButton = new QCheckBox diff --git a/src/gui/dialogs/PasteNotationDialog.h b/src/gui/dialogs/PasteNotationDialog.h index 213eaf8..bff6d7e 100644 --- a/src/gui/dialogs/PasteNotationDialog.h +++ b/src/gui/dialogs/PasteNotationDialog.h @@ -31,9 +31,9 @@ #include <vector> -class QWidget; -class QRadioButton; -class QCheckBox; +class TQWidget; +class TQRadioButton; +class TQCheckBox; namespace Rosegarden @@ -46,7 +46,7 @@ class PasteNotationDialog : public KDialogBase Q_OBJECT public: - PasteNotationDialog(QWidget *parent, + PasteNotationDialog(TQWidget *parent, PasteEventsCommand::PasteType defaultType); PasteEventsCommand::PasteType getPasteType() const; @@ -59,8 +59,8 @@ protected: //--------------- Data members --------------------------------- - std::vector<QRadioButton *> m_pasteTypeButtons; - QCheckBox *m_setAsDefaultButton; + std::vector<TQRadioButton *> m_pasteTypeButtons; + TQCheckBox *m_setAsDefaultButton; PasteEventsCommand::PasteType m_defaultType; }; diff --git a/src/gui/dialogs/PitchDialog.cpp b/src/gui/dialogs/PitchDialog.cpp index 05fed08..c484142 100644 --- a/src/gui/dialogs/PitchDialog.cpp +++ b/src/gui/dialogs/PitchDialog.cpp @@ -28,23 +28,23 @@ #include <klocale.h> #include "gui/widgets/PitchChooser.h" #include <kdialogbase.h> -#include <qstring.h> -#include <qvbox.h> -#include <qwidget.h> +#include <tqstring.h> +#include <tqvbox.h> +#include <tqwidget.h> namespace Rosegarden { -PitchDialog::PitchDialog(QWidget *parent, QString title, int defaultPitch) : +PitchDialog::PitchDialog(TQWidget *parent, TQString title, int defaultPitch) : KDialogBase(parent, 0, true, title, User1 | Ok) { - QVBox *vbox = makeVBoxMainWidget(); + TQVBox *vbox = makeVBoxMainWidget(); m_pitchChooser = new PitchChooser(title, vbox, defaultPitch); setButtonText(User1, i18n("Reset")); - connect(this, SIGNAL(user1Clicked()), - m_pitchChooser, SLOT(slotResetToDefault())); + connect(this, TQT_SIGNAL(user1Clicked()), + m_pitchChooser, TQT_SLOT(slotResetToDefault())); } int diff --git a/src/gui/dialogs/PitchDialog.h b/src/gui/dialogs/PitchDialog.h index 72e6381..8a4cce7 100644 --- a/src/gui/dialogs/PitchDialog.h +++ b/src/gui/dialogs/PitchDialog.h @@ -27,10 +27,10 @@ #define _RG_PITCHDIALOG_H_ #include <kdialogbase.h> -#include <qstring.h> +#include <tqstring.h> -class QWidget; +class TQWidget; namespace Rosegarden @@ -43,7 +43,7 @@ class PitchDialog : public KDialogBase { Q_OBJECT public: - PitchDialog(QWidget *parent, QString title, int defaultPitch = 60); + PitchDialog(TQWidget *parent, TQString title, int defaultPitch = 60); int getPitch() const; diff --git a/src/gui/dialogs/PitchPickerDialog.cpp b/src/gui/dialogs/PitchPickerDialog.cpp index ddd1f23..dddc2a3 100644 --- a/src/gui/dialogs/PitchPickerDialog.cpp +++ b/src/gui/dialogs/PitchPickerDialog.cpp @@ -26,24 +26,24 @@ #include "PitchPickerDialog.h" #include <klocale.h> #include <kdialogbase.h> -#include <qlayout.h> -#include <qframe.h> -#include <qstring.h> -#include <qvbox.h> -#include <qwidget.h> +#include <tqlayout.h> +#include <tqframe.h> +#include <tqstring.h> +#include <tqvbox.h> +#include <tqwidget.h> namespace Rosegarden { -PitchPickerDialog::PitchPickerDialog(QWidget *parent, int initialPitch, QString text) : +PitchPickerDialog::PitchPickerDialog(TQWidget *parent, int initialPitch, TQString text) : KDialogBase(parent, 0, true, i18n("Pitch Selector"), Ok | Cancel) { - QVBox *vBox = makeVBoxMainWidget(); + TQVBox *vBox = makeVBoxMainWidget(); - QFrame *frame = new QFrame(vBox); + TQFrame *frame = new TQFrame(vBox); - QGridLayout *layout = new QGridLayout(frame, 4, 3, 10, 5); + TQGridLayout *layout = new TQGridLayout(frame, 4, 3, 10, 5); m_pitch = new PitchChooser(text, frame, initialPitch); layout->addMultiCellWidget(m_pitch, 0, 0, 0, 2, Qt::AlignHCenter); diff --git a/src/gui/dialogs/PitchPickerDialog.h b/src/gui/dialogs/PitchPickerDialog.h index ebd0a6d..25fc28f 100644 --- a/src/gui/dialogs/PitchPickerDialog.h +++ b/src/gui/dialogs/PitchPickerDialog.h @@ -30,7 +30,7 @@ #include <kdialogbase.h> -class QWidget; +class TQWidget; namespace Rosegarden @@ -42,7 +42,7 @@ class PitchPickerDialog : public KDialogBase public: - PitchPickerDialog(QWidget* parent, int initialPitch, QString text); + PitchPickerDialog(TQWidget* parent, int initialPitch, TQString text); ~PitchPickerDialog(); int getPitch() { return m_pitch->getPitch(); } diff --git a/src/gui/dialogs/QuantizeDialog.cpp b/src/gui/dialogs/QuantizeDialog.cpp index b934dd5..87d7f79 100644 --- a/src/gui/dialogs/QuantizeDialog.cpp +++ b/src/gui/dialogs/QuantizeDialog.cpp @@ -29,19 +29,19 @@ #include "base/Quantizer.h" #include "gui/widgets/QuantizeParameters.h" #include <kdialogbase.h> -#include <qvbox.h> -#include <qwidget.h> +#include <tqvbox.h> +#include <tqwidget.h> namespace Rosegarden { -QuantizeDialog::QuantizeDialog(QWidget *parent, bool inNotation) : +QuantizeDialog::QuantizeDialog(TQWidget *parent, bool inNotation) : KDialogBase(parent, 0, true, i18n("Quantize"), Ok | Cancel | Details | Help) { setHelp("quantization"); - QVBox *vbox = makeVBoxMainWidget(); + TQVBox *vbox = makeVBoxMainWidget(); m_quantizeFrame = new QuantizeParameters diff --git a/src/gui/dialogs/QuantizeDialog.h b/src/gui/dialogs/QuantizeDialog.h index a787dd1..fa6f07e 100644 --- a/src/gui/dialogs/QuantizeDialog.h +++ b/src/gui/dialogs/QuantizeDialog.h @@ -29,7 +29,7 @@ #include <kdialogbase.h> -class QWidget; +class TQWidget; namespace Rosegarden @@ -44,7 +44,7 @@ class QuantizeDialog : public KDialogBase Q_OBJECT public: - QuantizeDialog(QWidget *parent, bool inNotation = false); + QuantizeDialog(TQWidget *parent, bool inNotation = false); /// Returned quantizer object is on heap -- caller must delete Quantizer *getQuantizer() const; diff --git a/src/gui/dialogs/RescaleDialog.cpp b/src/gui/dialogs/RescaleDialog.cpp index d99a6fb..f47cafb 100644 --- a/src/gui/dialogs/RescaleDialog.cpp +++ b/src/gui/dialogs/RescaleDialog.cpp @@ -31,18 +31,18 @@ #include "gui/widgets/TimeWidget.h" #include <kconfig.h> #include <kdialogbase.h> -#include <qcheckbox.h> -#include <qgroupbox.h> -#include <qstring.h> -#include <qvbox.h> -#include <qwidget.h> +#include <tqcheckbox.h> +#include <tqgroupbox.h> +#include <tqstring.h> +#include <tqvbox.h> +#include <tqwidget.h> #include <kapplication.h> namespace Rosegarden { -RescaleDialog::RescaleDialog(QWidget *parent, +RescaleDialog::RescaleDialog(TQWidget *parent, Composition *composition, timeT startTime, timeT originalDuration, @@ -50,7 +50,7 @@ RescaleDialog::RescaleDialog(QWidget *parent, bool constrainToCompositionDuration) : KDialogBase(parent, 0, true, i18n("Rescale"), User1 | Ok | Cancel) { - QVBox *vbox = makeVBoxMainWidget(); + TQVBox *vbox = makeVBoxMainWidget(); m_newDuration = new TimeWidget (i18n("Duration of selection"), vbox, composition, @@ -58,8 +58,8 @@ RescaleDialog::RescaleDialog(QWidget *parent, constrainToCompositionDuration); if (showCloseGapOption) { - QGroupBox *optionBox = new QGroupBox(1, Horizontal, i18n("Options"), vbox); - m_closeGap = new QCheckBox(i18n("Adjust times of following events accordingly"), + TQGroupBox *optionBox = new TQGroupBox(1, Horizontal, i18n("Options"), vbox); + m_closeGap = new TQCheckBox(i18n("Adjust times of following events accordingly"), optionBox); KConfig *config = kapp->config(); config->setGroup(GeneralOptionsConfigGroup); @@ -70,8 +70,8 @@ RescaleDialog::RescaleDialog(QWidget *parent, } setButtonText(User1, i18n("Reset")); - connect(this, SIGNAL(user1Clicked()), - m_newDuration, SLOT(slotResetToDefault())); + connect(this, TQT_SIGNAL(user1Clicked()), + m_newDuration, TQT_SLOT(slotResetToDefault())); } timeT @@ -111,7 +111,7 @@ RescaleDialog::slotFromChanged(int i) { m_from = i + 1; int perTenThou = m_to * 10000 / m_from; - m_percent->setText(QString("%1.%2%"). + m_percent->setText(TQString("%1.%2%"). arg(perTenThou / 100). arg(perTenThou % 100)); } @@ -121,7 +121,7 @@ RescaleDialog::slotToChanged(int i) { m_to = i + 1; int perTenThou = m_to * 10000 / m_from; - m_percent->setText(QString("%1.%2%"). + m_percent->setText(TQString("%1.%2%"). arg(perTenThou / 100). arg(perTenThou % 100)); } diff --git a/src/gui/dialogs/RescaleDialog.h b/src/gui/dialogs/RescaleDialog.h index 196dd87..dedf1a1 100644 --- a/src/gui/dialogs/RescaleDialog.h +++ b/src/gui/dialogs/RescaleDialog.h @@ -30,8 +30,8 @@ #include "base/Event.h" -class QWidget; -class QCheckBox; +class TQWidget; +class TQCheckBox; namespace Rosegarden @@ -46,7 +46,7 @@ class RescaleDialog : public KDialogBase Q_OBJECT public: - RescaleDialog(QWidget *parent, + RescaleDialog(TQWidget *parent, Composition *composition, // for TimeWidget calculations timeT startTime, timeT originalDuration, @@ -58,7 +58,7 @@ public: protected: TimeWidget *m_newDuration; - QCheckBox *m_closeGap; + TQCheckBox *m_closeGap; }; diff --git a/src/gui/dialogs/ShowSequencerStatusDialog.cpp b/src/gui/dialogs/ShowSequencerStatusDialog.cpp index d98933c..240adfe 100644 --- a/src/gui/dialogs/ShowSequencerStatusDialog.cpp +++ b/src/gui/dialogs/ShowSequencerStatusDialog.cpp @@ -27,38 +27,38 @@ #include <klocale.h> #include <kdialogbase.h> -#include <qcstring.h> -#include <qdatastream.h> -#include <qlabel.h> -#include <qstring.h> -#include <qtextedit.h> -#include <qvbox.h> -#include <qwidget.h> +#include <tqcstring.h> +#include <tqdatastream.h> +#include <tqlabel.h> +#include <tqstring.h> +#include <tqtextedit.h> +#include <tqvbox.h> +#include <tqwidget.h> #include "gui/application/RosegardenApplication.h" namespace Rosegarden { -ShowSequencerStatusDialog::ShowSequencerStatusDialog(QWidget *parent) : +ShowSequencerStatusDialog::ShowSequencerStatusDialog(TQWidget *parent) : KDialogBase(parent, 0, true, i18n("Sequencer status"), Close) { - QVBox *vbox = makeVBoxMainWidget(); + TQVBox *vbox = makeVBoxMainWidget(); - new QLabel(i18n("Sequencer status:"), vbox); + new TQLabel(i18n("Sequencer status:"), vbox); - QString status(i18n("Status not available.")); + TQString status(i18n("Status not available.")); - QCString replyType; - QByteArray replyData; - QByteArray data; + TQCString replyType; + TQByteArray replyData; + TQByteArray data; if (!rgapp->sequencerCall("getStatusLog()", replyType, replyData)) { status = i18n("Sequencer is not running or is not responding."); } - QDataStream streamIn(replyData, IO_ReadOnly); - QString result; + TQDataStream streamIn(replyData, IO_ReadOnly); + TQString result; streamIn >> result; if (!result) { status = i18n("Sequencer is not returning a valid status report."); @@ -66,7 +66,7 @@ ShowSequencerStatusDialog::ShowSequencerStatusDialog(QWidget *parent) : status = result; } - QTextEdit *text = new QTextEdit(vbox); + TQTextEdit *text = new TQTextEdit(vbox); text->setTextFormat(Qt::PlainText); text->setReadOnly(true); text->setMinimumWidth(500); diff --git a/src/gui/dialogs/ShowSequencerStatusDialog.h b/src/gui/dialogs/ShowSequencerStatusDialog.h index ce21ab1..9b7ad41 100644 --- a/src/gui/dialogs/ShowSequencerStatusDialog.h +++ b/src/gui/dialogs/ShowSequencerStatusDialog.h @@ -29,7 +29,7 @@ #include <kdialogbase.h> -class QWidget; +class TQWidget; namespace Rosegarden @@ -41,7 +41,7 @@ class ShowSequencerStatusDialog : public KDialogBase { Q_OBJECT public: - ShowSequencerStatusDialog(QWidget *parent); + ShowSequencerStatusDialog(TQWidget *parent); }; diff --git a/src/gui/dialogs/SimpleEventEditDialog.cpp b/src/gui/dialogs/SimpleEventEditDialog.cpp index ca6b76a..152748a 100644 --- a/src/gui/dialogs/SimpleEventEditDialog.cpp +++ b/src/gui/dialogs/SimpleEventEditDialog.cpp @@ -24,7 +24,7 @@ #include "SimpleEventEditDialog.h" -#include <qlayout.h> +#include <tqlayout.h> #include "base/BaseProperties.h" #include "base/Event.h" @@ -39,24 +39,24 @@ #include <kdialogbase.h> #include <kfiledialog.h> #include <klocale.h> -#include <qcheckbox.h> -#include <qdialog.h> -#include <qfile.h> -#include <qframe.h> -#include <qgroupbox.h> -#include <qlabel.h> -#include <qlineedit.h> -#include <qpushbutton.h> -#include <qspinbox.h> -#include <qstring.h> -#include <qvbox.h> -#include <qwidget.h> +#include <tqcheckbox.h> +#include <tqdialog.h> +#include <tqfile.h> +#include <tqframe.h> +#include <tqgroupbox.h> +#include <tqlabel.h> +#include <tqlineedit.h> +#include <tqpushbutton.h> +#include <tqspinbox.h> +#include <tqstring.h> +#include <tqvbox.h> +#include <tqwidget.h> namespace Rosegarden { -SimpleEventEditDialog::SimpleEventEditDialog(QWidget *parent, +SimpleEventEditDialog::SimpleEventEditDialog(TQWidget *parent, RosegardenGUIDoc *doc, const Event &event, bool inserting) : @@ -69,16 +69,16 @@ SimpleEventEditDialog::SimpleEventEditDialog(QWidget *parent, m_duration(event.getDuration()), m_modified(false) { - QVBox *vbox = makeVBoxMainWidget(); + TQVBox *vbox = makeVBoxMainWidget(); - QGroupBox *groupBox = new QGroupBox + TQGroupBox *groupBox = new QGroupBox (1, Horizontal, i18n("Event Properties"), vbox); - QFrame *frame = new QFrame(groupBox); + TQFrame *frame = new TQFrame(groupBox); - QGridLayout *layout = new QGridLayout(frame, 7, 3, 5, 5); + TQGridLayout *layout = new TQGridLayout(frame, 7, 3, 5, 5); - layout->addWidget(new QLabel(i18n("Event type:"), frame), 0, 0); + layout->addWidget(new TQLabel(i18n("Event type:"), frame), 0, 0); if (inserting) { @@ -103,128 +103,128 @@ SimpleEventEditDialog::SimpleEventEditDialog(QWidget *parent, // Connect up the combos // - connect(m_typeCombo, SIGNAL(activated(int)), - SLOT(slotEventTypeChanged(int))); + connect(m_typeCombo, TQT_SIGNAL(activated(int)), + TQT_SLOT(slotEventTypeChanged(int))); } else { m_typeCombo = 0; - m_typeLabel = new QLabel(frame); + m_typeLabel = new TQLabel(frame); layout->addWidget(m_typeLabel, 0, 1); } - m_timeLabel = new QLabel(i18n("Absolute time:"), frame); + m_timeLabel = new TQLabel(i18n("Absolute time:"), frame); layout->addWidget(m_timeLabel, 1, 0); - m_timeSpinBox = new QSpinBox(INT_MIN, INT_MAX, Note(Note::Shortest).getDuration(), frame); - m_timeEditButton = new QPushButton("edit", frame); + m_timeSpinBox = new TQSpinBox(INT_MIN, INT_MAX, Note(Note::Shortest).getDuration(), frame); + m_timeEditButton = new TQPushButton("edit", frame); layout->addWidget(m_timeSpinBox, 1, 1); layout->addWidget(m_timeEditButton, 1, 2); - connect(m_timeSpinBox, SIGNAL(valueChanged(int)), - SLOT(slotAbsoluteTimeChanged(int))); - connect(m_timeEditButton, SIGNAL(released()), - SLOT(slotEditAbsoluteTime())); + connect(m_timeSpinBox, TQT_SIGNAL(valueChanged(int)), + TQT_SLOT(slotAbsoluteTimeChanged(int))); + connect(m_timeEditButton, TQT_SIGNAL(released()), + TQT_SLOT(slotEditAbsoluteTime())); - m_durationLabel = new QLabel(i18n("Duration:"), frame); + m_durationLabel = new TQLabel(i18n("Duration:"), frame); layout->addWidget(m_durationLabel, 2, 0); - m_durationSpinBox = new QSpinBox(0, INT_MAX, Note(Note::Shortest).getDuration(), frame); - m_durationEditButton = new QPushButton("edit", frame); + m_durationSpinBox = new TQSpinBox(0, INT_MAX, Note(Note::Shortest).getDuration(), frame); + m_durationEditButton = new TQPushButton("edit", frame); layout->addWidget(m_durationSpinBox, 2, 1); layout->addWidget(m_durationEditButton, 2, 2); - connect(m_durationSpinBox, SIGNAL(valueChanged(int)), - SLOT(slotDurationChanged(int))); - connect(m_durationEditButton, SIGNAL(released()), - SLOT(slotEditDuration())); + connect(m_durationSpinBox, TQT_SIGNAL(valueChanged(int)), + TQT_SLOT(slotDurationChanged(int))); + connect(m_durationEditButton, TQT_SIGNAL(released()), + TQT_SLOT(slotEditDuration())); - m_pitchLabel = new QLabel(i18n("Pitch:"), frame); + m_pitchLabel = new TQLabel(i18n("Pitch:"), frame); layout->addWidget(m_pitchLabel, 3, 0); - m_pitchSpinBox = new QSpinBox(frame); - m_pitchEditButton = new QPushButton("edit", frame); + m_pitchSpinBox = new TQSpinBox(frame); + m_pitchEditButton = new TQPushButton("edit", frame); layout->addWidget(m_pitchSpinBox, 3, 1); layout->addWidget(m_pitchEditButton, 3, 2); - connect(m_pitchSpinBox, SIGNAL(valueChanged(int)), - SLOT(slotPitchChanged(int))); - connect(m_pitchEditButton, SIGNAL(released()), - SLOT(slotEditPitch())); + connect(m_pitchSpinBox, TQT_SIGNAL(valueChanged(int)), + TQT_SLOT(slotPitchChanged(int))); + connect(m_pitchEditButton, TQT_SIGNAL(released()), + TQT_SLOT(slotEditPitch())); m_pitchSpinBox->setMinValue(MidiMinValue); m_pitchSpinBox->setMaxValue(MidiMaxValue); - m_controllerLabel = new QLabel(i18n("Controller name:"), frame); - m_controllerLabelValue = new QLabel(i18n("<none>"), frame); - m_controllerLabelValue->setAlignment(QLabel::AlignRight); + m_controllerLabel = new TQLabel(i18n("Controller name:"), frame); + m_controllerLabelValue = new TQLabel(i18n("<none>"), frame); + m_controllerLabelValue->setAlignment(TQLabel::AlignRight); layout->addWidget(m_controllerLabel, 4, 0); layout->addWidget(m_controllerLabelValue, 4, 1); - m_velocityLabel = new QLabel(i18n("Velocity:"), frame); + m_velocityLabel = new TQLabel(i18n("Velocity:"), frame); layout->addWidget(m_velocityLabel, 5, 0); - m_velocitySpinBox = new QSpinBox(frame); + m_velocitySpinBox = new TQSpinBox(frame); layout->addWidget(m_velocitySpinBox, 5, 1); - connect(m_velocitySpinBox, SIGNAL(valueChanged(int)), - SLOT(slotVelocityChanged(int))); + connect(m_velocitySpinBox, TQT_SIGNAL(valueChanged(int)), + TQT_SLOT(slotVelocityChanged(int))); m_velocitySpinBox->setMinValue(MidiMinValue); m_velocitySpinBox->setMaxValue(MidiMaxValue); - m_metaLabel = new QLabel(i18n("Meta string:"), frame); + m_metaLabel = new TQLabel(i18n("Meta string:"), frame); layout->addWidget(m_metaLabel, 6, 0); - m_metaEdit = new QLineEdit(frame); + m_metaEdit = new TQLineEdit(frame); layout->addWidget(m_metaEdit, 6, 1); - m_sysexLoadButton = new QPushButton(i18n("Load data"), frame); + m_sysexLoadButton = new TQPushButton(i18n("Load data"), frame); layout->addWidget(m_sysexLoadButton, 6, 2); - m_sysexSaveButton = new QPushButton(i18n("Save data"), frame); + m_sysexSaveButton = new TQPushButton(i18n("Save data"), frame); layout->addWidget(m_sysexSaveButton, 4, 2); - connect(m_metaEdit, SIGNAL(textChanged(const QString &)), - SLOT(slotMetaChanged(const QString &))); - connect(m_sysexLoadButton, SIGNAL(released()), - SLOT(slotSysexLoad())); - connect(m_sysexSaveButton, SIGNAL(released()), - SLOT(slotSysexSave())); + connect(m_metaEdit, TQT_SIGNAL(textChanged(const TQString &)), + TQT_SLOT(slotMetaChanged(const TQString &))); + connect(m_sysexLoadButton, TQT_SIGNAL(released()), + TQT_SLOT(slotSysexLoad())); + connect(m_sysexSaveButton, TQT_SIGNAL(released()), + TQT_SLOT(slotSysexSave())); m_notationGroupBox = new QGroupBox (1, Horizontal, i18n("Notation Properties"), vbox); - frame = new QFrame(m_notationGroupBox); + frame = new TQFrame(m_notationGroupBox); - layout = new QGridLayout(frame, 3, 3, 5, 5); + layout = new TQGridLayout(frame, 3, 3, 5, 5); - m_lockNotationValues = new QCheckBox(i18n("Lock to changes in performed values"), frame); + m_lockNotationValues = new TQCheckBox(i18n("Lock to changes in performed values"), frame); layout->addMultiCellWidget(m_lockNotationValues, 0, 0, 0, 2); m_lockNotationValues->setChecked(true); - connect(m_lockNotationValues, SIGNAL(released()), - SLOT(slotLockNotationChanged())); + connect(m_lockNotationValues, TQT_SIGNAL(released()), + TQT_SLOT(slotLockNotationChanged())); - m_notationTimeLabel = new QLabel(i18n("Notation time:"), frame); + m_notationTimeLabel = new TQLabel(i18n("Notation time:"), frame); layout->addWidget(m_notationTimeLabel, 1, 0); - m_notationTimeSpinBox = new QSpinBox(INT_MIN, INT_MAX, Note(Note::Shortest).getDuration(), frame); - m_notationTimeEditButton = new QPushButton("edit", frame); + m_notationTimeSpinBox = new TQSpinBox(INT_MIN, INT_MAX, Note(Note::Shortest).getDuration(), frame); + m_notationTimeEditButton = new TQPushButton("edit", frame); layout->addWidget(m_notationTimeSpinBox, 1, 1); layout->addWidget(m_notationTimeEditButton, 1, 2); - connect(m_notationTimeSpinBox, SIGNAL(valueChanged(int)), - SLOT(slotNotationAbsoluteTimeChanged(int))); - connect(m_notationTimeEditButton, SIGNAL(released()), - SLOT(slotEditNotationAbsoluteTime())); + connect(m_notationTimeSpinBox, TQT_SIGNAL(valueChanged(int)), + TQT_SLOT(slotNotationAbsoluteTimeChanged(int))); + connect(m_notationTimeEditButton, TQT_SIGNAL(released()), + TQT_SLOT(slotEditNotationAbsoluteTime())); - m_notationDurationLabel = new QLabel(i18n("Notation duration:"), frame); + m_notationDurationLabel = new TQLabel(i18n("Notation duration:"), frame); layout->addWidget(m_notationDurationLabel, 2, 0); - m_notationDurationSpinBox = new QSpinBox(0, INT_MAX, Note(Note::Shortest).getDuration(), frame); - m_notationDurationEditButton = new QPushButton("edit", frame); + m_notationDurationSpinBox = new TQSpinBox(0, INT_MAX, Note(Note::Shortest).getDuration(), frame); + m_notationDurationEditButton = new TQPushButton("edit", frame); layout->addWidget(m_notationDurationSpinBox, 2, 1); layout->addWidget(m_notationDurationEditButton, 2, 2); - connect(m_notationDurationSpinBox, SIGNAL(valueChanged(int)), - SLOT(slotNotationDurationChanged(int))); - connect(m_notationDurationEditButton, SIGNAL(released()), - SLOT(slotEditNotationDuration())); + connect(m_notationDurationSpinBox, TQT_SIGNAL(valueChanged(int)), + TQT_SLOT(slotNotationDurationChanged(int))); + connect(m_notationDurationEditButton, TQT_SIGNAL(released()), + TQT_SLOT(slotEditNotationDuration())); setupForEvent(); } @@ -478,7 +478,7 @@ SimpleEventEditDialog::setupForEvent() m_metaLabel->setText(i18n("Data:")); try { SystemExclusive sysEx(m_event); - m_controllerLabelValue->setText(QString("%1"). + m_controllerLabelValue->setText(TQString("%1"). arg(sysEx.getRawData().length())); m_metaEdit->setText(strtoqstr(sysEx.getHexData())); } catch (...) { @@ -942,7 +942,7 @@ SimpleEventEditDialog::slotVelocityChanged(int value) } void -SimpleEventEditDialog::slotMetaChanged(const QString &) +SimpleEventEditDialog::slotMetaChanged(const TQString &) { m_modified = true; } @@ -964,7 +964,7 @@ SimpleEventEditDialog::slotEditAbsoluteTime() &m_doc->getComposition(), m_timeSpinBox->value(), true); - if (dialog.exec() == QDialog::Accepted) { + if (dialog.exec() == TQDialog::Accepted) { m_timeSpinBox->setValue(dialog.getTime()); } } @@ -976,7 +976,7 @@ SimpleEventEditDialog::slotEditNotationAbsoluteTime() &m_doc->getComposition(), m_notationTimeSpinBox->value(), true); - if (dialog.exec() == QDialog::Accepted) { + if (dialog.exec() == TQDialog::Accepted) { m_notationTimeSpinBox->setValue(dialog.getTime()); } } @@ -989,7 +989,7 @@ SimpleEventEditDialog::slotEditDuration() m_timeSpinBox->value(), m_durationSpinBox->value(), true); - if (dialog.exec() == QDialog::Accepted) { + if (dialog.exec() == TQDialog::Accepted) { m_durationSpinBox->setValue(dialog.getTime()); } } @@ -1002,7 +1002,7 @@ SimpleEventEditDialog::slotEditNotationDuration() m_notationTimeSpinBox->value(), m_notationDurationSpinBox->value(), true); - if (dialog.exec() == QDialog::Accepted) { + if (dialog.exec() == TQDialog::Accepted) { m_notationDurationSpinBox->setValue(dialog.getTime()); } } @@ -1011,7 +1011,7 @@ void SimpleEventEditDialog::slotEditPitch() { PitchDialog dialog(this, i18n("Edit Pitch"), m_pitchSpinBox->value()); - if (dialog.exec() == QDialog::Accepted) { + if (dialog.exec() == TQDialog::Accepted) { m_pitchSpinBox->setValue(dialog.getPitch()); } } @@ -1019,13 +1019,13 @@ SimpleEventEditDialog::slotEditPitch() void SimpleEventEditDialog::slotSysexLoad() { - QString path = KFileDialog::getOpenFileName(":SYSTEMEXCLUSIVE", + TQString path = KFileDialog::getOpenFileName(":SYSTEMEXCLUSIVE", i18n("*.syx|System exclusive files (*.syx)"), this, i18n("Load System Exclusive data in File")); if (path.isNull()) return ; - QFile file(path); + TQFile file(path); file.open(IO_ReadOnly); std::string s; unsigned char c; @@ -1044,13 +1044,13 @@ SimpleEventEditDialog::slotSysexLoad() void SimpleEventEditDialog::slotSysexSave() { - QString path = KFileDialog::getSaveFileName(":SYSTEMEXCLUSIVE", + TQString path = KFileDialog::getSaveFileName(":SYSTEMEXCLUSIVE", i18n("*.syx|System exclusive files (*.syx)"), this, i18n("Save System Exclusive data to...")); if (path.isNull()) return ; - QFile file(path); + TQFile file(path); file.open(IO_WriteOnly); SystemExclusive sysEx(m_event); file.writeBlock(sysEx.getRawData().c_str(), sysEx.getRawData().length()); diff --git a/src/gui/dialogs/SimpleEventEditDialog.h b/src/gui/dialogs/SimpleEventEditDialog.h index 60b8441..dcb1c60 100644 --- a/src/gui/dialogs/SimpleEventEditDialog.h +++ b/src/gui/dialogs/SimpleEventEditDialog.h @@ -31,14 +31,14 @@ #include <kdialogbase.h> -class QWidget; -class QString; -class QSpinBox; -class QPushButton; -class QLineEdit; -class QLabel; -class QGroupBox; -class QCheckBox; +class TQWidget; +class TQString; +class TQSpinBox; +class TQPushButton; +class TQLineEdit; +class TQLabel; +class TQGroupBox; +class TQCheckBox; class KComboBox; @@ -52,7 +52,7 @@ class SimpleEventEditDialog : public KDialogBase { Q_OBJECT public: - SimpleEventEditDialog(QWidget *parent, + SimpleEventEditDialog(TQWidget *parent, RosegardenGUIDoc *doc, const Event &event, bool inserting = false); // inserting or editing @@ -71,7 +71,7 @@ public slots: void slotNotationDurationChanged(int value); void slotPitchChanged(int value); void slotVelocityChanged(int value); - void slotMetaChanged(const QString &); + void slotMetaChanged(const TQString &); void slotEditAbsoluteTime(); void slotEditNotationAbsoluteTime(); void slotEditDuration(); @@ -92,37 +92,37 @@ protected: timeT m_notationDuration; KComboBox *m_typeCombo; - QLabel *m_typeLabel; - - QLabel *m_timeLabel; - QLabel *m_durationLabel; - QLabel *m_pitchLabel; - QLabel *m_velocityLabel; - QLabel *m_metaLabel; - QLabel *m_controllerLabel; - QLabel *m_controllerLabelValue; - - QSpinBox *m_timeSpinBox; - QSpinBox *m_durationSpinBox; - QSpinBox *m_pitchSpinBox; - QSpinBox *m_velocitySpinBox; - - QPushButton *m_timeEditButton; - QPushButton *m_durationEditButton; - QPushButton *m_pitchEditButton; - QPushButton *m_sysexLoadButton; - QPushButton *m_sysexSaveButton; - - QGroupBox *m_notationGroupBox; - QLabel *m_notationTimeLabel; - QLabel *m_notationDurationLabel; - QSpinBox *m_notationTimeSpinBox; - QSpinBox *m_notationDurationSpinBox; - QPushButton *m_notationTimeEditButton; - QPushButton *m_notationDurationEditButton; - QCheckBox *m_lockNotationValues; - - QLineEdit *m_metaEdit; + TQLabel *m_typeLabel; + + TQLabel *m_timeLabel; + TQLabel *m_durationLabel; + TQLabel *m_pitchLabel; + TQLabel *m_velocityLabel; + TQLabel *m_metaLabel; + TQLabel *m_controllerLabel; + TQLabel *m_controllerLabelValue; + + TQSpinBox *m_timeSpinBox; + TQSpinBox *m_durationSpinBox; + TQSpinBox *m_pitchSpinBox; + TQSpinBox *m_velocitySpinBox; + + TQPushButton *m_timeEditButton; + TQPushButton *m_durationEditButton; + TQPushButton *m_pitchEditButton; + TQPushButton *m_sysexLoadButton; + TQPushButton *m_sysexSaveButton; + + TQGroupBox *m_notationGroupBox; + TQLabel *m_notationTimeLabel; + TQLabel *m_notationDurationLabel; + TQSpinBox *m_notationTimeSpinBox; + TQSpinBox *m_notationDurationSpinBox; + TQPushButton *m_notationTimeEditButton; + TQPushButton *m_notationDurationEditButton; + TQCheckBox *m_lockNotationValues; + + TQLineEdit *m_metaEdit; bool m_modified; }; diff --git a/src/gui/dialogs/SplitByPitchDialog.cpp b/src/gui/dialogs/SplitByPitchDialog.cpp index 9b3dffa..9ff3772 100644 --- a/src/gui/dialogs/SplitByPitchDialog.cpp +++ b/src/gui/dialogs/SplitByPitchDialog.cpp @@ -31,39 +31,39 @@ #include "gui/widgets/PitchChooser.h" #include <kcombobox.h> #include <kdialogbase.h> -#include <qcheckbox.h> -#include <qframe.h> -#include <qlabel.h> -#include <qvbox.h> -#include <qwidget.h> -#include <qlayout.h> +#include <tqcheckbox.h> +#include <tqframe.h> +#include <tqlabel.h> +#include <tqvbox.h> +#include <tqwidget.h> +#include <tqlayout.h> namespace Rosegarden { -SplitByPitchDialog::SplitByPitchDialog(QWidget *parent) : +SplitByPitchDialog::SplitByPitchDialog(TQWidget *parent) : KDialogBase(parent, 0, true, i18n("Split by Pitch"), Ok | Cancel) { - QVBox *vBox = makeVBoxMainWidget(); + TQVBox *vBox = makeVBoxMainWidget(); - QFrame *frame = new QFrame(vBox); + TQFrame *frame = new TQFrame(vBox); - QGridLayout *layout = new QGridLayout(frame, 4, 3, 10, 5); + TQGridLayout *layout = new TQGridLayout(frame, 4, 3, 10, 5); m_pitch = new PitchChooser(i18n("Starting split pitch"), frame, 60); layout->addMultiCellWidget(m_pitch, 0, 0, 0, 2, Qt::AlignHCenter); - m_range = new QCheckBox(i18n("Range up and down to follow music"), frame); + m_range = new TQCheckBox(i18n("Range up and down to follow music"), frame); layout->addMultiCellWidget(m_range, 1, 1, // fromRow, toRow 0, 2 // fromCol, toCol ); - m_duplicate = new QCheckBox(i18n("Duplicate non-note events"), frame); + m_duplicate = new TQCheckBox(i18n("Duplicate non-note events"), frame); layout->addMultiCellWidget(m_duplicate, 2, 2, 0, 2); - layout->addWidget(new QLabel(i18n("Clef handling:"), frame), 3, 0); + layout->addWidget(new TQLabel(i18n("Clef handling:"), frame), 3, 0); m_clefs = new KComboBox(frame); m_clefs->insertItem(i18n("Leave clefs alone")); diff --git a/src/gui/dialogs/SplitByPitchDialog.h b/src/gui/dialogs/SplitByPitchDialog.h index 40a6fb8..ada2c24 100644 --- a/src/gui/dialogs/SplitByPitchDialog.h +++ b/src/gui/dialogs/SplitByPitchDialog.h @@ -29,8 +29,8 @@ #include <kdialogbase.h> -class QWidget; -class QCheckBox; +class TQWidget; +class TQCheckBox; class KComboBox; @@ -44,7 +44,7 @@ class SplitByPitchDialog : public KDialogBase { Q_OBJECT public: - SplitByPitchDialog(QWidget *parent); + SplitByPitchDialog(TQWidget *parent); int getPitch(); @@ -55,8 +55,8 @@ public: private: PitchChooser *m_pitch; - QCheckBox *m_range; - QCheckBox *m_duplicate; + TQCheckBox *m_range; + TQCheckBox *m_duplicate; KComboBox *m_clefs; }; diff --git a/src/gui/dialogs/SplitByRecordingSrcDialog.cpp b/src/gui/dialogs/SplitByRecordingSrcDialog.cpp index cc61bfa..91b8629 100644 --- a/src/gui/dialogs/SplitByRecordingSrcDialog.cpp +++ b/src/gui/dialogs/SplitByRecordingSrcDialog.cpp @@ -24,7 +24,7 @@ #include "SplitByRecordingSrcDialog.h" -#include <qlayout.h> +#include <tqlayout.h> #include <klocale.h> #include "misc/Strings.h" @@ -32,41 +32,41 @@ #include "document/RosegardenGUIDoc.h" #include <kcombobox.h> #include <kdialogbase.h> -#include <qframe.h> -#include <qgroupbox.h> -#include <qlabel.h> -#include <qsizepolicy.h> -#include <qstring.h> -#include <qvbox.h> -#include <qwidget.h> +#include <tqframe.h> +#include <tqgroupbox.h> +#include <tqlabel.h> +#include <tqsizepolicy.h> +#include <tqstring.h> +#include <tqvbox.h> +#include <tqwidget.h> namespace Rosegarden { -SplitByRecordingSrcDialog::SplitByRecordingSrcDialog(QWidget *parent, RosegardenGUIDoc *doc) : +SplitByRecordingSrcDialog::SplitByRecordingSrcDialog(TQWidget *parent, RosegardenGUIDoc *doc) : KDialogBase(parent, 0, true, i18n("Split by Recording Source"), Ok | Cancel ) { - QVBox *vBox = makeVBoxMainWidget(); + TQVBox *vBox = makeVBoxMainWidget(); - QGroupBox *groupBox = new QGroupBox + TQGroupBox *groupBox = new QGroupBox (1, Horizontal, i18n("Recording Source"), vBox); - QFrame *frame = new QFrame(groupBox); - QGridLayout *layout = new QGridLayout(frame, 2, 2, 10, 5); + TQFrame *frame = new TQFrame(groupBox); + TQGridLayout *layout = new TQGridLayout(frame, 2, 2, 10, 5); - layout->addWidget(new QLabel( i18n("Channel:"), frame ), 0, 0); + layout->addWidget(new TQLabel( i18n("Channel:"), frame ), 0, 0); m_channel = new KComboBox( frame ); m_channel->setSizeLimit( 17 ); layout->addWidget(m_channel, 0, 1); - QSpacerItem *spacer = new QSpacerItem( 1, 1, QSizePolicy::Expanding, QSizePolicy::Minimum ); + TQSpacerItem *spacer = new TQSpacerItem( 1, 1, TQSizePolicy::Expanding, TQSizePolicy::Minimum ); layout->addItem( spacer, 0, 2 ); m_channel->insertItem(i18n("any")); for (int i = 1; i < 17; ++i) { - m_channel->insertItem(QString::number(i)); + m_channel->insertItem(TQString::number(i)); } - layout->addWidget(new QLabel( i18n("Device:"), frame ), 1, 0); + layout->addWidget(new TQLabel( i18n("Device:"), frame ), 1, 0); m_device = new KComboBox( frame ); layout->addMultiCellWidget( m_device, 1, 1, 1, 2 ); @@ -80,10 +80,10 @@ SplitByRecordingSrcDialog::SplitByRecordingSrcDialog(QWidget *parent, Rosegarden MidiDevice *dev = dynamic_cast<MidiDevice*>(*it); if (dev && dev->getDirection() == MidiDevice::Record) { - QString label = QString::number(dev->getId()); + TQString label = TQString::number(dev->getId()); label += ": "; label += strtoqstr(dev->getName()); - QString connection = strtoqstr(dev->getConnection()); + TQString connection = strtoqstr(dev->getConnection()); label += " - "; if (connection == "") label += i18n("No connection"); diff --git a/src/gui/dialogs/SplitByRecordingSrcDialog.h b/src/gui/dialogs/SplitByRecordingSrcDialog.h index af982a2..851c3f9 100644 --- a/src/gui/dialogs/SplitByRecordingSrcDialog.h +++ b/src/gui/dialogs/SplitByRecordingSrcDialog.h @@ -31,7 +31,7 @@ #include "gui/application/RosegardenDCOP.h" -class QWidget; +class TQWidget; class KComboBox; @@ -45,7 +45,7 @@ class SplitByRecordingSrcDialog : public KDialogBase { Q_OBJECT public: - SplitByRecordingSrcDialog(QWidget *parent, RosegardenGUIDoc *doc); + SplitByRecordingSrcDialog(TQWidget *parent, RosegardenGUIDoc *doc); int getChannel(); int getDevice(); diff --git a/src/gui/dialogs/TempoDialog.cpp b/src/gui/dialogs/TempoDialog.cpp index 3896fde..1edab6b 100644 --- a/src/gui/dialogs/TempoDialog.cpp +++ b/src/gui/dialogs/TempoDialog.cpp @@ -24,7 +24,7 @@ #include "TempoDialog.h" -#include <qlayout.h> +#include <tqlayout.h> #include <klocale.h> #include "misc/Debug.h" @@ -36,22 +36,22 @@ #include "gui/widgets/TimeWidget.h" #include "gui/widgets/HSpinBox.h" #include <kdialogbase.h> -#include <qbuttongroup.h> -#include <qcheckbox.h> -#include <qframe.h> -#include <qgroupbox.h> -#include <qhbox.h> -#include <qlabel.h> -#include <qradiobutton.h> -#include <qstring.h> -#include <qvbox.h> -#include <qwidget.h> +#include <tqbuttongroup.h> +#include <tqcheckbox.h> +#include <tqframe.h> +#include <tqgroupbox.h> +#include <tqhbox.h> +#include <tqlabel.h> +#include <tqradiobutton.h> +#include <tqstring.h> +#include <tqvbox.h> +#include <tqwidget.h> namespace Rosegarden { -TempoDialog::TempoDialog(QWidget *parent, RosegardenGUIDoc *doc, +TempoDialog::TempoDialog(TQWidget *parent, RosegardenGUIDoc *doc, bool timeEditable): KDialogBase(parent, 0, true, i18n("Insert Tempo Change"), Ok | Cancel | Help), m_doc(doc), @@ -59,30 +59,30 @@ TempoDialog::TempoDialog(QWidget *parent, RosegardenGUIDoc *doc, { setHelp("tempo"); - QVBox *vbox = makeVBoxMainWidget(); - QGroupBox *groupBox = new QGroupBox(1, Horizontal, i18n("Tempo"), vbox); + TQVBox *vbox = makeVBoxMainWidget(); + TQGroupBox *groupBox = new TQGroupBox(1, Horizontal, i18n("Tempo"), vbox); - QFrame *frame = new QFrame(groupBox); - QGridLayout *layout = new QGridLayout(frame, 4, 3, 5, 5); + TQFrame *frame = new TQFrame(groupBox); + TQGridLayout *layout = new TQGridLayout(frame, 4, 3, 5, 5); // Set tempo - layout->addWidget(new QLabel(i18n("New tempo:"), frame), 0, 1); + layout->addWidget(new TQLabel(i18n("New tempo:"), frame), 0, 1); m_tempoValueSpinBox = new HSpinBox(frame, 0, 100000, 0.0, 1000.0, 5); layout->addWidget(m_tempoValueSpinBox, 0, 2); - connect(m_tempoValueSpinBox, SIGNAL(valueChanged(const QString &)), - SLOT(slotTempoChanged(const QString &))); + connect(m_tempoValueSpinBox, TQT_SIGNAL(valueChanged(const TQString &)), + TQT_SLOT(slotTempoChanged(const TQString &))); - m_tempoTap= new QPushButton(i18n("Tap"), frame); + m_tempoTap= new TQPushButton(i18n("Tap"), frame); layout->addWidget(m_tempoTap, 0, 3); - connect(m_tempoTap, SIGNAL(clicked()), SLOT(slotTapClicked())); + connect(m_tempoTap, TQT_SIGNAL(clicked()), TQT_SLOT(slotTapClicked())); - m_tempoConstant = new QRadioButton(i18n("Tempo is fixed until the following tempo change"), frame); - m_tempoRampToNext = new QRadioButton(i18n("Tempo ramps to the following tempo"), frame); - m_tempoRampToTarget = new QRadioButton(i18n("Tempo ramps to:"), frame); + m_tempoConstant = new TQRadioButton(i18n("Tempo is fixed until the following tempo change"), frame); + m_tempoRampToNext = new TQRadioButton(i18n("Tempo ramps to the following tempo"), frame); + m_tempoRampToTarget = new TQRadioButton(i18n("Tempo ramps to:"), frame); - // m_tempoTargetCheckBox = new QCheckBox(i18n("Ramping to:"), frame); + // m_tempoTargetCheckBox = new TQCheckBox(i18n("Ramping to:"), frame); m_tempoTargetSpinBox = new HSpinBox(frame, 0, 100000, 0.0, 1000.0, 5); // layout->addMultiCellWidget(m_tempoTargetCheckBox, 1, 1, 0, 1, AlignRight); @@ -93,24 +93,24 @@ TempoDialog::TempoDialog(QWidget *parent, RosegardenGUIDoc *doc, layout->addWidget(m_tempoRampToTarget, 3, 1); layout->addWidget(m_tempoTargetSpinBox, 3, 2); - // connect(m_tempoTargetCheckBox, SIGNAL(clicked()), - // SLOT(slotTargetCheckBoxClicked())); - connect(m_tempoConstant, SIGNAL(clicked()), - SLOT(slotTempoConstantClicked())); - connect(m_tempoRampToNext, SIGNAL(clicked()), - SLOT(slotTempoRampToNextClicked())); - connect(m_tempoRampToTarget, SIGNAL(clicked()), - SLOT(slotTempoRampToTargetClicked())); - connect(m_tempoTargetSpinBox, SIGNAL(valueChanged(const QString &)), - SLOT(slotTargetChanged(const QString &))); - - m_tempoBeatLabel = new QLabel(frame); + // connect(m_tempoTargetCheckBox, TQT_SIGNAL(clicked()), + // TQT_SLOT(slotTargetCheckBoxClicked())); + connect(m_tempoConstant, TQT_SIGNAL(clicked()), + TQT_SLOT(slotTempoConstantClicked())); + connect(m_tempoRampToNext, TQT_SIGNAL(clicked()), + TQT_SLOT(slotTempoRampToNextClicked())); + connect(m_tempoRampToTarget, TQT_SIGNAL(clicked()), + TQT_SLOT(slotTempoRampToTargetClicked())); + connect(m_tempoTargetSpinBox, TQT_SIGNAL(valueChanged(const TQString &)), + TQT_SLOT(slotTargetChanged(const TQString &))); + + m_tempoBeatLabel = new TQLabel(frame); layout->addWidget(m_tempoBeatLabel, 0, 4); - m_tempoBeat = new QLabel(frame); + m_tempoBeat = new TQLabel(frame); layout->addWidget(m_tempoBeat, 0, 5); - m_tempoBeatsPerMinute = new QLabel(frame); + m_tempoBeatsPerMinute = new TQLabel(frame); layout->addWidget(m_tempoBeatsPerMinute, 0, 6); m_timeEditor = 0; @@ -124,30 +124,30 @@ TempoDialog::TempoDialog(QWidget *parent, RosegardenGUIDoc *doc, } // Scope Box - QButtonGroup *scopeGroup = new QButtonGroup(1, Horizontal, + TQButtonGroup *scopeGroup = new TQButtonGroup(1, Horizontal, i18n("Scope"), vbox); -// new QLabel(scopeBox); +// new TQLabel(scopeBox); - QVBox *scopeBox = new QVBox(scopeGroup); + TQVBox *scopeBox = new TQVBox(scopeGroup); scopeBox->setSpacing(5); scopeBox->setMargin(5); - QHBox *currentBox = new QHBox(scopeBox); - new QLabel(i18n("The pointer is currently at "), currentBox); - m_tempoTimeLabel = new QLabel(currentBox); - m_tempoBarLabel = new QLabel(currentBox); - QLabel *spare = new QLabel(currentBox); + TQHBox *currentBox = new TQHBox(scopeBox); + new TQLabel(i18n("The pointer is currently at "), currentBox); + m_tempoTimeLabel = new TQLabel(currentBox); + m_tempoBarLabel = new TQLabel(currentBox); + TQLabel *spare = new TQLabel(currentBox); currentBox->setStretchFactor(spare, 20); - m_tempoStatusLabel = new QLabel(scopeBox); + m_tempoStatusLabel = new TQLabel(scopeBox); -// new QLabel(scopeBox); +// new TQLabel(scopeBox); - QHBox *changeWhereBox = new QHBox(scopeBox); - spare = new QLabel(" ", changeWhereBox); - QVBox *changeWhereVBox = new QVBox(changeWhereBox); + TQHBox *changeWhereBox = new TQHBox(scopeBox); + spare = new TQLabel(" ", changeWhereBox); + TQVBox *changeWhereVBox = new TQVBox(changeWhereBox); changeWhereBox->setStretchFactor(changeWhereVBox, 20); m_tempoChangeHere = new QRadioButton @@ -157,7 +157,7 @@ TempoDialog::TempoDialog(QWidget *parent, RosegardenGUIDoc *doc, m_tempoChangeBefore = new QRadioButton (i18n("Replace the last tempo change"), changeWhereVBox); - m_tempoChangeBeforeAt = new QLabel(changeWhereVBox); + m_tempoChangeBeforeAt = new TQLabel(changeWhereVBox); m_tempoChangeBeforeAt->hide(); m_tempoChangeStartOfBar = new QRadioButton @@ -166,23 +166,23 @@ TempoDialog::TempoDialog(QWidget *parent, RosegardenGUIDoc *doc, m_tempoChangeGlobal = new QRadioButton (i18n("Apply this tempo to the whole composition"), changeWhereVBox); - QHBox *optionHBox = new QHBox(changeWhereVBox); - new QLabel(" ", optionHBox); + TQHBox *optionHBox = new TQHBox(changeWhereVBox); + new TQLabel(" ", optionHBox); m_defaultBox = new QCheckBox (i18n("Also make this the default tempo"), optionHBox); - spare = new QLabel(optionHBox); + spare = new TQLabel(optionHBox); optionHBox->setStretchFactor(spare, 20); -// new QLabel(scopeBox); +// new TQLabel(scopeBox); - connect(m_tempoChangeHere, SIGNAL(clicked()), - SLOT(slotActionChanged())); - connect(m_tempoChangeBefore, SIGNAL(clicked()), - SLOT(slotActionChanged())); - connect(m_tempoChangeStartOfBar, SIGNAL(clicked()), - SLOT(slotActionChanged())); - connect(m_tempoChangeGlobal, SIGNAL(clicked()), - SLOT(slotActionChanged())); + connect(m_tempoChangeHere, TQT_SIGNAL(clicked()), + TQT_SLOT(slotActionChanged())); + connect(m_tempoChangeBefore, TQT_SIGNAL(clicked()), + TQT_SLOT(slotActionChanged())); + connect(m_tempoChangeStartOfBar, TQT_SIGNAL(clicked()), + TQT_SLOT(slotActionChanged())); + connect(m_tempoChangeGlobal, TQT_SIGNAL(clicked()), + TQT_SLOT(slotActionChanged())); m_tempoChangeHere->setChecked(true); @@ -251,7 +251,7 @@ TempoDialog::populateTempo() } RealTime tempoTime = comp.getElapsedRealTime(m_tempoTime); - QString milliSeconds; + TQString milliSeconds; milliSeconds.sprintf("%03d", tempoTime.msec()); m_tempoTimeLabel->setText(i18n("%1.%2 s,").arg(tempoTime.sec) .arg(milliSeconds)); @@ -278,7 +278,7 @@ TempoDialog::populateTempo() if (lastTempoTime < m_tempoTime) { RealTime lastRT = comp.getElapsedRealTime(lastTempoTime); - QString lastms; + TQString lastms; lastms.sprintf("%03d", lastRT.msec()); int lastBar = comp.getBarNumber(lastTempoTime); m_tempoChangeBeforeAt->setText @@ -343,8 +343,8 @@ TempoDialog::updateBeatLabels(double qpm) ("menu-no-note"))); m_tempoBeatsPerMinute->setText - // (QString("= %1 )").arg - (QString("= %1 ").arg + // (TQString("= %1 )").arg + (TQString("= %1 ").arg (int(qpm * Note(Note::Crotchet).getDuration() / beat))); m_tempoBeatLabel->show(); m_tempoBeat->show(); @@ -353,13 +353,13 @@ TempoDialog::updateBeatLabels(double qpm) } void -TempoDialog::slotTempoChanged(const QString &) +TempoDialog::slotTempoChanged(const TQString &) { updateBeatLabels(double(m_tempoValueSpinBox->valuef())); } void -TempoDialog::slotTargetChanged(const QString &) +TempoDialog::slotTargetChanged(const TQString &) { //... } @@ -443,9 +443,9 @@ TempoDialog::slotOk() void TempoDialog::slotTapClicked() { - QTime now = QTime::currentTime(); + TQTime now = TQTime::currentTime(); - if (m_tapMinusOne != QTime()) { + if (m_tapMinusOne != TQTime()) { int ms1 = m_tapMinusOne.msecsTo(now); @@ -453,7 +453,7 @@ TempoDialog::slotTapClicked() int msec = ms1; - if (m_tapMinusTwo != QTime()) { + if (m_tapMinusTwo != TQTime()) { int ms2 = m_tapMinusTwo.msecsTo(m_tapMinusOne); if (ms2 < 10000) { msec = (ms1 + ms2) / 2; diff --git a/src/gui/dialogs/TempoDialog.h b/src/gui/dialogs/TempoDialog.h index dd3edf1..db26ce7 100644 --- a/src/gui/dialogs/TempoDialog.h +++ b/src/gui/dialogs/TempoDialog.h @@ -29,15 +29,15 @@ #include <kdialogbase.h> #include "base/Event.h" #include "base/Composition.h" -#include <qpushbutton.h> -#include <qdatetime.h> +#include <tqpushbutton.h> +#include <tqdatetime.h> -class QWidget; -class QString; -class QRadioButton; -class QLabel; -class QCheckBox; +class TQWidget; +class TQString; +class TQRadioButton; +class TQLabel; +class TQCheckBox; namespace Rosegarden @@ -60,7 +60,7 @@ public: GlobalTempoWithDefault }; - TempoDialog(QWidget *parent, RosegardenGUIDoc *doc, + TempoDialog(TQWidget *parent, RosegardenGUIDoc *doc, bool timeEditable = false); ~TempoDialog(); @@ -71,11 +71,11 @@ public: public slots: virtual void slotOk(); void slotActionChanged(); - void slotTempoChanged(const QString &); + void slotTempoChanged(const TQString &); void slotTempoConstantClicked(); void slotTempoRampToNextClicked(); void slotTempoRampToTargetClicked(); - void slotTargetChanged(const QString &); + void slotTargetChanged(const TQString &); void slotTapClicked(); signals: @@ -95,31 +95,31 @@ protected: RosegardenGUIDoc *m_doc; timeT m_tempoTime; HSpinBox *m_tempoValueSpinBox; - QPushButton *m_tempoTap; - QTime m_tapMinusTwo; - QTime m_tapMinusOne; + TQPushButton *m_tempoTap; + TQTime m_tapMinusTwo; + TQTime m_tapMinusOne; - QRadioButton *m_tempoConstant; - QRadioButton *m_tempoRampToNext; - QRadioButton *m_tempoRampToTarget; + TQRadioButton *m_tempoConstant; + TQRadioButton *m_tempoRampToNext; + TQRadioButton *m_tempoRampToTarget; HSpinBox *m_tempoTargetSpinBox; - QLabel *m_tempoBeatLabel; - QLabel *m_tempoBeat; - QLabel *m_tempoBeatsPerMinute; + TQLabel *m_tempoBeatLabel; + TQLabel *m_tempoBeat; + TQLabel *m_tempoBeatsPerMinute; TimeWidget *m_timeEditor; - QLabel *m_tempoTimeLabel; - QLabel *m_tempoBarLabel; - QLabel *m_tempoStatusLabel; + TQLabel *m_tempoTimeLabel; + TQLabel *m_tempoBarLabel; + TQLabel *m_tempoStatusLabel; - QRadioButton *m_tempoChangeHere; - QRadioButton *m_tempoChangeBefore; - QLabel *m_tempoChangeBeforeAt; - QRadioButton *m_tempoChangeStartOfBar; - QRadioButton *m_tempoChangeGlobal; - QCheckBox *m_defaultBox; + TQRadioButton *m_tempoChangeHere; + TQRadioButton *m_tempoChangeBefore; + TQLabel *m_tempoChangeBeforeAt; + TQRadioButton *m_tempoChangeStartOfBar; + TQRadioButton *m_tempoChangeGlobal; + TQCheckBox *m_defaultBox; }; diff --git a/src/gui/dialogs/TextEventDialog.cpp b/src/gui/dialogs/TextEventDialog.cpp index 156b5d1..ef02fbd 100644 --- a/src/gui/dialogs/TextEventDialog.cpp +++ b/src/gui/dialogs/TextEventDialog.cpp @@ -34,23 +34,23 @@ #include <kcombobox.h> #include <kconfig.h> #include <kdialogbase.h> -#include <qbitmap.h> -#include <qgrid.h> -#include <qgroupbox.h> -#include <qlabel.h> -#include <qlineedit.h> -#include <qobject.h> -#include <qpainter.h> -#include <qpixmap.h> -#include <qstring.h> -#include <qvbox.h> -#include <qwidget.h> -#include <qspinbox.h> +#include <tqbitmap.h> +#include <tqgrid.h> +#include <tqgroupbox.h> +#include <tqlabel.h> +#include <tqlineedit.h> +#include <tqobject.h> +#include <tqpainter.h> +#include <tqpixmap.h> +#include <tqstring.h> +#include <tqvbox.h> +#include <tqwidget.h> +#include <tqspinbox.h> namespace Rosegarden { -TextEventDialog::TextEventDialog(QWidget *parent, +TextEventDialog::TextEventDialog(TQWidget *parent, NotePixmapFactory *npf, Text defaultText, int maxLength) : @@ -60,23 +60,23 @@ TextEventDialog::TextEventDialog(QWidget *parent, //m_directives(Text::getLilyPondDirectives()) */ { setHelp("nv-text"); - QVBox *vbox = makeVBoxMainWidget(); + TQVBox *vbox = makeVBoxMainWidget(); - QGroupBox *entryBox = new QGroupBox + TQGroupBox *entryBox = new QGroupBox (1, Horizontal, i18n("Specification"), vbox); - QGroupBox *exampleBox = new QGroupBox + TQGroupBox *exampleBox = new QGroupBox (1, Horizontal, i18n("Preview"), vbox); - QGrid *entryGrid = new QGrid(2, QGrid::Horizontal, entryBox); + TQGrid *entryGrid = new TQGrid(2, TQGrid::Horizontal, entryBox); - new QLabel(i18n("Text: "), entryGrid); - m_text = new QLineEdit(entryGrid); + new TQLabel(i18n("Text: "), entryGrid); + m_text = new TQLineEdit(entryGrid); m_text->setText(strtoqstr(defaultText.getText())); if (maxLength > 0) m_text->setMaxLength(maxLength); // style combo - new QLabel(i18n("Style: "), entryGrid); + new TQLabel(i18n("Style: "), entryGrid); m_typeCombo = new KComboBox(entryGrid); for (unsigned int i = 0; i < m_styles.size(); ++i) @@ -135,9 +135,9 @@ TextEventDialog::TextEventDialog(QWidget *parent, } } - m_verseLabel = new QLabel(i18n("Verse: "), entryGrid); + m_verseLabel = new TQLabel(i18n("Verse: "), entryGrid); m_verseLabel->hide(); - m_verseSpin = new QSpinBox(entryGrid); + m_verseSpin = new TQSpinBox(entryGrid); m_verseSpin->setMinValue(1); m_verseSpin->setMaxValue(12); m_verseSpin->setLineStep(1); @@ -145,7 +145,7 @@ TextEventDialog::TextEventDialog(QWidget *parent, m_verseSpin->hide(); // dynamic shortcuts combo - m_dynamicShortcutLabel = new QLabel(i18n("Dynamic: "), entryGrid); + m_dynamicShortcutLabel = new TQLabel(i18n("Dynamic: "), entryGrid); m_dynamicShortcutLabel->hide(); m_dynamicShortcutCombo = new KComboBox(entryGrid); @@ -162,7 +162,7 @@ TextEventDialog::TextEventDialog(QWidget *parent, m_dynamicShortcutCombo->hide(); // direction shortcuts combo - m_directionShortcutLabel = new QLabel(i18n("Direction: "), entryGrid); + m_directionShortcutLabel = new TQLabel(i18n("Direction: "), entryGrid); m_directionShortcutLabel->hide(); m_directionShortcutCombo = new KComboBox(entryGrid); @@ -181,7 +181,7 @@ TextEventDialog::TextEventDialog(QWidget *parent, m_directionShortcutCombo->hide(); // local direction shortcuts combo - m_localDirectionShortcutLabel = new QLabel(i18n("Local Direction: "), entryGrid); + m_localDirectionShortcutLabel = new TQLabel(i18n("Local Direction: "), entryGrid); m_localDirectionShortcutLabel->hide(); m_localDirectionShortcutCombo = new KComboBox(entryGrid); @@ -207,7 +207,7 @@ TextEventDialog::TextEventDialog(QWidget *parent, m_localDirectionShortcutCombo->hide(); // tempo shortcuts combo - m_tempoShortcutLabel = new QLabel(i18n("Tempo: "), entryGrid); + m_tempoShortcutLabel = new TQLabel(i18n("Tempo: "), entryGrid); m_tempoShortcutLabel->hide(); m_tempoShortcutCombo = new KComboBox(entryGrid); @@ -231,7 +231,7 @@ TextEventDialog::TextEventDialog(QWidget *parent, // nobody is actually sure what is supposed to distinguish Tempo from // Local Tempo, or what this text style is supposed to be good for in the // way of standard notation) - m_localTempoShortcutLabel = new QLabel(i18n("Local Tempo: "), entryGrid); + m_localTempoShortcutLabel = new TQLabel(i18n("Local Tempo: "), entryGrid); m_localTempoShortcutLabel->hide(); m_localTempoShortcutCombo = new KComboBox(entryGrid); @@ -252,7 +252,7 @@ TextEventDialog::TextEventDialog(QWidget *parent, m_localTempoShortcutCombo->hide(); // LilyPond directive combo - m_directiveLabel = new QLabel(i18n("Directive: "), entryGrid); + m_directiveLabel = new TQLabel(i18n("Directive: "), entryGrid); m_directiveLabel->hide(); m_lilyPondDirectiveCombo = new KComboBox(entryGrid); @@ -276,18 +276,18 @@ TextEventDialog::TextEventDialog(QWidget *parent, m_lilyPondDirectiveCombo->insertItem(Text::Small); m_lilyPondDirectiveCombo->insertItem(Text::NormalSize); - QVBox *exampleVBox = new QVBox(exampleBox); + TQVBox *exampleVBox = new TQVBox(exampleBox); int ls = m_notePixmapFactory->getLineSpacing(); int mapWidth = 200; - QPixmap map(mapWidth, ls * 5 + 1); - QBitmap mask(mapWidth, ls * 5 + 1); + TQPixmap map(mapWidth, ls * 5 + 1); + TQBitmap mask(mapWidth, ls * 5 + 1); map.fill(); mask.fill(Qt::color0); - QPainter p, pm; + TQPainter p, pm; p.begin(&map); pm.begin(&mask); @@ -306,12 +306,12 @@ TextEventDialog::TextEventDialog(QWidget *parent, map.setMask(mask); - m_staffAboveLabel = new QLabel("staff", exampleVBox); + m_staffAboveLabel = new TQLabel("staff", exampleVBox); m_staffAboveLabel->setPixmap(map); - m_textExampleLabel = new QLabel(i18n("Example"), exampleVBox); + m_textExampleLabel = new TQLabel(i18n("Example"), exampleVBox); - m_staffBelowLabel = new QLabel("staff", exampleVBox); + m_staffBelowLabel = new TQLabel("staff", exampleVBox); m_staffBelowLabel->setPixmap(map); // restore last setting for shortcut combos @@ -329,23 +329,23 @@ TextEventDialog::TextEventDialog(QWidget *parent, m_prevLyric = config->readEntry("previous_lyric", ""); m_prevAnnotation = config->readEntry("previous_annotation", ""); - QObject::connect(m_text, SIGNAL(textChanged(const QString &)), - this, SLOT(slotTextChanged(const QString &))); - QObject::connect(m_typeCombo, SIGNAL(activated(const QString &)), - this, SLOT(slotTypeChanged(const QString &))); - QObject::connect(this, SIGNAL(okClicked()), this, SLOT(slotOK())); - QObject::connect(m_dynamicShortcutCombo, SIGNAL(activated(const QString &)), - this, SLOT(slotDynamicShortcutChanged(const QString &))); - QObject::connect(m_directionShortcutCombo, SIGNAL(activated(const QString &)), - this, SLOT(slotDirectionShortcutChanged(const QString &))); - QObject::connect(m_localDirectionShortcutCombo, SIGNAL(activated(const QString &)), - this, SLOT(slotLocalDirectionShortcutChanged(const QString &))); - QObject::connect(m_tempoShortcutCombo, SIGNAL(activated(const QString &)), - this, SLOT(slotTempoShortcutChanged(const QString &))); - QObject::connect(m_localTempoShortcutCombo, SIGNAL(activated(const QString &)), - this, SLOT(slotLocalTempoShortcutChanged(const QString &))); - QObject::connect(m_lilyPondDirectiveCombo, SIGNAL(activated(const QString &)), - this, SLOT(slotLilyPondDirectiveChanged(const QString &))); + TQObject::connect(m_text, TQT_SIGNAL(textChanged(const TQString &)), + this, TQT_SLOT(slotTextChanged(const TQString &))); + TQObject::connect(m_typeCombo, TQT_SIGNAL(activated(const TQString &)), + this, TQT_SLOT(slotTypeChanged(const TQString &))); + TQObject::connect(this, TQT_SIGNAL(okClicked()), this, TQT_SLOT(slotOK())); + TQObject::connect(m_dynamicShortcutCombo, TQT_SIGNAL(activated(const TQString &)), + this, TQT_SLOT(slotDynamicShortcutChanged(const TQString &))); + TQObject::connect(m_directionShortcutCombo, TQT_SIGNAL(activated(const TQString &)), + this, TQT_SLOT(slotDirectionShortcutChanged(const TQString &))); + TQObject::connect(m_localDirectionShortcutCombo, TQT_SIGNAL(activated(const TQString &)), + this, TQT_SLOT(slotLocalDirectionShortcutChanged(const TQString &))); + TQObject::connect(m_tempoShortcutCombo, TQT_SIGNAL(activated(const TQString &)), + this, TQT_SLOT(slotTempoShortcutChanged(const TQString &))); + TQObject::connect(m_localTempoShortcutCombo, TQT_SIGNAL(activated(const TQString &)), + this, TQT_SLOT(slotLocalTempoShortcutChanged(const TQString &))); + TQObject::connect(m_lilyPondDirectiveCombo, TQT_SIGNAL(activated(const TQString &)), + this, TQT_SLOT(slotLilyPondDirectiveChanged(const TQString &))); m_text->setFocus(); slotTypeChanged(strtoqstr(getTextType())); @@ -379,11 +379,11 @@ TextEventDialog::getTextString() const } void -TextEventDialog::slotTextChanged(const QString &qtext) +TextEventDialog::slotTextChanged(const TQString &qtext) { std::string type(getTextType()); - QString qtrunc(qtext); + TQString qtrunc(qtext); if (qtrunc.length() > 20) qtrunc = qtrunc.left(20) + "..."; std::string text(qstrtostr(qtrunc)); @@ -396,11 +396,11 @@ TextEventDialog::slotTextChanged(const QString &qtext) } void -TextEventDialog::slotTypeChanged(const QString &) +TextEventDialog::slotTypeChanged(const TQString &) { std::string type(getTextType()); - QString qtrunc(m_text->text()); + TQString qtrunc(m_text->text()); if (qtrunc.length() > 20) qtrunc = qtrunc.left(20) + "..."; std::string text(qstrtostr(qtrunc)); @@ -534,7 +534,7 @@ TextEventDialog::slotOK() } void -TextEventDialog::slotDynamicShortcutChanged(const QString &text) +TextEventDialog::slotDynamicShortcutChanged(const TQString &text) { if (text == "" || text == "Sample") { m_text->setText(strtoqstr(m_dynamicShortcutCombo->currentText())); @@ -544,7 +544,7 @@ TextEventDialog::slotDynamicShortcutChanged(const QString &text) } void -TextEventDialog::slotDirectionShortcutChanged(const QString &text) +TextEventDialog::slotDirectionShortcutChanged(const TQString &text) { if (text == "" || text == "Sample") { m_text->setText(strtoqstr(m_directionShortcutCombo->currentText())); @@ -554,7 +554,7 @@ TextEventDialog::slotDirectionShortcutChanged(const QString &text) } void -TextEventDialog::slotLocalDirectionShortcutChanged(const QString &text) +TextEventDialog::slotLocalDirectionShortcutChanged(const TQString &text) { if (text == "" || text == "Sample") { m_text->setText(strtoqstr(m_localDirectionShortcutCombo->currentText())); @@ -564,7 +564,7 @@ TextEventDialog::slotLocalDirectionShortcutChanged(const QString &text) } void -TextEventDialog::slotTempoShortcutChanged(const QString &text) +TextEventDialog::slotTempoShortcutChanged(const TQString &text) { if (text == "" || text == "Sample") { m_text->setText(strtoqstr(m_tempoShortcutCombo->currentText())); @@ -574,7 +574,7 @@ TextEventDialog::slotTempoShortcutChanged(const QString &text) } void -TextEventDialog::slotLocalTempoShortcutChanged(const QString &text) +TextEventDialog::slotLocalTempoShortcutChanged(const TQString &text) { if (text == "" || text == "Sample") { m_text->setText(strtoqstr(m_localTempoShortcutCombo->currentText())); @@ -584,7 +584,7 @@ TextEventDialog::slotLocalTempoShortcutChanged(const QString &text) } void -TextEventDialog::slotLilyPondDirectiveChanged(const QString &) +TextEventDialog::slotLilyPondDirectiveChanged(const TQString &) { m_text->setText(strtoqstr(m_lilyPondDirectiveCombo->currentText())); } diff --git a/src/gui/dialogs/TextEventDialog.h b/src/gui/dialogs/TextEventDialog.h index 0f389b0..d74fb00 100644 --- a/src/gui/dialogs/TextEventDialog.h +++ b/src/gui/dialogs/TextEventDialog.h @@ -29,15 +29,15 @@ #include "base/NotationTypes.h" #include <string> #include <kdialogbase.h> -#include <qstring.h> +#include <tqstring.h> #include <vector> -class QWidget; -class QLineEdit; -class QLabel; +class TQWidget; +class TQLineEdit; +class TQLabel; class KComboBox; -class QSpinBox; +class TQSpinBox; namespace Rosegarden { @@ -50,7 +50,7 @@ class TextEventDialog : public KDialogBase Q_OBJECT public: - TextEventDialog(QWidget *parent, + TextEventDialog(TQWidget *parent, NotePixmapFactory *npf, Text defaultText, int maxLength = -1); // for Qt default @@ -58,8 +58,8 @@ public: Text getText() const; public slots: - void slotTextChanged(const QString &); - void slotTypeChanged(const QString &); + void slotTextChanged(const TQString &); + void slotTypeChanged(const TQString &); /* * Save previous state of assorted widgets for restoration in the next @@ -68,18 +68,18 @@ public slots: void slotOK(); // convenience canned texts - void slotDynamicShortcutChanged(const QString &); - void slotDirectionShortcutChanged(const QString &); - void slotLocalDirectionShortcutChanged(const QString &); - void slotTempoShortcutChanged(const QString &); - void slotLocalTempoShortcutChanged(const QString &); + void slotDynamicShortcutChanged(const TQString &); + void slotDirectionShortcutChanged(const TQString &); + void slotLocalDirectionShortcutChanged(const TQString &); + void slotTempoShortcutChanged(const TQString &); + void slotLocalTempoShortcutChanged(const TQString &); // // special LilyPond directives, initial phase, as cheap text events; will // eventually move out of Text, and out of this dialog into // some other less cheesy interface // - void slotLilyPondDirectiveChanged(const QString &); + void slotLilyPondDirectiveChanged(const TQString &); protected: @@ -88,9 +88,9 @@ protected: //--------------- Data members --------------------------------- - QLineEdit *m_text; + TQLineEdit *m_text; KComboBox *m_typeCombo; - QSpinBox *m_verseSpin; + TQSpinBox *m_verseSpin; KComboBox *m_dynamicShortcutCombo; KComboBox *m_directionShortcutCombo; KComboBox *m_localDirectionShortcutCombo; @@ -100,21 +100,21 @@ protected: KComboBox *m_lilyPondDirectiveCombo; - QLabel *m_staffAboveLabel; - QLabel *m_textExampleLabel; - QLabel *m_staffBelowLabel; - QLabel *m_dynamicShortcutLabel; - QLabel *m_directionShortcutLabel; - QLabel *m_localDirectionShortcutLabel; - QLabel *m_tempoShortcutLabel; - QLabel *m_localTempoShortcutLabel; - QLabel *m_verseLabel; + TQLabel *m_staffAboveLabel; + TQLabel *m_textExampleLabel; + TQLabel *m_staffBelowLabel; + TQLabel *m_dynamicShortcutLabel; + TQLabel *m_directionShortcutLabel; + TQLabel *m_localDirectionShortcutLabel; + TQLabel *m_tempoShortcutLabel; + TQLabel *m_localTempoShortcutLabel; + TQLabel *m_verseLabel; // temporary home: - QLabel *m_directiveLabel; + TQLabel *m_directiveLabel; - QString m_prevChord; - QString m_prevLyric; - QString m_prevAnnotation; + TQString m_prevChord; + TQString m_prevLyric; + TQString m_prevAnnotation; NotePixmapFactory *m_notePixmapFactory; std::vector<std::string> m_styles; diff --git a/src/gui/dialogs/TimeDialog.cpp b/src/gui/dialogs/TimeDialog.cpp index 40d1da2..d4eb4b6 100644 --- a/src/gui/dialogs/TimeDialog.cpp +++ b/src/gui/dialogs/TimeDialog.cpp @@ -29,45 +29,45 @@ #include "base/Composition.h" #include "gui/widgets/TimeWidget.h" #include <kdialogbase.h> -#include <qstring.h> -#include <qvbox.h> -#include <qwidget.h> +#include <tqstring.h> +#include <tqvbox.h> +#include <tqwidget.h> namespace Rosegarden { -TimeDialog::TimeDialog(QWidget *parent, QString title, +TimeDialog::TimeDialog(TQWidget *parent, TQString title, Composition *composition, timeT defaultTime, bool constrainToCompositionDuration) : KDialogBase(parent, 0, true, title, User1 | Ok | Cancel) { - QVBox *vbox = makeVBoxMainWidget(); + TQVBox *vbox = makeVBoxMainWidget(); m_timeWidget = new TimeWidget (title, vbox, composition, defaultTime, true, constrainToCompositionDuration); setButtonText(User1, i18n("Reset")); - connect(this, SIGNAL(user1Clicked()), - m_timeWidget, SLOT(slotResetToDefault())); + connect(this, TQT_SIGNAL(user1Clicked()), + m_timeWidget, TQT_SLOT(slotResetToDefault())); } -TimeDialog::TimeDialog(QWidget *parent, QString title, +TimeDialog::TimeDialog(TQWidget *parent, TQString title, Composition *composition, timeT startTime, timeT defaultTime, bool constrainToCompositionDuration) : KDialogBase(parent, 0, true, title, User1 | Ok | Cancel) { - QVBox *vbox = makeVBoxMainWidget(); + TQVBox *vbox = makeVBoxMainWidget(); m_timeWidget = new TimeWidget (title, vbox, composition, startTime, defaultTime, true, constrainToCompositionDuration); setButtonText(User1, i18n("Reset")); - connect(this, SIGNAL(user1Clicked()), - m_timeWidget, SLOT(slotResetToDefault())); + connect(this, TQT_SIGNAL(user1Clicked()), + m_timeWidget, TQT_SLOT(slotResetToDefault())); } timeT diff --git a/src/gui/dialogs/TimeDialog.h b/src/gui/dialogs/TimeDialog.h index e12a007..d418234 100644 --- a/src/gui/dialogs/TimeDialog.h +++ b/src/gui/dialogs/TimeDialog.h @@ -27,11 +27,11 @@ #define _RG_TIMEDIALOG_H_ #include <kdialogbase.h> -#include <qstring.h> +#include <tqstring.h> #include "base/Event.h" -class QWidget; +class TQWidget; namespace Rosegarden @@ -46,11 +46,11 @@ class TimeDialog : public KDialogBase Q_OBJECT public: /// for absolute times - TimeDialog(QWidget *parent, QString title, Composition *composition, + TimeDialog(TQWidget *parent, TQString title, Composition *composition, timeT defaultTime, bool constrainToCompositionDuration); /// for durations - TimeDialog(QWidget *parent, QString title, Composition *composition, + TimeDialog(TQWidget *parent, TQString title, Composition *composition, timeT startTime, timeT defaultDuration, bool constrainToCompositionDuration); diff --git a/src/gui/dialogs/TimeSignatureDialog.cpp b/src/gui/dialogs/TimeSignatureDialog.cpp index 082f123..1e0dca8 100644 --- a/src/gui/dialogs/TimeSignatureDialog.cpp +++ b/src/gui/dialogs/TimeSignatureDialog.cpp @@ -34,28 +34,28 @@ #include "gui/widgets/BigArrowButton.h" #include <kconfig.h> #include <kdialogbase.h> -#include <qbuttongroup.h> -#include <qcheckbox.h> -#include <qfont.h> -#include <qgroupbox.h> -#include <qhbox.h> -#include <qlabel.h> -#include <qobject.h> -#include <qradiobutton.h> -#include <qstring.h> -#include <qvbox.h> -#include <qwidget.h> +#include <tqbuttongroup.h> +#include <tqcheckbox.h> +#include <tqfont.h> +#include <tqgroupbox.h> +#include <tqhbox.h> +#include <tqlabel.h> +#include <tqobject.h> +#include <tqradiobutton.h> +#include <tqstring.h> +#include <tqvbox.h> +#include <tqwidget.h> namespace Rosegarden { -TimeSignatureDialog::TimeSignatureDialog(QWidget *parent, +TimeSignatureDialog::TimeSignatureDialog(TQWidget *parent, Composition *composition, timeT insertionTime, TimeSignature sig, bool timeEditable, - QString explanatoryText) : + TQString explanatoryText) : KDialogBase(parent, 0, true, i18n("Time Signature"), Ok | Cancel | Help), m_composition(composition), m_timeSignature(sig), @@ -70,31 +70,31 @@ TimeSignatureDialog::TimeSignatureDialog(QWidget *parent, m_startOfBarButton(0), m_timeEditor(0) { - static QFont *timeSigFont = 0; + static TQFont *timeSigFont = 0; if (timeSigFont == 0) { - timeSigFont = new QFont("new century schoolbook", 8, QFont::Bold); + timeSigFont = new TQFont("new century schoolbook", 8, TQFont::Bold); timeSigFont->setPixelSize(20); } - QVBox *vbox = makeVBoxMainWidget(); - QGroupBox *groupBox = new QGroupBox + TQVBox *vbox = makeVBoxMainWidget(); + TQGroupBox *groupBox = new QGroupBox (1, Horizontal, i18n("Time signature"), vbox); - QHBox *numBox = new QHBox(groupBox); - QHBox *denomBox = new QHBox(groupBox); + TQHBox *numBox = new TQHBox(groupBox); + TQHBox *denomBox = new TQHBox(groupBox); - QLabel *explanatoryLabel = 0; + TQLabel *explanatoryLabel = 0; if (explanatoryText) { - explanatoryLabel = new QLabel(explanatoryText, groupBox); + explanatoryLabel = new TQLabel(explanatoryText, groupBox); } BigArrowButton *numDown = new BigArrowButton(numBox, Qt::LeftArrow); BigArrowButton *denomDown = new BigArrowButton(denomBox, Qt::LeftArrow); m_numLabel = new QLabel - (QString("%1").arg(m_timeSignature.getNumerator()), numBox); + (TQString("%1").arg(m_timeSignature.getNumerator()), numBox); m_denomLabel = new QLabel - (QString("%1").arg(m_timeSignature.getDenominator()), denomBox); + (TQString("%1").arg(m_timeSignature.getDenominator()), denomBox); m_numLabel->setAlignment(AlignHCenter | AlignVCenter); m_denomLabel->setAlignment(AlignHCenter | AlignVCenter); @@ -105,10 +105,10 @@ TimeSignatureDialog::TimeSignatureDialog(QWidget *parent, BigArrowButton *numUp = new BigArrowButton(numBox, Qt::RightArrow); BigArrowButton *denomUp = new BigArrowButton(denomBox, Qt::RightArrow); - QObject::connect(numDown, SIGNAL(clicked()), this, SLOT(slotNumDown())); - QObject::connect(numUp, SIGNAL(clicked()), this, SLOT(slotNumUp())); - QObject::connect(denomDown, SIGNAL(clicked()), this, SLOT(slotDenomDown())); - QObject::connect(denomUp, SIGNAL(clicked()), this, SLOT(slotDenomUp())); + TQObject::connect(numDown, TQT_SIGNAL(clicked()), this, TQT_SLOT(slotNumDown())); + TQObject::connect(numUp, TQT_SIGNAL(clicked()), this, TQT_SLOT(slotNumUp())); + TQObject::connect(denomDown, TQT_SIGNAL(clicked()), this, TQT_SLOT(slotDenomDown())); + TQObject::connect(denomUp, TQT_SIGNAL(clicked()), this, TQT_SLOT(slotDenomUp())); if (timeEditable) { @@ -126,14 +126,14 @@ TimeSignatureDialog::TimeSignatureDialog(QWidget *parent, m_timeEditor = 0; - groupBox = new QButtonGroup(1, Horizontal, i18n("Scope"), vbox); + groupBox = new TQButtonGroup(1, Horizontal, i18n("Scope"), vbox); int barNo = composition->getBarNumber(m_time); bool atStartOfBar = (m_time == composition->getBarStart(barNo)); if (!atStartOfBar) { - QString scopeText; + TQString scopeText; if (barNo != 0 || !atStartOfBar) { if (atStartOfBar) { @@ -150,7 +150,7 @@ TimeSignatureDialog::TimeSignatureDialog(QWidget *parent, (i18n("Insertion point is at start of composition.")); } - new QLabel(scopeText, groupBox); + new TQLabel(scopeText, groupBox); m_asGivenButton = new QRadioButton (i18n("Start measure %1 here").arg(barNo + 2), groupBox); @@ -163,12 +163,12 @@ TimeSignatureDialog::TimeSignatureDialog(QWidget *parent, m_asGivenButton->setChecked(true); } } else { - new QLabel(i18n("Time change will take effect at the start of measure %1.") + new TQLabel(i18n("Time change will take effect at the start of measure %1.") .arg(barNo + 1), groupBox); } } - groupBox = new QGroupBox(1, Horizontal, i18n("Options"), vbox); + groupBox = new TQGroupBox(1, Horizontal, i18n("Options"), vbox); KConfig *config = kapp->config(); config->setGroup(GeneralOptionsConfigGroup); @@ -192,8 +192,8 @@ TimeSignatureDialog::TimeSignatureDialog(QWidget *parent, m_normalizeRestsButton->setChecked (config->readBoolEntry("timesigdialognormalize", true)); - QObject::connect(m_hideSignatureButton, SIGNAL(clicked()), this, - SLOT(slotUpdateCommonTimeButton())); + TQObject::connect(m_hideSignatureButton, TQT_SIGNAL(clicked()), this, + TQT_SLOT(slotUpdateCommonTimeButton())); slotUpdateCommonTimeButton(); m_explanatoryLabel = explanatoryLabel; @@ -231,7 +231,7 @@ TimeSignatureDialog::slotNumDown() int n = m_timeSignature.getNumerator(); if (--n >= 1) { m_timeSignature = TimeSignature(n, m_timeSignature.getDenominator()); - m_numLabel->setText(QString("%1").arg(n)); + m_numLabel->setText(TQString("%1").arg(n)); } slotUpdateCommonTimeButton(); } @@ -242,7 +242,7 @@ TimeSignatureDialog::slotNumUp() int n = m_timeSignature.getNumerator(); if (++n <= 99) { m_timeSignature = TimeSignature(n, m_timeSignature.getDenominator()); - m_numLabel->setText(QString("%1").arg(n)); + m_numLabel->setText(TQString("%1").arg(n)); } slotUpdateCommonTimeButton(); } @@ -253,7 +253,7 @@ TimeSignatureDialog::slotDenomDown() int n = m_timeSignature.getDenominator(); if ((n /= 2) >= 1) { m_timeSignature = TimeSignature(m_timeSignature.getNumerator(), n); - m_denomLabel->setText(QString("%1").arg(n)); + m_denomLabel->setText(TQString("%1").arg(n)); } slotUpdateCommonTimeButton(); } @@ -264,7 +264,7 @@ TimeSignatureDialog::slotDenomUp() int n = m_timeSignature.getDenominator(); if ((n *= 2) <= 64) { m_timeSignature = TimeSignature(m_timeSignature.getNumerator(), n); - m_denomLabel->setText(QString("%1").arg(n)); + m_denomLabel->setText(TQString("%1").arg(n)); } slotUpdateCommonTimeButton(); } diff --git a/src/gui/dialogs/TimeSignatureDialog.h b/src/gui/dialogs/TimeSignatureDialog.h index 330134c..5326f71 100644 --- a/src/gui/dialogs/TimeSignatureDialog.h +++ b/src/gui/dialogs/TimeSignatureDialog.h @@ -28,14 +28,14 @@ #include "base/NotationTypes.h" #include <kdialogbase.h> -#include <qstring.h> +#include <tqstring.h> #include "base/Event.h" -class QWidget; -class QRadioButton; -class QLabel; -class QCheckBox; +class TQWidget; +class TQRadioButton; +class TQLabel; +class TQCheckBox; namespace Rosegarden @@ -50,13 +50,13 @@ class TimeSignatureDialog : public KDialogBase Q_OBJECT public: - TimeSignatureDialog(QWidget *parent, + TimeSignatureDialog(TQWidget *parent, Composition *composition, timeT insertionTime, TimeSignature defaultSig = TimeSignature::DefaultTimeSignature, bool timeEditable = false, - QString explanatoryText = 0); + TQString explanatoryText = 0); TimeSignature getTimeSignature() const; @@ -77,17 +77,17 @@ protected: TimeSignature m_timeSignature; timeT m_time; - QLabel *m_numLabel; - QLabel *m_denomLabel; - QLabel *m_explanatoryLabel; + TQLabel *m_numLabel; + TQLabel *m_denomLabel; + TQLabel *m_explanatoryLabel; - QCheckBox *m_commonTimeButton; - QCheckBox *m_hideSignatureButton; - QCheckBox *m_hideBarsButton; - QCheckBox *m_normalizeRestsButton; + TQCheckBox *m_commonTimeButton; + TQCheckBox *m_hideSignatureButton; + TQCheckBox *m_hideBarsButton; + TQCheckBox *m_normalizeRestsButton; - QRadioButton *m_asGivenButton; - QRadioButton *m_startOfBarButton; + TQRadioButton *m_asGivenButton; + TQRadioButton *m_startOfBarButton; TimeWidget *m_timeEditor; }; diff --git a/src/gui/dialogs/TransportDialog.cpp b/src/gui/dialogs/TransportDialog.cpp index 115a528..a632469 100644 --- a/src/gui/dialogs/TransportDialog.cpp +++ b/src/gui/dialogs/TransportDialog.cpp @@ -39,28 +39,28 @@ #include "document/ConfigGroups.h" #include <kconfig.h> #include <kglobal.h> -#include <qaccel.h> -#include <qcolor.h> -#include <qcstring.h> -#include <qdatastream.h> -#include <qfont.h> -#include <qhbox.h> -#include <qlabel.h> -#include <qpalette.h> -#include <qpixmap.h> -#include <qpushbutton.h> -#include <qstring.h> -#include <qtimer.h> -#include <qwidget.h> +#include <tqaccel.h> +#include <tqcolor.h> +#include <tqcstring.h> +#include <tqdatastream.h> +#include <tqfont.h> +#include <tqhbox.h> +#include <tqlabel.h> +#include <tqpalette.h> +#include <tqpixmap.h> +#include <tqpushbutton.h> +#include <tqstring.h> +#include <tqtimer.h> +#include <tqwidget.h> namespace Rosegarden { -TransportDialog::TransportDialog(QWidget *parent, +TransportDialog::TransportDialog(TQWidget *parent, const char *name, WFlags flags): - QWidget(parent, name, WType_TopLevel | WStyle_DialogBorder | WStyle_Minimize | WStyle_SysMenu | WDestructiveClose), + TQWidget(parent, name, WType_TopLevel | WStyle_DialogBorder | WStyle_Minimize | WStyle_SysMenu | WDestructiveClose), m_transport(0), m_lastTenHours(0), m_lastUnitHours(0), @@ -138,45 +138,45 @@ TransportDialog::TransportDialog(QWidget *parent, loadPixmaps(); // Create Midi label timers - m_midiInTimer = new QTimer(this); - m_midiOutTimer = new QTimer(this); - m_clearMetronomeTimer = new QTimer(this); + m_midiInTimer = new TQTimer(this); + m_midiOutTimer = new TQTimer(this); + m_clearMetronomeTimer = new TQTimer(this); - connect(m_midiInTimer, SIGNAL(timeout()), - SLOT(slotClearMidiInLabel())); + connect(m_midiInTimer, TQT_SIGNAL(timeout()), + TQT_SLOT(slotClearMidiInLabel())); - connect(m_midiOutTimer, SIGNAL(timeout()), - SLOT(slotClearMidiOutLabel())); + connect(m_midiOutTimer, TQT_SIGNAL(timeout()), + TQT_SLOT(slotClearMidiOutLabel())); - connect(m_clearMetronomeTimer, SIGNAL(timeout()), - SLOT(slotResetBackground())); + connect(m_clearMetronomeTimer, TQT_SIGNAL(timeout()), + TQT_SLOT(slotResetBackground())); m_transport->TimeDisplayLabel->hide(); m_transport->ToEndLabel->hide(); - connect(m_transport->TimeDisplayButton, SIGNAL(clicked()), - SLOT(slotChangeTimeDisplay())); + connect(m_transport->TimeDisplayButton, TQT_SIGNAL(clicked()), + TQT_SLOT(slotChangeTimeDisplay())); - connect(m_transport->ToEndButton, SIGNAL(clicked()), - SLOT(slotChangeToEnd())); + connect(m_transport->ToEndButton, TQT_SIGNAL(clicked()), + TQT_SLOT(slotChangeToEnd())); - connect(m_transport->LoopButton, SIGNAL(clicked()), - SLOT(slotLoopButtonClicked())); + connect(m_transport->LoopButton, TQT_SIGNAL(clicked()), + TQT_SLOT(slotLoopButtonClicked())); - connect(m_transport->PanelOpenButton, SIGNAL(clicked()), - SLOT(slotPanelOpenButtonClicked())); + connect(m_transport->PanelOpenButton, TQT_SIGNAL(clicked()), + TQT_SLOT(slotPanelOpenButtonClicked())); - connect(m_transport->PanelCloseButton, SIGNAL(clicked()), - SLOT(slotPanelCloseButtonClicked())); + connect(m_transport->PanelCloseButton, TQT_SIGNAL(clicked()), + TQT_SLOT(slotPanelCloseButtonClicked())); - connect(m_transport->PanicButton, SIGNAL(clicked()), SIGNAL(panic())); + connect(m_transport->PanicButton, TQT_SIGNAL(clicked()), TQT_SIGNAL(panic())); m_panelOpen = *m_transport->PanelOpenButton->pixmap(); m_panelClosed = *m_transport->PanelCloseButton->pixmap(); - connect(m_transport->SetStartLPButton, SIGNAL(clicked()), SLOT(slotSetStartLoopingPointAtMarkerPos())); - connect(m_transport->SetStopLPButton, SIGNAL(clicked()), SLOT(slotSetStopLoopingPointAtMarkerPos())); + connect(m_transport->SetStartLPButton, TQT_SIGNAL(clicked()), TQT_SLOT(slotSetStartLoopingPointAtMarkerPos())); + connect(m_transport->SetStopLPButton, TQT_SIGNAL(clicked()), TQT_SLOT(slotSetStopLoopingPointAtMarkerPos())); // clear labels // @@ -202,66 +202,66 @@ TransportDialog::TransportDialog(QWidget *parent, // if the rest of the Transport ever changes then this code // will have to as well. // - QPalette pal; - pal.setColor(QColorGroup::Foreground, QColor(192, 216, 255)); + TQPalette pal; + pal.setColor(TQColorGroup::Foreground, TQColor(192, 216, 255)); m_transport->TempoDisplay->setPalette(pal); - m_transport->TempoDisplay->setAlignment(int(QLabel::AlignVCenter | QLabel::AlignRight)); + m_transport->TempoDisplay->setAlignment(int(TQLabel::AlignVCenter | TQLabel::AlignRight)); m_transport->TimeSigDisplay->setPalette(pal); - m_transport->TimeSigDisplay->setAlignment(int(QLabel::AlignVCenter | QLabel::AlignRight)); + m_transport->TimeSigDisplay->setAlignment(int(TQLabel::AlignVCenter | TQLabel::AlignRight)); - QFont localFont(m_transport->OutDisplay->font() ); + TQFont localFont(m_transport->OutDisplay->font() ); localFont.setFamily( "lucida" ); localFont.setBold( TRUE ); m_transport->TempoDisplay->setFont( localFont ); m_transport->TimeSigDisplay->setFont( localFont ); - connect(m_transport->TempoDisplay, SIGNAL(doubleClicked()), - this, SLOT(slotEditTempo())); + connect(m_transport->TempoDisplay, TQT_SIGNAL(doubleClicked()), + this, TQT_SLOT(slotEditTempo())); - connect(m_transport->TempoDisplay, SIGNAL(scrollWheel(int)), - this, SIGNAL(scrollTempo(int))); + connect(m_transport->TempoDisplay, TQT_SIGNAL(scrollWheel(int)), + this, TQT_SIGNAL(scrollTempo(int))); - connect(m_transport->TimeSigDisplay, SIGNAL(doubleClicked()), - this, SLOT(slotEditTimeSignature())); + connect(m_transport->TimeSigDisplay, TQT_SIGNAL(doubleClicked()), + this, TQT_SLOT(slotEditTimeSignature())); // toil through the individual pixmaps - connect(m_transport->NegativePixmap, SIGNAL(doubleClicked()), - this, SLOT(slotEditTime())); - connect(m_transport->TenHoursPixmap, SIGNAL(doubleClicked()), - this, SLOT(slotEditTime())); - connect(m_transport->UnitHoursPixmap, SIGNAL(doubleClicked()), - this, SLOT(slotEditTime())); - connect(m_transport->HourColonPixmap, SIGNAL(doubleClicked()), - this, SLOT(slotEditTime())); - connect(m_transport->TenMinutesPixmap, SIGNAL(doubleClicked()), - this, SLOT(slotEditTime())); - connect(m_transport->UnitMinutesPixmap, SIGNAL(doubleClicked()), - this, SLOT(slotEditTime())); - connect(m_transport->MinuteColonPixmap, SIGNAL(doubleClicked()), - this, SLOT(slotEditTime())); - connect(m_transport->TenSecondsPixmap, SIGNAL(doubleClicked()), - this, SLOT(slotEditTime())); - connect(m_transport->UnitSecondsPixmap, SIGNAL(doubleClicked()), - this, SLOT(slotEditTime())); - connect(m_transport->SecondColonPixmap, SIGNAL(doubleClicked()), - this, SLOT(slotEditTime())); - connect(m_transport->TenthsPixmap, SIGNAL(doubleClicked()), - this, SLOT(slotEditTime())); - connect(m_transport->HundredthsPixmap, SIGNAL(doubleClicked()), - this, SLOT(slotEditTime())); - connect(m_transport->HundredthColonPixmap, SIGNAL(doubleClicked()), - this, SLOT(slotEditTime())); - connect(m_transport->TenThousandthsPixmap, SIGNAL(doubleClicked()), - this, SLOT(slotEditTime())); - connect(m_transport->ThousandthsPixmap, SIGNAL(doubleClicked()), - this, SLOT(slotEditTime())); + connect(m_transport->NegativePixmap, TQT_SIGNAL(doubleClicked()), + this, TQT_SLOT(slotEditTime())); + connect(m_transport->TenHoursPixmap, TQT_SIGNAL(doubleClicked()), + this, TQT_SLOT(slotEditTime())); + connect(m_transport->UnitHoursPixmap, TQT_SIGNAL(doubleClicked()), + this, TQT_SLOT(slotEditTime())); + connect(m_transport->HourColonPixmap, TQT_SIGNAL(doubleClicked()), + this, TQT_SLOT(slotEditTime())); + connect(m_transport->TenMinutesPixmap, TQT_SIGNAL(doubleClicked()), + this, TQT_SLOT(slotEditTime())); + connect(m_transport->UnitMinutesPixmap, TQT_SIGNAL(doubleClicked()), + this, TQT_SLOT(slotEditTime())); + connect(m_transport->MinuteColonPixmap, TQT_SIGNAL(doubleClicked()), + this, TQT_SLOT(slotEditTime())); + connect(m_transport->TenSecondsPixmap, TQT_SIGNAL(doubleClicked()), + this, TQT_SLOT(slotEditTime())); + connect(m_transport->UnitSecondsPixmap, TQT_SIGNAL(doubleClicked()), + this, TQT_SLOT(slotEditTime())); + connect(m_transport->SecondColonPixmap, TQT_SIGNAL(doubleClicked()), + this, TQT_SLOT(slotEditTime())); + connect(m_transport->TenthsPixmap, TQT_SIGNAL(doubleClicked()), + this, TQT_SLOT(slotEditTime())); + connect(m_transport->HundredthsPixmap, TQT_SIGNAL(doubleClicked()), + this, TQT_SLOT(slotEditTime())); + connect(m_transport->HundredthColonPixmap, TQT_SIGNAL(doubleClicked()), + this, TQT_SLOT(slotEditTime())); + connect(m_transport->TenThousandthsPixmap, TQT_SIGNAL(doubleClicked()), + this, TQT_SLOT(slotEditTime())); + connect(m_transport->ThousandthsPixmap, TQT_SIGNAL(doubleClicked()), + this, TQT_SLOT(slotEditTime())); // accelerator object // - m_accelerators = new QAccel(this); + m_accelerators = new TQAccel(this); } TransportDialog::~TransportDialog() @@ -311,16 +311,16 @@ TransportDialog::show() int x = config->readNumEntry("transportx", -1); int y = config->readNumEntry("transporty", -1); if (x >= 0 && y >= 0) { - int dw = QApplication::desktop()->availableGeometry(QPoint(x, y)).width(); - int dh = QApplication::desktop()->availableGeometry(QPoint(x, y)).height(); + int dw = TQApplication::desktop()->availableGeometry(TQPoint(x, y)).width(); + int dh = TQApplication::desktop()->availableGeometry(TQPoint(x, y)).height(); if (x + m_transport->width() > dw) x = dw - m_transport->width(); if (y + m_transport->height() > dh) y = dh - m_transport->height(); move(x, y); // std::cerr << "TransportDialog::show(): moved to " << x << "," << y << std::endl; - QWidget::show(); + TQWidget::show(); // std::cerr << "TransportDialog::show(): now at " << this->x() << "," << this->y() << std::endl; } else { - QWidget::show(); + TQWidget::show(); } } @@ -333,18 +333,18 @@ TransportDialog::hide() config->writeEntry("transportx", x()); config->writeEntry("transporty", y()); } - QWidget::hide(); + TQWidget::hide(); } void TransportDialog::loadPixmaps() { m_lcdList.clear(); - QString fileName; - QString pixmapDir = KGlobal::dirs()->findResource("appdata", "pixmaps/"); + TQString fileName; + TQString pixmapDir = KGlobal::dirs()->findResource("appdata", "pixmaps/"); for (int i = 0; i < 10; i++) { - fileName = QString("%1/transport/led-%2.xpm").arg(pixmapDir).arg(i); + fileName = TQString("%1/transport/led-%2.xpm").arg(pixmapDir).arg(i); if (!m_lcdList[i].load(fileName)) { std::cerr << "TransportDialog - failed to load pixmap \"" << fileName << "\"" << std::endl; @@ -353,7 +353,7 @@ TransportDialog::loadPixmaps() // Load the "negative" sign pixmap // - fileName = QString("%1/transport/led--.xpm").arg(pixmapDir); + fileName = TQString("%1/transport/led--.xpm").arg(pixmapDir); m_lcdNegative.load(fileName); } @@ -376,9 +376,9 @@ TransportDialog::resetFonts() } void -TransportDialog::resetFont(QWidget *w) +TransportDialog::resetFont(TQWidget *w) { - QFont font = w->font(); + TQFont font = w->font(); font.setPixelSize(10); w->setFont(font); } @@ -404,12 +404,12 @@ TransportDialog::computeSampleRate() { if (m_sampleRate == 0) { - QCString replyType; - QByteArray replyData; + TQCString replyType; + TQByteArray replyData; m_sampleRate = 0; if (rgapp->sequencerCall("getSampleRate()", replyType, replyData)) { - QDataStream streamIn(replyData, IO_ReadOnly); + TQDataStream streamIn(replyData, IO_ReadOnly); unsigned int result; streamIn >> result; m_sampleRate = result; @@ -479,7 +479,7 @@ TransportDialog::displayTime() case FrameMode: m_clearMetronomeTimer->stop(); - m_transport->TimeDisplayLabel->setText(QString("%1").arg(m_sampleRate)); + m_transport->TimeDisplayLabel->setText(TQString("%1").arg(m_sampleRate)); m_transport->TimeDisplayLabel->show(); break; } @@ -879,7 +879,7 @@ TransportDialog::setTempo(const tempoT &tempo) StudioControl::sendQuarterNoteLength(qnTime); - QString tempoString; + TQString tempoString; tempoString.sprintf("%4.3f", Composition::getTempoQpm(tempo)); m_transport->TempoDisplay->setText(tempoString); @@ -895,7 +895,7 @@ TransportDialog::setTimeSignature(const TimeSignature &timeSig) m_numerator = numerator; m_denominator = denominator; - QString timeSigString; + TQString timeSigString; timeSigString.sprintf("%d/%d", numerator, denominator); m_transport->TimeSigDisplay->setText(timeSigString); } @@ -917,7 +917,7 @@ TransportDialog::setMidiInLabel(const MappedEvent *mE) MidiPitchLabel mPL(mE->getPitch()); m_transport->InDisplay->setText (mPL.getQString() + - QString(" %1").arg(mE->getVelocity())); + TQString(" %1").arg(mE->getVelocity())); } break; @@ -959,7 +959,7 @@ TransportDialog::setMidiInLabel(const MappedEvent *mE) void TransportDialog::slotClearMidiInLabel() { - m_transport->InDisplay->setText(i18n(QString("NO EVENTS"))); + m_transport->InDisplay->setText(i18n(TQString("NO EVENTS"))); // also, just to be sure: slotResetBackground(); @@ -977,7 +977,7 @@ TransportDialog::setMidiOutLabel(const MappedEvent *mE) MidiPitchLabel mPL(mE->getPitch()); m_transport->OutDisplay->setText (mPL.getQString() + - QString(" %1").arg(mE->getVelocity())); + TQString(" %1").arg(mE->getVelocity())); } break; @@ -1019,11 +1019,11 @@ TransportDialog::setMidiOutLabel(const MappedEvent *mE) void TransportDialog::slotClearMidiOutLabel() { - m_transport->OutDisplay->setText(i18n(QString("NO EVENTS"))); + m_transport->OutDisplay->setText(i18n(TQString("NO EVENTS"))); } void -TransportDialog::closeEvent (QCloseEvent * /*e*/) +TransportDialog::closeEvent (TQCloseEvent * /*e*/) { //e->accept(); // accept the close event here emit closed(); @@ -1118,7 +1118,7 @@ TransportDialog::slotEditTime() } void -TransportDialog::slotSetBackground(QColor c) +TransportDialog::slotSetBackground(TQColor c) { if (!m_haveOriginalBackground) { m_originalBackground = m_transport->LCDBoxFrame->paletteBackgroundColor(); @@ -1133,13 +1133,13 @@ TransportDialog::slotSetBackground(QColor c) /* this is a bit more thorough, but too slow and flickery: - const QObjectList *children = m_transport->LCDBoxFrame->children(); - QObjectListIt it(*children); - QObject *obj; + const TQObjectList *children = m_transport->LCDBoxFrame->tqchildren(); + TQObjectListIt it(*children); + TQObject *obj; while ((obj = it.current()) != 0) { - QWidget *w = dynamic_cast<QWidget *>(obj); + TQWidget *w = dynamic_cast<TQWidget *>(obj); if (w) { w->setPaletteBackgroundColor(c); } diff --git a/src/gui/dialogs/TransportDialog.h b/src/gui/dialogs/TransportDialog.h index e5c4948..48de68c 100644 --- a/src/gui/dialogs/TransportDialog.h +++ b/src/gui/dialogs/TransportDialog.h @@ -27,17 +27,17 @@ #include <map> #include <kdockwidget.h> -#include <qcolor.h> -#include <qpixmap.h> +#include <tqcolor.h> +#include <tqpixmap.h> #include "base/Composition.h" // for tempoT #include "RosegardenTransport.h" // generated by uic class RosegardenTransport; -class QWidget; -class QTimer; -class QPushButton; -class QCloseEvent; -class QAccel; +class TQWidget; +class TQTimer; +class TQPushButton; +class TQCloseEvent; +class TQAccel; namespace Rosegarden @@ -52,7 +52,7 @@ class TransportDialog : public QWidget { Q_OBJECT public: - TransportDialog(QWidget *parent=0, + TransportDialog(TQWidget *parent=0, const char *name=0, WFlags flags = /*Qt::WStyle_StaysOnTop |*/ Qt::WStyle_NormalBorder); @@ -86,27 +86,27 @@ public: // Return the accelerator object // - QAccel* getAccelerators() { return m_accelerators; } + TQAccel* getAccelerators() { return m_accelerators; } // RosegardenTransport member accessors - QPushButton* MetronomeButton() { return m_transport->MetronomeButton; } - QPushButton* SoloButton() { return m_transport->SoloButton; } - QPushButton* LoopButton() { return m_transport->LoopButton; } - QPushButton* PlayButton() { return m_transport->PlayButton; } - QPushButton* StopButton() { return m_transport->StopButton; } - QPushButton* FfwdButton() { return m_transport->FfwdButton; } - QPushButton* RewindButton() { return m_transport->RewindButton; } - QPushButton* RecordButton() { return m_transport->RecordButton; } - QPushButton* RewindEndButton() { return m_transport->RewindEndButton; } - QPushButton* FfwdEndButton() { return m_transport->FfwdEndButton; } - QPushButton* TimeDisplayButton() { return m_transport->TimeDisplayButton; } - QPushButton* ToEndButton() { return m_transport->ToEndButton; } + TQPushButton* MetronomeButton() { return m_transport->MetronomeButton; } + TQPushButton* SoloButton() { return m_transport->SoloButton; } + TQPushButton* LoopButton() { return m_transport->LoopButton; } + TQPushButton* PlayButton() { return m_transport->PlayButton; } + TQPushButton* StopButton() { return m_transport->StopButton; } + TQPushButton* FfwdButton() { return m_transport->FfwdButton; } + TQPushButton* RewindButton() { return m_transport->RewindButton; } + TQPushButton* RecordButton() { return m_transport->RecordButton; } + TQPushButton* RewindEndButton() { return m_transport->RewindEndButton; } + TQPushButton* FfwdEndButton() { return m_transport->FfwdEndButton; } + TQPushButton* TimeDisplayButton() { return m_transport->TimeDisplayButton; } + TQPushButton* ToEndButton() { return m_transport->ToEndButton; } virtual void show(); virtual void hide(); protected: - virtual void closeEvent(QCloseEvent * e); + virtual void closeEvent(TQCloseEvent * e); void computeSampleRate(); void cycleThroughModes(); void displayTime(); @@ -133,7 +133,7 @@ public slots: void slotEditTimeSignature(); void slotEditTime(); - void slotSetBackground(QColor); + void slotSetBackground(TQColor); void slotResetBackground(); void slotSetStartLoopingPointAtMarkerPos(); @@ -149,24 +149,24 @@ signals: void setLoopStartTime(); void setLoopStopTime(); - void editTempo(QWidget *); - void editTimeSignature(QWidget *); - void editTransportTime(QWidget *); + void editTempo(TQWidget *); + void editTimeSignature(TQWidget *); + void editTransportTime(TQWidget *); void scrollTempo(int); void panic(); private: void loadPixmaps(); void resetFonts(); - void resetFont(QWidget *); + void resetFont(TQWidget *); void initModeMap(); //--------------- Data members --------------------------------- RosegardenTransport* m_transport; - std::map<int, QPixmap> m_lcdList; - QPixmap m_lcdNegative; + std::map<int, TQPixmap> m_lcdList; + TQPixmap m_lcdNegative; int m_lastTenHours; int m_lastUnitHours; @@ -201,21 +201,21 @@ private: int m_framesPerSecond; int m_bitsPerFrame; - QTimer *m_midiInTimer; - QTimer *m_midiOutTimer; - QTimer *m_clearMetronomeTimer; + TQTimer *m_midiInTimer; + TQTimer *m_midiOutTimer; + TQTimer *m_clearMetronomeTimer; - QPixmap m_panelOpen; - QPixmap m_panelClosed; + TQPixmap m_panelOpen; + TQPixmap m_panelClosed; void updateTimeDisplay(); - QAccel *m_accelerators; + TQAccel *m_accelerators; bool m_isExpanded; bool m_haveOriginalBackground; bool m_isBackgroundSet; - QColor m_originalBackground; + TQColor m_originalBackground; int m_sampleRate; diff --git a/src/gui/dialogs/TriggerSegmentDialog.cpp b/src/gui/dialogs/TriggerSegmentDialog.cpp index a5064e1..85035df 100644 --- a/src/gui/dialogs/TriggerSegmentDialog.cpp +++ b/src/gui/dialogs/TriggerSegmentDialog.cpp @@ -35,30 +35,30 @@ #include <kcombobox.h> #include <kconfig.h> #include <kdialogbase.h> -#include <qcheckbox.h> -#include <qframe.h> -#include <qlabel.h> -#include <qstring.h> -#include <qvbox.h> -#include <qwidget.h> -#include <qlayout.h> +#include <tqcheckbox.h> +#include <tqframe.h> +#include <tqlabel.h> +#include <tqstring.h> +#include <tqvbox.h> +#include <tqwidget.h> +#include <tqlayout.h> namespace Rosegarden { -TriggerSegmentDialog::TriggerSegmentDialog(QWidget *parent, +TriggerSegmentDialog::TriggerSegmentDialog(TQWidget *parent, Composition *composition) : KDialogBase(parent, "triggersegmentdialog", true, i18n("Trigger Segment"), Ok | Cancel, Ok), m_composition(composition) { - QVBox *vbox = makeVBoxMainWidget(); + TQVBox *vbox = makeVBoxMainWidget(); - QFrame *frame = new QFrame(vbox); - QGridLayout *layout = new QGridLayout(frame, 3, 2, 5, 5); + TQFrame *frame = new TQFrame(vbox); + TQGridLayout *layout = new TQGridLayout(frame, 3, 2, 5, 5); - QLabel *label = new QLabel(i18n("Trigger segment: "), frame); + TQLabel *label = new TQLabel(i18n("Trigger segment: "), frame); layout->addWidget(label, 0, 0); m_segment = new KComboBox(frame); @@ -69,10 +69,10 @@ TriggerSegmentDialog::TriggerSegmentDialog(QWidget *parent, m_composition->getTriggerSegments().begin(); i != m_composition->getTriggerSegments().end(); ++i) { m_segment->insertItem - (QString("%1. %2").arg(n++).arg(strtoqstr((*i)->getSegment()->getLabel()))); + (TQString("%1. %2").arg(n++).arg(strtoqstr((*i)->getSegment()->getLabel()))); } - label = new QLabel(i18n("Perform with timing: "), frame); + label = new TQLabel(i18n("Perform with timing: "), frame); layout->addWidget(label, 1, 0); m_adjustTime = new KComboBox(frame); @@ -83,7 +83,7 @@ TriggerSegmentDialog::TriggerSegmentDialog(QWidget *parent, m_adjustTime->insertItem(i18n("End at same time as note")); m_adjustTime->insertItem(i18n("Stretch or squash segment to note duration")); - m_retune = new QCheckBox(i18n("Adjust pitch to note"), frame); + m_retune = new TQCheckBox(i18n("Adjust pitch to note"), frame); m_retune->setChecked(true); layout->addWidget(m_retune, 2, 1); diff --git a/src/gui/dialogs/TriggerSegmentDialog.h b/src/gui/dialogs/TriggerSegmentDialog.h index 3f74f45..c71f34c 100644 --- a/src/gui/dialogs/TriggerSegmentDialog.h +++ b/src/gui/dialogs/TriggerSegmentDialog.h @@ -31,8 +31,8 @@ #include <kdialogbase.h> -class QWidget; -class QCheckBox; +class TQWidget; +class TQCheckBox; class KComboBox; @@ -47,7 +47,7 @@ class TriggerSegmentDialog : public KDialogBase Q_OBJECT public: - TriggerSegmentDialog(QWidget *parent, Composition *); + TriggerSegmentDialog(TQWidget *parent, Composition *); TriggerSegmentId getId() const; bool getRetune() const; @@ -61,7 +61,7 @@ protected: Composition *m_composition; KComboBox *m_segment; - QCheckBox *m_retune; + TQCheckBox *m_retune; KComboBox *m_adjustTime; }; diff --git a/src/gui/dialogs/TupletDialog.cpp b/src/gui/dialogs/TupletDialog.cpp index ed1c583..a785097 100644 --- a/src/gui/dialogs/TupletDialog.cpp +++ b/src/gui/dialogs/TupletDialog.cpp @@ -24,7 +24,7 @@ #include "TupletDialog.h" -#include <qlayout.h> +#include <tqlayout.h> #include <klocale.h> #include "base/NotationTypes.h" @@ -32,29 +32,29 @@ #include "gui/editors/notation/NotePixmapFactory.h" #include <kcombobox.h> #include <kdialogbase.h> -#include <qcheckbox.h> -#include <qframe.h> -#include <qgrid.h> -#include <qgroupbox.h> -#include <qlabel.h> -#include <qobject.h> -#include <qstring.h> -#include <qvbox.h> -#include <qwidget.h> +#include <tqcheckbox.h> +#include <tqframe.h> +#include <tqgrid.h> +#include <tqgroupbox.h> +#include <tqlabel.h> +#include <tqobject.h> +#include <tqstring.h> +#include <tqvbox.h> +#include <tqwidget.h> namespace Rosegarden { -TupletDialog::TupletDialog(QWidget *parent, Note::Type defaultUnitType, +TupletDialog::TupletDialog(TQWidget *parent, Note::Type defaultUnitType, timeT maxDuration) : KDialogBase(parent, 0, true, i18n("Tuplet"), Ok | Cancel | Help), m_maxDuration(maxDuration) { setHelp("nv-tuplets"); - QVBox *vbox = makeVBoxMainWidget(); + TQVBox *vbox = makeVBoxMainWidget(); - QGroupBox *timingBox = new QGroupBox + TQGroupBox *timingBox = new QGroupBox (1, Horizontal, i18n("New timing for tuplet group"), vbox); if (m_maxDuration > 0) { @@ -70,10 +70,10 @@ TupletDialog::TupletDialog(QWidget *parent, Note::Type defaultUnitType, defaultUnitType = maxUnitType; } - QFrame *timingFrame = new QFrame(timingBox); - QGridLayout *timingLayout = new QGridLayout(timingFrame, 3, 3, 5, 5); + TQFrame *timingFrame = new TQFrame(timingBox); + TQGridLayout *timingLayout = new TQGridLayout(timingFrame, 3, 3, 5, 5); - timingLayout->addWidget(new QLabel(i18n("Play "), timingFrame), 0, 0); + timingLayout->addWidget(new TQLabel(i18n("Play "), timingFrame), 0, 0); m_untupledCombo = new KComboBox(timingFrame); timingLayout->addWidget(m_untupledCombo, 0, 1); @@ -95,7 +95,7 @@ TupletDialog::TupletDialog(QWidget *parent, Note::Type defaultUnitType, } } - timingLayout->addWidget(new QLabel(i18n("in the time of "), timingFrame), 1, 0); + timingLayout->addWidget(new TQLabel(i18n("in the time of "), timingFrame), 1, 0); m_tupledCombo = new KComboBox(timingFrame); timingLayout->addWidget(m_tupledCombo, 1, 1); @@ -105,7 +105,7 @@ TupletDialog::TupletDialog(QWidget *parent, Note::Type defaultUnitType, m_hasTimingAlready->setChecked(false); timingLayout->addMultiCellWidget(m_hasTimingAlready, 2, 2, 0, 2); - connect(m_hasTimingAlready, SIGNAL(clicked()), this, SLOT(slotHasTimingChanged())); + connect(m_hasTimingAlready, TQT_SIGNAL(clicked()), this, TQT_SLOT(slotHasTimingChanged())); updateUntupledCombo(); updateTupledCombo(); @@ -113,45 +113,45 @@ TupletDialog::TupletDialog(QWidget *parent, Note::Type defaultUnitType, m_timingDisplayBox = new QGroupBox (1, Horizontal, i18n("Timing calculations"), vbox); - QGrid *timingDisplayGrid = new QGrid(3, QGrid::Horizontal, m_timingDisplayBox); + TQGrid *timingDisplayGrid = new TQGrid(3, TQGrid::Horizontal, m_timingDisplayBox); if (maxDuration > 0) { - new QLabel(i18n("Selected region:"), timingDisplayGrid); - new QLabel("", timingDisplayGrid); - m_selectionDurationDisplay = new QLabel("x", timingDisplayGrid); - m_selectionDurationDisplay->setAlignment(int(QLabel::AlignVCenter | - QLabel::AlignRight)); + new TQLabel(i18n("Selected region:"), timingDisplayGrid); + new TQLabel("", timingDisplayGrid); + m_selectionDurationDisplay = new TQLabel("x", timingDisplayGrid); + m_selectionDurationDisplay->setAlignment(int(TQLabel::AlignVCenter | + TQLabel::AlignRight)); } else { m_selectionDurationDisplay = 0; } - new QLabel(i18n("Group with current timing:"), timingDisplayGrid); - m_untupledDurationCalculationDisplay = new QLabel("x", timingDisplayGrid); - m_untupledDurationDisplay = new QLabel("x", timingDisplayGrid); - m_untupledDurationDisplay->setAlignment(int(QLabel::AlignVCenter | - QLabel::AlignRight)); + new TQLabel(i18n("Group with current timing:"), timingDisplayGrid); + m_untupledDurationCalculationDisplay = new TQLabel("x", timingDisplayGrid); + m_untupledDurationDisplay = new TQLabel("x", timingDisplayGrid); + m_untupledDurationDisplay->setAlignment(int(TQLabel::AlignVCenter | + TQLabel::AlignRight)); - new QLabel(i18n("Group with new timing:"), timingDisplayGrid); - m_tupledDurationCalculationDisplay = new QLabel("x", timingDisplayGrid); - m_tupledDurationDisplay = new QLabel("x", timingDisplayGrid); - m_tupledDurationDisplay->setAlignment(int(QLabel::AlignVCenter | - QLabel::AlignRight)); + new TQLabel(i18n("Group with new timing:"), timingDisplayGrid); + m_tupledDurationCalculationDisplay = new TQLabel("x", timingDisplayGrid); + m_tupledDurationDisplay = new TQLabel("x", timingDisplayGrid); + m_tupledDurationDisplay->setAlignment(int(TQLabel::AlignVCenter | + TQLabel::AlignRight)); - new QLabel(i18n("Gap created by timing change:"), timingDisplayGrid); - m_newGapDurationCalculationDisplay = new QLabel("x", timingDisplayGrid); - m_newGapDurationDisplay = new QLabel("x", timingDisplayGrid); - m_newGapDurationDisplay->setAlignment(int(QLabel::AlignVCenter | - QLabel::AlignRight)); + new TQLabel(i18n("Gap created by timing change:"), timingDisplayGrid); + m_newGapDurationCalculationDisplay = new TQLabel("x", timingDisplayGrid); + m_newGapDurationDisplay = new TQLabel("x", timingDisplayGrid); + m_newGapDurationDisplay->setAlignment(int(TQLabel::AlignVCenter | + TQLabel::AlignRight)); if (maxDuration > 0) { - new QLabel(i18n("Unchanged at end of selection:"), timingDisplayGrid); + new TQLabel(i18n("Unchanged at end of selection:"), timingDisplayGrid); m_unchangedDurationCalculationDisplay = new QLabel ("x", timingDisplayGrid); - m_unchangedDurationDisplay = new QLabel("x", timingDisplayGrid); - m_unchangedDurationDisplay->setAlignment(int(QLabel::AlignVCenter | - QLabel::AlignRight)); + m_unchangedDurationDisplay = new TQLabel("x", timingDisplayGrid); + m_unchangedDurationDisplay->setAlignment(int(TQLabel::AlignVCenter | + TQLabel::AlignRight)); } else { m_unchangedDurationDisplay = 0; @@ -159,18 +159,18 @@ TupletDialog::TupletDialog(QWidget *parent, Note::Type defaultUnitType, updateTimingDisplays(); - QObject::connect(m_unitCombo, SIGNAL(activated(const QString &)), - this, SLOT(slotUnitChanged(const QString &))); + TQObject::connect(m_unitCombo, TQT_SIGNAL(activated(const TQString &)), + this, TQT_SLOT(slotUnitChanged(const TQString &))); - QObject::connect(m_untupledCombo, SIGNAL(activated(const QString &)), - this, SLOT(slotUntupledChanged(const QString &))); - QObject::connect(m_untupledCombo, SIGNAL(textChanged(const QString &)), - this, SLOT(slotUntupledChanged(const QString &))); + TQObject::connect(m_untupledCombo, TQT_SIGNAL(activated(const TQString &)), + this, TQT_SLOT(slotUntupledChanged(const TQString &))); + TQObject::connect(m_untupledCombo, TQT_SIGNAL(textChanged(const TQString &)), + this, TQT_SLOT(slotUntupledChanged(const TQString &))); - QObject::connect(m_tupledCombo, SIGNAL(activated(const QString &)), - this, SLOT(slotTupledChanged(const QString &))); - QObject::connect(m_tupledCombo, SIGNAL(textChanged(const QString &)), - this, SLOT(slotTupledChanged(const QString &))); + TQObject::connect(m_tupledCombo, TQT_SIGNAL(activated(const TQString &)), + this, TQT_SLOT(slotTupledChanged(const TQString &))); + TQObject::connect(m_tupledCombo, TQT_SIGNAL(textChanged(const TQString &)), + this, TQT_SLOT(slotTupledChanged(const TQString &))); } void @@ -235,10 +235,10 @@ TupletDialog::updateUntupledCombo() } } - QString previousText = m_untupledCombo->currentText(); + TQString previousText = m_untupledCombo->currentText(); if (previousText.toInt() == 0) { if (maxValue < 3) - previousText = QString("%1").arg(maxValue); + previousText = TQString("%1").arg(maxValue); else previousText = "3"; } @@ -247,7 +247,7 @@ TupletDialog::updateUntupledCombo() bool setText = false; for (int i = 1; i <= maxValue; ++i) { - QString text = QString("%1").arg(i); + TQString text = TQString("%1").arg(i); m_untupledCombo->insertItem(text); if (m_hasTimingAlready->isChecked()) { if (i == (m_maxDuration * 3) / (Note(getUnitType()).getDuration()*2)) { @@ -274,11 +274,11 @@ TupletDialog::updateTupledCombo() int untupled = getUntupledCount(); - QString previousText = m_tupledCombo->currentText(); + TQString previousText = m_tupledCombo->currentText(); if (previousText.toInt() == 0 || previousText.toInt() > untupled) { if (untupled < 2) - previousText = QString("%1").arg(untupled); + previousText = TQString("%1").arg(untupled); else previousText = "2"; } @@ -286,7 +286,7 @@ TupletDialog::updateTupledCombo() m_tupledCombo->clear(); for (int i = 1; i < untupled; ++i) { - QString text = QString("%1").arg(i); + TQString text = TQString("%1").arg(i); m_tupledCombo->insertItem(text); if (m_hasTimingAlready->isChecked()) { if (i == m_maxDuration / Note(getUnitType()).getDuration()) { @@ -310,38 +310,38 @@ TupletDialog::updateTimingDisplays() timeT tupledDuration = unitDuration * tupledCount; if (m_selectionDurationDisplay) { - m_selectionDurationDisplay->setText(QString("%1").arg(m_maxDuration)); + m_selectionDurationDisplay->setText(TQString("%1").arg(m_maxDuration)); } m_untupledDurationCalculationDisplay->setText - (QString(" %1 x %2 = ").arg(untupledCount).arg(unitDuration)); + (TQString(" %1 x %2 = ").arg(untupledCount).arg(unitDuration)); m_untupledDurationDisplay->setText - (QString("%1").arg(untupledDuration)); + (TQString("%1").arg(untupledDuration)); m_tupledDurationCalculationDisplay->setText - (QString(" %1 x %2 = ").arg(tupledCount).arg(unitDuration)); + (TQString(" %1 x %2 = ").arg(tupledCount).arg(unitDuration)); m_tupledDurationDisplay->setText - (QString("%1").arg(tupledDuration)); + (TQString("%1").arg(tupledDuration)); m_newGapDurationCalculationDisplay->setText - (QString(" %1 - %2 = ").arg(untupledDuration).arg(tupledDuration)); + (TQString(" %1 - %2 = ").arg(untupledDuration).arg(tupledDuration)); m_newGapDurationDisplay->setText - (QString("%1").arg(untupledDuration - tupledDuration)); + (TQString("%1").arg(untupledDuration - tupledDuration)); if (m_selectionDurationDisplay && m_unchangedDurationDisplay) { if (m_maxDuration != untupledDuration) { m_unchangedDurationCalculationDisplay->setText - (QString(" %1 - %2 = ").arg(m_maxDuration).arg(untupledDuration)); + (TQString(" %1 - %2 = ").arg(m_maxDuration).arg(untupledDuration)); } else { m_unchangedDurationCalculationDisplay->setText(""); } m_unchangedDurationDisplay->setText - (QString("%1").arg(m_maxDuration - untupledDuration)); + (TQString("%1").arg(m_maxDuration - untupledDuration)); } } void -TupletDialog::slotUnitChanged(const QString &) +TupletDialog::slotUnitChanged(const TQString &) { updateUntupledCombo(); updateTupledCombo(); @@ -349,14 +349,14 @@ TupletDialog::slotUnitChanged(const QString &) } void -TupletDialog::slotUntupledChanged(const QString &) +TupletDialog::slotUntupledChanged(const TQString &) { updateTupledCombo(); updateTimingDisplays(); } void -TupletDialog::slotTupledChanged(const QString &) +TupletDialog::slotTupledChanged(const TQString &) { updateTimingDisplays(); } diff --git a/src/gui/dialogs/TupletDialog.h b/src/gui/dialogs/TupletDialog.h index bc7252b..ae57ca9 100644 --- a/src/gui/dialogs/TupletDialog.h +++ b/src/gui/dialogs/TupletDialog.h @@ -31,11 +31,11 @@ #include "base/Event.h" -class QWidget; -class QString; -class QLabel; -class QGroupBox; -class QCheckBox; +class TQWidget; +class TQString; +class TQLabel; +class TQGroupBox; +class TQCheckBox; class KComboBox; @@ -49,7 +49,7 @@ class TupletDialog : public KDialogBase Q_OBJECT public: - TupletDialog(QWidget *parent, + TupletDialog(TQWidget *parent, Note::Type defaultUnitType, timeT maxDuration = 0); @@ -59,9 +59,9 @@ public: bool hasTimingAlready() const; public slots: - void slotUnitChanged(const QString &); - void slotUntupledChanged(const QString &); - void slotTupledChanged(const QString &); + void slotUnitChanged(const TQString &); + void slotUntupledChanged(const TQString &); + void slotTupledChanged(const TQString &); void slotHasTimingChanged(); protected: @@ -76,18 +76,18 @@ protected: KComboBox *m_untupledCombo; KComboBox *m_tupledCombo; - QCheckBox *m_hasTimingAlready; - - QGroupBox *m_timingDisplayBox; - QLabel *m_selectionDurationDisplay; - QLabel *m_untupledDurationCalculationDisplay; - QLabel *m_untupledDurationDisplay; - QLabel *m_tupledDurationCalculationDisplay; - QLabel *m_tupledDurationDisplay; - QLabel *m_newGapDurationCalculationDisplay; - QLabel *m_newGapDurationDisplay; - QLabel *m_unchangedDurationCalculationDisplay; - QLabel *m_unchangedDurationDisplay; + TQCheckBox *m_hasTimingAlready; + + TQGroupBox *m_timingDisplayBox; + TQLabel *m_selectionDurationDisplay; + TQLabel *m_untupledDurationCalculationDisplay; + TQLabel *m_untupledDurationDisplay; + TQLabel *m_tupledDurationCalculationDisplay; + TQLabel *m_tupledDurationDisplay; + TQLabel *m_newGapDurationCalculationDisplay; + TQLabel *m_newGapDurationDisplay; + TQLabel *m_unchangedDurationCalculationDisplay; + TQLabel *m_unchangedDurationDisplay; timeT m_maxDuration; }; diff --git a/src/gui/dialogs/UnusedAudioSelectionDialog.cpp b/src/gui/dialogs/UnusedAudioSelectionDialog.cpp index 0a44168..b15fe07 100644 --- a/src/gui/dialogs/UnusedAudioSelectionDialog.cpp +++ b/src/gui/dialogs/UnusedAudioSelectionDialog.cpp @@ -28,25 +28,25 @@ #include <klocale.h> #include <kdialogbase.h> #include <klistview.h> -#include <qfileinfo.h> -#include <qlabel.h> -#include <qlistview.h> -#include <qstring.h> -#include <qvbox.h> -#include <qwidget.h> +#include <tqfileinfo.h> +#include <tqlabel.h> +#include <tqlistview.h> +#include <tqstring.h> +#include <tqvbox.h> +#include <tqwidget.h> namespace Rosegarden { -UnusedAudioSelectionDialog::UnusedAudioSelectionDialog(QWidget *parent, - QString introductoryText, - std::vector<QString> fileNames, +UnusedAudioSelectionDialog::UnusedAudioSelectionDialog(TQWidget *parent, + TQString introductoryText, + std::vector<TQString> fileNames, bool offerCancel) : KDialogBase(parent, 0, true, i18n("Select Unused Audio Files"), (offerCancel ? (Ok | Cancel) : Ok)) { - QVBox *vbox = makeVBoxMainWidget(); - new QLabel(introductoryText, vbox); + TQVBox *vbox = makeVBoxMainWidget(); + new TQLabel(introductoryText, vbox); m_listView = new KListView(vbox); @@ -55,27 +55,27 @@ UnusedAudioSelectionDialog::UnusedAudioSelectionDialog(QWidget *parent, m_listView->addColumn(i18n("Last modified date")); for (unsigned int i = 0; i < fileNames.size(); ++i) { - QString fileName = fileNames[i]; - QFileInfo info(fileName); - QString fileSize = i18n(" (not found) "); - QString fileDate; + TQString fileName = fileNames[i]; + TQFileInfo info(fileName); + TQString fileSize = i18n(" (not found) "); + TQString fileDate; if (info.exists()) { - fileSize = QString(" %1 ").arg(info.size()); - fileDate = QString(" %1 ").arg(info.lastModified().toString()); + fileSize = TQString(" %1 ").arg(info.size()); + fileDate = TQString(" %1 ").arg(info.lastModified().toString()); } - QListViewItem *item = new KListViewItem + TQListViewItem *item = new KListViewItem (m_listView, fileName, fileSize, fileDate); } - m_listView->setSelectionMode(QListView::Multi); + m_listView->setSelectionMode(TQListView::Multi); } -std::vector<QString> +std::vector<TQString> UnusedAudioSelectionDialog::getSelectedAudioFileNames() const { - std::vector<QString> selectedNames; + std::vector<TQString> selectedNames; - QListViewItem *item = m_listView->firstChild(); + TQListViewItem *item = m_listView->firstChild(); while (item) { diff --git a/src/gui/dialogs/UnusedAudioSelectionDialog.h b/src/gui/dialogs/UnusedAudioSelectionDialog.h index e11301a..7b6b4b4 100644 --- a/src/gui/dialogs/UnusedAudioSelectionDialog.h +++ b/src/gui/dialogs/UnusedAudioSelectionDialog.h @@ -27,12 +27,12 @@ #define _RG_UNUSEDAUDIOSELECTIONDIALOG_H_ #include <kdialogbase.h> -#include <qstring.h> +#include <tqstring.h> #include <vector> -class QWidget; -class QListView; +class TQWidget; +class TQListView; namespace Rosegarden @@ -43,15 +43,15 @@ namespace Rosegarden class UnusedAudioSelectionDialog : public KDialogBase { public: - UnusedAudioSelectionDialog(QWidget *, - QString introductoryText, - std::vector<QString> fileNames, + UnusedAudioSelectionDialog(TQWidget *, + TQString introductoryText, + std::vector<TQString> fileNames, bool offerCancel = true); - std::vector<QString> getSelectedAudioFileNames() const; + std::vector<TQString> getSelectedAudioFileNames() const; protected: - QListView *m_listView; + TQListView *m_listView; }; diff --git a/src/gui/dialogs/UseOrnamentDialog.cpp b/src/gui/dialogs/UseOrnamentDialog.cpp index 971f170..b644a08 100644 --- a/src/gui/dialogs/UseOrnamentDialog.cpp +++ b/src/gui/dialogs/UseOrnamentDialog.cpp @@ -24,7 +24,7 @@ #include "UseOrnamentDialog.h" -#include <qlayout.h> +#include <tqlayout.h> #include <kapplication.h> #include "base/BaseProperties.h" @@ -38,34 +38,34 @@ #include <kcombobox.h> #include <kconfig.h> #include <kdialogbase.h> -#include <qcheckbox.h> -#include <qframe.h> -#include <qgroupbox.h> -#include <qlabel.h> -#include <qlineedit.h> -#include <qstring.h> -#include <qvbox.h> -#include <qwidget.h> +#include <tqcheckbox.h> +#include <tqframe.h> +#include <tqgroupbox.h> +#include <tqlabel.h> +#include <tqlineedit.h> +#include <tqstring.h> +#include <tqvbox.h> +#include <tqwidget.h> namespace Rosegarden { -UseOrnamentDialog::UseOrnamentDialog(QWidget *parent, +UseOrnamentDialog::UseOrnamentDialog(TQWidget *parent, Composition *composition) : KDialogBase(parent, "useornamentdialog", true, i18n("Use Ornament"), Ok | Cancel, Ok), m_composition(composition) { - QVBox *vbox = makeVBoxMainWidget(); - QLabel *label; + TQVBox *vbox = makeVBoxMainWidget(); + TQLabel *label; - QGroupBox *notationBox = new QGroupBox(1, Horizontal, i18n("Notation"), vbox); + TQGroupBox *notationBox = new TQGroupBox(1, Horizontal, i18n("Notation"), vbox); - QFrame *frame = new QFrame(notationBox); - QGridLayout *layout = new QGridLayout(frame, 4, 1, 5, 5); + TQFrame *frame = new TQFrame(notationBox); + TQGridLayout *layout = new TQGridLayout(frame, 4, 1, 5, 5); - label = new QLabel(i18n("Display as: "), frame); + label = new TQLabel(i18n("Display as: "), frame); layout->addWidget(label, 0, 0); m_mark = new KComboBox(frame); @@ -80,7 +80,7 @@ UseOrnamentDialog::UseOrnamentDialog(QWidget *parent, m_marks.push_back(Marks::MordentLong); m_marks.push_back(Marks::MordentLongInverted); - const QString markLabels[] = { + const TQString markLabels[] = { i18n("Trill"), i18n("Trill with line"), i18n("Trill line only"), i18n("Turn"), i18n("Mordent"), i18n("Inverted mordent"), i18n("Long mordent"), i18n("Long inverted mordent"), @@ -93,20 +93,20 @@ UseOrnamentDialog::UseOrnamentDialog(QWidget *parent, } m_mark->insertItem(i18n("Text mark")); - connect(m_mark, SIGNAL(activated(int)), this, SLOT(slotMarkChanged(int))); + connect(m_mark, TQT_SIGNAL(activated(int)), this, TQT_SLOT(slotMarkChanged(int))); - m_textLabel = new QLabel(i18n(" Text: "), frame); + m_textLabel = new TQLabel(i18n(" Text: "), frame); layout->addWidget(m_textLabel, 0, 2); - m_text = new QLineEdit(frame); + m_text = new TQLineEdit(frame); layout->addWidget(m_text, 0, 3); - QGroupBox *performBox = new QGroupBox(1, Horizontal, i18n("Performance"), vbox); + TQGroupBox *performBox = new TQGroupBox(1, Horizontal, i18n("Performance"), vbox); - frame = new QFrame(performBox); - layout = new QGridLayout(frame, 3, 2, 5, 5); + frame = new TQFrame(performBox); + layout = new TQGridLayout(frame, 3, 2, 5, 5); - label = new QLabel(i18n("Perform using triggered segment: "), frame); + label = new TQLabel(i18n("Perform using triggered segment: "), frame); layout->addWidget(label, 0, 0); m_ornament = new KComboBox(frame); @@ -117,10 +117,10 @@ UseOrnamentDialog::UseOrnamentDialog(QWidget *parent, m_composition->getTriggerSegments().begin(); i != m_composition->getTriggerSegments().end(); ++i) { m_ornament->insertItem - (QString("%1. %2").arg(n++).arg(strtoqstr((*i)->getSegment()->getLabel()))); + (TQString("%1. %2").arg(n++).arg(strtoqstr((*i)->getSegment()->getLabel()))); } - label = new QLabel(i18n("Perform with timing: "), frame); + label = new TQLabel(i18n("Perform with timing: "), frame); layout->addWidget(label, 1, 0); m_adjustTime = new KComboBox(frame); @@ -131,7 +131,7 @@ UseOrnamentDialog::UseOrnamentDialog(QWidget *parent, m_adjustTime->insertItem(i18n("End at same time as note")); m_adjustTime->insertItem(i18n("Stretch or squash segment to note duration")); - m_retune = new QCheckBox(i18n("Adjust pitch to note"), frame); + m_retune = new TQCheckBox(i18n("Adjust pitch to note"), frame); m_retune->setChecked(true); layout->addWidget(m_retune, 2, 1); diff --git a/src/gui/dialogs/UseOrnamentDialog.h b/src/gui/dialogs/UseOrnamentDialog.h index d721329..17e82b9 100644 --- a/src/gui/dialogs/UseOrnamentDialog.h +++ b/src/gui/dialogs/UseOrnamentDialog.h @@ -33,10 +33,10 @@ #include <vector> -class QWidget; -class QLineEdit; -class QLabel; -class QCheckBox; +class TQWidget; +class TQLineEdit; +class TQLabel; +class TQCheckBox; class KComboBox; @@ -51,7 +51,7 @@ class UseOrnamentDialog : public KDialogBase Q_OBJECT public: - UseOrnamentDialog(QWidget *parent, Composition *); + UseOrnamentDialog(TQWidget *parent, Composition *); TriggerSegmentId getId() const; Mark getMark() const; @@ -70,9 +70,9 @@ protected: Composition *m_composition; KComboBox *m_ornament; KComboBox *m_mark; - QLabel *m_textLabel; - QLineEdit *m_text; - QCheckBox *m_retune; + TQLabel *m_textLabel; + TQLineEdit *m_text; + TQCheckBox *m_retune; KComboBox *m_adjustTime; }; |