QGIS API Documentation 3.99.0-Master (21b3aa880ba)
Loading...
Searching...
No Matches
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#define SIP_NO_FILE
22
23#include "ui_qgslayoutwidgetbase.h"
24
25#include "qgis_gui.h"
26#include "qgspanelwidget.h"
27
28class QgsLayout;
30
38class GUI_EXPORT QgsLayoutPropertiesWidget : public QgsPanelWidget, private Ui::QgsLayoutWidgetBase
39{
40 Q_OBJECT
41 public:
43 QgsLayoutPropertiesWidget( QWidget *parent, QgsLayout *layout );
44
46 void setMasterLayout( QgsMasterLayoutInterface *masterLayout );
47
48 public slots:
49
51 void updateGui();
52
53 private slots:
54
55 void gridResolutionChanged( double d );
56 void gridResolutionUnitsChanged( Qgis::LayoutUnit unit );
57 void gridOffsetXChanged( double d );
58 void gridOffsetYChanged( double d );
59 void gridOffsetUnitsChanged( Qgis::LayoutUnit unit );
60 void snapToleranceChanged( int tolerance );
61 void resizeMarginsChanged();
62 void resizeToContents();
63 void referenceMapChanged( QgsLayoutItem *item );
64 void dpiChanged( int value );
65 void worldFileToggled();
66 void rasterizeToggled();
67 void forceVectorToggled();
68 void variablesChanged();
69 void updateVariables();
70
71 private:
72 QgsLayout *mLayout = nullptr;
73
74 void updateSnappingElements();
75 void blockSignals( bool block );
76 bool mBlockVariableUpdates = false;
77};
78
79#endif // QGSLAYOUTPROPERTIESWIDGET_H
LayoutUnit
Layout measurement units.
Definition qgis.h:5203
Base class for graphical items within a QgsLayout.
void setMasterLayout(QgsMasterLayoutInterface *masterLayout)
Sets the master layout.
void updateGui()
Refreshes the gui to reflect the current layout settings.
QgsLayoutPropertiesWidget(QWidget *parent, QgsLayout *layout)
constructor
Base class for layouts, which can contain items such as maps, labels, scalebars, etc.
Definition qgslayout.h:50
Interface for master layout type objects, such as print layouts and reports.
QgsPanelWidget(QWidget *parent=nullptr)
Base class for any widget that can be shown as an inline panel.