Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
add qgsrasterformatsaveoptionswidget to sip and cleanup names ; bette…
…r hack for mOptionsLabel click
- Loading branch information
1 parent
ee3bf0e
commit c998ee4
Showing
9 changed files
with
215 additions
and
146 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,49 @@ | ||
|
||
class QgsRasterFormatSaveOptionsWidget : QWidget | ||
{ | ||
%TypeHeaderCode | ||
#include <qgsrasterformatsaveoptionswidget.h> | ||
%End | ||
|
||
public: | ||
QgsRasterFormatSaveOptionsWidget( QWidget* parent = 0, QString format = "GTiff", QString provider = "gdal" ); | ||
~QgsRasterFormatSaveOptionsWidget(); | ||
|
||
void setFormat( QString format ); | ||
void setProvider( QString provider ); | ||
QStringList options() const; | ||
void showProfileButtons( bool show = true ); | ||
|
||
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(); | ||
|
||
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); | ||
|
||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.