2017-04-07 08:50:57 +02:00
|
|
|
/************************************************************************
|
|
|
|
* This file has been generated automatically from *
|
|
|
|
* *
|
|
|
|
* src/core/qgslegendstyle.h *
|
|
|
|
* *
|
|
|
|
* Do not edit manually ! Edit header and run scripts/sipify.pl again *
|
|
|
|
************************************************************************/
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2016-12-12 03:06:02 +08:00
|
|
|
class QgsLegendStyle
|
2013-06-22 19:37:41 +02:00
|
|
|
{
|
2017-04-07 08:50:57 +02:00
|
|
|
%Docstring
|
|
|
|
Composer legend components style
|
|
|
|
%End
|
|
|
|
|
2013-06-22 19:37:41 +02:00
|
|
|
%TypeHeaderCode
|
2017-04-07 08:50:57 +02:00
|
|
|
#include "qgslegendstyle.h"
|
2013-06-22 19:37:41 +02:00
|
|
|
%End
|
|
|
|
public:
|
|
|
|
enum Style
|
|
|
|
{
|
2017-04-07 08:50:57 +02:00
|
|
|
Undefined,
|
|
|
|
Hidden,
|
2013-06-22 19:37:41 +02:00
|
|
|
Title,
|
|
|
|
Group,
|
2017-04-07 08:50:57 +02:00
|
|
|
Subgroup,
|
|
|
|
Symbol,
|
2013-06-22 19:37:41 +02:00
|
|
|
SymbolLabel
|
|
|
|
};
|
2017-04-07 08:50:57 +02:00
|
|
|
enum Side //! margin side
|
2013-06-22 19:37:41 +02:00
|
|
|
{
|
2014-06-02 21:00:51 +02:00
|
|
|
Top,
|
|
|
|
Bottom,
|
|
|
|
Left,
|
2017-04-07 08:50:57 +02:00
|
|
|
Right };
|
2016-12-12 03:06:02 +08:00
|
|
|
QgsLegendStyle();
|
2013-06-22 19:37:41 +02:00
|
|
|
|
|
|
|
QFont font() const;
|
2017-04-07 08:50:57 +02:00
|
|
|
%Docstring
|
|
|
|
:rtype: QFont
|
|
|
|
%End
|
|
|
|
void setFont( const QFont &font );
|
2013-06-22 19:37:41 +02:00
|
|
|
|
|
|
|
double margin( Side side );
|
2017-04-07 08:50:57 +02:00
|
|
|
%Docstring
|
|
|
|
:rtype: float
|
|
|
|
%End
|
2013-06-22 19:37:41 +02:00
|
|
|
void setMargin( Side side, double margin );
|
|
|
|
|
|
|
|
void setMargin( double margin );
|
2017-04-07 08:50:57 +02:00
|
|
|
%Docstring
|
|
|
|
set all margins
|
|
|
|
%End
|
2013-06-22 19:37:41 +02:00
|
|
|
|
2017-04-07 08:50:57 +02:00
|
|
|
void writeXml( const QString &name, QDomElement &elem, QDomDocument &doc ) const;
|
2013-06-22 19:37:41 +02:00
|
|
|
|
2017-04-07 08:50:57 +02:00
|
|
|
void readXml( const QDomElement &elem, const QDomDocument &doc );
|
2013-06-22 19:37:41 +02:00
|
|
|
|
|
|
|
static QString styleName( Style s );
|
2017-04-07 08:50:57 +02:00
|
|
|
%Docstring
|
|
|
|
Get name for style, used in project file
|
|
|
|
:rtype: str
|
|
|
|
%End
|
2013-06-22 19:37:41 +02:00
|
|
|
|
2017-04-07 08:50:57 +02:00
|
|
|
static Style styleFromName( const QString &styleName );
|
|
|
|
%Docstring
|
|
|
|
Get style from name, used in project file
|
|
|
|
:rtype: Style
|
|
|
|
%End
|
2013-06-22 19:37:41 +02:00
|
|
|
|
|
|
|
static QString styleLabel( Style s );
|
2017-04-07 08:50:57 +02:00
|
|
|
%Docstring
|
|
|
|
Get style label, translated, used in UI
|
|
|
|
:rtype: str
|
|
|
|
%End
|
|
|
|
|
2013-06-22 19:37:41 +02:00
|
|
|
};
|
2017-04-07 08:50:57 +02:00
|
|
|
|
|
|
|
/************************************************************************
|
|
|
|
* This file has been generated automatically from *
|
|
|
|
* *
|
|
|
|
* src/core/qgslegendstyle.h *
|
|
|
|
* *
|
|
|
|
* Do not edit manually ! Edit header and run scripts/sipify.pl again *
|
|
|
|
************************************************************************/
|