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/configuration | |
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/configuration')
24 files changed, 640 insertions, 640 deletions
diff --git a/src/gui/configuration/AudioConfigurationPage.cpp b/src/gui/configuration/AudioConfigurationPage.cpp index 28aff71..6361576 100644 --- a/src/gui/configuration/AudioConfigurationPage.cpp +++ b/src/gui/configuration/AudioConfigurationPage.cpp @@ -41,23 +41,23 @@ #include <kcombobox.h> #include <kconfig.h> #include <kfiledialog.h> -#include <qcheckbox.h> -#include <qcombobox.h> -#include <qcstring.h> -#include <qdatastream.h> -#include <qframe.h> -#include <qlabel.h> -#include <qlineedit.h> -#include <qobject.h> -#include <qpushbutton.h> -#include <qlayout.h> -#include <qslider.h> -#include <qspinbox.h> -#include <qstring.h> -#include <qstringlist.h> -#include <qtabwidget.h> -#include <qtooltip.h> -#include <qwidget.h> +#include <tqcheckbox.h> +#include <tqcombobox.h> +#include <tqcstring.h> +#include <tqdatastream.h> +#include <tqframe.h> +#include <tqlabel.h> +#include <tqlineedit.h> +#include <tqobject.h> +#include <tqpushbutton.h> +#include <tqlayout.h> +#include <tqslider.h> +#include <tqspinbox.h> +#include <tqstring.h> +#include <tqstringlist.h> +#include <tqtabwidget.h> +#include <tqtooltip.h> +#include <tqwidget.h> #include <kmessagebox.h> @@ -67,7 +67,7 @@ namespace Rosegarden AudioConfigurationPage::AudioConfigurationPage( RosegardenGUIDoc *doc, KConfig *cfg, - QWidget *parent, + TQWidget *parent, const char *name): TabbedConfigurationPage(cfg, parent, name), m_externalAudioEditorPath(0) @@ -77,10 +77,10 @@ AudioConfigurationPage::AudioConfigurationPage( m_cfg->setGroup(SequencerOptionsConfigGroup); - QFrame *frame = new QFrame(m_tabWidget); - QGridLayout *layout = new QGridLayout(frame, 7, 2, 10, 5); + TQFrame *frame = new TQFrame(m_tabWidget); + TQGridLayout *layout = new TQGridLayout(frame, 7, 2, 10, 5); - QLabel *label = 0; + TQLabel *label = 0; int row = 0; @@ -89,7 +89,7 @@ AudioConfigurationPage::AudioConfigurationPage( layout->setRowSpacing(row, 15); ++row; - layout->addWidget(new QLabel(i18n("Audio preview scale"), + layout->addWidget(new TQLabel(i18n("Audio preview scale"), frame), row, 0); m_previewStyle = new KComboBox(frame); @@ -102,7 +102,7 @@ AudioConfigurationPage::AudioConfigurationPage( #ifdef HAVE_LIBJACK m_cfg->setGroup(SequencerOptionsConfigGroup); - label = new QLabel(i18n("Record audio files as"), frame); + label = new TQLabel(i18n("Record audio files as"), frame); m_audioRecFormat = new KComboBox(frame); m_audioRecFormat->insertItem(i18n("16-bit PCM WAV format (smaller files)")); m_audioRecFormat->insertItem(i18n("32-bit float WAV format (higher quality)")); @@ -114,14 +114,14 @@ AudioConfigurationPage::AudioConfigurationPage( m_cfg->setGroup(GeneralOptionsConfigGroup); - layout->addWidget(new QLabel(i18n("External audio editor"), frame), + layout->addWidget(new TQLabel(i18n("External audio editor"), frame), row, 0); - QString defaultAudioEditor = getBestAvailableAudioEditor(); + TQString defaultAudioEditor = getBestAvailableAudioEditor(); std::cerr << "defaultAudioEditor = " << defaultAudioEditor << std::endl; - QString externalAudioEditor = m_cfg->readEntry("externalaudioeditor", + TQString externalAudioEditor = m_cfg->readEntry("externalaudioeditor", defaultAudioEditor); if (externalAudioEditor == "") { @@ -129,32 +129,32 @@ AudioConfigurationPage::AudioConfigurationPage( m_cfg->writeEntry("externalaudioeditor", externalAudioEditor); } - m_externalAudioEditorPath = new QLineEdit(externalAudioEditor, frame); + m_externalAudioEditorPath = new TQLineEdit(externalAudioEditor, frame); // m_externalAudioEditorPath->setMinimumWidth(150); layout->addWidget(m_externalAudioEditorPath, row, 1); - QPushButton *changePathButton = - new QPushButton(i18n("Choose..."), frame); + TQPushButton *changePathButton = + new TQPushButton(i18n("Choose..."), frame); layout->addWidget(changePathButton, row, 2); - connect(changePathButton, SIGNAL(clicked()), SLOT(slotFileDialog())); + connect(changePathButton, TQT_SIGNAL(clicked()), TQT_SLOT(slotFileDialog())); ++row; m_cfg->setGroup(SequencerOptionsConfigGroup); - layout->addWidget(new QLabel(i18n("Create JACK outputs"), frame), + layout->addWidget(new TQLabel(i18n("Create JACK outputs"), frame), row, 0); // ++row; #ifdef HAVE_LIBJACK - m_createFaderOuts = new QCheckBox(i18n("for individual audio instruments"), frame); + m_createFaderOuts = new TQCheckBox(i18n("for individual audio instruments"), frame); m_createFaderOuts->setChecked(m_cfg->readBoolEntry("audiofaderouts", false)); // layout->addWidget(label, row, 0, Qt::AlignRight); layout->addWidget(m_createFaderOuts, row, 1); ++row; - m_createSubmasterOuts = new QCheckBox(i18n("for submasters"), frame); + m_createSubmasterOuts = new TQCheckBox(i18n("for submasters"), frame); m_createSubmasterOuts->setChecked(m_cfg->readBoolEntry("audiosubmasterouts", false)); @@ -173,15 +173,15 @@ AudioConfigurationPage::AudioConfigurationPage( #define OFFER_JACK_START_OPTION 1 #ifdef OFFER_JACK_START_OPTION - frame = new QFrame(m_tabWidget); - layout = new QGridLayout(frame, 8, 4, 10, 5); + frame = new TQFrame(m_tabWidget); + layout = new TQGridLayout(frame, 8, 4, 10, 5); row = 0; layout->setRowSpacing(row, 15); ++row; - label = new QLabel(i18n("Rosegarden can start the JACK audio daemon (jackd) for you automatically if it isn't already running when Rosegarden starts.\n\nThis is recommended for beginners and those who use Rosegarden as their main audio application, but it might not be to the liking of advanced users.\n\nIf you want to start JACK automatically, make sure the command includes a full path where necessary as well as any command-line arguments you want to use.\n\nFor example: /usr/local/bin/jackd -d alsa -d hw -r44100 -p 2048 -n 2\n\n"), frame); + label = new TQLabel(i18n("Rosegarden can start the JACK audio daemon (jackd) for you automatically if it isn't already running when Rosegarden starts.\n\nThis is recommended for beginners and those who use Rosegarden as their main audio application, but it might not be to the liking of advanced users.\n\nIf you want to start JACK automatically, make sure the command includes a full path where necessary as well as any command-line arguments you want to use.\n\nFor example: /usr/local/bin/jackd -d alsa -d hw -r44100 -p 2048 -n 2\n\n"), frame); label->setAlignment(Qt::WordBreak); layout->addMultiCellWidget(label, row, row, 0, 3); @@ -190,21 +190,21 @@ AudioConfigurationPage::AudioConfigurationPage( // JACK control things // bool startJack = m_cfg->readBoolEntry("jackstart", false); - m_startJack = new QCheckBox(frame); + m_startJack = new TQCheckBox(frame); m_startJack->setChecked(startJack); - layout->addWidget(new QLabel(i18n("Start JACK when Rosegarden starts"), frame), 2, 0); + layout->addWidget(new TQLabel(i18n("Start JACK when Rosegarden starts"), frame), 2, 0); layout->addWidget(m_startJack, row, 1); ++row; - layout->addWidget(new QLabel(i18n("JACK command"), frame), + layout->addWidget(new TQLabel(i18n("JACK command"), frame), row, 0); - QString jackPath = m_cfg->readEntry("jackcommand", + TQString jackPath = m_cfg->readEntry("jackcommand", // "/usr/local/bin/jackd -d alsa -d hw -r 44100 -p 2048 -n 2"); "/usr/bin/qjackctl -s"); - m_jackPath = new QLineEdit(jackPath, frame); + m_jackPath = new TQLineEdit(jackPath, frame); layout->addMultiCellWidget(m_jackPath, row, row, 1, 3); ++row; @@ -221,7 +221,7 @@ AudioConfigurationPage::AudioConfigurationPage( void AudioConfigurationPage::slotFileDialog() { - QString path = KFileDialog::getOpenFileName(QString::null, QString::null, this, i18n("External audio editor path")); + TQString path = KFileDialog::getOpenFileName(TQString::null, TQString::null, this, i18n("External audio editor path")); m_externalAudioEditorPath->setText(path); } @@ -250,14 +250,14 @@ AudioConfigurationPage::apply() int previewstyle = m_previewStyle->currentItem(); m_cfg->writeEntry("audiopreviewstyle", previewstyle); - QString externalAudioEditor = getExternalAudioEditor(); + TQString externalAudioEditor = getExternalAudioEditor(); - QStringList extlist = QStringList::split(" ", externalAudioEditor); - QString extpath = ""; + TQStringList extlist = TQStringList::split(" ", externalAudioEditor); + TQString extpath = ""; if (extlist.size() > 0) extpath = extlist[0]; if (extpath != "") { - QFileInfo info(extpath); + TQFileInfo info(extpath); if (!info.exists() || !info.isExecutable()) { KMessageBox::error(0, i18n("External audio editor \"%1\" not found or not executable").arg(extpath)); m_cfg->writeEntry("externalaudioeditor", ""); @@ -272,17 +272,17 @@ AudioConfigurationPage::apply() QString AudioConfigurationPage::getBestAvailableAudioEditor() { - static QString result = ""; + static TQString result = ""; static bool haveResult = false; if (haveResult) return result; - QString path; + TQString path; const char *cpath = getenv("PATH"); if (cpath) path = cpath; else path = "/usr/bin:/bin"; - QStringList pathList = QStringList::split(":", path); + TQStringList pathList = TQStringList::split(":", path); const char *candidates[] = { "mhwaveedit", @@ -294,19 +294,19 @@ AudioConfigurationPage::getBestAvailableAudioEditor() i < sizeof(candidates)/sizeof(candidates[0]) && result == ""; i++) { - QString n(candidates[i]); + TQString n(candidates[i]); for (int j = 0; j < pathList.size() && result == ""; j++) { - QDir dir(pathList[j]); - QString fp(dir.filePath(n)); - QFileInfo fi(fp); + TQDir dir(pathList[j]); + TQString fp(dir.filePath(n)); + TQFileInfo fi(fp); if (fi.exists() && fi.isExecutable()) { if (n == "rezound") { - result = QString("%1 --audio-method=jack").arg(fp); + result = TQString("%1 --audio-method=jack").arg(fp); } else { result = fp; } diff --git a/src/gui/configuration/AudioConfigurationPage.h b/src/gui/configuration/AudioConfigurationPage.h index bd71df6..2b678aa 100644 --- a/src/gui/configuration/AudioConfigurationPage.h +++ b/src/gui/configuration/AudioConfigurationPage.h @@ -26,17 +26,17 @@ #define _RG_AUDIOCONFIGURATIONPAGE_H_ #include "TabbedConfigurationPage.h" -#include <qstring.h> +#include <tqstring.h> #include <klocale.h> -#include <qlineedit.h> - -class QWidget; -class QSpinBox; -class QSlider; -class QPushButton; -class QLabel; -class QComboBox; -class QCheckBox; +#include <tqlineedit.h> + +class TQWidget; +class TQSpinBox; +class TQSlider; +class TQPushButton; +class TQLabel; +class TQComboBox; +class TQCheckBox; class KConfig; class KComboBox; @@ -53,33 +53,33 @@ class AudioConfigurationPage : public TabbedConfigurationPage public: AudioConfigurationPage(RosegardenGUIDoc *doc, KConfig *cfg, - QWidget *parent=0, + TQWidget *parent=0, const char *name=0); virtual void apply(); - static QString iconLabel() { return i18n("Audio"); } - static QString title() { return i18n("Audio Settings"); } - static QString iconName() { return "configure-audio"; } + static TQString iconLabel() { return i18n("Audio"); } + static TQString title() { return i18n("Audio Settings"); } + static TQString iconName() { return "configure-audio"; } #ifdef HAVE_LIBJACK - QString getJackPath() { return m_jackPath->text(); } + TQString getJackPath() { return m_jackPath->text(); } #endif // HAVE_LIBJACK - static QString getBestAvailableAudioEditor(); + static TQString getBestAvailableAudioEditor(); protected slots: void slotFileDialog(); protected: - QString getExternalAudioEditor() { return m_externalAudioEditorPath->text(); } + TQString getExternalAudioEditor() { return m_externalAudioEditorPath->text(); } //--------------- Data members --------------------------------- #ifdef HAVE_LIBJACK - QCheckBox *m_startJack; - QLineEdit *m_jackPath; + TQCheckBox *m_startJack; + TQLineEdit *m_jackPath; #endif // HAVE_LIBJACK @@ -88,15 +88,15 @@ protected: // this decides how many audio input destinations // we have. // - QCheckBox *m_createFaderOuts; - QCheckBox *m_createSubmasterOuts; + TQCheckBox *m_createFaderOuts; + TQCheckBox *m_createSubmasterOuts; - QComboBox *m_audioRecFormat; + TQComboBox *m_audioRecFormat; #endif // HAVE_LIBJACK - QLineEdit* m_externalAudioEditorPath; - QComboBox* m_previewStyle; + TQLineEdit* m_externalAudioEditorPath; + TQComboBox* m_previewStyle; }; diff --git a/src/gui/configuration/AudioPropertiesPage.cpp b/src/gui/configuration/AudioPropertiesPage.cpp index 65d574e..9d0191e 100644 --- a/src/gui/configuration/AudioPropertiesPage.cpp +++ b/src/gui/configuration/AudioPropertiesPage.cpp @@ -36,46 +36,46 @@ #include <kdiskfreesp.h> #include <kfiledialog.h> #include <kfile.h> -#include <qcstring.h> -#include <qdatastream.h> -#include <qdialog.h> -#include <qframe.h> -#include <qlabel.h> -#include <qpushbutton.h> -#include <qstring.h> -#include <qtabwidget.h> -#include <qwidget.h> -#include <qlayout.h> +#include <tqcstring.h> +#include <tqdatastream.h> +#include <tqdialog.h> +#include <tqframe.h> +#include <tqlabel.h> +#include <tqpushbutton.h> +#include <tqstring.h> +#include <tqtabwidget.h> +#include <tqwidget.h> +#include <tqlayout.h> namespace Rosegarden { AudioPropertiesPage::AudioPropertiesPage(RosegardenGUIDoc *doc, - QWidget *parent, + TQWidget *parent, const char *name) : TabbedConfigurationPage(doc, parent, name) { AudioFileManager &afm = doc->getAudioFileManager(); - QFrame *frame = new QFrame(m_tabWidget); - QGridLayout *layout = new QGridLayout(frame, 4, 3, 10, 5); - layout->addWidget(new QLabel(i18n("Audio file path:"), frame), 0, 0); - m_path = new QLabel(QString(afm.getAudioPath().c_str()), frame); + TQFrame *frame = new TQFrame(m_tabWidget); + TQGridLayout *layout = new TQGridLayout(frame, 4, 3, 10, 5); + layout->addWidget(new TQLabel(i18n("Audio file path:"), frame), 0, 0); + m_path = new TQLabel(TQString(afm.getAudioPath().c_str()), frame); layout->addWidget(m_path, 0, 1); m_changePathButton = - new QPushButton(i18n("Choose..."), frame); + new TQPushButton(i18n("Choose..."), frame); layout->addWidget(m_changePathButton, 0, 2); - m_diskSpace = new QLabel(frame); - layout->addWidget(new QLabel(i18n("Disk space remaining:"), frame), 1, 0); + m_diskSpace = new TQLabel(frame); + layout->addWidget(new TQLabel(i18n("Disk space remaining:"), frame), 1, 0); layout->addWidget(m_diskSpace, 1, 1); - m_minutesAtStereo = new QLabel(frame); + m_minutesAtStereo = new TQLabel(frame); layout->addWidget( - new QLabel(i18n("Equivalent minutes of 16-bit stereo:"), + new TQLabel(i18n("Equivalent minutes of 16-bit stereo:"), frame), 2, 0); layout->addWidget(m_minutesAtStereo, 2, 1, AlignCenter); @@ -84,8 +84,8 @@ AudioPropertiesPage::AudioPropertiesPage(RosegardenGUIDoc *doc, calculateStats(); - connect(m_changePathButton, SIGNAL(released()), - SLOT(slotFileDialog())); + connect(m_changePathButton, TQT_SIGNAL(released()), + TQT_SLOT(slotFileDialog())); addTab(frame, i18n("Modify audio path")); } @@ -95,17 +95,17 @@ AudioPropertiesPage::calculateStats() { // This stolen from KDE libs kfile/kpropertiesdialog.cpp // - QString mountPoint = KIO::findPathMountPoint(m_path->text()); + TQString mountPoint = KIO::findPathMountPoint(m_path->text()); KDiskFreeSp * job = new KDiskFreeSp; - connect(job, SIGNAL(foundMountPoint(const QString&, unsigned long, unsigned long, + connect(job, TQT_SIGNAL(foundMountPoint(const TQString&, unsigned long, unsigned long, unsigned long)), - this, SLOT(slotFoundMountPoint(const QString&, unsigned long, unsigned long, + this, TQT_SLOT(slotFoundMountPoint(const TQString&, unsigned long, unsigned long, unsigned long))); job->readDF(mountPoint); } void -AudioPropertiesPage::slotFoundMountPoint(const QString&, +AudioPropertiesPage::slotFoundMountPoint(const TQString&, unsigned long kBSize, unsigned long /*kBUsed*/, unsigned long kBAvail ) @@ -119,12 +119,12 @@ AudioPropertiesPage::slotFoundMountPoint(const QString&, AudioPluginManager *apm = m_doc->getPluginManager(); int sampleRate = 48000; - 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; sampleRate = result; @@ -136,11 +136,11 @@ AudioPropertiesPage::slotFoundMountPoint(const QString&, // float stereoMins = ( float(kBAvail) * 1024.0 ) / ( float(sampleRate) * 2.0 * 2.0 * 60.0 ); - QString minsStr; + TQString minsStr; minsStr.sprintf("%8.1f", stereoMins); m_minutesAtStereo-> - setText(QString("%1 %2 %3Hz").arg(minsStr) + setText(TQString("%1 %2 %3Hz").arg(minsStr) .arg(i18n("minutes at")) .arg(sampleRate)); } @@ -150,18 +150,18 @@ AudioPropertiesPage::slotFileDialog() { AudioFileManager &afm = m_doc->getAudioFileManager(); - KFileDialog *fileDialog = new KFileDialog(QString(afm.getAudioPath().c_str()), - QString::null, + KFileDialog *fileDialog = new KFileDialog(TQString(afm.getAudioPath().c_str()), + TQString::null, this, "file dialog", true); fileDialog->setMode(KFile::Directory); - connect(fileDialog, SIGNAL(fileSelected(const QString&)), - SLOT(slotFileSelected(const QString&))); + connect(fileDialog, TQT_SIGNAL(fileSelected(const TQString&)), + TQT_SLOT(slotFileSelected(const TQString&))); - connect(fileDialog, SIGNAL(destroyed()), - SLOT(slotDirectoryDialogClosed())); + connect(fileDialog, TQT_SIGNAL(destroyed()), + TQT_SLOT(slotDirectoryDialogClosed())); - if (fileDialog->exec() == QDialog::Accepted) { + if (fileDialog->exec() == TQDialog::Accepted) { m_path->setText(fileDialog->selectedFile()); calculateStats(); } @@ -172,7 +172,7 @@ void AudioPropertiesPage::apply() { AudioFileManager &afm = m_doc->getAudioFileManager(); - QString newDir = m_path->text(); + TQString newDir = m_path->text(); if (!newDir.isNull()) { afm.setAudioPath(qstrtostr(newDir)); diff --git a/src/gui/configuration/AudioPropertiesPage.h b/src/gui/configuration/AudioPropertiesPage.h index f21fecc..0c9d15f 100644 --- a/src/gui/configuration/AudioPropertiesPage.h +++ b/src/gui/configuration/AudioPropertiesPage.h @@ -27,13 +27,13 @@ #define _RG_AUDIOPROPERTIESPAGE_H_ #include "TabbedConfigurationPage.h" -#include <qstring.h> +#include <tqstring.h> #include <klocale.h> -class QWidget; -class QPushButton; -class QLabel; +class TQWidget; +class TQPushButton; +class TQLabel; namespace Rosegarden @@ -52,12 +52,12 @@ class AudioPropertiesPage : public TabbedConfigurationPage Q_OBJECT public: AudioPropertiesPage(RosegardenGUIDoc *doc, - QWidget *parent=0, const char *name=0); + TQWidget *parent=0, const char *name=0); virtual void apply(); - static QString iconLabel() { return i18n("Audio"); } - static QString title() { return i18n("Audio Settings"); } - static QString iconName() { return "configure-audio"; } + static TQString iconLabel() { return i18n("Audio"); } + static TQString title() { return i18n("Audio Settings"); } + static TQString iconName() { return "configure-audio"; } protected slots: void slotFileDialog(); @@ -67,7 +67,7 @@ protected slots: // void calculateStats(); - void slotFoundMountPoint(const QString&, + void slotFoundMountPoint(const TQString&, unsigned long kBSize, unsigned long kBUsed, unsigned long kBAvail); @@ -76,11 +76,11 @@ protected: //--------------- Data members --------------------------------- - QLabel *m_path; - QLabel *m_diskSpace; - QLabel *m_minutesAtStereo; + TQLabel *m_path; + TQLabel *m_diskSpace; + TQLabel *m_minutesAtStereo; - QPushButton *m_changePathButton; + TQPushButton *m_changePathButton; }; diff --git a/src/gui/configuration/ColourConfigurationPage.cpp b/src/gui/configuration/ColourConfigurationPage.cpp index f87cf20..975e00d 100644 --- a/src/gui/configuration/ColourConfigurationPage.cpp +++ b/src/gui/configuration/ColourConfigurationPage.cpp @@ -39,25 +39,25 @@ #include <kcolordialog.h> #include <kconfig.h> #include <kinputdialog.h> -#include <qcolor.h> -#include <qframe.h> -#include <qpushbutton.h> -#include <qstring.h> -#include <qtabwidget.h> -#include <qwidget.h> -#include <qlayout.h> +#include <tqcolor.h> +#include <tqframe.h> +#include <tqpushbutton.h> +#include <tqstring.h> +#include <tqtabwidget.h> +#include <tqwidget.h> +#include <tqlayout.h> namespace Rosegarden { ColourConfigurationPage::ColourConfigurationPage(RosegardenGUIDoc *doc, - QWidget *parent, + TQWidget *parent, const char *name) : TabbedConfigurationPage(doc, parent, name) { - QFrame *frame = new QFrame(m_tabWidget); - QGridLayout *layout = new QGridLayout(frame, 2, 2, + TQFrame *frame = new TQFrame(m_tabWidget); + TQGridLayout *layout = new TQGridLayout(frame, 2, 2, 10, 5); m_map = m_doc->getComposition().getSegmentColourMap(); @@ -67,42 +67,42 @@ ColourConfigurationPage::ColourConfigurationPage(RosegardenGUIDoc *doc, layout->addMultiCellWidget(m_colourtable, 0, 0, 0, 1); - QPushButton* addColourButton = new QPushButton(i18n("Add New Color"), + TQPushButton* addColourButton = new TQPushButton(i18n("Add New Color"), frame); layout->addWidget(addColourButton, 1, 0, Qt::AlignHCenter); - QPushButton* deleteColourButton = new QPushButton(i18n("Delete Color"), + TQPushButton* deleteColourButton = new TQPushButton(i18n("Delete Color"), frame); layout->addWidget(deleteColourButton, 1, 1, Qt::AlignHCenter); - connect(addColourButton, SIGNAL(clicked()), - this, SLOT(slotAddNew())); + connect(addColourButton, TQT_SIGNAL(clicked()), + this, TQT_SLOT(slotAddNew())); - connect(deleteColourButton, SIGNAL(clicked()), - this, SLOT(slotDelete())); + connect(deleteColourButton, TQT_SIGNAL(clicked()), + this, TQT_SLOT(slotDelete())); - connect(this, SIGNAL(docColoursChanged()), - m_doc, SLOT(slotDocColoursChanged())); + connect(this, TQT_SIGNAL(docColoursChanged()), + m_doc, TQT_SLOT(slotDocColoursChanged())); - connect(m_colourtable, SIGNAL(entryTextChanged(unsigned int, QString)), - this, SLOT(slotTextChanged(unsigned int, QString))); + connect(m_colourtable, TQT_SIGNAL(entryTextChanged(unsigned int, TQString)), + this, TQT_SLOT(slotTextChanged(unsigned int, TQString))); - connect(m_colourtable, SIGNAL(entryColourChanged(unsigned int, QColor)), - this, SLOT(slotColourChanged(unsigned int, QColor))); + connect(m_colourtable, TQT_SIGNAL(entryColourChanged(unsigned int, TQColor)), + this, TQT_SLOT(slotColourChanged(unsigned int, TQColor))); addTab(frame, i18n("Color Map")); } void -ColourConfigurationPage::slotTextChanged(unsigned int index, QString string) +ColourConfigurationPage::slotTextChanged(unsigned int index, TQString string) { m_map.modifyNameByIndex(m_listmap[index], string.ascii()); m_colourtable->populate_table(m_map, m_listmap); } void -ColourConfigurationPage::slotColourChanged(unsigned int index, QColor color) +ColourConfigurationPage::slotColourChanged(unsigned int index, TQColor color) { m_map.modifyColourByIndex(m_listmap[index], GUIPalette::convertColour(color)); m_colourtable->populate_table(m_map, m_listmap); @@ -121,11 +121,11 @@ ColourConfigurationPage::apply() void ColourConfigurationPage::slotAddNew() { - QColor temp; + TQColor temp; bool ok = false; - QString newName = KInputDialog::getText(i18n("New Color Name"), + TQString newName = KInputDialog::getText(i18n("New Color Name"), i18n("Enter new name"), i18n("New"), &ok); @@ -149,7 +149,7 @@ ColourConfigurationPage::slotAddNew() void ColourConfigurationPage::slotDelete() { - QTableSelection temp = m_colourtable->selection(0); + TQTableSelection temp = m_colourtable->selection(0); if ((!temp.isActive()) || (temp.topRow() == 0)) return ; diff --git a/src/gui/configuration/ColourConfigurationPage.h b/src/gui/configuration/ColourConfigurationPage.h index 9ef4ae0..2d3353d 100644 --- a/src/gui/configuration/ColourConfigurationPage.h +++ b/src/gui/configuration/ColourConfigurationPage.h @@ -29,11 +29,11 @@ #include "base/ColourMap.h" #include "gui/widgets/ColourTable.h" #include "TabbedConfigurationPage.h" -#include <qstring.h> +#include <tqstring.h> #include <klocale.h> -class QWidget; +class TQWidget; namespace Rosegarden @@ -52,14 +52,14 @@ class ColourConfigurationPage : public TabbedConfigurationPage Q_OBJECT public: ColourConfigurationPage(RosegardenGUIDoc *doc, - QWidget *parent=0, const char *name=0); + TQWidget *parent=0, const char *name=0); virtual void apply(); void populate_table(); - static QString iconLabel() { return i18n("Color"); } - static QString title() { return i18n("Color Settings"); } - static QString iconName() { return "colorize"; } + static TQString iconLabel() { return i18n("Color"); } + static TQString title() { return i18n("Color Settings"); } + static TQString iconName() { return "colorize"; } signals: void docColoursChanged(); @@ -67,8 +67,8 @@ signals: protected slots: void slotAddNew(); void slotDelete(); - void slotTextChanged(unsigned int, QString); - void slotColourChanged(unsigned int, QColor); + void slotTextChanged(unsigned int, TQString); + void slotColourChanged(unsigned int, TQColor); protected: ColourTable *m_colourtable; diff --git a/src/gui/configuration/ConfigurationPage.cpp b/src/gui/configuration/ConfigurationPage.cpp index 3f3730b..d0e2369 100644 --- a/src/gui/configuration/ConfigurationPage.cpp +++ b/src/gui/configuration/ConfigurationPage.cpp @@ -27,7 +27,7 @@ #include "document/RosegardenGUIDoc.h" #include <kconfig.h> -#include <qwidget.h> +#include <tqwidget.h> #include <algorithm> diff --git a/src/gui/configuration/ConfigurationPage.h b/src/gui/configuration/ConfigurationPage.h index 4a93195..d05296a 100644 --- a/src/gui/configuration/ConfigurationPage.h +++ b/src/gui/configuration/ConfigurationPage.h @@ -29,7 +29,7 @@ #ifndef _RG_CONFIGURATIONPAGE_H_ #define _RG_CONFIGURATIONPAGE_H_ -#include <qwidget.h> +#include <tqwidget.h> class KConfig; @@ -51,16 +51,16 @@ class ConfigurationPage : public QWidget public: ConfigurationPage(RosegardenGUIDoc *doc, - QWidget *parent=0, const char *name=0) - : QWidget(parent, name), m_doc(doc), m_cfg(0), m_pageIndex(0) {} + TQWidget *parent=0, const char *name=0) + : TQWidget(parent, name), m_doc(doc), m_cfg(0), m_pageIndex(0) {} ConfigurationPage(KConfig *cfg, - QWidget *parent=0, const char *name=0) - : QWidget(parent, name), m_doc(0), m_cfg(cfg), m_pageIndex(0) {} + TQWidget *parent=0, const char *name=0) + : TQWidget(parent, name), m_doc(0), m_cfg(cfg), m_pageIndex(0) {} ConfigurationPage(RosegardenGUIDoc *doc, KConfig *cfg, - QWidget *parent=0, const char *name=0) - : QWidget(parent, name), m_doc(doc), m_cfg(cfg), m_pageIndex(0) {} + TQWidget *parent=0, const char *name=0) + : TQWidget(parent, name), m_doc(doc), m_cfg(cfg), m_pageIndex(0) {} virtual ~ConfigurationPage() {}; diff --git a/src/gui/configuration/DocumentMetaConfigurationPage.cpp b/src/gui/configuration/DocumentMetaConfigurationPage.cpp index 9f5064b..b6479cc 100644 --- a/src/gui/configuration/DocumentMetaConfigurationPage.cpp +++ b/src/gui/configuration/DocumentMetaConfigurationPage.cpp @@ -44,22 +44,22 @@ #include "TabbedConfigurationPage.h" #include <kconfig.h> #include <klistview.h> -#include <qframe.h> -#include <qlabel.h> -#include <qlistview.h> -#include <qpixmap.h> -#include <qpushbutton.h> -#include <qstring.h> -#include <qtable.h> -#include <qtabwidget.h> -#include <qwidget.h> -#include <qlayout.h> +#include <tqframe.h> +#include <tqlabel.h> +#include <tqlistview.h> +#include <tqpixmap.h> +#include <tqpushbutton.h> +#include <tqstring.h> +#include <tqtable.h> +#include <tqtabwidget.h> +#include <tqwidget.h> +#include <tqlayout.h> namespace Rosegarden { -static QString durationToString(Rosegarden::Composition &comp, +static TQString durationToString(Rosegarden::Composition &comp, Rosegarden::timeT absTime, Rosegarden::timeT duration, Rosegarden::RealTime rt) @@ -74,11 +74,11 @@ static QString durationToString(Rosegarden::Composition &comp, class SegmentDataItem : public QTableItem { public: - SegmentDataItem(QTable *t, QString s) : - QTableItem(t, QTableItem::Never, s) { } + SegmentDataItem(TQTable *t, TQString s) : + TQTableItem(t, TQTableItem::Never, s) { } virtual int alignment() const { return Qt::AlignCenter; } - virtual QString key() const { + virtual TQString key() const { // It doesn't seem to be possible to specify a comparator so // as to get the right sorting for numeric items (what am I @@ -94,9 +94,9 @@ public: // assumption should hold for all current uses of this class, // but may need checking for future uses... - QString s(text()); + TQString s(text()); if (s[0].digitValue() >= 0) { - return QString("%1%2").arg(s.length()).arg(s); + return TQString("%1%2").arg(s.length()).arg(s); } else { return s; } @@ -104,7 +104,7 @@ public: }; DocumentMetaConfigurationPage::DocumentMetaConfigurationPage(RosegardenGUIDoc *doc, - QWidget *parent, + TQWidget *parent, const char *name) : TabbedConfigurationPage(doc, parent, name) { @@ -125,32 +125,32 @@ DocumentMetaConfigurationPage::DocumentMetaConfigurationPage(RosegardenGUIDoc *d ++internalSegments; } - QFrame *frame = new QFrame(m_tabWidget); - QGridLayout *layout = new QGridLayout(frame, + TQFrame *frame = new TQFrame(m_tabWidget); + TQGridLayout *layout = new TQGridLayout(frame, 6, 2, 10, 5); - layout->addWidget(new QLabel(i18n("Filename:"), frame), 0, 0); - layout->addWidget(new QLabel(doc->getTitle(), frame), 0, 1); + layout->addWidget(new TQLabel(i18n("Filename:"), frame), 0, 0); + layout->addWidget(new TQLabel(doc->getTitle(), frame), 0, 1); - layout->addWidget(new QLabel(i18n("Formal duration (to end marker):"), frame), 1, 0); + layout->addWidget(new TQLabel(i18n("Formal duration (to end marker):"), frame), 1, 0); timeT d = comp.getEndMarker(); RealTime rtd = comp.getElapsedRealTime(d); - layout->addWidget(new QLabel(durationToString(comp, 0, d, rtd), frame), 1, 1); + layout->addWidget(new TQLabel(durationToString(comp, 0, d, rtd), frame), 1, 1); - layout->addWidget(new QLabel(i18n("Playing duration:"), frame), 2, 0); + layout->addWidget(new TQLabel(i18n("Playing duration:"), frame), 2, 0); d = comp.getDuration(); rtd = comp.getElapsedRealTime(d); - layout->addWidget(new QLabel(durationToString(comp, 0, d, rtd), frame), 2, 1); + layout->addWidget(new TQLabel(durationToString(comp, 0, d, rtd), frame), 2, 1); - layout->addWidget(new QLabel(i18n("Tracks:"), frame), 3, 0); - layout->addWidget(new QLabel(i18n("%1 used, %2 total") + layout->addWidget(new TQLabel(i18n("Tracks:"), frame), 3, 0); + layout->addWidget(new TQLabel(i18n("%1 used, %2 total") .arg(usedTracks.size()) .arg(comp.getNbTracks()), frame), 3, 1); - layout->addWidget(new QLabel(i18n("Segments:"), frame), 4, 0); - layout->addWidget(new QLabel(i18n("%1 MIDI, %2 audio, %3 total") + layout->addWidget(new TQLabel(i18n("Segments:"), frame), 4, 0); + layout->addWidget(new TQLabel(i18n("%1 MIDI, %2 audio, %3 total") .arg(internalSegments) .arg(audioSegments) .arg(internalSegments + audioSegments), @@ -160,11 +160,11 @@ DocumentMetaConfigurationPage::DocumentMetaConfigurationPage(RosegardenGUIDoc *d addTab(frame, i18n("Statistics")); - frame = new QFrame(m_tabWidget); - layout = new QGridLayout(frame, 1, 1, 10, 5); + frame = new TQFrame(m_tabWidget); + layout = new TQGridLayout(frame, 1, 1, 10, 5); - QTable *table = new QTable(1, 11, frame, "Segment Table"); - table->setSelectionMode(QTable::NoSelection); + TQTable *table = new TQTable(1, 11, frame, "Segment Table"); + table->setSelectionMode(TQTable::NoSelection); table->setSorting(true); table->horizontalHeader()->setLabel(0, i18n("Type")); table->horizontalHeader()->setLabel(1, i18n("Track")); @@ -205,25 +205,25 @@ DocumentMetaConfigurationPage::DocumentMetaConfigurationPage(RosegardenGUIDoc *d table->setItem(i, 1, new SegmentDataItem (table, - QString("%1").arg(s->getTrack() + 1))); + TQString("%1").arg(s->getTrack() + 1))); - QPixmap colourPixmap(16, 16); + TQPixmap colourPixmap(16, 16); Colour colour = comp.getSegmentColourMap().getColourByIndex(s->getColourIndex()); colourPixmap.fill(GUIPalette::convertColour(colour)); table->setItem(i, 2, - new QTableItem(table, QTableItem::Never, + new TQTableItem(table, TQTableItem::Never, strtoqstr(s->getLabel()), colourPixmap)); table->setItem(i, 3, new SegmentDataItem (table, - QString("%1").arg(s->getStartTime()))); + TQString("%1").arg(s->getStartTime()))); table->setItem(i, 4, new SegmentDataItem (table, - QString("%1").arg(s->getEndMarkerTime() - + TQString("%1").arg(s->getEndMarkerTime() - s->getStartTime()))); std::set<long> notesOn; @@ -254,11 +254,11 @@ DocumentMetaConfigurationPage::DocumentMetaConfigurationPage(RosegardenGUIDoc *d table->setItem(i, 5, new SegmentDataItem (table, - QString("%1").arg(events))); + TQString("%1").arg(events))); table->setItem(i, 6, new SegmentDataItem (table, - QString("%1").arg(maxPoly))); + TQString("%1").arg(maxPoly))); table->setItem(i, 7, new SegmentDataItem (table, @@ -280,13 +280,13 @@ DocumentMetaConfigurationPage::DocumentMetaConfigurationPage(RosegardenGUIDoc *d table->setItem(i, 9, new SegmentDataItem (table, - QString("%1").arg(s->getTranspose()))); + TQString("%1").arg(s->getTranspose()))); if (s->getDelay() != 0) { if (s->getRealTimeDelay() != RealTime::zeroTime) { table->setItem(i, 10, new SegmentDataItem (table, - QString("%1 + %2 ms") + TQString("%1 + %2 ms") .arg(NotationStrings::makeNoteMenuLabel (s->getDelay(), true, discard, false)) .arg(s->getRealTimeDelay().sec * 1000 + @@ -300,7 +300,7 @@ DocumentMetaConfigurationPage::DocumentMetaConfigurationPage(RosegardenGUIDoc *d } else if (s->getRealTimeDelay() != RealTime::zeroTime) { table->setItem(i, 10, new SegmentDataItem (table, - QString("%2 ms") + TQString("%2 ms") .arg(s->getRealTimeDelay().sec * 1000 + s->getRealTimeDelay().msec()))); } else { @@ -328,13 +328,13 @@ DocumentMetaConfigurationPage::apply() /* hjj: WHAT TO DO WITH THIS ? void -DocumentMetaConfigurationPage::selectMetadata(QString name) +DocumentMetaConfigurationPage::selectMetadata(TQString name) { std::vector<PropertyName> fixedKeys = CompositionMetadataKeys::getFixedKeys(); std::vector<PropertyName>::iterator i = fixedKeys.begin(); - for (QListViewItem *item = m_fixed->firstChild(); + for (TQListViewItem *item = m_fixed->firstChild(); item != 0; item = item->nextSibling()) { if (i == fixedKeys.end()) @@ -349,7 +349,7 @@ DocumentMetaConfigurationPage::selectMetadata(QString name) ++i; } - for (QListViewItem *item = m_metadata->firstChild(); + for (TQListViewItem *item = m_metadata->firstChild(); item != 0; item = item->nextSibling()) { if (item->text(0).lower() != name) diff --git a/src/gui/configuration/DocumentMetaConfigurationPage.h b/src/gui/configuration/DocumentMetaConfigurationPage.h index db26f54..7a18bf6 100644 --- a/src/gui/configuration/DocumentMetaConfigurationPage.h +++ b/src/gui/configuration/DocumentMetaConfigurationPage.h @@ -27,11 +27,11 @@ #define _RG_DOCUMENTMETACONFIGURATIONPAGE_H_ #include "TabbedConfigurationPage.h" -#include <qstring.h> +#include <tqstring.h> #include <klocale.h> -class QWidget; +class TQWidget; class KListView; @@ -51,15 +51,15 @@ class DocumentMetaConfigurationPage : public TabbedConfigurationPage Q_OBJECT public: DocumentMetaConfigurationPage(RosegardenGUIDoc *doc, - QWidget *parent = 0, const char *name = 0); + TQWidget *parent = 0, const char *name = 0); virtual void apply(); - static QString iconLabel() { return i18n("About"); } - static QString title() { return i18n("About"); } - static QString iconName() { return "contents"; } + static TQString iconLabel() { return i18n("About"); } + static TQString title() { return i18n("About"); } + static TQString iconName() { return "contents"; } /* hjj: WHAT TO DO WITH THIS ? - void selectMetadata(QString name); + void selectMetadata(TQString name); */ protected: diff --git a/src/gui/configuration/GeneralConfigurationPage.cpp b/src/gui/configuration/GeneralConfigurationPage.cpp index 22915ed..d6c850e 100644 --- a/src/gui/configuration/GeneralConfigurationPage.cpp +++ b/src/gui/configuration/GeneralConfigurationPage.cpp @@ -39,19 +39,19 @@ #include <kconfig.h> #include <kfiledialog.h> #include <kmessagebox.h> -#include <qcheckbox.h> -#include <qcombobox.h> -#include <qfileinfo.h> -#include <qframe.h> -#include <qlabel.h> -#include <qlineedit.h> -#include <qpushbutton.h> -#include <qspinbox.h> -#include <qstring.h> -#include <qtabwidget.h> -#include <qvbox.h> -#include <qwidget.h> -#include <qlayout.h> +#include <tqcheckbox.h> +#include <tqcombobox.h> +#include <tqfileinfo.h> +#include <tqframe.h> +#include <tqlabel.h> +#include <tqlineedit.h> +#include <tqpushbutton.h> +#include <tqspinbox.h> +#include <tqstring.h> +#include <tqtabwidget.h> +#include <tqvbox.h> +#include <tqwidget.h> +#include <tqlayout.h> namespace Rosegarden @@ -59,7 +59,7 @@ namespace Rosegarden GeneralConfigurationPage::GeneralConfigurationPage(RosegardenGUIDoc *doc, KConfig *cfg, - QWidget *parent, const char *name) + TQWidget *parent, const char *name) : TabbedConfigurationPage(cfg, parent, name), m_doc(doc), m_client(0), @@ -68,23 +68,23 @@ GeneralConfigurationPage::GeneralConfigurationPage(RosegardenGUIDoc *doc, { m_cfg->setGroup(GeneralOptionsConfigGroup); - QFrame *frame; - QGridLayout *layout; - QLabel *label = 0; + TQFrame *frame; + TQGridLayout *layout; + TQLabel *label = 0; int row = 0; // // "Behavior" tab // - frame = new QFrame(m_tabWidget); - layout = new QGridLayout(frame, + frame = new TQFrame(m_tabWidget); + layout = new TQGridLayout(frame, 6, 2, // nbrow, nbcol 10, 5); layout->setRowSpacing(row, 15); ++row; - layout->addWidget(new QLabel(i18n("Double-click opens segment in"), + layout->addWidget(new TQLabel(i18n("Double-click opens segment in"), frame), row, 0); m_client = new KComboBox(frame); @@ -96,17 +96,17 @@ GeneralConfigurationPage::GeneralConfigurationPage(RosegardenGUIDoc *doc, layout->addMultiCellWidget(m_client, row, row, 1, 2); ++row; - layout->addWidget(new QLabel(i18n("Number of count-in measures when recording"), + layout->addWidget(new TQLabel(i18n("Number of count-in measures when recording"), frame), row, 0); - m_countIn = new QSpinBox(frame); + m_countIn = new TQSpinBox(frame); m_countIn->setValue(m_cfg->readUnsignedNumEntry("countinbars", 0)); m_countIn->setMaxValue(10); m_countIn->setMinValue(0); layout->addMultiCellWidget(m_countIn, row, row, 1, 2); ++row; - layout->addWidget(new QLabel(i18n("Auto-save interval"), frame), row, 0); + layout->addWidget(new TQLabel(i18n("Auto-save interval"), frame), row, 0); m_autoSave = new KComboBox(frame); m_autoSave->insertItem(i18n("Every 30 seconds")); @@ -137,10 +137,10 @@ GeneralConfigurationPage::GeneralConfigurationPage(RosegardenGUIDoc *doc, #ifdef HAVE_LIBJACK m_cfg->setGroup(SequencerOptionsConfigGroup); - label = new QLabel(i18n("Use JACK transport"), frame); + label = new TQLabel(i18n("Use JACK transport"), frame); layout->addWidget(label, row, 0); - m_jackTransport = new QCheckBox(frame); + m_jackTransport = new TQCheckBox(frame); layout->addMultiCellWidget(m_jackTransport, row, row, 1, 2); // m_jackTransport->insertItem(i18n("Ignore JACK transport")); @@ -168,9 +168,9 @@ GeneralConfigurationPage::GeneralConfigurationPage(RosegardenGUIDoc *doc, layout->setRowSpacing(row, 20); ++row; - layout->addWidget(new QLabel(i18n("Sequencer status"), frame), row, 0); + layout->addWidget(new TQLabel(i18n("Sequencer status"), frame), row, 0); - QString status(i18n("Unknown")); + TQString status(i18n("Unknown")); SequenceManager *mgr = doc->getSequenceManager(); if (mgr) { int driverStatus = mgr->getSoundDriverStatus() & (AUDIO_OK | MIDI_OK); @@ -190,12 +190,12 @@ GeneralConfigurationPage::GeneralConfigurationPage(RosegardenGUIDoc *doc, } } - layout->addWidget(new QLabel(status, frame), row, 1); + layout->addWidget(new TQLabel(status, frame), row, 1); - QPushButton *showStatusButton = new QPushButton(i18n("Details..."), + TQPushButton *showStatusButton = new TQPushButton(i18n("Details..."), frame); - QObject::connect(showStatusButton, SIGNAL(clicked()), - this, SLOT(slotShowStatus())); + TQObject::connect(showStatusButton, TQT_SIGNAL(clicked()), + this, TQT_SLOT(slotShowStatus())); layout->addWidget(showStatusButton, row, 2, Qt::AlignRight); ++row; @@ -206,8 +206,8 @@ GeneralConfigurationPage::GeneralConfigurationPage(RosegardenGUIDoc *doc, // // "Appearance" tab // - frame = new QFrame(m_tabWidget); - layout = new QGridLayout(frame, + frame = new TQFrame(m_tabWidget); + layout = new TQGridLayout(frame, 7, 4, // nbrow, nbcol -- one extra row improves layout 10, 5); @@ -216,7 +216,7 @@ GeneralConfigurationPage::GeneralConfigurationPage(RosegardenGUIDoc *doc, layout->setRowSpacing(row, 15); ++row; - layout->addWidget(new QLabel(i18n("Side-bar parameter box layout"), + layout->addWidget(new TQLabel(i18n("Side-bar parameter box layout"), frame), row, 0); m_sidebarStyle = new KComboBox(frame); @@ -230,7 +230,7 @@ GeneralConfigurationPage::GeneralConfigurationPage(RosegardenGUIDoc *doc, layout->addMultiCellWidget(m_sidebarStyle, row, row, 1, 3); ++row; - layout->addWidget(new QLabel(i18n("Note name style"), + layout->addWidget(new TQLabel(i18n("Note name style"), frame), row, 0); m_nameStyle = new KComboBox(frame); @@ -240,24 +240,24 @@ GeneralConfigurationPage::GeneralConfigurationPage(RosegardenGUIDoc *doc, layout->addMultiCellWidget(m_nameStyle, row, row, 1, 3); ++row; /* - layout->addWidget(new QLabel(i18n("Show tool context help in status bar"), frame), row, 0); + layout->addWidget(new TQLabel(i18n("Show tool context help in status bar"), frame), row, 0); - m_toolContextHelp = new QCheckBox(frame); + m_toolContextHelp = new TQCheckBox(frame); layout->addWidget(m_toolContextHelp, row, 1); m_toolContextHelp->setChecked(m_cfg->readBoolEntry ("toolcontexthelp", true)); ++row; */ - layout->addWidget(new QLabel(i18n("Show textured background on"), frame), row, 0); + layout->addWidget(new TQLabel(i18n("Show textured background on"), frame), row, 0); - m_backgroundTextures = new QCheckBox(i18n("Main window"), frame); + m_backgroundTextures = new TQCheckBox(i18n("Main window"), frame); layout->addWidget(m_backgroundTextures, row, 1); - m_matrixBackgroundTextures = new QCheckBox(i18n("Matrix"), frame); + m_matrixBackgroundTextures = new TQCheckBox(i18n("Matrix"), frame); layout->addWidget(m_matrixBackgroundTextures, row, 2); - m_notationBackgroundTextures = new QCheckBox(i18n("Notation"), frame); + m_notationBackgroundTextures = new TQCheckBox(i18n("Notation"), frame); layout->addWidget(m_notationBackgroundTextures, row, 3); m_backgroundTextures->setChecked(m_cfg->readBoolEntry @@ -272,7 +272,7 @@ GeneralConfigurationPage::GeneralConfigurationPage(RosegardenGUIDoc *doc, m_cfg->setGroup(GeneralOptionsConfigGroup); ++row; - layout->addWidget(new QLabel(i18n("Use bundled Klearlook theme"), frame), row, 0); + layout->addWidget(new TQLabel(i18n("Use bundled Klearlook theme"), frame), row, 0); m_globalStyle = new KComboBox(frame); m_globalStyle->insertItem(i18n("Never")); m_globalStyle->insertItem(i18n("When not running under KDE")); diff --git a/src/gui/configuration/GeneralConfigurationPage.h b/src/gui/configuration/GeneralConfigurationPage.h index 7d3203d..0c6b74c 100644 --- a/src/gui/configuration/GeneralConfigurationPage.h +++ b/src/gui/configuration/GeneralConfigurationPage.h @@ -28,15 +28,15 @@ #include "TabbedConfigurationPage.h" #include "gui/editors/eventlist/EventView.h" -#include <qstring.h> -#include <qcheckbox.h> -#include <qspinbox.h> -#include <qcombobox.h> -#include <qlineedit.h> +#include <tqstring.h> +#include <tqcheckbox.h> +#include <tqspinbox.h> +#include <tqcombobox.h> +#include <tqlineedit.h> #include <klocale.h> #include <kiconloader.h> -class QWidget; +class TQWidget; class KConfig; @@ -71,13 +71,13 @@ public: GeneralConfigurationPage(RosegardenGUIDoc *doc, KConfig *cfg, - QWidget *parent=0, const char *name=0); + TQWidget *parent=0, const char *name=0); virtual void apply(); - static QString iconLabel() { return i18n("General"); } - static QString title() { return i18n("General Configuration"); } - static QString iconName() { return "configure-general"; } + static TQString iconLabel() { return i18n("General"); } + static TQString title() { return i18n("General Configuration"); } + static TQString iconName() { return "configure-general"; } signals: void updateAutoSaveInterval(unsigned int); @@ -94,17 +94,17 @@ protected: //--------------- Data members --------------------------------- RosegardenGUIDoc* m_doc; - QComboBox* m_client; - QSpinBox* m_countIn; - QCheckBox* m_toolContextHelp; - QCheckBox* m_backgroundTextures; - QCheckBox* m_notationBackgroundTextures; - QCheckBox* m_matrixBackgroundTextures; - QComboBox *m_autoSave; - QComboBox* m_nameStyle; - QComboBox* m_sidebarStyle; - QComboBox* m_globalStyle; - QCheckBox *m_jackTransport; + TQComboBox* m_client; + TQSpinBox* m_countIn; + TQCheckBox* m_toolContextHelp; + TQCheckBox* m_backgroundTextures; + TQCheckBox* m_notationBackgroundTextures; + TQCheckBox* m_matrixBackgroundTextures; + TQComboBox *m_autoSave; + TQComboBox* m_nameStyle; + TQComboBox* m_sidebarStyle; + TQComboBox* m_globalStyle; + TQCheckBox *m_jackTransport; }; diff --git a/src/gui/configuration/HeadersConfigurationPage.cpp b/src/gui/configuration/HeadersConfigurationPage.cpp index 0571fb5..54ec010 100644 --- a/src/gui/configuration/HeadersConfigurationPage.cpp +++ b/src/gui/configuration/HeadersConfigurationPage.cpp @@ -35,35 +35,35 @@ #include <kconfig.h> #include <klistview.h> #include <klocale.h> -#include <qgroupbox.h> -#include <qlabel.h> -#include <qlayout.h> -#include <qlineedit.h> -#include <qpushbutton.h> -#include <qstring.h> -#include <qtabwidget.h> -#include <qtooltip.h> -#include <qvbox.h> -#include <qwidget.h> -#include <qfont.h> +#include <tqgroupbox.h> +#include <tqlabel.h> +#include <tqlayout.h> +#include <tqlineedit.h> +#include <tqpushbutton.h> +#include <tqstring.h> +#include <tqtabwidget.h> +#include <tqtooltip.h> +#include <tqvbox.h> +#include <tqwidget.h> +#include <tqfont.h> namespace Rosegarden { -HeadersConfigurationPage::HeadersConfigurationPage(QWidget *parent, +HeadersConfigurationPage::HeadersConfigurationPage(TQWidget *parent, RosegardenGUIDoc *doc) : - QVBox(parent), + TQVBox(parent), m_doc(doc) { // // LilyPond export: Printable headers // - QGroupBox *headersBox = new QGroupBox + TQGroupBox *headersBox = new QGroupBox (1, Horizontal, i18n("Printable headers"), this); - QFrame *frameHeaders = new QFrame(headersBox); - QGridLayout *layoutHeaders = new QGridLayout(frameHeaders, 10, 6, 10, 5); + TQFrame *frameHeaders = new TQFrame(headersBox); + TQGridLayout *layoutHeaders = new TQGridLayout(frameHeaders, 10, 6, 10, 5); // grab user headers from metadata Configuration metadata = (&m_doc->getComposition())->getMetadata(); @@ -84,8 +84,8 @@ HeadersConfigurationPage::HeadersConfigurationPage(QWidget *parent, } unsigned int row = 0, col = 0, width = 1; - QLineEdit *editHeader = new QLineEdit(strtoqstr( header ), frameHeaders); - QString trName; + TQLineEdit *editHeader = new TQLineEdit(strtoqstr( header ), frameHeaders); + TQString trName; if (key == headerDedication) { m_editDedication = editHeader; row = 0; col = 2; width = 2; @@ -148,11 +148,11 @@ HeadersConfigurationPage::HeadersConfigurationPage(QWidget *parent, // // ToolTips // - QToolTip::add( editHeader, trName ); + TQToolTip::add( editHeader, trName ); shown.insert(key); } - QLabel *separator = new QLabel(i18n("The composition comes here."), frameHeaders); + TQLabel *separator = new TQLabel(i18n("The composition comes here."), frameHeaders); separator->setAlignment( Qt::AlignCenter ); layoutHeaders->addMultiCellWidget(separator, 7, 7, 1, 4 ); @@ -162,7 +162,7 @@ HeadersConfigurationPage::HeadersConfigurationPage(QWidget *parent, // set default expansion to false for this group -- what a faff KConfig *config = kapp->config(); - QString groupTemp = config->group(); + TQString groupTemp = config->group(); config->setGroup("CollapsingFrame"); bool expanded = config->readBoolEntry("nonprintableheaders", false); config->writeEntry("nonprintableheaders", expanded); @@ -170,14 +170,14 @@ HeadersConfigurationPage::HeadersConfigurationPage(QWidget *parent, CollapsingFrame *otherHeadersBox = new CollapsingFrame (i18n("Non-printable headers"), this, "nonprintableheaders"); - QFrame *frameOtherHeaders = new QFrame(otherHeadersBox); + TQFrame *frameOtherHeaders = new TQFrame(otherHeadersBox); otherHeadersBox->setWidgetFill(true); - QFont font(otherHeadersBox->font()); + TQFont font(otherHeadersBox->font()); font.setBold(false); otherHeadersBox->setFont(font); otherHeadersBox->setWidget(frameOtherHeaders); - QGridLayout *layoutOtherHeaders = new QGridLayout(frameOtherHeaders, 2, 2, 10, 5); + TQGridLayout *layoutOtherHeaders = new TQGridLayout(frameOtherHeaders, 2, 2, 10, 5); m_metadata = new KListView(frameOtherHeaders); m_metadata->addColumn(i18n("Name")); @@ -187,7 +187,7 @@ HeadersConfigurationPage::HeadersConfigurationPage(QWidget *parent, m_metadata->setRenameable(0); m_metadata->setRenameable(1); m_metadata->setItemMargin(5); - m_metadata->setDefaultRenameAction(QListView::Accept); + m_metadata->setDefaultRenameAction(TQListView::Accept); m_metadata->setShowSortIndicator(true); std::vector<std::string> names(metadata.getPropertyNames()); @@ -197,7 +197,7 @@ HeadersConfigurationPage::HeadersConfigurationPage(QWidget *parent, if (shown.find(names[i]) != shown.end()) continue; - QString name(strtoqstr(names[i])); + TQString name(strtoqstr(names[i])); // property names stored in lower case name = name.left(1).upper() + name.right(name.length() - 1); @@ -210,25 +210,25 @@ HeadersConfigurationPage::HeadersConfigurationPage(QWidget *parent, layoutOtherHeaders->addMultiCellWidget(m_metadata, 0, 0, 0, 1); - QPushButton* addPropButton = new QPushButton(i18n("Add New Property"), + TQPushButton* addPropButton = new TQPushButton(i18n("Add New Property"), frameOtherHeaders); layoutOtherHeaders->addWidget(addPropButton, 1, 0, Qt::AlignHCenter); - QPushButton* deletePropButton = new QPushButton(i18n("Delete Property"), + TQPushButton* deletePropButton = new TQPushButton(i18n("Delete Property"), frameOtherHeaders); layoutOtherHeaders->addWidget(deletePropButton, 1, 1, Qt::AlignHCenter); - connect(addPropButton, SIGNAL(clicked()), - this, SLOT(slotAddNewProperty())); + connect(addPropButton, TQT_SIGNAL(clicked()), + this, TQT_SLOT(slotAddNewProperty())); - connect(deletePropButton, SIGNAL(clicked()), - this, SLOT(slotDeleteProperty())); + connect(deletePropButton, TQT_SIGNAL(clicked()), + this, TQT_SLOT(slotDeleteProperty())); } void HeadersConfigurationPage::slotAddNewProperty() { - QString propertyName; + TQString propertyName; int i = 0; while (1) { @@ -280,7 +280,7 @@ void HeadersConfigurationPage::apply() metadata.set<String>(CompositionMetadataKeys::Copyright, qstrtostr(m_editCopyright->text())); metadata.set<String>(CompositionMetadataKeys::Tagline, qstrtostr(m_editTagline->text())); - for (QListViewItem *item = m_metadata->firstChild(); + for (TQListViewItem *item = m_metadata->firstChild(); item != 0; item = item->nextSibling()) { metadata.set<String>(qstrtostr(item->text(0).lower()), diff --git a/src/gui/configuration/HeadersConfigurationPage.h b/src/gui/configuration/HeadersConfigurationPage.h index 403d412..496bb92 100644 --- a/src/gui/configuration/HeadersConfigurationPage.h +++ b/src/gui/configuration/HeadersConfigurationPage.h @@ -26,11 +26,11 @@ #ifndef _RG_HEADERSCONFIGURATIONPAGE_H_ #define _RG_HEADERSCONFIGURATIONPAGE_H_ -#include <qvbox.h> +#include <tqvbox.h> -class QVBox; -class QWidget; -class QLineEdit; +class TQVBox; +class TQWidget; +class TQLineEdit; class KListView; namespace Rosegarden @@ -43,7 +43,7 @@ class HeadersConfigurationPage : public QVBox Q_OBJECT public: - HeadersConfigurationPage(QWidget *parent = 0, + HeadersConfigurationPage(TQWidget *parent = 0, RosegardenGUIDoc *doc = 0); public slots: @@ -57,19 +57,19 @@ protected: RosegardenGUIDoc *m_doc; // Header fields - QLineEdit *m_editDedication; - QLineEdit *m_editTitle; - QLineEdit *m_editSubtitle; - QLineEdit *m_editSubsubtitle; - QLineEdit *m_editPoet; - QLineEdit *m_editComposer; - QLineEdit *m_editMeter; - QLineEdit *m_editOpus; - QLineEdit *m_editArranger; - QLineEdit *m_editInstrument; - QLineEdit *m_editPiece; - QLineEdit *m_editCopyright; - QLineEdit *m_editTagline; + TQLineEdit *m_editDedication; + TQLineEdit *m_editTitle; + TQLineEdit *m_editSubtitle; + TQLineEdit *m_editSubsubtitle; + TQLineEdit *m_editPoet; + TQLineEdit *m_editComposer; + TQLineEdit *m_editMeter; + TQLineEdit *m_editOpus; + TQLineEdit *m_editArranger; + TQLineEdit *m_editInstrument; + TQLineEdit *m_editPiece; + TQLineEdit *m_editCopyright; + TQLineEdit *m_editTagline; KListView *m_metadata; }; diff --git a/src/gui/configuration/LatencyConfigurationPage.cpp b/src/gui/configuration/LatencyConfigurationPage.cpp index ff89edb..4ac9390 100644 --- a/src/gui/configuration/LatencyConfigurationPage.cpp +++ b/src/gui/configuration/LatencyConfigurationPage.cpp @@ -24,20 +24,20 @@ #include "LatencyConfigurationPage.h" -#include <qlayout.h> +#include <tqlayout.h> #include "document/ConfigGroups.h" #include "ConfigurationPage.h" #include "document/RosegardenGUIDoc.h" #include "TabbedConfigurationPage.h" #include <kconfig.h> -#include <qframe.h> -#include <qlabel.h> -#include <qpushbutton.h> -#include <qslider.h> -#include <qstring.h> -#include <qtabwidget.h> -#include <qwidget.h> +#include <tqframe.h> +#include <tqlabel.h> +#include <tqpushbutton.h> +#include <tqslider.h> +#include <tqstring.h> +#include <tqtabwidget.h> +#include <tqwidget.h> namespace Rosegarden @@ -45,7 +45,7 @@ namespace Rosegarden LatencyConfigurationPage::LatencyConfigurationPage(RosegardenGUIDoc *doc, KConfig *cfg, - QWidget *parent, + TQWidget *parent, const char *name) : TabbedConfigurationPage(doc, cfg, parent, name) { @@ -55,44 +55,44 @@ LatencyConfigurationPage::LatencyConfigurationPage(RosegardenGUIDoc *doc, #ifdef NOT_DEFINED #ifdef HAVE_LIBJACK - frame = new QFrame(m_tabWidget, i18n("JACK latency")); - layout = new QGridLayout(frame, 6, 5, 10, 10); + frame = new TQFrame(m_tabWidget, i18n("JACK latency")); + layout = new TQGridLayout(frame, 6, 5, 10, 10); - layout->addMultiCellWidget(new QLabel(i18n("Use the \"Fetch JACK latencies\" button to discover the latency values set at\nthe sequencer. It's recommended that you use the returned values but it's also\npossible to override them manually using the sliders. Note that if you change\nyour JACK server parameters you should always fetch the latency values again.\nThe latency values will be stored by Rosegarden for use next time."), frame), + layout->addMultiCellWidget(new TQLabel(i18n("Use the \"Fetch JACK latencies\" button to discover the latency values set at\nthe sequencer. It's recommended that you use the returned values but it's also\npossible to override them manually using the sliders. Note that if you change\nyour JACK server parameters you should always fetch the latency values again.\nThe latency values will be stored by Rosegarden for use next time."), frame), 0, 0, 0, 3); - layout->addWidget(new QLabel(i18n("JACK playback latency (in ms)"), frame), 1, 0); - layout->addWidget(new QLabel(i18n("JACK record latency (in ms)"), frame), 3, 0); + layout->addWidget(new TQLabel(i18n("JACK playback latency (in ms)"), frame), 1, 0); + layout->addWidget(new TQLabel(i18n("JACK record latency (in ms)"), frame), 3, 0); - m_fetchLatencyValues = new QPushButton(i18n("Fetch JACK latencies"), + m_fetchLatencyValues = new TQPushButton(i18n("Fetch JACK latencies"), frame); layout->addWidget(m_fetchLatencyValues, 1, 3); - connect(m_fetchLatencyValues, SIGNAL(released()), - SLOT(slotFetchLatencyValues())); + connect(m_fetchLatencyValues, TQT_SIGNAL(released()), + TQT_SLOT(slotFetchLatencyValues())); int jackPlaybackValue = (m_cfg->readLongNumEntry( "jackplaybacklatencyusec", 0) / 1000) + (m_cfg->readLongNumEntry( "jackplaybacklatencysec", 0) * 1000); - m_jackPlayback = new QSlider(Horizontal, frame); - m_jackPlayback->setTickmarks(QSlider::Below); + m_jackPlayback = new TQSlider(Horizontal, frame); + m_jackPlayback->setTickmarks(TQSlider::Below); layout->addMultiCellWidget(m_jackPlayback, 3, 3, 2, 3); - QLabel *jackPlaybackLabel = new QLabel(QString("%1").arg(jackPlaybackValue), + TQLabel *jackPlaybackLabel = new TQLabel(TQString("%1").arg(jackPlaybackValue), frame); layout->addWidget(jackPlaybackLabel, 2, 2, Qt::AlignHCenter); - connect(m_jackPlayback, SIGNAL(valueChanged(int)), - jackPlaybackLabel, SLOT(setNum(int))); + connect(m_jackPlayback, TQT_SIGNAL(valueChanged(int)), + jackPlaybackLabel, TQT_SLOT(setNum(int))); m_jackPlayback->setMinValue(0); - layout->addWidget(new QLabel("0", frame), 3, 1, Qt::AlignRight); + layout->addWidget(new TQLabel("0", frame), 3, 1, Qt::AlignRight); m_jackPlayback->setMaxValue(500); - layout->addWidget(new QLabel("500", frame), 3, 4, Qt::AlignLeft); + layout->addWidget(new TQLabel("500", frame), 3, 4, Qt::AlignLeft); m_jackPlayback->setValue(jackPlaybackValue); @@ -101,22 +101,22 @@ LatencyConfigurationPage::LatencyConfigurationPage(RosegardenGUIDoc *doc, (m_cfg->readLongNumEntry( "jackrecordlatencysec", 0) * 1000); - m_jackRecord = new QSlider(Horizontal, frame); - m_jackRecord->setTickmarks(QSlider::Below); + m_jackRecord = new TQSlider(Horizontal, frame); + m_jackRecord->setTickmarks(TQSlider::Below); layout->addMultiCellWidget(m_jackRecord, 5, 5, 2, 3); - QLabel *jackRecordLabel = new QLabel(QString("%1").arg(jackRecordValue), + TQLabel *jackRecordLabel = new TQLabel(TQString("%1").arg(jackRecordValue), frame); layout->addWidget(jackRecordLabel, 4, 2, Qt::AlignHCenter); - connect(m_jackRecord, SIGNAL(valueChanged(int)), - jackRecordLabel, SLOT(setNum(int))); + connect(m_jackRecord, TQT_SIGNAL(valueChanged(int)), + jackRecordLabel, TQT_SLOT(setNum(int))); m_jackRecord->setMinValue(0); - layout->addWidget(new QLabel("0", frame), 5, 1, Qt::AlignRight); + layout->addWidget(new TQLabel("0", frame), 5, 1, Qt::AlignRight); m_jackRecord->setMaxValue(500); m_jackRecord->setValue(jackRecordValue); - layout->addWidget(new QLabel("500", frame), 5, 4, Qt::AlignLeft); + layout->addWidget(new TQLabel("500", frame), 5, 4, Qt::AlignLeft); addTab(frame, i18n("JACK Latency")); #endif // HAVE_LIBJACK diff --git a/src/gui/configuration/LatencyConfigurationPage.h b/src/gui/configuration/LatencyConfigurationPage.h index 6caba88..7512214 100644 --- a/src/gui/configuration/LatencyConfigurationPage.h +++ b/src/gui/configuration/LatencyConfigurationPage.h @@ -27,13 +27,13 @@ #define _RG_LATENCYCONFIGURATIONPAGE_H_ #include "TabbedConfigurationPage.h" -#include <qstring.h> +#include <tqstring.h> #include <klocale.h> -#include <qslider.h> +#include <tqslider.h> -class QWidget; -class QPushButton; +class TQWidget; +class TQPushButton; class KConfig; @@ -55,12 +55,12 @@ class LatencyConfigurationPage : public TabbedConfigurationPage public: LatencyConfigurationPage(RosegardenGUIDoc *doc, KConfig *cfg, - QWidget *parent=0, const char *name=0); + TQWidget *parent=0, const char *name=0); virtual void apply(); - static QString iconLabel() { return i18n("Latency"); } - static QString title() { return i18n("Sequencer Latency"); } + static TQString iconLabel() { return i18n("Latency"); } + static TQString title() { return i18n("Sequencer Latency"); } int getJACKPlaybackValue() { return m_jackPlayback->value(); } int getJACKRecordValue() { return m_jackRecord->value(); } @@ -74,10 +74,10 @@ protected: //--------------- Data members --------------------------------- - QSlider* m_jackPlayback; - QSlider* m_jackRecord; + TQSlider* m_jackPlayback; + TQSlider* m_jackRecord; - QPushButton* m_fetchLatencyValues; + TQPushButton* m_fetchLatencyValues; }; diff --git a/src/gui/configuration/MIDIConfigurationPage.cpp b/src/gui/configuration/MIDIConfigurationPage.cpp index 3d46841..80ccf6b 100644 --- a/src/gui/configuration/MIDIConfigurationPage.cpp +++ b/src/gui/configuration/MIDIConfigurationPage.cpp @@ -41,25 +41,25 @@ #include <kcombobox.h> #include <kconfig.h> #include <kfiledialog.h> -#include <qcheckbox.h> -#include <qcombobox.h> -#include <qcstring.h> -#include <qdatastream.h> -#include <qframe.h> -#include <qlabel.h> -#include <qlineedit.h> -#include <qobject.h> -#include <qpushbutton.h> -#include <qlayout.h> -#include <qslider.h> -#include <qspinbox.h> -#include <qstring.h> -#include <qstringlist.h> -#include <qtabwidget.h> -#include <qtooltip.h> -#include <qwidget.h> -#include <qcheckbox.h> -#include <qhbox.h> +#include <tqcheckbox.h> +#include <tqcombobox.h> +#include <tqcstring.h> +#include <tqdatastream.h> +#include <tqframe.h> +#include <tqlabel.h> +#include <tqlineedit.h> +#include <tqobject.h> +#include <tqpushbutton.h> +#include <tqlayout.h> +#include <tqslider.h> +#include <tqspinbox.h> +#include <tqstring.h> +#include <tqstringlist.h> +#include <tqtabwidget.h> +#include <tqtooltip.h> +#include <tqwidget.h> +#include <tqcheckbox.h> +#include <tqhbox.h> namespace Rosegarden { @@ -67,7 +67,7 @@ namespace Rosegarden MIDIConfigurationPage::MIDIConfigurationPage( RosegardenGUIDoc *doc, KConfig *cfg, - QWidget *parent, + TQWidget *parent, const char *name): TabbedConfigurationPage(cfg, parent, name), m_midiPitchOctave(0) @@ -77,22 +77,22 @@ MIDIConfigurationPage::MIDIConfigurationPage( // ---------------- General tab ------------------ // - QFrame *frame = new QFrame(m_tabWidget); - QGridLayout *layout = new QGridLayout(frame, 9, 4, 10, 5); + TQFrame *frame = new TQFrame(m_tabWidget); + TQGridLayout *layout = new TQGridLayout(frame, 9, 4, 10, 5); int row = 0; layout->setRowSpacing(row, 15); ++row; - QLabel *label = 0; + TQLabel *label = 0; m_cfg->setGroup(GeneralOptionsConfigGroup); - layout->addMultiCellWidget(new QLabel(i18n("Base octave number for MIDI pitch display"), + layout->addMultiCellWidget(new TQLabel(i18n("Base octave number for MIDI pitch display"), frame), row, row, 0, 1); - m_midiPitchOctave = new QSpinBox(frame); + m_midiPitchOctave = new TQSpinBox(frame); m_midiPitchOctave->setMaxValue(10); m_midiPitchOctave->setMinValue( -10); m_midiPitchOctave->setValue(m_cfg->readNumEntry("midipitchoctave", -2)); @@ -104,10 +104,10 @@ MIDIConfigurationPage::MIDIConfigurationPage( m_cfg->setGroup(GeneralOptionsConfigGroup); - layout->addMultiCellWidget(new QLabel(i18n("Always use default studio when loading files"), + layout->addMultiCellWidget(new TQLabel(i18n("Always use default studio when loading files"), frame), row, row, 0, 1); - m_studio = new QCheckBox(frame); + m_studio = new TQCheckBox(frame); m_studio->setChecked(m_cfg->readBoolEntry("alwaysusedefaultstudio", false)); layout->addWidget(m_studio, row, 2); ++row; @@ -116,17 +116,17 @@ MIDIConfigurationPage::MIDIConfigurationPage( // m_cfg->setGroup(SequencerOptionsConfigGroup); - label = new QLabel(i18n("Send all MIDI Controllers at start of each playback"), frame); + label = new TQLabel(i18n("Send all MIDI Controllers at start of each playback"), frame); - QString controllerTip = i18n("Rosegarden can send all MIDI Controllers (Pan, Reverb etc) to all MIDI devices every\ntime you hit play if you so wish. Please note that this option will usually incur a\ndelay at the start of playback due to the amount of data being transmitted."); - QToolTip::add + TQString controllerTip = i18n("Rosegarden can send all MIDI Controllers (Pan, Reverb etc) to all MIDI devices every\ntime you hit play if you so wish. Please note that this option will usually incur a\ndelay at the start of playback due to the amount of data being transmitted."); + TQToolTip::add (label, controllerTip); layout->addMultiCellWidget(label, row, row, 0, 1); - m_sendControllersAtPlay = new QCheckBox(frame); + m_sendControllersAtPlay = new TQCheckBox(frame); bool sendControllers = m_cfg->readBoolEntry("alwayssendcontrollers", false); m_sendControllersAtPlay->setChecked(sendControllers); - QToolTip::add + TQToolTip::add (m_sendControllersAtPlay, controllerTip); layout->addWidget(m_sendControllersAtPlay, row, 2); ++row; @@ -135,15 +135,15 @@ MIDIConfigurationPage::MIDIConfigurationPage( // m_cfg->setGroup(SequencerOptionsConfigGroup); - label = new QLabel(i18n("Sequencer timing source"), frame); + label = new TQLabel(i18n("Sequencer timing source"), frame); layout->addMultiCellWidget(label, row, row, 0, 1); m_timer = new KComboBox(frame); layout->addMultiCellWidget(m_timer, row, row, 2, 3); - QStringList timers = m_doc->getTimers(); + TQStringList timers = m_doc->getTimers(); m_origTimer = m_doc->getCurrentTimer(); - QString currentTimer = m_cfg->readEntry("timer", m_origTimer); + TQString currentTimer = m_cfg->readEntry("timer", m_origTimer); for (unsigned int i = 0; i < timers.size(); ++i) { m_timer->insertItem(timers[i]); @@ -160,27 +160,27 @@ MIDIConfigurationPage::MIDIConfigurationPage( // SoundFont loading // - QLabel* lbl = new QLabel(i18n("Load SoundFont to SoundBlaster card at startup"), frame); - QString tooltip = i18n("Check this box to enable soundfont loading on EMU10K-based cards when Rosegarden is launched"); - QToolTip::add(lbl, tooltip); + TQLabel* lbl = new TQLabel(i18n("Load SoundFont to SoundBlaster card at startup"), frame); + TQString tooltip = i18n("Check this box to enable soundfont loading on EMU10K-based cards when Rosegarden is launched"); + TQToolTip::add(lbl, tooltip); layout->addMultiCellWidget(lbl, row, row, 0, 1); - m_sfxLoadEnabled = new QCheckBox(frame); + m_sfxLoadEnabled = new TQCheckBox(frame); layout->addWidget(m_sfxLoadEnabled, row, 2); - QToolTip::add(m_sfxLoadEnabled, tooltip); + TQToolTip::add(m_sfxLoadEnabled, tooltip); ++row; - layout->addWidget(new QLabel(i18n("Path to 'asfxload' or 'sfxload' command"), frame), row, 0); - m_sfxLoadPath = new QLineEdit(m_cfg->readEntry("sfxloadpath", "/bin/sfxload"), frame); + layout->addWidget(new TQLabel(i18n("Path to 'asfxload' or 'sfxload' command"), frame), row, 0); + m_sfxLoadPath = new TQLineEdit(m_cfg->readEntry("sfxloadpath", "/bin/sfxload"), frame); layout->addMultiCellWidget(m_sfxLoadPath, row, row, 1, 2); - m_sfxLoadChoose = new QPushButton("Choose...", frame); + m_sfxLoadChoose = new TQPushButton("Choose...", frame); layout->addWidget(m_sfxLoadChoose, row, 3); ++row; - layout->addWidget(new QLabel(i18n("SoundFont"), frame), row, 0); - m_soundFontPath = new QLineEdit(m_cfg->readEntry("soundfontpath", ""), frame); + layout->addWidget(new TQLabel(i18n("SoundFont"), frame), row, 0); + m_soundFontPath = new TQLineEdit(m_cfg->readEntry("soundfontpath", ""), frame); layout->addMultiCellWidget(m_soundFontPath, row, row, 1, 2); - m_soundFontChoose = new QPushButton("Choose...", frame); + m_soundFontChoose = new TQPushButton("Choose...", frame); layout->addWidget(m_soundFontChoose, row, 3); ++row; @@ -193,14 +193,14 @@ MIDIConfigurationPage::MIDIConfigurationPage( m_soundFontChoose->setEnabled(false); } - connect(m_sfxLoadEnabled, SIGNAL(toggled(bool)), - this, SLOT(slotSoundFontToggled(bool))); + connect(m_sfxLoadEnabled, TQT_SIGNAL(toggled(bool)), + this, TQT_SLOT(slotSoundFontToggled(bool))); - connect(m_sfxLoadChoose, SIGNAL(clicked()), - this, SLOT(slotSfxLoadPathChoose())); + connect(m_sfxLoadChoose, TQT_SIGNAL(clicked()), + this, TQT_SLOT(slotSfxLoadPathChoose())); - connect(m_soundFontChoose, SIGNAL(clicked()), - this, SLOT(slotSoundFontChoose())); + connect(m_soundFontChoose, TQT_SIGNAL(clicked()), + this, TQT_SLOT(slotSoundFontChoose())); layout->setRowStretch(row, 10); @@ -210,8 +210,8 @@ MIDIConfigurationPage::MIDIConfigurationPage( // -------------- Synchronisation tab ----------------- // - frame = new QFrame(m_tabWidget); - layout = new QGridLayout(frame, 7, 2, 10, 5); + frame = new TQFrame(m_tabWidget); + layout = new TQGridLayout(frame, 7, 2, 10, 5); row = 0; @@ -220,7 +220,7 @@ MIDIConfigurationPage::MIDIConfigurationPage( // MIDI Clock and System Realtime Messages // - label = new QLabel(i18n("MIDI Clock and System messages"), frame); + label = new TQLabel(i18n("MIDI Clock and System messages"), frame); layout->addWidget(label, row, 0); m_midiSync = new KComboBox(frame); layout->addWidget(m_midiSync, row, 1); @@ -238,7 +238,7 @@ MIDIConfigurationPage::MIDIConfigurationPage( // MMC Transport // - label = new QLabel(i18n("MIDI Machine Control mode"), frame); + label = new TQLabel(i18n("MIDI Machine Control mode"), frame); layout->addWidget(label, row, 0); m_mmcTransport = new KComboBox(frame); @@ -257,7 +257,7 @@ MIDIConfigurationPage::MIDIConfigurationPage( // MTC transport // - label = new QLabel(i18n("MIDI Time Code mode"), frame); + label = new TQLabel(i18n("MIDI Time Code mode"), frame); layout->addWidget(label, row, 0); m_mtcTransport = new KComboBox(frame); @@ -274,13 +274,13 @@ MIDIConfigurationPage::MIDIConfigurationPage( ++row; - QHBox *hbox = new QHBox(frame); + TQHBox *hbox = new TQHBox(frame); hbox->setSpacing(5); layout->addMultiCellWidget(hbox, row, row, 0, 1); - label = new QLabel(i18n("Automatically connect sync output to all devices in use"), hbox); + label = new TQLabel(i18n("Automatically connect sync output to all devices in use"), hbox); // layout->addWidget(label, row, 0); - m_midiSyncAuto = new QCheckBox(hbox); + m_midiSyncAuto = new TQCheckBox(hbox); // layout->addWidget(m_midiSyncAuto, row, 1); m_midiSyncAuto->setChecked(m_cfg->readBoolEntry("midisyncautoconnect", false)); @@ -305,14 +305,14 @@ MIDIConfigurationPage::slotSoundFontToggled(bool isChecked) void MIDIConfigurationPage::slotSfxLoadPathChoose() { - QString path = KFileDialog::getOpenFileName(":SFXLOAD", QString::null, this, i18n("sfxload path")); + TQString path = KFileDialog::getOpenFileName(":SFXLOAD", TQString::null, this, i18n("sfxload path")); m_sfxLoadPath->setText(path); } void MIDIConfigurationPage::slotSoundFontChoose() { - QString path = KFileDialog::getOpenFileName(":SOUNDFONTS", "*.sb *.sf2 *.SF2 *.SB", this, i18n("Soundfont path")); + TQString path = KFileDialog::getOpenFileName(":SOUNDFONTS", "*.sb *.sf2 *.SF2 *.SB", this, i18n("Soundfont path")); m_soundFontPath->setText(path); } @@ -365,7 +365,7 @@ MIDIConfigurationPage::apply() int midiClock = m_midiSync->currentItem(); m_cfg->writeEntry("midiclock", midiClock); - // Now send it (OLD METHOD - to be removed) + // Now send it (OLD TQT_METHOD - to be removed) //!!! No, don't remove -- this controls SPP as well doesn't it? // MappedEvent mEMIDIClock(MidiInstrumentBase, // InstrumentId diff --git a/src/gui/configuration/MIDIConfigurationPage.h b/src/gui/configuration/MIDIConfigurationPage.h index 243f041..43a29d9 100644 --- a/src/gui/configuration/MIDIConfigurationPage.h +++ b/src/gui/configuration/MIDIConfigurationPage.h @@ -26,18 +26,18 @@ #define _RG_MIDICONFIGURATIONPAGE_H_ #include "TabbedConfigurationPage.h" -#include <qstring.h> +#include <tqstring.h> #include <klocale.h> -#include <qlineedit.h> -#include <qcheckbox.h> +#include <tqlineedit.h> +#include <tqcheckbox.h> -class QWidget; -class QSpinBox; -class QSlider; -class QPushButton; -class QLabel; -class QComboBox; +class TQWidget; +class TQSpinBox; +class TQSlider; +class TQPushButton; +class TQLabel; +class TQComboBox; class KConfig; class KComboBox; @@ -54,14 +54,14 @@ class MIDIConfigurationPage : public TabbedConfigurationPage public: MIDIConfigurationPage(RosegardenGUIDoc *doc, KConfig *cfg, - QWidget *parent=0, + TQWidget *parent=0, const char *name=0); virtual void apply(); - static QString iconLabel() { return i18n("MIDI"); } - static QString title() { return i18n("MIDI Settings"); } - static QString iconName() { return "configure-midi"; } + static TQString iconLabel() { return i18n("MIDI"); } + static TQString title() { return i18n("MIDI Settings"); } + static TQString iconName() { return "configure-midi"; } protected slots: void slotSoundFontToggled(bool); @@ -74,26 +74,26 @@ protected: //--------------- Data members --------------------------------- // General - QCheckBox *m_sendControllersAtPlay; + TQCheckBox *m_sendControllersAtPlay; - QCheckBox *m_sfxLoadEnabled; - QLineEdit *m_sfxLoadPath; - QPushButton *m_sfxLoadChoose; - QLineEdit *m_soundFontPath; - QPushButton *m_soundFontChoose; + TQCheckBox *m_sfxLoadEnabled; + TQLineEdit *m_sfxLoadPath; + TQPushButton *m_sfxLoadChoose; + TQLineEdit *m_soundFontPath; + TQPushButton *m_soundFontChoose; // Sync and timing // - //QCheckBox *m_midiClockEnabled; - QComboBox *m_midiSync; - QString m_origTimer; - QComboBox *m_timer; - QComboBox *m_mmcTransport; - QComboBox *m_mtcTransport; - QCheckBox *m_midiSyncAuto; - - QCheckBox* m_studio; - QSpinBox* m_midiPitchOctave; + //TQCheckBox *m_midiClockEnabled; + TQComboBox *m_midiSync; + TQString m_origTimer; + TQComboBox *m_timer; + TQComboBox *m_mmcTransport; + TQComboBox *m_mtcTransport; + TQCheckBox *m_midiSyncAuto; + + TQCheckBox* m_studio; + TQSpinBox* m_midiPitchOctave; }; diff --git a/src/gui/configuration/MatrixConfigurationPage.cpp b/src/gui/configuration/MatrixConfigurationPage.cpp index e21f3fd..c996922 100644 --- a/src/gui/configuration/MatrixConfigurationPage.cpp +++ b/src/gui/configuration/MatrixConfigurationPage.cpp @@ -32,29 +32,29 @@ #include "gui/editors/matrix/MatrixView.h" #include "TabbedConfigurationPage.h" #include <kconfig.h> -#include <qframe.h> -#include <qlabel.h> -#include <qstring.h> -#include <qtabwidget.h> -#include <qwidget.h> -#include <qlayout.h> +#include <tqframe.h> +#include <tqlabel.h> +#include <tqstring.h> +#include <tqtabwidget.h> +#include <tqwidget.h> +#include <tqlayout.h> namespace Rosegarden { MatrixConfigurationPage::MatrixConfigurationPage(KConfig *cfg, - QWidget *parent, + TQWidget *parent, const char *name) : TabbedConfigurationPage(cfg, parent, name) { m_cfg->setGroup(MatrixViewConfigGroup); - QFrame *frame = new QFrame(m_tabWidget); - QGridLayout *layout = new QGridLayout(frame, + TQFrame *frame = new TQFrame(m_tabWidget); + TQGridLayout *layout = new TQGridLayout(frame, 4, 2, // nbrow, nbcol 10, 5); - layout->addWidget(new QLabel("Nothing here yet", frame), 0, 0); + layout->addWidget(new TQLabel("Nothing here yet", frame), 0, 0); addTab(frame, i18n("General")); } diff --git a/src/gui/configuration/MatrixConfigurationPage.h b/src/gui/configuration/MatrixConfigurationPage.h index 9c4b3fc..19e2104 100644 --- a/src/gui/configuration/MatrixConfigurationPage.h +++ b/src/gui/configuration/MatrixConfigurationPage.h @@ -27,11 +27,11 @@ #define _RG_MATRIXCONFIGURATIONPAGE_H_ #include "TabbedConfigurationPage.h" -#include <qstring.h> +#include <tqstring.h> #include <klocale.h> -class QWidget; +class TQWidget; class KConfig; @@ -49,12 +49,12 @@ class MatrixConfigurationPage : public TabbedConfigurationPage public: MatrixConfigurationPage(KConfig *cfg, - QWidget *parent = 0, const char *name=0); + TQWidget *parent = 0, const char *name=0); virtual void apply(); - static QString iconLabel() { return i18n("Matrix"); } - static QString title() { return i18n("Matrix"); } + static TQString iconLabel() { return i18n("Matrix"); } + static TQString title() { return i18n("Matrix"); } protected slots: diff --git a/src/gui/configuration/NotationConfigurationPage.cpp b/src/gui/configuration/NotationConfigurationPage.cpp index a828fe7..c059cd9 100644 --- a/src/gui/configuration/NotationConfigurationPage.cpp +++ b/src/gui/configuration/NotationConfigurationPage.cpp @@ -24,7 +24,7 @@ #include "NotationConfigurationPage.h" -#include <qlayout.h> +#include <tqlayout.h> #include "misc/Strings.h" #include "document/ConfigGroups.h" @@ -47,44 +47,44 @@ #include <kconfig.h> #include <kfontrequester.h> #include <kmessagebox.h> -#include <qcheckbox.h> -#include <qcombobox.h> -#include <qfont.h> -#include <qframe.h> -#include <qgroupbox.h> -#include <qhbox.h> -#include <qlabel.h> -#include <qobject.h> -#include <qpushbutton.h> -#include <qstring.h> -#include <qstringlist.h> -#include <qtabwidget.h> -#include <qwidget.h> -#include <qtooltip.h> +#include <tqcheckbox.h> +#include <tqcombobox.h> +#include <tqfont.h> +#include <tqframe.h> +#include <tqgroupbox.h> +#include <tqhbox.h> +#include <tqlabel.h> +#include <tqobject.h> +#include <tqpushbutton.h> +#include <tqstring.h> +#include <tqstringlist.h> +#include <tqtabwidget.h> +#include <tqwidget.h> +#include <tqtooltip.h> #include <algorithm> namespace Rosegarden { NotationConfigurationPage::NotationConfigurationPage(KConfig *cfg, - QWidget *parent, + TQWidget *parent, const char *name) : TabbedConfigurationPage(cfg, parent, name) { m_cfg->setGroup(NotationViewConfigGroup); - QFrame *frame; - QGridLayout *layout; + TQFrame *frame; + TQGridLayout *layout; - frame = new QFrame(m_tabWidget); - layout = new QGridLayout(frame, 9, 3, 10, 5); + frame = new TQFrame(m_tabWidget); + layout = new TQGridLayout(frame, 9, 3, 10, 5); int row = 0; layout->setRowSpacing(row, 15); ++row; - layout->addWidget(new QLabel(i18n("Default layout mode"), frame), row, 0); + layout->addWidget(new TQLabel(i18n("Default layout mode"), frame), row, 0); m_layoutMode = new KComboBox(frame); m_layoutMode->setEditable(false); @@ -98,7 +98,7 @@ NotationConfigurationPage::NotationConfigurationPage(KConfig *cfg, layout->addMultiCellWidget(m_layoutMode, row, row, 1, 2); ++row; - layout->addWidget(new QLabel(i18n("Default spacing"), frame), row, 0); + layout->addWidget(new TQLabel(i18n("Default spacing"), frame), row, 0); m_spacing = new KComboBox(frame); m_spacing->setEditable(false); @@ -108,7 +108,7 @@ NotationConfigurationPage::NotationConfigurationPage(KConfig *cfg, for (std::vector<int>::iterator i = s.begin(); i != s.end(); ++i) { - QString text("%1 %"); + TQString text("%1 %"); if (*i == 100) text = "%1 % (normal)"; m_spacing->insertItem(text.arg(*i)); @@ -122,7 +122,7 @@ NotationConfigurationPage::NotationConfigurationPage(KConfig *cfg, ++row; - layout->addWidget(new QLabel(i18n("Default duration factor"), frame), row, 0); + layout->addWidget(new TQLabel(i18n("Default duration factor"), frame), row, 0); m_proportion = new KComboBox(frame); m_proportion->setEditable(false); @@ -132,7 +132,7 @@ NotationConfigurationPage::NotationConfigurationPage(KConfig *cfg, for (std::vector<int>::iterator i = s.begin(); i != s.end(); ++i) { - QString text = QString("%1 %").arg(*i); + TQString text = TQString("%1 %").arg(*i); if (*i == 40) text = "40 % (normal)"; else if (*i == 0) @@ -149,7 +149,7 @@ NotationConfigurationPage::NotationConfigurationPage(KConfig *cfg, layout->addMultiCellWidget(m_proportion, row, row, 1, 2); ++row; - layout->addWidget(new QLabel(i18n("Show track headers (linear layout only)"), + layout->addWidget(new TQLabel(i18n("Show track headers (linear layout only)"), frame), row, 0); m_showTrackHeaders = new KComboBox(frame); @@ -162,7 +162,7 @@ NotationConfigurationPage::NotationConfigurationPage(KConfig *cfg, if (HeadersGroup::isValidShowMode(defaultShowTrackHeaders)) { m_showTrackHeaders->setCurrentItem(defaultShowTrackHeaders); } - QToolTip::add(m_showTrackHeaders, QString(i18n( + TQToolTip::add(m_showTrackHeaders, TQString(i18n( "\"Always\" and \"Never\" mean what they usually mean\n" "\"When needed\" means \"when staves are too many to all fit" " in the current window\""))); @@ -177,7 +177,7 @@ NotationConfigurationPage::NotationConfigurationPage(KConfig *cfg, (new QLabel (i18n("Show non-notation events as question marks"), frame), row, row, 0, 1); - m_showUnknowns = new QCheckBox(frame); + m_showUnknowns = new TQCheckBox(frame); bool defaultShowUnknowns = m_cfg->readBoolEntry("showunknowns", false); m_showUnknowns->setChecked(defaultShowUnknowns); layout->addWidget(m_showUnknowns, row, 2); @@ -187,7 +187,7 @@ NotationConfigurationPage::NotationConfigurationPage(KConfig *cfg, (new QLabel (i18n("Show notation-quantized notes in a different color"), frame), row, row, 0, 1); - m_colourQuantize = new QCheckBox(frame); + m_colourQuantize = new TQCheckBox(frame); bool defaultColourQuantize = m_cfg->readBoolEntry("colourquantize", false); m_colourQuantize->setChecked(defaultColourQuantize); layout->addWidget(m_colourQuantize, row, 2); @@ -197,7 +197,7 @@ NotationConfigurationPage::NotationConfigurationPage(KConfig *cfg, (new QLabel (i18n("Show \"invisible\" events in grey"), frame), row, row, 0, 1); - m_showInvisibles = new QCheckBox(frame); + m_showInvisibles = new TQCheckBox(frame); bool defaultShowInvisibles = m_cfg->readBoolEntry("showinvisibles", true); m_showInvisibles->setChecked(defaultShowInvisibles); layout->addWidget(m_showInvisibles, row, 2); @@ -207,7 +207,7 @@ NotationConfigurationPage::NotationConfigurationPage(KConfig *cfg, (new QLabel (i18n("Show notes outside suggested playable range in red"), frame), row, row, 0, 1); - m_showRanges = new QCheckBox(frame); + m_showRanges = new TQCheckBox(frame); bool defaultShowRanges = m_cfg->readBoolEntry("showranges", true); m_showRanges->setChecked(defaultShowRanges); layout->addWidget(m_showRanges, row, 2); @@ -217,7 +217,7 @@ NotationConfigurationPage::NotationConfigurationPage(KConfig *cfg, (new QLabel (i18n("Highlight superimposed notes with a halo effect"), frame), row, row, 0, 1); - m_showCollisions = new QCheckBox(frame); + m_showCollisions = new TQCheckBox(frame); bool defaultShowCollisions = m_cfg->readBoolEntry("showcollisions", true); m_showCollisions->setChecked(defaultShowCollisions); layout->addWidget(m_showCollisions, row, 2); @@ -230,7 +230,7 @@ NotationConfigurationPage::NotationConfigurationPage(KConfig *cfg, (new QLabel (i18n("When recording MIDI, split-and-tie long notes at barlines"), frame), row, row, 0, 1); - m_splitAndTie = new QCheckBox(frame); + m_splitAndTie = new TQCheckBox(frame); bool defaultSplitAndTie = m_cfg->readBoolEntry("quantizemakeviable", false); m_splitAndTie->setChecked(defaultSplitAndTie); layout->addWidget(m_splitAndTie, row, 2); @@ -243,8 +243,8 @@ NotationConfigurationPage::NotationConfigurationPage(KConfig *cfg, - frame = new QFrame(m_tabWidget); - layout = new QGridLayout(frame, 6, 3, 10, 5); + frame = new TQFrame(m_tabWidget); + layout = new TQGridLayout(frame, 6, 3, 10, 5); row = 0; @@ -252,7 +252,7 @@ NotationConfigurationPage::NotationConfigurationPage(KConfig *cfg, ++row; layout->addMultiCellWidget - (new QLabel(i18n("Default note style for new notes"), frame), + (new TQLabel(i18n("Default note style for new notes"), frame), row, row, 0, 1); layout->setColStretch(2, 10); @@ -261,7 +261,7 @@ NotationConfigurationPage::NotationConfigurationPage(KConfig *cfg, m_noteStyle->setEditable(false); m_untranslatedNoteStyle.clear(); - QString defaultStyle = + TQString defaultStyle = m_cfg->readEntry("style", strtoqstr(NoteStyleFactory::DefaultStyle)); std::vector<NoteStyleName> styles (NoteStyleFactory::getAvailableStyleNames()); @@ -269,7 +269,7 @@ NotationConfigurationPage::NotationConfigurationPage(KConfig *cfg, for (std::vector<NoteStyleName>::iterator i = styles.begin(); i != styles.end(); ++i) { - QString styleQName(strtoqstr(*i)); + TQString styleQName(strtoqstr(*i)); m_untranslatedNoteStyle.append(styleQName); m_noteStyle->insertItem(i18n(styleQName.utf8())); if (styleQName == defaultStyle) { @@ -284,7 +284,7 @@ NotationConfigurationPage::NotationConfigurationPage(KConfig *cfg, ++row; layout->addWidget - (new QLabel(i18n("When inserting notes..."), frame), row, 0); + (new TQLabel(i18n("When inserting notes..."), frame), row, 0); int defaultInsertType = m_cfg->readNumEntry("inserttype", 0); @@ -304,7 +304,7 @@ NotationConfigurationPage::NotationConfigurationPage(KConfig *cfg, (new QLabel (i18n("Auto-beam on insert when appropriate"), frame), row, row, 0, 1); - m_autoBeam = new QCheckBox(frame); + m_autoBeam = new TQCheckBox(frame); m_autoBeam->setChecked(autoBeam); layout->addMultiCellWidget(m_autoBeam, row, row, 2, 2); @@ -316,7 +316,7 @@ NotationConfigurationPage::NotationConfigurationPage(KConfig *cfg, (new QLabel (i18n("Collapse rests after erase"), frame), row, row, 0, 1); - m_collapseRests = new QCheckBox(frame); + m_collapseRests = new TQCheckBox(frame); m_collapseRests->setChecked(collapse); layout->addMultiCellWidget(m_collapseRests, row, row, 2, 2); ++row; @@ -325,7 +325,7 @@ NotationConfigurationPage::NotationConfigurationPage(KConfig *cfg, ++row; layout->addWidget - (new QLabel(i18n("Default paste type"), frame), row, 0); + (new TQLabel(i18n("Default paste type"), frame), row, 0); m_pasteType = new KComboBox(frame); m_pasteType->setEditable(false); @@ -351,15 +351,15 @@ NotationConfigurationPage::NotationConfigurationPage(KConfig *cfg, - frame = new QFrame(m_tabWidget); - layout = new QGridLayout(frame, 4, 2, 10, 5); + frame = new TQFrame(m_tabWidget); + layout = new TQGridLayout(frame, 4, 2, 10, 5); row = 0; layout->setRowSpacing(row, 15); ++row; - layout->addWidget(new QLabel(i18n("Accidentals in one octave..."), frame), row, 0); + layout->addWidget(new TQLabel(i18n("Accidentals in one octave..."), frame), row, 0); m_accOctavePolicy = new KComboBox(frame); m_accOctavePolicy->insertItem(i18n("Affect only that octave")); m_accOctavePolicy->insertItem(i18n("Require cautionaries in other octaves")); @@ -371,7 +371,7 @@ NotationConfigurationPage::NotationConfigurationPage(KConfig *cfg, layout->addWidget(m_accOctavePolicy, row, 1); ++row; - layout->addWidget(new QLabel(i18n("Accidentals in one bar..."), frame), row, 0); + layout->addWidget(new TQLabel(i18n("Accidentals in one bar..."), frame), row, 0); m_accBarPolicy = new KComboBox(frame); m_accBarPolicy->insertItem(i18n("Affect only that bar")); m_accBarPolicy->insertItem(i18n("Require cautionary resets in following bar")); @@ -383,7 +383,7 @@ NotationConfigurationPage::NotationConfigurationPage(KConfig *cfg, layout->addWidget(m_accBarPolicy, row, 1); ++row; - layout->addWidget(new QLabel(i18n("Key signature cancellation style"), frame), row, 0); + layout->addWidget(new TQLabel(i18n("Key signature cancellation style"), frame), row, 0); m_keySigCancelMode = new KComboBox(frame); m_keySigCancelMode->insertItem(i18n("Cancel only when entering C major or A minor")); m_keySigCancelMode->insertItem(i18n("Cancel whenever removing sharps or flats")); @@ -400,7 +400,7 @@ NotationConfigurationPage::NotationConfigurationPage(KConfig *cfg, addTab(frame, i18n("Accidentals")); /* - QString preamble = + TQString preamble = (i18n("Rosegarden can apply automatic quantization to recorded " "or imported MIDI data for notation purposes only. " "This does not affect playback, and does not affect " @@ -419,78 +419,78 @@ NotationConfigurationPage::NotationConfigurationPage(KConfig *cfg, */ row = 0; -// QFrame *mainFrame = new QFrame(m_tabWidget); -// QGridLayout *mainLayout = new QGridLayout(mainFrame, 2, 4, 10, 5); +// TQFrame *mainFrame = new TQFrame(m_tabWidget); +// TQGridLayout *mainLayout = new TQGridLayout(mainFrame, 2, 4, 10, 5); -// QGroupBox *noteFontBox = new QGroupBox(1, Horizontal, i18n("Notation font"), mainFrame); -// QGroupBox *otherFontBox = new QGroupBox(1, Horizontal, i18n("Other fonts"), mainFrame); -// QGroupBox *descriptionBox = new QGroupBox(1, Horizontal, i18n("Description"), mainFrame); +// TQGroupBox *noteFontBox = new TQGroupBox(1, Horizontal, i18n("Notation font"), mainFrame); +// TQGroupBox *otherFontBox = new TQGroupBox(1, Horizontal, i18n("Other fonts"), mainFrame); +// TQGroupBox *descriptionBox = new TQGroupBox(1, Horizontal, i18n("Description"), mainFrame); // mainLayout->addWidget(noteFontBox, 0, 0); // mainLayout->addWidget(otherFontBox, 1, 0); -// QFrame *mainFrame = new QFrame(m_tabWidget); - frame = new QFrame(m_tabWidget); - layout = new QGridLayout(frame, 2, 4, 10, 5); +// TQFrame *mainFrame = new TQFrame(m_tabWidget); + frame = new TQFrame(m_tabWidget); + layout = new TQGridLayout(frame, 2, 4, 10, 5); -// frame = new QFrame(noteFontBox); -// layout = new QGridLayout(frame, 5, 2, 10, 5); +// frame = new TQFrame(noteFontBox); +// layout = new TQGridLayout(frame, 5, 2, 10, 5); m_viewButton = 0; - layout->addWidget(new QLabel(i18n("Notation font"), frame), 0, 0); + layout->addWidget(new TQLabel(i18n("Notation font"), frame), 0, 0); m_font = new KComboBox(frame); #ifdef HAVE_XFT - m_viewButton = new QPushButton(i18n("View"), frame); + m_viewButton = new TQPushButton(i18n("View"), frame); layout->addMultiCellWidget(m_font, row, row, 1, 2); layout->addWidget(m_viewButton, row, 3); - QObject::connect(m_viewButton, SIGNAL(clicked()), - this, SLOT(slotViewButtonPressed())); + TQObject::connect(m_viewButton, TQT_SIGNAL(clicked()), + this, TQT_SLOT(slotViewButtonPressed())); #else layout->addMultiCellWidget(m_font, row, row, 1, 3); #endif m_font->setEditable(false); - QObject::connect(m_font, SIGNAL(activated(int)), - this, SLOT(slotFontComboChanged(int))); + TQObject::connect(m_font, TQT_SIGNAL(activated(int)), + this, TQT_SLOT(slotFontComboChanged(int))); ++row; - QFrame *subFrame = new QFrame(frame); - QGridLayout *subLayout = new QGridLayout(subFrame, + TQFrame *subFrame = new TQFrame(frame); + TQGridLayout *subLayout = new TQGridLayout(subFrame, 4, 2, // nbrow, nbcol 12, 2); - QFont font = m_font->font(); + TQFont font = m_font->font(); font.setPointSize((font.pointSize() * 9) / 10); - QLabel *originLabel = new QLabel(i18n("Origin:"), subFrame); + TQLabel *originLabel = new TQLabel(i18n("Origin:"), subFrame); originLabel->setFont(font); subLayout->addWidget(originLabel, 0, 0); - QLabel *copyrightLabel = new QLabel(i18n("Copyright:"), subFrame); + TQLabel *copyrightLabel = new TQLabel(i18n("Copyright:"), subFrame); copyrightLabel->setFont(font); subLayout->addWidget(copyrightLabel, 1, 0); - QLabel *mappedLabel = new QLabel(i18n("Mapped by:"), subFrame); + TQLabel *mappedLabel = new TQLabel(i18n("Mapped by:"), subFrame); mappedLabel->setFont(font); subLayout->addWidget(mappedLabel, 2, 0); - QLabel *typeLabel = new QLabel(i18n("Type:"), subFrame); + TQLabel *typeLabel = new TQLabel(i18n("Type:"), subFrame); typeLabel->setFont(font); subLayout->addWidget(typeLabel, 3, 0); - m_fontOriginLabel = new QLabel(subFrame); + m_fontOriginLabel = new TQLabel(subFrame); m_fontOriginLabel->setAlignment(Qt::WordBreak); m_fontOriginLabel->setFont(font); // m_fontOriginLabel->setFixedWidth(250); - m_fontCopyrightLabel = new QLabel(subFrame); + m_fontCopyrightLabel = new TQLabel(subFrame); m_fontCopyrightLabel->setAlignment(Qt::WordBreak); m_fontCopyrightLabel->setFont(font); // m_fontCopyrightLabel->setFixedWidth(250); - m_fontMappedByLabel = new QLabel(subFrame); + m_fontMappedByLabel = new TQLabel(subFrame); m_fontMappedByLabel->setFont(font); - m_fontTypeLabel = new QLabel(subFrame); + m_fontTypeLabel = new TQLabel(subFrame); m_fontTypeLabel->setFont(font); subLayout->addWidget(m_fontOriginLabel, 0, 1); subLayout->addWidget(m_fontCopyrightLabel, 1, 1); @@ -505,7 +505,7 @@ NotationConfigurationPage::NotationConfigurationPage(KConfig *cfg, ++row; layout->addMultiCellWidget - (new QLabel(i18n("Font size for single-staff views"), frame), + (new TQLabel(i18n("Font size for single-staff views"), frame), row, row, 0, 1); m_singleStaffSize = new KComboBox(frame); m_singleStaffSize->setEditable(false); @@ -513,7 +513,7 @@ NotationConfigurationPage::NotationConfigurationPage(KConfig *cfg, ++row; layout->addMultiCellWidget - (new QLabel(i18n("Font size for multi-staff views"), frame), + (new TQLabel(i18n("Font size for multi-staff views"), frame), row, row, 0, 1); m_multiStaffSize = new KComboBox(frame); m_multiStaffSize->setEditable(false); @@ -521,7 +521,7 @@ NotationConfigurationPage::NotationConfigurationPage(KConfig *cfg, ++row; layout->addMultiCellWidget - (new QLabel(i18n("Font size for printing (pt)"), frame), + (new TQLabel(i18n("Font size for printing (pt)"), frame), row, row, 0, 1); m_printingSize = new KComboBox(frame); m_printingSize->setEditable(false); @@ -533,22 +533,22 @@ NotationConfigurationPage::NotationConfigurationPage(KConfig *cfg, layout->setRowSpacing(row, 15); ++row; - QFont defaultTextFont(NotePixmapFactory::defaultSerifFontFamily), + TQFont defaultTextFont(NotePixmapFactory::defaultSerifFontFamily), defaultSansFont(NotePixmapFactory::defaultSansSerifFontFamily), defaultTimeSigFont(NotePixmapFactory::defaultTimeSigFontFamily); layout->addWidget - (new QLabel(i18n("Text font"), frame), row, 0); + (new TQLabel(i18n("Text font"), frame), row, 0); m_textFont = new KFontRequester(frame); - QFont textFont = m_cfg->readFontEntry("textfont", &defaultTextFont); + TQFont textFont = m_cfg->readFontEntry("textfont", &defaultTextFont); m_textFont->setFont(textFont); layout->addMultiCellWidget(m_textFont, row, row, 1, 3); ++row; layout->addWidget - (new QLabel(i18n("Sans-serif font"), frame), row, 0); + (new TQLabel(i18n("Sans-serif font"), frame), row, 0); m_sansFont = new KFontRequester(frame); - QFont sansFont = m_cfg->readFontEntry("sansfont", &defaultSansFont); + TQFont sansFont = m_cfg->readFontEntry("sansfont", &defaultSansFont); m_sansFont->setFont(sansFont); layout->addMultiCellWidget(m_sansFont, row, row, 1, 3); ++row; @@ -558,9 +558,9 @@ NotationConfigurationPage::NotationConfigurationPage(KConfig *cfg, * and our default notation font has all the characters we need layout->addWidget - (new QLabel(i18n("Time Signature font"), frame), row, 0); + (new TQLabel(i18n("Time Signature font"), frame), row, 0); m_timeSigFont = new KFontRequester(frame); - QFont timeSigFont = m_cfg->readFontEntry("timesigfont", &defaultTimeSigFont); + TQFont timeSigFont = m_cfg->readFontEntry("timesigfont", &defaultTimeSigFont); m_timeSigFont->setFont(timeSigFont); layout->addMultiCellWidget(m_timeSigFont, row, row, 1, 3); ++row; @@ -582,7 +582,7 @@ NotationConfigurationPage::slotViewButtonPressed() NoteFont *noteFont = NoteFontFactory::getFont (fontName, NoteFontFactory::getDefaultSize(fontName)); const NoteFontMap &map(noteFont->getNoteFontMap()); - QStringList systemFontNames(map.getSystemFontNames()); + TQStringList systemFontNames(map.getSystemFontNames()); if (systemFontNames.count() == 0) { m_viewButton->setEnabled(false); // oops } else { @@ -600,7 +600,7 @@ NotationConfigurationPage::slotViewButtonPressed() void NotationConfigurationPage::slotPopulateFontCombo(bool rescan) { - QString defaultFont = m_cfg->readEntry + TQString defaultFont = m_cfg->readEntry ("notefont", strtoqstr(NoteFontFactory::getDefaultFontName())); try { @@ -620,7 +620,7 @@ NotationConfigurationPage::slotPopulateFontCombo(bool rescan) m_font->clear(); for (std::vector<std::string>::iterator i = f.begin(); i != f.end(); ++i) { - QString s(strtoqstr(*i)); + TQString s(strtoqstr(*i)); m_untranslatedFont.append(s); m_font->insertItem(i18n(s.utf8())); if (s == defaultFont) @@ -646,7 +646,7 @@ NotationConfigurationPage::slotFontComboChanged(int index) int printpt = m_cfg->readUnsignedNumEntry("printingnotesize", 5); for (int i = 2; i < 16; ++i) { - m_printingSize->insertItem(QString("%1").arg(i)); + m_printingSize->insertItem(TQString("%1").arg(i)); if (i == printpt) { m_printingSize->setCurrentItem(m_printingSize->count() - 1); } @@ -675,7 +675,7 @@ NotationConfigurationPage::slotFontComboChanged(int index) } void -NotationConfigurationPage::populateSizeCombo(QComboBox *combo, +NotationConfigurationPage::populateSizeCombo(TQComboBox *combo, std::string font, int defaultSize) { @@ -683,7 +683,7 @@ NotationConfigurationPage::populateSizeCombo(QComboBox *combo, combo->clear(); for (std::vector<int>::iterator i = sizes.begin(); i != sizes.end(); ++i) { - combo->insertItem(QString("%1").arg(*i)); + combo->insertItem(TQString("%1").arg(*i)); if (*i == defaultSize) combo->setCurrentItem(combo->count() - 1); } diff --git a/src/gui/configuration/NotationConfigurationPage.h b/src/gui/configuration/NotationConfigurationPage.h index a3d3dc5..c7a777a 100644 --- a/src/gui/configuration/NotationConfigurationPage.h +++ b/src/gui/configuration/NotationConfigurationPage.h @@ -28,16 +28,16 @@ #include <string> #include "TabbedConfigurationPage.h" -#include <qstring.h> -#include <qstringlist.h> +#include <tqstring.h> +#include <tqstringlist.h> #include <klocale.h> -class QWidget; -class QPushButton; -class QLabel; -class QComboBox; -class QCheckBox; +class TQWidget; +class TQPushButton; +class TQLabel; +class TQComboBox; +class TQCheckBox; class KFontRequester; class KConfig; @@ -57,13 +57,13 @@ class NotationConfigurationPage : public TabbedConfigurationPage public: NotationConfigurationPage(KConfig *cfg, - QWidget *parent = 0, const char *name=0); + TQWidget *parent = 0, const char *name=0); virtual void apply(); - static QString iconLabel() { return i18n("Notation"); } - static QString title() { return i18n("Notation"); } - static QString iconName() { return "configure-notation"; } + static TQString iconLabel() { return i18n("Notation"); } + static TQString title() { return i18n("Notation"); } + static TQString iconName() { return "configure-notation"; } protected slots: void slotFontComboChanged(int); @@ -74,41 +74,41 @@ protected: //--------------- Data members --------------------------------- - QComboBox *m_font; - QComboBox *m_singleStaffSize; - QComboBox *m_multiStaffSize; - QComboBox *m_printingSize; + TQComboBox *m_font; + TQComboBox *m_singleStaffSize; + TQComboBox *m_multiStaffSize; + TQComboBox *m_printingSize; KFontRequester* m_textFont; KFontRequester* m_sansFont; KFontRequester* m_timeSigFont; - QPushButton *m_viewButton; - QLabel *m_fontOriginLabel; - QLabel *m_fontCopyrightLabel; - QLabel *m_fontMappedByLabel; - QLabel *m_fontTypeLabel; - QComboBox *m_layoutMode; - QComboBox *m_spacing; - QComboBox *m_proportion; - QCheckBox *m_colourQuantize; - QCheckBox *m_showUnknowns; - QCheckBox *m_showInvisibles; - QCheckBox *m_showRanges; - QCheckBox *m_showCollisions; - QComboBox *m_showTrackHeaders; - QComboBox *m_noteStyle; - QComboBox *m_insertType; - QCheckBox *m_autoBeam; - QCheckBox *m_collapseRests; - QComboBox *m_pasteType; - QComboBox *m_accOctavePolicy; - QComboBox *m_accBarPolicy; - QComboBox *m_keySigCancelMode; - QCheckBox *m_splitAndTie; + TQPushButton *m_viewButton; + TQLabel *m_fontOriginLabel; + TQLabel *m_fontCopyrightLabel; + TQLabel *m_fontMappedByLabel; + TQLabel *m_fontTypeLabel; + TQComboBox *m_layoutMode; + TQComboBox *m_spacing; + TQComboBox *m_proportion; + TQCheckBox *m_colourQuantize; + TQCheckBox *m_showUnknowns; + TQCheckBox *m_showInvisibles; + TQCheckBox *m_showRanges; + TQCheckBox *m_showCollisions; + TQComboBox *m_showTrackHeaders; + TQComboBox *m_noteStyle; + TQComboBox *m_insertType; + TQCheckBox *m_autoBeam; + TQCheckBox *m_collapseRests; + TQComboBox *m_pasteType; + TQComboBox *m_accOctavePolicy; + TQComboBox *m_accBarPolicy; + TQComboBox *m_keySigCancelMode; + TQCheckBox *m_splitAndTie; QuantizeParameters *m_quantizeFrame; - QStringList m_untranslatedFont; - QStringList m_untranslatedNoteStyle; + TQStringList m_untranslatedFont; + TQStringList m_untranslatedNoteStyle; - void populateSizeCombo(QComboBox *combo, std::string font, int dfltSize); + void populateSizeCombo(TQComboBox *combo, std::string font, int dfltSize); }; diff --git a/src/gui/configuration/TabbedConfigurationPage.cpp b/src/gui/configuration/TabbedConfigurationPage.cpp index cc808a9..ae64894 100644 --- a/src/gui/configuration/TabbedConfigurationPage.cpp +++ b/src/gui/configuration/TabbedConfigurationPage.cpp @@ -29,17 +29,17 @@ #include "document/RosegardenGUIDoc.h" #include <kconfig.h> #include <kdialog.h> -#include <qstring.h> -#include <qtabwidget.h> -#include <qwidget.h> -#include <qlayout.h> +#include <tqstring.h> +#include <tqtabwidget.h> +#include <tqwidget.h> +#include <tqlayout.h> namespace Rosegarden { TabbedConfigurationPage::TabbedConfigurationPage(RosegardenGUIDoc *doc, - QWidget *parent, + TQWidget *parent, const char *name) : ConfigurationPage(doc, parent, name) { @@ -47,7 +47,7 @@ TabbedConfigurationPage::TabbedConfigurationPage(RosegardenGUIDoc *doc, } TabbedConfigurationPage::TabbedConfigurationPage(KConfig *cfg, - QWidget *parent, + TQWidget *parent, const char *name) : ConfigurationPage(cfg, parent, name) { @@ -56,7 +56,7 @@ TabbedConfigurationPage::TabbedConfigurationPage(KConfig *cfg, TabbedConfigurationPage::TabbedConfigurationPage(RosegardenGUIDoc *doc, KConfig *cfg, - QWidget *parent, + TQWidget *parent, const char *name) : ConfigurationPage(doc, cfg, parent, name) { @@ -65,12 +65,12 @@ TabbedConfigurationPage::TabbedConfigurationPage(RosegardenGUIDoc *doc, void TabbedConfigurationPage::init() { - QVBoxLayout *vlay = new QVBoxLayout(this, 0, KDialog::spacingHint()); - m_tabWidget = new QTabWidget(this); + TQVBoxLayout *vlay = new TQVBoxLayout(this, 0, KDialog::spacingHint()); + m_tabWidget = new TQTabWidget(this); vlay->addWidget(m_tabWidget); } -void TabbedConfigurationPage::addTab(QWidget *tab, const QString &title) +void TabbedConfigurationPage::addTab(TQWidget *tab, const TQString &title) { m_tabWidget->addTab(tab, title); } diff --git a/src/gui/configuration/TabbedConfigurationPage.h b/src/gui/configuration/TabbedConfigurationPage.h index 8c370d5..afe4520 100644 --- a/src/gui/configuration/TabbedConfigurationPage.h +++ b/src/gui/configuration/TabbedConfigurationPage.h @@ -27,11 +27,11 @@ #define _RG_TABBEDCONFIGURATIONPAGE_H_ #include "ConfigurationPage.h" -#include <qstring.h> +#include <tqstring.h> -class QWidget; -class QTabWidget; +class TQWidget; +class TQTabWidget; class KConfig; @@ -51,24 +51,24 @@ class TabbedConfigurationPage : public ConfigurationPage public: TabbedConfigurationPage(RosegardenGUIDoc *doc, - QWidget *parent=0, const char *name=0); + TQWidget *parent=0, const char *name=0); TabbedConfigurationPage(KConfig *cfg, - QWidget *parent=0, const char *name=0); + TQWidget *parent=0, const char *name=0); TabbedConfigurationPage(RosegardenGUIDoc *doc, KConfig *cfg, - QWidget *parent=0, const char *name=0); + TQWidget *parent=0, const char *name=0); - static QString iconName() { return "misc"; } + static TQString iconName() { return "misc"; } protected: void init(); - void addTab(QWidget *tab, const QString &title); + void addTab(TQWidget *tab, const TQString &title); //--------------- Data members --------------------------------- - QTabWidget *m_tabWidget; + TQTabWidget *m_tabWidget; }; |