1 /* 2 SPDX-FileCopyrightText: 2015 Laurent Montel <montel@kde.org> 3 4 SPDX-License-Identifier: GPL-2.0-or-later 5 */ 6 7 #ifndef EDITDRAWINGTOOLDIALOG_H 8 #define EDITDRAWINGTOOLDIALOG_H 9 10 #include <QDialog> 11 #include <QDomElement> 12 13 class KColorButton; 14 class KLineEdit; 15 16 class QSpinBox; 17 18 class EditDrawingToolDialog : public QDialog 19 { 20 Q_OBJECT 21 public: 22 explicit EditDrawingToolDialog(const QDomElement &initialState = QDomElement(), QWidget *parent = nullptr); 23 ~EditDrawingToolDialog() override; 24 25 QDomDocument toolXml() const; 26 27 QString name() const; 28 29 private: 30 void loadTool(const QDomElement &toolElement); 31 32 KLineEdit *m_name; 33 KColorButton *m_colorBn; 34 QSpinBox *m_penWidth; 35 QSpinBox *m_opacity; 36 }; 37 38 #endif // EDITDRAWINGTOOLDIALOG_H 39