[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
gnue/designer/src MenuBar.py
From: |
Arturas Kriukovas |
Subject: |
gnue/designer/src MenuBar.py |
Date: |
Wed, 03 Jul 2002 09:20:39 -0400 |
CVSROOT: /home/cvs
Module name: gnue
Changes by: Arturas Kriukovas <address@hidden> 02/07/03 09:20:39
Modified files:
designer/src : MenuBar.py
Log message:
Strings prepared for i18n. Looks nice :)
CVSWeb URLs:
http://savannah.gnu.org/cgi-bin/viewcvs/gnue/designer/src/MenuBar.py.diff?cvsroot=OldCVS&tr1=1.21&tr2=1.22&r1=text&r2=text
Patches:
Index: gnue/designer/src/MenuBar.py
diff -c gnue/designer/src/MenuBar.py:1.21 gnue/designer/src/MenuBar.py:1.22
*** gnue/designer/src/MenuBar.py:1.21 Fri Jun 28 00:03:37 2002
--- gnue/designer/src/MenuBar.py Wed Jul 3 09:20:39 2002
***************
*** 75,100 ****
self._fileRecent = wxMenu()
self._fileConnect = wxMenu()
! self._file.AppendMenu(ID_NEW, "&New", self._fileNew,"Create a new
object")
! self._file.Append(ID_OPEN, "&Open...", "Open an existing object")
! self._file.AppendMenu(ID_OPEN_RECENT, "Open &Recent", self._fileRecent,
! "Open an existing object")
self._file.AppendSeparator()
! self._file.Append(ID_SAVE, "&Save", "Save the current object")
! self._file.Append(ID_SAVE_AS, "Save &As...",
! "Save the current form under a new name")
! self._file.Append(ID_SAVE_ALL, "Save A&ll",
! "Save all open objects")
self._file.AppendSeparator()
! self._file.AppendMenu(ID_CONNECT, "Connect &to", self._fileConnect,
! "Connect to a database")
self._file.AppendSeparator()
! self._file.Append(ID_RELOAD, "Reload",
! "Reload the current object as of its last save (abandoning any
changes)")
self._file.AppendSeparator()
! self._file.Append(ID_CLOSE, "&Close", "Close the current object")
self._file.AppendSeparator()
! self._file.Append(ID_EXIT, "E&xit", "Exit GNUe Designer")
EVT_MENU (frame, ID_NEW_WIZARD, frame._app.OnWizard)
--- 75,100 ----
self._fileRecent = wxMenu()
self._fileConnect = wxMenu()
! self._file.AppendMenu(ID_NEW, _("&New"), self._fileNew, _("Create a new
object"))
! self._file.Append(ID_OPEN, _("&Open..."), _("Open an existing object"))
! self._file.AppendMenu(ID_OPEN_RECENT, _("Open &Recent"),
self._fileRecent,
! _("Open an existing object"))
self._file.AppendSeparator()
! self._file.Append(ID_SAVE, _("&Save"), _("Save the current object"))
! self._file.Append(ID_SAVE_AS, _("Save &As..."),
! _("Save the current form under a new name"))
! self._file.Append(ID_SAVE_ALL, _("Save A&ll"),
! _("Save all open objects"))
self._file.AppendSeparator()
! self._file.AppendMenu(ID_CONNECT, _("Connect &to"), self._fileConnect,
! _("Connect to a database"))
self._file.AppendSeparator()
! self._file.Append(ID_RELOAD, _("Reload"),
! _("Reload the current object as of its last save (abandoning any
changes)"))
self._file.AppendSeparator()
! self._file.Append(ID_CLOSE, _("&Close"), _("Close the current object"))
self._file.AppendSeparator()
! self._file.Append(ID_EXIT, _("E&xit"), _("Exit GNUe Designer"))
EVT_MENU (frame, ID_NEW_WIZARD, frame._app.OnWizard)
***************
*** 115,152 ****
id = wxNewId()
frame._fileNewMap[id] = tool
self._fileNew.Append(id, '&%s' % tool.properties.nickname,
! 'Create a new %s' % string.lower(tool.properties.nickname))
EVT_MENU (frame, id, frame.OnNew)
! ## self._fileNew.Append(ID_NEW_FORM,'&Form', "Create a new form")
! ## self._fileNew.Append(ID_NEW_REPORT,'&Report', "Create a new report")
self._fileNew.AppendSeparator()
! self._fileNew.Append(ID_NEW_WIZARD,'from &Wizard...', \
! "Create a new object from a wizard")
# Build a connection list
frame.connectionMap = {}
for conn in frame.connections.getAllConnectionParameters().keys():
id = wxNewId()
! self._fileConnect.Append(id, conn, "Login to %s connection" % conn)
frame.connectionMap[id] = conn
EVT_MENU(frame, id, frame.OnConnectTo)
self._file.Enable(ID_RELOAD,0)
self._help = wxMenu()
! self._help.Append(ID_ABOUT, "&About...", "More information about GNUe
Designer")
EVT_MENU (frame, ID_ABOUT, frame._app.OnAbout)
self._edit = wxMenu()
! self._edit.Append(ID_CUT, "C&ut", "Cut the current object and move to
the clipboard")
! self._edit.Append(ID_COPY, "&Copy", "Copy the current object to the
clipboard")
! self._edit.Append(ID_PASTE, "&Paste", "Paste the current object on the
clipboard")
! self._edit.Append(ID_PASTE_SPECIAL, "Paste &Special...", "Paste the
current object on the clipboard with special attributes")
self._edit.AppendSeparator()
! self._edit.Append(ID_DELETE, "&Delete", "Delete the current object")
# TODO: Implement clipboard
self._edit.Enable(ID_CUT,0)
--- 115,152 ----
id = wxNewId()
frame._fileNewMap[id] = tool
self._fileNew.Append(id, '&%s' % tool.properties.nickname,
! _('Create a new %s') % string.lower(tool.properties.nickname))
EVT_MENU (frame, id, frame.OnNew)
! ## self._fileNew.Append(ID_NEW_FORM,_('&Form'), _("Create a new form"))
! ## self._fileNew.Append(ID_NEW_REPORT,_('&Report'), _("Create a new
report"))
self._fileNew.AppendSeparator()
! self._fileNew.Append(ID_NEW_WIZARD,_('from &Wizard...'), \
! _("Create a new object from a wizard"))
# Build a connection list
frame.connectionMap = {}
for conn in frame.connections.getAllConnectionParameters().keys():
id = wxNewId()
! self._fileConnect.Append(id, conn, _("Login to %s connection") % conn)
frame.connectionMap[id] = conn
EVT_MENU(frame, id, frame.OnConnectTo)
self._file.Enable(ID_RELOAD,0)
self._help = wxMenu()
! self._help.Append(ID_ABOUT, _("&About..."), _("More information about
GNUe Designer"))
EVT_MENU (frame, ID_ABOUT, frame._app.OnAbout)
self._edit = wxMenu()
! self._edit.Append(ID_CUT, _("C&ut"), _("Cut the current object and move
to the clipboard"))
! self._edit.Append(ID_COPY, _("&Copy"), _("Copy the current object to the
clipboard"))
! self._edit.Append(ID_PASTE, _("&Paste"), _("Paste the current object on
the clipboard"))
! self._edit.Append(ID_PASTE_SPECIAL, _("Paste &Special..."), _("Paste the
current object on the clipboard with special attributes"))
self._edit.AppendSeparator()
! self._edit.Append(ID_DELETE, _("&Delete"), _("Delete the current
object"))
# TODO: Implement clipboard
self._edit.Enable(ID_CUT,0)
***************
*** 158,178 ****
self._window = wxMenu()
self._debug = wxMenu()
! self._debug.Append(ID_RUN, '&Run', "Run the current form")
EVT_MENU (frame, ID_RUN, frame.OnDebugRun)
! self.Append(self._file, '&File')
! self.Append(self._edit, '&Edit')
! self.Append(self._debug, '&Debug')
! self.Append(self._window, '&Window')
! self.Append(self._help, '&Help')
def addTool(self, toolFrame, title):
toolFrame._wxMenuID = wxNewId()
toolFrame._menu = wxMenuItem(self._window, toolFrame._wxMenuID,
! '&%s' % title, "Show or hide the %s" % title, 1)
self._window.AppendItem(toolFrame._menu)
EVT_MENU(self._frame, toolFrame._wxMenuID, toolFrame.OnMenuSelected)
--- 158,178 ----
self._window = wxMenu()
self._debug = wxMenu()
! self._debug.Append(ID_RUN, _('&Run'), _("Run the current form"))
EVT_MENU (frame, ID_RUN, frame.OnDebugRun)
! self.Append(self._file, _('&File'))
! self.Append(self._edit, _('&Edit'))
! self.Append(self._debug, _('&Debug'))
! self.Append(self._window, _('&Window'))
! self.Append(self._help, _('&Help'))
def addTool(self, toolFrame, title):
toolFrame._wxMenuID = wxNewId()
toolFrame._menu = wxMenuItem(self._window, toolFrame._wxMenuID,
! '&%s' % title, _("Show or hide the %s") % title, 1)
self._window.AppendItem(toolFrame._menu)
EVT_MENU(self._frame, toolFrame._wxMenuID, toolFrame.OnMenuSelected)
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- gnue/designer/src MenuBar.py,
Arturas Kriukovas <=