Skip to content

Commit 88c9d5b

Browse files
committedDec 16, 2011
Merge branch 'wms_layer_title_abstract'
2 parents c336eca + dcae360 commit 88c9d5b

9 files changed

+210
-81
lines changed
 

‎src/app/qgsrasterlayerproperties.cpp

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -860,6 +860,9 @@ void QgsRasterLayerProperties::sync()
860860
txtbMetadata->document()->setDefaultStyleSheet( myStyle );
861861
txtbMetadata->setHtml( mRasterLayer->metadata() );
862862

863+
mLayerTitleLineEdit->setText( mRasterLayer->title() );
864+
mLayerAbstractTextEdit->setPlainText( mRasterLayer->abstract() );
865+
863866
} // QgsRasterLayerProperties::sync()
864867

865868
void QgsRasterLayerProperties::syncColormapTab()
@@ -1442,6 +1445,9 @@ void QgsRasterLayerProperties::apply()
14421445
mRasterLayer->thumbnailAsPixmap( &myQPixmap );
14431446
pixmapThumbnail->setPixmap( myQPixmap );
14441447

1448+
mRasterLayer->setTitle( mLayerTitleLineEdit->text() );
1449+
mRasterLayer->setAbstract( mLayerAbstractTextEdit->toPlainText() );
1450+
14451451
// update symbology
14461452
emit refreshLegend( mRasterLayer->id(), false );
14471453

‎src/app/qgsvectorlayerproperties.cpp

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -178,6 +178,13 @@ QgsVectorLayerProperties::QgsVectorLayerProperties(
178178
mOverlayDialogs.push_back( d );
179179
}
180180

181+
//layer title and abstract
182+
if ( layer )
183+
{
184+
mLayerTitleLineEdit->setText( layer->title() );
185+
mLayerAbstractTextEdit->setPlainText( layer->abstract() );
186+
}
187+
181188
tabWidget->setCurrentIndex( 0 );
182189

183190
QSettings settings;
@@ -815,6 +822,10 @@ void QgsVectorLayerProperties::apply()
815822
( *it )->apply();
816823
}
817824

825+
//layer title and abstract
826+
layer->setTitle( mLayerTitleLineEdit->text() );
827+
layer->setAbstract( mLayerAbstractTextEdit->toPlainText() );
828+
818829
// update symbology
819830
emit refreshLegend( layer->id(), false );
820831

‎src/core/qgsmaplayer.cpp

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -255,6 +255,20 @@ bool QgsMapLayer::readXML( const QDomNode& layer_node )
255255
mne = mnl.toElement();
256256
setLayerName( mne.text() );
257257

258+
//title
259+
QDomElement titleElem = layer_node.firstChildElement( "title" );
260+
if ( !titleElem.isNull() )
261+
{
262+
mTitle = titleElem.text();
263+
}
264+
265+
//abstract
266+
QDomElement abstractElem = layer_node.firstChildElement( "abstract" );
267+
if ( !abstractElem.isNull() )
268+
{
269+
mAbstract = abstractElem.text();
270+
}
271+
258272
//read transparency level
259273
QDomNode transparencyNode = layer_node.namedItem( "transparencyLevelInt" );
260274
if ( ! transparencyNode.isNull() )
@@ -340,7 +354,19 @@ bool QgsMapLayer::writeXML( QDomNode & layer_node, QDomDocument & document )
340354
QDomText layerNameText = document.createTextNode( name() );
341355
layerName.appendChild( layerNameText );
342356

357+
// layer title
358+
QDomElement layerTitle = document.createElement( "title" ) ;
359+
QDomText layerTitleText = document.createTextNode( title() );
360+
layerTitle.appendChild( layerTitleText );
361+
362+
// layer abstract
363+
QDomElement layerAbstract = document.createElement( "abstract" );
364+
QDomText layerAbstractText = document.createTextNode( abstract() );
365+
layerAbstract.appendChild( layerAbstractText );
366+
343367
maplayer.appendChild( layerName );
368+
maplayer.appendChild( layerTitle );
369+
maplayer.appendChild( layerAbstract );
344370

