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

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

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/mainwindow.py
File length: 53516 byte(s)
Diff to previous 2551 , to selected 713
2006-09-18 Didrik Pinte <dpinte@itae.be>
    
        * wxPython 2.6 update : wx 2.4 syntax has been updated to 2.6



Revision 2551 - (view) (annotate) - [select for diffs]
Modified Thu Jan 27 14:19:41 2005 UTC (20 years, 1 month ago) by jonathan
Original Path: trunk/thuban/Thuban/UI/mainwindow.py
File length: 53657 byte(s)
Diff to previous 2544 , to selected 713
Add a new dialog box for raster layers. The dialog box allows
the user to toggle a mask that is generated by ProjectRasterFile
and is used to only draw the real parts of the projected image.


Revision 2544 - (view) (annotate) - [select for diffs]
Modified Mon Jan 24 11:19:53 2005 UTC (20 years, 1 month ago) by bh
Original Path: trunk/thuban/Thuban/UI/mainwindow.py
File length: 53390 byte(s)
Diff to previous 2534 , to selected 713
Rework the status bar updates a bit to make sure the message about
the projections is produced at the right times.

* Thuban/UI/mainwindow.py (MainWindow.update_status_bar_messages):
New class variable with messages that may require a status bar
update.
(MainWindow.view_position_changed)
(MainWindow.update_status_bar): Rename from view_position_changed
to update_status_bar.  It's meaning has changed now that it may
also generate messages about problems with projection settings.
(MainWindow.__init__): Use the new update_status_bar_messages
class variable to subscribe update_status_bar
(MainWindow.set_position_text): Update doc-string.  This method
has to be renamed at some point.  See doc-string and comments.
(MainWindow.OnClose): Unsubscribe update_status_bar from all
messages in update_status_bar_messages

* Thuban/UI/viewport.py (ViewPort.forwarded_map_messages): New
class attribute.  map messages to be forwarded by the viewport.
(ViewPort._subscribe_map, ViewPort._unsubscribe_map): (un)subscribe
the messages in forwarded_map_messages


Revision 2534 - (view) (annotate) - [select for diffs]
Modified Fri Jan 21 08:31:16 2005 UTC (20 years, 1 month ago) by jan
Original Path: trunk/thuban/Thuban/UI/mainwindow.py
File length: 51784 byte(s)
Diff to previous 2531 , to selected 713
(view_position_changed): Made string available for i18n.


Revision 2531 - (view) (annotate) - [select for diffs]
Modified Thu Jan 20 18:47:26 2005 UTC (20 years, 1 month ago) by bernhard
Original Path: trunk/thuban/Thuban/UI/mainwindow.py
File length: 51773 byte(s)
Diff to previous 2529 , to selected 713
	* Thuban/UI/mainwindow.py(view_position_changed): Added docstring
	and comment that the warning code here is a hack.


Revision 2529 - (view) (annotate) - [select for diffs]
Modified Thu Jan 20 17:55:23 2005 UTC (20 years, 1 month ago) by russell
Original Path: trunk/thuban/Thuban/UI/mainwindow.py
File length: 50742 byte(s)
Diff to previous 2520 , to selected 713
Warn user about misprojected layers when their lat/lon bounding
box exceeds rational lat/lon values.


Revision 2520 - (view) (annotate) - [select for diffs]
Modified Tue Jan 11 16:52:40 2005 UTC (20 years, 1 month ago) by frank
Original Path: trunk/thuban/Thuban/UI/mainwindow.py
File length: 50178 byte(s)
Diff to previous 2516 , to selected 713
* Thuban/UI/mainwindow.py (MainWindow.DuplicateLayer):
	Fix indention bug.


Revision 2516 - (view) (annotate) - [select for diffs]
Modified Sun Jan 9 12:32:17 2005 UTC (20 years, 2 months ago) by frank
Original Path: trunk/thuban/Thuban/UI/mainwindow.py
File length: 50159 byte(s)
Diff to previous 2365 , to selected 713
BugFix 2901: Explicitly copy layers ClassificationColumn since it
is not part of the layers Classification.


Revision 2365 - (view) (annotate) - [select for diffs]
Modified Fri Oct 1 18:22:32 2004 UTC (20 years, 5 months ago) by joey
Original Path: trunk/thuban/Thuban/UI/mainwindow.py
File length: 50078 byte(s)
Diff to previous 2364 , to selected 713
Utilise the new ClassMapper for global registration of properties
dialog classes (which are indeed layer-specific).


Revision 2364 - (view) (annotate) - [select for diffs]
Modified Fri Oct 1 18:18:49 2004 UTC (20 years, 5 months ago) by joey
Original Path: trunk/thuban/Thuban/UI/mainwindow.py
File length: 49934 byte(s)
Diff to previous 2363 , to selected 713
Move the logic for checking whether a dialog is already opened (and
raising it to the users attention) and creating a new dialog into a
function of its own


Revision 2363 - (view) (annotate) - [select for diffs]
Modified Fri Oct 1 18:07:14 2004 UTC (20 years, 5 months ago) by joey
Original Path: trunk/thuban/Thuban/UI/mainwindow.py
File length: 49266 byte(s)
Diff to previous 2186 , to selected 713
The map can be retrieved through the parent which is passed to the
constructor anyway and doesn't require an argument of its own,
required for the unification of arguments for general use through
properties-dialog selector.


Revision 2186 - (view) (annotate) - [select for diffs]
Modified Sun Apr 18 20:37:01 2004 UTC (20 years, 10 months ago) by jan
Original Path: trunk/thuban/Thuban/UI/mainwindow.py
File length: 49278 byte(s)
Diff to previous 2184 , to selected 713
New method commands: layer_to_top, layer_to_bottom, layer_visibility
(MainWindow.LayerToTop): New. Put current layer to the top.
(MainWindow.LayerToBottom): New. Put current layer to bottom.
(MainWindow.HideLayer, MainWindow.ShowLayer, _has_visible_map):
Replace 1,0 by True, False.
(MainWindow.ToggleLayerVisibility): New. Toggle visibility of
current layer.
(MainWindow.LayerShowTable): Removed raising of dialog.
(_has_selected_layer_visible): New. Support function.


Revision 2184 - (view) (annotate) - [select for diffs]
Modified Fri Apr 16 08:21:12 2004 UTC (20 years, 10 months ago) by jan
Original Path: trunk/thuban/Thuban/UI/mainwindow.py
File length: 48132 byte(s)
Diff to previous 2163 , to selected 713
(MainWindow.LayerShowTable): Added docstring. Now for layers without a
ShapeStore a corresponding message is given to the user, that this
layer has no table to show.


Revision 2163 - (view) (annotate) - [select for diffs]
Modified Tue Apr 13 10:10:34 2004 UTC (20 years, 10 months ago) by joey
Original Path: trunk/thuban/Thuban/UI/mainwindow.py
File length: 47605 byte(s)
Diff to previous 2102 , to selected 713
Raise the ShowTable() dialog/frame when the user attempts to display
it while it has been opened before already and not closed again.


Revision 2102 - (view) (annotate) - [select for diffs]
Modified Thu Mar 11 21:04:30 2004 UTC (20 years, 11 months ago) by bh
Original Path: trunk/thuban/Thuban/UI/mainwindow.py
File length: 47647 byte(s)
Diff to previous 2061 , to selected 713
* Thuban/UI/dbdialog.py (ChooseDBTableDialog.__init__): Rework how
the dialog is constructed. Add combo boxes to select id and
geometry column.  Rename some instance variables.
(ChooseDBTableDialog.GetTable): Return id and geometry column
names
(ChooseDBTableDialog.OnTableSelect): New. Event handler for
selections in the table list

* Thuban/UI/mainwindow.py (MainWindow.AddDBLayer): Use id_column
and geometry_column

* Thuban/Model/session.py (Session.OpenDBShapeStore): Add the new
parameters for id_column and geometry column of PostGISShapeStore
here as well.

* Thuban/Model/postgisdb.py (type_map): Add ROWID psycog type.
(_raw_type_map): New. Map raw PostgreSQL type ints to thuban types
(PostGISConnection.GeometryTables): Use a better query to
determine which relations in the database might be usable for
shapestores.  Now supports views as well but is more PostgreSQL
specific
(PostGISConnection.table_columns): New. Somewhat experimental
method to let the db dialogs provide lists of columns to users so
that they can select id and geometry columns.
(PostGISTable.__init__): The default value of the id_column
parameter is now None it still means "gid" effectively, though.
(PostGISTable.IDColumn): New introspection method to return a
column object for the id column
(PostGISShapeStore.GeometryColumn): New introspection method to
return a column object for the geometry column

* test/test_postgis_db.py
(TestPostGISConnection.test_gis_tables_non_empty):
Removed. Subsumed by the new:
(TestPostGISConnection.test_gis_tables_with_views_and_tables):
New. Tes the GeometryTables and table_columns methods with actual
tables and views.
(PointTests.test_id_column, PointTests.test_geometry_column):
New. tests for the new methods.
(TestPostGISShapestorePoint.setUp)
(TestPostGISShapestorePointSRID.setUp)
(TestPostGISShapestorePointExplicitGIDColumn.setUp): Fill the
instance variables needed by the new tests


Revision 2061 - (view) (annotate) - [select for diffs]
Modified Fri Feb 13 10:46:44 2004 UTC (21 years ago) by bh
Original Path: trunk/thuban/Thuban/UI/mainwindow.py
File length: 47511 byte(s)
Diff to previous 2051 , to selected 713
(MainWindow.AddDBLayer): When the layer
can't be created, return immediately after displaying the error
message.


