![]() |
Carousel
|
This service provides methods to configure application GUI like menus, operations, toolbars and other, and it is registered into the application services by the InteractionServiceComponent. More...
#include <IInteractionService.h>
Inherits QObject.
Inherited by CarouselInteractionService.
Public Member Functions | |
virtual ITool * | activeTool ()=0 |
virtual ICatalogs & | catalogs ()=0 |
virtual const ICatalogs & | catalogs () const =0 |
virtual IInputDispatcher * | dispatcher ()=0 |
virtual void | loadUiState (int version=0)=0 |
virtual QMainWindow & | mainWindow ()=0 |
virtual void | resetUi ()=0 |
virtual void | saveUiState (int version=0)=0 |
virtual void | setActiveTool (ITool *activeTool)=0 |
virtual void | setConfigurationDelegate (IComponentConfigurationDelegate *configurationDelegate)=0 |
virtual void | setDispatcher (IInputDispatcher *dispatcher)=0 |
![]() | |
QObject (QObject *parent) | |
QObject (QObject *parent, const char *name) | |
bool | blockSignals (bool block) |
QObject * | child (const char *objName, const char *inheritsClass, bool recursiveSearch) const |
const QObjectList & | children () const |
const char * | className () const |
bool | connect (const QObject *sender, const char *signal, const char *method, Qt::ConnectionType type) const |
void | deleteLater () |
void | destroyed (QObject *obj) |
bool | disconnect (const QObject *receiver, const char *method) |
bool | disconnect (const char *signal, const QObject *receiver, const char *method) |
void | dumpObjectInfo () |
void | dumpObjectTree () |
QList< QByteArray > | dynamicPropertyNames () const |
virtual bool | event (QEvent *e) |
virtual bool | eventFilter (QObject *watched, QEvent *event) |
T | findChild (const QString &name) const |
QList< T > | findChildren (const QRegExp ®Exp) const |
QList< T > | findChildren (const QString &name) const |
bool | inherits (const char *className) const |
void | insertChild (QObject *object) |
void | installEventFilter (QObject *filterObj) |
bool | isA (const char *className) const |
bool | isWidgetType () const |
void | killTimer (int id) |
virtual const QMetaObject * | metaObject () const |
void | moveToThread (QThread *targetThread) |
const char * | name () const |
const char * | name (const char *defaultName) const |
QString | objectName () const |
QObject * | parent () const |
QVariant | property (const char *name) const |
void | removeChild (QObject *object) |
void | removeEventFilter (QObject *obj) |
void | setName (const char *name) |
void | setObjectName (const QString &name) |
void | setParent (QObject *parent) |
bool | setProperty (const char *name, const QVariant &value) |
bool | signalsBlocked () const |
int | startTimer (int interval) |
QThread * | thread () const |
Additional Inherited Members | |
![]() | |
bool | connect (const QObject *sender, const char *signal, const QObject *receiver, const char *method, Qt::ConnectionType type) |
bool | connect (const QObject *sender, const QMetaMethod &signal, const QObject *receiver, const QMetaMethod &method, Qt::ConnectionType type) |
bool | disconnect (const QObject *sender, const char *signal, const QObject *receiver, const char *method) |
bool | disconnect (const QObject *sender, const QMetaMethod &signal, const QObject *receiver, const QMetaMethod &method) |
QString | tr (const char *sourceText, const char *disambiguation, int n) |
QString | trUtf8 (const char *sourceText, const char *disambiguation, int n) |
![]() | |
bool | checkConnectArgs (const char *signal, const QObject *object, const char *method) |
virtual void | childEvent (QChildEvent *event) |
virtual void | connectNotify (const char *signal) |
virtual void | customEvent (QEvent *event) |
virtual void | disconnectNotify (const char *signal) |
int | receivers (const char *signal) const |
QObject * | sender () const |
int | senderSignalIndex () const |
virtual void | timerEvent (QTimerEvent *event) |
![]() | |
QByteArray | normalizeSignalSlot (const char *signalSlot) |
![]() | |
objectName | |
This service provides methods to configure application GUI like menus, operations, toolbars and other, and it is registered into the application services by the InteractionServiceComponent.
The IInteractionService interface is a starting point for many tasks one does with a application GUI. For example, use IInteractionService to obtain catalogs to add menus or operations; access the main window (eg, for getting central widget); specify active application tool to intercept the user actions (mouse move, mouse clicks, keys pressed).
The IInteractionService has a reference to the IComponentManager object, and it asks added components (if they register IInteractiveExtension) to register new menus, operations and toolbars into the catalogs. The IComponentConfigurationDelegate is used for it.
InteractiveServiceComponent registers this service in the application services, so you can get reference to IInteractionService the next way:
but make sure, that your component that used IInteractionService is a child for the InteractiveServiceComponent.
|
pure virtual |
The currently selected tool in application. When not null, user's mouse and keyboard events from the central widget are sent to this tool by IInputDispatcher.
Implemented in CarouselInteractionService.
|
pure virtual |
Gets the catalog collection.
Implemented in CarouselInteractionService.
|
pure virtual |
Gets the immutable catalog collection.
Implemented in CarouselInteractionService.
|
pure virtual |
Gets the current user input dispatcher. Null by default.
Implemented in CarouselInteractionService.
|
pure virtual |
Loads the geometry for top-level widgets and state of this mainwindow's toolbars and dockwidgets. The version number is compared with that is already stored (if any).
If they do not match, the mainwindow's state is left unchanged
It is after start up of the component to try to restore newly started component Ui.
Implemented in CarouselInteractionService.
|
pure virtual |
Gets the application shell or main window.
Implemented in CarouselInteractionService.
|
pure virtual |
Uses IConfigurationDelegate to clear changes done by components (using IConfigurationDelegate::deconfigure()) and configure components again.
Implemented in CarouselInteractionService.
|
pure virtual |
Saves the current geometry for top-level widgets and state of this mainwindow's toolbars and dockwidgets. The version number is stored as part of the data.
It is called at least in the destructor of the service.
Implemented in CarouselInteractionService.
|
pure virtual |
Deactivates current tool and sets the specified tool as active.
Implemented in CarouselInteractionService.
|
pure virtual |
Sets the configuration delegate responsible for the configuring started up component: IComponentConfigurationDelegate::configure() method will be binded to the IComponentManager::componentStarted() signal.
CarouselComponentConfigurationDelegate is used by default. Note, that IInteractionService takes ownership of the configuration delegate.
Implemented in CarouselInteractionService.
|
pure virtual |
Deletes the previous (if any) and sets the new input dispatcher in one of your GUI components. If you want user input would be sent to the active tool, use following snippet:
Null by default. Note, that IInteractionService takes ownership of the dispatcher.
Implemented in CarouselInteractionService.