Skip to content

Commit 98ad0f8

Browse files
committed
add checkbox for "-dstalpha" option in GDALTools Clipper tool
1 parent 1621bc8 commit 98ad0f8

File tree

2 files changed

+12
-4
lines changed

2 files changed

+12
-4
lines changed

python/plugins/GdalTools/tools/doClipper.py

+2-1
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,8 @@ 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.extentSelector, [SIGNAL("selectionStarted()"), SIGNAL("newExtentDefined()")], self.extentModeRadio),
31+
(self.alphaBandCheck, SIGNAL( "stateChanged( int )") ),
32+
(self.extentSelector, [SIGNAL("selectionStarted()"), SIGNAL("newExtentDefined()")], self.extentModeRadio),
3233
(self.modeStackedWidget, SIGNAL("currentIndexChanged(int)"))
3334
]
3435
)

python/plugins/GdalTools/tools/widgetClipper.ui

+10-3
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">
@@ -93,7 +93,7 @@
9393
<item row="1" column="0" colspan="2">
9494
<widget class="QStackedWidget" name="modeStackedWidget">
9595
<property name="currentIndex">
96-
<number>0</number>
96+
<number>1</number>
9797
</property>
9898
<widget class="QWidget" name="page">
9999
<layout class="QGridLayout" name="gridLayout_3">
@@ -110,7 +110,7 @@
110110
<property name="margin">
111111
<number>0</number>
112112
</property>
113-
<item row="1" column="0">
113+
<item row="2" column="0">
114114
<spacer name="verticalSpacer">
115115
<property name="orientation">
116116
<enum>Qt::Vertical</enum>
@@ -133,6 +133,13 @@
133133
<item row="0" column="1">
134134
<widget class="GdalToolsInOutSelector" name="maskSelector" native="true"/>
135135
</item>
136+
<item row="1" column="0">
137+
<widget class="QCheckBox" name="alphaBandCheck">
138+
<property name="text">
139+
<string>Create an output alpha band</string>
140+
</property>
141+
</widget>
142+
</item>
136143
</layout>
137144
</widget>
138145
</widget>

0 commit comments

Comments
 (0)