QGIS API Documentation
3.43.0-Master (3ee7834ace6)
Toggle main menu visibility
Main Page
Related Pages
Topics
Namespaces
Namespace List
Namespace Members
All
a
b
c
d
e
f
g
h
i
l
m
n
o
p
q
r
s
t
u
w
z
Functions
a
b
c
d
e
f
g
h
i
l
m
n
o
p
r
s
t
u
w
z
Variables
Typedefs
Enumerations
Enumerator
Classes
Class List
Class Index
Class Hierarchy
Class Members
All
2
3
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
~
Functions
2
3
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
~
Variables
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Typedefs
a
b
c
d
e
f
g
h
i
k
l
m
o
p
r
s
t
u
v
w
z
Enumerations
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
z
Enumerator
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Properties
a
b
c
d
e
f
g
h
i
l
m
n
o
p
r
s
t
u
v
w
x
y
z
Related Symbols
3
a
b
c
d
e
f
g
h
i
l
m
n
o
p
q
r
s
t
u
v
Files
File List
File Members
All
3
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
y
z
Functions
_
a
b
c
d
e
f
g
h
i
j
l
m
n
o
p
q
r
s
t
u
v
w
z
Variables
a
b
c
d
e
f
g
h
i
l
n
o
p
q
r
s
t
u
w
Typedefs
3
a
c
d
e
f
g
h
i
l
m
n
o
p
q
r
s
t
u
v
w
Enumerations
Enumerator
Macros
a
b
c
d
e
f
g
h
i
k
l
m
n
o
p
q
r
s
t
w
y
Loading...
Searching...
No Matches
src
gui
history
qgshistorywidget.h
Go to the documentation of this file.
1
/***************************************************************************
2
qgshistorywidget.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 QGSHISTORYWIDGET_H
17
#define QGSHISTORYWIDGET_H
18
19
#include "
qgis.h
"
20
#include "qgis_gui.h"
21
#include "ui_qgshistorywidgetbase.h"
22
#include "
qgspanelwidget.h
"
23
#include "
qgshistorywidgetcontext.h
"
24
25
#include <QSortFilterProxyModel>
26
27
class
QgsHistoryProviderRegistry
;
28
class
QgsHistoryEntryModel
;
29
class
QgsMessageBar
;
30
31
#ifndef SIP_RUN
32
34
class
GUI_EXPORT QgsHistoryEntryProxyModel :
public
QSortFilterProxyModel
35
{
36
Q_OBJECT
37
public
:
38
QgsHistoryEntryProxyModel( QObject *parent =
nullptr
);
39
40
void
setFilter(
const
QString &filter );
41
bool
filterAcceptsRow(
int
source_row,
const
QModelIndex &source_parent )
const override
;
42
43
private
:
44
QString mFilter;
45
};
47
#endif
48
54
class
GUI_EXPORT
QgsHistoryWidget
:
public
QgsPanelWidget
,
private
Ui::QgsHistoryWidgetBase
55
{
56
Q_OBJECT
57
58
public
:
69
QgsHistoryWidget
(
const
QString &providerId = QString(),
Qgis::HistoryProviderBackends
backends =
Qgis::HistoryProviderBackend::LocalProfile
,
QgsHistoryProviderRegistry
*registry =
nullptr
,
const
QgsHistoryWidgetContext
&context =
QgsHistoryWidgetContext
(), QWidget *parent =
nullptr
);
70
71
private
slots:
72
73
void
currentItemChanged(
const
QModelIndex &selected,
const
QModelIndex &previous );
74
void
nodeDoubleClicked(
const
QModelIndex &index );
75
void
showNodeContextMenu(
const
QPoint &pos );
76
void
urlClicked(
const
QUrl &url );
77
78
private
:
79
QgsHistoryEntryModel
*mModel =
nullptr
;
80
QgsHistoryEntryProxyModel *mProxyModel =
nullptr
;
81
QgsHistoryWidgetContext
mContext;
82
};
54
class
GUI_EXPORT
QgsHistoryWidget
:
public
QgsPanelWidget
,
private
Ui::QgsHistoryWidgetBase {
…
};
83
84
#endif
// QGSHISTORYWIDGET_H
Qgis::HistoryProviderBackend::LocalProfile
@ LocalProfile
Local profile.
Qgis::HistoryProviderBackends
QFlags< HistoryProviderBackend > HistoryProviderBackends
Definition
qgis.h:3376
QgsHistoryEntryModel
An item model representing history entries in a hierarchical tree structure.
Definition
qgshistoryentrymodel.h:43
QgsHistoryProviderRegistry
The QgsHistoryProviderRegistry is a registry for objects which track user history (i....
Definition
qgshistoryproviderregistry.h:45
QgsHistoryWidgetContext
Contains settings which reflect the context in which a history widget is shown, e....
Definition
qgshistorywidgetcontext.h:32
QgsHistoryWidget
A widget showing entries from a QgsHistoryProviderRegistry.
Definition
qgshistorywidget.h:55
QgsMessageBar
A bar for displaying non-blocking messages to the user.
Definition
qgsmessagebar.h:61
QgsPanelWidget
Base class for any widget that can be shown as a inline panel.
Definition
qgspanelwidget.h:30
qgis.h
qgshistorywidgetcontext.h
qgspanelwidget.h
Generated on Mon Mar 24 2025 21:55:38 for QGIS API Documentation by
1.9.8