QGIS API Documentation  2.18.21-Las Palmas (9fba24a)
qgsauthcertificatemanager.cpp
Go to the documentation of this file.
1 /***************************************************************************
2  qgsauthcertificatemanager.cpp
3  ---------------------
4  begin : September, 2015
5  copyright : (C) 2015 by Boundless Spatial, Inc. USA
6  author : Larry Shaffer
7  email : lshaffer at boundlessgeo dot com
8  ***************************************************************************
9  * *
10  * This program is free software; you can redistribute it and/or modify *
11  * it under the terms of the GNU General Public License as published by *
12  * the Free Software Foundation; either version 2 of the License, or *
13  * (at your option) any later version. *
14  * *
15  ***************************************************************************/
16 
18 
19 #include <QDialog>
20 #include <QDialogButtonBox>
21 #include <QPushButton>
22 
24  : QWidget( parent )
25 {
26  setupUi( this );
27 }
28 
30 {
31 }
32 
33 
34 
36  : QDialog( parent )
37 {
38  setWindowTitle( tr( "Certificate Manager" ) );
39  QVBoxLayout *layout = new QVBoxLayout( this );
40  layout->setMargin( 6 );
41 
42  mCertEditors = new QgsAuthCertEditors( this );
43  layout->addWidget( mCertEditors );
44 
45  QDialogButtonBox *buttonBox = new QDialogButtonBox( QDialogButtonBox::Close,
46  Qt::Horizontal, this );
47  buttonBox->button( QDialogButtonBox::Close )->setDefault( true );
48  connect( buttonBox, SIGNAL( rejected() ), this, SLOT( close() ) );
49  layout->addWidget( buttonBox );
50 
51  setLayout( layout );
52 }
53 
55 {
56 }
QLayout * layout() const
bool close()
void setupUi(QWidget *widget)
void rejected()
QgsAuthCertEditors(QWidget *parent=nullptr)
Construct a widget to contain various certificate editors.
QString tr(const char *sourceText, const char *disambiguation, int n)
void addWidget(QWidget *widget, int stretch, QFlags< Qt::AlignmentFlag > alignment)
void setLayout(QLayout *layout)
void setMargin(int margin)
Wrapper widget to manage available certificate editors.
void setWindowTitle(const QString &)
QgsAuthCertManager(QWidget *parent=nullptr)
Construct a dialog wrapper for widget to manage available certificate editors.
QPushButton * button(StandardButton which) const
bool connect(const QObject *sender, const char *signal, const QObject *receiver, const char *method, Qt::ConnectionType type)
QObject * parent() const
void setDefault(bool)