Changeset 163 for smplayer/vendor/current/src/prefsubtitles.cpp
- Timestamp:
- May 15, 2014, 7:53:54 PM (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
smplayer/vendor/current/src/prefsubtitles.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 … … 40 40 connect( style_border_style_combo, SIGNAL(currentIndexChanged(int)), 41 41 this, SLOT(checkBorderStyleCombo(int)) ); 42 43 #ifndef Q_OS_WIN 44 windowsfontdir_check->hide(); 45 #endif 42 46 43 47 retranslateStrings(); … … 156 160 setForceAssStyles(pref->force_ass_styles); 157 161 setCustomizedAssStyle(pref->user_forced_ass_style); 162 163 #ifdef Q_OS_WIN 164 windowsfontdir_check->setChecked(pref->use_windowsfontdir); 165 if (!windowsfontdir_check->isChecked()) on_windowsfontdir_check_toggled(false); 166 #endif 158 167 } 159 168 … … 199 208 TEST_AND_SET(pref->force_ass_styles, forceAssStyles()); 200 209 TEST_AND_SET(pref->user_forced_ass_style, customizedAssStyle()); 210 211 #ifdef Q_OS_WIN 212 pref->use_windowsfontdir = windowsfontdir_check->isChecked(); 213 #endif 201 214 } 202 215 … … 406 419 } 407 420 421 void PrefSubtitles::on_windowsfontdir_check_toggled(bool b) { 422 qDebug("PrefSubtitles::on_windowsfontdir_check_toggled: %d", b); 423 424 #ifdef Q_OS_WIN 425 if (b) { 426 style_font_combo->setFontsFromDir(QString::null); 427 } else { 428 QString fontdir = Paths::fontPath(); 429 //QString fontdir = "/tmp/fonts/"; 430 style_font_combo->setFontsFromDir(fontdir); 431 } 432 #endif 433 } 434 408 435 void PrefSubtitles::createHelp() { 409 436 clearHelp(); … … 445 472 "<b>Disabling this option could make that subtitles won't work " 446 473 "at all!</b>") ); 474 475 #ifdef Q_OS_WIN 476 setWhatsThis(windowsfontdir_check, tr("Enable Windows fonts"), 477 tr("If this option is enabled the Windows system fonts will be " 478 "available for subtitles. There's an inconvenience: a font cache have " 479 "to be created which can take some time.") +"<br>"+ 480 tr("If this option is not checked then only a few fonts bundled with SMPlayer " 481 "can be used, but this is faster.") ); 482 #endif 447 483 448 484 addSectionTitle(tr("Font"));
Note:
See TracChangeset
for help on using the changeset viewer.