QGIS API Documentation  3.27.0-Master (aef1b1ec20)
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(QWidget *parent)
Constructor for QgsAnnotationItemBaseWidget.
QgsSymbolWidgetContext context() const
Returns the context in which the widget is shown, e.g., the associated map canvas and expression cont...
virtual void focusDefaultWidget()
Focuses the default widget for the page.
QgsSymbolWidgetContext mContext
Context in which widget is shown.
virtual void setContext(const QgsSymbolWidgetContext &context)
Sets the context in which the widget is shown, e.g., the associated map canvas and expression context...
bool setItem(QgsAnnotationItem *item)
Sets the current item to show in the widget.
virtual bool setNewItem(QgsAnnotationItem *item)
Attempts to update the widget to show the properties for the specified item.
Abstract base class for annotation items which are drawn with QgsAnnotationLayers.
Base class for any widget that can be shown as a inline panel.
Contains settings which reflect the context in which a symbol (or renderer) widget is shown,...