/* * SPDX-FileCopyrightText: 2006 Peter Penz * * SPDX-License-Identifier: GPL-2.0-or-later */ #ifndef GENERALVIEWSETTINGSPAGE_H #define GENERALVIEWSETTINGSPAGE_H #include "config-dolphin.h" #include "settings/settingspagebase.h" #include #include class QCheckBox; class QComboBox; class QLabel; class QLineEdit; class QRadioButton; /** * @brief Tab page for the 'View tab' settings of the Dolphin settings dialog. */ class GeneralViewSettingsPage : public SettingsPageBase { Q_OBJECT public: explicit GeneralViewSettingsPage(const QUrl &url, QWidget *parent); ~GeneralViewSettingsPage() override; /** @see SettingsPageBase::applySettings() */ void applySettings() override; /** @see SettingsPageBase::restoreDefaults() */ void restoreDefaults() override; private: void loadSettings(); void updateCustomActionVisibility(int doubleClickViewComboBoxCurrentIndex); private: QUrl m_url; QRadioButton *m_localViewProps = nullptr; QRadioButton *m_globalViewProps = nullptr; #if HAVE_BALOO QCheckBox *m_showToolTips = nullptr; #endif QCheckBox *m_showSelectionToggle = nullptr; QCheckBox *m_renameInline = nullptr; QCheckBox *m_openArchivesAsFolder = nullptr; QCheckBox *m_autoExpandFolders = nullptr; QCheckBox *m_hideXtrashFiles = nullptr; QComboBox *m_doubleClickViewComboBox = nullptr; QLineEdit *m_doubleClickViewCustomAction = nullptr; QLabel *m_doubleClickViewCustomActionInfo = nullptr; }; #endif