Main Page   Namespace List   Class Hierarchy   Alphabetical List   Compound List   File List   Namespace Members   Compound Members   File Members  

stdaction.h

Go to the documentation of this file.
00001 #ifndef _NOATUNSTDACTION_H_
00002 #define _NOATUNSTDACTION_H_
00003 
00004 #include <kaction.h>
00005 
00006 class KPopupMenu;
00007 
00008 namespace NoatunStdAction
00009 {
00010 
00011 class PlayAction : public KAction
00012 {
00013 Q_OBJECT
00014 public:
00015     PlayAction(QObject *parent, const char *name);
00016 private slots:
00017     void playing();
00018     void notplaying();
00019 };
00020 
00021 class PlaylistAction : public KToggleAction
00022 {
00023 Q_OBJECT
00024 public:
00025     PlaylistAction(QObject *parent, const char *name);
00026 private slots:
00027     void shown();
00028     void hidden();
00029 };
00030 
00031 KAction *effects(QObject *parent = 0, const char *name = 0);
00032 KAction *equalizer(QObject *parent = 0, const char *name = 0);
00033 
00034 KAction *back(QObject *parent = 0, const char *name = 0);
00035 KAction *stop(QObject *parent = 0, const char *name = 0);
00036 KAction *playpause(QObject *parent = 0, const char *name = 0);
00037 KAction *forward(QObject *parent = 0, const char *name = 0);
00038 KToggleAction *playlist(QObject *parent = 0, const char *name = 0);
00039 KAction *loop(QObject *parent = 0, const char *name = 0);
00040 KAction *play(QObject *parent = 0, const char *name = 0);
00041 KAction *pause(QObject *parent = 0, const char *name = 0);
00042 
00043 class ContextMenu
00044 {
00045 public:
00046     static KPopupMenu *createContextMenu(QWidget *p);
00047 
00048     /**
00049      * One menu to show them all, One menu to find them
00050      * One menu to bring them all and in the darkness bind them
00051      *
00052      * In the land of Noatun where the oceans die
00053      */
00054     static KPopupMenu *contextMenu();
00055 
00056     /**
00057      * Show the context menu at point
00058      **/
00059     static void showContextMenu(const QPoint &);
00060 
00061     /**
00062      * show the context menu at the mouse's current position
00063      **/
00064     static void showContextMenu();
00065 private:
00066     static KPopupMenu *mContextMenu;
00067 };
00068 
00069 }
00070 
00071 #endif

Generated at Mon Apr 1 11:45:00 2002 for noatun by doxygen1.2.9.1 written by Dimitri van Heesch, © 1997-2001