Changeset 163 for smplayer/vendor/current/src/prefdrives.cpp
- Timestamp:
- May 15, 2014, 7:53:54 PM (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
smplayer/vendor/current/src/prefdrives.cpp
r140 r163 1 1 /* smplayer, GUI front-end for mplayer. 2 Copyright (C) 2006-201 3Ricardo Villalba <rvm@users.sourceforge.net>2 Copyright (C) 2006-2014 Ricardo Villalba <rvm@users.sourceforge.net> 3 3 4 4 This program is free software; you can redistribute it and/or modify … … 56 56 #endif 57 57 58 #ifndef BLURAY_SUPPORT 59 bluray_widget->hide(); 60 bluray_sep->hide(); 61 #endif 62 58 63 updateDriveCombos(); 59 64 … … 79 84 cdrom_drive_icon->setPixmap( Images::icon("cdrom_drive") ); 80 85 dvd_drive_icon->setPixmap( Images::icon("dvd_drive") ); 86 #ifdef BLURAY_SUPPORT 87 bluray_drive_icon->setPixmap( Images::icon("bluray_drive") ); 88 #endif 81 89 82 90 createHelp(); … … 89 97 QString current_dvd_device = dvdDevice(); 90 98 QString current_cd_device = cdromDevice(); 99 #ifdef BLURAY_SUPPORT 100 QString current_bluray_device = blurayDevice(); 101 #endif 91 102 92 103 dvd_device_combo->clear(); 93 104 cdrom_device_combo->clear(); 105 #ifdef BLURAY_SUPPORT 106 bluray_device_combo->clear(); 107 #endif 94 108 95 109 // DVD device combo … … 105 119 dvd_device_combo->addItem( s ); 106 120 cdrom_device_combo->addItem( s ); 121 #ifdef BLURAY_SUPPORT 122 bluray_device_combo->addItem( s ); 123 #endif 107 124 } 108 125 } … … 116 133 dvd_device_combo->addItem(device_name); 117 134 cdrom_device_combo->addItem(device_name); 135 #ifdef BLURAY_SUPPORT 136 bluray_device_combo->addItem(device_name); 137 #endif 118 138 } 119 139 #endif … … 122 142 setDVDDevice( current_dvd_device ); 123 143 setCDRomDevice( current_cd_device ); 144 #ifdef BLURAY_SUPPORT 145 setBlurayDevice( current_bluray_device ); 146 #endif 124 147 } 125 148 … … 127 150 setDVDDevice( pref->dvd_device ); 128 151 setCDRomDevice( pref->cdrom_device ); 152 #ifdef BLURAY_SUPPORT 153 setBlurayDevice( pref->bluray_device ); 154 #endif 129 155 130 156 #if DVDNAV_SUPPORT … … 138 164 pref->dvd_device = dvdDevice(); 139 165 pref->cdrom_device = cdromDevice(); 166 #ifdef BLURAY_SUPPORT 167 pref->bluray_device = blurayDevice(); 168 #endif 140 169 141 170 #if DVDNAV_SUPPORT … … 151 180 return dvd_device_combo->currentText(); 152 181 } 182 183 #ifdef BLURAY_SUPPORT 184 void PrefDrives::setBlurayDevice( QString dir ) { 185 bluray_device_combo->setCurrentText( dir ); 186 } 187 188 QString PrefDrives::blurayDevice() { 189 return bluray_device_combo->currentText(); 190 } 191 #endif 153 192 154 193 void PrefDrives::setCDRomDevice( QString dir ) { … … 187 226 #if DVDNAV_SUPPORT 188 227 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 " 191 230 "support.") +"<br>" + 192 231 tr("<b>Note 1</b>: cache will be disabled, this can affect performance.") +"<br>"+ … … 196 235 "issues with it.")); 197 236 #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 198 242 } 199 243
Note:
See TracChangeset
for help on using the changeset viewer.