summaryrefslogtreecommitdiffstats
path: root/noatun/library
diff options
context:
space:
mode:
authorTimothy Pearson <kb9vqf@pearsoncomputing.net>2013-02-01 15:13:25 -0600
committerTimothy Pearson <kb9vqf@pearsoncomputing.net>2013-02-01 15:13:25 -0600
commit940c092f32d40263ad6b24f948eaf4c48b01e99a (patch)
treef5235b5c44e8aaedd3484a00551e29993d548590 /noatun/library
parentced2058eaf8e5af831ebc02812a18937ff7e1de3 (diff)
downloadtdemultimedia-940c092f32d40263ad6b24f948eaf4c48b01e99a.tar.gz
tdemultimedia-940c092f32d40263ad6b24f948eaf4c48b01e99a.zip
Rename a number of classes to enhance compatibility with KDE4
Diffstat (limited to 'noatun/library')
-rw-r--r--noatun/library/app.cpp2
-rw-r--r--noatun/library/cmodule.h2
-rw-r--r--noatun/library/controls.cpp18
-rw-r--r--noatun/library/effectview.cpp2
-rw-r--r--noatun/library/effectview.h2
-rw-r--r--noatun/library/equalizerview.cpp8
-rw-r--r--noatun/library/equalizerview.h2
-rw-r--r--noatun/library/mimetypetree.cpp2
-rw-r--r--noatun/library/mimetypetree.h2
-rw-r--r--noatun/library/noatun/app.h8
-rw-r--r--noatun/library/noatun/controls.h4
-rw-r--r--noatun/library/noatun/stdaction.h62
-rw-r--r--noatun/library/noatun/stereobuttonaction.h2
-rw-r--r--noatun/library/noatunstdaction.cpp62
-rw-r--r--noatun/library/pluginmodule.cpp8
-rw-r--r--noatun/library/pluginmodule.h2
-rw-r--r--noatun/library/stereobuttonaction.cpp12
17 files changed, 100 insertions, 100 deletions
diff --git a/noatun/library/app.cpp b/noatun/library/app.cpp
index 29478e7b..1f05502a 100644
--- a/noatun/library/app.cpp
+++ b/noatun/library/app.cpp
@@ -367,7 +367,7 @@ NoatunStdAction::PluginActionMenu *NoatunApp::pluginActionMenu()
return mPluginActionMenu;
}
-KPopupMenu *NoatunApp::pluginMenu()
+TDEPopupMenu *NoatunApp::pluginMenu()
{
if(!mPluginMenu)
mPluginMenu = pluginActionMenu()->popupMenu();
diff --git a/noatun/library/cmodule.h b/noatun/library/cmodule.h
index f7fbcd0d..52682084 100644
--- a/noatun/library/cmodule.h
+++ b/noatun/library/cmodule.h
@@ -5,7 +5,7 @@
#include <klistview.h>
#include "noatun/pref.h"
-class KListView;
+class TDEListView;
class TQSplitter;
class TQListViewItem;
class NoatunLibraryInfo;
diff --git a/noatun/library/controls.cpp b/noatun/library/controls.cpp
index 4fbc0a19..4a6ca9a8 100644
--- a/noatun/library/controls.cpp
+++ b/noatun/library/controls.cpp
@@ -53,7 +53,7 @@ void L33tSlider::wheelEvent(TQWheelEvent *e)
SliderAction::SliderAction(const TQString& text, int accel, const TQObject *receiver,
const char *member, TQObject* parent, const char* name )
- : KAction( text, accel, parent, name )
+ : TDEAction( text, accel, parent, name )
{
m_receiver = receiver;
m_member = member;
@@ -61,10 +61,10 @@ SliderAction::SliderAction(const TQString& text, int accel, const TQObject *rece
int SliderAction::plug( TQWidget *w, int index )
{
- if (!w->inherits("KToolBar")) return -1;
+ if (!w->inherits("TDEToolBar")) return -1;
- KToolBar *toolBar = (KToolBar *)w;
- int id = KAction::getToolButtonID();
+ TDEToolBar *toolBar = (TDEToolBar *)w;
+ int id = TDEAction::getToolButtonID();
//Create it.
m_slider=new L33tSlider(0, 1000, 100, 0,Qt::Horizontal, toolBar);
@@ -76,20 +76,20 @@ int SliderAction::plug( TQWidget *w, int index )
connect( toolBar, TQT_SIGNAL( destroyed() ), this, TQT_SLOT( slotDestroyed() ) );
toolBar->setItemAutoSized( id, true );
- if (w->inherits( "KToolBar" ))
- connect(toolBar, TQT_SIGNAL(moved(KToolBar::BarPosition)), this, TQT_SLOT(toolbarMoved(KToolBar::BarPosition)));
+ if (w->inherits( "TDEToolBar" ))
+ connect(toolBar, TQT_SIGNAL(moved(TDEToolBar::BarPosition)), this, TQT_SLOT(toolbarMoved(TDEToolBar::BarPosition)));
emit plugged();
return containerCount() - 1;
}
-void SliderAction::toolbarMoved(KToolBar::BarPosition)
+void SliderAction::toolbarMoved(TDEToolBar::BarPosition)
{
// I wish this worked :)
return;
/*
- if (pos == KToolBar::Left || pos == KToolBar::Right)
+ if (pos == TDEToolBar::Left || pos == TDEToolBar::Right)
{
m_slider->setOrientationVertical);
m_slider->setFixedWidth(m_slider->height());
@@ -104,7 +104,7 @@ return;
void SliderAction::unplug( TQWidget *w )
{
- KToolBar *toolBar = (KToolBar *)w;
+ TDEToolBar *toolBar = (TDEToolBar *)w;
int idx = findContainer( w );
toolBar->removeItem( menuId( idx ) );
diff --git a/noatun/library/effectview.cpp b/noatun/library/effectview.cpp
index cd9e7d93..5d40e37e 100644
--- a/noatun/library/effectview.cpp
+++ b/noatun/library/effectview.cpp
@@ -56,7 +56,7 @@ private:
};
EffectList::EffectList(TQWidget *parent)
- : KListView(parent)
+ : TDEListView(parent)
{
}
diff --git a/noatun/library/effectview.h b/noatun/library/effectview.h
index 718a2e82..5c45fa40 100644
--- a/noatun/library/effectview.h
+++ b/noatun/library/effectview.h
@@ -72,7 +72,7 @@ private:
EffectList *active;
};
-class EffectList : public KListView
+class EffectList : public TDEListView
{
Q_OBJECT
diff --git a/noatun/library/equalizerview.cpp b/noatun/library/equalizerview.cpp
index c243a349..69acf562 100644
--- a/noatun/library/equalizerview.cpp
+++ b/noatun/library/equalizerview.cpp
@@ -31,7 +31,7 @@
// PresetList
PresetList::PresetList(TQWidget *parent, const char *name)
- : KListView(parent, name)
+ : TDEListView(parent, name)
{
setItemsRenameable(true);
setRenameable(0, true);
@@ -55,7 +55,7 @@ void PresetList::rename(TQListViewItem *item, int c)
if (!TQFileInfo(item->text(1)).isWritable())
return;
- KListView::rename(item, c);
+ TDEListView::rename(item, c);
}
////////////////////////////////////////////////
@@ -143,7 +143,7 @@ void EqualizerView::show()
connect(mWidget->addPresetButton, TQT_SIGNAL(clicked()), TQT_SLOT(create()));
connect(mWidget->resetEqButton, TQT_SIGNAL(clicked()), TQT_SLOT(reset()));
- new KListViewItem(mPresets, i18n("Custom"));
+ new TDEListViewItem(mPresets, i18n("Custom"));
connect(mPresets, TQT_SIGNAL(currentChanged(TQListViewItem*)),
this, TQT_SLOT(select(TQListViewItem*)));
@@ -250,7 +250,7 @@ void EqualizerView::created(VPreset p)
// store the filename in TQListViewItem::text(0)
TQString n = p.name();
TQString f = p.file();
- new KListViewItem(mPresets, n, f);
+ new TDEListViewItem(mPresets, n, f);
}
void EqualizerView::renamed(VPreset p)
diff --git a/noatun/library/equalizerview.h b/noatun/library/equalizerview.h
index 2c27b45e..ed495a23 100644
--- a/noatun/library/equalizerview.h
+++ b/noatun/library/equalizerview.h
@@ -34,7 +34,7 @@ private:
};
-class PresetList : public KListView
+class PresetList : public TDEListView
{
Q_OBJECT
diff --git a/noatun/library/mimetypetree.cpp b/noatun/library/mimetypetree.cpp
index 0370b048..c89842d0 100644
--- a/noatun/library/mimetypetree.cpp
+++ b/noatun/library/mimetypetree.cpp
@@ -5,7 +5,7 @@
MimeTypeTree::MimeTypeTree(TQWidget *parent)
- : KListView(parent)
+ : TDEListView(parent)
{
KMimeType::List list=KMimeType::allMimeTypes();
TQDict<TQListViewItem> map;
diff --git a/noatun/library/mimetypetree.h b/noatun/library/mimetypetree.h
index 42df2b72..67135c57 100644
--- a/noatun/library/mimetypetree.h
+++ b/noatun/library/mimetypetree.h
@@ -16,7 +16,7 @@
#include <klistview.h>
-class MimeTypeTree : public KListView
+class MimeTypeTree : public TDEListView
{
Q_OBJECT
diff --git a/noatun/library/noatun/app.h b/noatun/library/noatun/app.h
index e337ddd9..49ea0064 100644
--- a/noatun/library/noatun/app.h
+++ b/noatun/library/noatun/app.h
@@ -6,7 +6,7 @@
class Playlist;
class Player;
class LibraryLoader;
-class KPopupMenu;
+class TDEPopupMenu;
class NoatunPreferences;
class Downloader;
class Effects;
@@ -181,7 +181,7 @@ public: //options
void setDisplayRemaining(bool);
/**
- * To insert items use KActions and insert() them into pluginActionMenu().
+ * To insert items use TDEActions and insert() them into pluginActionMenu().
* @return pointer to the actionmenu
*/
NoatunStdAction::PluginActionMenu *pluginActionMenu();
@@ -207,7 +207,7 @@ public: //options
* Use pluginActionMenu() instead
* @return pointer to the plugin menu
*/
- KPopupMenu *pluginMenu();
+ TDEPopupMenu *pluginMenu();
protected:
virtual int newInstance();
@@ -246,7 +246,7 @@ private:
private:
Player *mPlayer;
LibraryLoader *mLibraryLoader;
- KPopupMenu *mPluginMenu;
+ TDEPopupMenu *mPluginMenu;
NoatunStdAction::PluginActionMenu *mPluginActionMenu;
Downloader *mDownloader;
struct Private;
diff --git a/noatun/library/noatun/controls.h b/noatun/library/noatun/controls.h
index 3e5f00c4..dbe249ba 100644
--- a/noatun/library/noatun/controls.h
+++ b/noatun/library/noatun/controls.h
@@ -54,7 +54,7 @@ private:
* @author Charles Samuels
* @version 2.3
**/
-class SliderAction : public KAction
+class SliderAction : public TDEAction
{
Q_OBJECT
@@ -69,7 +69,7 @@ signals:
void plugged();
public slots:
- void toolbarMoved(KToolBar::BarPosition pos);
+ void toolbarMoved(TDEToolBar::BarPosition pos);
private:
TQGuardedPtr<TQSlider> m_slider;
diff --git a/noatun/library/noatun/stdaction.h b/noatun/library/noatun/stdaction.h
index 9f9b639e..2a5ad401 100644
--- a/noatun/library/noatun/stdaction.h
+++ b/noatun/library/noatun/stdaction.h
@@ -4,7 +4,7 @@
#include <kaction.h>
#include <kactionclasses.h>
#include <kdemacros.h>
-class KPopupMenu;
+class TDEPopupMenu;
/**
* Holds all noatun related actions
@@ -17,7 +17,7 @@ namespace NoatunStdAction
/**
* An action starting noatun playback
**/
-class PlayAction : public KAction
+class PlayAction : public TDEAction
{
Q_OBJECT
@@ -31,7 +31,7 @@ private slots:
/**
* An action starting/stopping noatun playback
**/
-class PlaylistAction : public KToggleAction
+class PlaylistAction : public TDEToggleAction
{
Q_OBJECT
@@ -46,7 +46,7 @@ private slots:
* actionmenu that holds all plugin defined actions
* @author Stefan Gehn
*/
-class PluginActionMenu : public KActionMenu
+class PluginActionMenu : public TDEActionMenu
{
Q_OBJECT
@@ -57,11 +57,11 @@ public:
* @param action the action to insert
* @param index defines the place where the action gets displayed in
*/
- virtual void insert (KAction *action, int index=-1);
+ virtual void insert (TDEAction *action, int index=-1);
/**
* removes the given @p action into the action-menu
*/
- virtual void remove(KAction *action);
+ virtual void remove(TDEAction *action);
/**
* Wrapper method for old Noatun API
* <b>DON'T USE</b>
@@ -80,7 +80,7 @@ private:
* actionmenu that holds all vis-plugins for easier enabling/disabling
* @author Stefan Gehn
*/
-class VisActionMenu : public KActionMenu
+class VisActionMenu : public TDEActionMenu
{
Q_OBJECT
@@ -98,7 +98,7 @@ private:
* actionmenu that holds all looping modes
* @author Stefan Gehn
*/
-class LoopActionMenu : public KActionMenu
+class LoopActionMenu : public TDEActionMenu
{
Q_OBJECT
@@ -111,43 +111,43 @@ private slots:
void loopPlaylistSelected();
void loopRandomSelected();
private:
- KRadioAction *mLoopNone;
- KRadioAction *mLoopSong;
- KRadioAction *mLoopPlaylist;
- KRadioAction *mLoopRandom;
+ TDERadioAction *mLoopNone;
+ TDERadioAction *mLoopSong;
+ TDERadioAction *mLoopPlaylist;
+ TDERadioAction *mLoopRandom;
};
/**
- * @return pointer to a KAction which opens the effects dialog on activation
+ * @return pointer to a TDEAction which opens the effects dialog on activation
*/
-KDE_EXPORT KAction *effects(TQObject *parent = 0, const char *name = 0);
+KDE_EXPORT TDEAction *effects(TQObject *parent = 0, const char *name = 0);
/**
- * @return pointer to a KAction which opens the equalizer dialog on activation
+ * @return pointer to a TDEAction which opens the equalizer dialog on activation
*/
-KDE_EXPORT KAction *equalizer(TQObject *parent = 0, const char *name = 0);
+KDE_EXPORT TDEAction *equalizer(TQObject *parent = 0, const char *name = 0);
/**
- * @return pointer to a KAction which goes back one track on activation
+ * @return pointer to a TDEAction which goes back one track on activation
*/
-KDE_EXPORT KAction *back(TQObject *parent = 0, const char *name = 0);
+KDE_EXPORT TDEAction *back(TQObject *parent = 0, const char *name = 0);
/**
- * @return pointer to a KAction which stops playback on activation
+ * @return pointer to a TDEAction which stops playback on activation
*/
-KDE_EXPORT KAction *stop(TQObject *parent = 0, const char *name = 0);
+KDE_EXPORT TDEAction *stop(TQObject *parent = 0, const char *name = 0);
/**
- * @return pointer to a KAction which starts/pauses playback on activation
+ * @return pointer to a TDEAction which starts/pauses playback on activation
*/
-KDE_EXPORT KAction *playpause(TQObject *parent = 0, const char *name = 0);
+KDE_EXPORT TDEAction *playpause(TQObject *parent = 0, const char *name = 0);
/**
- * @return pointer to a KAction which advances one track on activation
+ * @return pointer to a TDEAction which advances one track on activation
*/
-KDE_EXPORT KAction *forward(TQObject *parent = 0, const char *name = 0);
+KDE_EXPORT TDEAction *forward(TQObject *parent = 0, const char *name = 0);
/**
- * @return pointer to a KToggleAction which shows/hides the playlist
+ * @return pointer to a TDEToggleAction which shows/hides the playlist
*/
-KDE_EXPORT KToggleAction *playlist(TQObject *parent = 0, const char *name = 0);
+KDE_EXPORT TDEToggleAction *playlist(TQObject *parent = 0, const char *name = 0);
/**
* loop action
@@ -157,12 +157,12 @@ KDE_EXPORT LoopActionMenu *loop(TQObject *parent, const char *name);
/**
* play action
*/
-KDE_EXPORT KAction *play(TQObject *parent = 0, const char *name = 0);
+KDE_EXPORT TDEAction *play(TQObject *parent = 0, const char *name = 0);
/**
* pause action
*/
-KDE_EXPORT KAction *pause(TQObject *parent = 0, const char *name = 0);
+KDE_EXPORT TDEAction *pause(TQObject *parent = 0, const char *name = 0);
/**
* @return pointer to the global PluginActionMenu object (there is only one instance)
@@ -181,7 +181,7 @@ KDE_EXPORT VisActionMenu *visualizations(TQObject *parent = 0, const char *name
class KDE_EXPORT ContextMenu
{
public:
- static KPopupMenu *createContextMenu(TQWidget *p);
+ static TDEPopupMenu *createContextMenu(TQWidget *p);
/**
* One menu to show them all, One menu to find them
@@ -189,7 +189,7 @@ public:
*
* In the land of Noatun where the oceans die
*/
- static KPopupMenu *contextMenu();
+ static TDEPopupMenu *contextMenu();
/**
* Show the context menu at point
@@ -201,7 +201,7 @@ public:
**/
static void showContextMenu();
private:
- static KPopupMenu *mContextMenu;
+ static TDEPopupMenu *mContextMenu;
};
}
diff --git a/noatun/library/noatun/stereobuttonaction.h b/noatun/library/noatun/stereobuttonaction.h
index 6e5312f9..d3bad3f9 100644
--- a/noatun/library/noatun/stereobuttonaction.h
+++ b/noatun/library/noatun/stereobuttonaction.h
@@ -10,7 +10,7 @@ namespace NoatunStdAction
* No, I never owned StereoButtonAction, but I'm tired
* and PlayAction is already taken.
*/
-class StereoButtonAction : public KAction
+class StereoButtonAction : public TDEAction
{
Q_OBJECT
diff --git a/noatun/library/noatunstdaction.cpp b/noatun/library/noatunstdaction.cpp
index d37adefb..b99c8ef5 100644
--- a/noatun/library/noatunstdaction.cpp
+++ b/noatun/library/noatunstdaction.cpp
@@ -22,7 +22,7 @@ namespace NoatunStdAction
{
/////////////////////////////////////////////////////
PlayAction::PlayAction(TQObject *parent, const char *name)
- : KAction(i18n("Play"), 0, napp->player(), TQT_SLOT(playpause()), parent, name)
+ : TDEAction(i18n("Play"), 0, napp->player(), TQT_SLOT(playpause()), parent, name)
{
connect(napp->player(), TQT_SIGNAL(playing()), TQT_SLOT(playing()));
connect(napp->player(), TQT_SIGNAL(paused()), TQT_SLOT(notplaying()));
@@ -47,7 +47,7 @@ void PlayAction::notplaying()
/////////////////////////////////////////////////////
PlaylistAction::PlaylistAction(TQObject *parent, const char *name)
- : KToggleAction(i18n("Show Playlist"), "playlist", 0, napp->player(), TQT_SLOT(toggleListView()), parent, name)
+ : TDEToggleAction(i18n("Show Playlist"), "playlist", 0, napp->player(), TQT_SLOT(toggleListView()), parent, name)
{
setCheckedState(i18n("Hide Playlist"));
connect(napp->player(), TQT_SIGNAL(playlistShown()), TQT_SLOT(shown()));
@@ -68,25 +68,25 @@ void PlaylistAction::hidden()
////////////////////////////////////////////////////
PluginActionMenu::PluginActionMenu(TQObject *parent, const char *name)
- : KActionMenu(i18n("&Actions"), parent, name)
+ : TDEActionMenu(i18n("&Actions"), parent, name)
{
// kdDebug(66666) << k_funcinfo << "called" << endl;
setEnabled(false);
mCount=0;
}
-void PluginActionMenu::insert (KAction *action, int index)
+void PluginActionMenu::insert (TDEAction *action, int index)
{
// kdDebug(66666) << k_funcinfo << "called" << endl;
- KActionMenu::insert(action,index);
+ TDEActionMenu::insert(action,index);
setEnabled(true);
mCount++;
}
-void PluginActionMenu::remove(KAction *action)
+void PluginActionMenu::remove(TDEAction *action)
{
// kdDebug(66666) << k_funcinfo << "called" << endl;
- KActionMenu::remove(action);
+ TDEActionMenu::remove(action);
mCount--;
if(mCount==0)
setEnabled(false);
@@ -112,7 +112,7 @@ void PluginActionMenu::menuRemove(int id)
////////////////////////////////////////////////////
VisActionMenu::VisActionMenu(TQObject *parent, const char *name)
- : KActionMenu(i18n("&Visualizations"), parent, name)
+ : TDEActionMenu(i18n("&Visualizations"), parent, name)
{
connect(popupMenu(), TQT_SIGNAL(aboutToShow()), TQT_TQOBJECT(this), TQT_SLOT(fillPopup()));
connect(popupMenu(), TQT_SIGNAL(activated(int)), TQT_TQOBJECT(this), TQT_SLOT(toggleVisPlugin(int)));
@@ -160,24 +160,24 @@ void VisActionMenu::toggleVisPlugin(int id)
////////////////////////////////////////////////////
LoopActionMenu::LoopActionMenu(TQObject *parent, const char *name)
- : KActionMenu(i18n("&Loop"), parent, name)
+ : TDEActionMenu(i18n("&Loop"), parent, name)
{
- mLoopNone = new KRadioAction(i18n("&None"), TQString::fromLocal8Bit("noatunloopnone"),
+ mLoopNone = new TDERadioAction(i18n("&None"), TQString::fromLocal8Bit("noatunloopnone"),
0, TQT_TQOBJECT(this), TQT_SLOT(loopNoneSelected()), TQT_TQOBJECT(this), "loop_none");
mLoopNone->setExclusiveGroup("loopType");
insert(mLoopNone);
- mLoopSong = new KRadioAction(i18n("&Song"), TQString::fromLocal8Bit("noatunloopsong"),
+ mLoopSong = new TDERadioAction(i18n("&Song"), TQString::fromLocal8Bit("noatunloopsong"),
0, TQT_TQOBJECT(this), TQT_SLOT(loopSongSelected()), TQT_TQOBJECT(this), "loop_song");
mLoopSong->setExclusiveGroup("loopType");
insert(mLoopSong);
- mLoopPlaylist = new KRadioAction(i18n("&Playlist"), TQString::fromLocal8Bit("noatunloopplaylist"),
+ mLoopPlaylist = new TDERadioAction(i18n("&Playlist"), TQString::fromLocal8Bit("noatunloopplaylist"),
0, TQT_TQOBJECT(this), TQT_SLOT(loopPlaylistSelected()), TQT_TQOBJECT(this), "loop_playlist");
mLoopPlaylist->setExclusiveGroup("loopType");
insert(mLoopPlaylist);
- mLoopRandom = new KRadioAction(i18n("&Random"), TQString::fromLocal8Bit("noatunlooprandom"),
+ mLoopRandom = new TDERadioAction(i18n("&Random"), TQString::fromLocal8Bit("noatunlooprandom"),
0, TQT_TQOBJECT(this), TQT_SLOT(loopRandomSelected()), TQT_TQOBJECT(this), "loop_random");
mLoopRandom->setExclusiveGroup("loopType");
insert(mLoopRandom);
@@ -232,27 +232,27 @@ void LoopActionMenu::loopRandomSelected()
////////////////////////////////////////////////////
-KAction *playpause(TQObject *parent, const char *name)
+TDEAction *playpause(TQObject *parent, const char *name)
{
return new PlayAction(parent, name);
}
-KAction *effects(TQObject *parent, const char *name)
+TDEAction *effects(TQObject *parent, const char *name)
{
- return new KAction(i18n("&Effects..."), "effect", 0, TQT_TQOBJECT(napp), TQT_SLOT(effectView()), parent, name);
+ return new TDEAction(i18n("&Effects..."), "effect", 0, TQT_TQOBJECT(napp), TQT_SLOT(effectView()), parent, name);
}
-KAction *equalizer(TQObject *parent, const char *name)
+TDEAction *equalizer(TQObject *parent, const char *name)
{
- return new KAction(i18n("E&qualizer..."), "equalizer", 0, TQT_TQOBJECT(napp), TQT_SLOT(equalizerView()), parent, name);
+ return new TDEAction(i18n("E&qualizer..."), "equalizer", 0, TQT_TQOBJECT(napp), TQT_SLOT(equalizerView()), parent, name);
}
-KAction *back(TQObject *parent, const char *name)
+TDEAction *back(TQObject *parent, const char *name)
{
- return new KAction(i18n("&Back"), "player_start", 0, TQT_TQOBJECT(napp->player()), TQT_SLOT(back()), parent, name);
+ return new TDEAction(i18n("&Back"), "player_start", 0, TQT_TQOBJECT(napp->player()), TQT_SLOT(back()), parent, name);
}
-KAction *stop(TQObject *parent, const char *name)
+TDEAction *stop(TQObject *parent, const char *name)
{
StereoButtonAction *action = new StereoButtonAction(i18n("Stop"), "player_stop", 0, napp->player(), TQT_SLOT(stop()), parent, name);
TQObject::connect(napp->player(), TQT_SIGNAL(playing()), action, TQT_SLOT(enable()));
@@ -265,12 +265,12 @@ KAction *stop(TQObject *parent, const char *name)
return action;
}
-KAction *forward(TQObject *parent, const char *name)
+TDEAction *forward(TQObject *parent, const char *name)
{
- return new KAction(i18n("&Forward"), "player_end", 0, napp->player(), TQT_SLOT(forward()), parent, name);
+ return new TDEAction(i18n("&Forward"), "player_end", 0, napp->player(), TQT_SLOT(forward()), parent, name);
}
-KAction *play(TQObject *parent, const char *name)
+TDEAction *play(TQObject *parent, const char *name)
{
StereoButtonAction *action = new StereoButtonAction(i18n("&Play"), "player_play", 0, napp->player(), TQT_SLOT(playpause()), parent, name);
TQObject::connect(napp->player(), TQT_SIGNAL(playing()), action, TQT_SLOT(disable()));
@@ -283,7 +283,7 @@ KAction *play(TQObject *parent, const char *name)
return action;
}
-KAction *pause(TQObject *parent, const char *name)
+TDEAction *pause(TQObject *parent, const char *name)
{
StereoButtonAction *action = new StereoButtonAction(i18n("&Pause"), "player_pause", 0, napp->player(), TQT_SLOT(playpause()), parent, name);
TQObject::connect(napp->player(), TQT_SIGNAL(playing()), action, TQT_SLOT(enable()));
@@ -312,26 +312,26 @@ VisActionMenu *visualizations(TQObject *parent, const char *name)
return new VisActionMenu(parent, name);
}
-KToggleAction *playlist(TQObject *parent, const char *name)
+TDEToggleAction *playlist(TQObject *parent, const char *name)
{
return new PlaylistAction(parent, name);
}
-KPopupMenu *ContextMenu::mContextMenu = 0;
+TDEPopupMenu *ContextMenu::mContextMenu = 0;
-KPopupMenu *ContextMenu::contextMenu()
+TDEPopupMenu *ContextMenu::contextMenu()
{
if(!mContextMenu) mContextMenu = createContextMenu(0);
return mContextMenu;
}
-KPopupMenu *ContextMenu::createContextMenu(TQWidget *p)
+TDEPopupMenu *ContextMenu::createContextMenu(TQWidget *p)
{
- KPopupMenu *contextMenu = new KPopupMenu(p, "NoatunContextMenu");
+ TDEPopupMenu *contextMenu = new TDEPopupMenu(p, "NoatunContextMenu");
KHelpMenu *helpmenu = new KHelpMenu(contextMenu, kapp->aboutData(), false);
- KActionCollection* actions = new KActionCollection(helpmenu);
+ TDEActionCollection* actions = new TDEActionCollection(helpmenu);
KStdAction::open(TQT_TQOBJECT(napp), TQT_SLOT(fileOpen()), actions)->plug(contextMenu);
KStdAction::quit(TQT_TQOBJECT(napp), TQT_SLOT(quit()), actions)->plug(contextMenu);
diff --git a/noatun/library/pluginmodule.cpp b/noatun/library/pluginmodule.cpp
index dd30111e..72f58c9b 100644
--- a/noatun/library/pluginmodule.cpp
+++ b/noatun/library/pluginmodule.cpp
@@ -69,7 +69,7 @@ void PluginListItem::paintCell(TQPainter *p, const TQColorGroup &cg, int a, int
}
PluginListView::PluginListView(unsigned _min, unsigned _max, TQWidget *_parent, const char *_name)
- : KListView(_parent, _name)
+ : TDEListView(_parent, _name)
, hasMaximum(true)
, max(_max)
, min(_min <= _max ? _min : _max)
@@ -78,7 +78,7 @@ PluginListView::PluginListView(unsigned _min, unsigned _max, TQWidget *_parent,
}
PluginListView::PluginListView(unsigned _min, TQWidget *_parent, const char *_name)
- : KListView(_parent, _name)
+ : TDEListView(_parent, _name)
, hasMaximum(false)
, min(_min)
, count(0)
@@ -86,7 +86,7 @@ PluginListView::PluginListView(unsigned _min, TQWidget *_parent, const char *_na
}
PluginListView::PluginListView(TQWidget *_parent, const char *_name)
- : KListView(_parent, _name)
+ : TDEListView(_parent, _name)
, hasMaximum(false)
, min(0)
, count(0)
@@ -96,7 +96,7 @@ PluginListView::PluginListView(TQWidget *_parent, const char *_name)
void PluginListView::clear()
{
count = 0;
- KListView::clear();
+ TDEListView::clear();
}
void PluginListView::stateChanged(PluginListItem *item, bool b)
diff --git a/noatun/library/pluginmodule.h b/noatun/library/pluginmodule.h
index d29fe1d1..52113f62 100644
--- a/noatun/library/pluginmodule.h
+++ b/noatun/library/pluginmodule.h
@@ -48,7 +48,7 @@ private:
bool exclusive;
};
-class PluginListView : public KListView
+class PluginListView : public TDEListView
{
Q_OBJECT
diff --git a/noatun/library/stereobuttonaction.cpp b/noatun/library/stereobuttonaction.cpp
index e8df0046..27011708 100644
--- a/noatun/library/stereobuttonaction.cpp
+++ b/noatun/library/stereobuttonaction.cpp
@@ -4,27 +4,27 @@ namespace NoatunStdAction
{
StereoButtonAction::StereoButtonAction(const TQString& text, int accel, TQObject* parent, const char* name )
- : KAction(text, accel, parent, name)
+ : TDEAction(text, accel, parent, name)
{}
StereoButtonAction::StereoButtonAction(const TQString& text, int accel, const TQObject* receiver, const char* slot, TQObject* parent, const char* name )
- : KAction(text, accel, receiver, slot, parent, name)
+ : TDEAction(text, accel, receiver, slot, parent, name)
{}
StereoButtonAction::StereoButtonAction(const TQString& text, const TQIconSet& pix, int accel, TQObject* parent, const char* name )
- : KAction(text, pix, accel, parent, name)
+ : TDEAction(text, pix, accel, parent, name)
{}
StereoButtonAction::StereoButtonAction(const TQString& text, const TQString& pix, int accel, TQObject* parent, const char* name )
- : KAction(text, pix, accel, parent, name)
+ : TDEAction(text, pix, accel, parent, name)
{}
StereoButtonAction::StereoButtonAction(const TQString& text, const TQIconSet& pix, int accel, const TQObject* receiver, const char* slot, TQObject* parent, const char* name )
- : KAction(text, pix, accel, receiver, slot, parent, name)
+ : TDEAction(text, pix, accel, receiver, slot, parent, name)
{}
StereoButtonAction::StereoButtonAction(const TQString& text, const TQString& pix, int accel, const TQObject* receiver, const char* slot, TQObject* parent, const char* name )
- : KAction(text, pix, accel, receiver, slot, parent, name)
+ : TDEAction(text, pix, accel, receiver, slot, parent, name)
{}
void StereoButtonAction::disable(void)