QGIS API Documentation  3.26.3-Buenos Aires (65e4edfdad)
qgsannotationitemwidget.cpp
Go to the documentation of this file.
1 /***************************************************************************
2  qgsannotationitemwidget.cpp
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 
17 
19  : QgsPanelWidget( parent )
20 {
21 
22 }
23 
25 {
26  return setNewItem( item );
27 }
28 
30 {
31  mContext = context;
32 }
33 
35 {
36  return mContext;
37 }
38 
40 {
41 }
42 
44 {
45  return false;
46 }
QgsAnnotationItemBaseWidget::mContext
QgsSymbolWidgetContext mContext
Context in which widget is shown.
Definition: qgsannotationitemwidget.h:106
QgsSymbolWidgetContext
Contains settings which reflect the context in which a symbol (or renderer) widget is shown,...
Definition: qgssymbolwidgetcontext.h:35
QgsAnnotationItemBaseWidget::focusDefaultWidget
virtual void focusDefaultWidget()
Focuses the default widget for the page.
Definition: qgsannotationitemwidget.cpp:39
QgsPanelWidget
Base class for any widget that can be shown as a inline panel.
Definition: qgspanelwidget.h:29
QgsAnnotationItemBaseWidget::setContext
virtual void setContext(const QgsSymbolWidgetContext &context)
Sets the context in which the widget is shown, e.g., the associated map canvas and expression context...
Definition: qgsannotationitemwidget.cpp:29
QgsAnnotationItemBaseWidget::setItem
bool setItem(QgsAnnotationItem *item)
Sets the current item to show in the widget.
Definition: qgsannotationitemwidget.cpp:24
qgsannotationitemwidget.h
QgsAnnotationItemBaseWidget::QgsAnnotationItemBaseWidget
QgsAnnotationItemBaseWidget(QWidget *parent)
Constructor for QgsAnnotationItemBaseWidget.
Definition: qgsannotationitemwidget.cpp:18
QgsAnnotationItemBaseWidget::setNewItem
virtual bool setNewItem(QgsAnnotationItem *item)
Attempts to update the widget to show the properties for the specified item.
Definition: qgsannotationitemwidget.cpp:43
QgsAnnotationItem
Abstract base class for annotation items which are drawn with QgsAnnotationLayers.
Definition: qgsannotationitem.h:42
QgsAnnotationItemBaseWidget::context
QgsSymbolWidgetContext context() const
Returns the context in which the widget is shown, e.g., the associated map canvas and expression cont...
Definition: qgsannotationitemwidget.cpp:34