Krita is a free and open source cross-platform application that offers an end-to-end solution for creating digital art files from scratch built on the KDE and Qt frameworks.
C++
/*
* SPDX-FileCopyrightText: 2013 Sven Langkamp <[email protected]>
*
* SPDX-License-Identifier: GPL-2.0-or-later
*/
#ifndef KIS_OPERATION_UI_WIDGET_H
#define KIS_OPERATION_UI_WIDGET_H
#include <QWidget>
#include <kritaui_export.h>
#include "operations/kis_operation_configuration.h"
/**
* Base class for the QWidget based operation config widgets
*/
class KRITAUI_EXPORT KisOperationUIWidget : public QWidget
{
public:
explicit KisOperationUIWidget(const QString& caption, QWidget* parent = 0);
~KisOperationUIWidget() override;
/**
* Caption of the operation widget, used in dialog caption
*/
QString caption() const;
/**
* Fetch the setting from the config widget
* @param config configuration to which the setting will be written
*/
virtual void getConfiguration(KisOperationConfigurationSP config) = 0;
private:
class Private;
Private* const d;
};
#endif // KIS_OPERATION_UI_WIDGET_H