QGIS API Documentation 3.41.0-Master (fda2aa46e9a)
Loading...
Searching...
No Matches
qgsgroupwmsdatadialog.cpp
Go to the documentation of this file.
1/***************************************************************************
2 qgsscalevisibilitydialog.cpp
3 --------------------------------------
4 Date : 20.05.2014
5 Copyright : (C) 2014 Denis Rouzaud
7***************************************************************************
8* *
9* This program is free software; you can redistribute it and/or modify *
10* it under the terms of the GNU General Public License as published by *
11* the Free Software Foundation; either version 2 of the License, or *
12* (at your option) any later version. *
13* *
14***************************************************************************/
15
16#include "qgsapplication.h"
18#include "moc_qgsgroupwmsdatadialog.cpp"
19
20#include <QRegularExpressionValidator>
21
22QgsGroupWmsDataDialog::QgsGroupWmsDataDialog( QWidget *parent, Qt::WindowFlags fl )
23 : QDialog( parent, fl )
24{
25 setupUi( this );
26 // WMS Name validator
27 QValidator *shortNameValidator = new QRegularExpressionValidator( QgsApplication::shortNameRegularExpression(), this );
28 mShortNameLineEdit->setValidator( shortNameValidator );
29}
30
32{
33 return mShortNameLineEdit->text();
34}
35
36void QgsGroupWmsDataDialog::setGroupShortName( const QString &shortName )
37{
38 mShortNameLineEdit->setText( shortName );
39}
40
42{
43 return mTitleLineEdit->text();
44}
45
46void QgsGroupWmsDataDialog::setGroupTitle( const QString &title )
47{
48 mTitleLineEdit->setText( title );
49}
50
52{
53 return mAbstractTextEdit->toPlainText();
54}
55
56void QgsGroupWmsDataDialog::setGroupAbstract( const QString &abstract )
57{
58 mAbstractTextEdit->setPlainText( abstract );
59}
static QRegularExpression shortNameRegularExpression()
Returns the short name regular expression for line edit validator.
QString groupTitle()
Returns group WMS title.
void setGroupAbstract(const QString &abstract)
Sets group WMS abstract.
QgsGroupWmsDataDialog(QWidget *parent=nullptr, Qt::WindowFlags fl=QgsGuiUtils::ModalDialogFlags)
Constructor.
void setGroupShortName(const QString &shortName)
Sets group WMS short name.
void setGroupTitle(const QString &title)
Sets group WMS title.
QString groupAbstract()
Returns group WMS abstract.
QString groupShortName()
Returns group WMS short name.