📄 qgsgpsplugingui.h
字号:
/*************************************************************************** qgsgpsplugingui.h Functions: ------------------- begin : Jan 21, 2004 copyright : (C) 2004 by Tim Sutton email : tim@linfiniti.com *************************************************************************** * * * This program is free software; you can redistribute it and/or modify * * it under the terms of the GNU General Public License as published by * * the Free Software Foundation; either version 2 of the License, or * * (at your option) any later version. * * * ***************************************************************************/ /* $Id: qgsgpsplugingui.h 7993 2008-01-17 16:22:23Z homann $ */#ifndef QGSGPSPLUGINGUI_H#define QGSGPSPLUGINGUI_H#include "qgsvectorlayer.h"#include "ui_qgsgpspluginguibase.h"#include "qgsbabelformat.h"#include "qgsgpsdevice.h"#include <vector>#include <QString>/**@author Tim Sutton*/class QgsGPSPluginGui : public QDialog, private Ui::QgsGPSPluginGuiBase{ Q_OBJECTpublic: QgsGPSPluginGui(const BabelMap& importers, std::map<QString, QgsGPSDevice*>& devices, std::vector<QgsVectorLayer*> gpxMapLayers, QWidget* parent, Qt::WFlags); ~QgsGPSPluginGui();public slots: void openDeviceEditor(); void devicesUpdated(); void enableRelevantControls(); void on_pbnGPXSelectFile_clicked(); void on_pbnIMPInput_clicked(); void on_pbnIMPOutput_clicked(); void on_pbnCONVInput_clicked(); void on_pbnCONVOutput_clicked(); void on_pbnDLOutput_clicked();private: void populateDeviceComboBox(); void populateULLayerComboBox(); void populateIMPBabelFormats(); void populatePortComboBoxes(); void populateLoadDialog(); void populateDLDialog(); void populateULDialog(); void populateIMPDialog(); void populateCONVDialog(); private slots: void on_buttonBox_accepted(); void on_buttonBox_rejected(); void on_buttonBox_helpRequested();signals: void drawRasterLayer(QString); void drawVectorLayer(QString,QString,QString); void loadGPXFile(QString filename, bool showWaypoints, bool showRoutes, bool showTracks); void importGPSFile(QString inputFilename, QgsBabelFormat* importer, bool importWaypoints, bool importRoutes, bool importTracks, QString outputFilename, QString layerName); void convertGPSFile(QString inputFilename, int convertType, QString outputFilename, QString layerName); void downloadFromGPS(QString device, QString port, bool downloadWaypoints, bool downloadRoutes, bool downloadTracks, QString outputFilename, QString layerName); void uploadToGPS(QgsVectorLayer* gpxLayer, QString device, QString port); private: std::vector<QgsVectorLayer*> mGPXLayers; const BabelMap& mImporters; std::map<QString, QgsGPSDevice*>& mDevices; QString mBabelFilter; QString mImpFormat; QAbstractButton *pbnOK; static const int context_id = 995980174;};#endif
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -