2019-08-07 21:06:47 +03:00
|
|
|
#ifndef LRIMAGEITEMEDITOR_H
|
|
|
|
#define LRIMAGEITEMEDITOR_H
|
|
|
|
|
|
|
|
#include <QWidget>
|
|
|
|
|
|
|
|
namespace Ui {
|
|
|
|
class ImageItemEditor;
|
|
|
|
}
|
|
|
|
|
|
|
|
namespace LimeReport {
|
|
|
|
class ImageItem;
|
|
|
|
}
|
|
|
|
|
|
|
|
class ImageItemEditor : public QWidget
|
|
|
|
{
|
|
|
|
Q_OBJECT
|
|
|
|
|
|
|
|
public:
|
2019-08-11 00:45:27 +03:00
|
|
|
explicit ImageItemEditor(LimeReport::ImageItem* item, QWidget *parent = NULL);
|
2019-08-07 21:06:47 +03:00
|
|
|
~ImageItemEditor();
|
|
|
|
private:
|
|
|
|
void updateImage();
|
|
|
|
private:
|
|
|
|
Ui::ImageItemEditor *ui;
|
|
|
|
LimeReport::ImageItem* m_item;
|
|
|
|
QPixmap m_image;
|
|
|
|
QPixmap m_resourcePathImage;
|
|
|
|
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
|