Main Page   Class Hierarchy   Compound List   File List   Compound Members  

qtvisionactions.h

00001 // -*- c++ -*-
00002 
00003 /*
00004  *
00005  * Copyright (C) 2002 Richard Moore, <rich@kde.org>
00006  *
00007  * This library is free software; you can redistribute it and/or
00008  * modify it under the terms of the GNU Library General Public
00009  * License as published by the Free Software Foundation; either
00010  * version 2 of the License, or (at your option) any later version.
00011  *
00012  * This library is distributed in the hope that it will be useful,
00013  * but WITHOUT ANY WARRANTY; without even the implied warranty of
00014  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
00015  * Library General Public License for more details.
00016  *
00017  * You should have received a copy of the GNU Library General Public License
00018  * along with this library; see the file COPYING.LIB.  If not, write to
00019  * the Free Software Foundation, Inc., 59 Temple Place - Suite 330,
00020  * Boston, MA 02111-1307, USA.
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

Generated at Thu Jan 30 02:56:02 2003 for QtVision by doxygen1.2.9.1 written by Dimitri van Heesch, © 1997-2001