File indexing completed on 2024-12-22 04:12:14

0001 /*
0002  *  SPDX-FileCopyrightText: 2012 Dmitry Kazakov <dimula73@gmail.com>
0003  *
0004  *  SPDX-License-Identifier: GPL-2.0-or-later
0005  */
0006 
0007 #ifndef __KIS_NOPARAMETERACTIONFACTORY_H
0008 #define __KIS_NOPARAMETERACTIONFACTORY_H
0009 
0010 #include "operations/kis_operation.h"
0011 
0012 class KRITAUI_EXPORT KisNoParameterActionFactory : public KisOperation
0013 {
0014 public:
0015     KisNoParameterActionFactory(const QString &id) : KisOperation(id) {}
0016     void runFromXML(KisViewManager *view, const KisOperationConfiguration &config) override {
0017         Q_UNUSED(config);
0018         run(view);
0019     }
0020     virtual void run(KisViewManager *view) = 0;
0021 };
0022 
0023 #endif //__KIS_NOPARAMETERACTIONFACTORY_H