summaryrefslogtreecommitdiff
path: root/cad/src/ne1_ui/toolbars/Ui_PasteFromClipboardFlyout.py
blob: 085440ec91a1152b1e52805e8210a72f4928d7ab (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
# 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 PasteFromClipboardFlyout(Ui_AbstractFlyout):    
    """
    Define Flyout toolbar for the PasteFromClipboard command (PasteFromClipboard_Command)
    """
    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.
        """
        return self.win.toolsDepositAtomAction
    
    def _getExitActionText(self):
        """
        @see: self._createActions()
        """
        return "Exit Paste"
        
    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