1 |
# Copyright (C) 2003 by Intevation GmbH |
# Copyright (C) 2003, 2004 by Intevation GmbH |
2 |
# Authors: |
# Authors: |
3 |
# Bernhard Herzog <[email protected]> |
# Bernhard Herzog <[email protected]> (2003) |
4 |
|
# Jan-Oliver Wagner <[email protected]> (2003, 2004) |
5 |
# |
# |
6 |
# This program is free software under the GPL (>=v2) |
# This program is free software under the GPL (>=v2) |
7 |
# Read the file COPYING coming with the software for details. |
# Read the file COPYING coming with the software for details. |
33 |
|
|
34 |
from Thuban import _ |
from Thuban import _ |
35 |
from Thuban.UI.command import registry, Command |
from Thuban.UI.command import registry, Command |
36 |
import Thuban.UI.mainwindow |
from Thuban.UI.mainwindow import main_menu |
37 |
|
|
38 |
# |
# |
39 |
# Customization |
# Customization |
140 |
time_screen_renderer, |
time_screen_renderer, |
141 |
helptext = _('Time the screen render'))) |
helptext = _('Time the screen render'))) |
142 |
|
|
|
|
|
143 |
# find the extensions menu (create it anew if not found) |
# find the extensions menu (create it anew if not found) |
144 |
main_menu = Thuban.UI.mainwindow.main_menu |
extensions_menu = main_menu.FindOrInsertMenu('extensions', _('E&xtensions')) |
|
extensions_menu = main_menu.find_menu('extensions') |
|
|
if extensions_menu is None: |
|
|
extensions_menu = main_menu.InsertMenu('extensions', _('E&xtensions')) |
|
145 |
|
|
146 |
profiler_menu = extensions_menu.InsertMenu("profiler", _('&Profiler')) |
profiler_menu = extensions_menu.InsertMenu("profiler", _('&Profiler')) |
147 |
profiler_menu.InsertItem("time_screen_renderer") |
profiler_menu.InsertItem("time_screen_renderer") |