-
-
Notifications
You must be signed in to change notification settings - Fork 3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[layouts][needs-docs] Add a PDF export settings dialog which is shown
whenever exporting a layout to PDF This matches the behavior with SVG and raster exports, and allows users to set specific properties for the export (such as text rendering format) Fixes #8844 (cherry picked from commit 484d5d9)
- Loading branch information
1 parent
de18cc7
commit aa15512
Showing
3 changed files
with
191 additions
and
10 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,129 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<ui version="4.0"> | ||
<class>QgsPdfExportOptionsDialog</class> | ||
<widget class="QDialog" name="QgsPdfExportOptionsDialog"> | ||
<property name="geometry"> | ||
<rect> | ||
<x>0</x> | ||
<y>0</y> | ||
<width>489</width> | ||
<height>190</height> | ||
</rect> | ||
</property> | ||
<property name="windowTitle"> | ||
<string>PDF Export Options</string> | ||
</property> | ||
<layout class="QVBoxLayout" name="verticalLayout"> | ||
<item> | ||
<widget class="QgsCollapsibleGroupBoxBasic" name="groupBox"> | ||
<property name="title"> | ||
<string>PDF Options</string> | ||
</property> | ||
<layout class="QGridLayout" name="gridLayout" columnstretch="0,1"> | ||
<item row="1" column="0" colspan="2"> | ||
<widget class="QCheckBox" name="mIncludeMetadataCheckbox"> | ||
<property name="text"> | ||
<string>Export RDF metadata</string> | ||
</property> | ||
<property name="checked"> | ||
<bool>true</bool> | ||
</property> | ||
</widget> | ||
</item> | ||
<item row="2" column="1"> | ||
<widget class="QComboBox" name="mTextRenderFormatComboBox"/> | ||
</item> | ||
<item row="2" column="0"> | ||
<widget class="QLabel" name="label_6"> | ||
<property name="text"> | ||
<string>Text export</string> | ||
</property> | ||
</widget> | ||
</item> | ||
<item row="0" column="0" colspan="2"> | ||
<widget class="QCheckBox" name="mForceVectorCheckBox"> | ||
<property name="toolTip"> | ||
<string>If checked, the layout will always be kept as vector objects when exported to a compatible format, even if the appearance of the resultant file does not match the layouts settings. If unchecked, some elements in the layout may be rasterized in order to keep their appearance intact.</string> | ||
</property> | ||
<property name="text"> | ||
<string>Always export as vectors</string> | ||
</property> | ||
</widget> | ||
</item> | ||
</layout> | ||
</widget> | ||
</item> | ||
<item> | ||
<spacer name="verticalSpacer"> | ||
<property name="orientation"> | ||
<enum>Qt::Vertical</enum> | ||
</property> | ||
<property name="sizeHint" stdset="0"> | ||
<size> | ||
<width>20</width> | ||
<height>40</height> | ||
</size> | ||
</property> | ||
</spacer> | ||
</item> | ||
<item> | ||
<widget class="QDialogButtonBox" name="buttonBox"> | ||
<property name="orientation"> | ||
<enum>Qt::Horizontal</enum> | ||
</property> | ||
<property name="standardButtons"> | ||
<set>QDialogButtonBox::Cancel|QDialogButtonBox::Save</set> | ||
</property> | ||
</widget> | ||
</item> | ||
</layout> | ||
</widget> | ||
<customwidgets> | ||
<customwidget> | ||
<class>QgsCollapsibleGroupBoxBasic</class> | ||
<extends>QGroupBox</extends> | ||
<header location="global">qgscollapsiblegroupbox.h</header> | ||
<container>1</container> | ||
</customwidget> | ||
</customwidgets> | ||
<tabstops> | ||
<tabstop>mForceVectorCheckBox</tabstop> | ||
<tabstop>mIncludeMetadataCheckbox</tabstop> | ||
<tabstop>mTextRenderFormatComboBox</tabstop> | ||
</tabstops> | ||
<resources/> | ||
<connections> | ||
<connection> | ||
<sender>buttonBox</sender> | ||
<signal>accepted()</signal> | ||
<receiver>QgsPdfExportOptionsDialog</receiver> | ||
<slot>accept()</slot> | ||
<hints> | ||
<hint type="sourcelabel"> | ||
<x>248</x> | ||
<y>254</y> | ||
</hint> | ||
<hint type="destinationlabel"> | ||
<x>157</x> | ||
<y>274</y> | ||
</hint> | ||
</hints> | ||
</connection> | ||
<connection> | ||
<sender>buttonBox</sender> | ||
<signal>rejected()</signal> | ||
<receiver>QgsPdfExportOptionsDialog</receiver> | ||
<slot>reject()</slot> | ||
<hints> | ||
<hint type="sourcelabel"> | ||
<x>316</x> | ||
<y>260</y> | ||
</hint> | ||
<hint type="destinationlabel"> | ||
<x>286</x> | ||
<y>274</y> | ||
</hint> | ||
</hints> | ||
</connection> | ||
</connections> | ||
</ui> |