QGIS/python/gui/auto_generated/qgsrasterformatsaveoptionswidget.sip.in

148 lines
4.1 KiB
Plaintext
Raw Normal View History

2017-06-08 11:26:03 +02:00
/************************************************************************
* This file has been generated automatically from *
* *
* src/gui/qgsrasterformatsaveoptionswidget.h *
* *
* Do not edit manually ! Edit header and run scripts/sipify.pl again *
************************************************************************/
2017-06-08 11:26:03 +02:00
class QgsRasterFormatSaveOptionsWidget: QWidget
{
2017-06-08 11:26:03 +02:00
%Docstring
2017-12-15 10:36:55 -04:00
A widget to select format-specific raster saving options
%End
2017-06-08 11:26:03 +02:00
%TypeHeaderCode
#include "qgsrasterformatsaveoptionswidget.h"
%End
public:
enum Type
{
2017-06-08 11:26:03 +02:00
Default,
Full,
Table,
LineEdit,
ProfileLineEdit
};
2017-06-08 11:26:03 +02:00
QgsRasterFormatSaveOptionsWidget( QWidget *parent /TransferThis/ = 0,
const QString &format = "GTiff",
QgsRasterFormatSaveOptionsWidget::Type type = Default,
const QString &provider = "gdal" );
void setFormat( const QString &format );
2017-06-08 11:26:03 +02:00
%Docstring
2017-12-15 10:36:55 -04:00
Set output raster format, it is used to determine list
of available options
2017-06-08 11:26:03 +02:00
%End
void setProvider( const QString &provider );
2017-06-08 11:26:03 +02:00
%Docstring
2017-12-15 10:36:55 -04:00
Set provider key, , it is used to determine list
of available options
2017-06-08 11:26:03 +02:00
%End
void setRasterLayer( QgsRasterLayer *rasterLayer );
2017-06-08 11:26:03 +02:00
%Docstring
2017-12-15 10:36:55 -04:00
Set output raster layer
2017-06-08 11:26:03 +02:00
%End
void setRasterFileName( const QString &file );
2017-06-08 11:26:03 +02:00
%Docstring
2017-12-15 10:36:55 -04:00
Set output raster file name
2017-06-08 11:26:03 +02:00
%End
QStringList options() const;
2017-06-08 11:26:03 +02:00
%Docstring
2017-12-15 10:36:55 -04:00
Returns list of selected options
.. seealso:: :py:func:`setOptions`
2017-06-08 11:26:03 +02:00
%End
void setOptions( const QString &options );
2017-06-08 11:26:03 +02:00
%Docstring
2017-12-15 10:36:55 -04:00
Populate widget with user-defined options. String should contain
key=value pairs separated by spaces, e.g. "TILED=YES TFW=YES"
.. seealso:: :py:func:`options`
2017-12-15 10:36:55 -04:00
2017-06-08 11:26:03 +02:00
.. versionadded:: 3.0
%End
void setType( QgsRasterFormatSaveOptionsWidget::Type type = Default );
2017-06-08 11:26:03 +02:00
%Docstring
2017-12-15 10:36:55 -04:00
Set widget look and feel
2017-06-08 11:26:03 +02:00
%End
void setPyramidsFormat( QgsRaster::RasterPyramidsFormat format );
2017-06-08 11:26:03 +02:00
%Docstring
2017-12-15 10:36:55 -04:00
Set pyramids format to use
2017-06-08 11:26:03 +02:00
%End
public slots:
void apply();
void helpOptions();
2017-06-08 11:26:03 +02:00
%Docstring
2018-09-07 00:30:12 +02:00
Opens window with options description for given provider
2017-12-15 10:36:55 -04:00
and output format
2017-06-08 11:26:03 +02:00
%End
QString validateOptions( bool gui = true, bool reportOk = true );
2017-06-08 11:26:03 +02:00
%Docstring
2017-12-15 10:36:55 -04:00
Validates options correctness
2017-06-08 11:26:03 +02:00
%End
void updateProfiles();
2017-06-08 11:26:03 +02:00
%Docstring
2017-12-15 10:36:55 -04:00
Reloads profiles list from QGIS settings
2017-06-08 11:26:03 +02:00
%End
private slots:
2018-01-16 11:41:23 -04:00
void mProfileNewButton_clicked();
void mProfileDeleteButton_clicked();
void mProfileResetButton_clicked();
void mOptionsAddButton_clicked();
void mOptionsDeleteButton_clicked();
void mOptionsLineEdit_editingFinished();
void optionsTableChanged();
void optionsTableEnableDeleteButton();
void updateOptions();
void swapOptionsUI( int newIndex = -1 );
void updateControls();
2014-05-27 23:22:50 +02:00
protected:
virtual void showEvent( QShowEvent *event );
2014-05-27 23:22:50 +02:00
2014-01-27 09:22:24 +01:00
signals:
void optionsChanged();
private:
2018-01-16 11:41:23 -04:00
QString settingsKey( QString profile ) const;
QString currentProfileKey() const;
QString createOptions( const QString &profile ) const;
void deleteCreateOptions( const QString &profile );
void setCreateOptions();
void setCreateOptions( const QString &profile, const QString &options );
void setCreateOptions( const QString &profile, const QStringList &list );
QStringList profiles() const;
virtual bool eventFilter( QObject *obj, QEvent *event );
QString pseudoFormat() const;
};
2017-06-08 11:26:03 +02:00
2017-09-25 14:20:39 +10:00
2017-06-08 11:26:03 +02:00
/************************************************************************
* This file has been generated automatically from *
* *
* src/gui/qgsrasterformatsaveoptionswidget.h *
* *
* Do not edit manually ! Edit header and run scripts/sipify.pl again *
************************************************************************/