Revision 2051 - (view) (annotate) - [select for diffs]
Modified Wed Jan 21 17:09:15 2004 UTC (21 years, 1 month ago) by frank
Original Path: trunk/thuban/Thuban/UI/mainwindow.py
File length: 47482 byte(s)
Diff to previous 2040 , to selected 713
Make Thuban remember path selections (at least for one application run).

* Thuban/UI/application.py (Application.OnInit): Initialize path as a
	attribute of application object. Path is a dictionary of
	strings, currently with the items "data" and "projection".
	(Application.SetPath): New, stores path for the specified item.
	(Application.Path): New, return path for the specified item.

* Thuban/UI/mainwindow.py
	(MainWindow.OpenSession, MainWindow.SaveSessionAs,
	MainWindow.AddLayer, MainWindow.AddRasterLayer,
	MainWindow.TableOpen): Access "data" path information of the
	application.

* Thuban/UI/projdialog.py (ProjFrame._OnImport, ProjFrame._OnExport):
	Access "projection" path information of the application.


Revision 2040 - (view) (annotate) - [select for diffs]
Modified Tue Dec 23 11:37:04 2003 UTC (21 years, 2 months ago) by bh
Original Path: trunk/thuban/Thuban/UI/mainwindow.py
File length: 46908 byte(s)
Diff to previous 2019 , to selected 713
* Thuban/UI/join.py (JoinDialog.__init__): Mark one more string
for translation

* Thuban/UI/mainwindow.py (MainWindow.TableRename)
(MainWindow.RenameMap, MainWindow.RenameLayer): Mark some more
strings for translation

* po/de.po: Update with the newly marked strings.


Revision 2019 - (view) (annotate) - [select for diffs]
Modified Wed Dec 3 18:56:23 2003 UTC (21 years, 3 months ago) by bh
Original Path: trunk/thuban/Thuban/UI/mainwindow.py
File length: 46896 byte(s)
Diff to previous 2017 , to selected 713
(MainWindow.has_selected_shape_layer):
New. Like has_selected_layer but for shape layers only
(_has_selected_shape_layer): New. Like _has_selected_layer but for
shape layers only
(layer_show_table command, layer_jointable command): Use these
commands should only be available for shape layers


Revision 2017 - (view) (annotate) - [select for diffs]
Modified Wed Dec 3 18:43:03 2003 UTC (21 years, 3 months ago) by bh
Original Path: trunk/thuban/Thuban/UI/mainwindow.py
File length: 46559 byte(s)
Diff to previous 1995 , to selected 713
(MainWindow.Unsubscribe): Deal with
publishers that are wx objects and may have been destroyed by wx
already. Fixes RT #2242.


Revision 1995 - (view) (annotate) - [select for diffs]
Modified Mon Dec 1 16:09:10 2003 UTC (21 years, 3 months ago) by bh
Original Path: trunk/thuban/Thuban/UI/mainwindow.py
File length: 46251 byte(s)
Diff to previous 1782 , to selected 713
(MainWindow.AddLayer): Change the wild
cards for the dialog so that shapefiles ending in all uppercase
SHP are listed too


Revision 1782 - (view) (annotate) - [select for diffs]
Modified Mon Oct 6 17:31:54 2003 UTC (21 years, 5 months ago) by bh
Original Path: trunk/thuban/Thuban/UI/mainwindow.py
File length: 46247 byte(s)
Diff to previous 1695 , to selected 713
(MainWindow.__init__): Subscribe to the
canvas' TITLE_CHANGED messages
(MainWindow.update_title): New. Update the main window's title
(MainWindow.__SetTitle): Removed. Use update_title instead.
(MainWindow.SetMap): Use update_title instead of __SetTitle
(MainWindow.RenameMap): Do change the window title explicitly
here. That's handled in a proper MVC way now.
(MainWindow.title_changed): New. Subscriber for the TITLE_CHANGED
messages


Revision 1695 - (view) (annotate) - [select for diffs]
Modified Mon Sep 1 12:45:07 2003 UTC (21 years, 6 months ago) by bh
Original Path: trunk/thuban/Thuban/UI/mainwindow.py
File length: 45352 byte(s)
Diff to previous 1667 , to selected 713
* Thuban/UI/dbdialog.py (ChooseDBTableDialog.__init__): Change the
parameter list to just parent and session
(ChooseDBTableDialog.__set_properties): Removed. Setting the
selection of empty list boxes is not allowed (and produces C++
assertion errors) and the rest of the setup is better done in
__init__ anyway.
(ChooseDBTableDialog.OnCancel, ChooseDBTableDialog.OnOK)
(ChooseDBTableDialog.OnLBDClick, DBDialog.OnOK): Use the Python
builtins True/False for booleans to avoid warnings from wxPython

* Thuban/UI/mainwindow.py (MainWindow.AddDBLayer): Adapt to new
ChooseDBTableDialog constructor parameters.


Revision 1667 - (view) (annotate) - [select for diffs]
Modified Thu Aug 28 10:21:05 2003 UTC (21 years, 6 months ago) by bh
Original Path: trunk/thuban/Thuban/UI/mainwindow.py
File length: 45359 byte(s)
Diff to previous 1648 , to selected 713
Remove some unused imports


Revision 1648 - (view) (annotate) - [select for diffs]
Modified Mon Aug 25 13:55:35 2003 UTC (21 years, 6 months ago) by bh
Original Path: trunk/thuban/Thuban/UI/mainwindow.py
File length: 45437 byte(s)
Diff to previous 1644 , to selected 713
* Thuban/UI/dbdialog.py (DBDialog): Reimplement to make it look a
bit nucer and be more generic.
(DBFrame.OnAdd): Adapt to new DBDialog interface

* Thuban/UI/application.py (ThubanApplication.OpenSession): New
optional parameter db_connection_callback which is passed to
load_session.

* Thuban/UI/mainwindow.py (MainWindow.run_db_param_dialog): New.
Suitable as a db_connection_callback
(MainWindow.OpenSession): Use self.run_db_param_dialog as the
db_connection_callback of the application's OpenSession method


Revision 1644 - (view) (annotate) - [select for diffs]
Modified Mon Aug 25 12:44:55 2003 UTC (21 years, 6 months ago) by bh
Original Path: trunk/thuban/Thuban/UI/mainwindow.py
File length: 45164 byte(s)
Diff to previous 1625 , to selected 713
(__ThubanVersion__): Remove this and
replace it and the comment with __BuildDate__ by the Source: and
Id: cvs keywords as used in the other files.


Revision 1625 - (view) (annotate) - [select for diffs]
Modified Thu Aug 21 16:02:23 2003 UTC (21 years, 6 months ago) by bh
Original Path: trunk/thuban/Thuban/UI/mainwindow.py
File length: 45215 byte(s)
Diff to previous 1622 , to selected 713
Make postgis support really optional including insensitive menu
items.

* Thuban/Model/postgisdb.py (has_postgis_support): New. Return
whether the postgis is supported.

* Thuban/UI/dbdialog.py: Put the psycopg import into try..except
to make postgis support optional

* Thuban/UI/mainwindow.py (_has_postgis_support): New. Context
version of Thuban.Model.postgisdb.has_postgis_support
(database_management command): Make it only sensitive if postgis
is supported.


Revision 1622 - (view) (annotate) - [select for diffs]
Modified Thu Aug 21 11:56:06 2003 UTC (21 years, 6 months ago) by jan
Original Path: trunk/thuban/Thuban/UI/mainwindow.py
File length: 45074 byte(s)
Diff to previous 1620 , to selected 713
(MainWindow.AddLayer): Changed dialog settings to allow multiple files
to load into the map.  Also reduced selection to *.shp as a default.


Revision 1620 - (view) (annotate) - [select for diffs]
Modified Wed Aug 20 13:14:22 2003 UTC (21 years, 6 months ago) by bh
Original Path: trunk/thuban/Thuban/UI/mainwindow.py
File length: 44829 byte(s)
Diff to previous 1464 , to selected 713
Add dialogs and commands to open database connections and add
database layers.

* Thuban/UI/mainwindow.py (MainWindow.DatabaseManagement): New
method to open the database connection management dialog
(MainWindow.AddDBLayer): New method to add a layer from a database
(_has_dbconnections): New helper function to use for sensitivity
(database_management command, layer_add_db command): New commands
that call the above new methods.
(main_menu): Add the new commands to the menu.

* Thuban/Model/postgisdb.py (PostGISConnection.__init__)
(PostGISConnection.connect): Establish the actual connection in a
separate method and call it in __init__. This makes it easier to
override the behavior in test cases
(PostGISConnection.BriefDescription): New method to return a brief
description for use in dialogs.

* test/test_postgis_db.py (NonConnection): DB connection that
doesn't actually connect
(TestBriefDescription): New class with tests for the new
BriefDescription method


Revision 1464 - (view) (annotate) - [select for diffs]
Modified Fri Jul 18 18:20:40 2003 UTC (21 years, 7 months ago) by bh
Original Path: trunk/thuban/Thuban/UI/mainwindow.py
File length: 42839 byte(s)
Diff to previous 1448 , to selected 713
* Thuban/UI/messages.py (MAP_REPLACED): New message.

* Thuban/UI/viewport.py (ViewPort.SetMap): Issue MAP_REPLACED
after the new map has been assigned

* Thuban/UI/mainwindow.py (MainWindow.delegated_messages):
Delegate MAP_REPLACED to the canvas too
(MainWindow.prepare_new_session): Removed. Thanks to the new
MAP_REPLACED message it's no longer needed
(MainWindow.OpenSession, MainWindow.NewSession):
prepare_new_session has been removed.

