Changeset 175 for smplayer/vendor/current/src/prefinput.cpp
- Timestamp:
- May 3, 2016, 2:14:41 PM (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
smplayer/vendor/current/src/prefinput.cpp
r163 r175 1 1 /* smplayer, GUI front-end for mplayer. 2 Copyright (C) 2006-201 4Ricardo Villalba <rvm@users.sourceforge.net>2 Copyright (C) 2006-2016 Ricardo Villalba <rvm@users.sourceforge.net> 3 3 4 4 This program is free software; you can redistribute it and/or modify … … 80 80 left_click_combo->addItem( tr("Preferences"), "show_preferences" ); 81 81 left_click_combo->addItem( tr("Double size"), "toggle_double_size" ); 82 left_click_combo->addItem( tr("Next chapter"), "next_chapter" ); 83 left_click_combo->addItem( tr("Previous chapter"), "prev_chapter" ); 82 84 left_click_combo->addItem( tr("Show video equalizer"), "video_equalizer" ); 83 85 left_click_combo->addItem( tr("Show audio equalizer"), "audio_equalizer" ); … … 152 154 wheel_function_speed->setText( tr("&Change speed") ); 153 155 156 int drag_function = drag_function_combo->currentIndex(); 157 drag_function_combo->clear(); 158 drag_function_combo->addItem( tr("None"), Preferences::DragDisabled); 159 drag_function_combo->addItem( tr("Move window"), Preferences::MoveWindow); 160 #ifdef MOUSE_GESTURES 161 drag_function_combo->addItem( tr("Seek and volume"), Preferences::Gestures); 162 #endif 163 drag_function_combo->setCurrentIndex(drag_function); 164 154 165 #if !USE_SHORTCUTGETTER 155 166 actioneditor_desc->setText( … … 174 185 setWheelFunctionSeekingReverse(pref->wheel_function_seeking_reverse); 175 186 delay_left_check->setChecked(pref->delay_left_click); 187 188 setDragFunction(pref->drag_function); 176 189 } 177 190 … … 189 202 pref->wheel_function_seeking_reverse = wheelFunctionSeekingReverse(); 190 203 pref->delay_left_click = delay_left_check->isChecked(); 204 205 pref->drag_function = dragFunction(); 191 206 } 192 207 … … 304 319 } 305 320 321 void PrefInput::setDragFunction(int function) { 322 int d = drag_function_combo->findData(function); 323 if (d < 0) d = 0; 324 drag_function_combo->setCurrentIndex( d ); 325 } 326 327 int PrefInput::dragFunction() { 328 return drag_function_combo->itemData(drag_function_combo->currentIndex()).toInt(); 329 } 330 306 331 void PrefInput::createHelp() { 307 332 clearHelp(); … … 340 365 tr("Select the action for the mouse wheel.") ); 341 366 367 setWhatsThis(drag_function_combo, tr("Drag function"), 368 tr("This option controls what to do when the mouse is moved while pressing the left button.") + "<br>" + 369 "<b>" + tr("Move window") + "</b>:" + tr("the main window is moved") + "<br>" 370 #ifdef MOUSE_GESTURES 371 + "<b>" + tr("Seek and volume") + "</b>:" + 372 tr("a horizontal movement changes the time position while a vertical movement changes the volume") 373 #endif 374 ); 375 342 376 setWhatsThis(delay_left_check, tr("Don't trigger the left click function with a double click"), 343 377 tr("If this option is enabled when you double click on the "
Note:
See TracChangeset
for help on using the changeset viewer.