2022-06-13 21:18:57 +03:00
|
|
|
#ifndef LRPAGEEDITOR_H
|
|
|
|
#define LRPAGEEDITOR_H
|
|
|
|
|
|
|
|
#include "lrpageitemdesignintf.h"
|
2024-09-04 17:31:16 +03:00
|
|
|
|
|
|
|
#include <QDialog>
|
2022-06-13 21:18:57 +03:00
|
|
|
#include <QPushButton>
|
2024-09-04 17:31:16 +03:00
|
|
|
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
|
|
|
}
|
|
|
|
|
2024-09-04 17:31:16 +03:00
|
|
|
class LIMEREPORT_EXPORT PageEditor: public QDialog {
|
2022-06-13 21:18:57 +03:00
|
|
|
Q_OBJECT
|
|
|
|
|
|
|
|
public:
|
2024-09-04 17:31:16 +03:00
|
|
|
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:
|
2024-09-04 17:31:16 +03:00
|
|
|
// void on_buttonBox_accepted();
|
2022-06-13 21:18:57 +03:00
|
|
|
void on_format_currentIndexChanged(int index);
|
2024-09-04 17:31:16 +03:00
|
|
|
void on_buttonBox_clicked(QAbstractButton* button);
|
2022-06-13 21:18:57 +03:00
|
|
|
|
|
|
|
private:
|
2024-09-04 17:31:16 +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
|