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

Last change on this file since 112 was 112, checked in by Silvan Scherrer, 15 years ago

Smplayer: eol-style

  • Property svn:eol-style set to LF
File size: 3.3 KB
Line 
1/* smplayer, GUI front-end for mplayer.
2 Copyright (C) 2006-2010 Ricardo Villalba <rvm@escomposlinux.org>
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
86 void setPreferIpv4(bool b);
87 bool preferIpv4();
88
89 void setUseIdx(bool);
90 bool useIdx();
91
92 void setUseCorrectPts(Preferences::OptionState value);
93 Preferences::OptionState useCorrectPts();
94
95 void setActionsToRun(QString actions);
96 QString actionsToRun();
97
98 // Log options
99 void setLogMplayer(bool b);
100 bool logMplayer();
101
102 void setMplayerLogVerbose(bool b);
103 bool mplayerLogVerbose();
104
105 void setLogSmplayer(bool b);
106 bool logSmplayer();
107
108 void setLogFilter(QString filter);
109 QString logFilter();
110
111 void setSaveMplayerLog(bool b);
112 bool saveMplayerLog();
113
114 void setMplayerLogName(QString filter);
115 QString mplayerLogName();
116
117 void setSaveSmplayerLog(bool b);
118 bool saveSmplayerLog();
119
120protected:
121 virtual void retranslateStrings();
122
123protected slots:
124 void on_changeButton_clicked();
125
126private:
127#if REPAINT_BACKGROUND_OPTION
128 bool repaint_video_background_changed;
129#endif
130 bool monitor_aspect_changed;
131#if USE_COLORKEY
132 bool colorkey_changed;
133#endif
134};
135
136#endif
Note: See TracBrowser for help on using the repository browser.