76 |
# panels they will call AllowGenerate() which uses genButton. |
# panels they will call AllowGenerate() which uses genButton. |
77 |
# |
# |
78 |
self.genButton = wxButton(self, wxID_OK, _("Generate")) |
self.genButton = wxButton(self, wxID_OK, _("Generate")) |
|
self.genButton.SetDefault() |
|
79 |
self.cancelButton = wxButton(self, wxID_CANCEL, _("Close")) |
self.cancelButton = wxButton(self, wxID_CANCEL, _("Close")) |
80 |
|
self.genButton.SetDefault() |
81 |
|
|
82 |
self.genChoice = wxChoice(self, ID_CLASSGEN_GENCOMBO) |
self.genChoice = wxChoice(self, ID_CLASSGEN_GENCOMBO) |
83 |
|
|
131 |
self.propPanel = None |
self.propPanel = None |
132 |
custom_ramp_panel = CustomRampPanel(self, layer.ShapeType()) |
custom_ramp_panel = CustomRampPanel(self, layer.ShapeType()) |
133 |
|
|
134 |
self.propCombo.Append(PROPCOMBOSTR_GREY, GreyRamp()) |
self.propCombo.Append(PROPCOMBOSTR_GREY, GreyRamp) |
135 |
self.propCombo.Append(PROPCOMBOSTR_RED, RedRamp()) |
self.propCombo.Append(PROPCOMBOSTR_RED, RedRamp) |
136 |
self.propCombo.Append(PROPCOMBOSTR_GREEN, GreenRamp()) |
self.propCombo.Append(PROPCOMBOSTR_GREEN, GreenRamp) |
137 |
self.propCombo.Append(PROPCOMBOSTR_BLUE, BlueRamp()) |
self.propCombo.Append(PROPCOMBOSTR_BLUE, BlueRamp) |
138 |
self.propCombo.Append(PROPCOMBOSTR_GREEN2RED, GreenToRedRamp()) |
self.propCombo.Append(PROPCOMBOSTR_GREEN2RED, GreenToRedRamp) |
139 |
self.propCombo.Append(PROPCOMBOSTR_HOT2COLD, HotToColdRamp()) |
self.propCombo.Append(PROPCOMBOSTR_HOT2COLD, HotToColdRamp()) |
140 |
self.propCombo.Append(PROPCOMBOSTR_CUSTOM, custom_ramp_panel) |
self.propCombo.Append(PROPCOMBOSTR_CUSTOM, custom_ramp_panel) |
141 |
|
|
222 |
|
|
223 |
list = genPanel.GetValueList() |
list = genPanel.GetValueList() |
224 |
|
|
225 |
if len(list) > 0 \ |
if len(list) > 0: |
226 |
and numGroups is not None: |
self.clazz = generate_singletons(list, ramp) |
|
|
|
|
self.clazz = generate_singletons( |
|
|
list, numGroups, ramp) |
|
|
|
|
227 |
self.parent._SetClassification(self.clazz) |
self.parent._SetClassification(self.clazz) |
228 |
|
|
229 |
elif genSel == GENCOMBOSTR_QUANTILES: |
elif genSel == GENCOMBOSTR_QUANTILES: |