QGIS API Documentation
4.3.0-Master (8c22baaae17)
Toggle main menu visibility
Loading...
Searching...
No Matches
src
gui
actions
qgsmaplayeractioncontext.h
Go to the documentation of this file.
1
/***************************************************************************
2
qgsmaplayeractioncontext.h
3
---------------------------
4
begin : January 2014
5
copyright : (C) 2014 by 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 QGSMAPLAYERACTIONCONTEXT_H
17
#define QGSMAPLAYERACTIONCONTEXT_H
18
19
#include "
qgis.h
"
20
#include "qgis_gui.h"
21
#include "
qgis_sip.h
"
22
23
#include <QPointer>
24
25
class
QgsAttributeDialog
;
26
class
QgsMessageBar
;
27
33
class
GUI_EXPORT
QgsMapLayerActionContext
34
{
35
public
:
36
QgsMapLayerActionContext
();
37
45
QgsAttributeDialog
*
attributeDialog
()
const
;
46
52
void
setAttributeDialog
(
QgsAttributeDialog
*dialog );
53
61
QgsMessageBar
*
messageBar
()
const
;
62
68
void
setMessageBar
(
QgsMessageBar
*bar );
69
70
private
:
71
QPointer<QgsAttributeDialog> mAttributeDialog;
72
QPointer<QgsMessageBar> mMessageBar;
73
};
74
75
Q_DECLARE_METATYPE
(
QgsMapLayerActionContext
)
76
77
#endif
// QGSMAPLAYERACTIONCONTEXT_H
QgsAttributeDialog
An attribute table dialog for a vector layer.
Definition
qgsattributedialog.h:40
QgsMapLayerActionContext
Encapsulates the context in which a QgsMapLayerAction action is executed.
Definition
qgsmaplayeractioncontext.h:34
QgsMapLayerActionContext::attributeDialog
QgsAttributeDialog * attributeDialog() const
Returns the attribute dialog associated with the action's execution.
Definition
qgsmaplayeractioncontext.cpp:23
QgsMapLayerActionContext::QgsMapLayerActionContext
QgsMapLayerActionContext()
QgsMapLayerActionContext::setAttributeDialog
void setAttributeDialog(QgsAttributeDialog *dialog)
Sets the attribute dialog associated with the action's execution.
Definition
qgsmaplayeractioncontext.cpp:28
QgsMapLayerActionContext::messageBar
QgsMessageBar * messageBar() const
Returns the message bar associated with the action's execution.
Definition
qgsmaplayeractioncontext.cpp:33
QgsMapLayerActionContext::setMessageBar
void setMessageBar(QgsMessageBar *bar)
Sets the message bar associated with the action's execution.
Definition
qgsmaplayeractioncontext.cpp:38
QgsMessageBar
A bar for displaying non-blocking messages to the user.
Definition
qgsmessagebar.h:61
qgis.h
qgis_sip.h
Q_DECLARE_METATYPE
Q_DECLARE_METATYPE(QgsDatabaseQueryLogEntry)
Generated on
for QGIS API Documentation by
1.17.0