QGIS/python/gui/auto_generated/qgsencodingfiledialog.sip.in
Nyall Dawson 3f6b490218 Sipify
2025-04-02 11:11:10 +10:00

90 lines
2.8 KiB
Plaintext

/************************************************************************
* This file has been generated automatically from *
* *
* src/gui/qgsencodingfiledialog.h *
* *
* Do not edit manually ! Edit header and run scripts/sipify.py again *
************************************************************************/
class QgsEncodingFileDialog : QFileDialog
{
%Docstring(signature="appended")
A file dialog which lets the user select the preferred encoding type for
a data provider.
%End
%TypeHeaderCode
#include "qgsencodingfiledialog.h"
%End
public:
QgsEncodingFileDialog( QWidget *parent /TransferThis/ = 0, const QString &caption = QString(), const QString &directory = QString(), const QString &filter = QString(), const QString &encoding = QString() );
%Docstring
Constructor for QgsEncodingFileDialog
%End
QString encoding() const;
%Docstring
Returns a string describing the chosen encoding
%End
void addCancelAll();
%Docstring
Adds a 'Cancel All' button for the user to click
%End
bool cancelAll();
%Docstring
Returns ``True`` if the user clicked 'Cancel All'
%End
public slots:
void saveUsedEncoding();
void pbnCancelAll_clicked();
};
class QgsEncodingSelectionDialog : QDialog
{
%Docstring(signature="appended")
A dialog which presents the user with a choice of file encodings.
%End
%TypeHeaderCode
#include "qgsencodingfiledialog.h"
%End
public:
QgsEncodingSelectionDialog( QWidget *parent /TransferThis/ = 0, const QString &caption = QString(), const QString &encoding = QString(), Qt::WindowFlags flags = Qt::WindowFlags() );
%Docstring
Constructor for QgsEncodingSelectionDialog.
If ``caption`` is set, it will be used as the caption within the dialog.
The ``encoding`` argument can be used to specify the encoding initially
selected in the dialog.
%End
QString encoding() const;
%Docstring
Returns the encoding selected within the dialog.
.. seealso:: :py:func:`setEncoding`
%End
void setEncoding( const QString &encoding );
%Docstring
Sets the ``encoding`` selected within the dialog. see
:py:func:`~QgsEncodingSelectionDialog.encoding`
%End
};
/************************************************************************
* This file has been generated automatically from *
* *
* src/gui/qgsencodingfiledialog.h *
* *
* Do not edit manually ! Edit header and run scripts/sipify.py again *
************************************************************************/