![]() |
Carousel
|
This class is registered into the application services by the InteractionServiceComponent. More...
#include <CarouselInteractionService.h>
Inherits IInteractionService.
Public Member Functions | |
CarouselInteractionService (IServiceLocator *serviceLocator, QMainWindow *mainWindow, IComponentManager *manager, QObject *parent=nullptr) | |
ITool * | activeTool () |
ICatalogs & | catalogs () |
const ICatalogs & | catalogs () const |
IComponentConfigurationDelegate * | configurationDelegate () |
IInputDispatcher * | dispatcher () |
void | loadUiState (int version=0) |
QMainWindow & | mainWindow () |
void | resetUi () |
void | saveUiState (int version=0) |
void | setActiveTool (ITool *activeTool) |
void | setConfigurationDelegate (IComponentConfigurationDelegate *configurationDelegate) |
void | setDispatcher (IInputDispatcher *dispatcher) |
![]() | |
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 |
Protected Slots | |
void | onComponentAboutToShutDown (IComponent *component) |
void | onComponentManagerAboutToShutDown () |
void | onComponentManagerStartedUp () |
void | onComponentStartedUp (IComponent *component) |
void | onToolDeleted () |
void | onToolExecutingStopped () |
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 class is registered into the application services by the InteractionServiceComponent.
CarouselInteractionService::CarouselInteractionService | ( | IServiceLocator * | serviceLocator, |
QMainWindow * | mainWindow, | ||
IComponentManager * | manager, | ||
QObject * | parent = nullptr |
||
) |
Initializes a new instance of the CarouselInteractionService class using specified instances of the application, mainWindow and manager.
|
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.
Implements IInteractionService.
|
virtual |
Gets the catalog collection.
Implements IInteractionService.
|
virtual |
Gets the immutable catalog collection.
Implements IInteractionService.
IComponentConfigurationDelegate* CarouselInteractionService::configurationDelegate | ( | ) |
Gets the current configuration delegate responsible for the configuring started up component.
|
virtual |
Gets the current user input dispatcher. Null by default.
Implements IInteractionService.
|
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.
Implements IInteractionService.
|
virtual |
Gets the application shell or main window.
Implements IInteractionService.
|
virtual |
Uses IConfigurationDelegate to clear changes done by components (using IConfigurationDelegate::deconfigure()) and configure components again.
Implements IInteractionService.
|
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.
Implements IInteractionService.
|
virtual |
Deactivates current tool and sets the specified tool as active.
Implements IInteractionService.
|
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 CarouselInteractionService takes ownership of the configuration delegate.
Implements IInteractionService.
|
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 CarouselInteractionService takes ownership of the dispatcher.
Implements IInteractionService.
|
protectedslot |
Configures all started components using configuration delegate (if any). It also connects the onComponentStartedUp() slot to the manager's componentStarted() signal This slot is invoked when component manager started up.
|
protectedslot |
Configures a component using configuration delegate (if any). This slot is invoked when component is started up.
|
protectedslot |
Deconfigures a component using configuration delegate (if any). This slot is invoked when component is prepared for shut down.
|
protectedslot |
Saves UI state. This slot is invoked when component manager prepares for shut down.
|
protectedslot |
Sets active tool and receiver to nullptr to the current dispatcher (if any). This slot is invoked when active tool is stopped.
|
protectedslot |
Sets active tool and receiver to nullptr to the current dispatcher (if any). This slot is invoked when active tool instance is deleted.