QGIS API Documentation 3.99.0-Master (2fe06baccd8)
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
23#include "qgis_gui.h"
24
25#include <QPointer>
26
27#define SIP_NO_FILE
28
29class QgsMapLayer;
30
39class GUI_EXPORT QgsMapLayerRefreshSettingsWidget : public QWidget, private Ui::QgsLayerRefreshWidgetBase
40{
41 Q_OBJECT
42 public:
46 QgsMapLayerRefreshSettingsWidget( QWidget *parent = nullptr, QgsMapLayer *layer = nullptr );
47
48 public slots:
49
53 void setLayer( QgsMapLayer *layer );
54
58 void saveToLayer();
59
63 void syncToLayer();
64
65 private slots:
66
67 void updateHelp();
68
69 private:
70 QPointer<QgsMapLayer> mLayer;
71};
72#endif // QGSMAPLAYERREFRESHSETTINGSWIDGET_H
QgsMapLayerRefreshSettingsWidget(QWidget *parent=nullptr, QgsMapLayer *layer=nullptr)
Constructor for QgsMapLayerRefreshSettingsWidget.
void setLayer(QgsMapLayer *layer)
Sets the layer associated with the widget.
void syncToLayer()
Updates the widget state to match the current layer state.
void saveToLayer()
Saves the settings to the layer.
Base class for all map layer types.
Definition qgsmaplayer.h:80