Skip to content

Commit 7c0e900

Browse files
committedMay 22, 2011
Merge branch 'master' of github.com:qgis/Quantum-GIS
2 parents 5fea5a8 + bb1a4e6 commit 7c0e900

File tree

2 files changed

+13
-4
lines changed

2 files changed

+13
-4
lines changed
 

‎python/plugins/GdalTools/tools/doClipper.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,7 @@ def __init__(self, iface):
2828
(self.outSelector, SIGNAL("filenameChanged()") ),
2929
(self.noDataSpin, SIGNAL("valueChanged(int)"), self.noDataCheck, "1.7.0"),
3030
(self.maskSelector, SIGNAL("filenameChanged()"), self.maskModeRadio, "1.6.0"),
31+
(self.alphaBandCheck, SIGNAL( "stateChanged( int )") ),
3132
(self.extentSelector, [SIGNAL("selectionStarted()"), SIGNAL("newExtentDefined()")], self.extentModeRadio),
3233
(self.modeStackedWidget, SIGNAL("currentIndexChanged(int)"))
3334
]
@@ -138,7 +139,8 @@ def getArgsModeMask(self):
138139
arguments << "-q"
139140
arguments << "-cutline"
140141
arguments << mask
141-
arguments << "-dstalpha"
142+
if self.alphaBandCheck.isChecked():
143+
arguments << "-dstalpha"
142144

143145
outputFn = self.getOutputFileName()
144146
if not outputFn.isEmpty():

‎python/plugins/GdalTools/tools/widgetClipper.ui

Lines changed: 10 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
<x>0</x>
88
<y>0</y>
99
<width>338</width>
10-
<height>191</height>
10+
<height>226</height>
1111
</rect>
1212
</property>
1313
<property name="sizePolicy">
@@ -90,7 +90,7 @@
9090
<item row="1" column="0" colspan="2">
9191
<widget class="QStackedWidget" name="modeStackedWidget">
9292
<property name="currentIndex">
93-
<number>0</number>
93+
<number>1</number>
9494
</property>
9595
<widget class="QWidget" name="page">
9696
<layout class="QGridLayout" name="gridLayout_3">
@@ -107,7 +107,7 @@
107107
<property name="margin">
108108
<number>0</number>
109109
</property>
110-
<item row="1" column="0">
110+
<item row="2" column="0">
111111
<spacer name="verticalSpacer">
112112
<property name="orientation">
113113
<enum>Qt::Vertical</enum>
@@ -130,6 +130,13 @@
130130
<item row="0" column="1">
131131
<widget class="GdalToolsInOutSelector" name="maskSelector" native="true"/>
132132
</item>
133+
<item row="1" column="0">
134+
<widget class="QCheckBox" name="alphaBandCheck">
135+
<property name="text">
136+
<string>Create an output alpha band</string>
137+
</property>
138+
</widget>
139+
</item>
133140
</layout>
134141
</widget>
135142
</widget>

0 commit comments

Comments
 (0)
Please sign in to comment.