QGIS API Documentation 3.40.0-Bratislava (b56115d8743)
Loading...
Searching...
No Matches
qgsmaplayerrefreshsettingswidget.h
Go to the documentation of this file.
1/***************************************************************************
2 qgsmaplayerrefreshsettingswidget.h
3 ------------------------------
4 begin : August 2023
5 copyright : (C) 2023 by Nyall Dawson
6 email : nyall dot dawson at gmail dot com
7 ***************************************************************************/
8
9/***************************************************************************
10 * *
11 * This program is free software; you can redistribute it and/or modify *
12 * it under the terms of the GNU General Public License as published by *
13 * the Free Software Foundation; either version 2 of the License, or *
14 * (at your option) any later version. *
15 * *
16 ***************************************************************************/
17
18#ifndef QGSMAPLAYERREFRESHSETTINGSWIDGET_H
19#define QGSMAPLAYERREFRESHSETTINGSWIDGET_H
20
21#include "ui_qgslayerrefreshwidgetbase.h"
22#include "qgis_gui.h"
23#include <QPointer>
24
25#define SIP_NO_FILE
26
27class QgsMapLayer;
28
37class GUI_EXPORT QgsMapLayerRefreshSettingsWidget : public QWidget, private Ui::QgsLayerRefreshWidgetBase
38{
39 Q_OBJECT
40 public:
41
45 QgsMapLayerRefreshSettingsWidget( QWidget *parent = nullptr, QgsMapLayer *layer = nullptr );
46
47 public slots:
48
52 void setLayer( QgsMapLayer *layer );
53
57 void saveToLayer();
58
62 void syncToLayer();
63
64 private slots:
65
66 void updateHelp();
67
68 private:
69
70 QPointer< QgsMapLayer > mLayer;
71
72};
73#endif // QGSMAPLAYERREFRESHSETTINGSWIDGET_H
A widget for configuring the automatic refresh settings for map layers.
Base class for all map layer types.
Definition qgsmaplayer.h:76