summaryrefslogtreecommitdiff
path: root/src/prefinput.cpp
diff options
context:
space:
mode:
authorMaia Kozheva <sikon@ubuntu.com>2010-05-09 21:22:23 +0700
committerMaia Kozheva <sikon@ubuntu.com>2010-05-09 21:22:23 +0700
commit99b53d44a60e3e934fc664152c115ae0d6e19920 (patch)
treee38698c486f6b4044125fa0d0bf33475d92e8f3a /src/prefinput.cpp
parent263b32f108c15cd1c55a8f4eb4704fac6553f1ac (diff)
Imported Upstream version 0.6.9
Diffstat (limited to 'src/prefinput.cpp')
-rw-r--r--src/prefinput.cpp15
1 files changed, 14 insertions, 1 deletions
diff --git a/src/prefinput.cpp b/src/prefinput.cpp
index 0e7c81c..8809959 100644
--- a/src/prefinput.cpp
+++ b/src/prefinput.cpp
@@ -1,5 +1,5 @@
/* smplayer, GUI front-end for mplayer.
- Copyright (C) 2006-2009 Ricardo Villalba <rvm@escomposlinux.org>
+ Copyright (C) 2006-2010 Ricardo Villalba <rvm@escomposlinux.org>
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
@@ -171,6 +171,7 @@ void PrefInput::setData(Preferences * pref) {
setXButton2ClickFunction( pref->mouse_xbutton2_click_function );
setWheelFunction( pref->wheel_function );
setWheelFunctionCycle(pref->wheel_function_cycle);
+ setWheelFunctionSeekingReverse(pref->wheel_function_seeking_reverse);
}
void PrefInput::getData(Preferences * pref) {
@@ -184,6 +185,7 @@ void PrefInput::getData(Preferences * pref) {
pref->mouse_xbutton2_click_function = xButton2ClickFunction();
pref->wheel_function = wheelFunction();
pref->wheel_function_cycle = wheelFunctionCycle();
+ pref->wheel_function_seeking_reverse = wheelFunctionSeekingReverse();
}
/*
@@ -291,6 +293,14 @@ QFlags<Preferences::WheelFunctions> PrefInput::wheelFunctionCycle(){
return out;
}
+void PrefInput::setWheelFunctionSeekingReverse(bool b) {
+ wheel_function_seeking_reverse_check->setChecked(b);
+}
+
+bool PrefInput::wheelFunctionSeekingReverse() {
+ return wheel_function_seeking_reverse_check->isChecked();
+}
+
void PrefInput::createHelp() {
clearHelp();
@@ -341,6 +351,9 @@ void PrefInput::createHelp() {
setWhatsThis(wheel_function_speed, tr("Change speed"),
tr("Check it to enable changing speed as one function.") );
+ setWhatsThis(wheel_function_seeking_reverse_check, tr("Reverse mouse wheel seeking"),
+ tr("Check it to seek in the opposite direction.") );
+
}
#include "moc_prefinput.cpp"