QGIS API Documentation
4.3.0-Master (16eddb2670e)
Toggle main menu visibility
Loading...
Searching...
No Matches
src
gui
history
qgshistorywidgetcontext.h
Go to the documentation of this file.
1
/***************************************************************************
2
qgshistorywidgetcontext.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 QGSHISTORYWIDGETCONTEXT_H
17
#define QGSHISTORYWIDGETCONTEXT_H
18
19
#include "
qgis.h
"
20
#include "qgis_gui.h"
21
22
class
QgsMessageBar
;
23
class
QgsHistoryWidget
;
24
32
class
GUI_EXPORT
QgsHistoryWidgetContext
33
{
34
public
:
35
QgsHistoryWidgetContext
() =
default
;
36
42
void
setMessageBar
(
QgsMessageBar
*bar );
43
48
QgsMessageBar
*
messageBar
()
const
;
49
56
void
setHistoryWidget
(
QgsHistoryWidget
*widget );
57
64
QgsHistoryWidget
*
historyWidget
()
const
;
65
66
private
:
67
QgsMessageBar
*mMessageBar =
nullptr
;
68
QgsHistoryWidget
*mHistoryWidget =
nullptr
;
69
};
70
71
#endif
// QGSHISTORYWIDGETCONTEXT_H
QgsHistoryWidgetContext::QgsHistoryWidgetContext
QgsHistoryWidgetContext()=default
QgsHistoryWidgetContext::setHistoryWidget
void setHistoryWidget(QgsHistoryWidget *widget)
Sets the parent history widget.
Definition
qgshistorywidgetcontext.cpp:28
QgsHistoryWidgetContext::setMessageBar
void setMessageBar(QgsMessageBar *bar)
Sets the message bar associated with the widget.
Definition
qgshistorywidgetcontext.cpp:18
QgsHistoryWidgetContext::messageBar
QgsMessageBar * messageBar() const
Returns the message bar associated with the widget.
Definition
qgshistorywidgetcontext.cpp:23
QgsHistoryWidgetContext::historyWidget
QgsHistoryWidget * historyWidget() const
Returns the parent history widget.
Definition
qgshistorywidgetcontext.cpp:33
QgsHistoryWidget
A widget showing entries from a QgsHistoryProviderRegistry.
Definition
qgshistorywidget.h:56
QgsMessageBar
A bar for displaying non-blocking messages to the user.
Definition
qgsmessagebar.h:61
qgis.h
Generated on
for QGIS API Documentation by
1.17.0