Skip to content

Commit 072c0f2

Browse files
committedOct 9, 2017
[needs-doc] Add auxiliary storage tab
1 parent e30cc31 commit 072c0f2

File tree

3 files changed

+500
-0
lines changed

3 files changed

+500
-0
lines changed
 

‎images/images.qrc

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -485,6 +485,7 @@
485485
<file>themes/default/unlocked.svg</file>
486486
<file>themes/default/unlockedGray.svg</file>
487487
<file>themes/default/user.svg</file>
488+
<file>themes/default/mIconAuxiliaryStorage.svg</file>
488489
<file>flags/eu.png</file>
489490
<file>flags/bn.png</file>
490491
<file>flags/gl.png</file>
Lines changed: 280 additions & 0 deletions
Loading

‎src/ui/qgsvectorlayerpropertiesbase.ui

Lines changed: 219 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -273,6 +273,15 @@
273273
<normaloff>:/images/themes/default/propertyicons/overlay.png</normaloff>:/images/themes/default/propertyicons/overlay.png</iconset>
274274
</property>
275275
</item>
276+
<item>
277+
<property name="text">
278+
<string>Auxiliary Storage</string>
279+
</property>
280+
<property name="icon">
281+
<iconset resource="../../images/images.qrc">
282+
<normaloff>:/images/themes/default/mIconAuxiliaryStorage.svg</normaloff>:/images/themes/default/mIconAuxiliaryStorage.svg</iconset>
283+
</property>
284+
</item>
276285
</widget>
277286
</item>
278287
</layout>
@@ -1995,6 +2004,216 @@ border-radius: 2px;</string>
19952004
</item>
19962005
</layout>
19972006
</widget>
2007+
<widget class="QWidget" name="mOptsPage_AuxiliaryStorage">
2008+
<widget class="QWidget" name="mAuxiliaryStorageScrollArea" native="true">
2009+
<property name="geometry">
2010+
<rect>
2011+
<x>0</x>
2012+
<y>0</y>
2013+
<width>671</width>
2014+
<height>551</height>
2015+
</rect>
2016+
</property>
2017+
<layout class="QGridLayout" name="gridLayout">
2018+
<item row="1" column="0">
2019+
<widget class="QgsCollapsibleGroupBox" name="mAuxiliaryStorageInformationGrpBox">
2020+
<property name="title">
2021+
<string>Information</string>
2022+
</property>
2023+
<property name="flat">
2024+
<bool>false</bool>
2025+
</property>
2026+
<property name="checkable">
2027+
<bool>false</bool>
2028+
</property>
2029+
<property name="syncGroup">
2030+
<string notr="true">vectormeta</string>
2031+
</property>
2032+
<layout class="QGridLayout" name="gridLayout_11">
2033+
<property name="sizeConstraint">
2034+
<enum>QLayout::SetDefaultConstraint</enum>
2035+
</property>
2036+
<item row="2" column="1">
2037+
<widget class="QLineEdit" name="mAuxiliaryStorageFeaturesLineEdit">
2038+
<property name="enabled">
2039+
<bool>false</bool>
2040+
</property>
2041+
<property name="readOnly">
2042+
<bool>true</bool>
2043+
</property>
2044+
</widget>
2045+
</item>
2046+
<item row="3" column="0">
2047+
<widget class="QLabel" name="mAuxiliaryStorageFieldsLabel">
2048+
<property name="text">
2049+
<string>Fields</string>
2050+
</property>
2051+
</widget>
2052+
</item>
2053+
<item row="2" column="0">
2054+
<widget class="QLabel" name="mAuxiliaryStorageFeaturesLabel">
2055+
<property name="text">
2056+
<string>Features</string>
2057+
</property>
2058+
</widget>
2059+
</item>
2060+
<item row="3" column="1">
2061+
<widget class="QLineEdit" name="mAuxiliaryStorageFieldsLineEdit">
2062+
<property name="enabled">
2063+
<bool>false</bool>
2064+
</property>
2065+
<property name="toolTip">
2066+
<string>A name used to identify the layer. The short name is a text string used for machine-to-machine communication.</string>
2067+
</property>
2068+
<property name="inputMask">
2069+
<string/>
2070+
</property>
2071+
<property name="text">
2072+
<string/>
2073+
</property>
2074+
<property name="readOnly">
2075+
<bool>true</bool>
2076+
</property>
2077+
<property name="placeholderText">
2078+
<string/>
2079+
</property>
2080+
</widget>
2081+
</item>
2082+
<item row="1" column="0">
2083+
<widget class="QLabel" name="mAuxiliaryStorageKeyLabel">
2084+
<property name="text">
2085+
<string>Key</string>
2086+
</property>
2087+
</widget>
2088+
</item>
2089+
<item row="1" column="1">
2090+
<widget class="QLineEdit" name="mAuxiliaryStorageKeyLineEdit">
2091+
<property name="enabled">
2092+
<bool>false</bool>
2093+
</property>
2094+
<property name="readOnly">
2095+
<bool>true</bool>
2096+
</property>
2097+
</widget>
2098+
</item>
2099+
</layout>
2100+
</widget>
2101+
</item>
2102+
<item row="3" column="0">
2103+
<layout class="QHBoxLayout" name="horizontalLayout_6">
2104+
<property name="bottomMargin">
2105+
<number>0</number>
2106+
</property>
2107+
<item>
2108+
<widget class="QPushButton" name="mAuxiliaryStorageActions">
2109+
<property name="text">
2110+
<string>Auxiliary Layer</string>
2111+
</property>
2112+
</widget>
2113+
</item>
2114+
<item>
2115+
<spacer name="horizontalSpacer_8">
2116+
<property name="orientation">
2117+
<enum>Qt::Horizontal</enum>
2118+
</property>
2119+
<property name="sizeHint" stdset="0">
2120+
<size>
2121+
<width>40</width>
2122+
<height>20</height>
2123+
</size>
2124+
</property>
2125+
</spacer>
2126+
</item>
2127+
</layout>
2128+
</item>
2129+
<item row="2" column="0">
2130+
<widget class="QgsCollapsibleGroupBox" name="mAuxiliaryStorageFieldsGrpBox">
2131+
<property name="title">
2132+
<string>Fields</string>
2133+
</property>
2134+
<layout class="QGridLayout" name="gridLayout_3">
2135+
<item row="3" column="0" rowspan="3">
2136+
<layout class="QHBoxLayout" name="horizontalLayout_5">
2137+
<property name="sizeConstraint">
2138+
<enum>QLayout::SetDefaultConstraint</enum>
2139+
</property>
2140+
<property name="bottomMargin">
2141+
<number>0</number>
2142+
</property>
2143+
<item>
2144+
<spacer name="horizontalSpacer_3">
2145+
<property name="orientation">
2146+
<enum>Qt::Horizontal</enum>
2147+
</property>
2148+
<property name="sizeHint" stdset="0">
2149+
<size>
2150+
<width>40</width>
2151+
<height>20</height>
2152+
</size>
2153+
</property>
2154+
</spacer>
2155+
</item>
2156+
<item>
2157+
<widget class="QPushButton" name="mAuxiliaryStorageFieldsDeleteBtn">
2158+
<property name="text">
2159+
<string/>
2160+
</property>
2161+
<property name="icon">
2162+
<iconset resource="../../images/images.qrc">
2163+
<normaloff>:/images/themes/default/symbologyRemove.svg</normaloff>:/images/themes/default/symbologyRemove.svg</iconset>
2164+
</property>
2165+
</widget>
2166+
</item>
2167+
<item>
2168+
<spacer name="horizontalSpacer_7">
2169+
<property name="orientation">
2170+
<enum>Qt::Horizontal</enum>
2171+
</property>
2172+
<property name="sizeHint" stdset="0">
2173+
<size>
2174+
<width>40</width>
2175+
<height>20</height>
2176+
</size>
2177+
</property>
2178+
</spacer>
2179+
</item>
2180+
</layout>
2181+
</item>
2182+
<item row="0" column="0">
2183+
<widget class="QTreeWidget" name="mAuxiliaryStorageFieldsTree">
2184+
<column>
2185+
<property name="text">
2186+
<string>Target</string>
2187+
</property>
2188+
</column>
2189+
<column>
2190+
<property name="text">
2191+
<string>Property</string>
2192+
</property>
2193+
</column>
2194+
<column>
2195+
<property name="text">
2196+
<string>Type</string>
2197+
</property>
2198+
</column>
2199+
</widget>
2200+
</item>
2201+
</layout>
2202+
</widget>
2203+
</item>
2204+
<item row="0" column="0">
2205+
<widget class="QLabel" name="label_6">
2206+
<property name="text">
2207+
<string>Auxiliary Storage tables can contain additional data that should only belong to the project file. For instance, specific location or rotation for labels. Auxiliary data are saved in qgd files (sqlite). New fields can be added from any data defined widget when needed. Be aware that this information will NOT be saved in you datasource but only in the project file.</string>
2208+
</property>
2209+
<property name="wordWrap">
2210+
<bool>true</bool>
2211+
</property>
2212+
</widget>
2213+
</item>
2214+
</layout>
2215+
</widget>
2216+
</widget>
19982217
</widget>
19992218
</item>
20002219
</layout>

0 commit comments

Comments
 (0)
Please sign in to comment.