21#include <QRegularExpressionValidator>
23#include "moc_qgsgroupwmsdatadialog.cpp"
30 : QDialog( parent, fl )
42 mMapLayerServerPropertiesWidget->setHasWfsTitle(
false );
43 mMapLayerServerPropertiesWidget->setServerProperties( mServerProperties.get() );
48 mMapLayerServerPropertiesWidget->save();
49 return mServerProperties->shortName();
54 mServerProperties->setShortName( shortName );
55 mMapLayerServerPropertiesWidget->sync();
60 mMapLayerServerPropertiesWidget->save();
61 return mServerProperties->title();
66 mServerProperties->setTitle( title );
67 mMapLayerServerPropertiesWidget->sync();
72 mMapLayerServerPropertiesWidget->save();
73 return mServerProperties->abstract();
78 mServerProperties->setAbstract( abstract );
79 mMapLayerServerPropertiesWidget->sync();
84 return mServerProperties.get();
89 return mServerProperties.get();
94 mMapLayerServerPropertiesWidget->save();
100 return mComputeTimeDimension->checkState() == Qt::Checked;
105 mComputeTimeDimension->setCheckState(
hasTimeDimension ? Qt::Checked : Qt::Unchecked );
115 mGroupRequestModeCombo->setCurrentIndex( mGroupRequestModeCombo->findData( QVariant::fromValue(
groupRequestMode ) ) );
WmsGroupRequestMode
Request mode of groups in a WMS context.
@ Normal
Group and children can be requested.
@ Opaque
Group can be requested, children cannot (appears like a single layer).
void setHasTimeDimension(bool hasTimeDimension)
Sets whether the time dimension should be computed for this group or not.
bool hasTimeDimension() const
Returns whether the time dimension should be computed for this group or not.
Qgis::WmsGroupRequestMode groupRequestMode() const
Returns the request mode of the group.
void setGroupRequestMode(Qgis::WmsGroupRequestMode groupRequestMode)
Sets the request mode of the group.
Q_DECL_DEPRECATED void setGroupAbstract(const QString &abstract)
Sets group WMS abstract.
QgsGroupWmsDataDialog(QWidget *parent=nullptr, Qt::WindowFlags fl=QgsGuiUtils::ModalDialogFlags)
Constructor.
Q_DECL_DEPRECATED void setGroupShortName(const QString &shortName)
Sets group WMS short name.
Q_DECL_DEPRECATED void setGroupTitle(const QString &title)
Sets group WMS title.
Q_DECL_DEPRECATED QString groupAbstract() const
Returns group WMS abstract.
Q_DECL_DEPRECATED QString groupTitle() const
Returns group WMS title.
Q_DECL_DEPRECATED QString groupShortName() const
Returns group WMS short name.
QgsMapLayerServerProperties * serverProperties()
Returns QGIS Server Properties for the layer tree group.
static void enableAutoGeometryRestore(QWidget *widget, const QString &key=QString())
Register the widget to allow its position to be automatically saved and restored when open and closed...
Manages QGIS Server properties for a map layer.