]> cloud.milkyroute.net Git - dolphin.git/blob - src/detailsviewsettingspage.h
Added Rafael López's item categorizer into Dolphin (it's currently deactivated in...
[dolphin.git] / src / detailsviewsettingspage.h
1 /***************************************************************************
2 * Copyright (C) 2006 by Peter Penz <peter.penz@gmx.at> *
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 *
16 * Free Software Foundation, Inc., *
17 * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA *
18 ***************************************************************************/
19
20 #ifndef DETAILSVIEWSETTINGSPAGE_H
21 #define DETAILSVIEWSETTINGSPAGE_H
22
23 #include <kvbox.h>
24
25 class DolphinMainWindow;
26 class KFontRequester;
27 class QCheckBox;
28 class QSpinBox;
29 class QComboBox;
30 class QRadioButton;
31
32 /**
33 * @brief Represents the page from the Dolphin Settings which allows
34 * to modify the settings for the details view.
35 */
36 class DetailsViewSettingsPage : public KVBox
37 {
38 Q_OBJECT
39
40 public:
41 DetailsViewSettingsPage(DolphinMainWindow* mainWindow, QWidget* parent);
42 virtual ~DetailsViewSettingsPage();
43
44 /**
45 * Applies the settings for the details view.
46 * The settings are persisted automatically when
47 * closing Dolphin.
48 */
49 void applySettings();
50
51 private:
52 DolphinMainWindow* m_mainWindow;
53 QCheckBox* m_dateBox;
54 QCheckBox* m_permissionsBox;
55 QCheckBox* m_ownerBox;
56 QCheckBox* m_groupBox;
57 QRadioButton* m_smallIconSize;
58 QRadioButton* m_mediumIconSize;
59 QRadioButton* m_largeIconSize;
60 KFontRequester* m_fontRequester;
61 };
62
63 #endif