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

Log of /branches/WIP-pyshapelib-bramz/Thuban/UI/dialogs.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: 2188 byte(s)
Diff to previous 2700
made a copy

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



Revision 1891 - (view) (annotate) - [select for diffs]
Modified Thu Oct 30 18:16:39 2003 UTC (21 years, 4 months ago) by bh
Original Path: trunk/thuban/Thuban/UI/dialogs.py
File length: 2162 byte(s)
Diff to previous 1198 , to selected 2700
(ThubanFrame.__init__): Handle
EVT_WINDOW_DESTROY
(ThubanFrame.OnDestroy): New. Handler for EVT_WINDOW_DESTROY. Does
nothing but is convenient for the derived classes.


Revision 1198 - (view) (annotate) - [select for diffs]
Modified Fri Jun 13 15:03:32 2003 UTC (21 years, 8 months ago) by jonathan
Original Path: trunk/thuban/Thuban/UI/dialogs.py
File length: 1953 byte(s)
Diff to previous 1057 , to selected 2700
(ThubanFrame): New: a class that inherits
        from wxFrame (as opposed to wxDialog like the other classes)
        but otherwise behaves like the other classes. This is needed
        for the TableView which isn't really a dialog and needs to
        have a status bar and control buttons.


Revision 1057 - (view) (annotate) - [select for diffs]
Modified Tue May 27 11:30:02 2003 UTC (21 years, 9 months ago) by frank
Original Path: trunk/thuban/Thuban/UI/dialogs.py
File length: 1981 byte(s)
Diff to previous 814 , to selected 2700
(NonModalNonParentDialog): New class, without
	parent, i.e. can fall behind other windows.
(NonModalDialog.OnClose): Check is dialog is in mainwindow.dialog
	dictionary before removing it.


Revision 814 - (view) (annotate) - [select for diffs]
Modified Mon May 5 15:04:42 2003 UTC (21 years, 10 months ago) by jonathan
Original Path: trunk/thuban/Thuban/UI/dialogs.py
File length: 1175 byte(s)
Diff to previous 535 , to selected 2700
Copied NonModalDialog box and changed it
        to derive from a wxDialog but behave like the original implementation
        which was derived from a wxFrame. wxDialog provides useful key
        handling functionality like ESC calling OnCancel and ENTER calling
        OnOK which is lost with wxFrame.


Revision 535 - (view) (annotate) - [select for diffs]
Modified Fri Mar 14 20:42:18 2003 UTC (21 years, 11 months ago) by bh
Original Path: trunk/thuban/Thuban/UI/dialogs.py
File length: 628 byte(s)
Diff to previous 501 , to selected 2700
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 501 - (view) (annotate) - [select for diffs]
Modified Mon Mar 10 15:11:39 2003 UTC (22 years ago) by jonathan
Original Path: trunk/thuban/Thuban/UI/dialogs.py
File length: 680 byte(s)
Diff to previous 486 , to selected 2700
Don't need Shutdown(); just use Close()!


Revision 486 - (view) (annotate) - [select for diffs]
Modified Fri Mar 7 18:20:46 2003 UTC (22 years ago) by jonathan
Original Path: trunk/thuban/Thuban/UI/dialogs.py
File length: 730 byte(s)
Diff to previous 28 , to selected 2700
(NonModalDialog.Shutdown): New method which
        does what OnClose did, but can be called by the application to
        close a window. Needed when a session changes, and we have to
        close the classifier windows.


Revision 28 - (view) (annotate) - [select for diffs]
Added Thu Sep 6 13:29:57 2001 UTC (23 years, 6 months ago) by bh
Original Path: trunk/thuban/Thuban/UI/dialogs.py
File length: 671 byte(s)
Diff to selected 2700
New file implementing common classes for dialogs


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