QGIS API Documentation
3.41.0-Master (cea29feecf2)
Loading...
Searching...
No Matches
src
gui
tableeditor
qgstableeditordialog.h
Go to the documentation of this file.
1
/***************************************************************************
2
qgstableeditordialog.h
3
---------------------
4
begin : January 2020
5
copyright : (C) 2020 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
#ifndef QGSTABLEEDITORDIALOG_H
16
#define QGSTABLEEDITORDIALOG_H
17
18
#include "qgis_gui.h"
19
#include "
qgstablecell.h
"
20
#include "ui_qgstableeditorbase.h"
21
#include <QMainWindow>
22
#include <QPointer>
23
24
class
QgsTableEditorWidget
;
25
class
QgsMessageBar
;
26
class
QgsDockWidget
;
27
class
QgsPanelWidgetStack
;
28
class
QgsTableEditorFormattingWidget
;
29
class
QgsExpressionContextGenerator
;
30
class
QgsMapLayer
;
31
class
QgsLayoutItemManualTable
;
32
44
class
GUI_EXPORT
QgsTableEditorDialog
:
public
QMainWindow,
private
Ui::QgsTableEditorBase
45
{
46
Q_OBJECT
47
public
:
51
QgsTableEditorDialog
( QWidget *parent =
nullptr
);
52
58
void
setTableContents(
const
QgsTableContents
&contents );
59
67
bool
setTableContentsFromClipboard();
68
74
QgsTableContents
tableContents()
const
;
75
82
double
tableRowHeight(
int
row );
83
90
double
tableColumnWidth(
int
column );
91
100
void
setTableRowHeight(
int
row,
double
height );
101
110
void
setTableColumnWidth(
int
column,
double
width );
111
117
bool
includeTableHeader()
const
;
118
124
void
setIncludeTableHeader(
bool
included );
125
131
QVariantList tableHeaders()
const
;
132
138
void
setTableHeaders(
const
QVariantList &headers );
139
145
void
registerExpressionContextGenerator(
QgsExpressionContextGenerator
*generator );
146
151
QgsMapLayer
*layer()
const
;
152
157
void
setLayer(
QgsMapLayer
*layer );
158
163
QgsLayoutItemManualTable
*table()
const
SIP_SKIP
;
164
169
void
setTable(
QgsLayoutItemManualTable
*table )
SIP_SKIP
;
170
171
signals:
172
176
void
tableChanged
();
177
181
void
includeHeaderChanged
(
bool
included );
182
183
protected
:
184
void
closeEvent( QCloseEvent * )
override
;
185
186
private
:
187
QgsTableEditorWidget
*mTableWidget =
nullptr
;
188
QgsMessageBar
*mMessageBar =
nullptr
;
189
QgsDockWidget
*mPropertiesDock =
nullptr
;
190
QgsPanelWidgetStack
*mPropertiesStack =
nullptr
;
191
QgsTableEditorFormattingWidget
*mFormattingWidget =
nullptr
;
192
bool
mBlockSignals =
false
;
193
QPointer<QgsMapLayer> mLayer;
194
QgsLayoutItemManualTable
*mTable =
nullptr
;
195
196
void
updateActionsFromSelection();
197
};
198
199
#endif
// QGSTABLEEDITORSHEETWIDGET_H
QgsDockWidget
QgsDockWidget subclass with more fine-grained control over how the widget is closed or opened.
Definition
qgsdockwidget.h:31
QgsExpressionContextGenerator
Abstract interface for generating an expression context.
Definition
qgsexpressioncontextgenerator.h:36
QgsLayoutItemManualTable
A layout table subclass that displays manually entered (and formatted) content.
Definition
qgslayoutitemmanualtable.h:32
QgsMapLayer
Base class for all map layer types.
Definition
qgsmaplayer.h:76
QgsMessageBar
A bar for displaying non-blocking messages to the user.
Definition
qgsmessagebar.h:61
QgsPanelWidgetStack
A stack widget to manage panels in the interface.
Definition
qgspanelwidgetstack.h:36
QgsTableEditorDialog
A reusable window for editing simple spreadsheet-style tables.
Definition
qgstableeditordialog.h:45
QgsTableEditorDialog::includeHeaderChanged
void includeHeaderChanged(bool included)
Emitted whenever the "include table header" setting is changed.
QgsTableEditorDialog::tableChanged
void tableChanged()
Emitted whenever the table contents are changed.
QgsTableEditorFormattingWidget
A reusable widget for formatting the contents of a QgsTableCell.
Definition
qgstableeditorformattingwidget.h:42
QgsTableEditorWidget
A reusable widget for editing simple spreadsheet-style tables.
Definition
qgstableeditorwidget.h:109
SIP_SKIP
#define SIP_SKIP
Definition
qgis_sip.h:126
qgstablecell.h
QgsTableContents
QVector< QgsTableRow > QgsTableContents
A set of table rows.
Definition
qgstablecell.h:252
Generated on Sun Dec 15 2024 01:32:01 for QGIS API Documentation by
1.9.8