345371
// timestamp if supported
346372
if ( timestamp() > QDateTime() )

‎src/core/qgsmaplayer.h

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -87,6 +87,12 @@ class CORE_EXPORT QgsMapLayer : public QObject
8787
*/
8888
QString const & name() const;
8989

90+
void setTitle( const QString& title ) { mTitle = title; }
91+
const QString& title() const { return mTitle; }
92+
93+
void setAbstract( const QString& abstract ) { mAbstract = abstract; }
94+
const QString& abstract() const { return mAbstract; }
95+
9096
/**Synchronises with changes in the datasource
9197
@note added in version 1.6*/
9298
virtual void reload() {}
@@ -415,6 +421,11 @@ class CORE_EXPORT QgsMapLayer : public QObject
415421
/** layer's Spatial reference system */
416422
QgsCoordinateReferenceSystem* mCRS;
417423

424+
QString mTitle;
425+
426+
/**Description of the layer*/
427+
QString mAbstract;
428+
418429
private:
419430

420431
/** private copy constructor - QgsMapLayer not copyable */

‎src/mapserver/qgsconfigparser.cpp

Lines changed: 6 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -363,44 +363,34 @@ void QgsConfigParser::appendCRSElementsToLayer( QDomElement& layerElement, QDomD
363363

364364
//insert the CRS elements after the title element to be in accordance with the WMS 1.3 specification
365365
QDomElement titleElement = layerElement.firstChildElement( "Title" );
366+
QDomElement abstractElement = layerElement.firstChildElement( "Abstract" );
367+
QDomElement CRSPrecedingElement = abstractElement.isNull() ? titleElement : abstractElement; //last element before the CRS elements
366368

367369
//In case the number of advertised CRS is constrained
368370
QStringList constrainedCrsList = supportedOutputCrsList();
369371
if ( constrainedCrsList.size() > 0 )
370372
{
371373
for ( int i = constrainedCrsList.size() - 1; i >= 0; --i )
372374
{
373-
appendCRSElementToLayer( layerElement, titleElement, constrainedCrsList.at( i ), doc );
374-
#if 0
375-
QDomElement crsElement = doc.createElement( "CRS" );
376-
QDomText crsText = doc.createTextNode( constrainedCrsList.at( i ) );
377-
crsElement.appendChild( crsText );
378-
layerElement.insertAfter( crsElement, titleElement );
379-
#endif
375+
appendCRSElementToLayer( layerElement, CRSPrecedingElement, constrainedCrsList.at( i ), doc );
380376
}
381377
}
382378
else //no crs constraint
383379
{
384380
foreach( QString crs, crsList )
385381
{
386-
appendCRSElementToLayer( layerElement, titleElement, crs, doc );
387-
#if 0
388-
QDomElement crsElement = doc.createElement( "CRS" );
389-
QDomText crsText = doc.createTextNode( *crsIt );
390-
crsElement.appendChild( crsText );
391-
layerElement.insertAfter( crsElement, titleElement );
392-
#endif
382+
appendCRSElementToLayer( layerElement, CRSPrecedingElement, crs, doc );
393383
}
394384
}
395385
}
396386

397-
void QgsConfigParser::appendCRSElementToLayer( QDomElement& layerElement, const QDomElement& titleElement, const QString& crsText, QDomDocument& doc ) const
387+
void QgsConfigParser::appendCRSElementToLayer( QDomElement& layerElement, const QDomElement& precedingElement, const QString& crsText, QDomDocument& doc ) const
398388
{
399389
QString version = doc.documentElement().attribute( "version" );
400390
QDomElement crsElement = doc.createElement( version == "1.1.1" ? "SRS" : "CRS" );
401391
QDomText crsTextNode = doc.createTextNode( crsText );
402392
crsElement.appendChild( crsTextNode );
403-
layerElement.insertAfter( crsElement, titleElement );
393+
layerElement.insertAfter( crsElement, precedingElement );
404394
}
405395

