QGIS API Documentation 3.41.0-Master (af5edcb665c)
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:
40 QgsSymbolBufferSettingsWidget( QWidget *parent SIP_TRANSFERTHIS = nullptr );
41
47 void setBufferSettings( const QgsSymbolBufferSettings &settings );
48
54 QgsSymbolBufferSettings bufferSettings() const;
55
56 private slots:
57
58 void onWidgetChanged();
59
60 private:
61 bool mBlockUpdates = false;
62};
63
69class GUI_EXPORT QgsSymbolBufferSettingsDialog : public QDialog
70{
71 Q_OBJECT
72 public:
74 QgsSymbolBufferSettingsDialog( QWidget *parent SIP_TRANSFERTHIS = nullptr, Qt::WindowFlags f = Qt::WindowFlags() );
75
81 void setBufferSettings( const QgsSymbolBufferSettings &settings );
82
88 QgsSymbolBufferSettings bufferSettings() const;
89
90 private:
91 QgsSymbolBufferSettingsWidget *mWidget = nullptr;
92};
93
94#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