2
//////////////////////////////////////////////////////////////////////////////
4
// Copyright (C) 2008 by Mateusz Loskot <mateusz@loskot.net>
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.
11
//////////////////////////////////////////////////////////////////////////////
12
#ifndef QGIS_PLUGIN_OGRCONV_DIALOG_H_INCLUDED
13
#define QGIS_PLUGIN_OGRCONV_DIALOG_H_INCLUDED
15
// qgis::plugin::ogrconv
17
#include <ui_ogrconverterguibase.h>
20
#include "qgscontexthelp.h"
23
@author Mateusz Loskot
25
class Dialog : public QDialog, private Ui::OgrConverterGuiBase
31
Dialog( QWidget* parent = 0, Qt::WFlags fl = 0 );
35
FormatsRegistry mFrmts;
41
void setButtonState( QPushButton* btn, bool isProtocol );
43
void populateFormats();
44
void populateLayers( QString const& url );
45
bool testConnection( QString const& url );
47
QString openDirectory();
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 );
63
#endif // QGIS_PLUGIN_OGRCONV_DIALOG_H_INCLUDED