QGIS/src/app/qgsannotationwidget.h

54 lines
1.9 KiB
C
Raw Normal View History

/***************************************************************************
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"
#include <memory>
class QgsMapCanvasAnnotationItem;
2016-08-06 11:01:42 +02:00
class QgsMarkerSymbol;
class QgsFillSymbol;
/**
* A configuration widget to configure the annotation item properties. Usually embedded by QgsAnnotation
subclass configuration dialogs*/
class APP_EXPORT QgsAnnotationWidget: public QWidget, private Ui::QgsAnnotationWidgetBase
{
Q_OBJECT
public:
QgsAnnotationWidget( QgsMapCanvasAnnotationItem *item, QWidget *parent = nullptr, Qt::WindowFlags f = nullptr );
void apply();
signals:
//! Emitted when the background color of the annotation is changed
2017-03-03 08:42:00 +01:00
void backgroundColorChanged( const QColor &color );
private:
2017-03-03 08:42:00 +01:00
QgsMapCanvasAnnotationItem *mItem = nullptr;
void blockAllSignals( bool block );
void updateCenterIcon();
void updateFillIcon();
};
#endif // QGSANNOTATIONWIDGET_H