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

Diff of /branches/WIP-pyshapelib-bramz/Thuban/UI/identifyview.py

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1131 by frank, Thu Jun 5 13:27:01 2003 UTC revision 1194 by bh, Fri Jun 13 13:02:30 2003 UTC
# Line 1  Line 1 
1  # Copyright (c) 2001, 2002, 2003 by Intevation GmbH  # Copyright (c) 2001, 2002, 2003 by Intevation GmbH
2  # Authors:  # Authors:
3  # Bernhard Herzog <[email protected]>  # Bernhard Herzog <[email protected]>
4    # Frank Koormann <[email protected]>
5  #  #
6  # This program is free software under the GPL (>=v2)  # This program is free software under the GPL (>=v2)
7  # Read the file COPYING coming with Thuban for details.  # Read the file COPYING coming with Thuban for details.
# Line 40  class IdentifyView(NonModalDialog): Line 41  class IdentifyView(NonModalDialog):
41          NonModalDialog.__init__(self, parent, name, _("Identify Shape"))          NonModalDialog.__init__(self, parent, name, _("Identify Shape"))
42          parent.Subscribe(SHAPES_SELECTED, self.selected_shape)          parent.Subscribe(SHAPES_SELECTED, self.selected_shape)
43    
44          panel = wxPanel(self, -1, style = wxWANTS_CHARS)          top_box = wxBoxSizer(wxVERTICAL)
         self.list = IdentifyListCtrl(panel, -1)  
45          #self.list = IdentifyGridCtrl(panel)          #self.list = IdentifyGridCtrl(panel)
46            self.list = IdentifyListCtrl(self, -1)
47            self.list.SetSize(wxSize(305,200))
48            top_box.Add(self.list, 1, wxEXPAND|wxALL, 4)
49    
50            box = wxBoxSizer(wxHORIZONTAL)
51            box.Add(wxButton(self, wxID_CLOSE, _("Close")), 0, wxALL, 4)
52            top_box.Add(box, 0, wxALIGN_CENTER_HORIZONTAL|wxALL, 4)
53    
54            EVT_BUTTON(self, wxID_CLOSE, self.OnClose)
55    
56            self.SetAutoLayout(True)
57            self.SetSizer(top_box)
58            top_box.Fit(self)
59            top_box.SetSizeHints(self)
60    
61          sizer = wxBoxSizer(wxVERTICAL)          # Make sure to reflect the current selection.
62          sizer.Add(self.list, 1, wx.wxEXPAND| wx.wxALL, 0)          self.selected_shape(parent.SelectedLayer(), parent.SelectedShapes())
   
         self.SetSize(wxSize(300,200))  
         panel.SetAutoLayout(True)  
         panel.SetSizer(sizer)  
         sizer.Fit(panel)  
63    
64      def OnClose(self, event):      def OnClose(self, event):
65          self.parent.Unsubscribe(SHAPES_SELECTED, self.selected_shape)          self.parent.Unsubscribe(SHAPES_SELECTED, self.selected_shape)

Legend:
Removed from v.1131  
changed lines
  Added in v.1194

[email protected]
ViewVC Help
Powered by ViewVC 1.1.26