0
0
mirror of https://github.com/fralx/LimeReport.git synced 2024-12-24 00:33:02 +03:00
LimeReport/limereport/items/lrpageeditor.h

37 lines
789 B
C
Raw Normal View History

2022-06-13 21:18:57 +03:00
#ifndef LRPAGEEDITOR_H
#define LRPAGEEDITOR_H
#include "lrpageitemdesignintf.h"
#include <QDialog>
2022-06-13 21:18:57 +03:00
#include <QPushButton>
namespace LimeReport {
2022-11-01 11:48:47 +03:00
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
}
class LIMEREPORT_EXPORT PageEditor: public QDialog {
2022-06-13 21:18:57 +03:00
Q_OBJECT
public:
explicit PageEditor(QWidget* parent = nullptr, LimeReport::PageItemDesignIntf* page = nullptr);
2022-10-31 21:20:24 +03:00
~PageEditor();
2022-06-13 21:18:57 +03:00
private slots:
// void on_buttonBox_accepted();
2022-06-13 21:18:57 +03:00
void on_format_currentIndexChanged(int index);
void on_buttonBox_clicked(QAbstractButton* button);
2022-06-13 21:18:57 +03:00
private:
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