0
0
mirror of https://github.com/fralx/LimeReport.git synced 2025-01-11 17:18:10 +03:00
LimeReport/limereport/items/lrpageeditor.h

33 lines
715 B
C
Raw Normal View History

2022-06-13 21:18:57 +03:00
#ifndef LRPAGEEDITOR_H
#define LRPAGEEDITOR_H
#include <QDialog>
#include "lrpageitemdesignintf.h"
#include <QPushButton>
namespace Ui {
class lrpageeditor;
}
2022-10-31 21:20:24 +03:00
class PageEditor : public QDialog
2022-06-13 21:18:57 +03:00
{
Q_OBJECT
public:
2022-10-31 21:20:24 +03:00
explicit PageEditor(QWidget *parent = nullptr,LimeReport::PageItemDesignIntf *page = nullptr);
~PageEditor();
2022-06-13 21:18:57 +03:00
private slots:
2022-10-31 21:20:24 +03:00
// void on_buttonBox_accepted();
2022-06-13 21:18:57 +03:00
void on_format_currentIndexChanged(int index);
2022-10-31 21:20:24 +03:00
void on_buttonBox_clicked(QAbstractButton *button);
2022-06-13 21:18:57 +03:00
private:
Ui::lrpageeditor *ui;
LimeReport::PageItemDesignIntf* m_page;
void applyChanges();
QSizeF getRectByPageSize(const LimeReport::PageItemDesignIntf::PageSize& size);
};
#endif // LRPAGEEDITOR_H