QGIS API Documentation 3.99.0-Master (8e76e220402)
Loading...
Searching...
No Matches
qgsprocessinghistorywidget.h
Go to the documentation of this file.
1/***************************************************************************
2 qgsprocessinghistorywidget.h
3 ------------------------
4 Date : April 2023
5 Copyright : (C) 2023 Nyall Dawson
6 Email : nyall dot dawson at gmail dot com
7 ***************************************************************************
8 * *
9 * This program is free software; you can redistribute it and/or modify *
10 * it under the terms of the GNU General Public License as published by *
11 * the Free Software Foundation; either version 2 of the License, or *
12 * (at your option) any later version. *
13 * *
14 ***************************************************************************/
15
16#ifndef QGSPROCESSINGHISTORYWIDGET_H
17#define QGSPROCESSINGHISTORYWIDGET_H
18
19#include "qgis.h"
20#include "qgis_gui.h"
21#include "qgsmessagebar.h"
22#include "qgspanelwidget.h"
23
24#include <QDialog>
25
27class QDialogButtonBox;
28
35{
36 Q_OBJECT
37 public:
41 QgsProcessingHistoryWidget( QWidget *parent SIP_TRANSFERTHIS = nullptr );
42
43 public slots:
44
48 void clearHistory();
49
53 void openHelp();
54
58 void saveLog();
59
60 private:
61 QgsHistoryWidget *mHistoryWidget = nullptr;
62};
63
72class GUI_EXPORT QgsProcessingHistoryDialog : public QDialog
73{
74 Q_OBJECT
75 public:
79 QgsProcessingHistoryDialog( QWidget *parent SIP_TRANSFERTHIS = nullptr );
80
81 private:
82 QgsProcessingHistoryWidget *mWidget = nullptr;
83 QDialogButtonBox *mButtonBox = nullptr;
84 QgsMessageBar *mMessageBar = nullptr;
85};
86
87#endif // QGSPROCESSINGHISTORYWIDGET_H
A widget showing entries from a QgsHistoryProviderRegistry.
A bar for displaying non-blocking messages to the user.
QgsPanelWidget(QWidget *parent=nullptr)
Base class for any widget that can be shown as an inline panel.
QgsProcessingHistoryDialog(QWidget *parent=nullptr)
Constructor for QgsProcessingHistoryDialog.
A widget for showing Processing algorithm execution history.
void saveLog()
Interactively allows users to save the history log.
QgsProcessingHistoryWidget(QWidget *parent=nullptr)
Constructor for QgsProcessingHistoryWidget, with the specified parent widget.
void clearHistory()
Clears the Processing history (after user confirmation).
void openHelp()
Opens helps for the widget.
#define SIP_TRANSFERTHIS
Definition qgis_sip.h:53