QGIS API Documentation 3.41.0-Master (fda2aa46e9a)
Loading...
Searching...
No Matches
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_sip.h"
20#include <QPointer>
21
22#include "qgis.h"
23#include "qgis_gui.h"
24
26class QgsMessageBar;
27
34{
35 public:
36
38
46 QgsAttributeDialog *attributeDialog() const;
47
53 void setAttributeDialog( QgsAttributeDialog *dialog );
54
62 QgsMessageBar *messageBar() const;
63
69 void setMessageBar( QgsMessageBar *bar );
70
71 private:
72
73 QPointer< QgsAttributeDialog > mAttributeDialog;
74 QPointer< QgsMessageBar > mMessageBar;
75};
76
78
79#endif // QGSMAPLAYERACTIONCONTEXT_H
Encapsulates the context in which a QgsMapLayerAction action is executed.
A bar for displaying non-blocking messages to the user.
Q_DECLARE_METATYPE(QgsDatabaseQueryLogEntry)