source: smplayer/trunk/src/prefinterface.h@ 133

Last change on this file since 133 was 128, checked in by Silvan Scherrer, 13 years ago

SMPlayer: trunk update to latest svn

  • Property svn:eol-style set to LF
File size: 3.2 KB
Line 
1/* smplayer, GUI front-end for mplayer.
2 Copyright (C) 2006-2012 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 _PREFINTERFACE_H_
20#define _PREFINTERFACE_H_
21
22#include "ui_prefinterface.h"
23#include "prefwidget.h"
24
25class Preferences;
26
27class PrefInterface : public PrefWidget, public Ui::PrefInterface
28{
29 Q_OBJECT
30
31public:
32 PrefInterface( QWidget * parent = 0, Qt::WindowFlags f = 0 );
33 ~PrefInterface();
34
35 virtual QString sectionName();
36 virtual QPixmap sectionIcon();
37
38 // Pass data to the dialog
39 void setData(Preferences * pref);
40
41 // Apply changes
42 void getData(Preferences * pref);
43
44 bool languageChanged() { return language_changed; };
45 bool iconsetChanged() { return iconset_changed; };
46 bool guiChanged() { return gui_changed; }
47 bool styleChanged() { return style_changed; };
48 bool recentsChanged() { return recents_changed; };
49
50protected:
51 virtual void createHelp();
52 void createLanguageCombo();
53
54 void setLanguage(QString lang);
55 QString language();
56
57 void setIconSet(QString set);
58 QString iconSet();
59
60 void setResizeMethod(int v);
61 int resizeMethod();
62
63 void setSaveSize(bool b);
64 bool saveSize();
65
66 void setGUI(QString gui_name);
67 QString GUI();
68
69 void setStyle(QString style);
70 QString style();
71
72#ifdef SINGLE_INSTANCE
73 void setUseSingleInstance(bool b);
74 bool useSingleInstance();
75#endif
76
77 void setRecentsMaxItems(int n);
78 int recentsMaxItems();
79
80 void setSeeking1(int n);
81 int seeking1();
82
83 void setSeeking2(int n);
84 int seeking2();
85
86 void setSeeking3(int n);
87 int seeking3();
88
89 void setSeeking4(int n);
90 int seeking4();
91
92 void setUpdateWhileDragging(bool);
93 bool updateWhileDragging();
94
95 void setRelativeSeeking(bool);
96 bool relativeSeeking();
97
98 void setPreciseSeeking(bool);
99 bool preciseSeeking();
100
101 void setDefaultFont(QString font_desc);
102 QString defaultFont();
103
104 void setHideVideoOnAudioFiles(bool b);
105 bool hideVideoOnAudioFiles();
106
107 // Floating tab
108 void setFloatingAnimated(bool b);
109 bool floatingAnimated();
110
111 void setFloatingWidth(int percentage);
112 int floatingWidth();
113
114 void setFloatingMargin(int pixels);
115 int floatingMargin();
116
117 void setDisplayFloatingInCompactMode(bool b);
118 bool displayFloatingInCompactMode();
119
120#ifndef Q_OS_WIN
121 void setFloatingBypassWindowManager(bool b);
122 bool floatingBypassWindowManager();
123#endif
124
125protected slots:
126 void on_changeFontButton_clicked();
127#ifdef SINGLE_INSTANCE
128 void changeInstanceImages();
129#endif
130
131protected:
132 virtual void retranslateStrings();
133
134private:
135 bool language_changed;
136 bool iconset_changed;
137 bool gui_changed;
138 bool style_changed;
139 bool recents_changed;
140};
141
142#endif
Note: See TracBrowser for help on using the repository browser.