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/prefdrives.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
     
    5656#endif
    5757
     58#ifndef BLURAY_SUPPORT
     59        bluray_widget->hide();
     60        bluray_sep->hide();
     61#endif
     62
    5863        updateDriveCombos();
    5964
     
    7984        cdrom_drive_icon->setPixmap( Images::icon("cdrom_drive") );
    8085        dvd_drive_icon->setPixmap( Images::icon("dvd_drive") );
     86#ifdef BLURAY_SUPPORT
     87        bluray_drive_icon->setPixmap( Images::icon("bluray_drive") );
     88#endif
    8189
    8290        createHelp();
     
    8997        QString current_dvd_device = dvdDevice();
    9098        QString current_cd_device = cdromDevice();
     99#ifdef BLURAY_SUPPORT
     100        QString current_bluray_device = blurayDevice();
     101#endif
    91102
    92103        dvd_device_combo->clear();
    93104        cdrom_device_combo->clear();
     105#ifdef BLURAY_SUPPORT
     106        bluray_device_combo->clear();
     107#endif
    94108
    95109        // DVD device combo
     
    105119                        dvd_device_combo->addItem( s );
    106120                        cdrom_device_combo->addItem( s );
     121                        #ifdef BLURAY_SUPPORT
     122                        bluray_device_combo->addItem( s );
     123                        #endif
    107124                }
    108125        }
     
    116133                dvd_device_combo->addItem(device_name);
    117134                cdrom_device_combo->addItem(device_name);
     135                #ifdef BLURAY_SUPPORT
     136                bluray_device_combo->addItem(device_name);
     137                #endif
    118138        }
    119139#endif
     
    122142        setDVDDevice( current_dvd_device );
    123143        setCDRomDevice( current_cd_device );
     144#ifdef BLURAY_SUPPORT
     145        setBlurayDevice( current_bluray_device );
     146#endif
    124147}
    125148
     
    127150        setDVDDevice( pref->dvd_device );
    128151        setCDRomDevice( pref->cdrom_device );
     152#ifdef BLURAY_SUPPORT
     153        setBlurayDevice( pref->bluray_device );
     154#endif
    129155
    130156#if DVDNAV_SUPPORT
     
    138164        pref->dvd_device = dvdDevice();
    139165        pref->cdrom_device = cdromDevice();
     166#ifdef BLURAY_SUPPORT
     167        pref->bluray_device = blurayDevice();
     168#endif
    140169
    141170#if DVDNAV_SUPPORT
     
    151180        return dvd_device_combo->currentText();
    152181}
     182
     183#ifdef BLURAY_SUPPORT
     184void PrefDrives::setBlurayDevice( QString dir ) {
     185        bluray_device_combo->setCurrentText( dir );
     186}
     187
     188QString PrefDrives::blurayDevice() {
     189        return bluray_device_combo->currentText();
     190}
     191#endif
    153192
    154193void PrefDrives::setCDRomDevice( QString dir ) {
     
    187226#if DVDNAV_SUPPORT
    188227        setWhatsThis(use_dvdnav_check, tr("Enable DVD menus"),
    189                 tr("If this option is checked, smplayer will play DVDs using "
    190            "dvdnav. Requires a recent version of mplayer compiled with dvdnav "
     228                tr("If this option is checked, SMPlayer will play DVDs using "
     229           "dvdnav. Requires a recent version of MPlayer compiled with dvdnav "
    191230           "support.") +"<br>" +
    192231        tr("<b>Note 1</b>: cache will be disabled, this can affect performance.") +"<br>"+
     
    196235           "issues with it."));
    197236#endif
     237
     238#ifdef BLURAY_SUPPORT
     239        setWhatsThis(bluray_device_combo, tr("Blu-ray device"),
     240                tr("Choose your Blu-ray device. It will be used to play Blu-ray discs.") );
     241#endif
    198242}
    199243
Note: See TracChangeset for help on using the changeset viewer.