2019-08-07 21:06:47 +03:00
|
|
|
#ifndef LRIMAGEITEMEDITOR_H
|
|
|
|
#define LRIMAGEITEMEDITOR_H
|
|
|
|
|
2020-03-19 20:09:35 +03:00
|
|
|
#include "lreditableimageitemintf.h"
|
2019-08-07 21:06:47 +03:00
|
|
|
|
2024-09-04 17:31:16 +03:00
|
|
|
#include <QWidget>
|
|
|
|
|
2019-08-07 21:06:47 +03:00
|
|
|
namespace Ui {
|
|
|
|
class ImageItemEditor;
|
|
|
|
}
|
|
|
|
|
|
|
|
namespace LimeReport {
|
|
|
|
class ImageItem;
|
|
|
|
}
|
|
|
|
|
2024-09-04 17:31:16 +03:00
|
|
|
class ImageItemEditor: public QWidget {
|
2019-08-07 21:06:47 +03:00
|
|
|
Q_OBJECT
|
|
|
|
|
|
|
|
public:
|
2024-09-04 17:31:16 +03:00
|
|
|
explicit ImageItemEditor(LimeReport::IEditableImageItem* item, QWidget* parent = NULL);
|
2019-08-07 21:06:47 +03:00
|
|
|
~ImageItemEditor();
|
2024-09-04 17:31:16 +03:00
|
|
|
|
2019-08-07 21:06:47 +03:00
|
|
|
private:
|
|
|
|
void updateImage();
|
2024-09-04 17:31:16 +03:00
|
|
|
|
2019-08-07 21:06:47 +03:00
|
|
|
private:
|
2024-09-04 17:31:16 +03:00
|
|
|
Ui::ImageItemEditor* ui;
|
2020-03-19 20:09:35 +03:00
|
|
|
LimeReport::IEditableImageItem* m_item;
|
|
|
|
|
|
|
|
QByteArray m_image;
|
2019-08-07 21:06:47 +03:00
|
|
|
QPixmap m_resourcePathImage;
|
2020-03-19 20:09:35 +03:00
|
|
|
|
2019-08-07 21:06:47 +03:00
|
|
|
private slots:
|
|
|
|
void on_tbLoadImage_clicked();
|
|
|
|
void on_tbClearImage_clicked();
|
|
|
|
void on_buttonBox_accepted();
|
|
|
|
void on_buttonBox_rejected();
|
|
|
|
void on_toolButton_clicked();
|
|
|
|
void on_tbResourcePath_clicked();
|
|
|
|
};
|
|
|
|
|
|
|
|
#endif // LRIMAGEITEMEDITOR_H
|