* Thuban/UI/classifier.py (Classifier.__init__): Subscribe to
MAP_REPLACED so that we can close the dialog if a new map is set.
(Classifier.unsubscribe_messages): Unsubscribe from MAP_REPLACED
(Classifier.map_replaced): Handle MAP_REPLACED by closing the
dialog

* test/test_viewport.py (SimpleViewPortTest)
(SimpleViewPortTest.test_default_size): Add doc-strings
(ViewPortTest.setUp): Bind map to self.map so we can use it in
tests. Subscribe to MAP_REPLACED messages too.
(ViewPortTest.tearDown): No need to explicitly unsubscribe
(ViewPortTest.test_set_map): New test for the SetMap method.


Revision 1448 - (view) (annotate) - [select for diffs]
Modified Thu Jul 17 14:59:41 2003 UTC (21 years, 7 months ago) by jonathan
Original Path: trunk/thuban/Thuban/UI/mainwindow.py
File length: 43008 byte(s)
Diff to previous 1393 , to selected 713
(MainWindow.ToggleLegend): Don't
        fit the map to the window as this changes any zoom level that
        the user may have set.


Revision 1393 - (view) (annotate) - [select for diffs]
Modified Thu Jul 10 14:54:41 2003 UTC (21 years, 8 months ago) by jonathan
Original Path: trunk/thuban/Thuban/UI/mainwindow.py
File length: 43046 byte(s)
Diff to previous 1309 , to selected 713
(MainWindow.ShowTableView): Raise
        the table window when it is selectd to be shown.


Revision 1309 - (view) (annotate) - [select for diffs]
Modified Thu Jun 26 17:00:44 2003 UTC (21 years, 8 months ago) by jonathan
Original Path: trunk/thuban/Thuban/UI/mainwindow.py
File length: 43067 byte(s)
Diff to previous 1293 , to selected 713
(MainWindow.About): Call new About box in Thuban.UI.about.


Revision 1293 - (view) (annotate) - [select for diffs]
Modified Mon Jun 23 13:05:58 2003 UTC (21 years, 8 months ago) by jonathan
Original Path: trunk/thuban/Thuban/UI/mainwindow.py
File length: 43836 byte(s)
Diff to previous 1287 , to selected 713
Add blank line at the end because
        file was not being read correctly building the Windows
        distribution.


Revision 1287 - (view) (annotate) - [select for diffs]
Modified Mon Jun 23 10:47:11 2003 UTC (21 years, 8 months ago) by jonathan
Original Path: trunk/thuban/Thuban/UI/mainwindow.py
File length: 43835 byte(s)
Diff to previous 1233 , to selected 713
(MainWindow.About): Fix text.


Revision 1233 - (view) (annotate) - [select for diffs]
Modified Wed Jun 18 14:47:19 2003 UTC (21 years, 8 months ago) by jonathan
Original Path: trunk/thuban/Thuban/UI/mainwindow.py
File length: 43823 byte(s)
Diff to previous 1219 , to selected 713
(MainWindow.__init__): Call ShowLegend().


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/mainwindow.py
File length: 43796 byte(s)
Diff to previous 1164 , to selected 713
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 1164 - (view) (annotate) - [select for diffs]
Modified Thu Jun 12 12:41:44 2003 UTC (21 years, 8 months ago) by jonathan
Original Path: trunk/thuban/Thuban/UI/mainwindow.py
File length: 43781 byte(s)
Diff to previous 1155 , to selected 713
(_has_gdal_support): New. Used to
        determine if the "Add Image Layer" menu option should be
        greyed out or not. Addresses RTbug #1877.


Revision 1155 - (view) (annotate) - [select for diffs]
Modified Thu Jun 12 12:17:11 2003 UTC (21 years, 8 months ago) by jan
Original Path: trunk/thuban/Thuban/UI/mainwindow.py
File length: 43551 byte(s)
Diff to previous 1142 , to selected 713
import wxMultipleChoiceDialog from multiplechoicedialog.py rather than
from the wxPython library.


Revision 1142 - (view) (annotate) - [select for diffs]
Modified Tue Jun 10 09:41:57 2003 UTC (21 years, 9 months ago) by bh
Original Path: trunk/thuban/Thuban/UI/mainwindow.py
File length: 43404 byte(s)
Diff to previous 1140 , to selected 713
* Thuban/Model/messages.py (LAYER_SHAPESTORE_REPLACED): New
message.

* Thuban/Model/layer.py (Layer.SetShapeStore): Send
LAYER_SHAPESTORE_REPLACED when the shapestore changes. A
LAYER_CHANGED will still be sent if the classification changes.

* Thuban/UI/classifier.py (Classifier.__init__): Add the map as
parameter so we can subscribe to some of its messages
(Classifier.__init__): Subscribe to the map's MAP_LAYERS_REMOVED
and the layer's LAYER_SHAPESTORE_REPLACED
(Classifier.unsubscribe_messages): New. Unsubscribe from message
subscribed to in __init__
(Classifier.map_layers_removed)
(Classifier.layer_shapestore_replaced): receivers for the messages
subscribed to in __init__. Unsubscribe and close the dialog

* Thuban/UI/mainwindow.py (MainWindow.OpenLayerProperties): Pass
the map to the Classifier dialog

* test/test_layer.py (SetShapeStoreTests): Derive from
SubscriberMixin as well so we can test messages
(SetShapeStoreTests.setUp): Subscribe to some of the layer's
messages
(SetShapeStoreTests.tearDown): Clear the messages again
(SetShapeStoreTests.test_sanity): Expand the doc-string and check
for the modified flag too
(SetShapeStoreTests.test_set_shape_store_modified_flag): New test
to check whether SetShapeStore sets the modified flag
(SetShapeStoreTests.test_set_shape_store_different_field_name)
(SetShapeStoreTests.test_set_shape_store_same_field)
(SetShapeStoreTests.test_set_shape_store_same_field_different_type):
Add tests for the messages. This checks both the new
LAYER_SHAPESTORE_REPLACED and the older LAYER_CHANGED


Revision 1140 - (view) (annotate) - [select for diffs]
Modified Fri Jun 6 11:18:51 2003 UTC (21 years, 9 months ago) by jan
Original Path: trunk/thuban/Thuban/UI/mainwindow.py
File length: 43392 byte(s)
Diff to previous 1126 , to selected 713
Improved and partly added help texts for the menu items.


Revision 1126 - (view) (annotate) - [select for diffs]
Modified Mon Jun 2 14:15:43 2003 UTC (21 years, 9 months ago) by bh
Original Path: trunk/thuban/Thuban/UI/mainwindow.py
File length: 42145 byte(s)
Diff to previous 1108 , to selected 713
(layer_rename command, table_rename command):
New commands.
(main_menu): Add the new commands.
(MainWindow.TableRename): New. Implementation of the table_rename
command.
(MainWindow.RenameLayer): New. Implementation of the layer_rename
command.


Revision 1108 - (view) (annotate) - [select for diffs]
Modified Fri May 30 06:31:21 2003 UTC (21 years, 9 months ago) by jonathan
Original Path: trunk/thuban/Thuban/UI/mainwindow.py
File length: 39616 byte(s)
Diff to previous 1094 , to selected 713
(MainWindow.ToggleLegend): Apply a full
        extent to the map when the legend is toggled. Fixes RTBug #1881.


Revision 1094 - (view) (annotate) - [select for diffs]
Modified Wed May 28 18:59:46 2003 UTC (21 years, 9 months ago) by bh
Original Path: trunk/thuban/Thuban/UI/mainwindow.py
File length: 39578 byte(s)
Diff to previous 1084 , to selected 713
(MainWindow.DuplicateLayer)
(MainWindow.CanDuplicateLayer): New methods to implement the
Layer/Duplicate command.
(layer_duplicate command): New.
(main_menu): Add layer_duplicate to the Layer menu.


Revision 1084 - (view) (annotate) - [select for diffs]
Modified Wed May 28 10:25:09 2003 UTC (21 years, 9 months ago) by jan
Original Path: trunk/thuban/Thuban/UI/mainwindow.py
File length: 38497 byte(s)
Diff to previous 1080 , to selected 713
(MainWindow.TableClose, MainWindow.TableShow): sort the selection list
for the dialog.


Revision 1080 - (view) (annotate) - [select for diffs]
Modified Wed May 28 09:12:21 2003 UTC (21 years, 9 months ago) by bh
Original Path: trunk/thuban/Thuban/UI/mainwindow.py
File length: 38297 byte(s)
Diff to previous 1076 , to selected 713
(_can_unjoin): Add doc-string and cope
with layers that don't have shapestores, i.e. raster layers.


Revision 1076 - (view) (annotate) - [select for diffs]
Modified Wed May 28 08:25:12 2003 UTC (21 years, 9 months ago) by frank
Original Path: trunk/thuban/Thuban/UI/mainwindow.py
File length: 37986 byte(s)
Diff to previous 1074 , to selected 713
(MainWindow.TableShow) Added wxDEFAULT_DIALOG_STYLE to show table dialog styles.


Revision 1074 - (view) (annotate) - [select for diffs]
Modified Tue May 27 17:39:43 2003 UTC (21 years, 9 months ago) by bh
Original Path: trunk/thuban/Thuban/UI/mainwindow.py
File length: 37877 byte(s)
Diff to previous 1072 , to selected 713
* Thuban/UI/mainwindow.py (MainWindow.delegated_messages): Also
delegate SelectedLayer.
(MainWindow.LayerUnjoinTable): Implement.
(_can_unjoin): New. Helper function for the sensitivity of the
layer/unjoin command.

