Skip to content
Permalink
Browse files
Python bindings for quickprint and change print method to printMap
git-svn-id: http://svn.osgeo.org/qgis/trunk/qgis@7987 c8812cc2-4d05-0410-92ff-de0c093fc19c
  • Loading branch information
timlinux committed Jan 17, 2008
1 parent 857ae41 commit 4c20f9cc4c01b4a39918a4227c6bfbd167c964c5
Showing with 4 additions and 3 deletions.
  1. +1 −0 python/gui/gui.sip
  2. +1 −1 src/gui/qgsquickprint.cpp
  3. +1 −1 src/gui/qgsquickprint.h
  4. +1 −1 src/plugins/quick_print/quickprintgui.cpp
@@ -20,6 +20,7 @@
%Include qgsmapoverviewcanvas.sip
%Include qgsmessageviewer.sip
%Include qgsprojectionselector.sip
%Include qgsquickprint.sip
%Include qgsrubberband.sip
%Include qgsvertexmarker.sip

@@ -98,7 +98,7 @@ void QgsQuickPrint::setMapCanvas(QgsMapCanvas * thepMapCanvas)
mpMapCanvas=thepMapCanvas;
}

void QgsQuickPrint::print()
void QgsQuickPrint::printMap()
{
if ( mOutputFileName.isEmpty() )
{
@@ -43,7 +43,7 @@ class GUI_EXPORT QgsQuickPrint:public QObject
enum SymbolScalingType {ScaleUp, ScaleDown};

public slots:
void print();
void printMap();
void setTitle(QString theText);
void setName(QString theText);
void setCopyright(QString theText);
@@ -105,7 +105,7 @@ void QuickPrintGui::on_buttonBox_accepted()
myQuickPrint.setLogo1(QgsApplication::iconsPath() + "/qgis-icon.png");
myQuickPrint.setNorthArrow(myNorthArrowFile);
myQuickPrint.setOutputPdf(myOutputFileName);
myQuickPrint.print();
myQuickPrint.printMap();
}
else
{

0 comments on commit 4c20f9c

Please sign in to comment.