QGIS API Documentation
4.3.0-Master (16eddb2670e)
Toggle main menu visibility
Loading...
Searching...
No Matches
src
gui
layout
qgslayoutshapewidget.h
Go to the documentation of this file.
1
/***************************************************************************
2
qgslayoutshapewidget.h
3
------------------------
4
begin : November 2009
5
copyright : (C) 2009 by Marco Hugentobler
6
email : marco@hugis.net
7
***************************************************************************/
8
9
/***************************************************************************
10
* *
11
* This program is free software; you can redistribute it and/or modify *
12
* it under the terms of the GNU General Public License as published by *
13
* the Free Software Foundation; either version 2 of the License, or *
14
* (at your option) any later version. *
15
* *
16
***************************************************************************/
17
18
#ifndef QGSLAYOUTSHAPEWIDGET_H
19
#define QGSLAYOUTSHAPEWIDGET_H
20
21
// We don't want to expose this in the public API
22
23
#include "ui_qgslayoutshapewidgetbase.h"
24
25
#include "qgis_gui.h"
26
#include "
qgslayoutitemshape.h
"
27
#include "
qgslayoutitemwidget.h
"
28
29
#define SIP_NO_FILE
30
38
class
GUI_EXPORT
QgsLayoutShapeWidget
:
public
QgsLayoutItemBaseWidget
,
private
Ui::QgsLayoutShapeWidgetBase
39
{
40
Q_OBJECT
41
public
:
43
explicit
QgsLayoutShapeWidget
(
QgsLayoutItemShape
*shape );
44
void
setMasterLayout
(
QgsMasterLayoutInterface
*masterLayout )
override
;
45
46
protected
:
47
bool
setNewItem
(
QgsLayoutItem
*item )
override
;
48
49
50
private
:
51
QPointer<QgsLayoutItemShape> mShape;
52
QgsLayoutItemPropertiesWidget
*mItemPropertiesWidget =
nullptr
;
53
55
void
blockAllSignals(
bool
block );
56
57
private
slots:
58
void
mShapeComboBox_currentIndexChanged(
const
QString &text );
59
void
mCornerRadiusSpinBox_valueChanged(
double
val );
60
void
radiusUnitsChanged();
61
void
symbolChanged();
62
64
void
setGuiElementValues();
65
67
void
toggleRadiusSpin(
QgsLayoutItemShape::Shape
shape );
68
};
69
70
#endif
// QGSLAYOUTSHAPEWIDGET_H
QgsLayoutItemBaseWidget::setNewItem
virtual bool setNewItem(QgsLayoutItem *item)
Attempts to update the widget to show the properties for the specified item.
Definition
qgslayoutitemwidget.cpp:270
QgsLayoutItemBaseWidget::setMasterLayout
virtual void setMasterLayout(QgsMasterLayoutInterface *masterLayout)
Sets the master layout associated with the item.
Definition
qgslayoutitemwidget.cpp:252
QgsLayoutItemBaseWidget::QgsLayoutItemBaseWidget
QgsLayoutItemBaseWidget(QWidget *parent SIP_TRANSFERTHIS, QgsLayoutObject *layoutObject)
Constructor for QgsLayoutItemBaseWidget, linked with the specified layoutObject.
Definition
qgslayoutitemwidget.cpp:202
QgsLayoutItemPropertiesWidget
A widget for controlling the common properties of layout items (e.g.
Definition
qgslayoutitemwidget.h:214
QgsLayoutItemShape
Layout item for basic filled shapes (e.g.
Definition
qgslayoutitemshape.h:31
QgsLayoutItemShape::Shape
Shape
Shape type.
Definition
qgslayoutitemshape.h:37
QgsLayoutItem
Base class for graphical items within a QgsLayout.
Definition
qgslayoutitem.h:106
QgsLayoutShapeWidget::QgsLayoutShapeWidget
QgsLayoutShapeWidget(QgsLayoutItemShape *shape)
constructor
Definition
qgslayoutshapewidget.cpp:30
QgsMasterLayoutInterface
Interface for master layout type objects, such as print layouts and reports.
Definition
qgsmasterlayoutinterface.h:45
qgslayoutitemshape.h
qgslayoutitemwidget.h
Generated on
for QGIS API Documentation by
1.17.0