* Thuban/Model/data.py (ShapefileStore.OrigShapeStore)
(DerivedShapeStore.OrigShapeStore): New. Return the original
shapestore. Used to figure out how to unjoin.
(DerivedShapeStore.Shapefile): Fix a typo.


Revision 1072 - (view) (annotate) - [select for diffs]
Modified Tue May 27 16:47:48 2003 UTC (21 years, 9 months ago) by bh
Original Path: trunk/thuban/Thuban/UI/mainwindow.py
File length: 37525 byte(s)
Diff to previous 1070 , to selected 713
* Thuban/UI/join.py (JoinDialog): Extend to handle layer joins as
well
(JoinDialog.__init__): Use the layer parameter and only build the
left choice when a layer is given
(JoinDialog.OnJoin): Handle layer joins as well
(JoinDialog.OnLeftTable, JoinDialog.OnRightTable): Handle the case
that the user selects the "Select..." item. The sensitivitly
updating is now in update_sensitivity
(JoinDialog.y): New method to refactor the sensitivity update of
the join button into its own method.

* Thuban/UI/mainwindow.py (MainWindow.LayerJoinTable): Implement.


Revision 1070 - (view) (annotate) - [select for diffs]
Modified Tue May 27 15:09:31 2003 UTC (21 years, 9 months ago) by bh
Original Path: trunk/thuban/Thuban/UI/mainwindow.py
File length: 37310 byte(s)
Diff to previous 1068 , to selected 713
* Thuban/UI/mainwindow.py (table_close command): Make it sensitive
iff there are unreferenced tables in the session


Revision 1068 - (view) (annotate) - [select for diffs]
Modified Tue May 27 15:02:37 2003 UTC (21 years, 9 months ago) by bh
Original Path: trunk/thuban/Thuban/UI/mainwindow.py
File length: 37231 byte(s)
Diff to previous 1056 , to selected 713
* Thuban/Model/messages.py (TABLE_REMOVED): New message.

* Thuban/Model/session.py (Session.UnreferencedTables): New method
to return tables that are not referenced by other tables or shape
stores and can be removed.
(Session.RemoveTable): Issue a TABLE_REMOVED message after
removing the table

* Thuban/UI/mainwindow.py: Remove unused imports
(MainWindow.TableClose): Implement.

* Thuban/UI/tableview.py (TableFrame.__init__): Subscribe to some
messages so that the frame will be automatically closed when a new
session is opened or the table is removed.
(TableFrame.OnClose): Unsubscribe the Subscriptions made in
__init__
(TableFrame.close_on_session_replaced)
(TableFrame.close_on_table_removed): New. Subscribers that close
the window

* test/test_session.py (TestSessionMessages.test_remove_table)
(TestSessionSimple.test_remove_table): Move the test to
TestSessionSimple and add test for the TABLE_REMOVED message
(TestSessionBase.setUp): Also subscribe to TABLE_REMOVED
(TestSessionSimple.test_unreferenced_tables) New. Test for the
UnreferencedTables method.
(UnreferencedTablesTests): New. Class with some more sophisticated
tests for UnreferencedTables.


Revision 1056 - (view) (annotate) - [select for diffs]
Modified Tue May 27 11:29:46 2003 UTC (21 years, 9 months ago) by frank
Original Path: trunk/thuban/Thuban/UI/mainwindow.py
File length: 36892 byte(s)
Diff to previous 1054 , to selected 713
(MainWindow.OnClose): Explicitly destroy all dialogs in the dialogs
dictionary and the canvas.


Revision 1054 - (view) (annotate) - [select for diffs]
Modified Tue May 27 10:38:16 2003 UTC (21 years, 9 months ago) by bh
Original Path: trunk/thuban/Thuban/UI/mainwindow.py
File length: 36782 byte(s)
Diff to previous 1052 , to selected 713
(MainWindow.ShowTableView): New. Open a
tableview dialog
(MainWindow.TableShow): Use ShowTableView to open the dialogs.
Also, don't use the table's titles as the dialog names. The titles
aren't guaranteed to be unique.
(MainWindow.TableOpen): Open a table view dialog after opening the
table


Revision 1052 - (view) (annotate) - [select for diffs]
Modified Tue May 27 09:34:28 2003 UTC (21 years, 9 months ago) by bh
Original Path: trunk/thuban/Thuban/UI/mainwindow.py
File length: 36815 byte(s)
Diff to previous 1037 , to selected 713
Remove the Table/Hide menu item. Its
effect can be achieved by simply closing the window showing the
table.
(MainWindow.TableHide): Removed.
(main_menu): Removed "table_hide"


Revision 1037 - (view) (annotate) - [select for diffs]
Modified Mon May 26 17:30:43 2003 UTC (21 years, 9 months ago) by bh
Original Path: trunk/thuban/Thuban/UI/mainwindow.py
File length: 36953 byte(s)
Diff to previous 1035 , to selected 713
(MainWindow.TableOpen): Real
implementation. Mark parts of the file format strings for
localization.


Revision 1035 - (view) (annotate) - [select for diffs]
Modified Mon May 26 17:03:08 2003 UTC (21 years, 9 months ago) by jan
Original Path: trunk/thuban/Thuban/UI/mainwindow.py
File length: 36985 byte(s)
Diff to previous 1031 , to selected 713
Replace the true/false of wxWindows by True/False of Python 2.2.1.


Revision 1031 - (view) (annotate) - [select for diffs]
Modified Mon May 26 15:33:02 2003 UTC (21 years, 9 months ago) by jan
Original Path: trunk/thuban/Thuban/UI/mainwindow.py
File length: 36985 byte(s)
Diff to previous 1023 , to selected 713
(MainWindow.TableShow): Make the dialog resizeable and increase its
initial size.


Revision 1023 - (view) (annotate) - [select for diffs]
Modified Fri May 23 14:20:16 2003 UTC (21 years, 9 months ago) by jan
Original Path: trunk/thuban/Thuban/UI/mainwindow.py
File length: 36905 byte(s)
Diff to previous 1014 , to selected 713
(MainWindow.LayerShowTable): Prefix the table window with 'Layer Table:'
instead of 'Table:'.


Revision 1014 - (view) (annotate) - [select for diffs]
Modified Fri May 23 09:26:23 2003 UTC (21 years, 9 months ago) by jan
Original Path: trunk/thuban/Thuban/UI/mainwindow.py
File length: 36709 byte(s)
Diff to previous 1001 , to selected 713
(MainWindow.TableShow): A very coarse implementation that still needs work.


Revision 1001 - (view) (annotate) - [select for diffs]
Modified Thu May 22 19:40:27 2003 UTC (21 years, 9 months ago) by frank
Original Path: trunk/thuban/Thuban/UI/mainwindow.py
File length: 35253 byte(s)
Diff to previous 974 , to selected 713
(MainWindow.TableJoin): Removed print.


Revision 974 - (view) (annotate) - [select for diffs]
Modified Wed May 21 17:39:43 2003 UTC (21 years, 9 months ago) by jonathan
Original Path: trunk/thuban/Thuban/UI/mainwindow.py
File length: 35317 byte(s)
Diff to previous 963 , to selected 713
(MainWindow.OnClose): Call DockFrame.OnClose, not DockFrame._OnClose.


Revision 963 - (view) (annotate) - [select for diffs]
Modified Wed May 21 17:23:53 2003 UTC (21 years, 9 months ago) by jonathan
Original Path: trunk/thuban/Thuban/UI/mainwindow.py
File length: 35318 byte(s)
Diff to previous 951 , to selected 713
(MainWindow.AddLayer): Move OpenShapefile
        into try block. AddLayer doesn't throw any exceptions anymore.
(MainWindow.AddRasterLayer): Move constructor of RasterLayer into
        try block.


Revision 951 - (view) (annotate) - [select for diffs]
Modified Wed May 21 14:20:32 2003 UTC (21 years, 9 months ago) by frank
Original Path: trunk/thuban/Thuban/UI/mainwindow.py
File length: 35306 byte(s)
Diff to previous 937 , to selected 713
(MainWindow): Renamed _OnClose() back to OnClose() to keep in sync
with extensions. Internally Thuban still uses "underscored" names.


Revision 937 - (view) (annotate) - [select for diffs]
Modified Tue May 20 15:24:51 2003 UTC (21 years, 9 months ago) by jonathan
Original Path: trunk/thuban/Thuban/UI/mainwindow.py
File length: 35308 byte(s)
Diff to previous 923 , to selected 713
(MainWindow.NewSession, MainWindow.OpenSession):
        Don't proceed with an action if the
        user chooses Cancel when they are asked to save changes.
(MainWindow.AddRasterLayer): New. Open a dialog to allow the
        user to select an image file. Create a new RasterLayer and add
        it to the map.


Revision 923 - (view) (annotate) - [select for diffs]
Modified Mon May 19 09:12:25 2003 UTC (21 years, 9 months ago) by frank
Original Path: trunk/thuban/Thuban/UI/mainwindow.py
File length: 34112 byte(s)
Diff to previous 911 , to selected 713
Extended version information: Display Thuban, wxPython and Python version.


Revision 911 - (view) (annotate) - [select for diffs]
Modified Fri May 16 16:24:17 2003 UTC (21 years, 9 months ago) by frank
Original Path: trunk/thuban/Thuban/UI/mainwindow.py
File length: 33720 byte(s)
Diff to previous 879 , to selected 713
(MainWindow.ExportMap()): New. Added also new method_command to call
	ExportMap, with platform dependency (only __WXMSW__)


