File indexing completed on 2024-05-12 17:18:54
0001 /* 0002 * SPDX-FileCopyrightText: 2008 Peter Penz <peter.penz19@gmail.com> 0003 * 0004 * SPDX-License-Identifier: GPL-2.0-or-later 0005 */ 0006 0007 #ifndef KCMDOLPHINVIEWMODES_H 0008 #define KCMDOLPHINVIEWMODES_H 0009 0010 #include <KCModule> 0011 0012 class ViewSettingsTab; 0013 0014 /** 0015 * @brief Allow to configure the Dolphin views. 0016 */ 0017 class DolphinViewModesConfigModule : public KCModule 0018 { 0019 Q_OBJECT 0020 0021 public: 0022 DolphinViewModesConfigModule(QObject *parent, const KPluginMetaData &data); 0023 ~DolphinViewModesConfigModule() override; 0024 0025 void save() override; 0026 void defaults() override; 0027 0028 private: 0029 void reparseConfiguration(); 0030 0031 private Q_SLOTS: 0032 void viewModeChanged(); 0033 0034 private: 0035 QList<ViewSettingsTab *> m_tabs; 0036 }; 0037 0038 #endif