0
0
mirror of https://github.com/fralx/LimeReport.git synced 2025-11-20 06:30:03 +03:00

Vertical Layout has been added

This commit is contained in:
Arin Alexander
2018-06-21 14:29:00 +03:00
parent 1a189054f7
commit 5b818a4a15
22 changed files with 1029 additions and 467 deletions

View File

@@ -43,6 +43,7 @@ namespace LimeReport {
class ReportEnginePrivate;
class PropertyChangedCommand;
class HorizontalLayout;
class VerticalLayout;
class LayoutDesignIntf;
class CommandIf {
@@ -102,6 +103,7 @@ namespace LimeReport {
public:
friend class PropertyChangedCommand;
friend class InsertHLayoutCommand;
friend class InsertVLayoutCommand;
enum Orientation {Portrait, Landscape};
enum PageSize {A4, B5, Letter, Legal, Executive,
A0, A1, A2, A3, A5, A6, A7, A8, A9, B0, B1,
@@ -208,6 +210,7 @@ namespace LimeReport {
void objectLoadFinished();
HorizontalLayout* internalAddHLayout();
VerticalLayout* internalAddVLayout();
QPointF placePosOnGrid(QPointF point);
QSizeF placeSizeOnGrid(QSizeF size);
signals:
@@ -250,6 +253,7 @@ namespace LimeReport {
void sameWidth();
void sameHeight();
void addHLayout();
void addVLayout();
void setFont(const QFont &font);
void setTextAlign(const Qt::Alignment& alignment);
void setBorders(const BaseDesignIntf::BorderLines& border);
@@ -339,6 +343,19 @@ namespace LimeReport {
QMap<QString,QPointF> m_elements;
};
class InsertVLayoutCommand : public AbstractPageCommand{
public:
static CommandIf::Ptr create(PageDesignIntf* page);
bool doIt();
void undoIt();
private:
InsertVLayoutCommand(){}
private:
QString m_layoutName;
QString m_oldParentName;
QMap<QString,QPointF> m_elements;
};
class InsertItemCommand : public AbstractPageCommand{
public:
static CommandIf::Ptr create(PageDesignIntf* page, const QString& itemType, QPointF pos, QSizeF size);