QGIS API Documentation  3.26.3-Buenos Aires (65e4edfdad)
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
QgsSymbolWidgetContext
Contains settings which reflect the context in which a symbol (or renderer) widget is shown,...
Definition: qgssymbolwidgetcontext.h:35
qgssymbolwidgetcontext.h
qgis_sip.h
QgsAnnotationItemCommonPropertiesWidget
A widget for configuring common properties for QgsAnnotationItems.
Definition: qgsannotationitemcommonpropertieswidget.h:34
SIP_TRANSFERTHIS
#define SIP_TRANSFERTHIS
Definition: qgis_sip.h:53
QgsAnnotationItem
Abstract base class for annotation items which are drawn with QgsAnnotationLayers.
Definition: qgsannotationitem.h:42