Quantum GIS API Documentation  1.8
src/gui/qgsnewhttpconnection.h
Go to the documentation of this file.
00001 /***************************************************************************
00002     qgsnewhttpconnection.cpp -  selector for a new HTTP server for WMS, etc.
00003                              -------------------
00004     begin                : 3 April 2005
00005     copyright            : (C) 2005 by Brendan Morley
00006     email                : morb at ozemail dot com dot au
00007  ***************************************************************************/
00008 
00009 /***************************************************************************
00010  *                                                                         *
00011  *   This program is free software; you can redistribute it and/or modify  *
00012  *   it under the terms of the GNU General Public License as published by  *
00013  *   the Free Software Foundation; either version 2 of the License, or     *
00014  *   (at your option) any later version.                                   *
00015  *                                                                         *
00016  ***************************************************************************/
00017 #ifndef QGSNEWHTTPCONNECTION_H
00018 #define QGSNEWHTTPCONNECTION_H
00019 #include "ui_qgsnewhttpconnectionbase.h"
00020 #include "qgisgui.h"
00021 #include "qgscontexthelp.h"
00026 class GUI_EXPORT QgsNewHttpConnection : public QDialog, private Ui::QgsNewHttpConnectionBase
00027 {
00028     Q_OBJECT
00029 
00030   public:
00032     QgsNewHttpConnection( QWidget *parent = 0, const QString& baseKey = "/Qgis/connections-wms/", const QString& connName = QString::null, Qt::WFlags fl = QgisGui::ModalDialogFlags );
00034     ~QgsNewHttpConnection();
00035   public slots:
00037     void accept();
00038 
00039     void on_txtName_textChanged( const QString & );
00040 
00041     void on_buttonBox_helpRequested() { QgsContextHelp::run( metaObject()->className() ); }
00042 
00043   private:
00044     QString mBaseKey;
00045     QString mCredentialsBaseKey;
00046     QString mOriginalConnName; //store initial name to delete entry in case of rename
00047 };
00048 
00049 #endif //  QGSNEWHTTPCONNECTION_H
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines