source: smplayer/trunk/src/filepropertiesdialog.h

Last change on this file was 188, checked in by Silvan Scherrer, 8 years ago

SMPlayer: update trunk to version 17.1.0

  • Property svn:eol-style set to LF
File size: 2.7 KB
Line 
1/* smplayer, GUI front-end for mplayer.
2 Copyright (C) 2006-2017 Ricardo Villalba <rvm@users.sourceforge.net>
3
4 This program is free software; you can redistribute it and/or modify
5 it under the terms of the GNU General Public License as published by
6 the Free Software Foundation; either version 2 of the License, or
7 (at your option) any later version.
8
9 This program is distributed in the hope that it will be useful,
10 but WITHOUT ANY WARRANTY; without even the implied warranty of
11 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12 GNU General Public License for more details.
13
14 You should have received a copy of the GNU General Public License
15 along with this program; if not, write to the Free Software
16 Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
17*/
18
19#ifndef FILEPROPERTIESDIALOG_H
20#define FILEPROPERTIESDIALOG_H
21
22#include "ui_filepropertiesdialog.h"
23#include "inforeader.h"
24#include "mediadata.h"
25#include "config.h"
26
27class QPushButton;
28
29class FilePropertiesDialog : public QDialog, public Ui::FilePropertiesDialog
30{
31 Q_OBJECT
32
33public:
34 FilePropertiesDialog( QWidget* parent = 0, Qt::WindowFlags f = 0 );
35 ~FilePropertiesDialog();
36
37 void setMediaData(MediaData md);
38
39#if ALLOW_DEMUXER_CODEC_CHANGE
40 // Call it as soon as possible
41 void setCodecs(InfoList vc, InfoList ac, InfoList demuxer);
42
43 void setDemuxer(QString demuxer, QString original_demuxer="");
44 QString demuxer();
45
46 void setVideoCodec(QString vc, QString original_vc="");
47 QString videoCodec();
48
49 void setAudioCodec(QString ac, QString original_ac="");
50 QString audioCodec();
51#endif
52
53 void setMplayerAdditionalArguments(QString args);
54 QString mplayerAdditionalArguments();
55
56 void setMplayerAdditionalVideoFilters(QString s);
57 QString mplayerAdditionalVideoFilters();
58
59 void setMplayerAdditionalAudioFilters(QString s);
60 QString mplayerAdditionalAudioFilters();
61
62public slots:
63 void accept(); // Reimplemented to send a signal
64 void apply();
65
66signals:
67 void applied();
68
69#if ALLOW_DEMUXER_CODEC_CHANGE
70protected slots:
71 virtual void on_resetDemuxerButton_clicked();
72 virtual void on_resetACButton_clicked();
73 virtual void on_resetVCButton_clicked();
74#endif
75
76protected:
77#if ALLOW_DEMUXER_CODEC_CHANGE
78 bool hasCodecsList() { return codecs_set; };
79 int find(QString s, InfoList &list);
80#endif
81 void showInfo();
82
83protected:
84 virtual void retranslateStrings();
85 virtual void changeEvent ( QEvent * event ) ;
86
87private:
88#if ALLOW_DEMUXER_CODEC_CHANGE
89 bool codecs_set;
90 InfoList vclist, aclist, demuxerlist;
91 QString orig_demuxer, orig_ac, orig_vc;
92#endif
93 MediaData media_data;
94
95 QPushButton * okButton;
96 QPushButton * cancelButton;
97 QPushButton * applyButton;
98};
99
100#endif
Note: See TracBrowser for help on using the repository browser.