File indexing completed on 2024-05-12 16:02:09

0001 /* This file is part of the KDE project
0002    SPDX-FileCopyrightText: 2000 Simon Hausmann <hausmann@kde.org>
0003    SPDX-FileCopyrightText: 2000 2006 Martin Pfeiffer <hubipete@gmx.net>
0004 
0005    SPDX-License-Identifier: LGPL-2.0-or-later
0006 */
0007 
0008 #ifndef KOPAGEWIDGETITEM_H
0009 #define KOPAGEWIDGETITEM_H
0010 
0011 #include "kritawidgets_export.h"
0012 
0013 class QWidget;
0014 class QString;
0015 
0016 // This class can be implemented when we want to extend the
0017 // dialog with new, specific pages.
0018 class KRITAWIDGETS_EXPORT KoPageWidgetItem
0019 {
0020 public:
0021     virtual ~KoPageWidgetItem() {}
0022 
0023     virtual QWidget *widget() = 0;
0024     virtual QString name() const = 0;
0025     virtual QString iconName() const = 0;
0026     virtual bool shouldDialogCloseBeVetoed() = 0;
0027     virtual void apply() = 0;
0028 };
0029 
0030 
0031 #endif // KOPAGEWIDGETITEM_H