Revision 879 - (view) (annotate) - [select for diffs]
Modified Fri May 9 16:33:10 2003 UTC (21 years, 10 months ago) by jonathan
Original Path: trunk/thuban/Thuban/UI/mainwindow.py
File length: 33413 byte(s)
Diff to previous 829 , to selected 713
Add support for the Join Dialog. Added a Table menu and associated method calls.
(MainWindow.choose_color): Removed. No longer needed.


Revision 829 - (view) (annotate) - [select for diffs]
Modified Tue May 6 12:06:38 2003 UTC (21 years, 10 months ago) by jonathan
Original Path: trunk/thuban/Thuban/UI/mainwindow.py
File length: 31869 byte(s)
Diff to previous 821 , to selected 713
Added new "Full selection extent" menu option.
(MainWindow.has_selected_shapes): New. Returns true if there are
        any selected shapes.
(MainWindow.FullSelectionExtent): New. Calls
        MapCanvas.FitSelectedToWindow() when the user selects the menu option.
(_has_selected_shapes): New. Returns true if there are any selected shapes.


Revision 821 - (view) (annotate) - [select for diffs]
Modified Mon May 5 18:20:15 2003 UTC (21 years, 10 months ago) by jonathan
Original Path: trunk/thuban/Thuban/UI/mainwindow.py
File length: 31069 byte(s)
Diff to previous 815 , to selected 713
Added new "Full layer extent" menu option.
(MainWindow.FullLayerExtent): New. Calls MapCanvas.FitLayerToWindow()
        when the user selects the menu option.


Revision 815 - (view) (annotate) - [select for diffs]
Modified Mon May 5 15:04:57 2003 UTC (21 years, 10 months ago) by jonathan
Original Path: trunk/thuban/Thuban/UI/mainwindow.py
File length: 30758 byte(s)
Diff to previous 796 , to selected 713
Add "..." to menu items that will open new dialogs.


Revision 796 - (view) (annotate) - [select for diffs]
Modified Wed Apr 30 17:01:18 2003 UTC (21 years, 10 months ago) by jonathan
Original Path: trunk/thuban/Thuban/UI/mainwindow.py
File length: 30763 byte(s)
Diff to previous 787 , to selected 713
Move menu item map_rename up.


Revision 787 - (view) (annotate) - [select for diffs]
Modified Wed Apr 30 10:57:24 2003 UTC (21 years, 10 months ago) by bh
Original Path: trunk/thuban/Thuban/UI/mainwindow.py
File length: 30817 byte(s)
Diff to previous 768 , to selected 713
(MainWindow.identify_view_on_demand): Do
not pop up the dialog if the selection becomes empty (this could
happen if e.g. a new selection is opened while the identify tool
is active and dialog had been closed)


Revision 768 - (view) (annotate) - [select for diffs]
Modified Tue Apr 29 13:03:59 2003 UTC (21 years, 10 months ago) by jonathan
Original Path: trunk/thuban/Thuban/UI/mainwindow.py
File length: 30256 byte(s)
Diff to previous 759 , to selected 713
(MainWindow.SetMap): Look up the
        legend dialog box and tell it to change its map to the one
        supplied to SetMap(). Fixes RTbug #1770.


Revision 759 - (view) (annotate) - [select for diffs]
Modified Tue Apr 29 09:01:35 2003 UTC (21 years, 10 months ago) by jonathan
Original Path: trunk/thuban/Thuban/UI/mainwindow.py
File length: 30250 byte(s)
Diff to previous 750 , to selected 713
(MainWindow.SaveSessionAs): Dialog should be of type wxSAVE and
        should verify overwriting a file.


Revision 750 - (view) (annotate) - [select for diffs]
Modified Fri Apr 25 14:22:52 2003 UTC (21 years, 10 months ago) by jonathan
Original Path: trunk/thuban/Thuban/UI/mainwindow.py
File length: 30231 byte(s)
Diff to previous 729 , to selected 713
(MainWindow.MapProjection): Set the dialog title to include the map's title.
(MainWindow.LayerProjection): Set the dialog title to include the layer's title.


Revision 729 - (view) (annotate) - [select for diffs]
Modified Thu Apr 24 16:06:51 2003 UTC (21 years, 10 months ago) by jonathan
Original Path: trunk/thuban/Thuban/UI/mainwindow.py
File length: 30105 byte(s)
Diff to previous 723 , to selected 713
Add a Projection option under the layer menu.
(MainWindow.LayerProjection): New. Open up a projection window for a layer.


Revision 723 - (view) (annotate) - [select for diffs]
Modified Thu Apr 24 15:31:53 2003 UTC (21 years, 10 months ago) by bh
Original Path: trunk/thuban/Thuban/UI/mainwindow.py
File length: 29517 byte(s)
Diff to previous 713
First step towards table management. Introduce a simple data
abstraction so that we replace the data a layer uses more easily
in the next step.

* Thuban/Model/data.py: New file with a simple data abstraction
that bundles shapefile and dbffile into one object.

* Thuban/Model/session.py (Session.OpenShapefile): New method to
open shapefiles and return a shape store object

* Thuban/Model/layer.py (Layer.__init__): Pass the data as a store
object instead of a shapefile filename. This introduces a new
instance variable store holding the datastore. For intermediate
backwards compatibility keep the old instance variables.
(open_shapefile): Removed. No longer needed with the shape store.
(Layer.SetShapeStore, Layer.ShapeStore): New methods to set and
get the shape store used by a layer.
(Layer.Destroy): No need to explicitly destroy the shapefile or
table anymore.

* Thuban/UI/mainwindow.py (MainWindow.AddLayer)
(MainWindow.AddLayer): Use the session's OpenShapefile method to
open shapefiles

* Thuban/Model/load.py (ProcessSession.start_layer): Use the
session's OpenShapefile method to open shapefiles

* test/test_classification.py
(TestClassification.test_classification): Use the session's
OpenShapefile method to open shapefiles and build the filename in
a more platform independed way

* test/test_layer.py (TestLayer.setUp, TestLayer.tearDown):
Implement to have a session to use in the tests
(TestLayer.test_arc_layer, TestLayer.test_polygon_layer)
(TestLayer.test_point_layer, TestLayer.test_empty_layer): Use the
session's OpenShapefile method to open shapefiles
(TestLayerLegend.setUp): Instantiate a session so that we can use
it to open shapefiles.
(TestLayerLegend.tearDown): Make sure that all references to
layers and session are removed otherwise we may get a resource
leak

* test/test_map.py (TestMapAddLayer.test_add_layer)
(TestMapWithContents.setUp): Instantiate a session so that we can
use it to open shapefiles.
(TestMapWithContents.tearDown): Make sure that all references to
layers, maps and sessions are removed otherwise we may get a
resource leak
("__main__"): use support.run_tests() so that more info about
uncollected garbage is printed

* test/test_save.py (SaveSessionTest.testSingleLayer): Use the
session's OpenShapefile method to open shapefiles
("__main__"): use support.run_tests() so that more info about
uncollected garbage is printed

* test/test_selection.py (TestSelection.tearDown): Make sure that
all references to the session and the selection are removed
otherwise we may get a resource leak
(TestSelection.get_layer): Instantiate a session so that we can
use it to open shapefiles.
("__main__"): use support.run_tests() so that more info about
uncollected garbage is printed

* test/test_session.py (TestSessionBase.tearDown)
(TestSessionWithContent.tearDown): Make sure that all references
to the session and layers are removed otherwise we may get a
resource leak
(TestSessionWithContent.setUp): Use the session's OpenShapefile
method to open shapefiles


Revision 713 - (view) (annotate) - [selected]
Modified Wed Apr 23 08:46:54 2003 UTC (21 years, 10 months ago) by jonathan
Original Path: trunk/thuban/Thuban/UI/mainwindow.py
File length: 29449 byte(s)
Diff to previous 704
(MainWindow.Projection): Use new projection dialog.


Revision 704 - (view) (annotate) - [select for diffs]
Modified Tue Apr 22 16:55:50 2003 UTC (21 years, 10 months ago) by bh
Original Path: trunk/thuban/Thuban/UI/mainwindow.py
File length: 29737 byte(s)
Diff to previous 653 , to selected 713
Remove some unused imports and global
constants


Revision 653 - (view) (annotate) - [select for diffs]
Modified Fri Apr 11 14:28:29 2003 UTC (21 years, 11 months ago) by jonathan
Original Path: trunk/thuban/Thuban/UI/mainwindow.py
File length: 30017 byte(s)
Diff to previous 640 , to selected 713
Added new menu item and associated code to open a dialog to rename the map.
(MainWindow): Use new resource class to import bitmaps.


Revision 640 - (view) (annotate) - [select for diffs]
Modified Thu Apr 10 14:36:08 2003 UTC (21 years, 11 months ago) by jonathan
Original Path: trunk/thuban/Thuban/UI/mainwindow.py
File length: 29411 byte(s)
Diff to previous 633 , to selected 713
MainWindow.OpenClassifier renamed to
MainWindow.OpenLayerProperties. MainWindow.LayerEditProperties
renamed to MainWindow.LayerEditProperties.
(MainWindow.ToggleLegend): Don't include map name in legend title.
(MainWindow.SetMap): Added the map name to the window title.
(MainWindow.LayerFillColor, MainWindow.LayerTransparentFill,
        MainWindow.LayerOutlineColor, MainWindow.LayerNoOutline): Removed.
        Functionality is found in the layer properties dialog.


Revision 633 - (view) (annotate) - [select for diffs]
Modified Wed Apr 9 10:11:07 2003 UTC (21 years, 11 months ago) by jonathan
Original Path: trunk/thuban/Thuban/UI/mainwindow.py
File length: 31191 byte(s)
Diff to previous 624 , to selected 713
Import just the Classifier class.


