-
-
Notifications
You must be signed in to change notification settings - Fork 3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #5291 from nyalldawson/layout_next
[layouts] Port most interaction actions from composer
- Loading branch information
Showing
86 changed files
with
10,481 additions
and
304 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,85 @@ | ||
/************************************************************************ | ||
* This file has been generated automatically from * | ||
* * | ||
* src/core/layout/qgslayoutaligner.h * | ||
* * | ||
* Do not edit manually ! Edit header and run scripts/sipify.pl again * | ||
************************************************************************/ | ||
|
||
|
||
|
||
class QgsLayoutAligner | ||
{ | ||
%Docstring | ||
Handles aligning and distributing sets of layout items. | ||
|
||
QgsLayoutAligner contains methods for automatically aligning and distributing | ||
sets of layout items, e.g. aligning a group of items to top or left sides. | ||
|
||
.. versionadded:: 3.0 | ||
%End | ||
|
||
%TypeHeaderCode | ||
#include "qgslayoutaligner.h" | ||
%End | ||
public: | ||
|
||
enum Alignment | ||
{ | ||
AlignLeft, | ||
AlignHCenter, | ||
AlignRight, | ||
AlignTop, | ||
AlignVCenter, | ||
AlignBottom, | ||
}; | ||
|
||
enum Distribution | ||
{ | ||
DistributeLeft, | ||
DistributeHCenter, | ||
DistributeRight, | ||
DistributeTop, | ||
DistributeVCenter, | ||
DistributeBottom, | ||
}; | ||
|
||
enum Resize | ||
{ | ||
ResizeNarrowest, | ||
ResizeWidest, | ||
ResizeShortest, | ||
ResizeTallest, | ||
ResizeToSquare, | ||
}; | ||
|
||
static void alignItems( QgsLayout *layout, const QList< QgsLayoutItem * > &items, Alignment alignment ); | ||
%Docstring | ||
Aligns a set of ``items`` from a ``layout`` in place. | ||
|
||
The ``alignment`` argument specifies the method to use when aligning the items. | ||
%End | ||
|
||
static void distributeItems( QgsLayout *layout, const QList< QgsLayoutItem * > &items, Distribution distribution ); | ||
%Docstring | ||
Distributes a set of ``items`` from a ``layout`` in place. | ||
|
||
The ``distribution`` argument specifies the method to use when distributing the items. | ||
%End | ||
|
||
static void resizeItems( QgsLayout *layout, const QList< QgsLayoutItem * > &items, Resize resize ); | ||
%Docstring | ||
Resizes a set of ``items`` from a ``layout`` in place. | ||
|
||
The ``resize`` argument specifies the method to use when resizing the items. | ||
%End | ||
|
||
}; | ||
|
||
/************************************************************************ | ||
* This file has been generated automatically from * | ||
* * | ||
* src/core/layout/qgslayoutaligner.h * | ||
* * | ||
* Do not edit manually ! Edit header and run scripts/sipify.pl again * | ||
************************************************************************/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.