|
|
|
@ -70,31 +70,31 @@ class MainWin (KMainWindow):
|
|
|
|
|
fileMenu = TQPopupMenu (self)
|
|
|
|
|
|
|
|
|
|
# "File" menu items
|
|
|
|
|
fileMenu.insertItem (i18n ("New"), self.slotNew, KStdAccel.openNew ().keyCodeTQt ())
|
|
|
|
|
fileMenu.insertItem (i18n ("Open"), self.slotOpen, KStdAccel.open ().keyCodeTQt ())
|
|
|
|
|
fileMenu.insertItem (i18n ("New"), self.slotNew, KStdAccel.openNew ().keyCodeQt ())
|
|
|
|
|
fileMenu.insertItem (i18n ("Open"), self.slotOpen, KStdAccel.open ().keyCodeQt ())
|
|
|
|
|
fileMenu.insertSeparator ();
|
|
|
|
|
fileMenu.insertItem (i18n ("Save"), self.slotSave, KStdAccel.save ().keyCodeTQt ())
|
|
|
|
|
fileMenu.insertItem (i18n ("Save"), self.slotSave, KStdAccel.save ().keyCodeQt ())
|
|
|
|
|
fileMenu.insertItem (i18n ("SaveAs"), self.slotSaveAs)
|
|
|
|
|
fileMenu.insertSeparator ();
|
|
|
|
|
fileMenu.insertItem (i18n ("Print"), self.slotPrint, KStdAccel.print_ ().keyCodeTQt ())
|
|
|
|
|
fileMenu.insertItem (i18n ("Print"), self.slotPrint, KStdAccel.print_ ().keyCodeQt ())
|
|
|
|
|
fileMenu.insertSeparator ();
|
|
|
|
|
fileMenu.insertItem (i18n ("&Quit"), self.slotQuit, KStdAccel.quit ().keyCodeTQt ());
|
|
|
|
|
fileMenu.insertItem (i18n ("&Quit"), self.slotQuit, KStdAccel.quit ().keyCodeQt ());
|
|
|
|
|
|
|
|
|
|
self.menuBar ().insertItem (i18n ("&File"), fileMenu)
|
|
|
|
|
|
|
|
|
|
editMenu = TQPopupMenu (self)
|
|
|
|
|
|
|
|
|
|
# "Edit" menu items
|
|
|
|
|
editMenu.insertItem (i18n ("Undo"), self.slotUndo, KStdAccel.undo ().keyCodeTQt ())
|
|
|
|
|
editMenu.insertItem (i18n ("Redo"), self.slotRedo, KStdAccel.redo ().keyCodeTQt ())
|
|
|
|
|
editMenu.insertItem (i18n ("Undo"), self.slotUndo, KStdAccel.undo ().keyCodeQt ())
|
|
|
|
|
editMenu.insertItem (i18n ("Redo"), self.slotRedo, KStdAccel.redo ().keyCodeQt ())
|
|
|
|
|
editMenu.insertSeparator ();
|
|
|
|
|
editMenu.insertItem (i18n ("Cut"), self.slotCut, KStdAccel.cut ().keyCodeTQt ())
|
|
|
|
|
editMenu.insertItem (i18n ("Copy"), self.slotCopy, KStdAccel.copy ().keyCodeTQt ())
|
|
|
|
|
editMenu.insertItem (i18n ("Paste"), self.slotPaste, KStdAccel.paste ().keyCodeTQt ())
|
|
|
|
|
editMenu.insertItem (i18n ("Cut"), self.slotCut, KStdAccel.cut ().keyCodeQt ())
|
|
|
|
|
editMenu.insertItem (i18n ("Copy"), self.slotCopy, KStdAccel.copy ().keyCodeQt ())
|
|
|
|
|
editMenu.insertItem (i18n ("Paste"), self.slotPaste, KStdAccel.paste ().keyCodeQt ())
|
|
|
|
|
editMenu.insertSeparator ();
|
|
|
|
|
editMenu.insertItem (i18n ("Find"), self.slotFind, KStdAccel.find ().keyCodeTQt ())
|
|
|
|
|
editMenu.insertItem (i18n ("Find Next"), self.slotFindNext, KStdAccel.findNext ().keyCodeTQt ())
|
|
|
|
|
editMenu.insertItem (i18n ("Replace"), self.slotReplace, KStdAccel.replace ().keyCodeTQt ())
|
|
|
|
|
editMenu.insertItem (i18n ("Find"), self.slotFind, KStdAccel.find ().keyCodeQt ())
|
|
|
|
|
editMenu.insertItem (i18n ("Find Next"), self.slotFindNext, KStdAccel.findNext ().keyCodeQt ())
|
|
|
|
|
editMenu.insertItem (i18n ("Replace"), self.slotReplace, KStdAccel.replace ().keyCodeQt ())
|
|
|
|
|
|
|
|
|
|
self.menuBar ().insertItem (i18n ("&Edit"), editMenu)
|
|
|
|
|
|
|
|
|
|