Changeset 175 for smplayer/vendor/current/src/prefplaylist.cpp
- Timestamp:
- May 3, 2016, 2:14:41 PM (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
TabularUnified smplayer/vendor/current/src/prefplaylist.cpp ¶
r163 r175 1 1 /* smplayer, GUI front-end for mplayer. 2 Copyright (C) 2006-201 4Ricardo Villalba <rvm@users.sourceforge.net>2 Copyright (C) 2006-2016 Ricardo Villalba <rvm@users.sourceforge.net> 3 3 4 4 This program is free software; you can redistribute it and/or modify … … 25 25 { 26 26 setupUi(this); 27 28 media_to_add_combo->addItem(tr("None"), Preferences::NoFiles); 29 media_to_add_combo->addItem(tr("Video files"), Preferences::VideoFiles); 30 media_to_add_combo->addItem(tr("Audio files"), Preferences::AudioFiles); 31 media_to_add_combo->addItem(tr("Video and audio files"), Preferences::MultimediaFiles); 32 media_to_add_combo->addItem(tr("Consecutive files"), Preferences::ConsecutiveFiles); 33 34 createHelp(); 27 retranslateStrings(); 35 28 } 36 29 … … 49 42 void PrefPlaylist::retranslateStrings() { 50 43 retranslateUi(this); 44 45 int index = media_to_add_combo->currentIndex(); 46 media_to_add_combo->clear(); 47 media_to_add_combo->addItem(tr("None"), Preferences::NoFiles); 48 media_to_add_combo->addItem(tr("Video files"), Preferences::VideoFiles); 49 media_to_add_combo->addItem(tr("Audio files"), Preferences::AudioFiles); 50 media_to_add_combo->addItem(tr("Video and audio files"), Preferences::MultimediaFiles); 51 media_to_add_combo->addItem(tr("Consecutive files"), Preferences::ConsecutiveFiles); 52 media_to_add_combo->setCurrentIndex(index); 53 51 54 createHelp(); 52 55 } … … 114 117 } 115 118 119 void PrefPlaylist::setIgnorePlayerErrors(bool b) { 120 ignore_errors_check->setChecked(b); 121 } 122 123 bool PrefPlaylist::ignorePlayerErrors() { 124 return ignore_errors_check->isChecked(); 125 } 126 116 127 void PrefPlaylist::createHelp() { 117 128 clearHelp(); … … 152 163 "in the smplayer configuration when smplayer is closed, and it will " 153 164 "reloaded automatically when smplayer is run again.")); 165 166 setWhatsThis(ignore_errors_check, tr("Play next file even if the previous file failed"), 167 tr("If this option is enabled, the playlist will ignore playback errors from a previous file " 168 "and will play the next file in the list.") ); 154 169 } 155 170
Note:
See TracChangeset
for help on using the changeset viewer.