Skip to content

Commit

Permalink
sipify core composer part 1*
Browse files Browse the repository at this point in the history
  • Loading branch information
3nids committed Jun 20, 2017
1 parent cfa6a31 commit 01ffc4e
Show file tree
Hide file tree
Showing 7 changed files with 683 additions and 437 deletions.
6 changes: 0 additions & 6 deletions python/auto_sip.blacklist
@@ -1,11 +1,5 @@
core/conversions.sip
core/qgsexception.sip
core/composer/qgsaddremoveitemcommand.sip
core/composer/qgsgroupungroupitemscommand.sip
core/composer/qgsaddremovemultiframecommand.sip
core/composer/qgscomposerarrow.sip
core/composer/qgscomposerattributetablemodelv2.sip
core/composer/qgscomposerattributetablev2.sip
core/composer/qgscomposereffect.sip
core/composer/qgscomposerframe.sip
core/composer/qgscomposerhtml.sip
Expand Down
35 changes: 31 additions & 4 deletions python/core/composer/qgsaddremoveitemcommand.sip
@@ -1,8 +1,24 @@
/** A composer command class for adding / removing composer items. If mState == Removed, the command owns the item*/
/************************************************************************
* This file has been generated automatically from *
* *
* src/core/composer/qgsaddremoveitemcommand.h *
* *
* Do not edit manually ! Edit header and run scripts/sipify.pl again *
************************************************************************/






class QgsAddRemoveItemCommand: QObject, QUndoCommand
{
%Docstring
A composer command class for adding / removing composer items. If mState == Removed, the command owns the item
%End

%TypeHeaderCode
#include "qgsaddremoveitemcommand.h"
#include "qgsaddremoveitemcommand.h"
%End
public:

Expand All @@ -15,10 +31,21 @@ class QgsAddRemoveItemCommand: QObject, QUndoCommand
QgsAddRemoveItemCommand( State s, QgsComposerItem *item, QgsComposition *c, const QString &text, QUndoCommand *parent /TransferThis/ = 0 );
~QgsAddRemoveItemCommand();

void redo();
void undo();
virtual void redo();

virtual void undo();


signals:
void itemAdded( QgsComposerItem *item );
void itemRemoved( QgsComposerItem *item );

};

/************************************************************************
* This file has been generated automatically from *
* *
* src/core/composer/qgsaddremoveitemcommand.h *
* *
* Do not edit manually ! Edit header and run scripts/sipify.pl again *
************************************************************************/
34 changes: 29 additions & 5 deletions python/core/composer/qgsaddremovemultiframecommand.sip
@@ -1,9 +1,22 @@
class QgsAddRemoveMultiFrameCommand : QUndoCommand
/************************************************************************
* This file has been generated automatically from *
* *
* src/core/composer/qgsaddremovemultiframecommand.h *
* *
* Do not edit manually ! Edit header and run scripts/sipify.pl again *
************************************************************************/






class QgsAddRemoveMultiFrameCommand: QUndoCommand
{

%TypeHeaderCode
#include <qgsaddremovemultiframecommand.h>
#include "qgsaddremovemultiframecommand.h"
%End

public:

enum State
Expand All @@ -14,6 +27,17 @@ class QgsAddRemoveMultiFrameCommand : QUndoCommand

QgsAddRemoveMultiFrameCommand( State s, QgsComposerMultiFrame *multiFrame, QgsComposition *c, const QString &text, QUndoCommand *parent /TransferThis/ = 0 );
~QgsAddRemoveMultiFrameCommand();
void redo();
void undo();
virtual void redo();

virtual void undo();


};

/************************************************************************
* This file has been generated automatically from *
* *
* src/core/composer/qgsaddremovemultiframecommand.h *
* *
* Do not edit manually ! Edit header and run scripts/sipify.pl again *
************************************************************************/

0 comments on commit 01ffc4e

Please sign in to comment.