[GRASS-SVN] r37892 -
grass/branches/releasebranch_6_4/gui/wxpython/gui_modules
svn_grass at osgeo.org
svn_grass at osgeo.org
Mon Jun 15 14:30:01 EDT 2009
Author: martinl
Date: 2009-06-15 14:30:00 -0400 (Mon, 15 Jun 2009)
New Revision: 37892
Modified:
grass/branches/releasebranch_6_4/gui/wxpython/gui_modules/dbm.py
Log:
wxGUI/ATM: refresh button added
(merge from trunk, r37890)
Modified: grass/branches/releasebranch_6_4/gui/wxpython/gui_modules/dbm.py
===================================================================
--- grass/branches/releasebranch_6_4/gui/wxpython/gui_modules/dbm.py 2009-06-15 18:28:29 UTC (rev 37891)
+++ grass/branches/releasebranch_6_4/gui/wxpython/gui_modules/dbm.py 2009-06-15 18:30:00 UTC (rev 37892)
@@ -522,10 +522,14 @@
#
# buttons
#
- self.btnQuit = wx.Button(parent=self.panel, id=wx.ID_EXIT)
+ self.btnQuit = wx.Button(parent=self.panel, id=wx.ID_EXIT)
+ self.btnQuit.SetToolTipString(_("Close Attribute Table Manager"))
+ self.btnReload = wx.Button(parent=self.panel, id=wx.ID_REFRESH)
+ self.btnReload.SetToolTipString(_("Reload attribute data (selected layer only)"))
# events
- self.btnQuit.Bind(wx.EVT_BUTTON, self.OnCloseWindow)
+ self.btnQuit.Bind(wx.EVT_BUTTON, self.OnCloseWindow)
+ self.btnReload.Bind(wx.EVT_BUTTON, self.OnDataReload)
self.notebook.Bind(FN.EVT_FLATNOTEBOOK_PAGE_CHANGED, self.OnPageChanged)
self.Bind(FN.EVT_FLATNOTEBOOK_PAGE_CHANGED, self.OnLayerPageChanged, self.browsePage)
self.Bind(FN.EVT_FLATNOTEBOOK_PAGE_CHANGED, self.OnLayerPageChanged, self.manageTablePage)
@@ -933,13 +937,13 @@
# buttons
btnSizer = wx.BoxSizer(wx.HORIZONTAL)
+ btnSizer.Add(item=self.btnReload, proportion=1,
+ flag=wx.ALL | wx.ALIGN_RIGHT, border=5)
btnSizer.Add(item=self.btnQuit, proportion=1,
- flag=wx.ALL | wx.ALIGN_RIGHT | wx.SHAPED, border=5)
- # btnSizer.Add(item=self.btnApply,
- # flag=wx.ALL, border=5)
+ flag=wx.ALL | wx.ALIGN_RIGHT, border=5)
mainSizer.Add(item=self.notebook, proportion=1, flag=wx.EXPAND)
- mainSizer.Add(item=btnSizer, proportion=0, flag=wx.EXPAND | wx.ALL, border=5)
+ mainSizer.Add(item=btnSizer, flag=wx.ALIGN_RIGHT | wx.ALL, border=5)
self.panel.SetAutoLayout(True)
self.panel.SetSizer(mainSizer)
@@ -1657,8 +1661,10 @@
self.log.write(_("Number of loaded records: %d") % win.GetItemCount())
else:
self.log.write("")
+ self.btnReload.Enable()
else:
self.log.write("")
+ self.btnReload.Enable(False)
event.Skip()
More information about the grass-commit
mailing list