summaryrefslogtreecommitdiff
path: root/src/prefplaylist.cpp
diff options
context:
space:
mode:
authorAlessio Treglia <alessio@debian.org>2012-02-16 11:06:56 +0100
committerAlessio Treglia <alessio@debian.org>2012-02-16 11:06:56 +0100
commit1d323e54ee434609cf035598486075c9a918a2d3 (patch)
tree929ad92f19dfbb5492471449f1a6a918ea99c6b8 /src/prefplaylist.cpp
parent99b53d44a60e3e934fc664152c115ae0d6e19920 (diff)
Imported Upstream version 0.6.10
Diffstat (limited to 'src/prefplaylist.cpp')
-rw-r--r--src/prefplaylist.cpp46
1 files changed, 45 insertions, 1 deletions
diff --git a/src/prefplaylist.cpp b/src/prefplaylist.cpp
index d0f9177..d343840 100644
--- a/src/prefplaylist.cpp
+++ b/src/prefplaylist.cpp
@@ -1,5 +1,5 @@
/* smplayer, GUI front-end for mplayer.
- Copyright (C) 2006-2010 Ricardo Villalba <rvm@escomposlinux.org>
+ Copyright (C) 2006-2011 Ricardo Villalba <rvm@escomposlinux.org>
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
@@ -73,6 +73,37 @@ bool PrefPlaylist::addConsecutiveFiles() {
return add_consecutive_files_check->isChecked();
}
+void PrefPlaylist::setDirectoryRecursion(bool b) {
+ recursive_check->setChecked(b);
+}
+
+bool PrefPlaylist::directoryRecursion() {
+ return recursive_check->isChecked();
+}
+
+void PrefPlaylist::setAutoGetInfo(bool b) {
+ getinfo_check->setChecked(b);
+}
+
+bool PrefPlaylist::autoGetInfo() {
+ return getinfo_check->isChecked();
+}
+
+void PrefPlaylist::setSavePlaylistOnExit(bool b) {
+ autosave_on_exit_check->setChecked(b);
+}
+
+bool PrefPlaylist::savePlaylistOnExit() {
+ return autosave_on_exit_check->isChecked();
+}
+
+void PrefPlaylist::setPlayFilesFromStart(bool b) {
+ play_from_start_check->setChecked(b);
+}
+
+bool PrefPlaylist::playFilesFromStart() {
+ return play_from_start_check->isChecked();
+}
void PrefPlaylist::createHelp() {
clearHelp();
@@ -87,6 +118,19 @@ void PrefPlaylist::createHelp() {
tr("If this option is enabled, SMPlayer will look for consecutive "
"files (e.g. video_1.avi, video_2.avi...) and if found, they'll be "
"added to the playlist.") );
+
+ setWhatsThis(recursive_check, tr("Add files in directories recursively"),
+ tr("Check this option if you want that adding a directory will also "
+ "add the files in subdirectories recursively. Otherwise only the "
+ "files in the selected directory will be added."));
+
+ setWhatsThis(getinfo_check, tr("Add info automatically about files added"),
+ tr("Check this option to inquire the files to be added to the playlist "
+ "for some info. That allows to show the title name (if available) and "
+ "length of the files. Otherwise this info won't be available until "
+ "the file is actually played. Beware: this option can be slow, "
+ "specially if you add many files."));
+
}
#include "moc_prefplaylist.cpp"