mirror of
https://github.com/qgis/QGIS.git
synced 2025-03-03 00:02:25 -05:00
62 lines
1.8 KiB
Plaintext
62 lines
1.8 KiB
Plaintext
|
|
class QgsRasterFormatSaveOptionsWidget : QWidget
|
|
{
|
|
%TypeHeaderCode
|
|
#include <qgsrasterformatsaveoptionswidget.h>
|
|
%End
|
|
|
|
public:
|
|
|
|
enum Type
|
|
{
|
|
Default, // everything except profile buttons (save as dlg)
|
|
Full, // everything (options dlg)
|
|
Table, // just table
|
|
LineEdit // just the line edit
|
|
};
|
|
|
|
QgsRasterFormatSaveOptionsWidget( QWidget* parent = 0, QString format = "GTiff",
|
|
QgsRasterFormatSaveOptionsWidget::Type type = Default,
|
|
QString provider = "gdal" );
|
|
~QgsRasterFormatSaveOptionsWidget();
|
|
|
|
void setFormat( QString format );
|
|
void setProvider( QString provider );
|
|
QStringList options() const;
|
|
void setType( QgsRasterFormatSaveOptionsWidget::Type type = Default );
|
|
|
|
public slots:
|
|
|
|
void apply();
|
|
void helpOptions();
|
|
bool validateOptions( bool gui = true );
|
|
|
|
private slots:
|
|
|
|
void on_mProfileNewButton_clicked();
|
|
void on_mProfileDeleteButton_clicked();
|
|
void on_mProfileResetButton_clicked();
|
|
void on_mOptionsAddButton_clicked();
|
|
void on_mOptionsDeleteButton_clicked();
|
|
void on_mOptionsLabel_clicked();
|
|
void on_mOptionsLineEdit_editingFinished();
|
|
void optionsTableChanged();
|
|
void optionsTableEnableDeleteButton();
|
|
void updateOptions();
|
|
void swapOptionsUI( int newIndex = -1 );
|
|
|
|
private:
|
|
|
|
QString settingsKey( QString profile ) const;
|
|
QString currentProfileKey() const;
|
|
QString createOptions( QString profile ) const;
|
|
void deleteCreateOptions( QString profile );
|
|
void setCreateOptions( );
|
|
void setCreateOptions( QString profile, QString options );
|
|
void setCreateOptions( QString profile, QStringList list );
|
|
QStringList profiles() const;
|
|
void updateProfiles();
|
|
bool eventFilter(QObject *obj, QEvent *event);
|
|
|
|
};
|