source: smplayer/trunk/src/prefadvanced.h@ 93

Last change on this file since 93 was 93, checked in by Silvan Scherrer, 16 years ago

smplayer: 0.6.9

File size: 3.4 KB
Line 
1/* smplayer, GUI front-end for mplayer.
2 Copyright (C) 2006-2010 Ricardo Villalba <[email protected]>
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 _PREFADVANCED_H_
20#define _PREFADVANCED_H_
21
22#include "ui_prefadvanced.h"
23#include "prefwidget.h"
24#include "preferences.h"
25
26class Preferences;
27
28class PrefAdvanced : public PrefWidget, public Ui::PrefAdvanced
29{
30 Q_OBJECT
31
32public:
33 PrefAdvanced( QWidget * parent = 0, Qt::WindowFlags f = 0 );
34 ~PrefAdvanced();
35
36 virtual QString sectionName();
37 virtual QPixmap sectionIcon();
38
39 // Pass data to the dialog
40 void setData(Preferences * pref);
41
42 // Apply changes
43 void getData(Preferences * pref);
44
45#if REPAINT_BACKGROUND_OPTION
46 bool repaintVideoBackgroundChanged() { return repaint_video_background_changed; };
47#endif
48 bool monitorAspectChanged() { return monitor_aspect_changed; };
49#if USE_COLORKEY
50 bool colorkeyChanged() { return colorkey_changed; };
51#endif
52
53protected:
54 virtual void createHelp();
55
56 // Advanced
57 void setMonitorAspect(QString asp);
58 QString monitorAspect();
59
60#if REPAINT_BACKGROUND_OPTION
61 void setRepaintVideoBackground(bool b);
62 bool repaintVideoBackground();
63#endif
64
65 void setUseMplayerWindow(bool v);
66 bool useMplayerWindow();
67
68 // Windows only: pass to mplayer short filenames (8+3)
69 void setUseShortNames(bool b);
70 bool useShortNames();
71
72 void setMplayerAdditionalArguments(QString args);
73 QString mplayerAdditionalArguments();
74
75 void setMplayerAdditionalVideoFilters(QString s);
76 QString mplayerAdditionalVideoFilters();
77
78 void setMplayerAdditionalAudioFilters(QString s);
79 QString mplayerAdditionalAudioFilters();
80
81#if USE_COLORKEY
82 void setColorKey(unsigned int c);
83 unsigned int colorKey();
84#endif
85