File indexing completed on 2024-05-19 05:48:25
0001 /* 0002 * SPDX-FileCopyrightText: 2006 Peter Penz <peter.penz@gmx.at> 0003 * 0004 * SPDX-License-Identifier: GPL-2.0-or-later 0005 */ 0006 #ifndef GENERALVIEWSETTINGSPAGE_H 0007 #define GENERALVIEWSETTINGSPAGE_H 0008 0009 #include "config-dolphin.h" 0010 #include "settings/settingspagebase.h" 0011 #include <qradiobutton.h> 0012 0013 #include <QUrl> 0014 0015 class QCheckBox; 0016 class QLabel; 0017 class QRadioButton; 0018 0019 /** 0020 * @brief Tab page for the 'View tab' settings of the Dolphin settings dialog. 0021 */ 0022 class GeneralViewSettingsPage : public SettingsPageBase 0023 { 0024 Q_OBJECT 0025 0026 public: 0027 explicit GeneralViewSettingsPage(const QUrl &url, QWidget *parent); 0028 ~GeneralViewSettingsPage() override; 0029 0030 /** @see SettingsPageBase::applySettings() */ 0031 void applySettings() override; 0032 0033 /** @see SettingsPageBase::restoreDefaults() */ 0034 void restoreDefaults() override; 0035 0036 private: 0037 void loadSettings(); 0038 0039 private: 0040 QUrl m_url; 0041 QRadioButton *m_localViewProps = nullptr; 0042 QRadioButton *m_globalViewProps = nullptr; 0043 #if HAVE_BALOO 0044 QCheckBox *m_showToolTips = nullptr; 0045 #endif 0046 QCheckBox *m_showSelectionToggle = nullptr; 0047 QCheckBox *m_renameInline = nullptr; 0048 QCheckBox *m_openArchivesAsFolder = nullptr; 0049 QCheckBox *m_autoExpandFolders = nullptr; 0050 QCheckBox *m_hideXtrashFiles = nullptr; 0051 }; 0052 0053 #endif