Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Start porting group handling from composer
- Loading branch information
1 parent
955742a
commit 5aa9a15
Showing
18 changed files
with
999 additions
and
2 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
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,67 @@ | ||
/************************************************************************ | ||
* This file has been generated automatically from * | ||
* * | ||
* src/core/layout/qgslayoutitemgroup.h * | ||
* * | ||
* Do not edit manually ! Edit header and run scripts/sipify.pl again * | ||
************************************************************************/ | ||
|
||
|
||
|
||
class QgsLayoutItemGroup: QgsLayoutItem | ||
{ | ||
%Docstring | ||
A container for grouping several QgsLayoutItems. | ||
.. versionadded:: 3.0 | ||
%End | ||
|
||
%TypeHeaderCode | ||
#include "qgslayoutitemgroup.h" | ||
%End | ||
public: | ||
|
||
explicit QgsLayoutItemGroup( QgsLayout *layout ); | ||
~QgsLayoutItemGroup(); | ||
|
||
virtual int type() const; | ||
|
||
virtual QString stringType() const; | ||
|
||
|
||
void addItem( QgsLayoutItem *item /Transfer/ ); | ||
%Docstring | ||
Adds an ``item`` to the group. Ownership of the item | ||
is transferred to the group. | ||
%End | ||
|
||
void removeItems(); | ||
%Docstring | ||
Removes all items from the group (but does not delete them). | ||
Items remain in the scene but are no longer grouped together | ||
%End | ||
|
||
QList<QgsLayoutItem *> items() const; | ||
%Docstring | ||
Returns a list of items contained by the group. | ||
:rtype: list of QgsLayoutItem | ||
%End | ||
|
||
virtual void setVisibility( const bool visible ); | ||
|
||
protected: | ||
|
||
virtual void draw( QgsRenderContext &context, const QStyleOptionGraphicsItem *itemStyle = 0 ); | ||
|
||
|
||
}; | ||
|
||
|
||
|
||
|
||
/************************************************************************ | ||
* This file has been generated automatically from * | ||
* * | ||
* src/core/layout/qgslayoutitemgroup.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
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 |
---|---|---|
|
@@ -98,6 +98,7 @@ class QgsLayoutItemRegistry : QObject | |
enum ItemType | ||
{ | ||
LayoutItem, | ||
LayoutGroup, | ||
|
||
// known | ||
LayoutPage, | ||
|
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
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
Oops, something went wrong.