profile_selector.hpp

Go to the documentation of this file.
00001 /*****************************************************************************
00002  * profile_selector.hpp : A small profile selector and editor
00003  ****************************************************************************
00004  * Copyright (C) 2009 the VideoLAN team
00005  * $Id: 65ff9739682502ac4df066d714f94c5b9f3d8c54 $
00006  *
00007  * Authors: Jean-Baptiste Kempf <jb@videolan.org>
00008  *
00009  * This program is free software; you can redistribute it and/or modify
00010  * it under the terms of the GNU General Public License as published by
00011  * the Free Software Foundation; either version 2 of the License, or
00012  * (at your option) any later version.
00013  *
00014  * This program is distributed in the hope that it will be useful,
00015  * but WITHOUT ANY WARRANTY; without even the implied warranty of
00016  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
00017  * GNU General Public License for more details.
00018  *
00019  * You should have received a copy of the GNU General Public License
00020  * along with this program; if not, write to the Free Software
00021  * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston MA 02110-1301, USA.
00022  *****************************************************************************/
00023 
00024 #ifndef _PROFILE_H_
00025 #define _PROFILE_H_
00026 
00027 #include "qt4.hpp"
00028 
00029 #include <QWidget>
00030 
00031 #include "util/qvlcframe.hpp"
00032 #include "ui/profiles.h"
00033 
00034 class QComboBox;
00035 class VLCProfileSelector : public QWidget
00036 {
00037     Q_OBJECT
00038 
00039 public:
00040     VLCProfileSelector( QWidget *_parent );
00041     QString getMux() { return mux; }
00042     QString getTranscode() { return transcode; }
00043 private:
00044     QComboBox *profileBox;
00045     void fillProfilesCombo();
00046     void editProfile( const QString&, const QString& );
00047     void saveProfiles();
00048     QString mux;
00049     QString transcode;
00050 private slots:
00051     void newProfile();
00052     void editProfile();
00053     void deleteProfile();
00054     void updateOptions( int i );
00055 signals:
00056     void optionsChanged();
00057 };
00058 
00059 class VLCProfileEditor : public QVLCDialog
00060 {
00061     Q_OBJECT
00062 
00063     Ui::Profiles ui;
00064 public:
00065     VLCProfileEditor( const QString&, const QString&, QWidget * );
00066 
00067     QString name;
00068     QString muxValue;
00069     QString transcodeValue();
00070 private:
00071     void registerCodecs();
00072     void fillProfile( const QString& qs );
00073 protected slots:
00074     virtual void close();
00075 private slots:
00076     void setVTranscodeOptions( bool );
00077     void setATranscodeOptions( bool );
00078     void setSTranscodeOptions( bool );
00079 };
00080 
00081 #endif

Generated on Tue May 25 08:04:57 2010 for VLC by  doxygen 1.5.6