Changeset 121 for smplayer/vendor/current/src/prefinterface.cpp
- Timestamp:
- Mar 15, 2012, 5:14:10 PM (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
smplayer/vendor/current/src/prefinterface.cpp
r118 r121 1 1 /* smplayer, GUI front-end for mplayer. 2 Copyright (C) 2006-201 1 Ricardo Villalba <rvm@escomposlinux.org>2 Copyright (C) 2006-2012 Ricardo Villalba <rvm@users.sourceforge.net> 3 3 4 4 This program is free software; you can redistribute it and/or modify … … 29 29 #include <QStyleFactory> 30 30 #include <QFontDialog> 31 32 #define SINGLE_INSTANCE_TAB 2 31 33 32 34 PrefInterface::PrefInterface(QWidget * parent, Qt::WindowFlags f) … … 84 86 85 87 QPixmap PrefInterface::sectionIcon() { 86 return Images::icon("pref_gui" );88 return Images::icon("pref_gui", 22); 87 89 } 88 90 … … 181 183 setUpdateWhileDragging(pref->update_while_seeking); 182 184 setRelativeSeeking(pref->relative_seeking); 185 setPreciseSeeking(pref->precise_seeking); 183 186 184 187 setDefaultFont(pref->default_font); 188 189 setHideVideoOnAudioFiles(pref->hide_video_window_on_audio_files); 185 190 186 191 #if STYLE_SWITCHING … … 244 249 pref->update_while_seeking = updateWhileDragging(); 245 250 pref->relative_seeking= relativeSeeking(); 251 pref->precise_seeking = preciseSeeking(); 246 252 247 253 pref->default_font = defaultFont(); 254 255 pref->hide_video_window_on_audio_files = hideVideoOnAudioFiles(); 248 256 249 257 #if STYLE_SWITCHING … … 366 374 } 367 375 376 void PrefInterface::setSingleInstanceTabEnabled(bool b) { 377 tabWidget->setTabEnabled(SINGLE_INSTANCE_TAB, b); 378 } 379 380 bool PrefInterface::singleInstanceTabEnabled() { 381 return tabWidget->isTabEnabled(SINGLE_INSTANCE_TAB); 382 } 383 368 384 void PrefInterface::setRecentsMaxItems(int n) { 369 385 recents_max_items_spin->setValue(n); … … 426 442 } 427 443 444 void PrefInterface::setPreciseSeeking(bool b) { 445 precise_seeking_check->setChecked(b); 446 } 447 448 bool PrefInterface::preciseSeeking() { 449 return precise_seeking_check->isChecked(); 450 } 451 428 452 void PrefInterface::setDefaultFont(QString font_desc) { 429 453 default_font_edit->setText(font_desc); … … 456 480 } 457 481 482 void PrefInterface::setHideVideoOnAudioFiles(bool b) { 483 hide_video_window_on_audio_check->setChecked(b); 484 } 485 486 bool PrefInterface::hideVideoOnAudioFiles() { 487 return hide_video_window_on_audio_check->isChecked(); 488 } 489 458 490 // Floating tab 459 491 void PrefInterface::setFloatingAnimated(bool b) { … … 511 543 tr("If you check this option, the position and size of the main " 512 544 "window will be saved and restored when you run SMPlayer again.") ); 545 546 setWhatsThis(hide_video_window_on_audio_check, tr("Hide video window when playing audio files"), 547 tr("If this option is enabled the video window will be hidden when playing audio files.") ); 513 548 514 549 setWhatsThis(recents_max_items_spin, tr("Recent files"), … … 565 600 "relative seeking may work better with files with a wrong length.") ); 566 601 602 setWhatsThis(precise_seeking_check, tr("Precise seeking"), 603 tr("If this option is enabled, seeks are more accurate but they " 604 "can be a little bit slower. May not work with some video formats.") +"<br>"+ 605 tr("Note: this option only works with MPlayer2") ); 606 567 607 addSectionTitle(tr("Instances")); 568 608
Note:
See TracChangeset
for help on using the changeset viewer.