QGIS API Documentation
4.3.0-Master (16eddb2670e)
Toggle main menu visibility
Loading...
Searching...
No Matches
src
gui
history
qgshistoryprovider.h
Go to the documentation of this file.
1
/***************************************************************************
2
qgshistoryprovider.h
3
--------------------------
4
begin : April 2019
5
copyright : (C) 2019 by 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
#ifndef QGSHISTORYPROVIDER_H
17
#define QGSHISTORYPROVIDER_H
18
19
#include "qgis_gui.h"
20
#include "
qgis_sip.h
"
21
22
#include <QString>
23
#include <QVariantMap>
24
25
class
QgsHistoryEntryNode
;
26
class
QgsHistoryEntry
;
27
class
QgsHistoryWidgetContext
;
28
37
class
GUI_EXPORT
QgsAbstractHistoryProvider
:
public
QObject
38
{
39
Q_OBJECT
40
41
public
:
42
#ifdef SIP_RUN
43
SIP_CONVERT_TO_SUBCLASS_CODE
44
if
( qobject_cast<QgsProcessingHistoryProvider *>( sipCpp ) )
45
sipType = sipType_QgsProcessingHistoryProvider;
46
else
47
sipType =
nullptr
;
48
SIP_END
49
#endif
50
51
~QgsAbstractHistoryProvider
()
override
;
52
56
virtual
QString
id
()
const
= 0;
57
63
virtual
QgsHistoryEntryNode
*
createNodeForEntry
(
const
QgsHistoryEntry
&entry,
const
QgsHistoryWidgetContext
&context )
SIP_FACTORY
;
64
70
virtual
void
updateNodeForEntry
(
QgsHistoryEntryNode
*node,
const
QgsHistoryEntry
&entry,
const
QgsHistoryWidgetContext
&context );
71
};
72
73
#endif
//QGSHISTORYPROVIDER_H
QgsAbstractHistoryProvider
Abstract base class for objects which track user history (i.e.
Definition
qgshistoryprovider.h:38
QgsAbstractHistoryProvider::id
virtual QString id() const =0
Returns the provider's unique id, which is used to associate existing history entries with the provid...
QgsAbstractHistoryProvider::~QgsAbstractHistoryProvider
~QgsAbstractHistoryProvider() override
QgsAbstractHistoryProvider::updateNodeForEntry
virtual void updateNodeForEntry(QgsHistoryEntryNode *node, const QgsHistoryEntry &entry, const QgsHistoryWidgetContext &context)
Updates an existing history node for the given entry.
Definition
qgshistoryprovider.cpp:28
QgsAbstractHistoryProvider::createNodeForEntry
virtual QgsHistoryEntryNode * createNodeForEntry(const QgsHistoryEntry &entry, const QgsHistoryWidgetContext &context)
Creates a new history node for the given entry.
Definition
qgshistoryprovider.cpp:23
QgsHistoryEntryNode
Base class for nodes representing a QgsHistoryEntry.
Definition
qgshistoryentrynode.h:42
QgsHistoryEntry
Encapsulates a history entry.
Definition
qgshistoryentry.h:37
QgsHistoryWidgetContext
Contains settings which reflect the context in which a history widget is shown, e....
Definition
qgshistorywidgetcontext.h:33
qgis_sip.h
SIP_CONVERT_TO_SUBCLASS_CODE
#define SIP_CONVERT_TO_SUBCLASS_CODE(code)
Definition
qgis_sip.h:203
SIP_FACTORY
#define SIP_FACTORY
Definition
qgis_sip.h:83
SIP_END
#define SIP_END
Definition
qgis_sip.h:220
Generated on
for QGIS API Documentation by
1.17.0