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

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

SMPlayer: 0.7.1 trunk update

  • Property svn:eol-style set to LF
File size: 3.3 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 recentsChanged() { return recents_changed; };
47 bool styleChanged() { return style_changed; };
48 bool serverPortChanged() { return port_changed; };
49
50 void setSingleInstanceTabEnabled(bool b);
51 bool singleInstanceTabEnabled();
52
53protected:
54 virtual void createHelp();
55 void createLanguageCombo();
56
57 void setLanguage(QString lang);
58 QString language();
59
60 void setIconSet(QString set);
61 QString iconSet();
62
63 void setResizeMethod(int v);
64 int resizeMethod();
65
66 void setSaveSize(bool b);
67 bool saveSize();
68
69 void setGUI(QString gui_name);
70 QString GUI();
71
72 void setStyle(QString style);
73 QString style();
74
75 void setUseSingleInstance(bool b);
76 bool useSingleInstance();
77
78 void setServerPort(int port);
79 int serverPort();
80
81 void setUseAutoPort(bool b);
82 bool useAutoPort();
83
84 void setRecentsMaxItems(int n);
85 int recentsMaxItems();
86
87 void setSeeking1(int n);
88 int seeking1();
89
90 void setSeeking2(int n);
91 int seeking2();
92
93 void setSeeking3(int n);
94 int seeking3();
95
96 void setSeeking4(int n);
97 int seeking4();
98
99 void setUpdateWhileDragging(bool);
100 bool updateWhileDragging();
101
102 void setRelativeSeeking(bool);
103 bool relativeSeeking();
104
105 void setPreciseSeeking(bool);
106 bool preciseSeeking();
107
108 void setDefaultFont(QString font_desc);
109 QString defaultFont();
110
111 void setHideVideoOnAudioFiles(bool b);
112 bool hideVideoOnAudioFiles();
113
114 // Floating tab
115 void setFloatingAnimated(bool b);
116 bool floatingAnimated();
117
118 void setFloatingWidth(int percentage);
119 int floatingWidth();
120
121 void setFloatingMargin(int pixels);
122 int floatingMargin();
123
124 void setDisplayFloatingInCompactMode(bool b);
125 bool displayFloatingInCompactMode();
126
127#ifndef Q_OS_WIN
128 void setFloatingBypassWindowManager(bool b);
129 bool floatingBypassWindowManager();
130#endif
131
132protected slots:
133 void on_changeFontButton_clicked();
134 void changeInstanceImages();
135
136protected:
137 virtual void retranslateStrings();
138
139private:
140 bool language_changed;
141 bool iconset_changed;
142 bool recents_changed;
143 bool style_changed;
144 bool port_changed;
145};
146
147#endif
Note: See TracBrowser for help on using the repository browser.