Open Inventor Release 2024.2.1
 
Loading...
Searching...
No Matches
IvtShell Class Referenceabstract

VSG extension Class to register Extension GUI in IvTune More...

#include <IvTune/IvTuneExtender/IvtShell.h>

+ Inheritance diagram for IvtShell:

Public Member Functions

virtual void registerDock (QDockWidget *dock, Qt::DockWidgetArea area)=0
 Register the provided dock widget and sets it to the designated area.
 
virtual void unregisterDock (QDockWidget *dock)=0
 Unregister the provided dock widget.
 
virtual std::vector< QMenu * > getContextualMenus (const SoType &type)=0
 Returns the list of menus that are registered with the provided type and its derived types.
 
virtual void registerContextualMenu (const SoType &type, bool strict, QMenu *newMenu)=0
 Register the menu and add it before the help menu of IvTune.
 
virtual void registerMenu (QMenu *newMenu)=0
 Register the menu and add it before the help menu of IvTune.
 
virtual void registerViewMenu (IvtExtension *extension, SbBool visibilityOnActivate=true)=0
 Register an extension in the view menu of IvTune.
 
virtual void unregisterContextualMenu (QMenu *menu)=0
 Unregister the context menu given as parameter.
 
virtual void unregisterMenu (QMenu *menu)=0
 Unregister the specified menu.
 
virtual void unregisterViewMenu (IvtExtension *extension)=0
 Unregister the extension from the view menu.
 
virtual void registerPreferencePanel (IvtExtension *extension, QWidget *panel, const char *slotInitialized, const char *slotAccept)=0
 Register the extension with the specified panel and add an entry to the preferences menu.
 
virtual void unregisterPreferencePanel (IvtExtension *extension)=0
 Unregister the extension from the the panel and remove the associated entry in the preferences menu.
 
virtual void clearStatusBarMessage ()=0
 Clear the message in the status bar.
 
virtual void regiterStatusBarWidget (QWidget *widget, SbBool isPermanent=false, int stretch=0)=0
 Register a widget in the status bar of IvTune.
 
virtual void showStatusBarMessage (const SbString &newMessage, int timeout=2000)=0
 Show a messsage in the Status bar.
 
virtual void unregiterStatusBarWidget (QWidget *widget)=0
 Unregister a widget from the status bar.
 
virtual void registerToolBar (QToolBar *tb, Qt::ToolBarArea area=Qt::TopToolBarArea)=0
 Register the provided dock widget and set it in the designated area.
 
virtual void unregisterToolBar (QToolBar *tb)=0
 Unregister a tool bar from the main window.
 

Static Public Member Functions

static IvtShellgetInstance ()
 Returns an instance of this class.
 

Detailed Description

VSG extension Class to register Extension GUI in IvTune

This class provides methods to access the different GUI elements of IvTune. Thus it is possible to modify or extend them.

Since Open Inventor 9.0

SEE ALSO

IvtServices

Definition at line 75 of file IvtShell.h.

Member Function Documentation

◆ clearStatusBarMessage()

virtual void IvtShell::clearStatusBarMessage ( )
pure virtual

Clear the message in the status bar.

◆ getContextualMenus()

virtual std::vector< QMenu * > IvtShell::getContextualMenus ( const SoType type)
pure virtual

Returns the list of menus that are registered with the provided type and its derived types.

Parameters
typethe type of node/field associated with the menus.

◆ getInstance()

static IvtShell * IvtShell::getInstance ( )
static

Returns an instance of this class.

◆ registerContextualMenu()

virtual void IvtShell::registerContextualMenu ( const SoType type,
bool  strict,
QMenu *  newMenu 
)
pure virtual

Register the menu and add it before the help menu of IvTune.

Parameters
newMenuthe contextual menu to register.
typethe type of node/field associated with the menus.
strictindicates if it is for the exact type or any derived type.

◆ registerDock()

virtual void IvtShell::registerDock ( QDockWidget *  dock,
Qt::DockWidgetArea  area 
)
pure virtual

Register the provided dock widget and sets it to the designated area.

