25 #include <dtkCoreSupport/dtkAbstractData.h>
26 #include <dtkCoreSupport/dtkGlobal.h>
28 class axlViewControllerPrivate
31 QHash<dtkAbstractData *, axlAbstractActor *> actors;
32 QHash<axlAbstractField *, axlAbstractActorField *> actorFields;
53 return d->actors.key(actor);
58 return d->actors.value(data);
64 qDebug() << DTK_PRETTY_FUNCTION <<
" no data !";
69 qDebug() << DTK_PRETTY_FUNCTION <<
" no actor !";
73 d->actors.insert(data,actor);
83 d->actors.remove(data);
88 return d->actors.size();
93 return d->actors.keys();
98 return d->actors.contains(data);
105 return d->actorFields.key(actorField);
110 return d->actorFields.value(dataField);
116 qDebug() << DTK_PRETTY_FUNCTION <<
" no dataField !";
121 qDebug() << DTK_PRETTY_FUNCTION <<
" no actorField !";
125 d->actorFields.insert(dataField, actorField);
134 d->actorFields.remove(dataField);
139 return d->actorFields.size();
144 return d->actorFields.keys();
151 return "axlViewController";
void removeField(axlAbstractField *dataField)
QList< axlAbstractField * > dataField(void)
virtual QString description(void) const
virtual ~axlViewController(void)
bool insertField(axlAbstractField *dataField, axlAbstractActorField *actorField)
QList< dtkAbstractData * > data(void)
Class axlAbstractField defines an API for arrays of numeric data.
void remove(dtkAbstractData *data)
bool contains(axlAbstractData *data)
axlAbstractActor * actor(dtkAbstractData *data)
bool insert(dtkAbstractData *data, axlAbstractActor *actor)
Class axlAbstractData defines an API for all type of axel data.
axlAbstractActorField * actorField(axlAbstractField *dataField)