profile_selector.hpp
Go to the documentation of this file.00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
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