Revision 624 - (view) (annotate) - [select for diffs]
Modified Mon Apr 7 13:34:54 2003 UTC (21 years, 11 months ago) by bh
Original Path: trunk/thuban/Thuban/UI/mainwindow.py
File length: 31176 byte(s)
Diff to previous 622 , to selected 713
(main_menu): Move the toggle_legend item
to the map module


Revision 622 - (view) (annotate) - [select for diffs]
Modified Mon Apr 7 10:54:32 2003 UTC (21 years, 11 months ago) by bh
Original Path: trunk/thuban/Thuban/UI/mainwindow.py
File length: 31146 byte(s)
Diff to previous 621 , to selected 713
(MainWindow.ShowSessionTree): Removed in
favor of ToggleSessionTree
(MainWindow.ToggleSessionTree): New method to toggle visibility of
the session tree.
(MainWindow.SessionTreeShown): New method to return whether the
session tree is currently shown.
(MainWindow.ToggleLegend): New method to toggle visibility of the
legend
(MainWindow.ShowLegend): Implement in terms of ToggleLegend and
LegendShown
(MainWindow.LegendShown): New method to return whether the legend
is currently shown.
(_method_command): Add checked parameter so we can define check
menu items
(_has_tree_window_shown, _has_legend_shown): Use the appropriate
mainwindow methods.
(show_session_tree, show_legend commands): Removed.
(toggle_session_tree, toggle_legend commands): New commands to
toggle the visibility of the dialogs


Revision 621 - (view) (annotate) - [select for diffs]
Modified Mon Apr 7 10:14:50 2003 UTC (21 years, 11 months ago) by jonathan
Original Path: trunk/thuban/Thuban/UI/mainwindow.py
File length: 30512 byte(s)
Diff to previous 616 , to selected 713
Use False instead of false.
(MainWindow.ShowLegend): Remove unnecessary switch parameter.


Revision 616 - (view) (annotate) - [select for diffs]
Modified Mon Apr 7 08:57:38 2003 UTC (21 years, 11 months ago) by jonathan
Original Path: trunk/thuban/Thuban/UI/mainwindow.py
File length: 30524 byte(s)
Diff to previous 610 , to selected 713
Put "Show Legend" and "Show Session Tree" into the same group.


Revision 610 - (view) (annotate) - [select for diffs]
Modified Fri Apr 4 13:56:59 2003 UTC (21 years, 11 months ago) by jonathan
Original Path: trunk/thuban/Thuban/UI/mainwindow.py
File length: 30540 byte(s)
Diff to previous 580 , to selected 713
Rename Color.None to Color.Transparent.


Revision 580 - (view) (annotate) - [select for diffs]
Modified Mon Mar 31 18:32:22 2003 UTC (21 years, 11 months ago) by jonathan
Original Path: trunk/thuban/Thuban/UI/mainwindow.py
File length: 30526 byte(s)
Diff to previous 573 , to selected 713
Renamed OnClose to _OnClose for
        symmetry with other such methods.
(MainWindow.ShowLegend): Show the legend docked by default.


Revision 573 - (view) (annotate) - [select for diffs]
Modified Fri Mar 28 17:07:06 2003 UTC (21 years, 11 months ago) by jonathan
Original Path: trunk/thuban/Thuban/UI/mainwindow.py
File length: 30454 byte(s)
Diff to previous 563 , to selected 713
Removed legend specific code and replaced it with calls to the new dock code.


Revision 563 - (view) (annotate) - [select for diffs]
Modified Wed Mar 26 11:07:02 2003 UTC (21 years, 11 months ago) by jonathan
Original Path: trunk/thuban/Thuban/UI/mainwindow.py
File length: 32852 byte(s)
Diff to previous 550 , to selected 713
Added sash windows to the main window and supporting functions for
manipulating the sashes.
(MainWindow.ShowLegend): Create a DockableWindow with the LegendPanel as the
contents.


Revision 550 - (view) (annotate) - [select for diffs]
Modified Thu Mar 20 09:45:19 2003 UTC (21 years, 11 months ago) by jonathan
Original Path: trunk/thuban/Thuban/UI/mainwindow.py
File length: 29818 byte(s)
Diff to previous 535 , to selected 713
New code to open the legend.


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/mainwindow.py
File length: 29197 byte(s)
Diff to previous 517 , to selected 713
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 517 - (view) (annotate) - [select for diffs]
Modified Tue Mar 11 17:28:39 2003 UTC (22 years ago) by jonathan
Original Path: trunk/thuban/Thuban/UI/mainwindow.py
File length: 27452 byte(s)
Diff to previous 512 , to selected 713
About window shows version number.


Revision 512 - (view) (annotate) - [select for diffs]
Modified Tue Mar 11 16:32:39 2003 UTC (22 years ago) by jonathan
Original Path: trunk/thuban/Thuban/UI/mainwindow.py
File length: 27188 byte(s)
Diff to previous 502 , to selected 713
Use True instead of true.


Revision 502 - (view) (annotate) - [select for diffs]
Modified Mon Mar 10 15:11:53 2003 UTC (22 years ago) by jonathan
Original Path: trunk/thuban/Thuban/UI/mainwindow.py
File length: 27188 byte(s)
Diff to previous 487 , to selected 713
(MainWindow.prepare_new_session): Call Close() instead of Shutdown().


Revision 487 - (view) (annotate) - [select for diffs]
Modified Fri Mar 7 18:21:03 2003 UTC (22 years ago) by jonathan
Original Path: trunk/thuban/Thuban/UI/mainwindow.py
File length: 27191 byte(s)
Diff to previous 469 , to selected 713
(MainWindow.prepare_new_session):
        Shuts down open dialogs. Used when a new session is created
        or a session is opened.
(MainWindow.SaveSession): Should only call application.SaveSession()
        if we don't call SaveSessionAs first.
(MainWindow.Classify): Allow different classifier dialogs for
        different layers.


Revision 469 - (view) (annotate) - [select for diffs]
Modified Wed Mar 5 18:19:25 2003 UTC (22 years ago) by jonathan
Original Path: trunk/thuban/Thuban/UI/mainwindow.py
File length: 26555 byte(s)
Diff to previous 450 , to selected 713
Function name changes.


Revision 450 - (view) (annotate) - [select for diffs]
Modified Tue Mar 4 10:33:28 2003 UTC (22 years ago) by jonathan
Original Path: trunk/thuban/Thuban/UI/mainwindow.py
File length: 26549 byte(s)
Diff to previous 431 , to selected 713
Use Layer.GetClassification() since the class attribute __classification is
now private.


Revision 431 - (view) (annotate) - [select for diffs]
Modified Mon Feb 24 18:47:21 2003 UTC (22 years ago) by jonathan
Original Path: trunk/thuban/Thuban/UI/mainwindow.py
File length: 26517 byte(s)
Diff to previous 393 , to selected 713
(MainWindow.OpenSession,
        MainWindow.SaveSessionAs): Text string changes so the dialogs
        have more meaningful titles.


Revision 393 - (view) (annotate) - [select for diffs]
Modified Mon Feb 10 15:26:54 2003 UTC (22 years ago) by jonathan
Original Path: trunk/thuban/Thuban/UI/mainwindow.py
File length: 26539 byte(s)
Diff to previous 374 , to selected 713
* Thuban/UI/mainwindow.py (MainWindow): Use the SetDefault*()
        methods of the Classification class.


Revision 374 - (view) (annotate) - [select for diffs]
Modified Mon Jan 27 14:20:02 2003 UTC (22 years, 1 month ago) by jan
Original Path: trunk/thuban/Thuban/UI/mainwindow.py
File length: 26451 byte(s)
Diff to previous 363 , to selected 713
Replace user string by _() for i18n.


Revision 363 - (view) (annotate) - [select for diffs]
Modified Mon Jan 27 11:40:13 2003 UTC (22 years, 1 month ago) by jonathan
Original Path: trunk/thuban/Thuban/UI/mainwindow.py
File length: 26218 byte(s)
Diff to previous 357 , to selected 713
added 'Classify' option in 'Layer' menu


Revision 357 - (view) (annotate) - [select for diffs]
Modified Mon Dec 9 10:32:27 2002 UTC (22 years, 3 months ago) by bh
Original Path: trunk/thuban/Thuban/UI/mainwindow.py
File length: 25855 byte(s)
Diff to previous 351 , to selected 713
(MainWindow.update_command_ui): If an
active tool's command turns insensitive, disable the tool.
(_tool_command): Use the new ToolCommand class


Revision 351 - (view) (annotate) - [select for diffs]
Modified Wed Nov 6 14:46:33 2002 UTC (22 years, 4 months ago) by frank
Original Path: trunk/thuban/Thuban/UI/mainwindow.py
File length: 25262 byte(s)
Diff to previous 346 , to selected 713
Altered the order of tools in the toolbar:
First now are all navigation tools (Zoom In/Out, Pan, Full Extent).


Revision 346 - (view) (annotate) - [select for diffs]
Modified Wed Oct 23 14:45:28 2002 UTC (22 years, 4 months ago) by bh
Original Path: trunk/thuban/Thuban/UI/mainwindow.py
File length: 25233 byte(s)
Diff to previous 321 , to selected 713
(MainWindow.About): Add 2002 to copyright notice.


