mirror of
https://github.com/RetroShare/RetroShare.git
synced 2024-10-01 02:35:48 -04:00
87344de7d4
git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@1850 b45a01b8-16f6-495d-af2f-9b41ad6348cc
83 lines
2.6 KiB
C++
83 lines
2.6 KiB
C++
/* smplayer, GUI front-end for mplayer.
|
|
Copyright (C) 2006-2008 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
|
|
the Free Software Foundation; either version 2 of the License, or
|
|
(at your option) any later version.
|
|
|
|
This program is distributed in the hope that it will be useful,
|
|
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
GNU General Public License for more details.
|
|
|
|
You should have received a copy of the GNU General Public License
|
|
along with this program; if not, write to the Free Software
|
|
Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
|
|
*/
|
|
|
|
#include "playlistpreferences.h"
|
|
|
|
PlaylistPreferences::PlaylistPreferences( QWidget* parent, Qt::WindowFlags f )
|
|
: QDialog(parent, f)
|
|
{
|
|
setupUi(this);
|
|
//setSizePolicy(QSizePolicy::Expanding, QSizePolicy::Minimum);
|
|
layout()->setSizeConstraint(QLayout::SetFixedSize);
|
|
//adjustSize();
|
|
|
|
recursive_check->setWhatsThis(
|
|
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."));
|
|
|
|
getinfo_check->setWhatsThis(
|
|
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."));
|
|
}
|
|
|
|
PlaylistPreferences::~PlaylistPreferences() {
|
|
}
|
|
|
|
void PlaylistPreferences::setDirectoryRecursion(bool b) {
|
|
recursive_check->setChecked(b);
|
|
}
|
|
|
|
bool PlaylistPreferences::directoryRecursion() {
|
|
return recursive_check->isChecked();
|
|
}
|
|
|
|
void PlaylistPreferences::setAutoGetInfo(bool b) {
|
|
getinfo_check->setChecked(b);
|
|
}
|
|
|
|
bool PlaylistPreferences::autoGetInfo() {
|
|
return getinfo_check->isChecked();
|
|
}
|
|
|
|
void PlaylistPreferences::setSavePlaylistOnExit(bool b) {
|
|
autosave_on_exit_check->setChecked(b);
|
|
}
|
|
|
|
bool PlaylistPreferences::savePlaylistOnExit() {
|
|
return autosave_on_exit_check->isChecked();
|
|
}
|
|
|
|
void PlaylistPreferences::setPlayFilesFromStart(bool b) {
|
|
play_from_start_check->setChecked(b);
|
|
}
|
|
|
|
bool PlaylistPreferences::playFilesFromStart() {
|
|
return play_from_start_check->isChecked();
|
|
}
|
|
|
|
QSize PlaylistPreferences::sizeHint () const {
|
|
return QSize(580,200);
|
|
}
|
|
|
|
#include "moc_playlistpreferences.cpp"
|
|
|