summaryrefslogtreecommitdiffstats
path: root/src/gui/configuration/AudioConfigurationPage.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/gui/configuration/AudioConfigurationPage.cpp')
-rw-r--r--src/gui/configuration/AudioConfigurationPage.cpp60
1 files changed, 30 insertions, 30 deletions
diff --git a/src/gui/configuration/AudioConfigurationPage.cpp b/src/gui/configuration/AudioConfigurationPage.cpp
index 6361576..38b675a 100644
--- a/src/gui/configuration/AudioConfigurationPage.cpp
+++ b/src/gui/configuration/AudioConfigurationPage.cpp
@@ -67,9 +67,9 @@ namespace Rosegarden
AudioConfigurationPage::AudioConfigurationPage(
RosegardenGUIDoc *doc,
KConfig *cfg,
- TQWidget *parent,
+ TQWidget *tqparent,
const char *name):
- TabbedConfigurationPage(cfg, parent, name),
+ TabbedConfigurationPage(cfg, tqparent, name),
m_externalAudioEditorPath(0)
{
// set the document in the super class
@@ -78,7 +78,7 @@ AudioConfigurationPage::AudioConfigurationPage(
m_cfg->setGroup(SequencerOptionsConfigGroup);
TQFrame *frame = new TQFrame(m_tabWidget);
- TQGridLayout *layout = new TQGridLayout(frame, 7, 2, 10, 5);
+ TQGridLayout *tqlayout = new TQGridLayout(frame, 7, 2, 10, 5);
TQLabel *label = 0;
@@ -86,17 +86,17 @@ AudioConfigurationPage::AudioConfigurationPage(
m_cfg->setGroup(GeneralOptionsConfigGroup);
- layout->setRowSpacing(row, 15);
+ tqlayout->setRowSpacing(row, 15);
++row;
- layout->addWidget(new TQLabel(i18n("Audio preview scale"),
+ tqlayout->addWidget(new TQLabel(i18n("Audio preview scale"),
frame), row, 0);
m_previewStyle = new KComboBox(frame);
m_previewStyle->insertItem(i18n("Linear - easier to see loud peaks"));
m_previewStyle->insertItem(i18n("Meter scaling - easier to see quiet activity"));
m_previewStyle->setCurrentItem(m_cfg->readUnsignedNumEntry("audiopreviewstyle", 1));
- layout->addMultiCellWidget(m_previewStyle, row, row, 1, 2);
+ tqlayout->addMultiCellWidget(m_previewStyle, row, row, 1, 2);
++row;
#ifdef HAVE_LIBJACK
@@ -107,14 +107,14 @@ AudioConfigurationPage::AudioConfigurationPage(
m_audioRecFormat->insertItem(i18n("16-bit PCM WAV format (smaller files)"));
m_audioRecFormat->insertItem(i18n("32-bit float WAV format (higher quality)"));
m_audioRecFormat->setCurrentItem(m_cfg->readUnsignedNumEntry("audiorecordfileformat", 1));
- layout->addWidget(label, row, 0);
- layout->addMultiCellWidget(m_audioRecFormat, row, row, 1, 2);
+ tqlayout->addWidget(label, row, 0);
+ tqlayout->addMultiCellWidget(m_audioRecFormat, row, row, 1, 2);
++row;
#endif
m_cfg->setGroup(GeneralOptionsConfigGroup);
- layout->addWidget(new TQLabel(i18n("External audio editor"), frame),
+ tqlayout->addWidget(new TQLabel(i18n("External audio editor"), frame),
row, 0);
TQString defaultAudioEditor = getBestAvailableAudioEditor();
@@ -131,18 +131,18 @@ AudioConfigurationPage::AudioConfigurationPage(
m_externalAudioEditorPath = new TQLineEdit(externalAudioEditor, frame);
// m_externalAudioEditorPath->setMinimumWidth(150);
- layout->addWidget(m_externalAudioEditorPath, row, 1);
+ tqlayout->addWidget(m_externalAudioEditorPath, row, 1);
TQPushButton *changePathButton =
new TQPushButton(i18n("Choose..."), frame);
- layout->addWidget(changePathButton, row, 2);
+ tqlayout->addWidget(changePathButton, row, 2);
connect(changePathButton, TQT_SIGNAL(clicked()), TQT_SLOT(slotFileDialog()));
++row;
m_cfg->setGroup(SequencerOptionsConfigGroup);
- layout->addWidget(new TQLabel(i18n("Create JACK outputs"), frame),
+ tqlayout->addWidget(new TQLabel(i18n("Create JACK outputs"), frame),
row, 0);
// ++row;
@@ -150,20 +150,20 @@ AudioConfigurationPage::AudioConfigurationPage(
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);
+// tqlayout->addWidget(label, row, 0, TQt::AlignRight);
+ tqlayout->addWidget(m_createFaderOuts, row, 1);
++row;
m_createSubmasterOuts = new TQCheckBox(i18n("for submasters"), frame);
m_createSubmasterOuts->setChecked(m_cfg->readBoolEntry("audiosubmasterouts",
false));
-// layout->addWidget(label, row, 0, Qt::AlignRight);
- layout->addWidget(m_createSubmasterOuts, row, 1);
+// tqlayout->addWidget(label, row, 0, TQt::AlignRight);
+ tqlayout->addWidget(m_createSubmasterOuts, row, 1);
++row;
#endif
- layout->setRowStretch(row, 10);
+ tqlayout->setRowStretch(row, 10);
addTab(frame, i18n("General"));
@@ -174,17 +174,17 @@ AudioConfigurationPage::AudioConfigurationPage(
#ifdef OFFER_JACK_START_OPTION
frame = new TQFrame(m_tabWidget);
- layout = new TQGridLayout(frame, 8, 4, 10, 5);
+ tqlayout = new TQGridLayout(frame, 8, 4, 10, 5);
row = 0;
- layout->setRowSpacing(row, 15);
+ tqlayout->setRowSpacing(row, 15);
++row;
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);
+ label->tqsetAlignment(TQt::WordBreak);
- layout->addMultiCellWidget(label, row, row, 0, 3);
+ tqlayout->addMultiCellWidget(label, row, row, 0, 3);
++row;
// JACK control things
@@ -193,12 +193,12 @@ AudioConfigurationPage::AudioConfigurationPage(
m_startJack = new TQCheckBox(frame);
m_startJack->setChecked(startJack);
- layout->addWidget(new TQLabel(i18n("Start JACK when Rosegarden starts"), frame), 2, 0);
+ tqlayout->addWidget(new TQLabel(i18n("Start JACK when Rosegarden starts"), frame), 2, 0);
- layout->addWidget(m_startJack, row, 1);
+ tqlayout->addWidget(m_startJack, row, 1);
++row;
- layout->addWidget(new TQLabel(i18n("JACK command"), frame),
+ tqlayout->addWidget(new TQLabel(i18n("JACK command"), frame),
row, 0);
TQString jackPath = m_cfg->readEntry("jackcommand",
@@ -206,10 +206,10 @@ AudioConfigurationPage::AudioConfigurationPage(
"/usr/bin/qjackctl -s");
m_jackPath = new TQLineEdit(jackPath, frame);
- layout->addMultiCellWidget(m_jackPath, row, row, 1, 3);
+ tqlayout->addMultiCellWidget(m_jackPath, row, row, 1, 3);
++row;
- layout->setRowStretch(row, 10);
+ tqlayout->setRowStretch(row, 10);
addTab(frame, i18n("JACK Startup"));
@@ -221,7 +221,7 @@ AudioConfigurationPage::AudioConfigurationPage(
void
AudioConfigurationPage::slotFileDialog()
{
- TQString path = KFileDialog::getOpenFileName(TQString::null, TQString::null, this, i18n("External audio editor path"));
+ TQString path = KFileDialog::getOpenFileName(TQString(), TQString(), this, i18n("External audio editor path"));
m_externalAudioEditorPath->setText(path);
}
@@ -259,7 +259,7 @@ AudioConfigurationPage::apply()
if (extpath != "") {
TQFileInfo info(extpath);
if (!info.exists() || !info.isExecutable()) {
- KMessageBox::error(0, i18n("External audio editor \"%1\" not found or not executable").arg(extpath));
+ KMessageBox::error(0, i18n("External audio editor \"%1\" not found or not executable").tqarg(extpath));
m_cfg->writeEntry("externalaudioeditor", "");
} else {
m_cfg->writeEntry("externalaudioeditor", externalAudioEditor);
@@ -269,7 +269,7 @@ AudioConfigurationPage::apply()
}
}
-QString
+TQString
AudioConfigurationPage::getBestAvailableAudioEditor()
{
static TQString result = "";
@@ -306,7 +306,7 @@ AudioConfigurationPage::getBestAvailableAudioEditor()
if (fi.exists() && fi.isExecutable()) {
if (n == "rezound") {
- result = TQString("%1 --audio-method=jack").arg(fp);
+ result = TQString("%1 --audio-method=jack").tqarg(fp);
} else {
result = fp;
}