How to use the envisage.ui.tasks.api.PreferencesPane function in envisage

To help you get started, we’ve selected a few envisage examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github robmcmullen / omnivore / omnivore_old / hex_edit / preferences.py View on Github external
bitmap_width_low = 1
    bitmap_width_high = 16
    bitmap_width = Range(low=bitmap_width_low, high=bitmap_width_high, value=1)

    # Font used for hex/disassembly
    text_font = Font(def_font)

    hex_grid_lower_case = Bool(True)

    assembly_lower_case = Bool(False)

    disassembly_column_widths = Tuple(0, 0, 0)


class HexEditPreferencesPane(PreferencesPane):
    """ The preferences pane for the Framework application.
    """

    #### 'PreferencesPane' interface ##########################################

    # The factory to use for creating the preferences model object.
    model_factory = HexEditPreferences

    category = Str('Editors')

    #### 'FrameworkPreferencesPane' interface ################################

    # Note the quirk in the RangeEditor: specifying a custom editor is
    # supposed to take the defaults from the item name specified, but I
    # can't get it to work with only the "mode" parameter.  I have to specify
    # all the other params, and the low/high values have to be attributes
github enthought / envisage / examples / plugins / tasks / attractors / attractors_preferences.py View on Github external
#### 'PreferencesHelper' interface ########################################

    # The path to the preference node that contains the preferences.
    preferences_path = "example.attractors"

    #### Preferences ##########################################################

    # The task to activate on app startup if not restoring an old layout.
    default_task = Str

    # Whether to always apply the default application-level layout.
    # See TasksApplication for more information.
    always_use_default_layout = Bool


