QGIS API Documentation
4.3.0-Master (16eddb2670e)
Toggle main menu visibility
Loading...
Searching...
No Matches
src
gui
layout
qgslayouthtmlwidget.h
Go to the documentation of this file.
1
/***************************************************************************
2
qgslayouthtmlwidget.h
3
---------------------
4
begin : November 2017
5
copyright : (C) 2017 by 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 QGSLAYOUTHTMLWIDGET_H
16
#define QGSLAYOUTHTMLWIDGET_H
17
18
// We don't want to expose this in the public API
19
20
#include "ui_qgslayouthtmlwidgetbase.h"
21
22
#include "qgis_gui.h"
23
#include "
qgslayoutitemwidget.h
"
24
25
#define SIP_NO_FILE
26
27
class
QgsLayoutItemHtml
;
28
class
QgsLayoutFrame
;
29
class
QgsCodeEditorHTML
;
30
class
QgsCodeEditorCSS
;
31
39
class
GUI_EXPORT
QgsLayoutHtmlWidget
:
public
QgsLayoutItemBaseWidget
,
private
Ui::QgsLayoutHtmlWidgetBase
40
{
41
Q_OBJECT
42
public
:
43
QgsLayoutHtmlWidget
() =
delete
;
45
QgsLayoutHtmlWidget
(
QgsLayoutFrame
*frame );
46
void
setMasterLayout
(
QgsMasterLayoutInterface
*masterLayout )
override
;
47
48
protected
:
49
bool
setNewItem
(
QgsLayoutItem
*item )
override
;
50
51
private
slots:
52
void
mUrlLineEdit_editingFinished();
53
void
mFileToolButton_clicked();
54
void
mResizeModeComboBox_currentIndexChanged(
int
index );
55
void
mEvaluateExpressionsCheckbox_toggled(
bool
checked );
56
void
mUseSmartBreaksCheckBox_toggled(
bool
checked );
57
void
mMaxDistanceSpinBox_valueChanged(
double
val );
58
void
htmlEditorChanged();
59
void
stylesheetEditorChanged();
60
void
mUserStylesheetCheckBox_toggled(
bool
checked );
61
void
mRadioManualSource_clicked(
bool
checked );
62
void
mRadioUrlSource_clicked(
bool
checked );
63
void
mInsertExpressionButton_clicked();
64
65
void
mReloadPushButton_clicked();
66
void
mAddFramePushButton_clicked();
67
void
mEmptyFrameCheckBox_toggled(
bool
checked );
68
void
mHideEmptyBgCheckBox_toggled(
bool
checked );
69
71
void
setGuiElementValues();
72
73
protected
slots:
75
void
populateDataDefinedButtons
();
76
77
private
:
78
void
blockSignals(
bool
block );
79
80
QPointer<QgsLayoutItemHtml> mHtml;
81
QPointer<QgsLayoutFrame> mFrame;
82
QgsLayoutItemPropertiesWidget
*mItemPropertiesWidget =
nullptr
;
83
84
QgsCodeEditorHTML
*mHtmlEditor =
nullptr
;
85
QgsCodeEditorCSS
*mStylesheetEditor =
nullptr
;
86
};
87
88
#endif
// QGSLAYOUTHTMLWIDGET_H
QgsCodeEditorCSS
A CSS editor based on QScintilla2.
Definition
qgscodeeditorcss.h:49
QgsCodeEditorHTML
A HTML editor based on QScintilla2.
Definition
qgscodeeditorhtml.h:33
QgsLayoutFrame
Base class for frame items, which form a layout multiframe item.
Definition
qgslayoutframe.h:31
QgsLayoutHtmlWidget::populateDataDefinedButtons
void populateDataDefinedButtons()
Initializes data defined buttons to current atlas coverage layer.
Definition
qgslayouthtmlwidget.cpp:446
QgsLayoutHtmlWidget::QgsLayoutHtmlWidget
QgsLayoutHtmlWidget()=delete
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
QgsLayoutItemHtml
A layout multiframe subclass for HTML content.
Definition
qgslayoutitemhtml.h:38
QgsLayoutItemPropertiesWidget
A widget for controlling the common properties of layout items (e.g.
Definition
qgslayoutitemwidget.h:214
QgsLayoutItem
Base class for graphical items within a QgsLayout.
Definition
qgslayoutitem.h:106
QgsMasterLayoutInterface
Interface for master layout type objects, such as print layouts and reports.
Definition
qgsmasterlayoutinterface.h:45
qgslayoutitemwidget.h
Generated on
for QGIS API Documentation by
1.17.0