18 #ifndef QGSRASTERFORMATSAVEOPTIONSWIDGET_H 
   19 #define QGSRASTERFORMATSAVEOPTIONSWIDGET_H 
   21 #include "ui_qgsrasterformatsaveoptionswidgetbase.h" 
   47                                       const QString &format = 
"GTiff",
 
   49                                       const QString &provider = 
"gdal" );
 
   55     void setFormat( 
const QString &format );
 
   61     void setProvider( 
const QString &provider );
 
   71     void setRasterFileName( 
const QString &file ) { mRasterLayer = 
nullptr; mRasterFileName = file; }
 
   77     QStringList options() 
const;
 
   85     void setOptions( 
const QString &options );
 
   96     { mPyramids = 
true; mPyramidsFormat = format; }
 
  111     QString validateOptions( 
bool gui = 
true, 
bool reportOk = 
true );
 
  116     void updateProfiles();
 
  120     void mProfileNewButton_clicked() 
SIP_FORCE;
 
  121     void mProfileDeleteButton_clicked() 
SIP_FORCE;
 
  122     void mProfileResetButton_clicked() 
SIP_FORCE;
 
  123     void mOptionsAddButton_clicked() 
SIP_FORCE;
 
  124     void mOptionsDeleteButton_clicked() 
SIP_FORCE;
 
  125     void mOptionsLineEdit_editingFinished() 
SIP_FORCE;
 
  127     void optionsTableEnableDeleteButton() 
SIP_FORCE;
 
  129     void swapOptionsUI( 
int newIndex = -1 ) 
SIP_FORCE;
 
  133     void showEvent( QShowEvent *event ) override;
 
  136     void optionsChanged();
 
  143     QString mRasterFileName;
 
  144     QMap< QString, QString> mOptionsMap;
 
  145     static QMap< QString, QStringList > sBuiltinProfiles;
 
  146     bool mPyramids = false;
 
  148     int mBlockOptionUpdates = 0;
 
  150     QString settingsKey( QString profile ) const 
SIP_FORCE;
 
  151     QString currentProfileKey() const 
SIP_FORCE;
 
  152     QString createOptions( const QString &profile ) const 
SIP_FORCE;
 
  153     void deleteCreateOptions( const QString &profile ) 
SIP_FORCE;
 
  155     void setCreateOptions( const QString &profile, const QString &options ) 
SIP_FORCE;
 
  156     void setCreateOptions( const QString &profile, const QStringList &list ) 
SIP_FORCE;
 
  158     bool eventFilter( QObject *obj, QEvent *event ) override 
SIP_FORCE;
 
Represents a raster layer.