Object Editor

The object_editor in Smallworld™ is likely the most used tool in the GIS. The complete documentation of the company assets are done in this GUI. The object_editor is quite a complex apparatus, so here are some tips to tweek it.

Color field_items

Validated field_items

Custom field_editors

The architecture of the field_items and field_editors

Defining Editors for Specific Objects

PNI (and maybe other GE Office products) redefine the default Object Editor. If you have created a basic object, or have a different dataset with objects that you want to edit with the basic editor you need to do the following modifications.

In your application's config.xml, you need to point the Editor Manager's configuration to an editable XML file:

  <plugin name="editor_manager" class_name="pni_editor_manager">
      <property name="configuration_file_name" 

Then in the editor_manager_collection_properties.xml file add your collections as follows:

  <collection collection_name ="your_collection"
              gui_file_name   ="swaf_professional_application.editor_gui.xml"/>

Editor Relationships

This section shows the relationships between object editor, manager, framework, and plug-ins.

  • Application -> Editor Manager : This is typically the application's :editor_manager plugin. which returns a form of editor_manager object. !appl.plugin(:editor_manager)
  • Editor Manager -> Application : framework or application on editor_manager object.
  • Editor Manager -> Object Editor : No direct methodology
      • Private Methods - [iter]all_editors(), [iter]active_editors()
      • Public Methods - activate_editor_for_object(), editors_for_collection(), get_new_editor_for(),
  • Editor Manager -> Editor Viewer : No direct methodology
      • Private Slots - floating_viewers & embedded_viewer
      • Private Methods - get_viewer_for_collection()
  • Editor Viewer -> Editor
      • Public Methods - current_editor [iter]editors()
      • Does have actions!
  • Editor has plugins
      • rwo_specials plugin has private slot plugins that contain specially defined editor_plugin per collection [defined thru record exemplar's editor_plugin() method]
Unless otherwise stated, the content of this page is licensed under Creative Commons Attribution-ShareAlike 3.0 License