Ignore:
Timestamp:
May 3, 2016, 2:14:41 PM (9 years ago)
Author:
Silvan Scherrer
Message:

smplayer: update vendor to version 16.4

File:
1 edited

Legend:

Unmodified
Added
Removed
  • smplayer/vendor/current/src/prefinput.cpp

    r163 r175  
    11/*  smplayer, GUI front-end for mplayer.
    2     Copyright (C) 2006-2014 Ricardo Villalba <rvm@users.sourceforge.net>
     2    Copyright (C) 2006-2016 Ricardo Villalba <rvm@users.sourceforge.net>
    33
    44    This program is free software; you can redistribute it and/or modify
     
    8080        left_click_combo->addItem( tr("Preferences"), "show_preferences" );
    8181        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" );
    8284        left_click_combo->addItem( tr("Show video equalizer"), "video_equalizer" );
    8385        left_click_combo->addItem( tr("Show audio equalizer"), "audio_equalizer" );
     
    152154        wheel_function_speed->setText( tr("&Change speed") );
    153155
     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
    154165#if !USE_SHORTCUTGETTER
    155166        actioneditor_desc->setText(
     
    174185        setWheelFunctionSeekingReverse(pref->wheel_function_seeking_reverse);
    175186        delay_left_check->setChecked(pref->delay_left_click);
     187
     188        setDragFunction(pref->drag_function);
    176189}
    177190
     
    189202        pref->wheel_function_seeking_reverse = wheelFunctionSeekingReverse();
    190203        pref->delay_left_click = delay_left_check->isChecked();
     204
     205        pref->drag_function = dragFunction();
    191206}
    192207
     
    304319}
    305320
     321void 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
     327int PrefInput::dragFunction() {
     328        return drag_function_combo->itemData(drag_function_combo->currentIndex()).toInt();
     329}
     330
    306331void PrefInput::createHelp() {
    307332        clearHelp();
     
    340365                tr("Select the action for the mouse wheel.") );
    341366
     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
    342376        setWhatsThis(delay_left_check, tr("Don't trigger the left click function with a double click"),
    343377                tr("If this option is enabled when you double click on the "
Note: See TracChangeset for help on using the changeset viewer.