-
-
Notifications
You must be signed in to change notification settings - Fork 3k
/
qgscomposerhtmlwidget.h
66 lines (55 loc) · 2.47 KB
/
qgscomposerhtmlwidget.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
/***************************************************************************
qgscomposerhtmlwidget.h
---------------------
begin : July 2012
copyright : (C) 2012 by Marco Hugentobler
email : marco dot hugentobler at sourcepole dot ch
***************************************************************************
* *
* This program is free software; you can redistribute it and/or modify *
* it under the terms of the GNU General Public License as published by *
* the Free Software Foundation; either version 2 of the License, or *
* (at your option) any later version. *
* *
***************************************************************************/
#ifndef QGSCOMPOSERHTMLWIDGET_H
#define QGSCOMPOSERHTMLWIDGET_H
#include "ui_qgscomposerhtmlwidgetbase.h"
#include "qgscomposeritemwidget.h"
class QgsComposerHtml;
class QgsComposerFrame;
class QgsCodeEditorHTML;
class QgsComposerHtmlWidget: public QgsComposerItemBaseWidget, private Ui::QgsComposerHtmlWidgetBase
{
Q_OBJECT
public:
QgsComposerHtmlWidget( QgsComposerHtml* html, QgsComposerFrame* frame );
~QgsComposerHtmlWidget();
private slots:
void on_mUrlLineEdit_editingFinished();
void on_mFileToolButton_clicked();
void on_mResizeModeComboBox_currentIndexChanged( int index );
void on_mEvaluateExpressionsCheckbox_toggled( bool checked );
void on_mUseSmartBreaksCheckBox_toggled( bool checked );
void on_mMaxDistanceSpinBox_valueChanged( double val );
void htmlEditorChanged();
void on_mRadioManualSource_clicked( bool checked );
void on_mRadioUrlSource_clicked( bool checked );
void on_mInsertExpressionButton_clicked();
void on_mReloadPushButton_clicked();
void on_mAddFramePushButton_clicked();
/**Sets the GUI elements to the values of mHtmlItem*/
void setGuiElementValues();
protected:
QgsComposerItem::DataDefinedProperty ddPropertyForWidget( QgsDataDefinedButton *widget );
protected slots:
/**Initializes data defined buttons to current atlas coverage layer*/
void populateDataDefinedButtons();
private:
QgsComposerHtmlWidget();
void blockSignals( bool block );
QgsComposerHtml* mHtml;
QgsComposerFrame* mFrame;
QgsCodeEditorHTML *mHtmlEditor;
};
#endif // QGSCOMPOSERHTMLWIDGET_H