QGIS API Documentation
4.3.0-Master (16eddb2670e)
Toggle main menu visibility
Loading...
Searching...
No Matches
src
gui
annotations
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 "ui_qgsannotationcommonpropertieswidgetbase.h"
19
20
#include "qgis_gui.h"
21
#include "
qgis_sip.h
"
22
#include "
qgssymbolwidgetcontext.h
"
23
24
class
QgsAnnotationItem
;
25
class
QgsCallout
;
26
33
class
GUI_EXPORT
QgsAnnotationItemCommonPropertiesWidget
:
public
QWidget,
private
Ui::QgsAnnotationCommonPropertiesWidgetBase
34
{
35
Q_OBJECT
36
37
public
:
41
QgsAnnotationItemCommonPropertiesWidget
( QWidget *parent
SIP_TRANSFERTHIS
);
42
~QgsAnnotationItemCommonPropertiesWidget
()
override
;
43
47
void
setItem
(
QgsAnnotationItem
*item );
48
52
void
updateItem
(
QgsAnnotationItem
*item );
53
58
void
setContext
(
const
QgsSymbolWidgetContext
&
context
);
59
64
QgsSymbolWidgetContext
context
()
const
;
65
66
signals:
67
71
void
itemChanged
();
72
73
private
slots:
74
75
void
openCalloutProperties();
76
77
private
:
78
bool
mBlockChangedSignal =
false
;
79
81
QgsSymbolWidgetContext
mContext;
82
83
std::unique_ptr<QgsCallout> mCallout;
84
};
85
86
#endif
// QGSANNOTATIONITEMCOMMONPROPERTIESWIDGET_H
QgsAnnotationItemCommonPropertiesWidget::~QgsAnnotationItemCommonPropertiesWidget
~QgsAnnotationItemCommonPropertiesWidget() override
QgsAnnotationItemCommonPropertiesWidget::QgsAnnotationItemCommonPropertiesWidget
QgsAnnotationItemCommonPropertiesWidget(QWidget *parent)
Constructor for QgsAnnotationItemCommonPropertiesWidget.
Definition
qgsannotationitemcommonpropertieswidget.cpp:25
QgsAnnotationItemCommonPropertiesWidget::setContext
void setContext(const QgsSymbolWidgetContext &context)
Sets the context in which the widget is shown, e.g., the associated map canvas and expression context...
Definition
qgsannotationitemcommonpropertieswidget.cpp:72
QgsAnnotationItemCommonPropertiesWidget::context
QgsSymbolWidgetContext context() const
Returns the context in which the widget is shown, e.g., the associated map canvas and expression cont...
Definition
qgsannotationitemcommonpropertieswidget.cpp:80
QgsAnnotationItemCommonPropertiesWidget::setItem
void setItem(QgsAnnotationItem *item)
Sets the item whose properties should be shown in the widget.
Definition
qgsannotationitemcommonpropertieswidget.cpp:54
QgsAnnotationItemCommonPropertiesWidget::itemChanged
void itemChanged()
Emitted when the annotation item definition in the widget is changed by the user.
QgsAnnotationItemCommonPropertiesWidget::updateItem
void updateItem(QgsAnnotationItem *item)
Updates an item, setting the properties defined in the widget.
Definition
qgsannotationitemcommonpropertieswidget.cpp:64
QgsAnnotationItem
Abstract base class for annotation items which are drawn with QgsAnnotationLayers.
Definition
qgsannotationitem.h:49
QgsCallout
Abstract base class for callout renderers.
Definition
qgscallout.h:55
QgsSymbolWidgetContext
Contains settings which reflect the context in which a symbol (or renderer) widget is shown,...
Definition
qgssymbolwidgetcontext.h:35
qgis_sip.h
SIP_TRANSFERTHIS
#define SIP_TRANSFERTHIS
Definition
qgis_sip.h:52
qgssymbolwidgetcontext.h
Generated on
for QGIS API Documentation by
1.17.0