00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022
00023 #ifndef QTVISIONACTIONS_H
00024 #define QTVISIONACTIONS_H
00025
00026 #include <qobject.h>
00027
00028 class KAction;
00029 class KRadioAction;
00030
00031 class LCDNumberAction;
00032 class SliderAction;
00033
00034 class QtVision;
00035 class QtVisionWidget;
00036 class QVSourcePlugin;
00037
00044 class QtVisionActions : public QObject
00045 {
00046 Q_OBJECT
00047
00048 public:
00049 QtVisionActions( QtVision *qtv, const char *name=0 );
00050 ~QtVisionActions();
00051
00052 void createActions( QtVisionWidget *qtvw, KActionCollection *acts );
00053
00054 KRadioAction *showNormal() const { return showNorm; }
00055 KRadioAction *showFullScreen() const { return showFull; }
00056 KRadioAction *showTopLevel() const { return showTop; }
00057 KRadioAction *showVideoDesktop() const { return showDesk; }
00058 KAction *nextViewMode() const { return nextView; }
00059 KAction *toggleFullScreen() const { return toggleFull; }
00060
00061 void createActions( KActionCollection *acts );
00062
00063 KAction *channelDown() const { return chanDown; }
00064 KAction *channelUp() const { return chanUp; }
00065 KAction *channelWizard() const { return chanWiz; }
00066 KAction *channelLoadDefaults() const { return chanLoadDefaults; }
00067 KAction *channelImportLegacy() const { return chanImportLegacy; }
00068 KAction *channelOpen() const { return chanOpen; }
00069 KAction *channelImport() const { return chanImport; }
00070
00071 SliderAction *volumeSlider() const { return volSlider; }
00072 KAction *volumeMute() const { return volMute; }
00073 KAction *volumeUp() const { return volUp; }
00074 KAction *volumeDown() const { return volDown; }
00075
00076 KAction *snapshot() const { return snap; }
00077 KAction *changeSrc() const { return chngSrc; }
00078 KAction *settings() const { return showSettings; }
00079 KAction *keys() const { return showKeys; }
00080
00081 LCDNumberAction *channel() const { return chan; }
00082
00083 public slots:
00084 void deviceChanged( QVSourcePlugin *dev );
00085 void updateSlider(int, int);
00086 void updateMuteButton(bool);
00087 void updateViewMode( int mode );
00088
00089 signals:
00090 void launchBindings();
00091
00092 private:
00093 QtVision *qtv;
00094
00095 LCDNumberAction *chan;
00096 KAction *chanLoadDefaults;
00097 KAction *chanImportLegacy;
00098 KAction *chanOpen;
00099 KAction *chanImport;
00100 KAction *chanDown;
00101 KAction *chanUp;
00102 KAction *chanWiz;
00103
00104 SliderAction *volSlider;
00105 KToggleAction *volMute;
00106 KToggleAction *sleepTime;
00107 KAction *volUp;
00108 KAction *volDown;
00109 KAction *prevChannel;
00110
00111 KRadioAction *showNorm;
00112 KRadioAction *showFull;
00113 KRadioAction *showTop;
00114 KRadioAction *showDesk;
00115 KAction *nextView;
00116 KAction *toggleFull;
00117
00118 KAction *snap;
00119 KAction *chngSrc;
00120 KAction *showSettings;
00121 KAction *showKeys;
00122 };
00123
00124 #endif // QTVISIONACTIONS_H