QGIS API Documentation 3.40.0-Bratislava (b56115d8743)
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:
40
46
50 void setItem( QgsAnnotationItem *item );
51
55 void updateItem( QgsAnnotationItem *item );
56
61 void setContext( const QgsSymbolWidgetContext &context );
62
67 QgsSymbolWidgetContext context() const;
68
69 signals:
70
75
76 private slots:
77
78 void openCalloutProperties();
79
80 private:
81
82 bool mBlockChangedSignal = false;
83
86
87 std::unique_ptr< QgsCallout > mCallout;
88};
89
90#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