File indexing completed on 2024-05-12 17:18:54
0001 /* 0002 * SPDX-FileCopyrightText: 2009 Peter Penz <peter.penz19@gmail.com> 0003 * 0004 * SPDX-License-Identifier: GPL-2.0-or-later 0005 */ 0006 #ifndef STATUSANDLOCATIONBARSSETTINGSPAGE_H 0007 #define STATUSANDLOCATIONBARSSETTINGSPAGE_H 0008 0009 #include "dolphin_generalsettings.h" 0010 #include "folderstabssettingspage.h" 0011 #include "settings/settingspagebase.h" 0012 0013 #include <QUrl> 0014 0015 class QCheckBox; 0016 class QLineEdit; 0017 class QLabel; 0018 class QRadioButton; 0019 0020 /** 0021 * @brief Tab page for the 'Behavior' settings of the Dolphin settings dialog. 0022 */ 0023 class StatusAndLocationBarsSettingsPage : public SettingsPageBase 0024 { 0025 Q_OBJECT 0026 0027 public: 0028 StatusAndLocationBarsSettingsPage(QWidget *parent, FoldersTabsSettingsPage *foldersPage); 0029 ~StatusAndLocationBarsSettingsPage() override; 0030 0031 /** @see SettingsPageBase::applySettings() */ 0032 void applySettings() override; 0033 0034 /** @see SettingsPageBase::restoreDefaults() */ 0035 void restoreDefaults() override; 0036 0037 private Q_SLOTS: 0038 void locationSlotSettingsChanged(); 0039 void locationUpdateInitialViewOptions(); 0040 0041 private: 0042 void loadSettings(); 0043 void onShowStatusBarToggled(); 0044 0045 private: 0046 FoldersTabsSettingsPage *foldersTabsPage; 0047 QCheckBox *m_editableUrl; 0048 QCheckBox *m_showFullPath; 0049 0050 QCheckBox *m_showStatusBar; 0051 QCheckBox *m_showZoomSlider; 0052 QCheckBox *m_showSpaceInfo; 0053 }; 0054 0055 #endif