~ubuntu-branches/ubuntu/wily/smplayer/wily

« back to all changes in this revision

Viewing changes to src/prefadvanced.h

  • Committer: Bazaar Package Importer
  • Author(s): Matvey Kozhev
  • Date: 2008-05-30 12:52:19 UTC
  • mto: (1.1.7 upstream) (3.1.1 lenny)
  • mto: This revision was merged to the branch mainline in revision 12.
  • Revision ID: james.westby@ubuntu.com-20080530125219-ky15vano4ps1ppnk
ImportĀ upstreamĀ versionĀ 0.6.1

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
/*  smplayer, GUI front-end for mplayer.
 
2
    Copyright (C) 2006-2008 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 "config.h"
 
25
 
 
26
class Preferences;
 
27
 
 
28
class PrefAdvanced : public PrefWidget, public Ui::PrefAdvanced
 
29
{
 
30
        Q_OBJECT
 
31
 
 
32
public:
 
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
        bool clearingBackgroundChanged() { return clearing_background_changed; };
 
46
        bool monitorAspectChanged() { return monitor_aspect_changed; };
 
47
#if USE_COLORKEY
 
48
        bool colorkeyChanged() { return colorkey_changed; };
 
49
#endif
 
50
 
 
51
protected:
 
52
        virtual void createHelp();
 
53
 
 
54
        // Advanced
 
55
        void setMonitorAspect(QString asp);
 
56
        QString monitorAspect();
 
57
 
 
58
        void setClearBackground(bool b);
 
59
        bool clearBackground();
 
60
 
 
61
        void setUseMplayerWindow(bool v);
 
62
        bool useMplayerWindow();
 
63
 
 
64
        // Windows only: pass to mplayer short filenames (8+3)
 
65
        void setUseShortNames(bool b);
 
66
        bool useShortNames();
 
67
 
 
68
        void setMplayerAdditionalArguments(QString args);
 
69
        QString mplayerAdditionalArguments();
 
70
 
 
71
        void setMplayerAdditionalVideoFilters(QString s);
 
72
        QString mplayerAdditionalVideoFilters();
 
73
 
 
74
        void setMplayerAdditionalAudioFilters(QString s);
 
75
        QString mplayerAdditionalAudioFilters();
 
76
 
 
77
#if USE_COLORKEY
 
78
        void setColorKey(unsigned int c);
 
79
        unsigned int colorKey();
 
80
#endif
 
81
 
 
82
        // Log options
 
83
        void setLogMplayer(bool b);
 
84
        bool logMplayer();
 
85
 
 
86
        void setLogSmplayer(bool b);
 
87
        bool logSmplayer();
 
88
 
 
89
        void setLogFilter(QString filter);
 
90
        QString logFilter();
 
91
 
 
92
    void setSaveMplayerLog(bool b);
 
93
    bool saveMplayerLog();
 
94
 
 
95
    void setMplayerLogName(QString filter);
 
96
    QString mplayerLogName();
 
97
 
 
98
        // MPlayer language
 
99
        void setEndOfFileText(QString t);
 
100
        QString endOfFileText();
 
101
 
 
102
        void setNoVideoText(QString t);
 
103
        QString noVideoText();
 
104
 
 
105
protected:
 
106
        virtual void retranslateStrings();
 
107
 
 
108
protected slots:
 
109
        void on_changeButton_clicked();
 
110
 
 
111
private:
 
112
        bool clearing_background_changed;
 
113
        bool monitor_aspect_changed;
 
114
#if USE_COLORKEY
 
115
        bool colorkey_changed;
 
116
#endif
 
117
};
 
118
 
 
119
#endif