Skip to content
Permalink
Browse files

Merge pull request #245 from Oslandia/atlas_integration

[FEATURE] Support for creation of map atlasses in print composer - Atlas integration
  • Loading branch information
timlinux committed Sep 28, 2012
2 parents 23352ce + 80eb345 commit fe8385e7f5735507adf1acfcce81a399fa6bc6f5
Showing with 2,045 additions and 200 deletions.
  1. +12 −1 python/core/qgsexpression.sip
  2. +466 −66 src/app/composer/qgscomposer.cpp
  3. +29 −0 src/app/composer/qgscomposerlabelwidget.cpp
  4. +1 −0 src/app/composer/qgscomposerlabelwidget.h
  5. +169 −0 src/app/composer/qgscomposermapwidget.cpp
  6. +14 −4 src/app/composer/qgscomposermapwidget.h
  7. +1 −0 src/core/composer/qgscomposeritem.h
  8. +21 −5 src/core/composer/qgscomposerlabel.cpp
  9. +10 −0 src/core/composer/qgscomposerlabel.h
  10. +69 −3 src/core/composer/qgscomposermap.cpp
  11. +32 −1 src/core/composer/qgscomposermap.h
  12. +324 −18 src/core/composer/qgscomposition.cpp
  13. +59 −1 src/core/composer/qgscomposition.h
  14. +107 −9 src/core/qgsexpression.cpp
  15. +19 −1 src/core/qgsexpression.h
  16. +16 −4 src/core/qgsexpressionparser.yy
  17. +7 −7 src/gui/qgscomposerview.cpp
  18. +18 −2 src/gui/qgsexpressionbuilderwidget.cpp
  19. +18 −11 src/ui/qgscomposerlabelwidgetbase.ui
  20. +5 −5 src/ui/qgscomposerlegendwidgetbase.ui
  21. +212 −62 src/ui/qgscomposermapwidgetbase.ui
  22. +2 −0 tests/src/core/CMakeLists.txt
  23. +181 −0 tests/src/core/testqgscomposerlabel.cpp
  24. +224 −0 tests/src/core/testqgscomposermapatlas.cpp
  25. +27 −0 tests/src/core/testqgsexpression.cpp
  26. BIN tests/testdata/control_images/expected_composermapatlas/autoscale_0.png
  27. BIN tests/testdata/control_images/expected_composermapatlas/autoscale_1.png
  28. BIN tests/testdata/control_images/expected_composermapatlas/fixedscale_0.png
  29. BIN tests/testdata/control_images/expected_composermapatlas/fixedscale_1.png
  30. BIN tests/testdata/control_images/expected_composermapatlas/hiding_0.png
  31. BIN tests/testdata/control_images/expected_composermapatlas/hiding_1.png
  32. BIN tests/testdata/france_parts.dbf
  33. +1 −0 tests/testdata/france_parts.prj
  34. +1 −0 tests/testdata/france_parts.qpj
  35. BIN tests/testdata/france_parts.shp
  36. BIN tests/testdata/france_parts.shx
@@ -43,6 +43,13 @@ class QgsExpression
//! Return the number used for $rownum special column
int currentRowNumber();

//! Assign a special column
static void setSpecialColumn( const QString& name, QVariant value );
//! Unset a special column
static void unsetSpecialColumn( const QString& name );
//! Return the value of the given special column or a null QVariant if undefined
static QVariant specialColumn( const QString& name );

void setScale( double scale );

int scale();
@@ -64,7 +71,6 @@ class QgsExpression
static QString replaceExpressionText( QString action, QgsFeature &feat,
QgsVectorLayer* layer,
const QMap<QString, QVariant> *substitutionMap = 0 );

//

enum UnaryOperator
@@ -141,6 +147,11 @@ class QgsExpression
*/
static int functionCount();

/**
* Returns a list of special Column definitions
*/
static QList<QgsExpression::FunctionDef> specialColumns();

//! return quoted column reference (in double quotes)
static QString quotedColumnRef( QString name );
//! return quoted string (in single quotes)

0 comments on commit fe8385e

Please sign in to comment.
You can’t perform that action at this time.