mirror of
https://github.com/qgis/QGIS.git
synced 2025-02-24 00:47:57 -05:00
- update methods of existing classes - add comment to methods missing in the sip bindings - split up collective sip files into single files and use same directory structure in python/ as in src/ - add a lot of missing classes (some might not make sense because of missing python methods in those classes) - remove some non-existing methods from the header files - add scripts/sipdiff - replace some usages of std::vector and std::set with QVector/QSet
64 lines
1.9 KiB
Plaintext
64 lines
1.9 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
|
|
ProfileLineEdit // Profile + LineEdit
|
|
};
|
|
|
|
QgsRasterFormatSaveOptionsWidget( QWidget* parent = 0, QString format = "GTiff",
|
|
QgsRasterFormatSaveOptionsWidget::Type type = Default,
|
|
QString provider = "gdal" );
|
|
~QgsRasterFormatSaveOptionsWidget();
|
|
|
|
void setFormat( QString format );
|
|
void setProvider( QString provider );
|
|
void setRasterLayer( QgsRasterLayer* rasterLayer );
|
|
QStringList options() const;
|
|
void setType( QgsRasterFormatSaveOptionsWidget::Type type = Default );
|
|
|
|
public slots:
|
|
|
|
void apply();
|
|
void helpOptions();
|
|
QString validateOptions( bool gui = true, bool reportOk = true );
|
|
void updateProfiles();
|
|
|
|
private slots:
|
|
|
|
void on_mProfileNewButton_clicked();
|
|
void on_mProfileDeleteButton_clicked();
|
|
void on_mProfileResetButton_clicked();
|
|
void on_mOptionsAddButton_clicked();
|
|
void on_mOptionsDeleteButton_clicked();
|
|
void on_mOptionsLineEdit_editingFinished();
|
|
void optionsTableChanged();
|
|
void optionsTableEnableDeleteButton();
|
|
void updateOptions();
|
|
void swapOptionsUI( int newIndex = -1 );
|
|
void updateControls();
|
|
|
|
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;
|
|
bool eventFilter( QObject *obj, QEvent *event );
|
|
|
|
};
|