~ubuntu-branches/ubuntu/trusty/qgis/trusty

« back to all changes in this revision

Viewing changes to src/plugins/ogr_converter/dialog.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
// $Id$
 
2
//////////////////////////////////////////////////////////////////////////////
 
3
//
 
4
// Copyright (C) 2008 by Mateusz Loskot <mateusz@loskot.net>
 
5
//
 
6
// This program is free software; you can redistribute it and/or modify
 
7
// it under the terms of the GNU General Public License as published by
 
8
// the Free Software Foundation; either version 2 of the License,
 
9
// or (at your option) any later version.
 
10
//
 
11
//////////////////////////////////////////////////////////////////////////////
 
12
#ifndef QGIS_PLUGIN_OGRCONV_DIALOG_H_INCLUDED
 
13
#define QGIS_PLUGIN_OGRCONV_DIALOG_H_INCLUDED
 
14
 
 
15
// qgis::plugin::ogrconv
 
16
#include "format.h"
 
17
#include <ui_ogrconverterguibase.h>
 
18
// Qt4
 
19
#include <QDialog>
 
20
#include "qgscontexthelp.h"
 
21
 
 
22
/**
 
23
@author Mateusz Loskot
 
24
*/
 
25
class Dialog : public QDialog, private Ui::OgrConverterGuiBase
 
26
{
 
27
    Q_OBJECT
 
28
 
 
29
  public:
 
30
 
 
31
    Dialog( QWidget* parent = 0, Qt::WFlags fl = 0 );
 
32
    ~Dialog();
 
33
 
 
34
  private:
 
35
    FormatsRegistry mFrmts;
 
36
    Format mSrcFormat;
 
37
    Format mDstFormat;
 
38
 
 
39
    void resetSrcUi();
 
40
    void resetDstUi();
 
41
    void setButtonState( QPushButton* btn, bool isProtocol );
 
42
 
 
43
    void populateFormats();
 
44
    void populateLayers( QString const& url );
 
45
    bool testConnection( QString const& url );
 
46
    QString openFile();
 
47
    QString openDirectory();
 
48
 
 
49
  private slots:
 
50
 
 
51
    void on_buttonBox_accepted();
 
52
    void on_buttonBox_rejected();
 
53
    void on_buttonBox_helpRequested() { QgsContextHelp::run( metaObject()->className() ); }
 
54
    void on_radioSrcFile_toggled( bool checked );
 
55
    void on_radioSrcDirectory_toggled( bool checked );
 
56
    void on_radioSrcProtocol_toggled( bool checked );
 
57
    void on_buttonSelectSrc_clicked();
 
58
    void on_buttonSelectDst_clicked();
 
59
    void on_comboSrcFormats_currentIndexChanged( int index );
 
60
    void on_comboDstFormats_currentIndexChanged( int index );
 
61
};
 
62
 
 
63
#endif // QGIS_PLUGIN_OGRCONV_DIALOG_H_INCLUDED