QGIS/python/gui/qgsrasterformatsaveoptionswidget.sip

171 lines
4.3 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
:rtype: list of str
2017-12-05 20:04:14 -04:00
.. 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"
2017-12-05 20:04:14 -04:00
.. 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
2017-12-15 10:36:55 -04:00
Opens window with options desctiption for given provider
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
:rtype: str
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:
void mProfileNewButton_clicked() ;
void mProfileDeleteButton_clicked() ;
void mProfileResetButton_clicked() ;
void mOptionsAddButton_clicked() ;
void mOptionsDeleteButton_clicked() ;
void mOptionsLineEdit_editingFinished() ;
2017-06-08 11:26:03 +02:00
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:
2017-06-08 11:26:03 +02:00
QString settingsKey( QString profile ) const ;
%Docstring
2017-12-15 10:36:55 -04:00
:rtype: str
2017-06-08 11:26:03 +02:00
%End
QString currentProfileKey() const ;
%Docstring
2017-12-15 10:36:55 -04:00
:rtype: str
2017-06-08 11:26:03 +02:00
%End
QString createOptions( const QString &profile ) const ;
%Docstring
2017-12-15 10:36:55 -04:00
:rtype: str
2017-06-08 11:26:03 +02:00
%End
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 ;
%Docstring
2017-12-15 10:36:55 -04:00
:rtype: list of str
2017-06-08 11:26:03 +02:00
%End
virtual bool eventFilter( QObject *obj, QEvent *event ) ;
2017-06-08 11:26:03 +02:00
QString pseudoFormat() const ;
%Docstring
2017-12-15 10:36:55 -04:00
:rtype: str
2017-06-08 11:26:03 +02:00
%End
};
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 *
************************************************************************/