summaryrefslogtreecommitdiffstats
path: root/src/gui/dialogs/AudioManagerDialog.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/gui/dialogs/AudioManagerDialog.cpp')
-rw-r--r--src/gui/dialogs/AudioManagerDialog.cpp68
1 files changed, 34 insertions, 34 deletions
diff --git a/src/gui/dialogs/AudioManagerDialog.cpp b/src/gui/dialogs/AudioManagerDialog.cpp
index a5c326c..e283126 100644
--- a/src/gui/dialogs/AudioManagerDialog.cpp
+++ b/src/gui/dialogs/AudioManagerDialog.cpp
@@ -93,9 +93,9 @@ const int AudioManagerDialog::m_maxPreviewWidth = 100;
const int AudioManagerDialog::m_previewHeight = 30;
const char* const AudioManagerDialog::m_listViewLayoutName = "AudioManagerDialog Layout";
-AudioManagerDialog::AudioManagerDialog(TQWidget *parent,
+AudioManagerDialog::AudioManagerDialog(TQWidget *tqparent,
RosegardenGUIDoc *doc):
- KMainWindow(parent, "audioManagerDialog"),
+ KMainWindow(tqparent, "audioManagerDialog"),
m_doc(doc),
m_playingAudioFile(0),
m_audioPlayingDialog(0),
@@ -129,47 +129,47 @@ AudioManagerDialog::AudioManagerDialog(TQWidget *parent,
TQString pixmapDir = KGlobal::dirs()->findResource("appdata", "pixmaps/");
TQIconSet icon(TQPixmap(pixmapDir + "/toolbar/transport-play.xpm"));
- new KAction(i18n("&Add Audio File..."), "fileopen", 0, this,
+ new KAction(i18n("&Add Audio File..."), "fileopen", 0, TQT_TQOBJECT(this),
TQT_SLOT(slotAdd()), actionCollection(), "add_audio");
- new KAction(i18n("&Unload Audio File"), "editdelete", 0, this,
+ new KAction(i18n("&Unload Audio File"), "editdelete", 0, TQT_TQOBJECT(this),
TQT_SLOT(slotRemove()),
actionCollection(), "remove_audio");
icon = TQIconSet(TQPixmap(pixmapDir + "/toolbar/transport-play.xpm"));
- new KAction(i18n("&Play Preview"), icon, 0, this,
+ new KAction(i18n("&Play Preview"), icon, 0, TQT_TQOBJECT(this),
TQT_SLOT(slotPlayPreview()),
actionCollection(), "preview_audio");
/*!!! Not actually implemented -- this never worked right!
- new KAction(i18n("Re&label"), 0, 0, this,
+ new KAction(i18n("Re&label"), 0, 0, TQT_TQOBJECT(this),
TQT_SLOT(slotRename()),
actionCollection(), "rename_audio");
*/
icon = TQIconSet(TQPixmap(pixmapDir + "/toolbar/insert_audio_into_track.xpm"));
new KAction(i18n("&Insert into Selected Audio Track"),
- icon, 0, this, TQT_SLOT(slotInsert()),
+ icon, 0, TQT_TQOBJECT(this), TQT_SLOT(slotInsert()),
actionCollection(), "insert_audio");
- new KAction(i18n("Unload &all Audio Files"), 0, 0, this,
+ new KAction(i18n("Unload &all Audio Files"), 0, 0, TQT_TQOBJECT(this),
TQT_SLOT(slotRemoveAll()),
actionCollection(), "remove_all_audio");
- new KAction(i18n("Unload all &Unused Audio Files"), 0, 0, this,
+ new KAction(i18n("Unload all &Unused Audio Files"), 0, 0, TQT_TQOBJECT(this),
TQT_SLOT(slotRemoveAllUnused()),
actionCollection(), "remove_all_unused_audio");
- new KAction(i18n("&Delete Unused Audio Files..."), 0, 0, this,
+ new KAction(i18n("&Delete Unused Audio Files..."), 0, 0, TQT_TQOBJECT(this),
TQT_SLOT(slotDeleteUnused()),
actionCollection(), "delete_unused_audio");
- new KAction(i18n("&Export Audio File..."), "fileexport", 0, this,
+ new KAction(i18n("&Export Audio File..."), "fileexport", 0, TQT_TQOBJECT(this),
TQT_SLOT(slotExportAudio()),
actionCollection(), "export_audio");
/*
new KAction(i18n("Distribute Audio on &MIDI"),
- 0, 0, this,
+ 0, 0, TQT_TQOBJECT(this),
TQT_SLOT(slotDistributeOnMidiSegment()),
actionCollection(),
"distribute_audio");
@@ -184,11 +184,11 @@ AudioManagerDialog::AudioManagerDialog(TQWidget *parent,
m_fileList->addColumn(i18n("Resolution")); // 5
m_fileList->addColumn(i18n("File")); // 6
- m_fileList->setColumnAlignment(1, Qt::AlignHCenter);
- m_fileList->setColumnAlignment(2, Qt::AlignHCenter);
- m_fileList->setColumnAlignment(3, Qt::AlignHCenter);
- m_fileList->setColumnAlignment(4, Qt::AlignHCenter);
- m_fileList->setColumnAlignment(5, Qt::AlignHCenter);
+ m_fileList->setColumnAlignment(1, TQt::AlignHCenter);
+ m_fileList->setColumnAlignment(2, TQt::AlignHCenter);
+ m_fileList->setColumnAlignment(3, TQt::AlignHCenter);
+ m_fileList->setColumnAlignment(4, TQt::AlignHCenter);
+ m_fileList->setColumnAlignment(5, TQt::AlignHCenter);
m_fileList->restoreLayout(kapp->config(), m_listViewLayoutName);
@@ -230,7 +230,7 @@ AudioManagerDialog::AudioManagerDialog(TQWidget *parent,
connect(m_playTimer, TQT_SIGNAL(timeout()),
this, TQT_SLOT(slotCancelPlayingAudio()));
- KStdAction::close(this,
+ KStdAction::close(TQT_TQOBJECT(this),
TQT_SLOT(slotClose()),
actionCollection());
@@ -326,7 +326,7 @@ AudioManagerDialog::slotPopulateFileList()
} catch (Exception e) {
audioPixmap->fill(); // white
TQPainter p(audioPixmap);
- p.setPen(Qt::black);
+ p.setPen(TQt::black);
p.drawText(10, m_previewHeight / 2, TQString("<no preview>"));
}
@@ -343,7 +343,7 @@ AudioManagerDialog::slotPopulateFileList()
//
length = (*it)->getLength();
msecs.sprintf("%03d", length.nsec / 1000000);
- item->setText(1, TQString("%1.%2s").arg(length.sec).arg(msecs));
+ item->setText(1, TQString("%1.%2s").tqarg(length.sec).tqarg(msecs));
// set start time and duration
item->setStartTime(RealTime::zeroTime);
@@ -361,11 +361,11 @@ AudioManagerDialog::slotPopulateFileList()
// Resolution
//
- item->setText(5, TQString("%1 bits").arg((*it)->getBitsPerSample()));
+ item->setText(5, TQString("%1 bits").tqarg((*it)->getBitsPerSample()));
// Channels
//
- item->setText(4, TQString("%1").arg((*it)->getChannels()));
+ item->setText(4, TQString("%1").tqarg((*it)->getChannels()));
// Sample rate
//
@@ -384,7 +384,7 @@ AudioManagerDialog::slotPopulateFileList()
findSelection = false;
}
- // Add children
+ // Add tqchildren
//
for (iit = segments.begin(); iit != segments.end(); iit++) {
if ((*iit)->getAudioFileId() == (*it)->getId()) {
@@ -404,8 +404,8 @@ AudioManagerDialog::slotPopulateFileList()
//
msecs.sprintf("%03d", segmentDuration.nsec / 1000000);
childItem->setText(1, TQString("%1.%2s")
- .arg(segmentDuration.sec)
- .arg(msecs));
+ .tqarg(segmentDuration.sec)
+ .tqarg(msecs));
try {
m_doc->getAudioFileManager().
@@ -433,7 +433,7 @@ AudioManagerDialog::slotPopulateFileList()
foundSelection = true;
}
- // Add children
+ // Add tqchildren
}
}
}
@@ -493,7 +493,7 @@ AudioManagerDialog::slotExportAudio()
// Check for a dot extension and append ".wav" if not found
//
- if (saveFile.contains(".") == 0)
+ if (saveFile.tqcontains(".") == 0)
saveFile += ".wav";
ProgressDialog progressDlg(i18n("Exporting audio file..."),
@@ -558,10 +558,10 @@ AudioManagerDialog::slotRemove()
if (newItem == 0)
newItem = item->itemAbove();
- // Or the parent
+ // Or the tqparent
//
if (newItem == 0)
- newItem = item->parent();
+ newItem = item->tqparent();
// Get the id and segment of the next item so that we can
// match against it
@@ -607,7 +607,7 @@ AudioManagerDialog::slotRemove()
if (haveSegments) {
TQString question = i18n("This will unload audio file \"%1\" and remove all associated segments. Are you sure?")
- .arg(TQString(audioFile->getFilename().c_str()));
+ .tqarg(TQString(audioFile->getFilename().c_str()));
// Ask the question
int reply = KMessageBox::warningContinueCancel(this, question);
@@ -885,7 +885,7 @@ AudioManagerDialog::slotDeleteUnused()
std::cerr << i << ": " << names[i] << std::endl;
TQFile file(names[i]);
if (!file.remove()) {
- KMessageBox::error(this, i18n("File %1 could not be deleted.").arg(names[i]));
+ KMessageBox::error(this, i18n("File %1 could not be deleted.").tqarg(names[i]));
} else {
if (nameMap.find(names[i]) != nameMap.end()) {
m_doc->getAudioFileManager().removeFile(nameMap[names[i]]);
@@ -894,7 +894,7 @@ AudioManagerDialog::slotDeleteUnused()
std::cerr << "WARNING: Audio file name " << names[i] << " not in name map" << std::endl;
}
- TQFile peakFile(TQString("%1.pk").arg(names[i]));
+ TQFile peakFile(TQString("%1.pk").tqarg(names[i]));
peakFile.remove();
}
}
@@ -1179,7 +1179,7 @@ AudioManagerDialog::slotClose()
}
void
-AudioManagerDialog::setAudioSubsystemStatus(bool ok)
+AudioManagerDialog::setAudioSubsystemtqStatus(bool ok)
{
// We can do something more fancy in the future but for the moment
// this will suffice.
@@ -1222,7 +1222,7 @@ AudioManagerDialog::slotDistributeOnMidiSegment()
//Composition &comp = m_doc->getComposition();
- QList<RosegardenGUIView>& viewList = m_doc->getViewList();
+ TQList<RosegardenGUIView>& viewList = m_doc->getViewList();
RosegardenGUIView *w = 0;
SegmentSelection selection;