QGIS API Documentation
3.28.0-Firenze (ed3ad0430f)
src
gui
annotations
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
16
#include "
qgsannotationitemwidget.h
"
17
18
QgsAnnotationItemBaseWidget::QgsAnnotationItemBaseWidget
( QWidget *parent )
19
:
QgsPanelWidget
( parent )
20
{
21
22
}
23
24
bool
QgsAnnotationItemBaseWidget::setItem
(
QgsAnnotationItem
*item )
25
{
26
return
setNewItem
( item );
27
}
28
29
void
QgsAnnotationItemBaseWidget::setContext
(
const
QgsSymbolWidgetContext
&context )
30
{
31
mContext
=
context
;
32
}
33
34
QgsSymbolWidgetContext
QgsAnnotationItemBaseWidget::context
()
const
35
{
36
return
mContext
;
37
}
38
39
void
QgsAnnotationItemBaseWidget::focusDefaultWidget
()
40
{
41
}
42
43
bool
QgsAnnotationItemBaseWidget::setNewItem
(
QgsAnnotationItem
* )
44
{
45
return
false
;
46
}
QgsAnnotationItemBaseWidget::QgsAnnotationItemBaseWidget
QgsAnnotationItemBaseWidget(QWidget *parent)
Constructor for QgsAnnotationItemBaseWidget.
Definition:
qgsannotationitemwidget.cpp:18
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
QgsAnnotationItemBaseWidget::focusDefaultWidget
virtual void focusDefaultWidget()
Focuses the default widget for the page.
Definition:
qgsannotationitemwidget.cpp:39
QgsAnnotationItemBaseWidget::mContext
QgsSymbolWidgetContext mContext
Context in which widget is shown.
Definition:
qgsannotationitemwidget.h:106
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
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:43
QgsPanelWidget
Base class for any widget that can be shown as a inline panel.
Definition:
qgspanelwidget.h:30
QgsSymbolWidgetContext
Contains settings which reflect the context in which a symbol (or renderer) widget is shown,...
Definition:
qgssymbolwidgetcontext.h:36
qgsannotationitemwidget.h
Generated on Sat Oct 22 2022 16:10:47 for QGIS API Documentation by
1.9.4