File indexing completed on 2024-05-12 15:56:40
0001 /* This file is part of the KDE project 0002 * SPDX-FileCopyrightText: 2009 Jan Hambrecht <jaham@gmx.net> 0003 * 0004 * SPDX-License-Identifier: LGPL-2.1-or-later 0005 */ 0006 0007 #ifndef KOFILTEREFFECTCONFIGWIDGETBASE_H 0008 #define KOFILTEREFFECTCONFIGWIDGETBASE_H 0009 0010 #include "kritaflake_export.h" 0011 #include <QWidget> 0012 0013 class KoFilterEffect; 0014 0015 /// Base class for filter effects config widgets 0016 class KRITAFLAKE_EXPORT KoFilterEffectConfigWidgetBase : public QWidget 0017 { 0018 Q_OBJECT 0019 public: 0020 explicit KoFilterEffectConfigWidgetBase(QWidget *parent = 0); 0021 ~KoFilterEffectConfigWidgetBase() override {}; 0022 0023 /// Sets the filter effect to be edited by the config widget 0024 virtual bool editFilterEffect(KoFilterEffect *filterEffect) = 0; 0025 0026 Q_SIGNALS: 0027 /// Is emitted when the filter effect has changed 0028 void filterChanged(); 0029 }; 0030 0031 #endif // KOFILTEREFFECTCONFIGWIDGETBASE_H