QGIS API Documentation 3.99.0-Master (2fe06baccd8)
Loading...
Searching...
No Matches
qgsprocessinghistoryprovider.h
Go to the documentation of this file.
1/***************************************************************************
2 qgsprocessinghistoryprovider.h
3 --------------------------
4 begin : December 2021
5 copyright : (C) 2021 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 QGSPROCESSINGHISTORYPROVIDER_H
17#define QGSPROCESSINGHISTORYPROVIDER_H
18
19#include "qgis_gui.h"
20#include "qgis_sip.h"
21#include "qgshistoryprovider.h"
22
30{
31 Q_OBJECT
32
33 public:
35
36 QString id() const override;
37
43 void portOldLog();
44
46 void updateNodeForEntry( QgsHistoryEntryNode *node, const QgsHistoryEntry &entry, const QgsHistoryWidgetContext &context ) override;
47
48 signals:
49
55 void executePython( const QString &commands );
56
62 void createTest( const QString &command );
63
64 private:
66 void emitExecute( const QString &commands );
67
68 void emitCreateTest( const QString &command );
69
71 QString oldLogPath() const;
72
74};
75
76#endif //QGSHISTORYPROVIDER_H
Abstract base class for objects which track user history (i.e.
virtual QString id() const =0
Returns the provider's unique id, which is used to associate existing history entries with the provid...
virtual void updateNodeForEntry(QgsHistoryEntryNode *node, const QgsHistoryEntry &entry, const QgsHistoryWidgetContext &context)
Updates an existing history node for the given entry.
virtual QgsHistoryEntryNode * createNodeForEntry(const QgsHistoryEntry &entry, const QgsHistoryWidgetContext &context)
Creates a new history node for the given entry.
Base class for nodes representing a QgsHistoryEntry.
Encapsulates a history entry.
Contains settings which reflect the context in which a history widget is shown, e....
void executePython(const QString &commands)
Emitted when the provider needs to execute python commands in the Processing context.
void createTest(const QString &command)
Emitted when the provider needs to create a Processing test with the given python command.
void portOldLog()
Ports the old text log to the history framework.
#define SIP_FACTORY
Definition qgis_sip.h:84