mirror of
https://github.com/qgis/QGIS.git
synced 2025-02-25 00:58:06 -05:00
142 lines
3.9 KiB
Plaintext
142 lines
3.9 KiB
Plaintext
/************************************************************************
|
|
* This file has been generated automatically from *
|
|
* *
|
|
* src/gui/tableeditor/qgstableeditordialog.h *
|
|
* *
|
|
* Do not edit manually ! Edit header and run scripts/sipify.pl again *
|
|
************************************************************************/
|
|
|
|
|
|
|
|
class QgsTableEditorDialog : QMainWindow
|
|
{
|
|
%Docstring
|
|
|
|
A reusable window for editing simple spreadsheet-style tables.
|
|
|
|
Table content is retrieved and set using the QgsTableContents class. The editor
|
|
has support for table foreground and background colors, and numeric formats.
|
|
|
|
.. versionadded:: 3.12
|
|
%End
|
|
|
|
%TypeHeaderCode
|
|
#include "qgstableeditordialog.h"
|
|
%End
|
|
public:
|
|
|
|
QgsTableEditorDialog( QWidget *parent = 0 );
|
|
%Docstring
|
|
Constructor for QgsTableEditorDialog with the specified ``parent`` widget.
|
|
%End
|
|
|
|
void setTableContents( const QgsTableContents &contents );
|
|
%Docstring
|
|
Sets the ``contents`` to show in the editor widget.
|
|
|
|
.. seealso:: :py:func:`tableContents`
|
|
%End
|
|
|
|
|
|
bool setTableContentsFromClipboard();
|
|
%Docstring
|
|
Parses the clipboard text into contents to show in the editor widget.
|
|
|
|
:return: ``True`` if the clipboard was successfully parsed
|
|
|
|
.. seealso:: :py:func:`tableContents`
|
|
%End
|
|
|
|
QgsTableContents tableContents() const;
|
|
%Docstring
|
|
Returns the current contents of the editor widget table.
|
|
|
|
.. seealso:: :py:func:`setTableContents`
|
|
%End
|
|
|
|
double tableRowHeight( int row );
|
|
%Docstring
|
|
Returns the configured row height for the specified ``row``, or 0 if an automatic height
|
|
should be used for the row.
|
|
|
|
.. seealso:: :py:func:`setTableRowHeight`
|
|
%End
|
|
|
|
double tableColumnWidth( int column );
|
|
%Docstring
|
|
Returns the configured column width for the specified ``column``, or 0 if an automatic width
|
|
should be used for the column.
|
|
|
|
.. seealso:: :py:func:`setTableColumnWidth`
|
|
%End
|
|
|
|
void setTableRowHeight( int row, double height );
|
|
%Docstring
|
|
Sets the configured row ``height`` for the specified ``row``. Set ``height`` to 0
|
|
if an automatic height should be used for the row.
|
|
|
|
This should be called after a call to setTableContents().
|
|
|
|
.. seealso:: :py:func:`tableRowHeight`
|
|
%End
|
|
|
|
void setTableColumnWidth( int column, double width );
|
|
%Docstring
|
|
Sets the configured column ``width`` for the specified ``column``. Set ``width`` to 0
|
|
if an automatic width should be used for the column.
|
|
|
|
This should be called after a call to setTableContents().
|
|
|
|
.. seealso:: :py:func:`tableColumnWidth`
|
|
%End
|
|
|
|
bool includeTableHeader() const;
|
|
%Docstring
|
|
Returns ``True`` if the table includes a header row.
|
|
|
|
.. seealso:: :py:func:`setIncludeTableHeader`
|
|
%End
|
|
|
|
void setIncludeTableHeader( bool included );
|
|
%Docstring
|
|
Sets whether the table includes a header row.
|
|
|
|
.. seealso:: :py:func:`includeTableHeader`
|
|
%End
|
|
|
|
QVariantList tableHeaders() const;
|
|
%Docstring
|
|
Returns the table header values.
|
|
|
|
.. seealso:: :py:func:`setTableHeaders`
|
|
%End
|
|
|
|
void setTableHeaders( const QVariantList &headers );
|
|
%Docstring
|
|
Sets the table ``headers``.
|
|
|
|
.. seealso:: :py:func:`tableHeaders`
|
|
%End
|
|
|
|
signals:
|
|
|
|
void tableChanged();
|
|
%Docstring
|
|
Emitted whenever the table contents are changed.
|
|
%End
|
|
|
|
void includeHeaderChanged( bool included );
|
|
%Docstring
|
|
Emitted whenever the "include table header" setting is changed.
|
|
%End
|
|
|
|
};
|
|
|
|
/************************************************************************
|
|
* This file has been generated automatically from *
|
|
* *
|
|
* src/gui/tableeditor/qgstableeditordialog.h *
|
|
* *
|
|
* Do not edit manually ! Edit header and run scripts/sipify.pl again *
|
|
************************************************************************/
|