source: smplayer/vendor/0.6.9/src/playlistpreferences.cpp@ 137

Last change on this file since 137 was 90, checked in by Silvan Scherrer, 16 years ago

smplayer: import 0.6.9

File size: 2.6 KB
Line 
1/* smplayer, GUI front-end for mplayer.
2 Copyright (C) 2006-2010 Ricardo Villalba <[email protected]>
3
4 This program is free software; you can redistribute it and/or modify
5 it under the terms of the GNU General Public License as published by
6 the Free Software Foundation; either version 2 of the License, or
7 (at your option) any later version.
8
9 This program is distributed in the hope that it will be useful,
10 but WITHOUT ANY WARRANTY; without even the implied warranty of
11 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12 GNU General Public License for more details.
13
14 You should have received a copy of the GNU General Public License
15 along with this program; if not, write to the Free Software
16 Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
17*/
18
19#include "playlistpreferences.h"
20
21PlaylistPreferences::PlaylistPreferences( QWidget* parent, Qt::WindowFlags f )
22 : QDialog(parent, f)
23{
24 setupUi(this);
25 //setSizePolicy(QSizePolicy::Expanding, QSizePolicy::Minimum);
26 layout()->setSizeConstraint(QLayout::SetFixedSize);
27 //adjustSize();
28
29 recursive_check->setWhatsThis(
30 tr("Check this option if you want that adding a directory will also "
31 "add the files in subdirectories recursively. Otherwise only the "
32 "files in the selected directory will be added."));
33
34 getinfo_check->setWhatsThis(
35 tr("Check this option to inquire the files to be added to the playlist "
36 "for some info. That allows to show the title name (if available) and "
37 "length of the files. Otherwise this info won't be available until "
38 "the file is actually played. Beware: this option can be slow, "
39 "specially if you add many files."));
40}
41
42PlaylistPreferences::~PlaylistPreferences() {
43}
44
45void PlaylistPreferences::setDirectoryRecursion(bool b) {
46 recursive_check->setChecked(b);
47}
48
49bool PlaylistPreferences::directoryRecursion() {
50 return recursive_check->isChecked();
51}
52
53void PlaylistPreferences::setAutoGetInfo(bool b) {
54 getinfo_check->setChecked(b);
55}
56
57bool PlaylistPreferences::autoGetInfo() {
58 return getinfo_check->isChecked();
59}
60
61void PlaylistPreferences::setSavePlaylistOnExit(bool b) {
62 autosave_on_exit_check->setChecked(b);
63}
64
65bool PlaylistPreferences::savePlaylistOnExit() {
66 return autosave_on_exit_check->isChecked();
67}
68
69void PlaylistPreferences::setPlayFilesFromStart(bool b) {
70 play_from_start_check->setChecked(b);
71}
72
73bool PlaylistPreferences::playFilesFromStart() {
74 return play_from_start_check->isChecked();
75}
76
77QSize PlaylistPreferences::sizeHint () const {
78 return QSize(580,200);
79}
80
81#include "moc_playlistpreferences.cpp"
82
Note: See TracBrowser for help on using the repository browser.