QGIS API Documentation  3.22.4-Białowieża (ce8e65e95e)
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"
22 #include "qgssymbolwidgetcontext.h"
23 
24 class QgsAnnotationItem;
25 
34 class GUI_EXPORT QgsAnnotationItemCommonPropertiesWidget: public QWidget, private Ui::QgsAnnotationCommonPropertiesWidgetBase
35 {
36  Q_OBJECT
37 
38  public:
39 
44 
48  void setItem( QgsAnnotationItem *item );
49 
53  void updateItem( QgsAnnotationItem *item );
54 
59  void setContext( const QgsSymbolWidgetContext &context );
60 
65  QgsSymbolWidgetContext context() const;
66 
67  signals:
68 
72  void itemChanged();
73 
74  private:
75 
76  bool mBlockChangedSignal = false;
77 
79  QgsSymbolWidgetContext mContext;
80 };
81 
82 #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.
Contains settings which reflect the context in which a symbol (or renderer) widget is shown,...
#define SIP_TRANSFERTHIS
Definition: qgis_sip.h:53