/[thuban]/trunk/thuban/Thuban/UI/classifier.py
ViewVC logotype

Log of /trunk/thuban/Thuban/UI/classifier.py

Parent Directory Parent Directory | Revision Log Revision Log


Links to HEAD: (view) (annotate)
Sticky Revision:

Revision 549 - (view) (annotate) - [select for diffs]
Modified Thu Mar 20 09:45:07 2003 UTC (21 years, 11 months ago) by jonathan
File length: 36517 byte(s)
Diff to previous 535 , to selected 519
 Remember if any changes have actually
        been applied so that if the dialog is cancelled without an application
        of changes we don't have to set a new classification.
(ClassDataPreviewer): Pulled out the window specific code and put it
        ClassDataPreviewWindow. ClassDataPreviewer can then be used to draw
        symbols on any DC.


Revision 535 - (view) (annotate) - [select for diffs]
Modified Fri Mar 14 20:42:18 2003 UTC (21 years, 11 months ago) by bh
File length: 36105 byte(s)
Diff to previous 519
Implement multiple selected shapes

* Thuban/UI/selection.py: New module with a class to represent the
selection.

* Thuban/UI/messages.py (SELECTED_TABLE, SELECTED_MAP): Remove
these unused messages

* Thuban/UI/application.py (ThubanApplication.OnInit)
(ThubanApplication.OnExit, ThubanApplication.SetSession): The
interactor is gone now.
(ThubanApplication.CreateMainWindow): There is no interactor
anymore so we pass None as the interactor argument for now for
compatibility.

* Thuban/UI/view.py (MapCanvas.delegated_messages)
(MapCanvas.Subscribe, MapCanvas.Unsubscribe): In Subscribe and
Unsubscribe, delegate messages according to the delegated_messages
class variable.
(MapCanvas.__getattr__, MapCanvas.delegated_methods): Get some
attributes from instance variables as described with the
delegated_methods class variable.
(MapCanvas.__init__): New instance variable selection holding the
current selection
(MapCanvas.do_redraw): Deal with multiple selected shapes. Simply
pass them on to the renderer
(MapCanvas.SetMap): Clear the selection when a different map is
selected.
(MapCanvas.shape_selected): Simple force a complete redraw. The
selection class now takes care of only issueing SHAPES_SELECTED
messages when the set of selected shapes actually does change.
(MapCanvas.SelectShapeAt): The selection is now managed in
self.selection

* Thuban/UI/mainwindow.py (MainWindow.delegated_messages)
(MainWindow.Subscribe, MainWindow.Unsubscribe): In Subscribe and
Unsubscribe, delegate messages according to the delegated_messages
class variable.
(MainWindow.delegated_methods, MainWindow.__getattr__): Get some
attributes from instance variables as described with the
delegated_methods class variable.
(MainWindow.__init__): The interactor as ivar is gone. The
parameter is still there for compatibility. The selection messages
now come from the canvas.
(MainWindow.current_layer, MainWindow.has_selected_layer):
Delegate to the the canvas.
(MainWindow.LayerShowTable, MainWindow.Classify)
(MainWindow.identify_view_on_demand): The dialogs don't need the
interactor parameter anymore.

* Thuban/UI/tableview.py (TableFrame.__init__)
(LayerTableFrame.__init__, LayerTableFrame.OnClose)
(LayerTableFrame.row_selected): The interactor is gone. It's job
from the dialog's point of view is now done by the mainwindow,
i.e. the parent. Subscribe to SHAPES_SELECTED instead
of SELECTED_SHAPE

* Thuban/UI/dialogs.py (NonModalDialog.__init__): The interactor
is gone. It's job from the dialog's point of view is now done by
the mainwindow, i.e. the parent.

* Thuban/UI/classifier.py (Classifier.__init__): The interactor is
gone. It's job from the dialog's point of view is now done by the
mainwindow, i.e. the parent.

* Thuban/UI/tree.py (SessionTreeView.__init__): The interactor is
gone. It's job from the dialog's point of view is now done by the
mainwindow, i.e. the parent.
(SessionTreeCtrl.__init__): New parameter mainwindow which is
stored as self.mainwindow. The mainwindow is need so that the tree
can still subscribe to the selection messages.
(SessionTreeCtrl.__init__, SessionTreeCtrl.unsubscribe_all)
(SessionTreeCtrl.update_tree, SessionTreeCtrl.OnSelChanged): The
selection is now accessible through the mainwindow. Subscribe to
SHAPES_SELECTED instead of SELECTED_SHAPE

* Thuban/UI/identifyview.py (IdentifyView.__init__): Use the
SHAPES_SELECTED message now.
(IdentifyView.selected_shape): Now subscribed to SHAPES_SELECTED,
so deal with multiple shapes
(IdentifyView.__init__, IdentifyView.OnClose): The interactor is
gone. It's job from the dialog's point of view is now done by the
mainwindow, i.e. the parent.

