QGIS API Documentation
4.3.0-Master (16eddb2670e)
Toggle main menu visibility
Loading...
Searching...
No Matches
src
gui
layout
qgslayoutvaliditychecks.h
Go to the documentation of this file.
1
/***************************************************************************
2
qgslayoutvaliditychecks.h
3
---------------------------
4
begin : November 2018
5
copyright : (C) 2018 Nyall Dawson
6
email : nyall dot dawson at gmail dot com
7
***************************************************************************/
8
/***************************************************************************
9
* *
10
* This program is free software; you can redistribute it and/or modify *
11
* it under the terms of the GNU General Public License as published by *
12
* the Free Software Foundation; either version 2 of the License, or *
13
* (at your option) any later version. *
14
* *
15
***************************************************************************/
16
17
#ifndef QGSLAYOUTVALIDITYCHECKS_H
18
#define QGSLAYOUTVALIDITYCHECKS_H
19
20
// We don't want to expose this in the public API
21
22
#include "qgis_gui.h"
23
#include "
qgsabstractvaliditycheck.h
"
24
25
#define SIP_NO_FILE
26
34
class
GUI_EXPORT
QgsLayoutScaleBarValidityCheck
:
public
QgsAbstractValidityCheck
35
{
36
public
:
38
QgsLayoutScaleBarValidityCheck
*
create
()
const override
;
39
QString
id
()
const override
;
40
int
checkType
()
const override
;
41
bool
prepareCheck
(
const
QgsValidityCheckContext
*context,
QgsFeedback
*feedback )
override
;
42
QList<QgsValidityCheckResult>
runCheck
(
const
QgsValidityCheckContext
*context,
QgsFeedback
*feedback )
override
;
43
44
private
:
45
QList<QgsValidityCheckResult> mResults;
46
};
47
48
56
class
GUI_EXPORT
QgsLayoutNorthArrowValidityCheck
:
public
QgsAbstractValidityCheck
57
{
58
public
:
60
QgsLayoutNorthArrowValidityCheck
*
create
()
const override
;
61
QString
id
()
const override
;
62
int
checkType
()
const override
;
63
bool
prepareCheck
(
const
QgsValidityCheckContext
*context,
QgsFeedback
*feedback )
override
;
64
QList<QgsValidityCheckResult>
runCheck
(
const
QgsValidityCheckContext
*context,
QgsFeedback
*feedback )
override
;
65
66
private
:
67
QList<QgsValidityCheckResult> mResults;
68
};
69
70
78
class
GUI_EXPORT
QgsLayoutOverviewValidityCheck
:
public
QgsAbstractValidityCheck
79
{
80
public
:
82
QgsLayoutOverviewValidityCheck
*
create
()
const override
;
83
QString
id
()
const override
;
84
int
checkType
()
const override
;
85
bool
prepareCheck
(
const
QgsValidityCheckContext
*context,
QgsFeedback
*feedback )
override
;
86
QList<QgsValidityCheckResult>
runCheck
(
const
QgsValidityCheckContext
*context,
QgsFeedback
*feedback )
override
;
87
88
private
:
89
QList<QgsValidityCheckResult> mResults;
90
};
91
92
100
class
GUI_EXPORT
QgsLayoutPictureSourceValidityCheck
:
public
QgsAbstractValidityCheck
101
{
102
public
:
104
QgsLayoutPictureSourceValidityCheck
*
create
()
const override
;
105
QString
id
()
const override
;
106
int
checkType
()
const override
;
107
bool
prepareCheck
(
const
QgsValidityCheckContext
*context,
QgsFeedback
*feedback )
override
;
108
QList<QgsValidityCheckResult>
runCheck
(
const
QgsValidityCheckContext
*context,
QgsFeedback
*feedback )
override
;
109
110
private
:
111
QList<QgsValidityCheckResult> mResults;
112
};
113
121
class
GUI_EXPORT
QgsLayoutHtmlItemValidityCheck
:
public
QgsAbstractValidityCheck
122
{
123
public
:
125
QgsLayoutHtmlItemValidityCheck
*
create
()
const override
;
126
QString
id
()
const override
;
127
int
checkType
()
const override
;
128
bool
prepareCheck
(
const
QgsValidityCheckContext
*context,
QgsFeedback
*feedback )
override
;
129
QList<QgsValidityCheckResult>
runCheck
(
const
QgsValidityCheckContext
*context,
QgsFeedback
*feedback )
override
;
130
131
private
:
132
QList<QgsValidityCheckResult> mResults;
133
};
134
135
#endif
// QGSLAYOUTVALIDITYCHECKS_H
QgsAbstractValidityCheck
Abstract base class for individual validity checks.
Definition
qgsabstractvaliditycheck.h:92
QgsAbstractValidityCheck::prepareCheck
virtual bool prepareCheck(const QgsValidityCheckContext *context, QgsFeedback *feedback)
Prepares the check for execution, and returns true if the check can be run.
Definition
qgsabstractvaliditycheck.h:136
QgsAbstractValidityCheck::id
virtual QString id() const =0
Returns the unique ID of the check.
QgsAbstractValidityCheck::checkType
virtual int checkType() const =0
Returns the type of the check.
QgsAbstractValidityCheck::create
virtual QgsAbstractValidityCheck * create() const =0
Creates a new instance of the check and returns it.
QgsAbstractValidityCheck::runCheck
virtual QList< QgsValidityCheckResult > runCheck(const QgsValidityCheckContext *context, QgsFeedback *feedback)=0
Runs the check and returns a list of results.
QgsFeedback
Base class for feedback objects to be used for cancellation of something running in a worker thread.
Definition
qgsfeedback.h:44
QgsLayoutHtmlItemValidityCheck
Layout HTML item validity check.
Definition
qgslayoutvaliditychecks.h:122
QgsLayoutNorthArrowValidityCheck
Layout north arrow validity check.
Definition
qgslayoutvaliditychecks.h:57
QgsLayoutOverviewValidityCheck
Layout overview validity check.
Definition
qgslayoutvaliditychecks.h:79
QgsLayoutPictureSourceValidityCheck
Layout picture source validity check.
Definition
qgslayoutvaliditychecks.h:101
QgsLayoutScaleBarValidityCheck
Layout scalebar validity check.
Definition
qgslayoutvaliditychecks.h:35
QgsValidityCheckContext
Base class for validity check contexts.
Definition
qgsvaliditycheckcontext.h:36
qgsabstractvaliditycheck.h
Generated on
for QGIS API Documentation by
1.17.0