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

Last change on this file since 103 was 93, checked in by Silvan Scherrer, 15 years ago

smplayer: 0.6.9

File size: 3.2 KB
Line 
1/* smplayer, GUI front-end for mplayer.
2 Copyright (C) 2006-2010 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 _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
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 void setUseSingleInstance(bool b);
73 bool useSingleInstance();
74
75 void setServerPort(int port);
76 int serverPort();
77
78 void setUseAutoPort(bool b);
79 bool useAutoPort();
80
81 void setRecentsMaxItems(int n);
82 int recentsMaxItems();
83
84 void setSeeking1(int n);
85 int seeking1();
86
87 void setSeeking2(int n);
88 int seeking2();
89
90 void setSeeking3(int n);
91 int seeking3();
92
93 void setSeeking4(int n);
94 int seeking4();
95
96 void setUpdateWhileDragging(bool);
97 bool updateWhileDragging();
98
99 void setDefaultFont(QString font_desc);
100 QString defaultFont();
101
102 // Floating tab
103 void setFloatingAnimated(bool b);
104 bool floatingAnimated();
105
106 void setFloatingWidth(int percentage);
107 int floatingWidth();
108
109 void setFloatingMargin(int pixels);
110 int floatingMargin();
111
112 void setDisplayFloatingInCompactMode(bool b);
113 bool displayFloatingInCompactMode();
114
115#ifndef Q_OS_WIN
116 void setFloatingBypassWindowManager(bool b);
117 bool floatingBypassWindowManager();
118#endif
119
120protected slots:
121 void on_changeFontButton_clicked();
122 void changeInstanceImages();
123
124protected:
125 virtual void retranslateStrings();
126
127private:
128 bool language_changed;
129 bool iconset_changed;
130 bool recents_changed;
131 bool style_changed;
132 bool port_changed;
133};
134
135#endif
Note: See TracBrowser for help on using the repository browser.