Ignore:
Timestamp:
May 15, 2014, 7:53:54 PM (11 years ago)
Author:
Silvan Scherrer
Message:

SMPlayer: update vendor to 0.8.7

File:
1 edited

Legend:

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

    r140 r163  
    11/*  smplayer, GUI front-end for mplayer.
    2     Copyright (C) 2006-2013 Ricardo Villalba <rvm@users.sourceforge.net>
     2    Copyright (C) 2006-2014 Ricardo Villalba <rvm@users.sourceforge.net>
    33
    44    This program is free software; you can redistribute it and/or modify
     
    2525#include "recents.h"
    2626#include "urlhistory.h"
     27#include "autohidewidget.h"
    2728
    2829#include <QDir>
     
    109110#endif
    110111
    111 #ifdef Q_OS_WIN
    112         floating_bypass_wm_check->hide();
    113 #endif
    114 
    115112#ifndef SEEKBAR_RESOLUTION
    116113        seeking_method_group->hide();
     
    205202        int gui_index = gui_combo->currentIndex();
    206203        gui_combo->clear();
    207         gui_combo->addItem( tr("Default GUI"), "DefaultGUI");
     204        gui_combo->addItem( tr("Basic GUI"), "DefaultGUI");
    208205        gui_combo->addItem( tr("Mini GUI"), "MiniGUI");
     206#ifdef MPCGUI
    209207        gui_combo->addItem( tr("Mpc GUI"), "MpcGUI");
     208#endif
    210209#ifdef SKINS
    211210        gui_combo->addItem( tr("Skinnable GUI"), "SkinGUI");
     
    262261        setFloatingMargin(pref->floating_control_margin);
    263262        setDisplayFloatingInCompactMode(pref->floating_display_in_compact_mode);
    264 #ifndef Q_OS_WIN
    265         setFloatingBypassWindowManager(pref->bypass_window_manager);
    266 #endif
     263        floating_move_bottom_check->setChecked(pref->floating_activation_area == AutohideWidget::Bottom);
     264        floating_hide_delay_spin->setValue(pref->floating_hide_delay);
    267265
    268266        setRecentsMaxItems(pref->history_recents->maxItems());
     
    332330        pref->floating_control_margin = floatingMargin();
    333331        pref->floating_display_in_compact_mode = displayFloatingInCompactMode();
    334 #ifndef Q_OS_WIN
    335         pref->bypass_window_manager = floatingBypassWindowManager();
    336 #endif
     332        pref->floating_activation_area = floating_move_bottom_check->isChecked() ? AutohideWidget::Bottom : AutohideWidget::Anywhere;
     333        pref->floating_hide_delay = floating_hide_delay_spin->value();
    337334
    338335        if (pref->history_recents->maxItems() != recentsMaxItems()) {
     
    618615}
    619616
    620 #ifndef Q_OS_WIN
    621 void PrefInterface::setFloatingBypassWindowManager(bool b) {
    622         floating_bypass_wm_check->setChecked(b);
    623 }
    624 
    625 bool PrefInterface::floatingBypassWindowManager() {
    626         return floating_bypass_wm_check->isChecked();
    627 }
    628 #endif
    629 
    630617void PrefInterface::setRecentsMaxItems(int n) {
    631618        recents_max_items_spin->setValue(n);
     
    675662
    676663        setWhatsThis(gui_combo, tr("GUI"),
    677         tr("Select the GUI you prefer for the application. Currently "
    678            "there are two available: Default GUI and Mini GUI.<br>"
    679            "The <b>Default GUI</b> provides the traditional GUI, with the "
    680            "toolbar and control bar. The <b>Mini GUI</b> provides a "
    681            "more simple GUI, without toolbar and a control bar with few "
    682            "buttons.") );
     664        tr("Select the graphic interface you prefer for the application.") +"<br>"+
     665        tr("The <b>Basic GUI</b> provides the traditional interface, with the "
     666           "toolbar and control bar.") +" "+
     667        tr("The <b>Mini GUI</b> provides a more simple interface, without toolbar and a control bar with few "
     668           "buttons.") +" "+
     669        tr("The <b>Skinnable GUI</b> provides an interface where several skins are available.")
     670#ifdef MPCGUI
     671        +" "+
     672        tr("The <b>Mpc GUI</b> looks like the interface in Media Player Classic.")
     673#endif
     674        );
    683675
    684676        setWhatsThis(iconset_combo, tr("Icon set"),
     
    761753           "visible.") );
    762754
     755        setWhatsThis(floating_move_bottom_check, tr("Show only when moving the mouse to the bottom of the screen"),
     756                tr("If this option is checked, the floating control will only be displayed when the mouse is moved "
     757           "to the bottom of the screen. Otherwise the control will appear whenever the mouse is moved, no matter "
     758           "its position.") );
     759
    763760        setWhatsThis(floating_compact_check, tr("Display in compact mode too"),
    764761                tr("If this option is enabled, the floating control will appear "
    765            "in compact mode too. <b>Warning:</b> the floating control has not been "
     762           "in compact mode too.") +" " +
     763                tr("This option only works with the basic GUI.") +" "+
     764                tr("<b>Warning:</b> the floating control has not been "
    766765           "designed for compact mode and it might not work properly.") );
    767766
    768 #ifndef Q_OS_WIN
    769         setWhatsThis(floating_bypass_wm_check, tr("Bypass window manager"),
    770                 tr("If this option is checked, the control is displayed bypassing the "
    771            "window manager. Disable this option if the floating control "
    772            "doesn't work well with your window manager.") );
    773 #endif
     767        setWhatsThis(floating_hide_delay_spin, tr("Time to hide the control"),
     768                tr("Sets the time (in milliseconds) to hide the control after the mouse went away from the control."));
    774769
    775770        addSectionTitle(tr("Privacy"));
Note: See TracChangeset for help on using the changeset viewer.