Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Possibility to hide elements in save as raster dialog
  • Loading branch information
mhugent committed Jul 11, 2012
1 parent eec208c commit f552b24
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 0 deletions.
13 changes: 13 additions & 0 deletions src/gui/qgsrasterlayersaveasdialog.cpp
Expand Up @@ -147,3 +147,16 @@ void QgsRasterLayerSaveAsDialog::setOutputExtent( const QgsRectangle& r )
mYMinLineEdit->setText( QString::number( r.yMinimum() ) );
mYMaxLineEdit->setText( QString::number( r.yMaximum() ) );
}

void QgsRasterLayerSaveAsDialog::hideFormat()
{
mFormatLabel->hide();
mFormatComboBox->hide();
}

void QgsRasterLayerSaveAsDialog::hideOutput()
{
mSaveAsLabel->hide();
mSaveAsLineEdit->hide();
mBrowseButton->hide();
}
3 changes: 3 additions & 0 deletions src/gui/qgsrasterlayersaveasdialog.h
Expand Up @@ -22,6 +22,9 @@ class QgsRasterLayerSaveAsDialog: public QDialog, private Ui::QgsRasterLayerSave
QString outputFormat() const;
QgsRectangle outputRectangle() const;

void hideFormat();
void hideOutput();

private slots:
void on_mBrowseButton_clicked();
void on_mSaveAsLineEdit_textChanged( const QString& text );
Expand Down

0 comments on commit f552b24

Please sign in to comment.