Module omix.api

Interface ContextMenuEntryProvider


@OVLInaccessible
public interface ContextMenuEntryProvider
By implementing this interface, a plug-in can add own menu entries to the context menu of graphical items. THIS INTERFACE IS IN CURRENT DEVELOPMENT AND THUS STILL SUBJECT TO BE CHANGED!
Since:
Omix 1.7.0
Author:
Dr. Peter Droste
  • Method Details

    • addItemContextMenuEntries

      void addItemContextMenuEntries​(AbstractItem item, QMenu menu)
      This method is called whenever the user causes a context menu to be shown. Add actions to the menu and handle user interaction by connecting to the slot QAction.triggered combined with the item parameter.
      Parameters:
      item - the item on which the context menu is shown
    • addItemContextMenuEntries

      void addItemContextMenuEntries​(AbstractModelComponent item, QMenu menu)
    • addItemContextMenuEntries

      default void addItemContextMenuEntries​(DataAnnotation accessory, QMenu menu)
      This method is called whenever the user causes a context menu to be shown on an accessory. Add actions to the menu and handle user interaction by connecting to the slot QAction.triggered combined with the item parameter.
      Parameters:
      accessory - the accessory on which the context menu is shown
      Since:
      Omix 1.9.0
    • addItemContextMenuEntries

      default void addItemContextMenuEntries​(DataAnnotationItem accessory, QMenu menu)
    • addItemContextMenuEntries

      default void addItemContextMenuEntries​(Object object, Field field, QMenu menu)
      This method is called whenever the user causes a context menu to be shown on a VoD branch. Add actions to the menu and handle user interaction by connecting to the slot QAction.triggered combined with the item parameter.
      Parameters:
      object - the object owning the field
      field - the field for which the context menu is shown on the VoD branch
      Since:
      Omix 2.0.0