Debian Codegraph @

envisage/ui/tasks/task_extension.py

raw
1 # (C) Copyright 2007-2025 Enthought, Inc., Austin, TX
2 # All rights reserved.
3 #
4 # This software is provided without warranty under the terms of the BSD
5 # license included in LICENSE.txt and may be redistributed only under
6 # the conditions described in the aforementioned license. The license
7 # is also available online at http://www.enthought.com/licenses/BSD.txt
8 #
9 # Thanks for using Enthought open source!
10 # Enthought library imports.
11 from pyface.tasks.action.api import SchemaAddition
12 from traits.api import Callable, HasStrictTraits, List, Str
13
14
15 class TaskExtension(HasStrictTraits):
16 """A bundle of items for extending a Task."""
17
18 #: The ID of the task to extend. If the ID is omitted, the extension
19 #: applies to all tasks.
20 task_id = Str
21
22 #: A list of menu bar and tool bar items to add to the set provided
23 #: by the task.
24 actions = List(SchemaAddition)
25
26 #: A list of dock pane factories that will extend the dock panes provided
27 #: by the task.
28 dock_pane_factories = List(Callable)