source: smplayer/trunk/src/prefinput.h@ 100

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

smplayer: 0.6.9

File size: 2.3 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 _PREFINPUT_H_
20#define _PREFINPUT_H_
21
22#include "ui_prefinput.h"
23#include "preferences.h"
24#include "prefwidget.h"
25#include <QStringList>
26
27class Preferences;
28
29class PrefInput : public PrefWidget, public Ui::PrefInput
30{
31 Q_OBJECT
32
33public:
34 PrefInput( QWidget * parent = 0, Qt::WindowFlags f = 0 );
35 ~PrefInput();
36
37 virtual QString sectionName();
38 virtual QPixmap sectionIcon();
39
40 // Pass data to the dialog
41 void setData(Preferences * pref);
42
43 // Apply changes
44 void getData(Preferences * pref);
45
46 // Pass action's list to dialog
47 /* void setActionsList(QStringList l); */
48
49protected:
50 virtual void createHelp();
51
52 void createMouseCombos();
53
54 void setLeftClickFunction(QString f);
55 QString leftClickFunction();
56
57 void setRightClickFunction(QString f);
58 QString rightClickFunction();
59
60 void setDoubleClickFunction(QString f);
61 QString doubleClickFunction();
62
63 void setMiddleClickFunction(QString f);
64 QString middleClickFunction();
65
66 void setXButton1ClickFunction(QString f);
67 QString xButton1ClickFunction();
68
69 void setXButton2ClickFunction(QString f);
70 QString xButton2ClickFunction();
71
72 void setWheelFunction(int function);
73 int wheelFunction();
74
75 void setWheelFunctionCycle(QFlags<Preferences::WheelFunctions> flags);
76 QFlags<Preferences::WheelFunctions> wheelFunctionCycle();
77
78 void setWheelFunctionSeekingReverse(bool b);
79 bool wheelFunctionSeekingReverse();
80
81protected:
82 virtual void retranslateStrings();
83};
84
85#endif
Note: See TracBrowser for help on using the repository browser.