QGIS API Documentation 3.99.0-Master (752b475928d)
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 "ui_qgsannotationcommonpropertieswidgetbase.h"
19
20#include "qgis_gui.h"
21#include "qgis_sip.h"
23
25class QgsCallout;
26
33class GUI_EXPORT QgsAnnotationItemCommonPropertiesWidget : public QWidget, private Ui::QgsAnnotationCommonPropertiesWidgetBase
34{
35 Q_OBJECT
36
37 public:
43
47 void setItem( QgsAnnotationItem *item );
48
52 void updateItem( QgsAnnotationItem *item );
53
59
65
66 signals:
67
72
73 private slots:
74
75 void openCalloutProperties();
76
77 private:
78 bool mBlockChangedSignal = false;
79
82
83 std::unique_ptr<QgsCallout> mCallout;
84};
85
86#endif // QGSANNOTATIONITEMCOMMONPROPERTIESWIDGET_H
QgsAnnotationItemCommonPropertiesWidget(QWidget *parent)
Constructor for QgsAnnotationItemCommonPropertiesWidget.
void setContext(const QgsSymbolWidgetContext &context)
Sets the context in which the widget is shown, e.g., the associated map canvas and expression context...
QgsSymbolWidgetContext context() const
Returns the context in which the widget is shown, e.g., the associated map canvas and expression cont...
void setItem(QgsAnnotationItem *item)
Sets the item whose properties should be shown in the widget.
void itemChanged()
Emitted when the annotation item definition in the widget is changed by the user.
void updateItem(QgsAnnotationItem *item)
Updates an item, setting the properties defined in the widget.
Abstract base class for annotation items which are drawn with QgsAnnotationLayers.
Abstract base class for callout renderers.
Definition qgscallout.h:55
Contains settings which reflect the context in which a symbol (or renderer) widget is shown,...
#define SIP_TRANSFERTHIS
Definition qgis_sip.h:53