blob: 013694e06d47284ddf88af1517d72e4db0e1a84c (
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
|
# Copyright 2004-2007 Nanorex, Inc. See LICENSE file for details.
"""
Ui_RenderingMenu.py - Menu for Rendering plug-ins like QuteMolX, POV-Ray
and others to come (i.e. Sunflow)
@author: Mark
@version: $Id$
@copyright: 2005-2007 Nanorex, Inc. See LICENSE file for details.
"""
from PyQt4 import QtGui
def setupUi(win):
"""
Populates the "Rendering" menu which appears in the main window menu bar.
@param win: NE1's main window object.
@type win: Ui_MainWindow
"""
# Populate the "Rendering" menu.
win.renderingMenu.addAction(win.viewQuteMolAction)
win.renderingMenu.addAction(win.viewRaytraceSceneAction)
win.renderingMenu.addSeparator()
win.renderingMenu.addAction(win.setStereoViewAction) # piotr 080516
def retranslateUi(win):
"""
Sets text related attributes for the "Rendering" menu.
@param win: NE1's mainwindow object.
@type win: U{B{QMainWindow}<http://doc.trolltech.com/4/qmainwindow.html>}
"""
win.renderingMenu.setTitle(
QtGui.QApplication.translate(
"MainWindow", "Rendering",
None, QtGui.QApplication.UnicodeUTF8))
|