konverter.kdevelop: cvs/konverter/src/GUI/Controller/preview.h Source File

Main Page | Class List | Directories | File List

# preview.h

    00001 /***************************************************************************
    00002  *   Copyright (C) 2004 by Marco Kraus                                     *
    00003  *   marco@libsdl.de                                                       *
    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 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