~ubuntu-branches/ubuntu/wily/qgis/wily

« back to all changes in this revision

Viewing changes to src/app/qgsnewhttpconnection.h

  • Committer: Bazaar Package Importer
  • Author(s): Johan Van de Wauw
  • Date: 2010-07-11 20:23:24 UTC
  • mfrom: (3.1.4 squeeze)
  • Revision ID: james.westby@ubuntu.com-20100711202324-5ktghxa7hracohmr
Tags: 1.4.0+12730-3ubuntu1
* Merge from Debian unstable (LP: #540941).
* Fix compilation issues with QT 4.7
* Add build-depends on libqt4-webkit-dev 

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
/***************************************************************************
 
2
    qgsnewhttpconnection.cpp -  selector for a new HTTP server for WMS, etc.
 
3
                             -------------------
 
4
    begin                : 3 April 2005
 
5
    copyright            : (C) 2005 by Brendan Morley
 
6
    email                : morb at ozemail dot com dot au
 
7
 ***************************************************************************/
 
8
 
 
9
/***************************************************************************
 
10
 *                                                                         *
 
11
 *   This program is free software; you can redistribute it and/or modify  *
 
12
 *   it under the terms of the GNU General Public License as published by  *
 
13
 *   the Free Software Foundation; either version 2 of the License, or     *
 
14
 *   (at your option) any later version.                                   *
 
15
 *                                                                         *
 
16
 ***************************************************************************/
 
17
/* $Id$ */
 
18
#ifndef QGSNEWHTTPCONNECTION_H
 
19
#define QGSNEWHTTPCONNECTION_H
 
20
#include "ui_qgsnewhttpconnectionbase.h"
 
21
#include "qgisgui.h"
 
22
#include "qgscontexthelp.h"
 
23
/*!
 
24
 * \brief Dialog to allow the user to configure and save connection
 
25
 * information for an HTTP Server for WMS, etc.
 
26
 */
 
27
class QgsNewHttpConnection : public QDialog, private Ui::QgsNewHttpConnectionBase
 
28
{
 
29
    Q_OBJECT
 
30
 
 
31
  public:
 
32
    //! Constructor
 
33
    QgsNewHttpConnection( QWidget *parent = 0, const QString& baseKey = "/Qgis/connections-wms/", const QString& connName = QString::null, Qt::WFlags fl = QgisGui::ModalDialogFlags );
 
34
    //! Destructor
 
35
    ~QgsNewHttpConnection();
 
36
  public slots:
 
37
    //! Saves the connection to ~/.qt/qgisrc
 
38
    void accept();
 
39
 
 
40
    void on_buttonBox_helpRequested() { QgsContextHelp::run( metaObject()->className() ); }
 
41
 
 
42
  private:
 
43
    QString mBaseKey;
 
44
    QString mOriginalConnName; //store initial name to delete entry in case of rename
 
45
};
 
46
 
 
47
#endif //  QGSNEWHTTPCONNECTION_H