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

« back to all changes in this revision

Viewing changes to src/prefgeneral.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
22
22
#include "ui_prefgeneral.h"
23
23
#include "prefwidget.h"
24
24
#include "inforeader.h"
 
25
#include "deviceinfo.h"
25
26
#include "preferences.h"
26
27
 
 
28
#ifdef Q_OS_WIN
 
29
#define USE_DSOUND_DEVICES 1
 
30
#else
 
31
#define USE_ALSA_DEVICES 1
 
32
#define USE_XV_ADAPTORS 1
 
33
#endif
 
34
 
27
35
class PrefGeneral : public PrefWidget, public Ui::PrefGeneral
28
36
{
29
37
        Q_OBJECT
43
51
        // Apply changes
44
52
        void getData(Preferences * pref);
45
53
 
 
54
    bool fileSettingsMethodChanged() { return filesettings_method_changed; };
 
55
 
46
56
protected:
47
57
        virtual void createHelp();
48
58
 
49
 
        void setDrivers(InfoList vo_list, InfoList ao_list);
50
 
 
51
59
        // Tab General
52
60
        void setMplayerPath( QString path );
53
61
        QString mplayerPath();
64
72
        void setRememberSettings(bool b);
65
73
        bool rememberSettings();
66
74
 
67
 
        void setDontRememberTimePos(bool b);
68
 
        bool dontRememberTimePos();
 
75
        void setRememberTimePos(bool b);
 
76
        bool rememberTimePos();
 
77
 
 
78
        void setFileSettingsMethod(QString method);
 
79
        QString fileSettingsMethod();
69
80
 
70
81
        void setAudioLang(QString lang);
71
82
        QString audioLang();
95
106
        void setDisableScreensaver(bool b);
96
107
        bool disableScreensaver();
97
108
 
 
109
        void setBlackbordersOnFullscreen(bool b);
 
110
        bool blackbordersOnFullscreen();
 
111
 
98
112
        void setAutoq(int n);
99
113
        int autoq();
100
114
 
101
115
        void setSoftVol(bool b);
102
116
        bool softVol();
103
117
 
 
118
        void setUseAudioEqualizer(bool b);
 
119
        bool useAudioEqualizer();
 
120
 
104
121
        void setAc3DTSPassthrough(bool b);
105
122
        bool Ac3DTSPassthrough();
106
123
 
113
130
        void setInitialDeinterlace(int ID);
114
131
        int initialDeinterlace();
115
132
 
 
133
        void setInitialZoom(double v);
 
134
        double initialZoom();
 
135
 
116
136
        void setDirectRendering(bool b);
117
137
        bool directRendering();
118
138
 
119
139
        void setDoubleBuffer(bool b);
120
140
        bool doubleBuffer();
121
141
 
 
142
        void setUseSlices(bool b);
 
143
        bool useSlices();
 
144
 
122
145
        void setAmplification(int n);
123
146
        int amplification();
124
147
 
138
161
        void setScaleTempoFilter(Preferences::OptionState value);
139
162
        Preferences::OptionState scaleTempoFilter();
140
163
 
 
164
protected slots:
 
165
        void vo_combo_changed(int);
 
166
        void ao_combo_changed(int);
 
167
 
141
168
protected:
142
169
        virtual void retranslateStrings();
 
170
        void updateDriverCombos();
 
171
 
 
172
        InfoList vo_list;
 
173
        InfoList ao_list;
 
174
        
 
175
#if USE_DSOUND_DEVICES
 
176
        DeviceList dsound_devices;
 
177
#endif
 
178
 
 
179
#if USE_ALSA_DEVICES
 
180
        DeviceList alsa_devices;
 
181
#endif
 
182
#if USE_XV_ADAPTORS
 
183
        DeviceList xv_adaptors;
 
184
#endif
 
185
 
 
186
private:
 
187
        bool filesettings_method_changed;
143
188
};
144
189
 
145
190
#endif