[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
gnue/forms/src/uidrivers/wx UIdriver.py
From: |
Arturas Kriukovas |
Subject: |
gnue/forms/src/uidrivers/wx UIdriver.py |
Date: |
Fri, 10 May 2002 13:07:44 -0400 |
CVSROOT: /cvsroot/gnue
Module name: gnue
Changes by: Arturas Kriukovas <address@hidden> 02/05/10 13:07:44
Modified files:
forms/src/uidrivers/wx: UIdriver.py
Log message:
i18n changes.
CVSWeb URLs:
http://savannah.gnu.org/cgi-bin/viewcvs/gnue/gnue/forms/src/uidrivers/wx/UIdriver.py.diff?tr1=1.170&tr2=1.171&r1=text&r2=text
Patches:
Index: gnue/forms/src/uidrivers/wx/UIdriver.py
diff -c gnue/forms/src/uidrivers/wx/UIdriver.py:1.170
gnue/forms/src/uidrivers/wx/UIdriver.py:1.171
*** gnue/forms/src/uidrivers/wx/UIdriver.py:1.170 Thu May 9 15:37:41 2002
--- gnue/forms/src/uidrivers/wx/UIdriver.py Fri May 10 13:07:44 2002
***************
*** 72,78 ****
global __wxApp
if not __wxApp:
! GDebug.printMesg(7,"WxApp initializing3")
__wxApp = GFwxApp(0)
return __wxApp
--- 72,78 ----
global __wxApp
if not __wxApp:
! GDebug.printMesg(7,"WxApp initializing")
__wxApp = GFwxApp(0)
return __wxApp
***************
*** 206,265 ****
initFont(self.statusBar,0)
fileMenu = wxMenu()
! fileMenu.Append( 100, "Save (F6)",_('Save all changes to
database.'))
EVT_MENU(self._wxapp, 100, lambda event, l=self:
l.dispatchEvent(GFEvent('requestCOMMIT')))
! fileMenu.Append( 102, "Clear Form(F11)",_('Clear Form'))
EVT_MENU(self._wxapp, 102, lambda event, l=self:
l.dispatchEvent(GFEvent('requestROLLBACK')))
fileMenu.AppendSeparator()
! fileMenu.Append( 104, "&Print",_('Perform print routine for this form.'))
EVT_MENU(self._wxapp, 104, lambda event, l=self:
l.dispatchEvent(GFEvent('requestPRINTOUT')))
fileMenu.AppendSeparator()
! fileMenu.Append( 101, "E&xit",_('Leave the application.'))
EVT_MENU(self._wxapp, 101, self.menuExitEvent)
editMenu = wxMenu()
! editMenu.Append(401, "Cut",_("Cut the selected text"))
EVT_MENU(self._wxapp, 401, lambda event, l=self:
l.dispatchEvent(GFEvent('requestCUT')))
! editMenu.Append(402, "Copy",_("Copy the selected text"))
EVT_MENU(self._wxapp, 402, lambda event, l=self:
l.dispatchEvent(GFEvent('requestCOPY')))
! editMenu.Append(403, "Paste",_("Paste text"))
EVT_MENU(self._wxapp, 403, lambda event, l=self:
l.dispatchEvent(GFEvent('requestPASTE')))
dataMenu = wxMenu()
! dataMenu.Append( 211, "First Record (Shft+Up)",_('Navigate to
first record in memory.'))
EVT_MENU(self._wxapp, 211, lambda event, l=self:
l.dispatchEvent(GFEvent('requestFIRSTRECORD')))
! dataMenu.Append( 202, "Previous Record (Up)",_('Navigate to
previous record in memory.'))
EVT_MENU(self._wxapp, 202, lambda event, l=self:
l.dispatchEvent(GFEvent('requestPREVRECORD')))
! dataMenu.Append( 201, "Next Record (Down)",_('Navigate to next
record in memory.'))
EVT_MENU(self._wxapp, 201, lambda event, l=self:
l.dispatchEvent(GFEvent('requestNEXTRECORD')))
! dataMenu.Append( 210, "Last Record (Shft+Down)",_('Navigate to last
record in memory.'))
EVT_MENU(self._wxapp, 210, lambda event, l=self:
l.dispatchEvent(GFEvent('requestLASTRECORD')))
! dataMenu.Append( 209, "Jump to Record... (F2)",_('Prompts for a
record number to which the system should jump.'))
EVT_MENU(self._wxapp, 209, _PROMPTFORRECORD)
! dataMenu.Append( 203, "New Record (F12)",_('Create a new
record for data input.'))
EVT_MENU(self._wxapp, 203, lambda event, l=self:
l.dispatchEvent(GFEvent('requestNEWRECORD')))
! dataMenu.Append( 204, "Mark Record for Delete (F5)",_('Mark record for
removal at next commit.'))
EVT_MENU(self._wxapp, 204, lambda event, l=self:
l.dispatchEvent(GFEvent('requestMARKFORDELETE')))
dataMenu.AppendSeparator()
! dataMenu.Append( 205, "Next Block (PgDn)",_('Navigate to
next data block.'))
EVT_MENU(self._wxapp, 205, lambda event, l=self:
l.dispatchEvent(GFEvent('requestNEXTBLOCK')))
! dataMenu.Append( 206, "Previous Block (PgUp)",_('Navigate to
previous data block.'))
EVT_MENU(self._wxapp, 206, lambda event, l=self:
l.dispatchEvent(GFEvent('requestPREVBLOCK')))
dataMenu.AppendSeparator()
! dataMenu.Append( 207, "Enter Query (F8)",_('Switch to input
query mask mode.'))
EVT_MENU(self._wxapp, 207, lambda event, l=self:
l.dispatchEvent(GFEvent('requestENTERQUERY')))
! dataMenu.Append( 208, "Execute Query (F9)", _('Execute query
using current mask.'))
EVT_MENU(self._wxapp, 208, lambda event, l=self:
l.dispatchEvent(GFEvent('requestEXECQUERY')))
helpMenu = wxMenu()
! helpMenu.Append( 300, "&About...", _('Display info about GNUe Forms.'))
EVT_MENU(self._wxapp, 300, lambda event, l=self:
l.dispatchEvent(GFEvent('requestABOUT')))
menuBar = wxMenuBar()
! menuBar.Append( fileMenu, "&File" )
! menuBar.Append( editMenu, "&Edit" )
! menuBar.Append( dataMenu, "&Data" )
! menuBar.Append( helpMenu, "&Help" )
self.mainWindow.SetMenuBar( menuBar );
--- 206,265 ----
initFont(self.statusBar,0)
fileMenu = wxMenu()
! fileMenu.Append( 100, _("Save (F6)"),_('Save all changes to
database.'))
EVT_MENU(self._wxapp, 100, lambda event, l=self:
l.dispatchEvent(GFEvent('requestCOMMIT')))
! fileMenu.Append( 102, _("Clear Form (F11))",_('Clear Form'))
EVT_MENU(self._wxapp, 102, lambda event, l=self:
l.dispatchEvent(GFEvent('requestROLLBACK')))
fileMenu.AppendSeparator()
! fileMenu.Append( 104, _("&Print"),_('Perform print routine for this
form.'))
EVT_MENU(self._wxapp, 104, lambda event, l=self:
l.dispatchEvent(GFEvent('requestPRINTOUT')))
fileMenu.AppendSeparator()
! fileMenu.Append( 101, _("E&xit"),_('Leave the application.'))
EVT_MENU(self._wxapp, 101, self.menuExitEvent)
editMenu = wxMenu()
! editMenu.Append(401, _("Cut"),_("Cut the selected text"))
EVT_MENU(self._wxapp, 401, lambda event, l=self:
l.dispatchEvent(GFEvent('requestCUT')))
! editMenu.Append(402, _("Copy"),_("Copy the selected text"))
EVT_MENU(self._wxapp, 402, lambda event, l=self:
l.dispatchEvent(GFEvent('requestCOPY')))
! editMenu.Append(403, _("Paste"),_("Paste text"))
EVT_MENU(self._wxapp, 403, lambda event, l=self:
l.dispatchEvent(GFEvent('requestPASTE')))
dataMenu = wxMenu()
! dataMenu.Append( 211, _("First Record (Shft+Up)"),_('Navigate to
first record in memory.'))
EVT_MENU(self._wxapp, 211, lambda event, l=self:
l.dispatchEvent(GFEvent('requestFIRSTRECORD')))
! dataMenu.Append( 202, _("Previous Record (Up)"),_('Navigate to
previous record in memory.'))
EVT_MENU(self._wxapp, 202, lambda event, l=self:
l.dispatchEvent(GFEvent('requestPREVRECORD')))
! dataMenu.Append( 201, _("Next Record (Down)"),_('Navigate to
next record in memory.'))
EVT_MENU(self._wxapp, 201, lambda event, l=self:
l.dispatchEvent(GFEvent('requestNEXTRECORD')))
! dataMenu.Append( 210, _("Last Record (Shft+Down)"),_('Navigate to last
record in memory.'))
EVT_MENU(self._wxapp, 210, lambda event, l=self:
l.dispatchEvent(GFEvent('requestLASTRECORD')))
! dataMenu.Append( 209, _("Jump to Record... (F2)"),_('Prompts for a
record number to which the system should jump.'))
EVT_MENU(self._wxapp, 209, _PROMPTFORRECORD)
! dataMenu.Append( 203, _("New Record (F12)"),_('Create a new
record for data input.'))
EVT_MENU(self._wxapp, 203, lambda event, l=self:
l.dispatchEvent(GFEvent('requestNEWRECORD')))
! dataMenu.Append( 204, _("Mark Record for Delete (F5)"),_('Mark record
for removal at next commit.'))
EVT_MENU(self._wxapp, 204, lambda event, l=self:
l.dispatchEvent(GFEvent('requestMARKFORDELETE')))
dataMenu.AppendSeparator()
! dataMenu.Append( 205, _("Next Block (PgDn)"),_('Navigate to
next data block.'))
EVT_MENU(self._wxapp, 205, lambda event, l=self:
l.dispatchEvent(GFEvent('requestNEXTBLOCK')))
! dataMenu.Append( 206, _("Previous Block (PgUp)"),_('Navigate to
previous data block.'))
EVT_MENU(self._wxapp, 206, lambda event, l=self:
l.dispatchEvent(GFEvent('requestPREVBLOCK')))
dataMenu.AppendSeparator()
! dataMenu.Append( 207, _("Enter Query (F8)"),_('Switch to
input query mask mode.'))
EVT_MENU(self._wxapp, 207, lambda event, l=self:
l.dispatchEvent(GFEvent('requestENTERQUERY')))
! dataMenu.Append( 208, _("Execute Query (F9)"), _('Execute query
using current mask.'))
EVT_MENU(self._wxapp, 208, lambda event, l=self:
l.dispatchEvent(GFEvent('requestEXECQUERY')))
helpMenu = wxMenu()
! helpMenu.Append( 300, _("&About..."), _('Display info about GNUe Forms.'))
EVT_MENU(self._wxapp, 300, lambda event, l=self:
l.dispatchEvent(GFEvent('requestABOUT')))
menuBar = wxMenuBar()
! menuBar.Append( fileMenu, _("&File") )
! menuBar.Append( editMenu, _("&Edit") )
! menuBar.Append( dataMenu, _("&Data") )
! menuBar.Append( helpMenu, _("&Help") )
self.mainWindow.SetMenuBar( menuBar );
***************
*** 503,510 ****
# Presents a dialog to user asking for the record number to jump to
#
def promptForRecordNumber(self, event= None):
! dlg = wxTextEntryDialog(self.mainWindow, 'Enter record number to jump to',
! 'Which record?')
if dlg.ShowModal() == wxID_OK:
action = self.dispatchEvent(GFEvent('requestRECORDNUMBER',
dlg.GetValue()))
else:
--- 503,510 ----
# Presents a dialog to user asking for the record number to jump to
#
def promptForRecordNumber(self, event= None):
! dlg = wxTextEntryDialog(self.mainWindow, _('Enter record number to jump
to'),
! _('Which record?'))
if dlg.ShowModal() == wxID_OK:
action = self.dispatchEvent(GFEvent('requestRECORDNUMBER',
dlg.GetValue()))
else:
***************
*** 1105,1112 ****
loginId = wxNewId()
cancelId = wxNewId()
! loginButton = wxButton(self.dlg,loginId,'Login')
! cancelButton = wxButton(self.dlg,cancelId,'Cancel')
EVT_BUTTON(self.dlg, loginId, self.loginButtonEventTrap)
EVT_BUTTON(self.dlg, cancelId, self.loginCancelEventTrap)
--- 1105,1112 ----
loginId = wxNewId()
cancelId = wxNewId()
! loginButton = wxButton(self.dlg,loginId,_('Login'))
! cancelButton = wxButton(self.dlg,cancelId,_('Cancel'))
EVT_BUTTON(self.dlg, loginId, self.loginButtonEventTrap)
EVT_BUTTON(self.dlg, cancelId, self.loginCancelEventTrap)
- gnue/forms/src/uidrivers/wx UIdriver.py, Arturas Kriukovas, 2002/05/09
- gnue/forms/src/uidrivers/wx UIdriver.py, Jan Ischebeck, 2002/05/09
- gnue/forms/src/uidrivers/wx UIdriver.py,
Arturas Kriukovas <=
- gnue/forms/src/uidrivers/wx UIdriver.py, Derek Neighbors, 2002/05/10
- gnue/forms/src/uidrivers/wx UIdriver.py, James Thompson, 2002/05/10
- gnue/forms/src/uidrivers/wx UIdriver.py, Arturas Kriukovas, 2002/05/16
- gnue/forms/src/uidrivers/wx UIdriver.py, Jason Cater, 2002/05/28