]> cloud.milkyroute.net Git - dolphin.git/blob - src/settings/startup/startupsettingspage.h
a5e0b236f415f7551da914074e80511188bfdd66
[dolphin.git] / src / settings / startup / startupsettingspage.h
1 /***************************************************************************
2 * Copyright (C) 2008 by Peter Penz <peter.penz19@gmail.com> *
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 #ifndef STARTUPSETTINGSPAGE_H
20 #define STARTUPSETTINGSPAGE_H
21
22 #include "settings/settingspagebase.h"
23
24 #include <QUrl>
25
26 class QLineEdit;
27 class QCheckBox;
28
29 /**
30 * @brief Page for the 'Startup' settings of the Dolphin settings dialog.
31 *
32 * The startup settings allow to set the home URL and to configure the
33 * state of the view mode, split mode and the filter bar when starting Dolphin.
34 */
35 class StartupSettingsPage : public SettingsPageBase
36 {
37 Q_OBJECT
38
39 public:
40 StartupSettingsPage(const QUrl& url, QWidget* parent);
41 ~StartupSettingsPage() override;
42
43 /** @see SettingsPageBase::applySettings() */
44 void applySettings() override;
45
46 /** @see SettingsPageBase::restoreDefaults() */
47 void restoreDefaults() override;
48
49 private slots:
50 void slotSettingsChanged();
51 void selectHomeUrl();
52 void useCurrentLocation();
53 void useDefaultLocation();
54
55 private:
56 void loadSettings();
57
58 private:
59 QUrl m_url;
60 QLineEdit* m_homeUrl;
61
62 QCheckBox* m_splitView;
63 QCheckBox* m_editableUrl;
64 QCheckBox* m_showFullPath;
65 QCheckBox* m_filterBar;
66 QCheckBox* m_showFullPathInTitlebar;
67 QCheckBox* m_openExternallyCalledFolderInNewTab;
68 };
69
70 #endif