summaryrefslogtreecommitdiffstats
path: root/src/gui/dialogs/AudioManagerDialog.cpp
diff options
context:
space:
mode:
authorMichele Calgaro <[email protected]>2024-01-02 11:38:07 +0900
committerMichele Calgaro <[email protected]>2024-01-02 12:06:34 +0900
commite9f46130c2656aaf299d8793556310c9bf95daee (patch)
tree19c604d8c26146c0f36e8b13cfa02982f2196025 /src/gui/dialogs/AudioManagerDialog.cpp
parent9b054308cef27a642eaa6e9a86db215151468e0b (diff)
downloadrosegarden-e9f46130c2656aaf299d8793556310c9bf95daee.tar.gz
rosegarden-e9f46130c2656aaf299d8793556310c9bf95daee.zip
Use new TQ_METHOD, TQ_SIGNAL, TQ_SLOT defines
Signed-off-by: Michele Calgaro <[email protected]>
Diffstat (limited to 'src/gui/dialogs/AudioManagerDialog.cpp')
-rw-r--r--src/gui/dialogs/AudioManagerDialog.cpp64
1 files changed, 32 insertions, 32 deletions
diff --git a/src/gui/dialogs/AudioManagerDialog.cpp b/src/gui/dialogs/AudioManagerDialog.cpp
index 8827400..7a12b9b 100644
--- a/src/gui/dialogs/AudioManagerDialog.cpp
+++ b/src/gui/dialogs/AudioManagerDialog.cpp
@@ -128,47 +128,47 @@ AudioManagerDialog::AudioManagerDialog(TQWidget *parent,
TQIconSet icon(TQPixmap(pixmapDir + "/toolbar/transport-play.xpm"));
new TDEAction(i18n("&Add Audio File..."), "document-open", 0, this,
- TQT_SLOT(slotAdd()), actionCollection(), "add_audio");
+ TQ_SLOT(slotAdd()), actionCollection(), "add_audio");
new TDEAction(i18n("&Unload Audio File"), "edit-delete", 0, this,
- TQT_SLOT(slotRemove()),
+ TQ_SLOT(slotRemove()),
actionCollection(), "remove_audio");
icon = TQIconSet(TQPixmap(pixmapDir + "/toolbar/transport-play.xpm"));
new TDEAction(i18n("&Play Preview"), icon, 0, this,
- TQT_SLOT(slotPlayPreview()),
+ TQ_SLOT(slotPlayPreview()),
actionCollection(), "preview_audio");
/*!!! Not actually implemented -- this never worked right!
new TDEAction(i18n("Re&label"), 0, 0, this,
- TQT_SLOT(slotRename()),
+ TQ_SLOT(slotRename()),
actionCollection(), "rename_audio");
*/
icon = TQIconSet(TQPixmap(pixmapDir + "/toolbar/insert_audio_into_track.xpm"));
new TDEAction(i18n("&Insert into Selected Audio Track"),
- icon, 0, this, TQT_SLOT(slotInsert()),
+ icon, 0, this, TQ_SLOT(slotInsert()),
actionCollection(), "insert_audio");
new TDEAction(i18n("Unload &all Audio Files"), 0, 0, this,
- TQT_SLOT(slotRemoveAll()),
+ TQ_SLOT(slotRemoveAll()),
actionCollection(), "remove_all_audio");
new TDEAction(i18n("Unload all &Unused Audio Files"), 0, 0, this,
- TQT_SLOT(slotRemoveAllUnused()),
+ TQ_SLOT(slotRemoveAllUnused()),
actionCollection(), "remove_all_unused_audio");
new TDEAction(i18n("&Delete Unused Audio Files..."), 0, 0, this,
- TQT_SLOT(slotDeleteUnused()),
+ TQ_SLOT(slotDeleteUnused()),
actionCollection(), "delete_unused_audio");
new TDEAction(i18n("&Export Audio File..."), "fileexport", 0, this,
- TQT_SLOT(slotExportAudio()),
+ TQ_SLOT(slotExportAudio()),
actionCollection(), "export_audio");
/*
new TDEAction(i18n("Distribute Audio on &MIDI"),
0, 0, this,
- TQT_SLOT(slotDistributeOnMidiSegment()),
+ TQ_SLOT(slotDistributeOnMidiSegment()),
actionCollection(),
"distribute_audio");
*/
@@ -200,11 +200,11 @@ AudioManagerDialog::AudioManagerDialog(TQWidget *parent,
m_fileList->setShowToolTips(true);
// connect selection mechanism
- connect(m_fileList, TQT_SIGNAL(selectionChanged(TQListViewItem*)),
- TQT_SLOT(slotSelectionChanged(TQListViewItem*)));
+ connect(m_fileList, TQ_SIGNAL(selectionChanged(TQListViewItem*)),
+ TQ_SLOT(slotSelectionChanged(TQListViewItem*)));
- connect(m_fileList, TQT_SIGNAL(dropped(TQDropEvent*, TQListViewItem*)),
- TQT_SLOT(slotDropped(TQDropEvent*, TQListViewItem*)));
+ connect(m_fileList, TQ_SIGNAL(dropped(TQDropEvent*, TQListViewItem*)),
+ TQ_SLOT(slotDropped(TQDropEvent*, TQListViewItem*)));
// setup local accelerators
//
@@ -214,22 +214,22 @@ AudioManagerDialog::AudioManagerDialog(TQWidget *parent,
//
m_accelerators->connectItem(m_accelerators->insertItem(Key_Delete),
this,
- TQT_SLOT(slotRemove()));
+ TQ_SLOT(slotRemove()));
slotPopulateFileList();
// Connect command history for updates
//
- connect(getCommandHistory(), TQT_SIGNAL(commandExecuted(KCommand *)),
- this, TQT_SLOT(slotCommandExecuted(KCommand *)));
+ connect(getCommandHistory(), TQ_SIGNAL(commandExecuted(KCommand *)),
+ this, TQ_SLOT(slotCommandExecuted(KCommand *)));
//setInitialSize(configDialogSize(AudioManagerDialogConfigGroup));
- connect(m_playTimer, TQT_SIGNAL(timeout()),
- this, TQT_SLOT(slotCancelPlayingAudio()));
+ connect(m_playTimer, TQ_SIGNAL(timeout()),
+ this, TQ_SLOT(slotCancelPlayingAudio()));
KStdAction::close(this,
- TQT_SLOT(slotClose()),
+ TQ_SLOT(slotClose()),
actionCollection());
createGUI("audiomanager.rc");
@@ -1091,12 +1091,12 @@ AudioManagerDialog::addFile(const KURL& kurl)
// Connect the progress dialog
//
- connect(&aFM, TQT_SIGNAL(setProgress(int)),
- progressDlg.progressBar(), TQT_SLOT(setValue(int)));
- connect(&aFM, TQT_SIGNAL(setOperationName(TQString)),
- &progressDlg, TQT_SLOT(slotSetOperationName(TQString)));
- connect(&progressDlg, TQT_SIGNAL(cancelClicked()),
- &aFM, TQT_SLOT(slotStopImport()));
+ connect(&aFM, TQ_SIGNAL(setProgress(int)),
+ progressDlg.progressBar(), TQ_SLOT(setValue(int)));
+ connect(&aFM, TQ_SIGNAL(setOperationName(TQString)),
+ &progressDlg, TQ_SLOT(slotSetOperationName(TQString)));
+ connect(&progressDlg, TQ_SIGNAL(cancelClicked()),
+ &aFM, TQ_SLOT(slotStopImport()));
try {
id = aFM.importURL(kurl, m_sampleRate);
@@ -1112,10 +1112,10 @@ AudioManagerDialog::addFile(const KURL& kurl)
return false;
}
- disconnect(&progressDlg, TQT_SIGNAL(cancelClicked()),
- &aFM, TQT_SLOT(slotStopImport()));
- connect(&progressDlg, TQT_SIGNAL(cancelClicked()),
- &aFM, TQT_SLOT(slotStopPreview()));
+ disconnect(&progressDlg, TQ_SIGNAL(cancelClicked()),
+ &aFM, TQ_SLOT(slotStopImport()));
+ connect(&progressDlg, TQ_SIGNAL(cancelClicked()),
+ &aFM, TQ_SLOT(slotStopPreview()));
progressDlg.progressBar()->show();
progressDlg.slotSetOperationName(i18n("Generating audio preview..."));
@@ -1129,8 +1129,8 @@ AudioManagerDialog::addFile(const KURL& kurl)
KMessageBox::information(this, message);
}
- disconnect(&progressDlg, TQT_SIGNAL(cancelClicked()),
- &aFM, TQT_SLOT(slotStopPreview()));
+ disconnect(&progressDlg, TQ_SIGNAL(cancelClicked()),
+ &aFM, TQ_SLOT(slotStopPreview()));
slotPopulateFileList();