~ubuntu-branches/ubuntu/natty/qgis/natty

« back to all changes in this revision

Viewing changes to src/plugins/delimited_text/qgsdelimitedtextplugingui.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:
14
14
#define PLUGINGUI_H
15
15
 
16
16
#include "ui_qgsdelimitedtextpluginguibase.h"
 
17
#include <QTextStream>
 
18
#include "qgscontexthelp.h"
17
19
 
18
 
class QgisIface;
 
20
class QgisInterface;
19
21
 
20
22
/**
21
23
 * \class QgsDelimitedTextPluginGui
22
24
 */
23
25
class QgsDelimitedTextPluginGui : public QDialog, private Ui::QgsDelimitedTextPluginGuiBase
24
26
{
25
 
  Q_OBJECT
 
27
    Q_OBJECT
 
28
 
26
29
  public:
27
 
    QgsDelimitedTextPluginGui();
28
 
    QgsDelimitedTextPluginGui( QgisIface * _qI, QWidget* parent = 0, Qt::WFlags fl = 0 );
 
30
    QgsDelimitedTextPluginGui( QgisInterface * _qI, QWidget* parent = 0, Qt::WFlags fl = 0 );
29
31
    ~QgsDelimitedTextPluginGui();
30
 
    public slots:
31
 
    void on_pbnOK_clicked();
32
 
    void on_pbnHelp_clicked();
33
 
    void on_btnBrowseForFile_clicked();
34
 
    void on_pbnParse_clicked();
 
32
 
 
33
    static QString readLine( QTextStream & stream );
 
34
 
 
35
  private:
35
36
    void updateFieldLists();
36
37
    void getOpenFileName();
37
38
    void enableButtons();
38
 
    void help();
39
 
 
40
 
  private:
41
 
    QgisIface * qI;
42
 
    static const int context_id = 1033030847;
43
 
signals:
44
 
    void drawRasterLayer(QString);
45
 
    void drawVectorLayer(QString,QString,QString);
 
39
 
 
40
    QgisInterface * qI;
 
41
    QAbstractButton *pbnOK;
 
42
    QAbstractButton *pbnParse;
 
43
 
 
44
  private slots:
 
45
    void on_buttonBox_accepted();
 
46
    void on_buttonBox_rejected();
 
47
    void on_buttonBox_helpRequested() { QgsContextHelp::run( metaObject()->className() ); }
 
48
    void on_btnBrowseForFile_clicked();
 
49
    void on_txtDelimiter_textChanged( const QString & text );
 
50
    void pbnParse_clicked();
 
51
 
 
52
  signals:
 
53
    void drawRasterLayer( QString );
 
54
    void drawVectorLayer( QString, QString, QString );
46
55
};
47
56
 
48
57
#endif