15 #ifndef QGSRASTERLAYERSAVEASDIALOG_H
16 #define QGSRASTERLAYERSAVEASDIALOG_H
18 #include "ui_qgsrasterlayersaveasdialogbase.h"
25 class QgsRasterFormatOptionsWidget;
51 QWidget* parent = 0, Qt::WindowFlags f = 0 );
57 double xResolution()
const;
58 double yResolution()
const;
59 int maximumTileSizeX()
const;
60 int maximumTileSizeY()
const;
61 bool tileMode()
const;
62 QString outputFileName()
const;
63 QString outputFormat()
const;
65 QStringList createOptions()
const;
69 QList< int > pyramidsList()
const;
79 virtual void accept()
override {
if ( validate() )
return QDialog::accept(); }
82 void on_mRawModeRadioButton_toggled(
bool );
83 void on_mBrowseButton_clicked();
84 void on_mSaveAsLineEdit_textChanged(
const QString& text );
85 void on_mFormatComboBox_currentIndexChanged(
const QString& text );
86 void on_mResolutionRadioButton_toggled(
bool ) { toggleResolutionSize(); }
87 void on_mOriginalResolutionPushButton_clicked() { setOriginalResolution(); }
88 void on_mXResolutionLineEdit_textEdited(
const QString & ) { mResolutionState = UserResolution; recalcSize(); }
89 void on_mYResolutionLineEdit_textEdited(
const QString & ) { mResolutionState = UserResolution; recalcSize(); }
91 void on_mOriginalSizePushButton_clicked() { setOriginalSize(); }
92 void on_mColumnsLineEdit_textEdited(
const QString & ) { mResolutionState = UserResolution; recalcResolution(); }
93 void on_mRowsLineEdit_textEdited(
const QString & ) { mResolutionState = UserResolution; recalcResolution(); }
95 void on_mAddNoDataManuallyToolButton_clicked();
96 void on_mLoadTransparentNoDataToolButton_clicked();
97 void on_mRemoveSelectedNoDataToolButton_clicked();
98 void on_mRemoveAllNoDataToolButton_clicked();
99 void noDataCellTextEdited(
const QString & text );
100 void on_mTileModeCheckBox_toggled(
bool toggled );
101 void on_mPyramidsGroupBox_toggled(
bool toggled );
102 void populatePyramidsLevels();
103 void extentChanged();
112 ResolutionState mResolutionState;
113 QVector<bool> mNoDataToEdited;
115 void setValidators();
116 void toggleResolutionSize();
118 void setOriginalResolution();
119 void setOriginalSize();
121 void recalcResolution();
122 void updateResolutionStateMsg();
123 void recalcResolutionSize();
125 void addNoDataRow(
double min,
double max );
126 void setNoDataToEdited(
int row );
127 double noDataCellValue(
int row,
int column )
const;
128 void adjustNoDataCellWidth(
int row,
int column );
129 bool validate()
const;
136 #endif // QGSRASTERLAYERSAVEASDIALOG_H