class AttractorsPreferencesPane(PreferencesPane):
    """ The preferences pane for the Attractors application.
    """

    #### 'PreferencesPane' interface ##########################################

    # The factory to use for creating the preferences model object.
    model_factory = AttractorsPreferences

    #### 'AttractorsPreferencesPane' interface ################################

    task_map = Dict(Str, Str)

    view = View(
        VGroup(
            HGroup(
                Item("always_use_default_layout"),
github robmcmullen / omnivore / omnivore_framework / old-pyface-stuff / framework / preferences.py View on Github external
application = None

    # The path to the preference node that contains the preferences.
    preferences_path = 'omnivore_framework.framework'

    #### Preferences ##########################################################

    # The task to activate on app startup if not restoring an old layout.
    default_task = Str

    # Whether to always apply the default application-level layout.
    # See TasksApplication for more information.
    always_use_default_layout = Bool


class FrameworkPreferencesPane(PreferencesPane):
    """ The preferences pane for the Framework application.
    """

    #### 'PreferencesPane' interface ##########################################

    # The factory to use for creating the preferences model object.
    model_factory = FrameworkPreferences

    #### 'FrameworkPreferencesPane' interface ################################

    task_map = Dict(Str, Unicode)

    view = View(
        VGroup(HGroup(Item('always_use_default_layout'),
                      Label('Always use the default active task on startup'),
                      show_labels = False),
github robmcmullen / omnivore / omnivore_old / bitmap_edit / preferences.py View on Github external
"""

    #### 'PreferencesHelper' interface ########################################

    # The path to the preference node that contains the preferences.
    preferences_path = 'omnivore8bit.bitmap_edit'

    #### Preferences ##########################################################

    # Width of bitmap in bytes
    bitmap_width_low = 1
    bitmap_width_high = 256
    bitmap_width = Range(low=bitmap_width_low, high=bitmap_width_high, value=1)


class BitmapEditPreferencesPane(PreferencesPane):
    """ The preferences pane for the Framework application.
    """

    #### 'PreferencesPane' interface ##########################################

    # The factory to use for creating the preferences model object.
    model_factory = BitmapEditPreferences

    category = Str('Editors')

    #### 'FrameworkPreferencesPane' interface ################################

    # See note in tasks/hex_edit/preferences.py regarding RangeEditor
    view = View(
        VGroup(HGroup(Item('bitmap_width', editor=RangeEditor(mode="spinner", is_float=False, low_name='bitmap_width_low', high_name='bitmap_width_high')),
                      Label('Default Bitmap Width (in bytes)'),
github robmcmullen / omnivore / omnivore_old / image_edit / preferences.py View on Github external
class ImageEditPreferences(PreferencesHelper):
    """ The preferences helper for the Framework application.
    """

    #### 'PreferencesHelper' interface ########################################

    # The path to the preference node that contains the preferences.
    preferences_path = 'omnivore.framework.image_edit'

    #### Preferences ##########################################################

    # Scale image to fit window when initially loaded
    fit_image_on_load = Bool


class ImageEditPreferencesPane(PreferencesPane):
    """ The preferences pane for the Framework application.
    """

    #### 'PreferencesPane' interface ##########################################

    # The factory to use for creating the preferences model object.
    model_factory = ImageEditPreferences

    category = Str('Editors')

    #### 'FrameworkPreferencesPane' interface ################################

    view = View(
        VGroup(HGroup(Item('fit_image_on_load'),
                      Label('Scale image to window on initial load'),
                      show_labels = False),
github robmcmullen / omnivore / omnivore_old / map_edit / preferences.py View on Github external
#### 'PreferencesHelper' interface ########################################

    # The path to the preference node that contains the preferences.
    preferences_path = 'omnivore8bit.map_edit'

    #### Preferences ##########################################################

    # Display line numbers
    show_line_numbers = Bool

    # Wrap lines (if True) or display horizontal scrollbar (if False)
    wrap_lines = Bool


class MapEditPreferencesPane(PreferencesPane):
    """ The preferences pane for the Framework application.
    """

    #### 'PreferencesPane' interface ##########################################

    # The factory to use for creating the preferences model object.
    model_factory = MapEditPreferences

    category = Str('Editors')

    #### 'FrameworkPreferencesPane' interface ################################

    view = View(
        VGroup(HGroup(Item('show_line_numbers'),
                      Label('Show line numbers'),
                      show_labels = False),
github robmcmullen / omnivore / omnivore_framework / old-pyface-stuff / tasks / text_edit / preferences.py View on Github external
#### 'PreferencesHelper' interface ########################################

    # The path to the preference node that contains the preferences.
    preferences_path = 'omnivore_framework.framework.text_edit'

    #### Preferences ##########################################################

    # Display line numbers
    show_line_numbers = Bool

    # Wrap lines (if True) or display horizontal scrollbar (if False)
    wrap_lines = Bool


class TextEditPreferencesPane(PreferencesPane):
    """ The preferences pane for the Framework application.
    """

    #### 'PreferencesPane' interface ##########################################

    # The factory to use for creating the preferences model object.
    model_factory = TextEditPreferences

    category = Str('Editors')

    #### 'FrameworkPreferencesPane' interface ################################

    view = View(
        VGroup(HGroup(Item('show_line_numbers'),
                      Label('Show line numbers'),
                      show_labels = False),
github robmcmullen / omnivore / omnivore_old / font_edit / preferences.py View on Github external
#### 'PreferencesHelper' interface ########################################

    # The path to the preference node that contains the preferences.
    preferences_path = 'omnivore8bit.font_edit'

    #### Preferences ##########################################################

    # Display line numbers
    show_line_numbers = Bool

    # Wrap lines (if True) or display horizontal scrollbar (if False)
    wrap_lines = Bool


class FontEditPreferencesPane(PreferencesPane):
    """ The preferences pane for the Framework application.
    """

    #### 'PreferencesPane' interface ##########################################

    # The factory to use for creating the preferences model object.
    model_factory = FontEditPreferences

    category = Str('Editors')

    #### 'FrameworkPreferencesPane' interface ################################

    view = View(
        VGroup(HGroup(Item('show_line_numbers'),
                      Label('Show line numbers'),
                      show_labels = False),
github robmcmullen / omnivore / omnivore_old / jumpman / preferences.py View on Github external
"""

    #### 'PreferencesHelper' interface ########################################

    # The path to the preference node that contains the preferences.
    preferences_path = 'omnivore8bit.jumpman_edit'

    #### Preferences ##########################################################

    # Width of bitmap in bytes
    bitmap_width_low = 1
    bitmap_width_high = 256
    bitmap_width = Range(low=bitmap_width_low, high=bitmap_width_high, value=1)


class JumpmanPreferencesPane(PreferencesPane):
    """ The preferences pane for the Framework application.
    """

    #### 'PreferencesPane' interface ##########################################

    # The factory to use for creating the preferences model object.
    model_factory = JumpmanPreferences

    category = Str('Editors')

    #### 'FrameworkPreferencesPane' interface ################################

    # See note in tasks/hex_edit/preferences.py regarding RangeEditor
    view = View(
        VGroup(HGroup(Item('bitmap_width', editor=RangeEditor(mode="spinner", is_float=False, low_name='bitmap_width_low', high_name='bitmap_width_high')),
                      Label('Default Bitmap Width (in bytes)'),
github robmcmullen / omnivore / omnivore_framework / old-pyface-stuff / tasks / skeleton / preferences.py View on Github external
#### 'PreferencesHelper' interface ########################################

    # The path to the preference node that contains the preferences.
    preferences_path = 'omnivore_framework.framework.text_edit'

    #### Preferences ##########################################################

    # Display line numbers
    show_line_numbers = Bool

    # Wrap lines (if True) or display horizontal scrollbar (if False)
    wrap_lines = Bool


class SkeletonPreferencesPane(PreferencesPane):
    """ The preferences pane for the Framework application.
    """

    #### 'PreferencesPane' interface ##########################################

    # The factory to use for creating the preferences model object.
    model_factory = SkeletonPreferences

    category = Str('Editors')

    #### 'FrameworkPreferencesPane' interface ################################

    view = View(
        VGroup(HGroup(Item('show_line_numbers'),
                      Label('Show line numbers'),
                      show_labels = False),