Changeset View
Changeset View
Standalone View
Standalone View
src/settings/startup/startupsettingspage.h
Show All 19 Lines | |||||
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; | 26 | class QLineEdit; | ||
27 | class QCheckBox; | 27 | class QCheckBox; | ||
28 | class QFormLayout; | ||||
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 | ||
Show All 9 Lines | 40 | public: | |||
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(); | ||
51 | void selectHomeUrl(); | 52 | void selectHomeUrl(); | ||
52 | void useCurrentLocation(); | 53 | void useCurrentLocation(); | ||
53 | void useDefaultLocation(); | | |||
54 | 54 | | |||
55 | private: | 55 | private: | ||
56 | void loadSettings(); | 56 | void loadSettings(); | ||
57 | 57 | | |||
58 | private: | 58 | private: | ||
59 | QUrl m_url; | 59 | QUrl m_url; | ||
60 | QLineEdit* m_homeUrl; | 60 | QLineEdit* m_homeUrl; | ||
61 | 61 | | |||
62 | QCheckBox* m_splitView; | 62 | QCheckBox* m_splitView; | ||
63 | QCheckBox* m_editableUrl; | 63 | QCheckBox* m_editableUrl; | ||
64 | QCheckBox* m_showFullPath; | 64 | QCheckBox* m_showFullPath; | ||
65 | QCheckBox* m_filterBar; | 65 | QCheckBox* m_filterBar; | ||
66 | QCheckBox* m_showFullPathInTitlebar; | 66 | QCheckBox* m_showFullPathInTitlebar; | ||
67 | | ||||
68 | QFormLayout* m_topLayout; | ||||
67 | }; | 69 | }; | ||
68 | 70 | | |||
69 | #endif | 71 | #endif |