QGIS API Documentation
3.36.0-Maidenhead (09951dc0acf)
Toggle main menu visibility
Main Page
Related Pages
Topics
Namespaces
Namespace List
Namespace Members
All
a
b
c
d
e
f
g
h
i
l
m
n
o
p
q
r
s
t
u
w
z
Functions
a
b
c
d
e
f
g
h
i
l
m
n
o
p
r
s
t
u
w
z
Variables
Typedefs
Enumerations
Enumerator
Classes
Class List
Class Index
Class Hierarchy
Class Members
All
2
3
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
~
Functions
2
3
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
~
Variables
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Typedefs
a
c
e
f
g
h
i
k
l
m
o
p
r
s
t
u
v
w
Enumerations
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
z
Enumerator
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Properties
a
b
c
d
e
f
g
h
i
l
m
n
o
p
r
s
t
u
v
w
x
y
z
Related Symbols
3
a
b
c
d
e
f
g
h
i
l
m
n
o
p
q
r
s
t
u
v
Files
File List
File Members
All
3
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Functions
_
a
b
c
d
e
f
g
h
i
j
l
m
n
o
p
q
r
s
t
u
v
w
z
Variables
a
b
c
d
e
f
g
h
i
l
n
o
p
q
r
s
t
u
w
Typedefs
3
a
c
d
e
f
g
h
i
l
m
n
o
p
q
r
s
t
u
v
w
Enumerations
Enumerator
c
l
s
t
Macros
a
b
c
d
e
f
g
h
i
k
l
m
n
o
p
q
r
s
t
w
x
y
•
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Properties
Friends
Macros
Modules
Pages
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
23
class
QgsTableEditorWidget
;
24
class
QgsMessageBar
;
25
class
QgsDockWidget
;
26
class
QgsPanelWidgetStack
;
27
class
QgsTableEditorFormattingWidget
;
28
class
QgsExpressionContextGenerator
;
29
41
class
GUI_EXPORT
QgsTableEditorDialog
:
public
QMainWindow,
private
Ui::QgsTableEditorBase
42
{
43
Q_OBJECT
44
public
:
45
49
QgsTableEditorDialog
( QWidget *parent =
nullptr
);
50
56
void
setTableContents(
const
QgsTableContents
&contents );
57
65
bool
setTableContentsFromClipboard();
66
72
QgsTableContents
tableContents()
const
;
73
80
double
tableRowHeight(
int
row );
81
88
double
tableColumnWidth(
int
column );
89
98
void
setTableRowHeight(
int
row,
double
height );
99
108
void
setTableColumnWidth(
int
column,
double
width );
109
115
bool
includeTableHeader()
const
;
116
122
void
setIncludeTableHeader(
bool
included );
123
129
QVariantList tableHeaders()
const
;
130
136
void
setTableHeaders(
const
QVariantList &headers );
137
143
void
registerExpressionContextGenerator(
QgsExpressionContextGenerator
*generator );
144
145
signals:
146
150
void
tableChanged
();
151
155
void
includeHeaderChanged
(
bool
included );
156
157
protected
:
158
159
void
closeEvent( QCloseEvent * )
override
;
160
161
private
:
162
QgsTableEditorWidget
*mTableWidget =
nullptr
;
163
QgsMessageBar
*mMessageBar =
nullptr
;
164
QgsDockWidget
*mPropertiesDock =
nullptr
;
165
QgsPanelWidgetStack
*mPropertiesStack =
nullptr
;
166
QgsTableEditorFormattingWidget
*mFormattingWidget =
nullptr
;
167
bool
mBlockSignals =
false
;
168
169
void
updateActionNamesFromSelection();
170
};
41
class
GUI_EXPORT
QgsTableEditorDialog
:
public
QMainWindow,
private
Ui::QgsTableEditorBase {
…
};
171
172
#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
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:42
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:112
qgstablecell.h
QgsTableContents
QVector< QgsTableRow > QgsTableContents
A set of table rows.
Definition
qgstablecell.h:220
Generated on Mon Feb 26 2024 10:02:44 for QGIS API Documentation by
1.9.8