first commit
This commit is contained in:
@@ -0,0 +1,41 @@
|
||||
#ifndef ITEMEDITOR_H
|
||||
#define ITEMEDITOR_H
|
||||
|
||||
#include <QWidget>
|
||||
#include "scene/pictextitem.h"
|
||||
#include <QPainter>
|
||||
#include <QButtonGroup>
|
||||
#include "scene/ItemGeneralSettings.h"
|
||||
|
||||
namespace Ui {
|
||||
class ItemEditor;
|
||||
}
|
||||
|
||||
class ItemEditor : public QWidget
|
||||
{
|
||||
Q_OBJECT
|
||||
|
||||
public:
|
||||
explicit ItemEditor(QWidget *parent = 0);
|
||||
~ItemEditor();
|
||||
|
||||
void edit(PicTextItem* item);
|
||||
|
||||
PicTextItem* currentItem() { return m_currItem; }
|
||||
|
||||
signals:
|
||||
void rejected();
|
||||
void accepted();
|
||||
|
||||
private slots:
|
||||
void onOkBtnClicked();
|
||||
void onCloseBtnClicked();
|
||||
|
||||
private:
|
||||
Ui::ItemEditor *ui;
|
||||
QXmlStreamAttributes m_backup;
|
||||
PicTextItem* m_currItem = nullptr;
|
||||
ItemGeneralSettings* m_generalSettings = nullptr;
|
||||
};
|
||||
|
||||
#endif // ITEMEDITOR_H
|
||||
Reference in New Issue
Block a user