1 /***************************************************************************
2     qgsformannotationdialog.h
3     ---------------------
4     begin                : March 2010
5     copyright            : (C) 2010 by Marco Hugentobler
6     email                : marco dot hugentobler at sourcepole dot ch
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 QgsHTMLAnnotationDialog_H
16 #define QgsHTMLAnnotationDialog_H
17 
18 #include "ui_qgsformannotationdialogbase.h"
19 #include "qgis_app.h"
20 
21 class QgsAnnotationWidget;
22 class QgsMapCanvasAnnotationItem;
23 
24 class APP_EXPORT QgsHtmlAnnotationDialog: public QDialog, private Ui::QgsFormAnnotationDialogBase
25 {
26     Q_OBJECT
27   public:
28     QgsHtmlAnnotationDialog( QgsMapCanvasAnnotationItem *item, QWidget *parent = nullptr, Qt::WindowFlags f = Qt::WindowFlags() );
29 
30   private:
31     QgsMapCanvasAnnotationItem *mItem = nullptr;
32     QgsAnnotationWidget *mEmbeddedWidget = nullptr;
33 
34   private slots:
35     void applySettingsToItem();
36     void mBrowseToolButton_clicked();
37     void deleteItem();
38     void mButtonBox_clicked( QAbstractButton *button );
39     void on_mFileRadioButton_toggled( bool checked );
40     void on_mSourceRadioButton_toggled( bool checked );
41     void showHelp();
42 };
43 
44 #endif // QgsHTMLAnnotationDialog_H
45