Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[FEATURE] Add new layout item type for manually created tables
Allows for creation of tables with contents manually entered by users (i.e. spreadsheet style), so that users can create completely custom tables. Supports control custom cell contents, foreground and background colors.
- Loading branch information
1 parent
5704412
commit 49d56f6
Showing
18 changed files
with
1,920 additions
and
1 deletion.
There are no files selected for viewing
75 changes: 75 additions & 0 deletions
75
python/core/auto_generated/layout/qgslayoutitemmanualtable.sip.in
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,75 @@ | ||
/************************************************************************ | ||
* This file has been generated automatically from * | ||
* * | ||
* src/core/layout/qgslayoutitemmanualtable.h * | ||
* * | ||
* Do not edit manually ! Edit header and run scripts/sipify.pl again * | ||
************************************************************************/ | ||
|
||
|
||
|
||
|
||
class QgsLayoutItemManualTable: QgsLayoutTable | ||
{ | ||
%Docstring | ||
A layout table subclass that displays manually entered (and formatted) content. | ||
|
||
.. versionadded:: 3.12 | ||
%End | ||
|
||
%TypeHeaderCode | ||
#include "qgslayoutitemmanualtable.h" | ||
%End | ||
public: | ||
|
||
QgsLayoutItemManualTable( QgsLayout *layout /TransferThis/ ); | ||
%Docstring | ||
Constructor for QgsLayoutItemManualTable, attached to the specified ``layout``. | ||
|
||
Ownership is transferred to the layout. | ||
%End | ||
|
||
virtual int type() const; | ||
|
||
virtual QIcon icon() const; | ||
|
||
virtual QString displayName() const; | ||
|
||
|
||
static QgsLayoutItemManualTable *create( QgsLayout *layout ) /Factory/; | ||
%Docstring | ||
Returns a new QgsLayoutItemManualTable for the specified parent ``layout``. | ||
%End | ||
virtual QgsConditionalStyle conditionalCellStyle( int row, int column ) const; | ||
|
||
|
||
void setTableContents( const QgsTableContents &contents ); | ||
%Docstring | ||
Sets the ``contents`` of the table. | ||
|
||
.. seealso:: :py:func:`tableContents` | ||
%End | ||
|
||
QgsTableContents tableContents() const; | ||
%Docstring | ||
Returns the contents of the table. | ||
|
||
.. seealso:: :py:func:`contents` | ||
%End | ||
|
||
protected: | ||
|
||
virtual bool writePropertiesToElement( QDomElement &elem, QDomDocument &doc, const QgsReadWriteContext &context ) const; | ||
|
||
virtual bool readPropertiesFromElement( const QDomElement &itemElem, const QDomDocument &doc, const QgsReadWriteContext &context ); | ||
|
||
|
||
}; | ||
|
||
/************************************************************************ | ||
* This file has been generated automatically from * | ||
* * | ||
* src/core/layout/qgslayoutitemmanualtable.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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -191,6 +191,8 @@ of layout items. | |
|
||
Layout3DMap, | ||
|
||
LayoutManualTable, | ||
|
||
// item types provided by plugins | ||
PluginItem, | ||
}; | ||
|
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.