Main Page | Class Hierarchy | Class List | Directories | File List | Class Members | Related Pages

videoview.h

00001 /***************************************************************************
00002  *   Copyright (C) 2005 by Bjoern Erik Nilsen & Fredrik Berg Kjoelstad     *
00003  *   bjoern_erik_nilsen@hotmail.com & fredrikbk@hotmail.com                *
00004  *                                                                         *
00005  *   This program is free software; you can redistribute it and/or modify  *
00006  *   it under the terms of the GNU General Public License as published by  *
00007  *   the Free Software Foundation; either version 2 of the License, or     *
00008  *   (at your option) any later version.                                   *
00009  *                                                                         *
00010  *   This program is distributed in the hope that it will be useful,       *
00011  *   but WITHOUT ANY WARRANTY; without even the implied warranty of        *
00012  *   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the         *
00013  *   GNU General Public License for more details.                          *
00014  *                                                                         *
00015  *   You should have received a copy of the GNU General Public License     *
00016  *   along with this program; if not, write to the                         *
00017  *   Free Software Foundation, Inc.,                                       *
00018  *   59 Temple Place - Suite 330, Boston, MA  02111-1307, USA.             *
00019  ***************************************************************************/
00020 #ifndef VIDEOVIEW_H
00021 #define VIDEOVIEW_H
00022 
00023 #include "src/config.h"
00024 
00025 #include "src/presentation/observer.h"
00026 
00027 #include <qwidget.h>
00028 
00034 class VideoView : public QWidget, public Observer
00035 {
00036         Q_OBJECT
00037 public:
00038         
00044         VideoView(QWidget *parent=0, const char *name=0, WFlags f = 0);
00045         
00049         ~VideoView();
00050         
00051         virtual bool on();
00052         virtual void off();
00053         virtual void capture();
00054         
00055         virtual void setPlaybackSpeed(int playbackSpeed);
00056         
00062         virtual void initCompleted();
00063         
00064         
00069         virtual void updateAdd(const vector<char*>& frames, unsigned int, Frontend*);
00070         
00075         virtual void updateRemove(unsigned int, unsigned int);
00076         
00081         virtual void updateMove(unsigned int fromFrame, unsigned int toFrame, unsigned int movePosition);
00082         
00083         
00087         virtual void updateNewActiveFrame(int frameNumber);
00088         
00092         virtual void updateClear();
00093         
00098         virtual void updatePlayFrame(int frameNumber);
00099         
00105         virtual void updateNewScene(int index);
00106         
00112         virtual void updateRemoveScene(int sceneNumber);
00113         
00120         virtual void updateMoveScene(int sceneNumber, int movePosition);
00121         
00122         virtual void updateNewActiveScene(int sceneNumber, vector<char*> frames,
00123                 Frontend *frontend);
00124         
00125         virtual void updateAnimationChanged(vector<Frame*>& frames);
00126         
00127         void setMixCount(int mixCount);
00128 
00129 
00130         virtual bool setViewMode(int mode);
00131         virtual int getViewMode();
00132 
00133 protected:
00135         int mixCount;   
00136         
00137         virtual void initCamera();
00138         
00139 private:
00140 
00141 
00142 signals:
00143         void cameraReady();
00144 };
00145 
00146 #endif

Generated on Thu May 19 01:51:21 2005 for stopmotion.kdevelop by  doxygen 1.4.2