diff options
Diffstat (limited to 'noatun/library/noatunstdaction.cpp')
-rw-r--r-- | noatun/library/noatunstdaction.cpp | 130 |
1 files changed, 65 insertions, 65 deletions
diff --git a/noatun/library/noatunstdaction.cpp b/noatun/library/noatunstdaction.cpp index f2837623..99b69cb3 100644 --- a/noatun/library/noatunstdaction.cpp +++ b/noatun/library/noatunstdaction.cpp @@ -9,8 +9,8 @@ #include <klocale.h> #include <kpopupmenu.h> #include <kstdaction.h> -#include <qcursor.h> -#include <qmap.h> +#include <tqcursor.h> +#include <tqmap.h> #include <kdebug.h> #include <kstdguiitem.h> @@ -21,12 +21,12 @@ namespace NoatunStdAction { ///////////////////////////////////////////////////// -PlayAction::PlayAction(QObject *parent, const char *name) - : KAction(i18n("Play"), 0, napp->player(), SLOT(playpause()), parent, name) +PlayAction::PlayAction(TQObject *parent, const char *name) + : KAction(i18n("Play"), 0, napp->player(), TQT_SLOT(playpause()), parent, name) { - connect(napp->player(), SIGNAL(playing()), SLOT(playing())); - connect(napp->player(), SIGNAL(paused()), SLOT(notplaying())); - connect(napp->player(), SIGNAL(stopped()), SLOT(notplaying())); + connect(napp->player(), TQT_SIGNAL(playing()), TQT_SLOT(playing())); + connect(napp->player(), TQT_SIGNAL(paused()), TQT_SLOT(notplaying())); + connect(napp->player(), TQT_SIGNAL(stopped()), TQT_SLOT(notplaying())); if (napp->player()->isPlaying()) playing(); else if (napp->player()->isPaused() || napp->player()->isStopped()) @@ -35,23 +35,23 @@ PlayAction::PlayAction(QObject *parent, const char *name) void PlayAction::playing() { - setIconSet(QIconSet(SmallIcon("player_pause"))); + setIconSet(TQIconSet(SmallIcon("player_pause"))); setText(i18n("Pause")); } void PlayAction::notplaying() { - setIconSet(QIconSet(SmallIcon("player_play"))); + setIconSet(TQIconSet(SmallIcon("player_play"))); setText(i18n("Play")); } ///////////////////////////////////////////////////// -PlaylistAction::PlaylistAction(QObject *parent, const char *name) - : KToggleAction(i18n("Show Playlist"), "playlist", 0, napp->player(), SLOT(toggleListView()), parent, name) +PlaylistAction::PlaylistAction(TQObject *parent, const char *name) + : KToggleAction(i18n("Show Playlist"), "playlist", 0, napp->player(), TQT_SLOT(toggleListView()), parent, name) { setCheckedState(i18n("Hide Playlist")); - connect(napp->player(), SIGNAL(playlistShown()), SLOT(shown())); - connect(napp->player(), SIGNAL(playlistHidden()), SLOT(hidden())); + connect(napp->player(), TQT_SIGNAL(playlistShown()), TQT_SLOT(shown())); + connect(napp->player(), TQT_SIGNAL(playlistHidden()), TQT_SLOT(hidden())); setChecked(napp->playlist()->listVisible()); } @@ -67,7 +67,7 @@ void PlaylistAction::hidden() //////////////////////////////////////////////////// -PluginActionMenu::PluginActionMenu(QObject *parent, const char *name) +PluginActionMenu::PluginActionMenu(TQObject *parent, const char *name) : KActionMenu(i18n("&Actions"), parent, name) { // kdDebug(66666) << k_funcinfo << "called" << endl; @@ -92,7 +92,7 @@ void PluginActionMenu::remove(KAction *action) setEnabled(false); } -int PluginActionMenu::menuAdd(const QString &text, const QObject *receiver, const char *member) +int PluginActionMenu::menuAdd(const TQString &text, const TQObject *receiver, const char *member) { // kdDebug(66666) << k_funcinfo << "called, mCount is currently at " << mCount << endl; setEnabled(true); @@ -111,11 +111,11 @@ void PluginActionMenu::menuRemove(int id) //////////////////////////////////////////////////// -VisActionMenu::VisActionMenu(QObject *parent, const char *name) +VisActionMenu::VisActionMenu(TQObject *parent, const char *name) : KActionMenu(i18n("&Visualizations"), parent, name) { - connect(popupMenu(), SIGNAL(aboutToShow()), this, SLOT(fillPopup())); - connect(popupMenu(), SIGNAL(activated(int)), this, SLOT(toggleVisPlugin(int))); + connect(popupMenu(), TQT_SIGNAL(aboutToShow()), this, TQT_SLOT(fillPopup())); + connect(popupMenu(), TQT_SIGNAL(activated(int)), this, TQT_SLOT(toggleVisPlugin(int))); } void VisActionMenu::fillPopup() @@ -124,10 +124,10 @@ void VisActionMenu::fillPopup() popupMenu()->clear(); mSpecMap.clear(); - QValueList<NoatunLibraryInfo> available = napp->libraryLoader()->available(); - QValueList<NoatunLibraryInfo> loaded = napp->libraryLoader()->loaded(); + TQValueList<NoatunLibraryInfo> available = napp->libraryLoader()->available(); + TQValueList<NoatunLibraryInfo> loaded = napp->libraryLoader()->loaded(); - for(QValueList<NoatunLibraryInfo>::Iterator i = available.begin(); i != available.end(); ++i) + for(TQValueList<NoatunLibraryInfo>::Iterator i = available.begin(); i != available.end(); ++i) { if ((*i).type == "visualization") { @@ -143,7 +143,7 @@ void VisActionMenu::toggleVisPlugin(int id) if(!mSpecMap.contains(id)) return; - QString specfile = mSpecMap[id]; + TQString specfile = mSpecMap[id]; if(popupMenu()->isItemChecked(id)) { @@ -159,30 +159,30 @@ void VisActionMenu::toggleVisPlugin(int id) //////////////////////////////////////////////////// -LoopActionMenu::LoopActionMenu(QObject *parent, const char *name) +LoopActionMenu::LoopActionMenu(TQObject *parent, const char *name) : KActionMenu(i18n("&Loop"), parent, name) { - mLoopNone = new KRadioAction(i18n("&None"), QString::fromLocal8Bit("noatunloopnone"), - 0, this, SLOT(loopNoneSelected()), this, "loop_none"); + mLoopNone = new KRadioAction(i18n("&None"), TQString::fromLocal8Bit("noatunloopnone"), + 0, this, TQT_SLOT(loopNoneSelected()), this, "loop_none"); mLoopNone->setExclusiveGroup("loopType"); insert(mLoopNone); - mLoopSong = new KRadioAction(i18n("&Song"), QString::fromLocal8Bit("noatunloopsong"), - 0, this, SLOT(loopSongSelected()), this, "loop_song"); + mLoopSong = new KRadioAction(i18n("&Song"), TQString::fromLocal8Bit("noatunloopsong"), + 0, this, TQT_SLOT(loopSongSelected()), this, "loop_song"); mLoopSong->setExclusiveGroup("loopType"); insert(mLoopSong); - mLoopPlaylist = new KRadioAction(i18n("&Playlist"), QString::fromLocal8Bit("noatunloopplaylist"), - 0, this, SLOT(loopPlaylistSelected()), this, "loop_playlist"); + mLoopPlaylist = new KRadioAction(i18n("&Playlist"), TQString::fromLocal8Bit("noatunloopplaylist"), + 0, this, TQT_SLOT(loopPlaylistSelected()), this, "loop_playlist"); mLoopPlaylist->setExclusiveGroup("loopType"); insert(mLoopPlaylist); - mLoopRandom = new KRadioAction(i18n("&Random"), QString::fromLocal8Bit("noatunlooprandom"), - 0, this, SLOT(loopRandomSelected()), this, "loop_random"); + mLoopRandom = new KRadioAction(i18n("&Random"), TQString::fromLocal8Bit("noatunlooprandom"), + 0, this, TQT_SLOT(loopRandomSelected()), this, "loop_random"); mLoopRandom->setExclusiveGroup("loopType"); insert(mLoopRandom); - connect(napp->player(), SIGNAL(loopTypeChange(int)), this, SLOT(updateLooping(int))); + connect(napp->player(), TQT_SIGNAL(loopTypeChange(int)), this, TQT_SLOT(updateLooping(int))); updateLooping(static_cast<int>(napp->player()->loopStyle())); } @@ -232,32 +232,32 @@ void LoopActionMenu::loopRandomSelected() //////////////////////////////////////////////////// -KAction *playpause(QObject *parent, const char *name) +KAction *playpause(TQObject *parent, const char *name) { return new PlayAction(parent, name); } -KAction *effects(QObject *parent, const char *name) +KAction *effects(TQObject *parent, const char *name) { - return new KAction(i18n("&Effects..."), "effect", 0, napp, SLOT(effectView()), parent, name); + return new KAction(i18n("&Effects..."), "effect", 0, napp, TQT_SLOT(effectView()), parent, name); } -KAction *equalizer(QObject *parent, const char *name) +KAction *equalizer(TQObject *parent, const char *name) { - return new KAction(i18n("E&qualizer..."), "equalizer", 0, napp, SLOT(equalizerView()), parent, name); + return new KAction(i18n("E&qualizer..."), "equalizer", 0, napp, TQT_SLOT(equalizerView()), parent, name); } -KAction *back(QObject *parent, const char *name) +KAction *back(TQObject *parent, const char *name) { - return new KAction(i18n("&Back"), "player_start", 0, napp->player(), SLOT(back()), parent, name); + return new KAction(i18n("&Back"), "player_start", 0, napp->player(), TQT_SLOT(back()), parent, name); } -KAction *stop(QObject *parent, const char *name) +KAction *stop(TQObject *parent, const char *name) { - StereoButtonAction *action = new StereoButtonAction(i18n("Stop"), "player_stop", 0, napp->player(), SLOT(stop()), parent, name); - QObject::connect(napp->player(), SIGNAL(playing()), action, SLOT(enable())); - QObject::connect(napp->player(), SIGNAL(paused()), action, SLOT(enable())); - QObject::connect(napp->player(), SIGNAL(stopped()), action, SLOT(disable())); + 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())); + TQObject::connect(napp->player(), TQT_SIGNAL(paused()), action, TQT_SLOT(enable())); + TQObject::connect(napp->player(), TQT_SIGNAL(stopped()), action, TQT_SLOT(disable())); if(napp->player()->isStopped()) action->disable(); else @@ -265,17 +265,17 @@ KAction *stop(QObject *parent, const char *name) return action; } -KAction *forward(QObject *parent, const char *name) +KAction *forward(TQObject *parent, const char *name) { - return new KAction(i18n("&Forward"), "player_end", 0, napp->player(), SLOT(forward()), parent, name); + return new KAction(i18n("&Forward"), "player_end", 0, napp->player(), TQT_SLOT(forward()), parent, name); } -KAction *play(QObject *parent, const char *name) +KAction *play(TQObject *parent, const char *name) { - StereoButtonAction *action = new StereoButtonAction(i18n("&Play"), "player_play", 0, napp->player(), SLOT(playpause()), parent, name); - QObject::connect(napp->player(), SIGNAL(playing()), action, SLOT(disable())); - QObject::connect(napp->player(), SIGNAL(paused()), action, SLOT(enable())); - QObject::connect(napp->player(), SIGNAL(stopped()), action, SLOT(enable())); + 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())); + TQObject::connect(napp->player(), TQT_SIGNAL(paused()), action, TQT_SLOT(enable())); + TQObject::connect(napp->player(), TQT_SIGNAL(stopped()), action, TQT_SLOT(enable())); if(napp->player()->isPlaying()) action->disable(); else @@ -283,12 +283,12 @@ KAction *play(QObject *parent, const char *name) return action; } -KAction *pause(QObject *parent, const char *name) +KAction *pause(TQObject *parent, const char *name) { - StereoButtonAction *action = new StereoButtonAction(i18n("&Pause"), "player_pause", 0, napp->player(), SLOT(playpause()), parent, name); - QObject::connect(napp->player(), SIGNAL(playing()), action, SLOT(enable())); - QObject::connect(napp->player(), SIGNAL(paused()), action, SLOT(disable())); - QObject::connect(napp->player(), SIGNAL(stopped()), action, SLOT(disable())); + 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())); + TQObject::connect(napp->player(), TQT_SIGNAL(paused()), action, TQT_SLOT(disable())); + TQObject::connect(napp->player(), TQT_SIGNAL(stopped()), action, TQT_SLOT(disable())); if(napp->player()->isPlaying()) action->enable(); else @@ -296,7 +296,7 @@ KAction *pause(QObject *parent, const char *name) return action; } -LoopActionMenu *loop(QObject *parent, const char *name) +LoopActionMenu *loop(TQObject *parent, const char *name) { return new LoopActionMenu(parent, name); } @@ -307,12 +307,12 @@ PluginActionMenu *actions() return napp->pluginActionMenu(); } -VisActionMenu *visualizations(QObject *parent, const char *name) +VisActionMenu *visualizations(TQObject *parent, const char *name) { return new VisActionMenu(parent, name); } -KToggleAction *playlist(QObject *parent, const char *name) +KToggleAction *playlist(TQObject *parent, const char *name) { return new PlaylistAction(parent, name); } @@ -326,18 +326,18 @@ KPopupMenu *ContextMenu::contextMenu() return mContextMenu; } -KPopupMenu *ContextMenu::createContextMenu(QWidget *p) +KPopupMenu *ContextMenu::createContextMenu(TQWidget *p) { KPopupMenu *contextMenu = new KPopupMenu(p, "NoatunContextMenu"); KHelpMenu *helpmenu = new KHelpMenu(contextMenu, kapp->aboutData(), false); KActionCollection* actions = new KActionCollection(helpmenu); - KStdAction::open(napp, SLOT(fileOpen()), actions)->plug(contextMenu); - KStdAction::quit(napp, SLOT(quit()), actions)->plug(contextMenu); + KStdAction::open(napp, TQT_SLOT(fileOpen()), actions)->plug(contextMenu); + KStdAction::quit(napp, TQT_SLOT(quit()), actions)->plug(contextMenu); contextMenu->insertItem(SmallIcon("help"), KStdGuiItem::help().text(), helpmenu->menu()); contextMenu->insertSeparator(); - KStdAction::preferences(napp, SLOT(preferences()), actions)->plug(contextMenu); + KStdAction::preferences(napp, TQT_SLOT(preferences()), actions)->plug(contextMenu); NoatunStdAction::playlist(contextMenu)->plug(contextMenu); NoatunStdAction::effects(contextMenu)->plug(contextMenu); NoatunStdAction::equalizer(napp)->plug(contextMenu); @@ -347,14 +347,14 @@ KPopupMenu *ContextMenu::createContextMenu(QWidget *p) return contextMenu; } -void ContextMenu::showContextMenu(const QPoint &p) +void ContextMenu::showContextMenu(const TQPoint &p) { contextMenu()->exec(p); } void ContextMenu::showContextMenu() { - showContextMenu(QCursor::pos()); + showContextMenu(TQCursor::pos()); } } // END namespace NoatunStdAction |