File indexing completed on 2024-05-12 09:54:32

0001 /* This file is part of the KDE project
0002    SPDX-FileCopyrightText: 2010 Thomas Fjellstrom <thomas@fjellstrom.ca>
0003 
0004    SPDX-License-Identifier: LGPL-2.0-or-later
0005 */
0006 
0007 #pragma once
0008 
0009 #include <KConfigGroup>
0010 #include <QColor>
0011 
0012 // Geh, should make this into a proper class, setters and getters.
0013 class KateFileTreePluginSettings
0014 {
0015 public:
0016     KateFileTreePluginSettings();
0017 
0018     void save();
0019 
0020     bool shadingEnabled() const;
0021     void setShadingEnabled(bool);
0022 
0023     const QColor &viewShade() const;
0024     void setViewShade(const QColor &);
0025 
0026     const QColor &editShade() const;
0027     void setEditShade(const QColor &);
0028 
0029     bool listMode() const;
0030     void setListMode(bool);
0031 
0032     int sortRole() const;
0033     void setSortRole(int);
0034 
0035     bool showFullPathOnRoots() const;
0036     void setShowFullPathOnRoots(bool);
0037 
0038     bool showToolbar() const;
0039     void setShowToolbar(bool);
0040 
0041     bool showCloseButton() const;
0042     void setShowCloseButton(bool);
0043 
0044 private:
0045     KConfigGroup m_group;
0046 
0047     bool m_shadingEnabled;
0048     QColor m_viewShade;
0049     QColor m_editShade;
0050 
0051     bool m_listMode;
0052     int m_sortRole;
0053 
0054     bool m_showFullPathOnRoots;
0055     bool m_showToolbar;
0056     bool m_showCloseButton;
0057 };