* Thuban/UI/renderer.py (ScreenRenderer.RenderMap): Rename the
selected_shape parameter and ivar to selected_shapes. It's now a
list of shape ids.
(MapRenderer.draw_label_layer): Deal with multiple selected
shapes. Rearrange the code a bit so that the setup and shape type
distinctions are only executed once.


Revision 519 - (view) (annotate) - [selected]
Modified Tue Mar 11 22:27:35 2003 UTC (21 years, 11 months ago) by jonathan
File length: 36134 byte(s)
Diff to previous 513
Undo last changes so that we now need wxWindows2.4


Revision 513 - (view) (annotate) - [select for diffs]
Modified Tue Mar 11 16:42:38 2003 UTC (21 years, 11 months ago) by jonathan
File length: 36196 byte(s)
Diff to previous 511 , to selected 519
Quick fix so that the ClassGrid works on wxWindows 2.3.


Revision 511 - (view) (annotate) - [select for diffs]
Modified Tue Mar 11 16:27:52 2003 UTC (21 years, 11 months ago) by jonathan
File length: 36134 byte(s)
Diff to previous 509 , to selected 519
More work with the classifier panel.


Revision 509 - (view) (annotate) - [select for diffs]
Modified Tue Mar 11 09:45:59 2003 UTC (21 years, 11 months ago) by jonathan
File length: 35928 byte(s)
Diff to previous 507 , to selected 519
Working to get wxPanel to behave correctly.


Revision 507 - (view) (annotate) - [select for diffs]
Modified Mon Mar 10 17:36:42 2003 UTC (21 years, 11 months ago) by jonathan
File length: 35751 byte(s)
Diff to previous 506 , to selected 519
Add normal border to SelectPropertiesDialog.


Revision 506 - (view) (annotate) - [select for diffs]
Modified Mon Mar 10 15:49:22 2003 UTC (21 years, 11 months ago) by jonathan
File length: 35726 byte(s)
Diff to previous 500 , to selected 519
(Classifier.__init__): Make the
        field type label grow so that when the text changes the
        size is updated correctly. This may be a wxWindows bug.


Revision 500 - (view) (annotate) - [select for diffs]
Modified Mon Mar 10 15:11:24 2003 UTC (21 years, 11 months ago) by jonathan
File length: 35820 byte(s)
Diff to previous 498 , to selected 519
Wrap text with _().
(ClassGrid.CreateTable): Set dimensions and size hints here,
        instead of in Reset, so we only set the size once.


Revision 498 - (view) (annotate) - [select for diffs]
Modified Mon Mar 10 11:03:22 2003 UTC (21 years, 11 months ago) by jonathan
File length: 35810 byte(s)
Diff to previous 496 , to selected 519
(Classifier): SelectField() needed
        to know the old field index as well as the new one.


Revision 496 - (view) (annotate) - [select for diffs]
Modified Mon Mar 10 10:54:50 2003 UTC (21 years, 11 months ago) by jonathan
File length: 35710 byte(s)
Diff to previous 489 , to selected 519
(Classifier): Use __SelectField()
        to correctly set the table information and call this from
        __init__ and from _OnFieldSelect so that all the information
        is up to date when the dialog opens and when a field is changed.


Revision 489 - (view) (annotate) - [select for diffs]
Modified Fri Mar 7 18:22:47 2003 UTC (22 years ago) by jonathan
File length: 35552 byte(s)
Diff to previous 485 , to selected 519
removed print statement


Revision 485 - (view) (annotate) - [select for diffs]
Modified Fri Mar 7 18:20:31 2003 UTC (22 years ago) by jonathan
File length: 35596 byte(s)
Diff to previous 476 , to selected 519
Setting and Getting table values now
        uses a consistent set of functions.
(Classifier): Now non-modal. Has field type label which changes
        as the field changes. Keep track of buttons in a list so that
        we can enable/disable the buttons when the None field is selected.
(SelectPropertiesDialog): Add buttons to make the colors transparent.


Revision 476 - (view) (annotate) - [select for diffs]
Modified Thu Mar 6 15:03:37 2003 UTC (22 years ago) by bh
File length: 31261 byte(s)
Diff to previous 473 , to selected 519
(ClassGrid.__init__)
(ClassGrid.CreateTable): Move the SetSelectionMode call to
CreateTable because otherwise it triggers an assertion in
wxPython/wxGTK 2.4.


Revision 473 - (view) (annotate) - [select for diffs]
Modified Wed Mar 5 18:39:45 2003 UTC (22 years ago) by jonathan
File length: 31255 byte(s)
Diff to previous 460 , to selected 519
import FIELDTYPE constants from table


Revision 460 - (view) (annotate) - [select for diffs]
Modified Wed Mar 5 18:16:28 2003 UTC (22 years ago) by jonathan
File length: 31165 byte(s)
Diff to previous 455 , to selected 519
Added class documentation.
        Fixed RTbug #1713, #1714. Added Move[Up|Down] buttons.
        Store just the groups in the table and generate the other
        column information when it is requested. Add "None" field
        to pull-down to select no classification.


