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
|
#-------------------------------------------------------------------------------
#
# Helper function to add all standard DockWindowFeature feature classes to
# DockWindow.
#
# Written by: David C. Morrill
#
# Date: 01/24/2007
#
# (c) Copyright 2007 by Enthought, Inc.
#
#-------------------------------------------------------------------------------
#-------------------------------------------------------------------------------
# Imports:
#-------------------------------------------------------------------------------
from connect_feature import ConnectFeature
from custom_feature import ACustomFeature
from debug_feature import DebugFeature
from dock_control_feature import DockControlFeature
from drag_drop_feature import DragDropFeature
from drop_file_feature import DropFileFeature
from options_feature import OptionsFeature
from popup_menu_feature import PopupMenuFeature
from save_feature import SaveFeature
from save_state_feature import SaveStateFeature
from tool_feature import ToolFeature
from enthought.pyface.dock.api \
import add_feature
#-------------------------------------------------------------------------------
# Adds all of the standard DockWindowFeature feature classes to DockWindow:
#-------------------------------------------------------------------------------
def add_standard_features ( ):
""" Adds all of the standard DockWindowFeature feature classes to
DockWindow.
"""
for klass in [ ConnectFeature, ACustomFeature, DebugFeature,
DockControlFeature, DragDropFeature, DropFileFeature,
OptionsFeature, PopupMenuFeature, SaveFeature,
SaveStateFeature, SaveStateFeature, ToolFeature ]:
add_feature( klass )
|