Revision 321 - (view) (annotate) - [select for diffs]
Modified Fri Sep 13 14:21:48 2002 UTC (22 years, 5 months ago) by bh
Original Path: trunk/thuban/Thuban/UI/mainwindow.py
File length: 25227 byte(s)
Diff to previous 316 , to selected 713
(MainWindow.view_position_changed)
(MainWindow.set_position_text): Put the code that puts the text
with the mouse position into the status bar into the new method
set_position_text so that it can overwritten in derived classes.


Revision 316 - (view) (annotate) - [select for diffs]
Modified Thu Sep 12 18:46:01 2002 UTC (22 years, 5 months ago) by bh
Original Path: trunk/thuban/Thuban/UI/mainwindow.py
File length: 24899 byte(s)
Diff to previous 314 , to selected 713
(MainWindow.RunMessageBox): Center the
message box on the main window.


Revision 314 - (view) (annotate) - [select for diffs]
Modified Wed Sep 11 15:18:09 2002 UTC (22 years, 5 months ago) by bh
Original Path: trunk/thuban/Thuban/UI/mainwindow.py
File length: 24870 byte(s)
Diff to previous 312 , to selected 713
(MainWindow.build_menu): remove an incorrect comment.


Revision 312 - (view) (annotate) - [select for diffs]
Modified Wed Sep 11 13:59:37 2002 UTC (22 years, 5 months ago) by bh
Original Path: trunk/thuban/Thuban/UI/mainwindow.py
File length: 24929 byte(s)
Diff to previous 310 , to selected 713
Underline the 'x' in "Exit" instead of
the 'E' because it's less likely to interfere with other menu
entries.


Revision 310 - (view) (annotate) - [select for diffs]
Modified Tue Sep 10 16:45:22 2002 UTC (22 years, 6 months ago) by bh
Original Path: trunk/thuban/Thuban/UI/mainwindow.py
File length: 24929 byte(s)
Diff to previous 307 , to selected 713
(MainWindow.Map): New.
(_tool_command): Add sensitive parameter
(_has_visible_map): Sensitivity callback to tools and other
commands that require a visible map. Use it in map_zoom_in_tool,
map_zoom_out_tool, map_pan_tool, map_identify_tool, map_label_tool
and map_full_extent


Revision 307 - (view) (annotate) - [select for diffs]
Modified Fri Sep 6 10:01:16 2002 UTC (22 years, 6 months ago) by bh
Original Path: trunk/thuban/Thuban/UI/mainwindow.py
File length: 24164 byte(s)
Diff to previous 299 , to selected 713
(MainWindow.OnClose): Unsubscribe VIEW_POSITION


Revision 299 - (view) (annotate) - [select for diffs]
Modified Fri Aug 30 17:41:04 2002 UTC (22 years, 6 months ago) by bh
Original Path: trunk/thuban/Thuban/UI/mainwindow.py
File length: 23926 byte(s)
Diff to previous 281 , to selected 713
(MainWindow.CanRemoveLayer): New method
for the sensitivity  of remove layer.
(_can_remove_layer): New. Sensitivity callback for remove layer
(Command layer_remove): Use _can_remove_layer


Revision 281 - (view) (annotate) - [select for diffs]
Modified Mon Aug 26 18:16:36 2002 UTC (22 years, 6 months ago) by bh
Original Path: trunk/thuban/Thuban/UI/mainwindow.py
File length: 23429 byte(s)
Diff to previous 278 , to selected 713
* Thuban/UI/mainwindow.py: Refactor the context creation:
(MainWindow.Context): New method to return a context
(MainWindow.invoke_command, MainWindow.update_command_ui): Use the
new method


Revision 278 - (view) (annotate) - [select for diffs]
Modified Mon Aug 26 12:50:23 2002 UTC (22 years, 6 months ago) by bh
Original Path: trunk/thuban/Thuban/UI/mainwindow.py
File length: 23392 byte(s)
Diff to previous 270 , to selected 713
* Thuban/UI/tableview.py (TableGrid, LayerTableGrid): Split the
layer table specific code from TableGrid into LayerTableGrid
(TableFrame, LayerTableFrame): Split the layer table specific code
from TableFrame into LayerTableFrame

* Thuban/UI/mainwindow.py (MainWindow.LayerShowTable): Use the
LayerTableFrame


Revision 270 - (view) (annotate) - [select for diffs]
Modified Thu Aug 22 13:46:46 2002 UTC (22 years, 6 months ago) by bh
Original Path: trunk/thuban/Thuban/UI/mainwindow.py
File length: 23377 byte(s)
Diff to previous 264 , to selected 713
(make_check_current_tool)
(_tool_command): Put the code that generates the "checked"
callback into a separate function so that we can reuse it
elsewhere


Revision 264 - (view) (annotate) - [select for diffs]
Modified Fri Aug 16 17:06:38 2002 UTC (22 years, 6 months ago) by jan
Original Path: trunk/thuban/Thuban/UI/mainwindow.py
File length: 23013 byte(s)
Diff to previous 238 , to selected 713
menu item 'show session tree' now disable if tree window already open


Revision 238 - (view) (annotate) - [select for diffs]
Modified Wed Jul 24 10:19:46 2002 UTC (22 years, 7 months ago) by bh
Original Path: trunk/thuban/Thuban/UI/mainwindow.py
File length: 22803 byte(s)
Diff to previous 235 , to selected 713
(MainWindow.__init__): Turn the initial
window size into a parameter.


Revision 235 - (view) (annotate) - [select for diffs]
Modified Tue Jul 23 10:56:29 2002 UTC (22 years, 7 months ago) by bh
Original Path: trunk/thuban/Thuban/UI/mainwindow.py
File length: 22817 byte(s)
Diff to previous 227 , to selected 713
* Thuban/UI/mainwindow.py (MainWindow.__init__): Change the
parameter list a bit to allow setting the window title and the
initial message in the status bar. Update the callers.

* Thuban/UI/application.py (ThubanApplication.OnInit)
(ThubanApplication.CreateMainWindow): Put the mainwindow
instantiation into a separate method so that it can be overridden
by a subclass.


Revision 227 - (view) (annotate) - [select for diffs]
Modified Thu Jul 18 16:27:11 2002 UTC (22 years, 7 months ago) by bh
Original Path: trunk/thuban/Thuban/UI/mainwindow.py
File length: 22833 byte(s)
Diff to previous 222 , to selected 713
	* Thuban/UI/mainwindow.py (MainWindow.__init__): Add application
	as parameter and store it in an instance variable
	(MainWindow.invoke_command, MainWindow.update_command_ui)
	(MainWindow.save_modified_session, MainWindow.NewSession)
	(MainWindow.OpenSession, MainWindow.SaveSession)
	(MainWindow.SaveSessionAs, MainWindow.ShowSessionTree): Use self's
	application object.


Revision 222 - (view) (annotate) - [select for diffs]
Modified Thu Jul 18 13:03:08 2002 UTC (22 years, 7 months ago) by bh
Original Path: trunk/thuban/Thuban/UI/mainwindow.py
File length: 22637 byte(s)
Diff to previous 193 , to selected 713
	* Thuban/UI/mainwindow.py (MainWindow.invoke_command,
	MainWindow.update_command_ui): Pass an instance of the context
	class to the command's methods
	(check_current_tool, call_method): Handle the new context
	implementation


Revision 193 - (view) (annotate) - [select for diffs]
Modified Wed May 29 10:33:41 2002 UTC (22 years, 9 months ago) by bh
Original Path: trunk/thuban/Thuban/UI/mainwindow.py
File length: 22468 byte(s)
Diff to previous 191 , to selected 713
	* Thuban/UI/mainwindow.py (MainWindow.bind_command_events): Bind
	the events for a comnmand.
	(MainWindow.add_toolbar_command, MainWindow.add_menu_command):
	Call bind_command_events to bind the events. add_toolbar_command
	can now bind events too so that it's possible to have commands
	that are only available through the toolbar.
	(MainWindow.init_ids): New instance variable events_bound to keep
	track of for which commands events have been bound.


Revision 191 - (view) (annotate) - [select for diffs]
Modified Tue May 28 16:04:49 2002 UTC (22 years, 9 months ago) by bh
Original Path: trunk/thuban/Thuban/UI/mainwindow.py
File length: 22129 byte(s)
Diff to previous 188 , to selected 713
	* Thuban/UI/mainwindow.py (MainWindow.__init__, main_toolbar):
	Move the toolbar definition to the Menu instance main_toolbar.
	(MainWindow.build_toolbar): New method to build the toolbar
	similar to the build_menu methods


Revision 188 - (view) (annotate) - [select for diffs]
Modified Tue May 28 12:38:45 2002 UTC (22 years, 9 months ago) by bh
Original Path: trunk/thuban/Thuban/UI/mainwindow.py
File length: 21393 byte(s)
Diff to previous 185 , to selected 713
	* Thuban/UI/mainwindow.py: Remove some unused imports.
	(MainWindow.__init__, main_menu): move the definition of the main
	menu from __init__ to the Menu instance main_menu.
	(MainWindow.build_menu_bar, MainWindow.build_menu): New methods to
	build the menu bar and sub-menus from a menu description.


Revision 185 - (view) (annotate) - [select for diffs]
Modified Thu May 23 15:37:39 2002 UTC (22 years, 9 months ago) by bh
Original Path: trunk/thuban/Thuban/UI/mainwindow.py
File length: 20404 byte(s)
Diff to previous 181 , to selected 713
	* Thuban/UI/mainwindow.py (MainWindow.__init__): Fix spelling of
	layer_outline_color. Fix it in the definition of the command too.


