blob: 007924226f1763c82f4e94f93a5e449692c98c59 (
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
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
|
# Copyright 2008 Nanorex, Inc. See LICENSE file for details.
"""
@author: Ninad
@copyright: 2008 Nanorex, Inc. See LICENSE file for details.
@version:$Id$
History:
Ninad 2008-08-04: Created during the command stack refactoring project
TODO: 2008-08-04
- See the superclass
"""
from ne1_ui.toolbars.Ui_AbstractFlyout import Ui_AbstractFlyout
class PartLibraryFlyout(Ui_AbstractFlyout):
"""
Define Flyout toolbar for the Part library command (Insert > Part Library)
"""
def _action_in_controlArea_to_show_this_flyout(self):
"""
Required action in the 'Control Area' as a reference for this
flyout toolbar. See superclass method for documentation and todo note.
"""
#Partlibrary is available as a sub item of the Insert menu in the
#control area
return self.win.partLibAction
def _getExitActionText(self):
"""
Overrides superclass method.
@see: self._createActions()
"""
return "Exit Partlib"
def getFlyoutActionList(self):
"""
Returns a tuple that contains mode spcific actionlists in the
added in the flyout toolbar of the mode.
@return: A tuple that contains 3 lists: subControlAreaActionList,
commandActionLists and allActionsList
@rtype: tuple
@see: L{CommandToolbar._createFlyoutToolBar} which calls this.
"""
subControlAreaActionList = []
commandActionLists = []
allActionsList = []
subControlAreaActionList.append(self.exitModeAction)
lst = []
commandActionLists.append(lst)
allActionsList.append(self.exitModeAction)
params = (subControlAreaActionList, commandActionLists, allActionsList)
return params
|