406396
QgsComposition* QgsConfigParser::createPrintComposition( const QString& composerTemplate, QgsMapRenderer* mapRenderer, const QMap< QString, QString >& parameterMap ) const

‎src/mapserver/qgsconfigparser.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -170,7 +170,7 @@ class QgsConfigParser
170170
@return true in case of success*/
171171
bool crsSetForLayer( const QDomElement& layerElement, QSet<QString> &crsSet ) const;
172172
void appendCRSElementsToLayer( QDomElement& layerElement, QDomDocument& doc, const QStringList &crsList ) const;
173-
void appendCRSElementToLayer( QDomElement& layerElement, const QDomElement& titleElement, const QString& crsText, QDomDocument& doc ) const;
173+
void appendCRSElementToLayer( QDomElement& layerElement, const QDomElement& precedingElement, const QString& crsText, QDomDocument& doc ) const;
174174

175175
void setDefaultLegendSettings();
176176
};

‎src/mapserver/qgsprojectparser.cpp

Lines changed: 15 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -239,10 +239,24 @@ void QgsProjectParser::addLayers( QDomDocument &doc,
239239
layerElem.appendChild( nameElem );
240240

241241
QDomElement titleElem = doc.createElement( "Title" );
242-
QDomText titleText = doc.createTextNode( currentLayer->name() );
242+
QString titleName = currentLayer->title();
243+
if ( titleName.isEmpty() )
244+
{
245+
titleName = currentLayer->name();
246+
}
247+
QDomText titleText = doc.createTextNode( titleName );
243248
titleElem.appendChild( titleText );
244249
layerElem.appendChild( titleElem );
245250

251+
QString abstract = currentLayer->abstract();
252+
if ( !abstract.isEmpty() )
253+
{
254+
QDomElement abstractElem = doc.createElement( "Abstract" );
255+
QDomText abstractText = doc.createTextNode( abstract );
256+
abstractElem.appendChild( abstractText );
257+
layerElem.appendChild( abstractElem );
258+
}
259+
246260
//CRS
247261
QStringList crsList = createCRSListForLayer( currentLayer );
248262
appendCRSElementsToLayer( layerElem, doc, crsList );

‎src/ui/qgsrasterlayerpropertiesbase.ui

Lines changed: 48 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -1724,11 +1724,41 @@
17241724
<attribute name="title">
17251725
<string>Metadata</string>
17261726
</attribute>
1727-
<layout class="QGridLayout">
1728-
<property name="margin">
1729-
<number>0</number>
1730-
</property>
1727+
<layout class="QGridLayout" name="gridLayout_6">
17311728
<item row="0" column="0">
1729+
<widget class="QLabel" name="mLayerTitleLabel">
1730+
<property name="text">
1731+
<string>Title</string>
1732+
</property>
1733+
</widget>
1734+
</item>
1735+
<item row="1" column="0">
1736+
<widget class="QLineEdit" name="mLayerTitleLineEdit"/>
1737+
</item>
1738+
<item row="2" column="0">
1739+
<widget class="QLabel" name="mLayerAbstractLabel">
1740+
<property name="text">
1741+
<string>Abstract</string>
1742+
</property>
1743+
</widget>
1744+
</item>
1745+
<item row="3" column="0">
1746+
<widget class="QTextEdit" name="mLayerAbstractTextEdit">
1747+
<property name="sizePolicy">
1748+
<sizepolicy hsizetype="Expanding" vsizetype="Minimum">
1749+
<horstretch>0</horstretch>
1750+
<verstretch>0</verstretch>
1751+
</sizepolicy>
1752+
</property>
1753+
<property name="maximumSize">
1754+
<size>
1755+
<width>16777215</width>
1756+
<height>50</height>
1757+
</size>
1758+
</property>
1759+
</widget>
1760+
</item>
1761+
<item row="4" column="0">
17321762
<widget class="QTextBrowser" name="txtbMetadata"/>
17331763
</item>
17341764
</layout>
@@ -1771,22 +1801,24 @@
17711801
<string>&lt;!DOCTYPE HTML PUBLIC &quot;-//W3C//DTD HTML 4.0//EN&quot; &quot;http://www.w3.org/TR/REC-html40/strict.dtd&quot;&gt;
17721802
&lt;html&gt;&lt;head&gt;&lt;meta name=&quot;qrichtext&quot; content=&quot;1&quot; /&gt;&lt;style type=&quot;text/css&quot;&gt;
17731803
p, li { white-space: pre-wrap; }
1774-
&lt;/style&gt;&lt;/head&gt;&lt;body style=&quot; font-family:'Ubuntu'; font-size:10pt; font-weight:400; font-style:normal;&quot;&gt;
1804+
&lt;/style&gt;&lt;/head&gt;&lt;body style=&quot; font-family:'Ubuntu'; font-size:9pt; font-weight:400; font-style:normal;&quot;&gt;
17751805
&lt;table border=&quot;0&quot; style=&quot;-qt-table-type: root; margin-top:4px; margin-bottom:4px; margin-left:4px; margin-right:4px;&quot;&gt;
17761806
&lt;tr&gt;
17771807
&lt;td style=&quot;border: none;&quot;&gt;
1778-
&lt;p style=&quot;-qt-paragraph-type:empty; margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; font-family:'Sans';&quot;&gt;&lt;/p&gt;
1808+
&lt;p style=&quot;-qt-paragraph-type:empty; margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;&quot;&gt;&lt;/p&gt;
1809+
&lt;p style=&quot;-qt-paragraph-type:empty; margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; font-size:10pt;&quot;&gt;&lt;/p&gt;
1810+
&lt;p style=&quot;-qt-paragraph-type:empty; margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; font-family:'Sans'; font-size:10pt;&quot;&gt;&lt;/p&gt;
17791811
&lt;p style=&quot;-qt-paragraph-type:empty; margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; font-size:11pt;&quot;&gt;&lt;/p&gt;
1780-
&lt;p style=&quot;-qt-paragraph-type:empty; margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; font-family:'Sans';&quot;&gt;&lt;/p&gt;
1781-
&lt;p style=&quot;-qt-paragraph-type:empty; margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; font-family:'Sans';&quot;&gt;&lt;/p&gt;
1782-
&lt;p style=&quot;-qt-paragraph-type:empty; margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; font-family:'Sans';&quot;&gt;&lt;/p&gt;
1783-
&lt;p style=&quot;-qt-paragraph-type:empty; margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; font-family:'Sans';&quot;&gt;&lt;/p&gt;
1784-
&lt;p style=&quot;-qt-paragraph-type:empty; margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; font-family:'Sans';&quot;&gt;&lt;/p&gt;
1785-
&lt;p style=&quot;-qt-paragraph-type:empty; margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; font-family:'Sans';&quot;&gt;&lt;/p&gt;
1786-
&lt;p style=&quot;-qt-paragraph-type:empty; margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; font-family:'Sans';&quot;&gt;&lt;/p&gt;
1787-
&lt;p style=&quot;-qt-paragraph-type:empty; margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; font-family:'Sans';&quot;&gt;&lt;/p&gt;
1788-
&lt;p style=&quot;-qt-paragraph-type:empty; margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; font-family:'Sans';&quot;&gt;&lt;/p&gt;
1789-
&lt;p style=&quot;-qt-paragraph-type:empty; margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; font-family:'Sans Serif'; font-size:9pt;&quot;&gt;&lt;/p&gt;&lt;/td&gt;&lt;/tr&gt;&lt;/table&gt;&lt;/body&gt;&lt;/html&gt;</string>
1812+
&lt;p style=&quot;-qt-paragraph-type:empty; margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; font-family:'Sans'; font-size:10pt;&quot;&gt;&lt;/p&gt;
1813+
&lt;p style=&quot;-qt-paragraph-type:empty; margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; font-family:'Sans'; font-size:10pt;&quot;&gt;&lt;/p&gt;
1814+
&lt;p style=&quot;-qt-paragraph-type:empty; margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; font-family:'Sans'; font-size:10pt;&quot;&gt;&lt;/p&gt;
1815+
&lt;p style=&quot;-qt-paragraph-type:empty; margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; font-family:'Sans'; font-size:10pt;&quot;&gt;&lt;/p&gt;
1816+
&lt;p style=&quot;-qt-paragraph-type:empty; margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; font-family:'Sans'; font-size:10pt;&quot;&gt;&lt;/p&gt;
1817+
&lt;p style=&quot;-qt-paragraph-type:empty; margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; font-family:'Sans'; font-size:10pt;&quot;&gt;&lt;/p&gt;
1818+
&lt;p style=&quot;-qt-paragraph-type:empty; margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; font-family:'Sans'; font-size:10pt;&quot;&gt;&lt;/p&gt;
1819+
&lt;p style=&quot;-qt-paragraph-type:empty; margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; font-family:'Sans'; font-size:10pt;&quot;&gt;&lt;/p&gt;
1820+
&lt;p style=&quot;-qt-paragraph-type:empty; margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; font-family:'Sans'; font-size:10pt;&quot;&gt;&lt;/p&gt;
1821+
&lt;p style=&quot;-qt-paragraph-type:empty; margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; font-family:'Sans Serif';&quot;&gt;&lt;/p&gt;&lt;/td&gt;&lt;/tr&gt;&lt;/table&gt;&lt;/body&gt;&lt;/html&gt;</string>
17901822
</property>
17911823
</widget>
17921824
</item>

‎src/ui/qgsvectorlayerpropertiesbase.ui

Lines changed: 86 additions & 47 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
<rect>
77
<x>0</x>
88
<y>0</y>
9-
<width>777</width>
9+
<width>762</width>
1010
<height>672</height>
1111
</rect>
1212
</property>
@@ -20,49 +20,7 @@
2020
<property name="modal">
2121
<bool>true</bool>
2222
</property>
23-
<layout class="QGridLayout" name="gridLayout">
24-
<item row="1" column="0">
25-
<layout class="QHBoxLayout" name="horizontalLayout">
26-
<item>
27-
<widget class="QPushButton" name="pbnLoadDefaultStyle">
28-
<property name="text">
29-
<string>Restore Default Style</string>
30-
</property>
31-
</widget>
32-
</item>
33-
<item>
34-
<widget class="QPushButton" name="pbnSaveDefaultStyle">
35-
<property name="text">
36-
<string>Save As Default</string>
37-
</property>
38-
</widget>
39-
</item>
40-
<item>
41-
<widget class="QPushButton" name="pbnLoadStyle">
42-
<property name="text">
43-
<string>Load Style ...</string>
44-
</property>
45-
</widget>
46-
</item>
47-
<item>
48-
<widget class="QPushButton" name="pbnSaveStyleAs">
49-
<property name="text">
50-
<string>Save Style ...</string>
51-
</property>
52-
</widget>
53-
</item>
54-
</layout>
55-
</item>
56-
<item row="2" column="0">
57-
<widget class="QDialogButtonBox" name="buttonBox">
58-
<property name="orientation">
59-
<enum>Qt::Horizontal</enum>
60-
</property>
61-
<property name="standardButtons">
62-
<set>QDialogButtonBox::Apply|QDialogButtonBox::Cancel|QDialogButtonBox::Help|QDialogButtonBox::Ok</set>
63-
</property>
64-
</widget>
65-
</item>
23+
<layout class="QGridLayout" name="gridLayout_8">
6624
<item row="0" column="0">
6725
<widget class="QTabWidget" name="tabWidget">
6826
<property name="currentIndex">
@@ -372,8 +330,8 @@
372330
<rect>
373331
<x>0</x>
374332
<y>0</y>
375-
<width>755</width>
376-
<height>542</height>
333+
<width>746</width>
334+
<height>569</height>
377335
</rect>
378336
</property>
379337
<layout class="QGridLayout" name="gridLayout_3">
@@ -590,8 +548,47 @@
590548
<attribute name="title">
591549
<string>Metadata</string>
592550
</attribute>
593-
<layout class="QGridLayout" name="gridLayout_8">
551+
<layout class="QGridLayout" name="gridLayout">
594552
<item row="0" column="0">
553+
<widget class="QLabel" name="mLayerTitleLabel">
554+
<property name="text">
555+
<string>Title</string>
556+
</property>
557+
</widget>
558+
</item>
559+
<item row="1" column="0">
560+
<widget class="QLineEdit" name="mLayerTitleLineEdit"/>
561+
</item>
562+
<item row="2" column="0">
563+
<widget class="QLabel" name="mLayerAbstractLabel">
564+
<property name="text">
565+
<string>Abstract</string>
566+
</property>
567+
</widget>
568+
</item>
569+
<item row="3" column="0">
570+
<widget class="QTextEdit" name="mLayerAbstractTextEdit">
571+
<property name="sizePolicy">
572+
<sizepolicy hsizetype="Expanding" vsizetype="Fixed">
573+
<horstretch>0</horstretch>
574+
<verstretch>50</verstretch>
575+
</sizepolicy>
576+
</property>
577+
<property name="minimumSize">
578+
<size>
579+
<width>0</width>
580+
<height>50</height>
581+
</size>
582+
</property>
583+
<property name="maximumSize">
584+
<size>
585+
<width>16777215</width>
586+
<height>80</height>
587+
</size>
588+
</property>
589+
</widget>
590+
</item>
591+
<item row="4" column="0">
595592
<widget class="QTextEdit" name="teMetadata">
596593
<property name="lineWidth">
597594
<number>2</number>
@@ -1197,6 +1194,48 @@
11971194
</widget>
11981195
</widget>
11991196
</item>
1197+
<item row="1" column="0">
1198+
<layout class="QHBoxLayout" name="horizontalLayout">
1199+
<item>
1200+
<widget class="QPushButton" name="pbnLoadDefaultStyle">
1201+
<property name="text">
1202+
<string>Restore Default Style</string>
1203+
</property>
1204+
</widget>
1205+
</item>
1206+
<item>
1207+
<widget class="QPushButton" name="pbnSaveDefaultStyle">
1208+
<property name="text">
1209+
<string>Save As Default</string>
1210+
</property>
1211+
</widget>
1212+
</item>
1213+
<item>
1214+
<widget class="QPushButton" name="pbnLoadStyle">
1215+
<property name="text">
1216+
<string>Load Style ...</string>
1217+
</property>
1218+
</widget>
1219+
</item>
1220+
<item>
1221+
<widget class="QPushButton" name="pbnSaveStyleAs">
1222+
<property name="text">
1223+
<string>Save Style ...</string>
1224+
</property>
1225+
</widget>
1226+
</item>
1227+
</layout>
1228+
</item>
1229+
<item row="2" column="0">
1230+
<widget class="QDialogButtonBox" name="buttonBox">
1231+
<property name="orientation">
1232+
<enum>Qt::Horizontal</enum>
1233+
</property>
1234+
<property name="standardButtons">
1235+
<set>QDialogButtonBox::Apply|QDialogButtonBox::Cancel|QDialogButtonBox::Help|QDialogButtonBox::Ok</set>
1236+
</property>
1237+
</widget>
1238+
</item>
12001239
</layout>
12011240
</widget>
12021241
<layoutdefault spacing="6" margin="11"/>

0 commit comments

Comments
 (0)
Please sign in to comment.