File indexing completed on 2024-05-12 04:38:19

0001 /*
0002     SPDX-FileCopyrightText: 2008 Cédric Pasteur <cedric.pasteur@free.fr>
0003 
0004     SPDX-License-Identifier: GPL-2.0-or-later
0005 */
0006 
0007 #ifndef KDEVPLATFORM_SOURCEFORMATTERSETTINGS_H
0008 #define KDEVPLATFORM_SOURCEFORMATTERSETTINGS_H
0009 
0010 #include <interfaces/configpage.h>
0011 
0012 #include "ui_sourceformattersettings.h"
0013 
0014 /** \short The settings modulefor the Source formatter plugin.
0015 * It supports predefined and custom styles. A live preview of the style
0016 * is shown on the right side of the page.s
0017 */
0018 class SourceFormatterSettings : public KDevelop::ConfigPage, public Ui::SourceFormatterSettingsUI
0019 {
0020 Q_OBJECT
0021 
0022 public:
0023     explicit SourceFormatterSettings(QWidget* parent = nullptr);
0024     ~SourceFormatterSettings() override;
0025 
0026     QString name() const override;
0027     QString fullName() const override;
0028     QIcon icon() const override;
0029 
0030 public Q_SLOTS:
0031     void reset() override;
0032     void apply() override;
0033     void defaults() override;
0034 
0035 private:
0036 };
0037 
0038 #endif // KDEVPLATFORM_SOURCEFORMATTERSETTINGS_H