0
0
mirror of https://github.com/fralx/LimeReport.git synced 2024-12-25 00:54:39 +03:00
LimeReport/limereport/items/lrpageeditor.h

37 lines
783 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>
2022-11-01 11:48:47 +03:00
namespace LimeReport{
2022-06-13 21:18:57 +03:00
namespace Ui {
2022-11-01 11:48:47 +03:00
class PageEditor;
2022-06-13 21:18:57 +03:00
}
2022-11-01 11:48:47 +03:00
class LIMEREPORT_EXPORT 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:
2022-11-01 11:48:47 +03:00
Ui::PageEditor *ui;
2022-06-13 21:18:57 +03:00
LimeReport::PageItemDesignIntf* m_page;
void applyChanges();
QSizeF getRectByPageSize(const LimeReport::PageItemDesignIntf::PageSize& size);
};
2022-11-01 11:48:47 +03:00
} // namespace LimeReport
2022-06-13 21:18:57 +03:00
#endif // LRPAGEEDITOR_H