Revision 455 - (view) (annotate) - [select for diffs]
Modified Tue Mar 4 11:32:20 2003 UTC (22 years ago) by bh
File length: 24703 byte(s)
Diff to previous 451 , to selected 519
(ClassGrid.__init__): Set the table
before the selection mode. Doing it the other way round triggers
an assertion in wxWindows.


Revision 451 - (view) (annotate) - [select for diffs]
Modified Tue Mar 4 10:33:56 2003 UTC (22 years ago) by jonathan
File length: 24703 byte(s)
Diff to previous 444 , to selected 519
(ClassGrid): Moved OnCellDClick() from
        Classifier to ClassGrid. Added support for removing selected rows,
        which including code for keeping track of when cells are selected,
        and deselected.
(ClassTable): Support for added/removing rows. Fixed a problem
        with __ParseInput whereby it would not allow strings (only numbers)
        to be entered.
(Classifier): Added button and supporting code for removing selected rows.


Revision 444 - (view) (annotate) - [select for diffs]
Modified Thu Feb 27 16:02:59 2003 UTC (22 years ago) by jonathan
File length: 20635 byte(s)
Diff to previous 441 , to selected 519
Fix to create a tuple with a single value instead of simply returning the value.


Revision 441 - (view) (annotate) - [select for diffs]
Modified Thu Feb 27 15:55:00 2003 UTC (22 years ago) by jonathan
File length: 20597 byte(s)
Diff to previous 430 , to selected 519
Changes to use new Classification and Group functions.


Revision 430 - (view) (annotate) - [select for diffs]
Modified Mon Feb 24 18:47:06 2003 UTC (22 years ago) by jonathan
File length: 19705 byte(s)
Diff to previous 415 , to selected 519
(SelectPropertiesDialog): Support
        for changing the stroke and fill colors and previewing the
        changes.


Revision 415 - (view) (annotate) - [select for diffs]
Modified Wed Feb 19 16:52:51 2003 UTC (22 years ago) by jonathan
File length: 17811 byte(s)
Diff to previous 400 , to selected 519
(ClassGrid): New class to represent a
        custom grid.
(ClassTable): Support for editing Values and Labels and for
        changing what type (point or range) of data is stored in each
        property based on how the user enters the data.
(Classifier): Support for saving the new classifications and
        launching the dialog to edit a property.
(SelectPropertiesDialog): New class for editing the visual
        properties of a classification (stroke color, width, and fill color)
(ClassPreviewer): Took the Draw method from ClassRenderer and
        made most of it into this new class. Intend to use this class in
        the SelectPropertiesDialog for previewing changes.


Revision 400 - (view) (annotate) - [select for diffs]
Modified Tue Feb 11 14:29:09 2003 UTC (22 years ago) by jonathan
File length: 5974 byte(s)
Diff to previous 398 , to selected 519
typo fix


Revision 398 - (view) (annotate) - [select for diffs]
Modified Tue Feb 11 14:23:45 2003 UTC (22 years ago) by jonathan
File length: 5979 byte(s)
Diff to previous 392 , to selected 519
* Thuban/UI/classifier.py (ClassTable): Didn't need to hang
        onto the clinfo parameter, so removed the deepcopy().


Revision 392 - (view) (annotate) - [select for diffs]
Modified Mon Feb 10 15:26:30 2003 UTC (22 years ago) by jonathan
File length: 6033 byte(s)
Diff to previous 379 , to selected 519
* Thuban/UI/classifier.py (ClassRenderer): New class to
        draw the classifications in the dialog box's table.
        (Classifier): Modified to use the ClassRenderer class.


Revision 379 - (view) (annotate) - [select for diffs]
Modified Tue Jan 28 12:54:01 2003 UTC (22 years, 1 month ago) by jonathan
File length: 3315 byte(s)
Diff to previous 377 , to selected 519
added i18n wrapper _() to text


Revision 377 - (view) (annotate) - [select for diffs]
Modified Tue Jan 28 12:09:56 2003 UTC (22 years, 1 month ago) by jonathan
File length: 3312 byte(s)
Diff to previous 376 , to selected 519
fixed a missed conflict


Revision 376 - (view) (annotate) - [select for diffs]
Modified Tue Jan 28 12:01:38 2003 UTC (22 years, 1 month ago) by jonathan
File length: 3784 byte(s)
Diff to previous 374 , to selected 519
fix i18n merge conflict


Revision 374 - (view) (annotate) - [select for diffs]
Modified Mon Jan 27 14:20:02 2003 UTC (22 years, 1 month ago) by jan
File length: 2813 byte(s)
Diff to previous 372 , to selected 519
Replace user string by _() for i18n.


Revision 372 - (view) (annotate) - [select for diffs]
Added Mon Jan 27 13:50:58 2003 UTC (22 years, 1 month ago) by jonathan
File length: 2764 byte(s)
Diff to selected 519
Dialog box for modifying classification information


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