Revision 181 - (view) (annotate) - [select for diffs]
Modified Wed May 22 13:42:04 2002 UTC (22 years, 9 months ago) by bh
Original Path: trunk/thuban/Thuban/UI/mainwindow.py
File length: 20404 byte(s)
Diff to previous 150 , to selected 713
	* Thuban/UI/mainwindow.py (MainWindow.RunMessageBox): Fix a typo
	in the docstring


Revision 150 - (view) (annotate) - [select for diffs]
Modified Tue May 7 16:55:38 2002 UTC (22 years, 10 months ago) by bh
Original Path: trunk/thuban/Thuban/UI/mainwindow.py
File length: 20404 byte(s)
Diff to previous 130 , to selected 713
	* Thuban/UI/mainwindow.py (MainWindow.__init__): Add the "Show
	Session Tree" command to the file menu.


Revision 130 - (view) (annotate) - [select for diffs]
Modified Fri May 3 14:50:18 2002 UTC (22 years, 10 months ago) by bh
Original Path: trunk/thuban/Thuban/UI/mainwindow.py
File length: 20278 byte(s)
Diff to previous 123 , to selected 713
	* Thuban/UI/mainwindow.py (MainWindow.SaveSessionAs,
	MainWindow.OpenSession): Change the file extension of the session
	files to .thuban


Revision 123 - (view) (annotate) - [select for diffs]
Modified Mon Apr 29 18:05:04 2002 UTC (22 years, 10 months ago) by bh
Original Path: trunk/thuban/Thuban/UI/mainwindow.py
File length: 20280 byte(s)
Diff to previous 119 , to selected 713
	* Thuban/UI/mainwindow.py (MainWindow.__init__): Subscribe to the
	canvas' VIEW_POSITION event
	(MainWindow.view_position_changed): Handler for VIEW_POSITION.
	Update the text in the status-bar accordingly.


Revision 119 - (view) (annotate) - [select for diffs]
Modified Fri Apr 26 09:30:41 2002 UTC (22 years, 10 months ago) by frank
Original Path: trunk/thuban/Thuban/UI/mainwindow.py
File length: 19966 byte(s)
Diff to previous 113 , to selected 713
AddLayer: Dialog title changed: s/session/data


Revision 113 - (view) (annotate) - [select for diffs]
Modified Sun Apr 21 17:38:50 2002 UTC (22 years, 10 months ago) by jan
Original Path: trunk/thuban/Thuban/UI/mainwindow.py
File length: 19969 byte(s)
Diff to previous 110 , to selected 713
removed old comments


Revision 110 - (view) (annotate) - [select for diffs]
Modified Sun Apr 21 17:28:16 2002 UTC (22 years, 10 months ago) by jan
Original Path: trunk/thuban/Thuban/UI/mainwindow.py
File length: 20109 byte(s)
Diff to previous 102 , to selected 713
added full-extent to toolbar; adapted proj4 call


Revision 102 - (view) (annotate) - [select for diffs]
Modified Fri Apr 19 14:22:25 2002 UTC (22 years, 10 months ago) by jan
Original Path: trunk/thuban/Thuban/UI/mainwindow.py
File length: 19733 byte(s)
Diff to previous 84 , to selected 713
launch save as dialog for saving new sessions


Revision 84 - (view) (annotate) - [select for diffs]
Modified Wed Apr 3 15:21:46 2002 UTC (22 years, 11 months ago) by bh
Original Path: trunk/thuban/Thuban/UI/mainwindow.py
File length: 19654 byte(s)
Diff to previous 58 , to selected 713
	* Thuban/UI/mainwindow.py (MainWindow.__init__): Move the "Add
	Layer" and "Remove Layer" commands from the layer menu to the map
	menu


Revision 58 - (view) (annotate) - [select for diffs]
Modified Thu Sep 13 13:56:23 2001 UTC (23 years, 5 months ago) by bh
Original Path: trunk/thuban/Thuban/UI/mainwindow.py
File length: 19642 byte(s)
Diff to previous 49 , to selected 713
	* Thuban/UI/mainwindow.py (MainWindow.NewSession): Use
	create_empty_session session to create the new, empty session.

	* Thuban/UI/mainwindow.py (MainWindow.__init__): Set the size of
	the tool bitmaps.
	(MainWindow.OnClose, MainWindow.save_modified_session): Separate
	the code that asks whether the session should be saved into the
	new method save_modified_session.
	(MainWindow.OpenSession, MainWindow.NewSession): Use the new
	method to save modified session here too.


Revision 49 - (view) (annotate) - [select for diffs]
Modified Mon Sep 10 16:03:59 2001 UTC (23 years, 6 months ago) by bh
Original Path: trunk/thuban/Thuban/UI/mainwindow.py
File length: 18896 byte(s)
Diff to previous 37 , to selected 713
(MainWindow.IdentifyTool): Popup the identify view immediately


Revision 37 - (view) (annotate) - [select for diffs]
Modified Thu Sep 6 17:16:54 2001 UTC (23 years, 6 months ago) by bh
Original Path: trunk/thuban/Thuban/UI/mainwindow.py
File length: 18847 byte(s)
Diff to previous 33 , to selected 713
	* Thuban/UI/mainwindow.py (MainWindow.current_layer):
	(MainWindow.has_selected_layer): Simply call the appropriate
	interactor method

	* Thuban/UI/mainwindow.py (MainWindow.__init__):
	(MainWindow.LayerShowTable):
	(MainWindow.identify_view_on_demand): Store the interactor in an
	instvar and use that reference instead of going through main.app

	* Thuban/UI/mainwindow.py (MainWindow.ShowSessionTree):
	* Thuban/UI/application.py (ThubanApplication.OnInit):
	* Thuban/UI/main.py (main): Create the session tree view in main
	with the new mainwindow method ShowSessionTree and not directly
	the application's OnInit method


Revision 33 - (view) (annotate) - [select for diffs]
Modified Thu Sep 6 15:31:31 2001 UTC (23 years, 6 months ago) by bh
Original Path: trunk/thuban/Thuban/UI/mainwindow.py
File length: 18717 byte(s)
Diff to previous 31 , to selected 713
	* Thuban/UI/mainwindow.py (MainWindow.LayerShowTable): Pass the
	layer to the tableview dialog.


Revision 31 - (view) (annotate) - [select for diffs]
Modified Thu Sep 6 13:32:39 2001 UTC (23 years, 6 months ago) by bh
Original Path: trunk/thuban/Thuban/UI/mainwindow.py
File length: 18709 byte(s)
Diff to previous 24 , to selected 713
	* Thuban/UI/mainwindow.py (MainWindow.init_dialogs):
	(MainWindow.add_dialog):
	(MainWindow.dialog_open):
	(MainWindow.remove_dialog):
	(MainWindow.get_open_dialog): New methods to maintain a dictionary
	of opened non-modal dialogs.

	(MainWindow.__init__): Initialize the new non-modal dictionary
	management code
	(MainWindow.LayerShowTable): maintain separate dialogs for each
	table using the non-modal dialog management code to only open a
	view once for each table.

	(MainWindow.IdentifyTool):
	(MainWindow.__init__):
	(MainWindow.identify_view_on_demand): Don't open the identify view
	in IdentifyTool anymore. This will be done automatically by the
	new method identify_view_on_demand which handles the
	SELECTED_SHAPE message so that the identify view will be opened on
	demand


Revision 24 - (view) (annotate) - [select for diffs]
Modified Wed Sep 5 13:35:46 2001 UTC (23 years, 6 months ago) by bh
Original Path: trunk/thuban/Thuban/UI/mainwindow.py
File length: 17082 byte(s)
Diff to previous 20 , to selected 713
New argument interactor to pass through to the MapCanvas


Revision 20 - (view) (annotate) - [select for diffs]
Modified Tue Sep 4 16:44:31 2001 UTC (23 years, 6 months ago) by bh
Original Path: trunk/thuban/Thuban/UI/mainwindow.py
File length: 17058 byte(s)
Diff to previous 18 , to selected 713
	* Thuban/UI/mainwindow.py (MainWindow.RunMessageBox): New method
	that runs a modal message box
	(MainWindow.OnClose): Use the new method
	(MainWindow.RemoveLayer): Just do nothing in case no layer is
	selected. The command should be grayed out anyway, so there's no
	need to pop up a message box.
	(MainWindow.AddLayer): Pop up a message box with an error message
	if the shape file can't be opened


Revision 18 - (view) (annotate) - [select for diffs]
Modified Mon Sep 3 16:25:09 2001 UTC (23 years, 6 months ago) by bh
Original Path: trunk/thuban/Thuban/UI/mainwindow.py
File length: 16816 byte(s)
Diff to previous 13 , to selected 713
* Thuban/UI/mainwindow.py (MainWindow.AddLayer): Fit the map to
the window when the first layer is added to the map.

* setup.py (ThubanInstall.run): Honor the build root (self.root)
when linking thuban.py to <prefix>/bin


Revision 13 - (view) (annotate) - [select for diffs]
Modified Fri Aug 31 15:33:42 2001 UTC (23 years, 6 months ago) by bh
Original Path: trunk/thuban/Thuban/UI/mainwindow.py
File length: 16570 byte(s)
Diff to previous 6 , to selected 713
	* Thuban/UI/mainwindow.py (MainWindow.update_command_ui): Call
	event.Check only if the command is actuall checkable.
	(MainWindow.__init__): Call the toolbar's Realize method to make
	sure that the items are actually shown


Revision 6 - (view) (annotate) - [select for diffs]
Added Tue Aug 28 15:41:52 2001 UTC (23 years, 6 months ago) by bh
Original Path: trunk/thuban/Thuban/UI/mainwindow.py
File length: 16440 byte(s)
Diff to selected 713
import all the source files


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