1 | /* smplayer, GUI front-end for mplayer.
|
---|
2 | Copyright (C) 2006-2016 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 PREFINPUT_H
|
---|
20 | #define PREFINPUT_H
|
---|
21 |
|
---|
22 | #include "ui_prefinput.h"
|
---|
23 | #include "preferences.h"
|
---|
24 | #include "prefwidget.h"
|
---|
25 | #include <QStringList>
|
---|
26 |
|
---|
27 | class Preferences;
|
---|
28 |
|
---|
29 | class PrefInput : public PrefWidget, public Ui::PrefInput
|
---|
30 | {
|
---|
31 | Q_OBJECT
|
---|
32 |
|
---|
33 | public:
|
---|
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 |
|
---|
49 | protected:
|
---|
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(Preferences::WheelFunctions flags);
|
---|
76 | Preferences::WheelFunctions wheelFunctionCycle();
|
---|
77 |
|
---|
78 | void setWheelFunctionSeekingReverse(bool b);
|
---|
79 | bool wheelFunctionSeekingReverse();
|
---|
80 |
|
---|
81 | void setDragFunction(int function);
|
---|
82 | int dragFunction();
|
---|
83 |
|
---|
84 | #ifdef GLOBALSHORTCUTS
|
---|
85 | void setUseGlobalShortcuts(bool);
|
---|
86 | bool useGlobalShortcuts();
|
---|
87 | #endif
|
---|
88 |
|
---|
89 | protected:
|
---|
90 | virtual void retranslateStrings();
|
---|
91 | };
|
---|
92 |
|
---|
93 | #endif
|
---|