File indexing completed on 2024-05-19 04:35:32
0001 /* 0002 SPDX-FileCopyrightText: 2015 Laurent Montel <montel@kde.org> 0003 0004 SPDX-License-Identifier: GPL-2.0-or-later 0005 */ 0006 0007 #ifndef EDITDRAWINGTOOLDIALOG_H 0008 #define EDITDRAWINGTOOLDIALOG_H 0009 0010 #include <QDialog> 0011 #include <QDomElement> 0012 0013 class KColorButton; 0014 class KLineEdit; 0015 0016 class QSpinBox; 0017 0018 class EditDrawingToolDialog : public QDialog 0019 { 0020 Q_OBJECT 0021 public: 0022 explicit EditDrawingToolDialog(const QDomElement &initialState = QDomElement(), QWidget *parent = nullptr); 0023 ~EditDrawingToolDialog() override; 0024 0025 QDomDocument toolXml() const; 0026 0027 QString name() const; 0028 0029 private: 0030 void loadTool(const QDomElement &toolElement); 0031 0032 KLineEdit *m_name; 0033 KColorButton *m_colorBn; 0034 QSpinBox *m_penWidth; 0035 QSpinBox *m_opacity; 0036 }; 0037 0038 #endif // EDITDRAWINGTOOLDIALOG_H