QGIS API Documentation 3.99.0-Master (c22de0620c0)
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
22#include "ui_qgslayoutwidgetbase.h"
23
24#include "qgis_gui.h"
25#include "qgspanelwidget.h"
26
27#define SIP_NO_FILE
28
29class QgsLayout;
31
39class 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
LayoutUnit
Layout measurement units.
Definition qgis.h:5325
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.