Main Page   Class Hierarchy   Compound List   File List   Compound Members  

viewmanager.h

00001 // -*- c++ -*-
00002 
00003 /*
00004  *
00005  * Copyright (C) 2002 Richard Moore <rich@kde.org>
00006  * Copyright (C) 2002 George Staikos <staikos@kde.org>
00007  *
00008  * This library is free software; you can redistribute it and/or
00009  * modify it under the terms of the GNU Library General Public
00010  * License as published by the Free Software Foundation; either
00011  * version 2 of the License, or (at your option) any later version.
00012  *
00013  * This library is distributed in the hope that it will be useful,
00014  * but WITHOUT ANY WARRANTY; without even the implied warranty of
00015  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
00016  * Library General Public License for more details.
00017  *
00018  * You should have received a copy of the GNU Library General Public License
00019  * along with this library; see the file COPYING.LIB.  If not, write to
00020  * the Free Software Foundation, Inc., 59 Temple Place - Suite 330,
00021  * Boston, MA 02111-1307, USA.
00022  */
00023 
00024 #ifndef VIEWMANAGER_H
00025 #define VIEWMANAGER_H
00026 
00027 #include <qguardedptr.h>
00028 #include <qobject.h>
00029 
00030 class QWidget;
00031 class QtVision;
00032 class ConfigData;
00033 class ChannelEditor;
00034 class SettingsDialog;
00035 class DeviceWidgetImpl;
00036 
00037 #include "pluginfactory.h"
00038 
00044 class ViewManager : public QObject
00045 {
00046     Q_OBJECT
00047 
00048 public:
00049     ViewManager( QtVision *qtv, const char *name=0 );
00050     ~ViewManager();
00051 
00052     int launchSourceDialog( QWidget *parent );
00053     int launchWizard( QWidget *parent );
00054     int launchSettings( QWidget *parent );
00055 
00056     ChannelEditor *createChannelEditor( QWidget *parent );
00057 
00058     ConfigData *getConfig();
00059 
00060 public slots:
00061     void update();
00062 
00063 protected slots:
00064     void setOptions(ConfigData *);
00065     void destroySettings();
00066 
00067     void slotHueChanged(int);
00068     void slotColourChanged(int);
00069     void slotBrightnessChanged(int);
00070     void slotWhitenessChanged(int);
00071     void slotContrastChanged(int);
00072 
00073 signals:
00074     void showSelectedChanged(bool);
00075     void setFixedAspectRatio(bool, int);
00076     void disableScreenSaver(bool, int);
00077     void stayOnTopChanged(bool);
00078     void useListingsURL(bool);
00079     void getNewListingsURL(QString *);
00080 
00081 private:
00082     QVSourcePlugin *dev;
00083     QtVision *qtv;
00084     ConfigData *cfg;
00085     SettingsDialog *settingsDialog;
00086     DeviceWidgetImpl *ssdlg;
00087 
00088 };
00089 
00090 #endif // VIEWMANAGER_H
00091 
00092 
00093 

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