QGIS/src/gui/qgsinstallgridshiftdialog.h
Nyall Dawson 941f59f045 Add "install grid" button to coordinate operation widget when a grid is missing
This syncs the coordinate operation widget UX with other grid-related handling
widgets, where a user-friendly option to install a grid file is presented
2020-02-04 16:55:30 +10:00

48 lines
1.7 KiB
C++

/***************************************************************************
qgsinstallgridshiftdialog.h
-------------------
begin : September 2019
copyright : (C) 2019 by Nyall Dawson
email : nyall dot dawson at gmail dot 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 QGSINSTALLGRIDSHIFTDIALOG_H
#define QGSINSTALLGRIDSHIFTDIALOG_H
#include "ui_qgsinstallgridshiftdialog.h"
#include <QDialog>
#include "qgis_gui.h"
#define SIP_NO_FILE
///@cond PRIVATE
class GUI_EXPORT QgsInstallGridShiftFileDialog: public QDialog, private Ui::QgsInstallGridShiftFileDialogBase
{
Q_OBJECT
public:
QgsInstallGridShiftFileDialog( const QString &gridName, QWidget *parent = nullptr );
void setDescription( const QString &html );
void setDownloadMessage( const QString &message );
private slots:
void installFromFile();
private:
QString mGridName;
};
///@endcond
#endif // QGSINSTALLGRIDSHIFTDIALOG_H