-
Notifications
You must be signed in to change notification settings - Fork 1
/
vfkmainwindow.h
87 lines (66 loc) · 2.16 KB
/
vfkmainwindow.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
#ifndef VFKMAINWINDOW_H
#define VFKMAINWINDOW_H
#include "documentbuilder.h"
#include "ui_vfkmainwindow.h"
#include "qgsdataprovider.h"
#include "qgsvectorlayer.h"
#include <qgisinterface.h>
#include <ogr_api.h>
#include <cpl_conv.h>
#include <QMainWindow>
#include <QUrl>
#include <QToolButton>
class SearchFormController;
typedef QMap<QString, QString> LayerNameIdMap;
class VfkMainWindow : public QMainWindow, private Ui::VfkMainWindow
{
Q_OBJECT
enum VfkLayer { Par, Bud };
public:
explicit VfkMainWindow(QgisInterface *theQgisInterface, QWidget *parent = 0);
~VfkMainWindow();
bool loadVfkFile( const QString &fileName, QString &errorMsg );
public slots:
signals:
void goBack();
void searchOpsubByName( QString );
void refreshLegend( QgsMapLayer *layer );
void enableSearch( bool enable );
private slots:
void browserGoBack();
void browserGoForward();
void latexExport();
void htmlExport();
void on_browseButton_clicked();
void on_loadVfkButton_clicked();
void selectParInMap();
void selectBudInMap();
void on_vfkFileLineEdit_textChanged(const QString &arg1);
void showParInMap( QStringList ids );
void showBudInMap( QStringList ids);
void showInMap( QStringList ids, QString layerName );
void showOnCuzk();
void showInfoAboutSelection();
void setSelectionChangedConnected( bool connected );
void switchToImport();
void switchToSearch( int searchType);
private:
QgisInterface *mQGisIface;
QString mLastVfkFile;
QPalette mDefaultPalette;
OGRDataSourceH mOgrDataSource;
QString mDataSourceName;
LayerNameIdMap mLoadedLayers;
QToolBar *mBrowserToolbar;
QToolBar *mainToolBar;
void createToolbarsAndConnect();
bool openDatabase(QString dbPath);
// bool setDataProvider( QString dataSource );
void loadVfkLayer( QString vfkLayerName );
void unLoadVfkLayer( QString vfkLayerName );
QgsFeatureIds search( QgsVectorLayer *layer, const QString &searchString, QString &error);
QStringList selectedIds( QgsVectorLayer *layer );
bool setSymbology( QgsVectorLayer *layer );
SearchFormController *mSearchController;
};
#endif // VFKMAINWINDOW_H