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 #4279 from nyalldawson/layout_manager2
Rework handling of compositions and projects, and composer windows
- Loading branch information
Showing
66 changed files
with
1,660 additions
and
1,495 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
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,34 @@ | ||
|
||
class QgsLayoutManager : QObject | ||
{ | ||
%TypeHeaderCode | ||
#include <qgslayoutmanager.h> | ||
%End | ||
public: | ||
|
||
explicit QgsLayoutManager( QgsProject* project /TransferThis/ = 0 ); | ||
|
||
~QgsLayoutManager(); | ||
bool addComposition( QgsComposition* composition /Transfer/ ); | ||
bool removeComposition( QgsComposition* composition ); | ||
|
||
void clear(); | ||
QList< QgsComposition * > compositions() const; | ||
QgsComposition *compositionByName( const QString &name ) const; | ||
bool readXml( const QDomElement &element, const QDomDocument &doc ); | ||
QDomElement writeXml( QDomDocument &doc ) const; | ||
bool saveAsTemplate( const QString &name, QDomDocument &doc ) const; | ||
QgsComposition *duplicateComposition( const QString &name, const QString &newName ); | ||
QString generateUniqueTitle() const; | ||
|
||
signals: | ||
|
||
void compositionAboutToBeAdded( const QString &name ); | ||
void compositionAdded( const QString &name ); | ||
void compositionRemoved( const QString &name ); | ||
void compositionAboutToBeRemoved( const QString &name ); | ||
void compositionRenamed( QgsComposition *composition, const QString &newName ); | ||
|
||
|
||
}; | ||
|
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
class QgsComposerInterface: QObject | ||
{ | ||
%TypeHeaderCode | ||
#include <qgscomposerinterface.h> | ||
%End | ||
public: | ||
QgsComposerInterface( QObject *parent /TransferThis/ = 0 ); | ||
|
||
virtual ~QgsComposerInterface(); | ||
virtual QgsComposerView *view() = 0; | ||
virtual QgsComposition *composition() = 0; | ||
virtual void close() = 0; | ||
|
||
}; | ||
|
Oops, something went wrong.