File indexing completed on 2024-05-19 04:07:48

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_SLICERCONFWIDGET_H
0008 #define PALAPELI_SLICERCONFWIDGET_H
0009 
0010 class QFormLayout;
0011 #include <QWidget>
0012 
0013 namespace Pala
0014 {
0015     class Slicer;
0016     class SlicerMode;
0017     class SlicerProperty;
0018 }
0019 
0020 namespace Palapeli
0021 {
0022     class PropertyWidget;
0023 
0024     class SlicerConfigWidget : public QWidget
0025     {
0026         public:
0027             explicit SlicerConfigWidget(const Pala::Slicer* slicer);
0028 
0029             QMap<QByteArray, QVariant> arguments() const;
0030             void setMode(const Pala::SlicerMode* mode);
0031         private:
0032             struct Entry
0033             {
0034                 const Pala::SlicerProperty* property;
0035                 Palapeli::PropertyWidget* widget;
0036             };
0037             QList<Entry> m_entries;
0038             QFormLayout* m_layout;
0039     };
0040 }
0041 
0042 #endif // PALAPELI_SLICERCONFWIDGET_H