QGIS API Documentation  2.18.21-Las Palmas (9fba24a)
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
6  Email : [email protected]
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"
17 #include "qgsgroupwmsdatadialog.h"
18 
19 
21  : QDialog( parent, fl )
22 {
23  setupUi( this );
24  // WMS Name validator
25  QValidator *shortNameValidator = new QRegExpValidator( QgsApplication::shortNameRegExp(), this );
26  mShortNameLineEdit->setValidator( shortNameValidator );
27 }
28 
30 {
31  return mShortNameLineEdit->text();
32 }
33 
35 {
36  mShortNameLineEdit->setText( shortName );
37 }
38 
40 {
41  return mTitleLineEdit->text();
42 }
43 
45 {
46  mTitleLineEdit->setText( title );
47 }
48 
50 {
51  return mAbstractTextEdit->toPlainText();
52 }
53 
55 {
56  mAbstractTextEdit->setPlainText( abstract );
57 }
QgsGroupWMSDataDialog(QWidget *parent=nullptr, const Qt::WindowFlags &fl=QgisGui::ModalDialogFlags)
Constructor.
void setGroupAbstract(const QString &abstract)
set group WMS abstract
void setupUi(QWidget *widget)
void setGroupShortName(const QString &shortName)
set group WMS short name
static QRegExp shortNameRegExp()
Returns the short name regular expression for line edit validator.
QString groupShortName()
return group WMS short name
QString groupTitle()
return group WMS title
typedef WindowFlags
void setGroupTitle(const QString &title)
set group WMS title
QString groupAbstract()
return group WMS abstract