mirror of
https://github.com/qgis/QGIS.git
synced 2025-03-23 00:05:43 -04:00
Unify appearance and behaviour of export settings dialogs
This commit is contained in:
parent
88077e4ab9
commit
4f9f5d1cd1
@ -3996,7 +3996,7 @@ bool QgsLayoutDesignerDialog::getSvgExportSettings( QgsLayoutExporter::SvgExport
|
|||||||
}
|
}
|
||||||
|
|
||||||
// open options dialog
|
// open options dialog
|
||||||
QDialog dialog;
|
QDialog dialog( this );
|
||||||
Ui::QgsSvgExportOptionsDialog options;
|
Ui::QgsSvgExportOptionsDialog options;
|
||||||
options.setupUi( &dialog );
|
options.setupUi( &dialog );
|
||||||
|
|
||||||
@ -4066,7 +4066,7 @@ bool QgsLayoutDesignerDialog::getPdfExportSettings( QgsLayoutExporter::PdfExport
|
|||||||
}
|
}
|
||||||
|
|
||||||
// open options dialog
|
// open options dialog
|
||||||
QDialog dialog;
|
QDialog dialog( this );
|
||||||
Ui::QgsPdfExportOptionsDialog options;
|
Ui::QgsPdfExportOptionsDialog options;
|
||||||
options.setupUi( &dialog );
|
options.setupUi( &dialog );
|
||||||
|
|
||||||
|
@ -7,7 +7,7 @@
|
|||||||
<x>0</x>
|
<x>0</x>
|
||||||
<y>0</y>
|
<y>0</y>
|
||||||
<width>533</width>
|
<width>533</width>
|
||||||
<height>394</height>
|
<height>424</height>
|
||||||
</rect>
|
</rect>
|
||||||
</property>
|
</property>
|
||||||
<property name="windowTitle">
|
<property name="windowTitle">
|
||||||
@ -15,18 +15,11 @@
|
|||||||
</property>
|
</property>
|
||||||
<layout class="QVBoxLayout" name="verticalLayout">
|
<layout class="QVBoxLayout" name="verticalLayout">
|
||||||
<item>
|
<item>
|
||||||
<widget class="QGroupBox" name="groupBox">
|
<widget class="QgsCollapsibleGroupBoxBasic" name="groupBox">
|
||||||
<property name="title">
|
<property name="title">
|
||||||
<string>Export Options</string>
|
<string>Export Options</string>
|
||||||
</property>
|
</property>
|
||||||
<layout class="QGridLayout" name="gridLayout">
|
<layout class="QGridLayout" name="gridLayout">
|
||||||
<item row="0" column="0" colspan="2">
|
|
||||||
<widget class="QLabel" name="label_9">
|
|
||||||
<property name="text">
|
|
||||||
<string>Export resolution</string>
|
|
||||||
</property>
|
|
||||||
</widget>
|
|
||||||
</item>
|
|
||||||
<item row="2" column="0" colspan="2">
|
<item row="2" column="0" colspan="2">
|
||||||
<widget class="QLabel" name="label_13">
|
<widget class="QLabel" name="label_13">
|
||||||
<property name="text">
|
<property name="text">
|
||||||
@ -50,6 +43,13 @@
|
|||||||
</property>
|
</property>
|
||||||
</widget>
|
</widget>
|
||||||
</item>
|
</item>
|
||||||
|
<item row="0" column="0" colspan="2">
|
||||||
|
<widget class="QLabel" name="label_9">
|
||||||
|
<property name="text">
|
||||||
|
<string>Export resolution</string>
|
||||||
|
</property>
|
||||||
|
</widget>
|
||||||
|
</item>
|
||||||
<item row="1" column="2" colspan="2">
|
<item row="1" column="2" colspan="2">
|
||||||
<widget class="QgsSpinBox" name="mWidthSpinBox">
|
<widget class="QgsSpinBox" name="mWidthSpinBox">
|
||||||
<property name="specialValueText">
|
<property name="specialValueText">
|
||||||
@ -114,6 +114,26 @@
|
|||||||
</property>
|
</property>
|
||||||
</spacer>
|
</spacer>
|
||||||
</item>
|
</item>
|
||||||
|
<item row="4" column="0" colspan="5">
|
||||||
|
<widget class="QCheckBox" name="mGenerateWorldFile">
|
||||||
|
<property name="toolTip">
|
||||||
|
<string>If checked, a separate world file which georeferences exported images will be created</string>
|
||||||
|
</property>
|
||||||
|
<property name="text">
|
||||||
|
<string>Generate world file</string>
|
||||||
|
</property>
|
||||||
|
</widget>
|
||||||
|
</item>
|
||||||
|
<item row="3" column="0" colspan="5">
|
||||||
|
<widget class="QCheckBox" name="mAntialiasingCheckBox">
|
||||||
|
<property name="toolTip">
|
||||||
|
<string>If unchecked, the generated images will not be antialiased</string>
|
||||||
|
</property>
|
||||||
|
<property name="text">
|
||||||
|
<string>Enable antialiasing</string>
|
||||||
|
</property>
|
||||||
|
</widget>
|
||||||
|
</item>
|
||||||
</layout>
|
</layout>
|
||||||
</widget>
|
</widget>
|
||||||
</item>
|
</item>
|
||||||
@ -143,7 +163,7 @@
|
|||||||
<item>
|
<item>
|
||||||
<widget class="QgsSpinBox" name="mLeftMarginSpinBox">
|
<widget class="QgsSpinBox" name="mLeftMarginSpinBox">
|
||||||
<property name="suffix">
|
<property name="suffix">
|
||||||
<string> px</string>
|
<string/>
|
||||||
</property>
|
</property>
|
||||||
<property name="maximum">
|
<property name="maximum">
|
||||||
<number>1000</number>
|
<number>1000</number>
|
||||||
@ -160,7 +180,7 @@
|
|||||||
<item>
|
<item>
|
||||||
<widget class="QgsSpinBox" name="mRightMarginSpinBox">
|
<widget class="QgsSpinBox" name="mRightMarginSpinBox">
|
||||||
<property name="suffix">
|
<property name="suffix">
|
||||||
<string> px</string>
|
<string/>
|
||||||
</property>
|
</property>
|
||||||
<property name="maximum">
|
<property name="maximum">
|
||||||
<number>1000</number>
|
<number>1000</number>
|
||||||
@ -179,7 +199,7 @@
|
|||||||
<item row="0" column="1">
|
<item row="0" column="1">
|
||||||
<widget class="QLabel" name="label_4">
|
<widget class="QLabel" name="label_4">
|
||||||
<property name="text">
|
<property name="text">
|
||||||
<string>Top margin</string>
|
<string>Top margin (px)</string>
|
||||||
</property>
|
</property>
|
||||||
</widget>
|
</widget>
|
||||||
</item>
|
</item>
|
||||||
@ -212,7 +232,7 @@
|
|||||||
<item row="0" column="2">
|
<item row="0" column="2">
|
||||||
<widget class="QgsSpinBox" name="mTopMarginSpinBox">
|
<widget class="QgsSpinBox" name="mTopMarginSpinBox">
|
||||||
<property name="suffix">
|
<property name="suffix">
|
||||||
<string> px</string>
|
<string/>
|
||||||
</property>
|
</property>
|
||||||
<property name="maximum">
|
<property name="maximum">
|
||||||
<number>1000</number>
|
<number>1000</number>
|
||||||
@ -222,7 +242,7 @@
|
|||||||
<item row="2" column="2">
|
<item row="2" column="2">
|
||||||
<widget class="QgsSpinBox" name="mBottomMarginSpinBox">
|
<widget class="QgsSpinBox" name="mBottomMarginSpinBox">
|
||||||
<property name="suffix">
|
<property name="suffix">
|
||||||
<string> px</string>
|
<string/>
|
||||||
</property>
|
</property>
|
||||||
<property name="maximum">
|
<property name="maximum">
|
||||||
<number>1000</number>
|
<number>1000</number>
|
||||||
@ -234,26 +254,6 @@
|
|||||||
</layout>
|
</layout>
|
||||||
</widget>
|
</widget>
|
||||||
</item>
|
</item>
|
||||||
<item>
|
|
||||||
<widget class="QCheckBox" name="mGenerateWorldFile">
|
|
||||||
<property name="toolTip">
|
|
||||||
<string>If checked, a separate world file which georeferences exported images will be created</string>
|
|
||||||
</property>
|
|
||||||
<property name="text">
|
|
||||||
<string>Generate world file</string>
|
|
||||||
</property>
|
|
||||||
</widget>
|
|
||||||
</item>
|
|
||||||
<item>
|
|
||||||
<widget class="QCheckBox" name="mAntialiasingCheckBox">
|
|
||||||
<property name="toolTip">
|
|
||||||
<string>If unchecked, the generated images will not be antialiased</string>
|
|
||||||
</property>
|
|
||||||
<property name="text">
|
|
||||||
<string>Enable antialiasing</string>
|
|
||||||
</property>
|
|
||||||
</widget>
|
|
||||||
</item>
|
|
||||||
<item>
|
<item>
|
||||||
<spacer name="verticalSpacer">
|
<spacer name="verticalSpacer">
|
||||||
<property name="orientation">
|
<property name="orientation">
|
||||||
@ -283,7 +283,7 @@
|
|||||||
<customwidget>
|
<customwidget>
|
||||||
<class>QgsCollapsibleGroupBoxBasic</class>
|
<class>QgsCollapsibleGroupBoxBasic</class>
|
||||||
<extends>QGroupBox</extends>
|
<extends>QGroupBox</extends>
|
||||||
<header>qgscollapsiblegroupbox.h</header>
|
<header location="global">qgscollapsiblegroupbox.h</header>
|
||||||
<container>1</container>
|
<container>1</container>
|
||||||
</customwidget>
|
</customwidget>
|
||||||
<customwidget>
|
<customwidget>
|
||||||
@ -296,6 +296,8 @@
|
|||||||
<tabstop>mResolutionSpinBox</tabstop>
|
<tabstop>mResolutionSpinBox</tabstop>
|
||||||
<tabstop>mWidthSpinBox</tabstop>
|
<tabstop>mWidthSpinBox</tabstop>
|
||||||
<tabstop>mHeightSpinBox</tabstop>
|
<tabstop>mHeightSpinBox</tabstop>
|
||||||
|
<tabstop>mAntialiasingCheckBox</tabstop>
|
||||||
|
<tabstop>mGenerateWorldFile</tabstop>
|
||||||
<tabstop>mClipToContentGroupBox</tabstop>
|
<tabstop>mClipToContentGroupBox</tabstop>
|
||||||
<tabstop>mTopMarginSpinBox</tabstop>
|
<tabstop>mTopMarginSpinBox</tabstop>
|
||||||
<tabstop>mLeftMarginSpinBox</tabstop>
|
<tabstop>mLeftMarginSpinBox</tabstop>
|
||||||
|
@ -7,7 +7,7 @@
|
|||||||
<x>0</x>
|
<x>0</x>
|
||||||
<y>0</y>
|
<y>0</y>
|
||||||
<width>489</width>
|
<width>489</width>
|
||||||
<height>190</height>
|
<height>197</height>
|
||||||
</rect>
|
</rect>
|
||||||
</property>
|
</property>
|
||||||
<property name="windowTitle">
|
<property name="windowTitle">
|
||||||
@ -17,7 +17,7 @@
|
|||||||
<item>
|
<item>
|
||||||
<widget class="QgsCollapsibleGroupBoxBasic" name="groupBox">
|
<widget class="QgsCollapsibleGroupBoxBasic" name="groupBox">
|
||||||
<property name="title">
|
<property name="title">
|
||||||
<string>PDF Options</string>
|
<string>Export Options</string>
|
||||||
</property>
|
</property>
|
||||||
<layout class="QGridLayout" name="gridLayout" columnstretch="0,1">
|
<layout class="QGridLayout" name="gridLayout" columnstretch="0,1">
|
||||||
<item row="1" column="0" colspan="2">
|
<item row="1" column="0" colspan="2">
|
||||||
|
@ -7,7 +7,7 @@
|
|||||||
<x>0</x>
|
<x>0</x>
|
||||||
<y>0</y>
|
<y>0</y>
|
||||||
<width>489</width>
|
<width>489</width>
|
||||||
<height>351</height>
|
<height>385</height>
|
||||||
</rect>
|
</rect>
|
||||||
</property>
|
</property>
|
||||||
<property name="windowTitle">
|
<property name="windowTitle">
|
||||||
@ -17,7 +17,7 @@
|
|||||||
<item>
|
<item>
|
||||||
<widget class="QgsCollapsibleGroupBoxBasic" name="groupBox">
|
<widget class="QgsCollapsibleGroupBoxBasic" name="groupBox">
|
||||||
<property name="title">
|
<property name="title">
|
||||||
<string>SVG Options</string>
|
<string>Export Options</string>
|
||||||
</property>
|
</property>
|
||||||
<layout class="QGridLayout" name="gridLayout" columnstretch="0,1">
|
<layout class="QGridLayout" name="gridLayout" columnstretch="0,1">
|
||||||
<item row="0" column="0" colspan="2">
|
<item row="0" column="0" colspan="2">
|
||||||
|
Loading…
x
Reference in New Issue
Block a user