-
-
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.
[layout] Convert scalebar and legent from 2.x
- Loading branch information
Showing
19 changed files
with
559 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
Large diffs are not rendered by default.
Oops, something went wrong.
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
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
Binary file added
BIN
+12.1 KB
...pected_importComposerTemplateArrow_0/expected_importComposerTemplateArrow_0.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+5.93 KB
...pected_importComposerTemplateLabel_0/expected_importComposerTemplateLabel_0.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+11.2 KB
...cted_importComposerTemplateLegend_0/expected_importComposerTemplateLegend_0.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+80.3 KB
...r/expected_importComposerTemplateMap_0/expected_importComposerTemplateMap_0.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+7.93 KB
...ed_importComposerTemplatePicture_0/expected_importComposerTemplatePicture_0.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+16.6 KB
...ed_importComposerTemplatePolygon_0/expected_importComposerTemplatePolygon_0.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+11.5 KB
..._importComposerTemplatePolyline_0/expected_importComposerTemplatePolyline_0.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+8.51 KB
..._importComposerTemplateScaleBar_0/expected_importComposerTemplateScaleBar_0.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+6.41 KB
...pected_importComposerTemplateShape_0/expected_importComposerTemplateShape_0.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+121 KB
...nverter/expected_importComposerTemplate_0/expected_importComposerTemplate_0.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+39.8 KB
...nverter/expected_importComposerTemplate_1/expected_importComposerTemplate_1.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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,106 @@ | ||
<Composer> | ||
<Composition snapGridOffsetY="0" numPages="1" name="composer title" printAsRaster="0" snapGridOffsetX="0" snapGridResolution="10" alignmentSnap="1" resizeToContentsMarginTop="0" paperHeight="210" paperWidth="297" generateWorldFile="0" worldFileMap="" resizeToContentsMarginRight="0" smartGuides="1" resizeToContentsMarginBottom="0" snapTolerancePixels="5" guidesVisible="1" resizeToContentsMarginLeft="0" showPages="1" printResolution="305" snapping="0" gridVisible="0"> | ||
<symbol type="fill" clip_to_extent="1" name="" alpha="1"> | ||
<layer pass="0" enabled="1" locked="0" class="SimpleFill"> | ||
<prop v="3x:0,0,0,0,0,0" k="border_width_map_unit_scale"/> | ||
<prop v="241,244,199,255" k="color"/> | ||
<prop v="bevel" k="joinstyle"/> | ||
<prop v="0,0" k="offset"/> | ||
<prop v="3x:0,0,0,0,0,0" k="offset_map_unit_scale"/> | ||
<prop v="MM" k="offset_unit"/> | ||
<prop v="175,179,138,255" k="outline_color"/> | ||
<prop v="solid" k="outline_style"/> | ||
<prop v="0.26" k="outline_width"/> | ||
<prop v="MM" k="outline_width_unit"/> | ||
<prop v="solid" k="style"/> | ||
<data_defined_properties> | ||
<Option type="Map"> | ||
<Option type="QString" value="" name="name"/> | ||
<Option name="properties"/> | ||
<Option type="QString" value="collection" name="type"/> | ||
</Option> | ||
</data_defined_properties> | ||
</layer> | ||
</symbol> | ||
<ComposerLegend rasterBorderWidth="0" rasterBorder="1" title="My Legend" resizeToContents="1" symbolWidth="12" map="0" columnSpace="1" wmsLegendHeight="25" splitLayer="1" rasterBorderColor="0,0,0,255" columnCount="2" titleAlignment="4" fontColor="#f065ec" wmsLegendWidth="50" symbolHeight="9" boxSpace="5" wrapChar=" " legendFilterByAtlas="0" lineSpacing="1" equalColumnWidth="1"> | ||
<styles> | ||
<style name="title" marginBottom="6"> | ||
<styleFont description="MS Shell Dlg 2,36,-1,5,50,0,0,0,0,0" style=""/> | ||
</style> | ||
<style name="group" marginTop="5"> | ||
<styleFont description="MS Shell Dlg 2,14,-1,5,50,0,0,0,0,0" style=""/> | ||
</style> | ||
<style name="subgroup" marginTop="4"> | ||
<styleFont description="MS Shell Dlg 2,12,-1,5,50,0,0,0,0,0" style=""/> | ||
</style> | ||
<style name="symbol" marginTop="3"> | ||
<styleFont description="MS Shell Dlg 2,8.25,-1,5,50,0,0,0,0,0" style=""/> | ||
</style> | ||
<style marginLeft="4" name="symbolLabel" marginTop="3"> | ||
<styleFont description="MS Shell Dlg 2,12,-1,5,50,0,0,0,0,0" style=""/> | ||
</style> | ||
</styles> | ||
<layer-tree-group> | ||
<customproperties/> | ||
<layer-tree-layer providerKey="ogr" name="points" expanded="1" checked="Qt::Checked" id="points20171212162310546" source="../../../dev/QGIS/tests/testdata/points.shp"> | ||
<customproperties/> | ||
</layer-tree-layer> | ||
<layer-tree-layer providerKey="ogr" name="polys" expanded="1" checked="Qt::Checked" id="polys20171212162309844" source="../../../dev/QGIS/tests/testdata/polys.shp"> | ||
<customproperties/> | ||
</layer-tree-layer> | ||
<custom-order enabled="0"/> | ||
</layer-tree-group> | ||
<ComposerItem y="79.6503" excludeFromExports="0" frame="false" background="true" uuid="{69fb50e1-e233-4105-a97f-f95d3fa822cc}" lastValidViewScaleFactor="-1" zValue="6" frameJoinStyle="miter" id="" positionLock="false" width="70.6219" positionMode="0" itemRotation="0" page="1" outlineWidth="0.3" blendMode="0" pagey="79.6503" x="139.64" pagex="139.64" visibility="1" opacity="1" height="89.5"> | ||
<FrameColor blue="0" green="0" red="0" alpha="255"/> | ||
<BackgroundColor blue="255" green="255" red="255" alpha="255"/> | ||
<dataDefinedProperties> | ||
<Option type="Map"> | ||
<Option type="QString" value="" name="name"/> | ||
<Option name="properties"/> | ||
<Option type="QString" value="collection" name="type"/> | ||
</Option> | ||
</dataDefinedProperties> | ||
<customproperties/> | ||
</ComposerItem> | ||
</ComposerLegend> | ||
<dataDefinedProperties> | ||
<Option type="Map"> | ||
<Option type="QString" value="" name="name"/> | ||
<Option type="Map" name="properties"> | ||
<Option type="Map" name="dataDefinedHeight"> | ||
<Option type="bool" value="true" name="active"/> | ||
<Option type="QString" value="28" name="expression"/> | ||
<Option type="int" value="3" name="type"/> | ||
</Option> | ||
<Option type="Map" name="dataDefinedMapScale"> | ||
<Option type="bool" value="true" name="active"/> | ||
<Option type="QString" value="24126145*1.1" name="expression"/> | ||
<Option type="int" value="3" name="type"/> | ||
</Option> | ||
<Option type="Map" name="dataDefinedPositionX"> | ||
<Option type="bool" value="true" name="active"/> | ||
<Option type="QString" value="200" name="expression"/> | ||
<Option type="int" value="3" name="type"/> | ||
</Option> | ||
<Option type="Map" name="dataDefinedPositionY"> | ||
<Option type="bool" value="true" name="active"/> | ||
<Option type="QString" value="70" name="expression"/> | ||
<Option type="int" value="3" name="type"/> | ||
</Option> | ||
<Option type="Map" name="dataDefinedSource"> | ||
<Option type="bool" value="false" name="active"/> | ||
<Option type="QString" value="" name="expression"/> | ||
<Option type="int" value="3" name="type"/> | ||
</Option> | ||
<Option type="Map" name="dataDefinedWidth"> | ||
<Option type="bool" value="true" name="active"/> | ||
<Option type="QString" value="24" name="expression"/> | ||
<Option type="int" value="3" name="type"/> | ||
</Option> | ||
</Option> | ||
<Option type="QString" value="collection" name="type"/> | ||
</Option> | ||
</dataDefinedProperties> | ||
<customproperties/> | ||
</Composition> | ||
</Composer> |
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,84 @@ | ||
<Composer> | ||
<Composition snapGridOffsetY="0" numPages="1" name="composer title" printAsRaster="0" snapGridOffsetX="0" snapGridResolution="10" alignmentSnap="1" resizeToContentsMarginTop="0" paperHeight="210" paperWidth="297" generateWorldFile="0" worldFileMap="" resizeToContentsMarginRight="0" smartGuides="1" resizeToContentsMarginBottom="0" snapTolerancePixels="5" guidesVisible="1" resizeToContentsMarginLeft="0" showPages="1" printResolution="305" snapping="0" gridVisible="0"> | ||
<symbol type="fill" clip_to_extent="1" name="" alpha="1"> | ||
<layer pass="0" enabled="1" locked="0" class="SimpleFill"> | ||
<prop v="3x:0,0,0,0,0,0" k="border_width_map_unit_scale"/> | ||
<prop v="241,244,199,255" k="color"/> | ||
<prop v="bevel" k="joinstyle"/> | ||
<prop v="0,0" k="offset"/> | ||
<prop v="3x:0,0,0,0,0,0" k="offset_map_unit_scale"/> | ||
<prop v="MM" k="offset_unit"/> | ||
<prop v="175,179,138,255" k="outline_color"/> | ||
<prop v="solid" k="outline_style"/> | ||
<prop v="0.26" k="outline_width"/> | ||
<prop v="MM" k="outline_width_unit"/> | ||
<prop v="solid" k="style"/> | ||
<data_defined_properties> | ||
<Option type="Map"> | ||
<Option type="QString" value="" name="name"/> | ||
<Option name="properties"/> | ||
<Option type="QString" value="collection" name="type"/> | ||
</Option> | ||
</data_defined_properties> | ||
</layer> | ||
</symbol> | ||
<ComposerScaleBar numUnitsPerSegment="250000" labelBarSpace="5" boxContentSpace="4" mapId="0" maxBarWidth="150" numSegments="6" segmentSizeMode="0" numSegmentsLeft="3" unitType="meters" lineJoinStyle="round" style="Double Box" alignment="1" numMapUnitsPerScaleBarUnit="2000" outlineWidth="0.4" minBarWidth="50" unitLabel="hh" lineCapStyle="square" height="3" segmentMillimeters="5.64513"> | ||
<scaleBarFont description="MS Shell Dlg 2,12,-1,5,50,0,0,0,0,0" style=""/> | ||
<fillColor blue="28" green="26" red="227" alpha="255"/> | ||
<fillColor2 blue="111" green="191" red="253" alpha="255"/> | ||
<strokeColor blue="0" green="127" red="255" alpha="255"/> | ||
<textColor blue="232" green="98" red="226" alpha="255"/> | ||
<ComposerItem y="184.506" excludeFromExports="0" frame="false" background="false" uuid="{2988dc5e-ea88-428f-93dd-e6aaf719dc8e}" lastValidViewScaleFactor="-1" zValue="7" frameJoinStyle="miter" id="" positionLock="false" width="62.9878" positionMode="0" itemRotation="0" page="1" outlineWidth="0.3" blendMode="0" pagey="184.506" x="140.608" pagex="140.608" visibility="1" opacity="1" height="20.2"> | ||
<FrameColor blue="0" green="0" red="0" alpha="255"/> | ||
<BackgroundColor blue="255" green="255" red="255" alpha="255"/> | ||
<dataDefinedProperties> | ||
<Option type="Map"> | ||
<Option type="QString" value="" name="name"/> | ||
<Option name="properties"/> | ||
<Option type="QString" value="collection" name="type"/> | ||
</Option> | ||
</dataDefinedProperties> | ||
<customproperties/> | ||
</ComposerItem> | ||
</ComposerScaleBar> | ||
<dataDefinedProperties> | ||
<Option type="Map"> | ||
<Option type="QString" value="" name="name"/> | ||
<Option type="Map" name="properties"> | ||
<Option type="Map" name="dataDefinedHeight"> | ||
<Option type="bool" value="true" name="active"/> | ||
<Option type="QString" value="28" name="expression"/> | ||
<Option type="int" value="3" name="type"/> | ||
</Option> | ||
<Option type="Map" name="dataDefinedMapScale"> | ||
<Option type="bool" value="true" name="active"/> | ||
<Option type="QString" value="24126145*1.1" name="expression"/> | ||
<Option type="int" value="3" name="type"/> | ||
</Option> | ||
<Option type="Map" name="dataDefinedPositionX"> | ||
<Option type="bool" value="true" name="active"/> | ||
<Option type="QString" value="200" name="expression"/> | ||
<Option type="int" value="3" name="type"/> | ||
</Option> | ||
<Option type="Map" name="dataDefinedPositionY"> | ||
<Option type="bool" value="true" name="active"/> | ||
<Option type="QString" value="70" name="expression"/> | ||
<Option type="int" value="3" name="type"/> | ||
</Option> | ||
<Option type="Map" name="dataDefinedSource"> | ||
<Option type="bool" value="false" name="active"/> | ||
<Option type="QString" value="" name="expression"/> | ||
<Option type="int" value="3" name="type"/> | ||
</Option> | ||
<Option type="Map" name="dataDefinedWidth"> | ||
<Option type="bool" value="true" name="active"/> | ||
<Option type="QString" value="24" name="expression"/> | ||
<Option type="int" value="3" name="type"/> | ||
</Option> | ||
</Option> | ||
<Option type="QString" value="collection" name="type"/> | ||
</Option> | ||
</dataDefinedProperties> | ||
<customproperties/> | ||
</Composition> | ||
</Composer> |