QGIS API Documentation
4.3.0-Master (16eddb2670e)
Toggle main menu visibility
Loading...
Searching...
No Matches
src
gui
layout
qgslayoutpropertieswidget.h
Go to the documentation of this file.
1
/***************************************************************************
2
qgslayoutpropertieswidget.h
3
----------------------------
4
begin : July 2017
5
copyright : (C) 2017 by Nyall Dawson
6
email : nyall dot dawson at gmail dot com
7
***************************************************************************/
8
/***************************************************************************
9
* *
10
* This program is free software; you can redistribute it and/or modify *
11
* it under the terms of the GNU General Public License as published by *
12
* the Free Software Foundation; either version 2 of the License, or *
13
* (at your option) any later version. *
14
* *
15
***************************************************************************/
16
17
#ifndef QGSLAYOUTPROPERTIESWIDGET_H
18
#define QGSLAYOUTPROPERTIESWIDGET_H
19
20
// We don't want to expose this in the public API
21
22
#include "ui_qgslayoutwidgetbase.h"
23
24
#include "qgis_gui.h"
25
#include "
qgspanelwidget.h
"
26
27
#define SIP_NO_FILE
28
29
class
QgsLayout
;
30
class
QgsMasterLayoutInterface
;
31
39
class
GUI_EXPORT
QgsLayoutPropertiesWidget
:
public
QgsPanelWidget
,
private
Ui::QgsLayoutWidgetBase
40
{
41
Q_OBJECT
42
public
:
44
QgsLayoutPropertiesWidget
( QWidget *parent,
QgsLayout
*layout );
45
47
void
setMasterLayout
(
QgsMasterLayoutInterface
*masterLayout );
48
49
public
slots:
50
52
void
updateGui
();
53
54
private
slots:
55
56
void
gridResolutionChanged(
double
d );
57
void
gridResolutionUnitsChanged(
Qgis::LayoutUnit
unit );
58
void
gridOffsetXChanged(
double
d );
59
void
gridOffsetYChanged(
double
d );
60
void
gridOffsetUnitsChanged(
Qgis::LayoutUnit
unit );
61
void
snapToleranceChanged(
int
tolerance );
62
void
resizeMarginsChanged();
63
void
resizeToContents();
64
void
referenceMapChanged(
QgsLayoutItem
*item );
65
void
dpiChanged(
int
value );
66
void
worldFileToggled();
67
void
rasterizeToggled();
68
void
forceVectorToggled();
69
void
variablesChanged();
70
void
updateVariables();
71
72
private
:
73
QgsLayout
*mLayout =
nullptr
;
74
75
void
updateSnappingElements();
76
void
blockSignals(
bool
block );
77
bool
mBlockVariableUpdates =
false
;
78
};
79
80
#endif
// QGSLAYOUTPROPERTIESWIDGET_H
Qgis::LayoutUnit
LayoutUnit
Layout measurement units.
Definition
qgis.h:5778
QgsLayoutItem
Base class for graphical items within a QgsLayout.
Definition
qgslayoutitem.h:106
QgsLayoutPropertiesWidget::setMasterLayout
void setMasterLayout(QgsMasterLayoutInterface *masterLayout)
Sets the master layout.
Definition
qgslayoutpropertieswidget.cpp:115
QgsLayoutPropertiesWidget::updateGui
void updateGui()
Refreshes the gui to reflect the current layout settings.
Definition
qgslayoutpropertieswidget.cpp:124
QgsLayoutPropertiesWidget::QgsLayoutPropertiesWidget
QgsLayoutPropertiesWidget(QWidget *parent, QgsLayout *layout)
constructor
Definition
qgslayoutpropertieswidget.cpp:36
QgsLayout
Base class for layouts, which can contain items such as maps, labels, scalebars, etc.
Definition
qgslayout.h:51
QgsMasterLayoutInterface
Interface for master layout type objects, such as print layouts and reports.
Definition
qgsmasterlayoutinterface.h:45
QgsPanelWidget::QgsPanelWidget
QgsPanelWidget(QWidget *parent=nullptr)
Base class for any widget that can be shown as an inline panel.
Definition
qgspanelwidget.cpp:30
qgspanelwidget.h
Generated on
for QGIS API Documentation by
1.17.0