QGIS API Documentation 3.41.0-Master (fda2aa46e9a)
Loading...
Searching...
No Matches
qgssymbolbuffersettingswidget.h
Go to the documentation of this file.
1/***************************************************************************
2 qgssymbolbuffersettingswidget.h
3 ---------------------
4 begin : July 2024
5 copyright : (C) 2024 by Nyall Dawson
6 email : nyall dot dawson at gmail dot com
7 ***************************************************************************
8 * *
9 * This program is free software; you can redistribute it and/or modify *
10 * it under the terms of the GNU General Public License as published by *
11 * the Free Software Foundation; either version 2 of the License, or *
12 * (at your option) any later version. *
13 * *
14 ***************************************************************************/
15
16#ifndef QGSSYMBOLBUFFERSETTINGSWIDGET_H
17#define QGSSYMBOLBUFFERSETTINGSWIDGET_H
18
19#include "ui_qgssymbolbuffersettingswidgetbase.h"
20
21#include "qgis_gui.h"
22#include "qgis_sip.h"
23#include "qgspanelwidget.h"
24
25#include <QDialog>
26
28
29
35class GUI_EXPORT QgsSymbolBufferSettingsWidget: public QgsPanelWidget, private Ui::QgsSymbolBufferSettingsWidgetBase
36{
37 Q_OBJECT
38 public:
39
41 QgsSymbolBufferSettingsWidget( QWidget *parent SIP_TRANSFERTHIS = nullptr );
42
48 void setBufferSettings( const QgsSymbolBufferSettings &settings );
49
55 QgsSymbolBufferSettings bufferSettings() const;
56
57 private slots:
58
59 void onWidgetChanged();
60
61 private:
62
63 bool mBlockUpdates = false;
64
65};
66
72class GUI_EXPORT QgsSymbolBufferSettingsDialog : public QDialog
73{
74 Q_OBJECT
75 public:
76
78 QgsSymbolBufferSettingsDialog( QWidget *parent SIP_TRANSFERTHIS = nullptr, Qt::WindowFlags f = Qt::WindowFlags() );
79
85 void setBufferSettings( const QgsSymbolBufferSettings &settings );
86
92 QgsSymbolBufferSettings bufferSettings() const;
93
94 private:
95
96 QgsSymbolBufferSettingsWidget *mWidget = nullptr;
97
98};
99
100#endif // QGSSYMBOLBUFFERSETTINGSWIDGET_H
Base class for any widget that can be shown as a inline panel.
A dialog for customising buffer settings for a symbol.
A widget for customising buffer settings for a symbol.
Contains settings relating to symbol buffers, which draw a "halo" effect around the symbol.
Definition qgssymbol.h:97
#define SIP_TRANSFERTHIS
Definition qgis_sip.h:53