blob: b2905cd6e2e998987feb1c538da0f7a3aaed5755 (
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
|
# Copyright 2004-2007 Nanorex, Inc. See LICENSE file for details.
"""
$Id$
"""
from PyQt4 import QtGui
def setupUi(win):
"""
Populates the "Dimensions" menu, a submenu of the "Tools" menu.
@param win: NE1's main window object.
@type win: Ui_MainWindow
"""
# Populate the "Dimensions" menu.
win.dimensionsMenu.addAction(win.jigsDistanceAction)
win.dimensionsMenu.addAction(win.jigsAngleAction)
win.dimensionsMenu.addAction(win.jigsDihedralAction)
def retranslateUi(win):
"""
Sets text related attributes for the "Dimensions" 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.dimensionsMenu.setTitle(
QtGui.QApplication.translate(
"MainWindow", "&Dimensions",
None, QtGui.QApplication.UnicodeUTF8))
|