2010-03-29 12:11:48 +00:00
|
|
|
/***************************************************************************
|
|
|
|
qgsannotationwidget.h
|
|
|
|
------------------------
|
|
|
|
begin : February 25, 2010
|
|
|
|
copyright : (C) 2010 by Marco Hugentobler
|
|
|
|
email : marco dot hugentobler at hugis dot net
|
|
|
|
***************************************************************************/
|
|
|
|
|
|
|
|
/***************************************************************************
|
|
|
|
* *
|
|
|
|
* 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 QGSANNOTATIONWIDGET_H
|
|
|
|
#define QGSANNOTATIONWIDGET_H
|
|
|
|
|
|
|
|
#include "ui_qgsannotationwidgetbase.h"
|
2017-01-04 12:05:04 +01:00
|
|
|
#include "qgis_app.h"
|
2017-02-07 12:03:31 +10:00
|
|
|
#include <memory>
|
2010-03-29 12:11:48 +00:00
|
|
|
|
2017-01-26 18:02:52 +10:00
|
|
|
class QgsMapCanvasAnnotationItem;
|
2016-08-06 11:01:42 +02:00
|
|
|
class QgsMarkerSymbol;
|
2017-01-30 12:17:44 +10:00
|
|
|
class QgsFillSymbol;
|
2010-03-29 12:11:48 +00:00
|
|
|
|
2017-10-06 08:19:00 +10:00
|
|
|
/**
|
|
|
|
* A configuration widget to configure the annotation item properties. Usually embedded by QgsAnnotation
|
2010-03-29 12:11:48 +00:00
|
|
|
subclass configuration dialogs*/
|
2013-09-06 22:07:42 +02:00
|
|
|
class APP_EXPORT QgsAnnotationWidget: public QWidget, private Ui::QgsAnnotationWidgetBase
|
2010-03-29 12:11:48 +00:00
|
|
|
{
|
|
|
|
Q_OBJECT
|
|
|
|
public:
|
2017-12-12 11:44:10 +10:00
|
|
|
QgsAnnotationWidget( QgsMapCanvasAnnotationItem *item, QWidget *parent = nullptr, Qt::WindowFlags f = nullptr );
|
2010-03-29 12:11:48 +00:00
|
|
|
|
|
|
|
void apply();
|
|
|
|
|
2016-07-26 15:48:51 +10:00
|
|
|
signals:
|
|
|
|
|
|
|
|
//! Emitted when the background color of the annotation is changed
|
2017-03-03 08:42:00 +01:00
|
|
|
void backgroundColorChanged( const QColor &color );
|
2016-07-26 15:48:51 +10:00
|
|
|
|
2010-03-29 12:11:48 +00:00
|
|
|
private:
|
2017-03-03 08:42:00 +01:00
|
|
|
QgsMapCanvasAnnotationItem *mItem = nullptr;
|
2010-03-29 12:11:48 +00:00
|
|
|
|
|
|
|
void blockAllSignals( bool block );
|
|
|
|
void updateCenterIcon();
|
2017-01-30 12:17:44 +10:00
|
|
|
void updateFillIcon();
|
2010-03-29 12:11:48 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
#endif // QGSANNOTATIONWIDGET_H
|