krita/ui

kis_filter_manager.h

Go to the documentation of this file.
00001 /*
00002  *  Copyright (c) 2005 Boudewijn Rempt <boud@valdyas.org>
00003  *  Copyright (c) 2007 Cyrille Berger <cberger@cberger.net>
00004  *
00005  *  This program is free software; you can redistribute it and/or modify
00006  *  it under the terms of the GNU General Public License as published by
00007  *  the Free Software Foundation; either version 2 of the License, or
00008  *  (at your option) any later version.
00009  *
00010  *  This program is distributed in the hope that it will be useful,
00011  *  but WITHOUT ANY WARRANTY; without even the implied warranty of
00012  *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
00013  *  GNU General Public License for more details.
00014  *
00015  *  You should have received a copy of the GNU General Public License
00016  *  along with this program; if not, write to the Free Software
00017  *  Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
00018  */
00019 
00020 #ifndef _KIS_FILTER_MANAGER_
00021 #define _KIS_FILTER_MANAGER_
00022 
00023 #include <QObject>
00024 #include <krita_export.h>
00025 
00026 class KAction;
00027 class KisView2;
00028 class KisDoc2;
00029 class KisFilter;
00030 class KActionCollection;
00031 class KisFilterHandler;
00032 
00036 class KRITAUI_EXPORT KisFilterManager : public QObject
00037 {
00038 
00039     Q_OBJECT
00040 
00041 public:
00042 
00043     KisFilterManager(KisView2 * parent, KisDoc2 * doc);
00044     ~KisFilterManager();
00045 
00046     void setup(KActionCollection * ac);
00047     void updateGUI();
00048     void setLastFilterHandler(KisFilterHandler* handler);
00049 
00050 private slots:
00051 
00052     void insertFilter(const QString & name);
00053 
00054 private:
00055     struct Private;
00056     Private * const d;
00057 };
00058 
00059 #endif