diff options
author | Timothy Pearson <[email protected]> | 2013-02-01 15:05:43 -0600 |
---|---|---|
committer | Timothy Pearson <[email protected]> | 2013-02-01 15:05:43 -0600 |
commit | fb3718a55f355cd22f9eb9fa4e89cd3b84b8c9ca (patch) | |
tree | 5785d2ccbdfbe2f44d02fec75b4a51f5079a4b62 /src/gui/dialogs | |
parent | acf699af8244896500e654cccdc8aae7e5b545db (diff) | |
download | rosegarden-fb3718a55f355cd22f9eb9fa4e89cd3b84b8c9ca.tar.gz rosegarden-fb3718a55f355cd22f9eb9fa4e89cd3b84b8c9ca.zip |
Rename a number of classes to enhance compatibility with KDE4
Diffstat (limited to 'src/gui/dialogs')
-rw-r--r-- | src/gui/dialogs/AudioManagerDialog.cpp | 24 | ||||
-rw-r--r-- | src/gui/dialogs/AudioManagerDialog.h | 6 | ||||
-rw-r--r-- | src/gui/dialogs/UnusedAudioSelectionDialog.cpp | 4 |
3 files changed, 17 insertions, 17 deletions
diff --git a/src/gui/dialogs/AudioManagerDialog.cpp b/src/gui/dialogs/AudioManagerDialog.cpp index ce5d518..6cb68bf 100644 --- a/src/gui/dialogs/AudioManagerDialog.cpp +++ b/src/gui/dialogs/AudioManagerDialog.cpp @@ -95,7 +95,7 @@ const char* const AudioManagerDialog::m_listViewLayoutName = "AudioManagerDialog AudioManagerDialog::AudioManagerDialog(TQWidget *parent, RosegardenGUIDoc *doc): - KMainWindow(parent, "audioManagerDialog"), + TDEMainWindow(parent, "audioManagerDialog"), m_doc(doc), m_playingAudioFile(0), m_audioPlayingDialog(0), @@ -129,46 +129,46 @@ AudioManagerDialog::AudioManagerDialog(TQWidget *parent, TQString pixmapDir = TDEGlobal::dirs()->findResource("appdata", "pixmaps/"); TQIconSet icon(TQPixmap(pixmapDir + "/toolbar/transport-play.xpm")); - new KAction(i18n("&Add Audio File..."), "fileopen", 0, TQT_TQOBJECT(this), + new TDEAction(i18n("&Add Audio File..."), "fileopen", 0, TQT_TQOBJECT(this), TQT_SLOT(slotAdd()), actionCollection(), "add_audio"); - new KAction(i18n("&Unload Audio File"), "editdelete", 0, TQT_TQOBJECT(this), + new TDEAction(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, TQT_TQOBJECT(this), + new TDEAction(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, TQT_TQOBJECT(this), + new TDEAction(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"), + new TDEAction(i18n("&Insert into Selected Audio Track"), icon, 0, TQT_TQOBJECT(this), TQT_SLOT(slotInsert()), actionCollection(), "insert_audio"); - new KAction(i18n("Unload &all Audio Files"), 0, 0, TQT_TQOBJECT(this), + new TDEAction(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, TQT_TQOBJECT(this), + new TDEAction(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, TQT_TQOBJECT(this), + new TDEAction(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, TQT_TQOBJECT(this), + new TDEAction(i18n("&Export Audio File..."), "fileexport", 0, TQT_TQOBJECT(this), TQT_SLOT(slotExportAudio()), actionCollection(), "export_audio"); /* - new KAction(i18n("Distribute Audio on &MIDI"), + new TDEAction(i18n("Distribute Audio on &MIDI"), 0, 0, TQT_TQOBJECT(this), TQT_SLOT(slotDistributeOnMidiSegment()), actionCollection(), @@ -1166,7 +1166,7 @@ AudioManagerDialog::closeEvent(TQCloseEvent *e) { RG_DEBUG << "AudioManagerDialog::closeEvent()\n"; emit closing(); - KMainWindow::closeEvent(e); + TDEMainWindow::closeEvent(e); } void diff --git a/src/gui/dialogs/AudioManagerDialog.h b/src/gui/dialogs/AudioManagerDialog.h index 99ebee3..60e28d1 100644 --- a/src/gui/dialogs/AudioManagerDialog.h +++ b/src/gui/dialogs/AudioManagerDialog.h @@ -40,7 +40,7 @@ class TQDropEvent; class TQCloseEvent; class TQAccel; class KURL; -class KListView; +class TDEListView; class KCommand; @@ -56,7 +56,7 @@ class AudioPlayingDialog; class AudioFile; -class AudioManagerDialog : public KMainWindow +class AudioManagerDialog : public TDEMainWindow { Q_OBJECT @@ -182,7 +182,7 @@ protected: //--------------- Data members --------------------------------- - KListView *m_fileList; + TDEListView *m_fileList; TQLabel *m_wrongSampleRates; RosegardenGUIDoc *m_doc; diff --git a/src/gui/dialogs/UnusedAudioSelectionDialog.cpp b/src/gui/dialogs/UnusedAudioSelectionDialog.cpp index b15fe07..2c86a01 100644 --- a/src/gui/dialogs/UnusedAudioSelectionDialog.cpp +++ b/src/gui/dialogs/UnusedAudioSelectionDialog.cpp @@ -48,7 +48,7 @@ UnusedAudioSelectionDialog::UnusedAudioSelectionDialog(TQWidget *parent, TQVBox *vbox = makeVBoxMainWidget(); new TQLabel(introductoryText, vbox); - m_listView = new KListView(vbox); + m_listView = new TDEListView(vbox); m_listView->addColumn(i18n("File name")); m_listView->addColumn(i18n("File size")); @@ -63,7 +63,7 @@ UnusedAudioSelectionDialog::UnusedAudioSelectionDialog(TQWidget *parent, fileSize = TQString(" %1 ").arg(info.size()); fileDate = TQString(" %1 ").arg(info.lastModified().toString()); } - TQListViewItem *item = new KListViewItem + TQListViewItem *item = new TDEListViewItem (m_listView, fileName, fileSize, fileDate); } |