⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 qgsgrassbrowser.h

📁 一个非常好的GIS开源新版本
💻 H
字号:
/***************************************************************************                              qgsgrasstree.h                              -------------------    begin                : February, 2006    copyright            : (C) 2006 by Radim Blazek    email                : radim.blazek@gmail.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.                                   * *                                                                         * ***************************************************************************/#ifndef QGSGRASSBROWSER_H#define QGSGRASSBROWSER_H#include <QMainWindow>class QSplitter;class QAction;class QTreeView;class QTextBrowser;class QDirModel;class QgisInterface;#include "qgsgrassmodel.h"/*! \class QgsGrassBrowser *  \brief Model representing GRASS location structure. */class QgsGrassBrowser: public QMainWindow{    Q_OBJECT;public:    //! Constructor    QgsGrassBrowser ( QgisInterface *iface, QWidget * parent = 0, Qt::WFlags f = 0  );    //! Destructor    ~QgsGrassBrowser();public slots:    // Add selected map to canvas    void addMap();    // Copy selected map    void copyMap();    // Rename selected map    void renameMap();    // Delete selected map    void deleteMap();    // Set current region to selected map    void setRegion();    // Get item's region    bool getItemRegion(QModelIndex index, struct Cell_head *window);    // Write region     void writeRegion ( struct Cell_head *window );    // Set Location    void setLocation ( const QString &gisbase, const QString &location );    // Refresh model    void refresh();    // Called when tree selection changes    void selectionChanged(const QItemSelection & selected, const QItemSelection & deselected);    void currentChanged(const QModelIndex & current, const QModelIndex & previous);    // Double click    void doubleClicked(const QModelIndex & index);signals:    // emited when something in GRASS Tools changed region    void regionChanged();private:    QgisInterface *mIface;        //! Current GISBASE    QString mGisbase;    //! Current LOCATION_NAME    QString mLocation;    // ! Data model    QgsGrassModel *mModel;    QSplitter *mSplitter;    QTreeView *mTree;    QTextBrowser *mTextBrowser;    //! Actions    QAction *mActionAddMap;    QAction *mActionDeleteMap;    QAction *mActionCopyMap;    QAction *mActionRenameMap;    QAction *mActionSetRegion;    QAction *mActionRefresh;    //! Escape HTML tags and convert \n to <br>     QString formatMessage ( QString msg );};#endif // QGSGRASSBROWSER_H

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -