QGIS API Documentation 3.41.0-Master (af5edcb665c)
Loading...
Searching...
No Matches
qgsannotationitemcommonpropertieswidget.h
Go to the documentation of this file.
1/***************************************************************************
2 qgsannotationitemcommonpropertieswidget.h
3 ------------------------
4 Date : September 2021
5 Copyright : (C) 2021 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#ifndef QGSANNOTATIONITEMCOMMONPROPERTIESWIDGET_H
16#define QGSANNOTATIONITEMCOMMONPROPERTIESWIDGET_H
17
18#include "qgis_gui.h"
19#include "qgis_sip.h"
20
21#include "ui_qgsannotationcommonpropertieswidgetbase.h"
23
25class QgsCallout;
26
35class GUI_EXPORT QgsAnnotationItemCommonPropertiesWidget : public QWidget, private Ui::QgsAnnotationCommonPropertiesWidgetBase
36{
37 Q_OBJECT
38
39 public:
45
49 void setItem( QgsAnnotationItem *item );
50
54 void updateItem( QgsAnnotationItem *item );
55
60 void setContext( const QgsSymbolWidgetContext &context );
61
66 QgsSymbolWidgetContext context() const;
67
68 signals:
69
74
75 private slots:
76
77 void openCalloutProperties();
78
79 private:
80 bool mBlockChangedSignal = false;
81
84
85 std::unique_ptr<QgsCallout> mCallout;
86};
87
88#endif // QGSANNOTATIONITEMCOMMONPROPERTIESWIDGET_H
A widget for configuring common properties for QgsAnnotationItems.
void itemChanged()
Emitted when the annotation item definition in the widget is changed by the user.
Abstract base class for annotation items which are drawn with QgsAnnotationLayers.
Abstract base class for callout renderers.
Definition qgscallout.h:54
Contains settings which reflect the context in which a symbol (or renderer) widget is shown,...
#define SIP_TRANSFERTHIS
Definition qgis_sip.h:53