1
/* smplayer, GUI front-end for mplayer.
2
Copyright (C) 2006-2008 Ricardo Villalba <rvm@escomposlinux.org>
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.
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.
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
19
#ifndef _PREFADVANCED_H_
20
#define _PREFADVANCED_H_
22
#include "ui_prefadvanced.h"
23
#include "prefwidget.h"
28
class PrefAdvanced : public PrefWidget, public Ui::PrefAdvanced
33
PrefAdvanced( QWidget * parent = 0, Qt::WindowFlags f = 0 );
36
virtual QString sectionName();
37
virtual QPixmap sectionIcon();
39
// Pass data to the dialog
40
void setData(Preferences * pref);
43
void getData(Preferences * pref);
45
bool clearingBackgroundChanged() { return clearing_background_changed; };
46
bool monitorAspectChanged() { return monitor_aspect_changed; };
48
bool colorkeyChanged() { return colorkey_changed; };
52
virtual void createHelp();
55
void setMonitorAspect(QString asp);
56
QString monitorAspect();
58
void setClearBackground(bool b);
59
bool clearBackground();
61
void setUseMplayerWindow(bool v);
62
bool useMplayerWindow();
64
// Windows only: pass to mplayer short filenames (8+3)
65
void setUseShortNames(bool b);
68
void setMplayerAdditionalArguments(QString args);
69
QString mplayerAdditionalArguments();
71
void setMplayerAdditionalVideoFilters(QString s);
72
QString mplayerAdditionalVideoFilters();
74
void setMplayerAdditionalAudioFilters(QString s);
75
QString mplayerAdditionalAudioFilters();
78
void setColorKey(unsigned int c);
79
unsigned int colorKey();
83
void setLogMplayer(bool b);
86
void setLogSmplayer(bool b);
89
void setLogFilter(QString filter);
92
void setSaveMplayerLog(bool b);
93
bool saveMplayerLog();
95
void setMplayerLogName(QString filter);
96
QString mplayerLogName();
99
void setEndOfFileText(QString t);
100
QString endOfFileText();
102
void setNoVideoText(QString t);
103
QString noVideoText();
106
virtual void retranslateStrings();
109
void on_changeButton_clicked();
112
bool clearing_background_changed;
113
bool monitor_aspect_changed;
115
bool colorkey_changed;