00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020 #ifndef PREVIEW_H
00021 #define PREVIEW_H
00022
00023 #include <qprocess.h>
00024 #include <qfile.h>
00025 #include <qlayout.h>
00026 #include <qobject.h>
00027 #include <qframe.h>
00028 #include <qstring.h>
00029 #include <qspinbox.h>
00030 #include <qwidget.h>
00031 #include <qhbox.h>
00032 #include <qcombobox.h>
00033 #include <qcheckbox.h>
00034 #include <qpushbutton.h>
00035
00036 #include "PreviewForm.h"
00037 #include "konvprocess.h"
00038 #include "../../app/XineEngine/kxinewidget.h"
00039
00045 class Preview : public PreviewForm
00046 {
00047 Q_OBJECT
00048 public:
00049 Preview(QWidget *parent = 0, const char *name = 0);
00050
00051 ~Preview();
00052
00053 void getFileKMPreview(QStringList MencOpts, QString IFile);
00054 void getFileKMPreview();
00055
00056 private:
00057 QObject* origPreview;
00058 QObject* convPreview;
00059 QHBoxLayout* horPreviewLayout;
00060 QHBoxLayout* hconvPreviewLayout;
00061 QBoxLayout* mLayout;
00062 int SecsToGrab;
00063 QString IFileTemp;
00064 QString encCmdPreviewProc;
00065 KonvProcess* mencPreview;
00066 QFile* tempFile;
00067 QStringList tempOptions;
00068 KXineWidget* orXine;
00069 KXineWidget* prXine;
00070
00071 public slots:
00072 virtual void ChangeSecToGrab();
00073 virtual void PlayBoth();
00074 virtual void StopBoth();
00075 virtual void ClosePreview();
00076 virtual void ChangeLayout();
00077
00078 private slots:
00079 virtual void prPlayerStateChanged();
00080 virtual void processExiting();
00081 };
00082
00083 #endif