Skip to content
Permalink
Browse files

add select/unselect buttons in project properties->OWS server->WFS la…

…yers (fix #5865)
  • Loading branch information
brushtyler committed Oct 4, 2012
1 parent 5455d8a commit 89f105131484132aebea8940ca65785a9d7c63a0
Showing with 41 additions and 3 deletions.
  1. +18 −0 src/app/qgsprojectproperties.cpp
  2. +6 −0 src/app/qgsprojectproperties.h
  3. +17 −3 src/ui/qgsprojectpropertiesbase.ui
@@ -744,6 +744,24 @@ void QgsProjectProperties::on_pbnWMSSetUsedSRS_clicked()
mWMSList->addItems( crsList.values() );
}

void QgsProjectProperties::on_pbnWFSLayersSelectAll_clicked()
{
for ( int i = 0; i < twWFSLayers->rowCount(); i++ )
{
QCheckBox *cb = qobject_cast<QCheckBox *>( twWFSLayers->cellWidget( i, 1 ) );
cb->setChecked( true );
}
}

void QgsProjectProperties::on_pbnWFSLayersUnselectAll_clicked()
{
for ( int i = 0; i < twWFSLayers->rowCount(); i++ )
{
QCheckBox *cb = qobject_cast<QCheckBox *>( twWFSLayers->cellWidget( i, 1 ) );
cb->setChecked( false );
}
}

void QgsProjectProperties::on_pbnAddScale_clicked()
{
int myScale = QInputDialog::getInt(
@@ -113,6 +113,12 @@ class QgsProjectProperties : public QDialog, private Ui::QgsProjectPropertiesBas
void on_pbnWMSRemoveSRS_clicked();
void on_pbnWMSSetUsedSRS_clicked();

/*!
* Slots to select/unselect all the WFS layers
*/
void on_pbnWFSLayersSelectAll_clicked();
void on_pbnWFSLayersUnselectAll_clicked();

/*!
* Slots for Styles
*/
@@ -801,9 +801,9 @@
<property name="geometry">
<rect>
<x>0</x>
<y>0</y>
<y>-390</y>
<width>670</width>
<height>926</height>
<height>959</height>
</rect>
</property>
<layout class="QGridLayout" name="gridLayout">
@@ -1105,7 +1105,7 @@
<string>WFS Capabilitities</string>
</property>
<layout class="QGridLayout" name="gridLayout_8">
<item row="0" column="0">
<item row="0" column="0" colspan="2">
<widget class="QTableWidget" name="twWFSLayers">
<property name="sizePolicy">
<sizepolicy hsizetype="Expanding" vsizetype="MinimumExpanding">
@@ -1125,6 +1125,20 @@
</column>
</widget>
</item>
<item row="1" column="1">
<widget class="QPushButton" name="pbnWFSLayersUnselectAll">
<property name="text">
<string>Unselect all</string>
</property>
</widget>
</item>
<item row="1" column="0">
<widget class="QPushButton" name="pbnWFSLayersSelectAll">
<property name="text">
<string>Select all</string>
</property>
</widget>
</item>
</layout>
</widget>
</item>

0 comments on commit 89f1051

Please sign in to comment.
You can’t perform that action at this time.