~ubuntu-branches/debian/sid/smplayer/sid

« back to all changes in this revision

Viewing changes to src/prefadvanced.h

  • Committer: Bazaar Package Importer
  • Author(s): Maia Kozheva
  • Date: 2009-03-31 23:05:43 UTC
  • mto: (1.1.9 upstream) (3.1.2 squeeze)
  • mto: This revision was merged to the branch mainline in revision 14.
  • Revision ID: james.westby@ubuntu.com-20090331230543-nsklbxenl2hf2n6h
Tags: upstream-0.6.7
ImportĀ upstreamĀ versionĀ 0.6.7

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
/*  smplayer, GUI front-end for mplayer.
2
 
    Copyright (C) 2006-2008 Ricardo Villalba <rvm@escomposlinux.org>
 
2
    Copyright (C) 2006-2009 Ricardo Villalba <rvm@escomposlinux.org>
3
3
 
4
4
    This program is free software; you can redistribute it and/or modify
5
5
    it under the terms of the GNU General Public License as published by
21
21
 
22
22
#include "ui_prefadvanced.h"
23
23
#include "prefwidget.h"
24
 
#include "config.h"
 
24
#include "preferences.h"
25
25
 
26
26
class Preferences;
27
27
 
42
42
    // Apply changes
43
43
    void getData(Preferences * pref);
44
44
 
45
 
        bool clearingBackgroundChanged() { return clearing_background_changed; };
 
45
#if REPAINT_BACKGROUND_OPTION
 
46
        bool repaintVideoBackgroundChanged() { return repaint_video_background_changed; };
 
47
#endif
46
48
        bool monitorAspectChanged() { return monitor_aspect_changed; };
47
49
#if USE_COLORKEY
48
50
        bool colorkeyChanged() { return colorkey_changed; };
55
57
        void setMonitorAspect(QString asp);
56
58
        QString monitorAspect();
57
59
 
58
 
        void setClearBackground(bool b);
59
 
        bool clearBackground();
 
60
#if REPAINT_BACKGROUND_OPTION
 
61
        void setRepaintVideoBackground(bool b);
 
62
        bool repaintVideoBackground();
 
63
#endif
60
64
 
61
65
        void setUseMplayerWindow(bool v);
62
66
        bool useMplayerWindow();
79
83
        unsigned int colorKey();
80
84
#endif
81
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
 
82
98
        // Log options
83
99
        void setLogMplayer(bool b);
84
100
        bool logMplayer();
95
111
    void setMplayerLogName(QString filter);
96
112
    QString mplayerLogName();
97
113
 
98
 
        // MPlayer language
99
 
        void setEndOfFileText(QString t);
100
 
        QString endOfFileText();
101
 
 
102
 
        void setNoVideoText(QString t);
103
 
        QString noVideoText();
104
 
 
105
114
protected:
106
115
        virtual void retranslateStrings();
107
116
 
109
118
        void on_changeButton_clicked();
110
119
 
111
120
private:
112
 
        bool clearing_background_changed;
 
121
#if REPAINT_BACKGROUND_OPTION
 
122
        bool repaint_video_background_changed;
 
123
#endif
113
124
        bool monitor_aspect_changed;
114
125
#if USE_COLORKEY
115
126
        bool colorkey_changed;