2017-04-25 08:42:22 +02:00
|
|
|
/************************************************************************
|
|
|
|
* This file has been generated automatically from *
|
|
|
|
* *
|
|
|
|
* src/gui/qgsencodingfiledialog.h *
|
|
|
|
* *
|
|
|
|
* Do not edit manually ! Edit header and run scripts/sipify.pl again *
|
|
|
|
************************************************************************/
|
2008-03-11 21:51:18 +00:00
|
|
|
|
2017-04-25 08:42:22 +02:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
class QgsEncodingFileDialog: QFileDialog
|
2008-03-11 21:51:18 +00:00
|
|
|
{
|
2017-04-25 08:42:22 +02:00
|
|
|
%Docstring
|
2017-12-15 10:36:55 -04:00
|
|
|
A file dialog which lets the user select the preferred encoding type for a data provider.
|
2008-03-11 21:51:18 +00:00
|
|
|
%End
|
|
|
|
|
2017-04-25 08:42:22 +02:00
|
|
|
%TypeHeaderCode
|
|
|
|
#include "qgsencodingfiledialog.h"
|
|
|
|
%End
|
2012-09-24 02:28:15 +02:00
|
|
|
public:
|
2017-04-25 08:42:22 +02:00
|
|
|
|
|
|
|
QgsEncodingFileDialog( QWidget *parent /TransferThis/ = 0,
|
|
|
|
const QString &caption = QString(), const QString &directory = QString(),
|
|
|
|
const QString &filter = QString(), const QString &encoding = QString() );
|
|
|
|
%Docstring
|
2017-12-15 10:36:55 -04:00
|
|
|
Constructor for QgsEncodingFileDialog
|
2017-04-25 08:42:22 +02:00
|
|
|
%End
|
2008-03-11 21:51:18 +00:00
|
|
|
QString encoding() const;
|
2017-04-25 08:42:22 +02:00
|
|
|
%Docstring
|
|
|
|
Returns a string describing the chosen encoding
|
|
|
|
%End
|
2012-09-24 02:28:15 +02:00
|
|
|
void addCancelAll();
|
2017-04-25 08:42:22 +02:00
|
|
|
%Docstring
|
|
|
|
Adds a 'Cancel All' button for the user to click
|
|
|
|
%End
|
2012-09-24 02:28:15 +02:00
|
|
|
bool cancelAll();
|
2017-04-25 08:42:22 +02:00
|
|
|
%Docstring
|
2019-02-26 19:54:09 +10:00
|
|
|
Returns ``True`` if the user clicked 'Cancel All'
|
2017-04-25 08:42:22 +02:00
|
|
|
%End
|
2012-09-24 02:28:15 +02:00
|
|
|
|
|
|
|
public slots:
|
|
|
|
void saveUsedEncoding();
|
2008-03-11 21:51:18 +00:00
|
|
|
|
2012-09-24 02:28:15 +02:00
|
|
|
void pbnCancelAll_clicked();
|
2017-04-25 08:42:22 +02:00
|
|
|
|
2012-09-24 02:28:15 +02:00
|
|
|
};
|
2017-04-25 08:42:22 +02:00
|
|
|
|
2017-11-21 20:38:07 +10:00
|
|
|
class QgsEncodingSelectionDialog: QDialog
|
|
|
|
{
|
|
|
|
%Docstring
|
2017-12-15 10:36:55 -04:00
|
|
|
A dialog which presents the user with a choice of file encodings.
|
|
|
|
|
2017-11-21 20:38:07 +10:00
|
|
|
.. versionadded:: 3.0
|
|
|
|
%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
|
2017-12-15 10:36:55 -04:00
|
|
|
Constructor for QgsEncodingSelectionDialog.
|
2017-11-21 20:38:07 +10:00
|
|
|
|
2017-12-15 10:36:55 -04:00
|
|
|
If ``caption`` is set, it will be used as the caption within the dialog.
|
2017-11-21 20:38:07 +10:00
|
|
|
|
2017-12-15 10:36:55 -04:00
|
|
|
The ``encoding`` argument can be used to specify the encoding initially selected in the dialog.
|
2017-11-21 20:38:07 +10:00
|
|
|
%End
|
|
|
|
|
|
|
|
QString encoding() const;
|
|
|
|
%Docstring
|
2017-12-15 10:36:55 -04:00
|
|
|
Returns the encoding selected within the dialog.
|
|
|
|
|
2018-01-09 17:26:37 -04:00
|
|
|
.. seealso:: :py:func:`setEncoding`
|
2017-11-21 20:38:07 +10:00
|
|
|
%End
|
|
|
|
|
|
|
|
void setEncoding( const QString &encoding );
|
|
|
|
%Docstring
|
2017-12-15 10:36:55 -04:00
|
|
|
Sets the ``encoding`` selected within the dialog.
|
|
|
|
see encoding()
|
2017-11-21 20:38:07 +10:00
|
|
|
%End
|
|
|
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
2017-04-25 08:42:22 +02:00
|
|
|
/************************************************************************
|
|
|
|
* This file has been generated automatically from *
|
|
|
|
* *
|
|
|
|
* src/gui/qgsencodingfiledialog.h *
|
|
|
|
* *
|
|
|
|
* Do not edit manually ! Edit header and run scripts/sipify.pl again *
|
|
|
|
************************************************************************/
|