Parameters
dockthe dock widget to register.
areathe area where the dock widget should be placed.

◆ registerMenu()

virtual void IvtShell::registerMenu ( QMenu *  newMenu)
pure virtual

Register the menu and add it before the help menu of IvTune.

Parameters
newMenuthe menu to register.

◆ registerPreferencePanel()

virtual void IvtShell::registerPreferencePanel ( IvtExtension extension,
QWidget *  panel,
const char *  slotInitialized,
const char *  slotAccept 
)
pure virtual

Register the extension with the specified panel and add an entry to the preferences menu.

Parameters
extensionthe extension to register.
panelthe panel where the extension will be registered.
slotInitializeda qt slot called when the prefenrence panel is initialized to be showed to the user.
slotAccepta qt slot called when new prefenrences are accepted by the user.

◆ registerToolBar()

virtual void IvtShell::registerToolBar ( QToolBar *  tb,
Qt::ToolBarArea  area = Qt::TopToolBarArea 
)
pure virtual

Register the provided dock widget and set it in the designated area.

Parameters
tbthe tool bar to register.
areathe area where the dock widget should be placed.

◆ registerViewMenu()

virtual void IvtShell::registerViewMenu ( IvtExtension extension,
SbBool  visibilityOnActivate = true 
)
pure virtual

Register an extension in the view menu of IvTune.

Parameters
extensionthe extension to register.
visibilityOnActivateindicates whether the extension is visible when activated or not.

◆ regiterStatusBarWidget()

virtual void IvtShell::regiterStatusBarWidget ( QWidget *  widget,
SbBool  isPermanent = false,
int  stretch = 0 
)
pure virtual

Register a widget in the status bar of IvTune.

Parameters
widgetthe widget to register.
isPermanentindicates whether the widget may be obscured by messages. A permanent widget is located at the far right of status bar. Otherwise the widget is located at the far left of the first permanent widget.
stretchis the factor used to compute a suitable size for the given widget. By default, this factor is set to 0 which indicates giving the widget a minimum of space.

◆ showStatusBarMessage()

virtual void IvtShell::showStatusBarMessage ( const SbString newMessage,
int  timeout = 2000 
)
pure virtual

Show a messsage in the Status bar.

Parameters
newMessagethe message to display in the status bar.
timeoutthe specified number of milliseconds to display the message in the status bar.

Note: A timeout of 0 means the message remains displayed until clearStatusBarMessage() is called.

◆ unregisterContextualMenu()

virtual void IvtShell::unregisterContextualMenu ( QMenu *  menu)
pure virtual

Unregister the context menu given as parameter.

It will be unregistered for strict and derived types.

Parameters
menuthe contextual menu to unregister.

◆ unregisterDock()

virtual void IvtShell::unregisterDock ( QDockWidget *  dock)
pure virtual

Unregister the provided dock widget.

Parameters
dockthe dock widget to unregister.

◆ unregisterMenu()

virtual void IvtShell::unregisterMenu ( QMenu *  menu)
pure virtual

Unregister the specified menu.

Parameters
menuthe menu to unregister.

◆ unregisterPreferencePanel()

virtual void IvtShell::unregisterPreferencePanel ( IvtExtension extension)
pure virtual

Unregister the extension from the the panel and remove the associated entry in the preferences menu.

Parameters
extensionthe extension to unregister.

◆ unregisterToolBar()

virtual void IvtShell::unregisterToolBar ( QToolBar *  tb)
pure virtual

Unregister a tool bar from the main window.

Parameters
tbthe tool bar to unregister.

◆ unregisterViewMenu()

virtual void IvtShell::unregisterViewMenu ( IvtExtension extension)
pure virtual

Unregister the extension from the view menu.

Parameters
extensionthe extension to unregister.

◆ unregiterStatusBarWidget()

virtual void IvtShell::unregiterStatusBarWidget ( QWidget *  widget)
pure virtual

Unregister a widget from the status bar.

Parameters
widgetthe widget to unregister.

The documentation for this class was generated from the following file: