File indexing completed on 2024-05-12 04:06:22
0001 /* 0002 SPDX-FileCopyrightText: 2009 Stefan Majewsky <majewsky@gmx.net> 0003 0004 SPDX-License-Identifier: GPL-2.0-or-later 0005 */ 0006 0007 #ifndef PALAPELI_PROPERTYWIDGET_H 0008 #define PALAPELI_PROPERTYWIDGET_H 0009 0010 #include <QWidget> 0011 0012 namespace Pala 0013 { 0014 class SlicerProperty; 0015 } 0016 0017 namespace Palapeli 0018 { 0019 class PropertyWidget : public QWidget 0020 { 0021 public: 0022 virtual QVariant propertyValue() const = 0; 0023 protected: 0024 virtual void initialize(const Pala::SlicerProperty* property) = 0; 0025 friend Palapeli::PropertyWidget* createPropertyWidget(const Pala::SlicerProperty* property); 0026 }; 0027 0028 Palapeli::PropertyWidget* createPropertyWidget(const Pala::SlicerProperty* property); 0029 } 0030 0031 #endif // PALAPELI_PROPERTYWIDGET_H