Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Various fixes #26

Merged
merged 7 commits into from
Feb 10, 2020
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion gui_utils.py
Original file line number Diff line number Diff line change
@@ -3,7 +3,7 @@
/***************************************************************************
MapsPrinter
A QGIS plugin
Show, hide and export several print layouts to pdf, svg or image file format in one-click
Export several print layouts to pdf, svg or image file format in one-click
-------------------
begin : 2019-11-05
git sha : $Format:%H$
2 changes: 1 addition & 1 deletion maps_printer.py
Original file line number Diff line number Diff line change
@@ -3,7 +3,7 @@
/***************************************************************************
MapsPrinter
A QGIS plugin
Show, hide and export several print layouts to pdf, svg or image file format in one-click
Export several print layouts to pdf, svg or image file format in one-click
-------------------
begin : 2014-07-24
git sha : $Format:%H$
2 changes: 1 addition & 1 deletion processing_provider/export_layouts_from_folder.py
Original file line number Diff line number Diff line change
@@ -3,7 +3,7 @@
/***************************************************************************
MapsPrinter
A QGIS plugin
Show, hide and export several print layouts to pdf, svg or image file format in one-click
Export several print layouts to pdf, svg or image file format in one-click
-------------------
begin : 2020-01-10
git sha : $Format:%H$
2 changes: 1 addition & 1 deletion processing_provider/export_layouts_from_project.py
Original file line number Diff line number Diff line change
@@ -3,7 +3,7 @@
/***************************************************************************
MapsPrinter
A QGIS plugin
Show, hide and export several print layouts to pdf, svg or image file format in one-click
Export several print layouts to pdf, svg or image file format in one-click
-------------------
begin : 2019-11-05
git sha : $Format:%H$
2 changes: 1 addition & 1 deletion processing_provider/maps_printer_provider.py
Original file line number Diff line number Diff line change
@@ -3,7 +3,7 @@
/***************************************************************************
MapsPrinter
A QGIS plugin
Show, hide and export several print layouts to pdf, svg or image file format in one-click
Export several print layouts to pdf, svg or image file format in one-click
-------------------
begin : 2019-11-05
git sha : $Format:%H$
18 changes: 1 addition & 17 deletions processor.py
Original file line number Diff line number Diff line change
@@ -3,7 +3,7 @@
/***************************************************************************
MapsPrinter
A QGIS plugin
Show, hide and export several print layouts to pdf, svg or image file format in one-click
Export several print layouts to pdf, svg or image file format in one-click
-------------------
begin : 2019-11-05
git sha : $Format:%H$
@@ -96,21 +96,9 @@ def exportCompo(self, cView, folder, title, extension):
# Do the export process
exporter = QgsLayoutExporter(cView)

# Allow export cancelation
#QCoreApplication.processEvents()
#self.buttonBox.rejected.connect(self.stopProcessing)

if myAtlas.enabled():
# for i in range(0, myAtlas.count()):
feedback = QgsFeedback()

# Allow to listen to changes and increase progressbar
# or abort the operation
# with process input events
#QCoreApplication.processEvents()
#self.buttonBox.rejected.connect(feedback.cancel)
#feedback.progressChanged.connect(self.pageProcessed)

# if single file export is required (only compatible with pdf, yet)
# singleFile can be true and None in that case
if cView.customProperty('singleFile') is not False and extension == '.pdf':
@@ -156,10 +144,6 @@ def exportCompo(self, cView, folder, title, extension):
else:
result = exporter.exportToImage(os.path.join(folder, title + extension), exportSettings)

# When the export fails (eg it's aborted)
# if not result == QgsLayoutExporter.Success:
# #print( 'noresult')
# self.stopProcessing()
return result == QgsLayoutExporter.Success

def overrideExportSettings(self, layout, extension):