1
#------------------------------------------------------------------------------
3
# Copyright (c) 2008, Enthought, Inc.
6
# This software is provided without warranty under the terms of the BSD
7
# license included in enthought/LICENSE.txt and may be redistributed only
8
# under the conditions described in the aforementioned license. The license
9
# is also available online at http://www.enthought.com/licenses/BSD.txt
11
# Thanks for using Enthought open source!
13
#------------------------------------------------------------------------------
15
""" Defines the progress editor factory for all traits toolkit backends,
18
#-------------------------------------------------------------------------------
20
#-------------------------------------------------------------------------------
22
from __future__ import absolute_import
24
from traits.api import Int, Bool, Str
26
from ..editor_factory import EditorFactory
28
class ToolkitEditorFactory ( EditorFactory ):
29
""" Editor factory for code editors.
32
#---------------------------------------------------------------------------
34
#---------------------------------------------------------------------------
39
# The message to be displayed along side the progress guage
48
# If the cancel button should be shown
49
can_cancel = Bool(False)
51
# If the estimated time should be shown
52
show_time = Bool(False)
54
# if the percent complete should be shown
55
show_percent = Bool(False)
58
# Define the Code Editor class.
59
ProgressEditor = ToolkitEditorFactory
61
### EOF #######################################################################