Changeset View
Changeset View
Standalone View
Standalone View
src/settings/startup/startupsettingspage.h
Show All 17 Lines | |||||
18 | ***************************************************************************/ | 18 | ***************************************************************************/ | ||
19 | #ifndef STARTUPSETTINGSPAGE_H | 19 | #ifndef STARTUPSETTINGSPAGE_H | ||
20 | #define STARTUPSETTINGSPAGE_H | 20 | #define STARTUPSETTINGSPAGE_H | ||
21 | 21 | | |||
22 | #include "settings/settingspagebase.h" | 22 | #include "settings/settingspagebase.h" | ||
23 | 23 | | |||
24 | #include <QUrl> | 24 | #include <QUrl> | ||
25 | 25 | | |||
26 | class QLineEdit; | | |||
27 | class QCheckBox; | 26 | class QCheckBox; | ||
27 | class QLineEdit; | ||||
28 | class QRadioButton; | ||||
28 | 29 | | |||
29 | /** | 30 | /** | ||
30 | * @brief Page for the 'Startup' settings of the Dolphin settings dialog. | 31 | * @brief Page for the 'Startup' settings of the Dolphin settings dialog. | ||
31 | * | 32 | * | ||
32 | * The startup settings allow to set the home URL and to configure the | 33 | * 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 | * state of the view mode, split mode and the filter bar when starting Dolphin. | ||
34 | */ | 35 | */ | ||
35 | class StartupSettingsPage : public SettingsPageBase | 36 | class StartupSettingsPage : public SettingsPageBase | ||
36 | { | 37 | { | ||
37 | Q_OBJECT | 38 | Q_OBJECT | ||
38 | 39 | | |||
39 | public: | 40 | public: | ||
40 | StartupSettingsPage(const QUrl& url, QWidget* parent); | 41 | StartupSettingsPage(const QUrl& url, QWidget* parent); | ||
41 | ~StartupSettingsPage() override; | 42 | ~StartupSettingsPage() override; | ||
42 | 43 | | |||
43 | /** @see SettingsPageBase::applySettings() */ | 44 | /** @see SettingsPageBase::applySettings() */ | ||
44 | void applySettings() override; | 45 | void applySettings() override; | ||
45 | 46 | | |||
46 | /** @see SettingsPageBase::restoreDefaults() */ | 47 | /** @see SettingsPageBase::restoreDefaults() */ | ||
47 | void restoreDefaults() override; | 48 | void restoreDefaults() override; | ||
48 | 49 | | |||
49 | private slots: | 50 | private slots: | ||
50 | void slotSettingsChanged(); | 51 | void slotSettingsChanged(); | ||
52 | void updateInitialViewOptions(); | ||||
51 | void selectHomeUrl(); | 53 | void selectHomeUrl(); | ||
52 | void useCurrentLocation(); | 54 | void useCurrentLocation(); | ||
53 | void useDefaultLocation(); | 55 | void useDefaultLocation(); | ||
54 | 56 | | |||
55 | private: | 57 | private: | ||
56 | void loadSettings(); | 58 | void loadSettings(); | ||
57 | 59 | | |||
58 | private: | 60 | private: | ||
59 | QUrl m_url; | 61 | QUrl m_url; | ||
60 | QLineEdit* m_homeUrl; | 62 | QLineEdit* m_homeUrl; | ||
63 | QWidget* m_homeUrlBoxLayoutContainer; | ||||
64 | QWidget* m_buttonBoxLayoutContainer; | ||||
65 | QRadioButton* m_rememberOpenedTabsRadioButton; | ||||
66 | QRadioButton* m_homeUrlRadioButton; | ||||
61 | 67 | | |||
62 | QCheckBox* m_splitView; | 68 | QCheckBox* m_splitView; | ||
63 | QCheckBox* m_editableUrl; | 69 | QCheckBox* m_editableUrl; | ||
64 | QCheckBox* m_showFullPath; | 70 | QCheckBox* m_showFullPath; | ||
65 | QCheckBox* m_filterBar; | 71 | QCheckBox* m_filterBar; | ||
66 | QCheckBox* m_showFullPathInTitlebar; | 72 | QCheckBox* m_showFullPathInTitlebar; | ||
67 | QCheckBox* m_openExternallyCalledFolderInNewTab; | 73 | QCheckBox* m_openExternallyCalledFolderInNewTab; | ||
68 | }; | 74 | }; | ||
69 | 75 | | |||
70 | #endif | 76 | #endif |