Parent Directory
|
Revision Log
Sticky Revision: |
made a copy
2006-09-28 Didrik Pinte <dpinte@itae.be> * Thuban/UI/classgen.py: bugfix due to wx2.6 update * Thuban/UI/view.py: removed non needed declaration * Thuban/UI/selection.py : typo correction
2006-09-18 Didrik Pinte <dpinte@itae.be> * wxPython 2.6 update : wx 2.4 syntax has been updated to 2.6
* Thuban/UI/classgen.py (OnRetrieve()): Added a comment that OnRangeText might be called twice and using None as argument.
* Thuban/UI/classgen.py (OnRetrieve()): Add a OnRangeText(0) to work around a different in wx Behaviour noticed on MacOSX, thanks to Lorenzo Moretti and Daniel Calvelo for the fix.
(GenQuantilesPanel.__init__): Set the minimum number of classes to 2. The calculate_quantiles needs at least two and raises an exception otherwise. Fixes RT#2549
(GenUniquePanel.__init__): Fixed two strings to be i18n now.
fix syntax error. I should have tested this :(
(GenQuantilesPanel.GetList): The row numbers given to ReadValue are ordinals.
Make sure translated strings are recognized as one string literal.
Insert cvs keywords and doc-strings.
Use renamed Ramp instances.
(ClassGenDialog.OnOK): Use a fixed ramp when we need to fix certain values of a ramp rather than using the old fixes parameter.
(ClassGenDialog.__init__): Add controls to allow the user to fix line color/width on generated groups. (ClassGenDialog.OnOK): Use new 'fixes' parameter of the generate_* functions to optionally fix group properties.
Fixes RTbug #1972. (ClassGenDialog.__init__): Color ramps are now instances already so we don't need to create any new objects. (ClassGenDialog.OnOK): Check for numGroups is no longer necessary because we never use it.
Use Thuban[Begin|End]BusyCursor() instead of a direct call to wx[Begin|End]CusyCursor(). (GenUniquePanel._OnRetrieve): Set busy cursor while retrieving table data.
Update to the layer interface: Direct access to the table, shapetable, shapefile and filename attributes is now actively deprecated by issuing deprecation warnings for all places where this happens. * Thuban/Model/layer.py (Layer.__getattr__): New. Implement access to the instance variables table, shapetable, shapefile and filename via __getattr__ so that we can issue a deprecation warning. (Layer.SetShapeStore): Don't set the deprecated instance variables any more (Layer.SetShapeStore): Don't use deprecated layer instance variables (Layer.Destroy): No need to explicitly remove the instance variables any more (Layer.GetFieldType, Layer.Shape): Don't use deprecated layer instance variables * Thuban/UI/classgen.py (ClassGenDialog.__init__) (GenUniformPanel._OnRetrieve, GenUniquePanel._OnRetrieve) (GenQuantilesPanel.GetList, GenQuantilesPanel.OnRetrieve): Don't use deprecated layer instance variables * Thuban/UI/classifier.py (Classifier.__init__): Don't use deprecated layer instance variables * Thuban/UI/identifyview.py (IdentifyListCtrl.selected_shape) (IdentifyGridCtrl.selected_shape): Don't set the deprecated layer instance variables * Thuban/UI/tableview.py (LayerTableGrid.select_shapes): Don't use deprecated layer instance variables * Thuban/UI/mainwindow.py (MainWindow.LayerShowTable): Don't use deprecated layer instance variables * Thuban/Model/save.py (SessionSaver.write_layer): Don't use deprecated layer instance variables * Thuban/UI/renderer.py (MapRenderer.draw_shape_layer) (MapRenderer.polygon_render_param): Don't use deprecated layer instance variables * test/runtests.py (main): Turn Thuban's deprecation warnings into errors so that they're cought by the tests * test/test_load.py (TestSingleLayer.test): Don't use deprecated layer instance variables
Use renamed projection resource functions. (GenUniformPanel.__CalcStepping): Fix a slight discrepency when using integers versus floats.
(GenQuantilesPanel.GetList): Resource acquisition has to happen before the try in a try-finally.
Use classgen functions that were part of the ClassGenerator class. Put try/finally blocks around code that uses wxBeginBusyCursor()/wxEndBusyCursor(). Fixes RTBug #1904.
UI polishing updates: Place main buttons (OK, Cancel, etc) in the lower right corner, center labels for selections, initialize controls in reasonable order for keyboard navigation. (ClassGenDialog.__DoOnGenTypeSelect): Moved initialization of the different classification types from here to __init__. (GenUniquePanel.__init__): Set the column width of the first field in the Field ListCtrl to the full width.
* Thuban/Model/table.py (Table): Remove this compatibility alias for DBFTable. * test/test_table.py: Import DBFTable as Table because that alias doesn't exist anymore. * Thuban/UI/classgen.py: Remove some unused imports
(ClassGenDialog.OnOK): Fix name of method call to ClassGenerator.GenUniformDistribution.
(GenQuantilesPanel.GetList): Replace call to table.UniqueValues() with calls that retrieve all the values from the table. This will need to be replaced by a method on table which can simply return the list (perhaps more efficiently).
Explicit imports. (ClassGenDialog.__init__): Clean up the code and add support for Quantiles. (ClassGenDialog.OnOK): Add support for Quantiles. (GenQuantilesPanel): New. Input panel for Quantiles. (ClassGenerator, CustomRamp, MonochromaticRamp, GreyRamp, RedRamp, GreenRamp, BlueRamp, HotToColdRamp): Move to Thuban/Model/classgen.py
(ClassGenDialog.__init__) (GenUniformPanel._OnRetrieve, GenUniquePanel._OnRetrieve): Adapt to new table interface
(ClassGenDialog.__init__): Rearrange the order that the controls are created so that tabbing works correctly. (ClassGenDialog.OnOK): Renamed from _OnGenerate() so that the wxDialog can handle the default button correctly. (ClassGenDialog.OnCancel): Renamed from _OnCloseBtn() for the same reasons as for OnOK. (GenUniformPanel._OnRetrieve): Call wxBeginBusyCursor/wxEndBusyCursor when we ask the table for the maximum/minimum values of a field which could take a very long time.
Remove all uses of Str2Num.
Change all references to genCombo to genChoice.
(ClassGenDialog.__init__): Use a wxChoice control instead of a wxComboBox. wxChoice controls do not generate events as the uses highlights possible choices which fixes problems with resizing the dialog when the use selects an option.
(GenUniformPanel): Fix spin control weirdness by setting the range to (1, maxint).
(ClassGenDialog.__init__): Actively set the current selections in the combo boxes. This is needed under Windows.
Change color ramps to start at white not black.
(GenUniquePanel.__init__): Reordered buttons, added images to the move buttons, added 'reverse' button. (CustomRampPanel.__init__): Added images to the move buttons. (GreyRamp): New. Generates a ramp from white to black. (HotToColdRamp): New. Generates a ramp from cold to hot colors.
Modifications to allow simple addition and selection of new color schemes. (MonochromaticRamp): New. Generates a ramp between two colors. (RedRamp): New. Generates a ramp of all red. (GreenRamp): New. Generates a ramp of all green. (BlueRamp): New. Generates a ramp of all blue.
Renamed GenRangePanel to GenUniformPanel. (GenUniquePanel): New. Controls to allow the user to select which unique field values they would like in the classification. (CustomRampPanel): Code that was in ClassGenDialog that allows the user to select the properties for a custom ramp. (ClassGenerator.GenUniformDistribution): Was called GenerateRanges.
Fix Windows problem.
Use Classification.AppendGroup(), not AddGroup()
(ClassGenDialog): Dialog for generating classifications. (GenRangePanel): Panel specific to range generation. (GenSingletonPanel): Panel specific to singleton generation. (ClassGenerator): Class responsible for actually generating the classification from the data gathered in the dialog box. (PropertyRamp): Generates properties whose values range from a starting property to an ending property.
This form allows you to request diffs between any two revisions of this file. For each of the two "sides" of the diff, enter a numeric revision.
[email protected] | ViewVC Help |
Powered by ViewVC 1.1.26 |