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

Last change on this file since 151 was 142, checked in by Silvan Scherrer, 12 years ago

SMPlayer: update trunk to 0.8.5

  • Property svn:eol-style set to LF
File size: 3.4 KB
Line 
1/* smplayer, GUI front-end for mplayer.
2 Copyright (C) 2006-2013 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 _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 setMplayerCrashes(bool b);
73 bool mplayerCrashes();
74
75 void setMplayerAdditionalArguments(QString args);
76 QString mplayerAdditionalArguments();
77
78 void setMplayerAdditionalVideoFilters(QString s);
79 QString mplayerAdditionalVideoFilters();
80
81 void setMplayerAdditionalAudioFilters(QString s);
82 QString mplayerAdditionalAudioFilters();
83
84#if USE_COLORKEY
85 void setColorKey(unsigned int c);
86 unsigned int colorKey();
87#endif
88
89 void setPreferIpv4(bool b);
90 bool preferIpv4();
91
92 void setUseIdx(bool);
93 bool useIdx();
94
95 void setUseCorrectPts(Preferences::OptionState value);
96 Preferences::OptionState useCorrectPts();
97
98 void setActionsToRun(QString actions);
99 QString actionsToRun();
100
101 void setShowTagInTitle(bool b);
102 bool showTagInTitle();
103
104 // Log options
105#ifdef LOG_MPLAYER
106 void setLogMplayer(bool b);
107 bool logMplayer();
108
109 void setMplayerLogVerbose(bool b);
110 bool mplayerLogVerbose();
111
112 void setSaveMplayerLog(bool b);
113 bool saveMplayerLog();
114
115 void setMplayerLogName(QString filter);
116 QString mplayerLogName();
117#endif
118
119#ifdef LOG_SMPLAYER
120 void setLogSmplayer(bool b);
121 bool logSmplayer();
122
123 void setLogFilter(QString filter);
124 QString logFilter();
125
126 void setSaveSmplayerLog(bool b);
127 bool saveSmplayerLog();
128#endif
129
130protected:
131 virtual void retranslateStrings();
132
133protected slots:
134 void on_changeButton_clicked();
135
136private:
137#if REPAINT_BACKGROUND_OPTION
138 bool repaint_video_background_changed;
139#endif
140 bool monitor_aspect_changed;
141#if USE_COLORKEY
142 bool colorkey_changed;
143#endif
144};
145
146#endif
Note: See TracBrowser for help on using the repository browser.