blob: 7dfa6d91b8fd1a94b0277aac8a8717bbae41fc21 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
|
# Copyright 2004-2007 Nanorex, Inc. See LICENSE file for details.
"""
$Id$
"""
from PyQt4 import QtGui
def setupUi(win):
"""
Populates the "Build Tools" menu, a submenu of the "Tools" menu.
@param win: NE1's main window object.
@type win: Ui_MainWindow
"""
# Populate the "Build Structures" menu.
win.buildToolsMenu.addAction(win.modifyHydrogenateAction)
win.buildToolsMenu.addAction(win.modifyDehydrogenateAction)
win.buildToolsMenu.addAction(win.modifyPassivateAction)
win.buildToolsMenu.addSeparator()
win.buildToolsMenu.addAction(win.modifyDeleteBondsAction)
win.buildToolsMenu.addAction(win.modifySeparateAction)
win.buildToolsMenu.addAction(win.modifyMergeAction)
win.buildToolsMenu.addSeparator()
win.buildToolsMenu.addAction(win.modifyAlignCommonAxisAction)
win.buildToolsMenu.addAction(win.modifyCenterCommonAxisAction)
win.buildToolsMenu.addSeparator()
win.buildToolsMenu.addAction(win.jigsAtomSetAction)
def retranslateUi(win):
"""
Sets text related attributes for the "Build Tools" submenu,
which is a submenu of the "Tools" menu.
@param win: NE1's mainwindow object.
@type win: U{B{QMainWindow}<http://doc.trolltech.com/4/qmainwindow.html>}
"""
win.buildToolsMenu.setTitle(
QtGui.QApplication.translate(
"MainWindow", "Build Tools",
None, QtGui.QApplication.UnicodeUTF8))
|