/* SPDX-FileCopyrightText: 2001-2010 Christoph Cullmann SPDX-License-Identifier: LGPL-2.0-or-later */ #ifndef KATE_MODECONFIGPAGE_H #define KATE_MODECONFIGPAGE_H #include #include #include "katedialogs.h" #include "katemodemanager.h" namespace Ui { class FileTypeConfigWidget; } class ModeConfigPage : public KateConfigPage { public: explicit ModeConfigPage(QWidget *parent); ~ModeConfigPage() override; QString name() const override; public: void apply() override; void reload() override; void reset() override; void defaults() override; private: void update(); void deleteType(); void newType(); void typeChanged(int type); void showMTDlg(); void save(); private: Ui::FileTypeConfigWidget *ui; QList m_types; int m_lastType; }; #endif