2021-05-24 07:25:56 +00:00
|
|
|
/*
|
|
|
|
SPDX-FileCopyrightText: 2015 Laurent Montel <montel@kde.org>
|
|
|
|
|
|
|
|
SPDX-License-Identifier: GPL-2.0-or-later
|
|
|
|
*/
|
2015-08-22 14:00:04 +00:00
|
|
|
|
|
|
|
#ifndef EDITDRAWINGTOOLDIALOG_H
|
|
|
|
#define EDITDRAWINGTOOLDIALOG_H
|
|
|
|
|
|
|
|
#include <QDialog>
|
|
|
|
#include <QDomElement>
|
|
|
|
|
|
|
|
class KColorButton;
|
2015-08-22 20:15:32 +00:00
|
|
|
class KLineEdit;
|
2015-08-22 14:00:04 +00:00
|
|
|
|
|
|
|
class QSpinBox;
|
|
|
|
|
|
|
|
class EditDrawingToolDialog : public QDialog
|
|
|
|
{
|
|
|
|
Q_OBJECT
|
|
|
|
public:
|
2017-03-02 19:09:32 +00:00
|
|
|
explicit EditDrawingToolDialog(const QDomElement &initialState = QDomElement(), QWidget *parent = nullptr);
|
2019-12-18 11:51:13 +00:00
|
|
|
~EditDrawingToolDialog() override;
|
2015-08-22 14:00:04 +00:00
|
|
|
|
|
|
|
QDomDocument toolXml() const;
|
|
|
|
|
2015-08-22 20:15:32 +00:00
|
|
|
QString name() const;
|
|
|
|
|
2015-08-22 14:00:04 +00:00
|
|
|
private:
|
|
|
|
void loadTool(const QDomElement &toolElement);
|
|
|
|
|
2015-08-22 20:15:32 +00:00
|
|
|
KLineEdit *m_name;
|
2015-08-22 14:00:04 +00:00
|
|
|
KColorButton *m_colorBn;
|
|
|
|
QSpinBox *m_penWidth;
|
|
|
|
QSpinBox *m_opacity;
|
|
|
|
};
|
|
|
|
|
|
|
|
#endif // EDITDRAWINGTOOLDIALOG_H
|