/
qgslayoutattributetablewidget.h
115 lines (95 loc) · 4.59 KB
/
qgslayoutattributetablewidget.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
/***************************************************************************
qgslayoutattributetablewidget.h
---------------------------------
begin : November 2017
copyright : (C) 2017 by Nyall Dawson
email : nyall dot dawson at gmail dot com
***************************************************************************/
/***************************************************************************
* *
* This program is free software; you can redistribute it and/or modify *
* it under the terms of the GNU General Public License as published by *
* the Free Software Foundation; either version 2 of the License, or *
* (at your option) any later version. *
* *
***************************************************************************/
#ifndef QGSLAYOUTATTRIBUTETABLEWIDGET_H
#define QGSLAYOUTATTRIBUTETABLEWIDGET_H
// We don't want to expose this in the public API
#define SIP_NO_FILE
#include "qgis_gui.h"
#include "ui_qgslayoutattributetablewidgetbase.h"
#include "qgslayoutitemwidget.h"
class QgsLayoutItemAttributeTable;
class QgsLayoutFrame;
/**
* \ingroup gui
* A widget for configuring layout attribute table items.
*
* \note This class is not a part of public API
* \since QGIS 3.12
*/
class GUI_EXPORT QgsLayoutAttributeTableWidget: public QgsLayoutItemBaseWidget, private Ui::QgsLayoutAttributeTableWidgetBase
{
Q_OBJECT
public:
//! constructor
QgsLayoutAttributeTableWidget( QgsLayoutFrame *frame );
void setReportTypeString( const QString &string ) override;
void setMasterLayout( QgsMasterLayoutInterface *masterLayout ) override;
protected:
bool setNewItem( QgsLayoutItem *item ) override;
private:
QPointer< QgsLayoutItemAttributeTable > mTable;
QPointer< QgsLayoutFrame > mFrame;
QgsLayoutItemPropertiesWidget *mItemPropertiesWidget = nullptr;
//! Blocks / unblocks the signals of all GUI elements
void blockAllSignals( bool b );
void toggleSourceControls();
void toggleAtlasSpecificControls( bool atlasEnabled );
private slots:
void mRefreshPushButton_clicked();
void mAttributesPushButton_clicked();
void composerMapChanged( QgsLayoutItem *item );
void mMaximumRowsSpinBox_valueChanged( int i );
void mMarginSpinBox_valueChanged( double d );
void mGridStrokeWidthSpinBox_valueChanged( double d );
void mGridColorButton_colorChanged( const QColor &newColor );
void mBackgroundColorButton_colorChanged( const QColor &newColor );
void headerFontChanged();
void mHeaderFontColorButton_colorChanged( const QColor &newColor );
void contentFontChanged();
void mContentFontColorButton_colorChanged( const QColor &newColor );
void mDrawHorizontalGrid_toggled( bool state );
void mDrawVerticalGrid_toggled( bool state );
void mShowGridGroupCheckBox_toggled( bool state );
void mShowOnlyVisibleFeaturesCheckBox_stateChanged( int state );
void mFeatureFilterCheckBox_stateChanged( int state );
void mFeatureFilterEdit_editingFinished();
void mFeatureFilterButton_clicked();
void mHeaderHAlignmentComboBox_currentIndexChanged( int index );
void mHeaderModeComboBox_currentIndexChanged( int index );
void mWrapStringLineEdit_editingFinished();
void changeLayer( QgsMapLayer *layer );
void mAddFramePushButton_clicked();
void mResizeModeComboBox_currentIndexChanged( int index );
void mSourceComboBox_currentIndexChanged( int index );
void mRelationsComboBox_currentIndexChanged( int index );
void mEmptyModeComboBox_currentIndexChanged( int index );
void mDrawEmptyCheckBox_toggled( bool checked );
void mEmptyMessageLineEdit_editingFinished();
void mIntersectAtlasCheckBox_stateChanged( int state );
void mUniqueOnlyCheckBox_stateChanged( int state );
void mEmptyFrameCheckBox_toggled( bool checked );
void mHideEmptyBgCheckBox_toggled( bool checked );
void mWrapBehaviorComboBox_currentIndexChanged( int index );
void mAdvancedCustomizationButton_clicked();
void useConditionalStylingChanged( bool checked );
//! Inserts a new maximum number of features into the spin box (without the spinbox emitting a signal)
void setMaximumNumberOfFeatures( int n );
//! Sets the GUI elements to the values of mComposerTable
void updateGuiElements();
void atlasToggled();
void updateRelationsCombo();
};
#endif // QGSLAYOUTATTRIBUTETABLEWIDGET_H