-
-
Notifications
You must be signed in to change notification settings - Fork 3k
/
qgslayoutmanualtablewidget.h
77 lines (63 loc) · 3.1 KB
/
qgslayoutmanualtablewidget.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
/***************************************************************************
qgslayoutmanualtablewidget.h
---------------------------------
begin : January 2020
copyright : (C) 2020 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 QGSLAYOUTMANUALTABLEWIDGET_H
#define QGSLAYOUTMANUALTABLEWIDGET_H
#include "ui_qgslayoutmanualtablewidgetbase.h"
#include "qgslayoutitemwidget.h"
#include "qgstableeditordialog.h"
#include <QPointer>
class QgsLayoutItemManualTable;
class QgsLayoutFrame;
class QgsLayoutManualTableWidget: public QgsLayoutItemBaseWidget, private Ui::QgsLayoutManualTableWidgetBase
{
Q_OBJECT
public:
QgsLayoutManualTableWidget( QgsLayoutFrame *frame );
void setMasterLayout( QgsMasterLayoutInterface *masterLayout ) override;
protected:
bool setNewItem( QgsLayoutItem *item ) override;
private:
QPointer< QgsLayoutItemManualTable > mTable;
QPointer< QgsLayoutFrame > mFrame;
QgsLayoutItemPropertiesWidget *mItemPropertiesWidget = nullptr;
QPointer< QgsTableEditorDialog > mEditorDialog;
//! Blocks / unblocks the signals of all GUI elements
void blockAllSignals( bool b );
private slots:
void mRefreshPushButton_clicked();
void setTableContents();
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 mHeaderHAlignmentComboBox_currentIndexChanged( int index );
void mAddFramePushButton_clicked();
void mResizeModeComboBox_currentIndexChanged( int index );
void mDrawEmptyCheckBox_toggled( bool checked );
void mEmptyFrameCheckBox_toggled( bool checked );
void mHideEmptyBgCheckBox_toggled( bool checked );
void mWrapBehaviorComboBox_currentIndexChanged( int index );
void mAdvancedCustomizationButton_clicked();
void updateGuiElements();
};
#endif // QGSLAYOUTMANUALTABLEWIDGET_H