Carousel
 All Classes Namespaces Functions Variables Typedefs Enumerations Enumerator Properties Pages
Public Member Functions | List of all members
IInteractiveExtension Class Referenceabstract

The IInteractiveExtension interface declares contract for the component, that wants to extend user interaction elements. More...

#include <IInteractiveExtension.h>

Inherits IComponentExtension.

Inherited by ComponentManagementInteractiveExtension, JsScriptingInteractiveExtension, and UndoInteractiveExtension.

Public Member Functions

virtual void configureGui (ICatalogs &inCatalogs, IServiceLocator *serviceLocator)=0
 

Detailed Description

The IInteractiveExtension interface declares contract for the component, that wants to extend user interaction elements.

This abstract class provides contract to register ICatalog items (operations, menus, toolbars, etc) specific to the component in application.

Although you can access IInteractionService during application startup, it is recomended to implement this interface to register menus and tools specific to your component. Components that register this interface in the IComponent::extension() will be asked for the GUI configuration right after component started.

See Also
IComponent::extension().

Member Function Documentation

virtual void IInteractiveExtension::configureGui ( ICatalogs inCatalogs,
IServiceLocator serviceLocator 
)
pure virtual

Place your code here to register component-specific operations, dockable widgets and others in the specified catalogs.

You can use serviceLocator to obtain application model, for example, to use it in the Qt View-Model approach.

Implemented in UndoInteractiveExtension.