-
-
Notifications
You must be signed in to change notification settings - Fork 3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[auth] Redesign Authentication section of Options
- Separate management options from auth config table - Add standalone certificate manager - Add installed auth method plugin dialog, indicating usage per plugin
- Loading branch information
Showing
14 changed files
with
766 additions
and
110 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
class QgsAuthCertEditors : QWidget | ||
{ | ||
%TypeHeaderCode | ||
#include <qgsauthcertificatemanager.h> | ||
%End | ||
|
||
public: | ||
explicit QgsAuthCertEditors( QWidget *parent /TransferThis/ = 0 ); | ||
|
||
~QgsAuthCertEditors(); | ||
}; | ||
|
||
class QgsAuthCertManager : QDialog | ||
{ | ||
%TypeHeaderCode | ||
#include <qgsauthcertificatemanager.h> | ||
%End | ||
|
||
public: | ||
explicit QgsAuthCertManager( QWidget *parent /TransferThis/ = 0 ); | ||
|
||
~QgsAuthCertManager(); | ||
|
||
QgsAuthCertEditors *certEditorsWidget(); | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,56 @@ | ||
/*************************************************************************** | ||
qgsauthcertificatemanager.cpp | ||
--------------------- | ||
begin : September, 2015 | ||
copyright : (C) 2015 by Boundless Spatial, Inc. USA | ||
author : Larry Shaffer | ||
email : lshaffer at boundlessgeo dot com | ||
*************************************************************************** | ||
* * | ||
* This program is free software; you can redistribute it and/or modify * | ||
* it under the terms of the GNU General Public License as published by * | ||
* the Free Software Foundation; either version 2 of the License, or * | ||
* (at your option) any later version. * | ||
* * | ||
***************************************************************************/ | ||
|
||
#include "qgsauthcertificatemanager.h" | ||
|
||
#include <QDialog> | ||
#include <QDialogButtonBox> | ||
#include <QPushButton> | ||
|
||
QgsAuthCertEditors::QgsAuthCertEditors( QWidget *parent ) | ||
: QWidget( parent ) | ||
{ | ||
setupUi( this ); | ||
} | ||
|
||
QgsAuthCertEditors::~QgsAuthCertEditors() | ||
{ | ||
} | ||
|
||
|
||
|
||
QgsAuthCertManager::QgsAuthCertManager( QWidget *parent ) | ||
: QDialog( parent ) | ||
{ | ||
setWindowTitle( tr( "Certificate Manager" ) ); | ||
QVBoxLayout *layout = new QVBoxLayout( this ); | ||
layout->setMargin( 6 ); | ||
|
||
mCertEditors = new QgsAuthCertEditors( this ); | ||
layout->addWidget( mCertEditors ); | ||
|
||
QDialogButtonBox *buttonBox = new QDialogButtonBox( QDialogButtonBox::Close, | ||
Qt::Horizontal, this ); | ||
buttonBox->button( QDialogButtonBox::Close )->setDefault( true ); | ||
connect( buttonBox, SIGNAL( rejected() ), this, SLOT( close() ) ); | ||
layout->addWidget( buttonBox ); | ||
|
||
setLayout( layout ); | ||
} | ||
|
||
QgsAuthCertManager::~QgsAuthCertManager() | ||
{ | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,69 @@ | ||
/*************************************************************************** | ||
qgsauthcertificatemanager.h | ||
--------------------- | ||
begin : September, 2015 | ||
copyright : (C) 2015 by Boundless Spatial, Inc. USA | ||
author : Larry Shaffer | ||
email : lshaffer at boundlessgeo dot com | ||
*************************************************************************** | ||
* * | ||
* This program is free software; you can redistribute it and/or modify * | ||
* it under the terms of the GNU General Public License as published by * | ||
* the Free Software Foundation; either version 2 of the License, or * | ||
* (at your option) any later version. * | ||
* * | ||
***************************************************************************/ | ||
|
||
#ifndef QGSAUTHCERTIFICATEMANAGER_H | ||
#define QGSAUTHCERTIFICATEMANAGER_H | ||
|
||
#include "ui_qgsauthcertificatemanager.h" | ||
|
||
#include <QWidget> | ||
#include <QDialog> | ||
|
||
|
||
/** \ingroup gui | ||
* Wrapper widget to manage available certificate editors | ||
*/ | ||
class GUI_EXPORT QgsAuthCertEditors : public QWidget, private Ui::QgsAuthCertManager | ||
{ | ||
Q_OBJECT | ||
|
||
public: | ||
/** | ||
* Construct a widget to contain various certificate editors | ||
* @param parent Parent widget | ||
*/ | ||
explicit QgsAuthCertEditors( QWidget *parent = 0 ); | ||
|
||
~QgsAuthCertEditors(); | ||
}; | ||
|
||
|
||
//////////////// Embed in dialog /////////////////// | ||
|
||
/** \ingroup gui | ||
* Dialog wrapper for widget to manage available certificate editors | ||
*/ | ||
class GUI_EXPORT QgsAuthCertManager : public QDialog | ||
{ | ||
Q_OBJECT | ||
|
||
public: | ||
/** | ||
* Construct a dialog wrapper for widget to manage available certificate editors | ||
* @param parent Parent widget | ||
*/ | ||
explicit QgsAuthCertManager( QWidget *parent = 0 ); | ||
|
||
~QgsAuthCertManager(); | ||
|
||
/** Get access to embedded editors widget */ | ||
QgsAuthCertEditors *certEditorsWidget() { return mCertEditors; } | ||
|
||
private: | ||
QgsAuthCertEditors *mCertEditors; | ||
}; | ||
|
||
#endif // QGSAUTHCERTIFICATEMANAGER_H |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.