/[thuban]/branches/WIP-pyshapelib-bramz/Thuban/UI/classgen.py
ViewVC logotype

Log of /branches/WIP-pyshapelib-bramz/Thuban/UI/classgen.py

Parent Directory Parent Directory | Revision Log Revision Log


Sticky Revision:
(Current path doesn't exist after revision 2835)

Revision 2734 - (view) (annotate) - [select for diffs]
Modified Thu Mar 1 12:42:59 2007 UTC (18 years ago) by bramz
File length: 33146 byte(s)
Diff to previous 2709 , to selected 677
made a copy

Revision 2709 - (view) (annotate) - [select for diffs]
Modified Tue Oct 3 09:34:51 2006 UTC (18 years, 5 months ago) by dpinte
Original Path: trunk/thuban/Thuban/UI/classgen.py
File length: 33146 byte(s)
Diff to previous 2700 , to selected 677
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



Revision 2700 - (view) (annotate) - [select for diffs]
Modified Mon Sep 18 14:27:02 2006 UTC (18 years, 5 months ago) by dpinte
Original Path: trunk/thuban/Thuban/UI/classgen.py
File length: 33153 byte(s)
Diff to previous 2527 , to selected 677
2006-09-18 Didrik Pinte <dpinte@itae.be>
    
        * wxPython 2.6 update : wx 2.4 syntax has been updated to 2.6



Revision 2527 - (view) (annotate) - [select for diffs]
Modified Thu Jan 20 11:45:15 2005 UTC (20 years, 1 month ago) by bernhard
Original Path: trunk/thuban/Thuban/UI/classgen.py
File length: 32674 byte(s)
Diff to previous 2526 , to selected 677
	* Thuban/UI/classgen.py (OnRetrieve()): Added a comment
	that OnRangeText might be called twice and using None as argument.


Revision 2526 - (view) (annotate) - [select for diffs]
Modified Thu Jan 20 11:30:52 2005 UTC (20 years, 1 month ago) by bernhard
Original Path: trunk/thuban/Thuban/UI/classgen.py
File length: 32395 byte(s)
Diff to previous 2462 , to selected 677
	* 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.


Revision 2462 - (view) (annotate) - [select for diffs]
Modified Wed Dec 15 16:42:56 2004 UTC (20 years, 2 months ago) by bh
Original Path: trunk/thuban/Thuban/UI/classgen.py
File length: 32359 byte(s)
Diff to previous 2191 , to selected 677
(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


Revision 2191 - (view) (annotate) - [select for diffs]
Modified Thu Apr 22 15:45:01 2004 UTC (20 years, 10 months ago) by jan
Original Path: trunk/thuban/Thuban/UI/classgen.py
File length: 32359 byte(s)
Diff to previous 2101 , to selected 677
(GenUniquePanel.__init__): Fixed two strings to be i18n now.


Revision 2101 - (view) (annotate) - [select for diffs]
Modified Thu Mar 11 20:50:43 2004 UTC (20 years, 11 months ago) by bh
Original Path: trunk/thuban/Thuban/UI/classgen.py
File length: 32353 byte(s)
Diff to previous 2099 , to selected 677
fix syntax error.  I should have tested this :(


Revision 2099 - (view) (annotate) - [select for diffs]
Modified Thu Mar 11 20:45:03 2004 UTC (20 years, 11 months ago) by bh
Original Path: trunk/thuban/Thuban/UI/classgen.py
File length: 32352 byte(s)
Diff to previous 1566 , to selected 677
(GenQuantilesPanel.GetList): The row
numbers given to ReadValue are ordinals.


Revision 1566 - (view) (annotate) - [select for diffs]
Modified Fri Aug 8 13:01:30 2003 UTC (21 years, 7 months ago) by bh
Original Path: trunk/thuban/Thuban/UI/classgen.py
File length: 32275 byte(s)
Diff to previous 1542 , to selected 677
Make sure translated strings are recognized as one string literal.


Revision 1542 - (view) (annotate) - [select for diffs]
Modified Fri Aug 1 16:13:49 2003 UTC (21 years, 7 months ago) by bh
Original Path: trunk/thuban/Thuban/UI/classgen.py
File length: 32286 byte(s)
Diff to previous 1526 , to selected 677
Insert cvs keywords and doc-strings.


Revision 1526 - (view) (annotate) - [select for diffs]
Modified Wed Jul 30 15:43:06 2003 UTC (21 years, 7 months ago) by jonathan
Original Path: trunk/thuban/Thuban/UI/classgen.py
File length: 32196 byte(s)
Diff to previous 1432 , to selected 677
 Use renamed Ramp instances.


Revision 1432 - (view) (annotate) - [select for diffs]
Modified Wed Jul 16 13:24:03 2003 UTC (21 years, 7 months ago) by jonathan
Original Path: trunk/thuban/Thuban/UI/classgen.py
File length: 32182 byte(s)
Diff to previous 1391 , to selected 677
(ClassGenDialog.OnOK): Use a fixed
        ramp when we need to fix certain values of a ramp rather than
        using the old fixes parameter.


Revision 1391 - (view) (annotate) - [select for diffs]
Modified Thu Jul 10 14:54:02 2003 UTC (21 years, 7 months ago) by jonathan
Original Path: trunk/thuban/Thuban/UI/classgen.py
File length: 32448 byte(s)
Diff to previous 1341 , to selected 677
(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.


Revision 1341 - (view) (annotate) - [select for diffs]
Modified Tue Jul 1 16:10:42 2003 UTC (21 years, 8 months ago) by jonathan
Original Path: trunk/thuban/Thuban/UI/classgen.py
File length: 30937 byte(s)
Diff to previous 1274 , to selected 677
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.


Revision 1274 - (view) (annotate) - [select for diffs]
Modified Fri Jun 20 17:46:04 2003 UTC (21 years, 8 months ago) by jonathan
Original Path: trunk/thuban/Thuban/UI/classgen.py
File length: 31045 byte(s)
Diff to previous 1219 , to selected 677
 Use Thuban[Begin|End]BusyCursor()
        instead of a direct call to wx[Begin|End]CusyCursor().
(GenUniquePanel._OnRetrieve): Set busy cursor while retrieving
        table data.


Revision 1219 - (view) (annotate) - [select for diffs]
Modified Mon Jun 16 17:42:54 2003 UTC (21 years, 8 months ago) by bh
Original Path: trunk/thuban/Thuban/UI/classgen.py
File length: 30817 byte(s)
Diff to previous 1163 , to selected 677
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


Revision 1163 - (view) (annotate) - [select for diffs]
Modified Thu Jun 12 12:41:31 2003 UTC (21 years, 8 months ago) by jonathan
Original Path: trunk/thuban/Thuban/UI/classgen.py
File length: 30743 byte(s)
Diff to previous 1122 , to selected 677
Use renamed projection resource functions.
(GenUniformPanel.__CalcStepping): Fix a slight discrepency
        when using integers versus floats.


Revision 1122 - (view) (annotate) - [select for diffs]
Modified Mon Jun 2 13:47:01 2003 UTC (21 years, 9 months ago) by bh
Original Path: trunk/thuban/Thuban/UI/classgen.py
File length: 30675 byte(s)
Diff to previous 1100 , to selected 677
(GenQuantilesPanel.GetList): Resource
acquisition has to happen before the try in a try-finally.


Revision 1100 - (view) (annotate) - [select for diffs]
Modified Fri May 30 06:28:21 2003 UTC (21 years, 9 months ago) by jonathan
Original Path: trunk/thuban/Thuban/UI/classgen.py
File length: 30680 byte(s)
Diff to previous 978 , to selected 677
Use classgen functions that were part
        of the ClassGenerator class. Put try/finally blocks around
        code that uses wxBeginBusyCursor()/wxEndBusyCursor(). Fixes
        RTBug #1904.


Revision 978 - (view) (annotate) - [select for diffs]
Modified Thu May 22 11:40:32 2003 UTC (21 years, 9 months ago) by frank
Original Path: trunk/thuban/Thuban/UI/classgen.py
File length: 30503 byte(s)
Diff to previous 907 , to selected 677
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.


Revision 907 - (view) (annotate) - [select for diffs]
Modified Fri May 16 15:01:04 2003 UTC (21 years, 9 months ago) by bh
Original Path: trunk/thuban/Thuban/UI/classgen.py
File length: 30103 byte(s)
Diff to previous 902 , to selected 677
* 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


Revision 902 - (view) (annotate) - [select for diffs]
Modified Wed May 14 11:16:13 2003 UTC (21 years, 9 months ago) by jonathan
Original Path: trunk/thuban/Thuban/UI/classgen.py
File length: 30207 byte(s)
Diff to previous 898 , to selected 677
(ClassGenDialog.OnOK): Fix name of method
        call to ClassGenerator.GenUniformDistribution.


Revision 898 - (view) (annotate) - [select for diffs]
Modified Mon May 12 12:19:58 2003 UTC (21 years, 9 months ago) by jonathan
Original Path: trunk/thuban/Thuban/UI/classgen.py
File length: 30207 byte(s)
Diff to previous 877 , to selected 677
(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).


Revision 877 - (view) (annotate) - [select for diffs]
Modified Fri May 9 16:32:17 2003 UTC (21 years, 10 months ago) by jonathan
Original Path: trunk/thuban/Thuban/UI/classgen.py
File length: 29979 byte(s)
Diff to previous 834 , to selected 677
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


Revision 834 - (view) (annotate) - [select for diffs]
Modified Tue May 6 15:52:36 2003 UTC (21 years, 10 months ago) by bh
Original Path: trunk/thuban/Thuban/UI/classgen.py
File length: 33238 byte(s)
Diff to previous 812 , to selected 677
(ClassGenDialog.__init__)
(GenUniformPanel._OnRetrieve, GenUniquePanel._OnRetrieve): Adapt
to new table interface


Revision 812 - (view) (annotate) - [select for diffs]
Modified Mon May 5 15:04:06 2003 UTC (21 years, 10 months ago) by jonathan
Original Path: trunk/thuban/Thuban/UI/classgen.py
File length: 33423 byte(s)
Diff to previous 781 , to selected 677
(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.


Revision 781 - (view) (annotate) - [select for diffs]
Modified Tue Apr 29 16:53:38 2003 UTC (21 years, 10 months ago) by jonathan
Original Path: trunk/thuban/Thuban/UI/classgen.py
File length: 33215 byte(s)
Diff to previous 728 , to selected 677
Remove all uses of Str2Num.


Revision 728 - (view) (annotate) - [select for diffs]
Modified Thu Apr 24 16:06:28 2003 UTC (21 years, 10 months ago) by jonathan
Original Path: trunk/thuban/Thuban/UI/classgen.py
File length: 33496 byte(s)
Diff to previous 711 , to selected 677
Change all references to genCombo to genChoice.


Revision 711 - (view) (annotate) - [select for diffs]
Modified Wed Apr 23 08:46:23 2003 UTC (21 years, 10 months ago) by jonathan
Original Path: trunk/thuban/Thuban/UI/classgen.py
File length: 33488 byte(s)
Diff to previous 677
(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.


Revision 677 - (view) (annotate) - [selected]
Modified Tue Apr 15 19:21:01 2003 UTC (21 years, 10 months ago) by jonathan
Original Path: trunk/thuban/Thuban/UI/classgen.py
File length: 33694 byte(s)
Diff to previous 660
(GenUniformPanel): Fix spin control weirdness by setting the range to
        (1, maxint).


Revision 660 - (view) (annotate) - [select for diffs]
Modified Mon Apr 14 14:15:44 2003 UTC (21 years, 10 months ago) by jonathan
Original Path: trunk/thuban/Thuban/UI/classgen.py
File length: 33866 byte(s)
Diff to previous 654 , to selected 677
(ClassGenDialog.__init__): Actively set the current selections in the combo
boxes. This is needed under Windows.


Revision 654 - (view) (annotate) - [select for diffs]
Modified Fri Apr 11 15:49:58 2003 UTC (21 years, 10 months ago) by jonathan
Original Path: trunk/thuban/Thuban/UI/classgen.py
File length: 33748 byte(s)
Diff to previous 649 , to selected 677
Change color ramps to start at white not black.


Revision 649 - (view) (annotate) - [select for diffs]
Modified Fri Apr 11 14:27:12 2003 UTC (21 years, 10 months ago) by jonathan
Original Path: trunk/thuban/Thuban/UI/classgen.py
File length: 33748 byte(s)
Diff to previous 635 , to selected 677
(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.


Revision 635 - (view) (annotate) - [select for diffs]
Modified Wed Apr 9 15:42:25 2003 UTC (21 years, 11 months ago) by jonathan
Original Path: trunk/thuban/Thuban/UI/classgen.py
File length: 30912 byte(s)
Diff to previous 629 , to selected 677
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.


Revision 629 - (view) (annotate) - [select for diffs]
Modified Wed Apr 9 10:09:44 2003 UTC (21 years, 11 months ago) by jonathan
Original Path: trunk/thuban/Thuban/UI/classgen.py
File length: 28591 byte(s)
Diff to previous 620 , to selected 677
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.


Revision 620 - (view) (annotate) - [select for diffs]
Modified Mon Apr 7 10:14:25 2003 UTC (21 years, 11 months ago) by jonathan
Original Path: trunk/thuban/Thuban/UI/classgen.py
File length: 13774 byte(s)
Diff to previous 614 , to selected 677
Fix Windows problem.


Revision 614 - (view) (annotate) - [select for diffs]
Modified Mon Apr 7 08:56:38 2003 UTC (21 years, 11 months ago) by jonathan
Original Path: trunk/thuban/Thuban/UI/classgen.py
File length: 13751 byte(s)
Diff to previous 607 , to selected 677
Use Classification.AppendGroup(), not AddGroup()


Revision 607 - (view) (annotate) - [select for diffs]
Added Fri Apr 4 12:16:57 2003 UTC (21 years, 11 months ago) by jonathan
Original Path: trunk/thuban/Thuban/UI/classgen.py
File length: 13745 byte(s)
Diff to selected 677
(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.

  Diffs between and
  Type of Diff should be a

[email protected]
ViewVC Help
Powered by ViewVC 1.1.26