QGIS API Documentation
4.3.0-Master (16eddb2670e)
Toggle main menu visibility
Loading...
Searching...
No Matches
src
gui
qgsmasksourceselectionwidget.h
Go to the documentation of this file.
1
/***************************************************************************
2
qgsmasksourceselectionwidget.h
3
---------------------
4
begin : September 2019
5
copyright : (C) 2019 by Hugo Mercier
6
email : hugo dot mercier at oslandia 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
#ifndef QGSMASKSOURCESELECTIONWIDGET_H
16
#define QGSMASKSOURCESELECTIONWIDGET_H
17
18
// We don't want to expose this in the public API
19
20
#include "qgis_gui.h"
21
#include "
qgis_sip.h
"
22
#include "
qgssymbollayerreference.h
"
23
24
#include <QWidget>
25
26
#define SIP_NO_FILE
27
28
class
QTreeWidget;
29
class
QTreeWidgetItem;
30
class
QComboBox;
31
class
QToolButton;
32
class
QgsSymbolLayer
;
33
class
QgsSelectiveMaskingSource;
34
class
QgsSelectiveMaskingSourceSet
;
35
class
QgsSelectiveMaskingSourceSetManagerModel
;
36
class
QgsSelectiveMaskingSourceSetManagerProxyModel
;
37
46
class
GUI_EXPORT
QgsMaskSourceSelectionWidget
:
public
QWidget
47
{
48
Q_OBJECT
49
public
:
51
explicit
QgsMaskSourceSelectionWidget
( QWidget *parent =
nullptr
);
52
54
void
update
();
55
61
QgsSelectiveMaskingSourceSet
sourceSet
()
const
;
62
68
void
setSourceSet
(
const
QgsSelectiveMaskingSourceSet
&set );
69
70
signals:
72
void
changed
();
73
74
private
slots:
75
76
void
selectedSetChanged();
77
void
emitChanged();
78
void
onItemChanged();
79
void
newSet();
80
void
removeSet();
81
void
renameSet();
82
83
private
:
84
bool
isCustomSet()
const
;
85
86
QComboBox *mSetComboBox =
nullptr
;
87
QTreeWidget *mTree =
nullptr
;
88
QHash<QgsSymbolLayerReference, QTreeWidgetItem *> mItems;
89
QgsSelectiveMaskingSourceSetManagerModel
*mManagerModel =
nullptr
;
90
QgsSelectiveMaskingSourceSetManagerProxyModel
*mManagerProxyModel =
nullptr
;
91
QToolButton *mSetsToolButton =
nullptr
;
92
QAction *mRemoveAction =
nullptr
;
93
QAction *mRenameAction =
nullptr
;
94
95
int
mBlockChangedSignals = 0;
96
97
friend
class
TestQgsMaskingWidget
;
98
};
99
100
#endif
QgsMaskSourceSelectionWidget::changed
void changed()
Emitted when an item was changed.
QgsMaskSourceSelectionWidget::sourceSet
QgsSelectiveMaskingSourceSet sourceSet() const
Returns the current masking source set.
Definition
qgsmasksourceselectionwidget.cpp:308
QgsMaskSourceSelectionWidget::update
void update()
Updates the possible sources, from the project layers.
Definition
qgsmasksourceselectionwidget.cpp:114
QgsMaskSourceSelectionWidget::TestQgsMaskingWidget
friend class TestQgsMaskingWidget
Definition
qgsmasksourceselectionwidget.h:97
QgsMaskSourceSelectionWidget::QgsMaskSourceSelectionWidget
QgsMaskSourceSelectionWidget(QWidget *parent=nullptr)
constructor
Definition
qgsmasksourceselectionwidget.cpp:62
QgsMaskSourceSelectionWidget::setSourceSet
void setSourceSet(const QgsSelectiveMaskingSourceSet &set)
Sets the current masking source set.
Definition
qgsmasksourceselectionwidget.cpp:344
QgsSelectiveMaskingSourceSetManagerModel
List model representing the selective masking source sets available in a selective masking source set...
Definition
qgsselectivemaskingsourcesetmanagermodel.h:46
QgsSelectiveMaskingSourceSetManagerProxyModel
QSortFilterProxyModel subclass for QgsSelectiveMaskingSourceSetManagerModel.
Definition
qgsselectivemaskingsourcesetmanagermodel.h:99
QgsSelectiveMaskingSourceSet
Represents a named set of selective masking sources (QgsSelectiveMaskSource).
Definition
qgsselectivemaskingsourceset.h:40
QgsSymbolLayer
Abstract base class for symbol layers.
Definition
qgssymbollayer.h:58
qgis_sip.h
qgssymbollayerreference.h
Generated on
for QGIS API Documentation by
1.17.0