Developer documentation | Axl-2.5.1

axlViewController.h
Go to the documentation of this file.
1 /* axlViewController.h ---
2  *
3  * Author: Meriadeg Perrinel
4  * Copyright (C) 2008 - Meriadeg Perrinel, Inria.
5  * Created: Tue Nov 9 16:58:59 2010 (+0100)
6  * Version: $Id$
7  * Last-Updated: Mon Dec 6 15:46:18 2010 (+0100)
8  * By: Meriadeg Perrinel
9  * Update #: 21
10  */
11 
12 /* Commentary:
13  *
14  */
15 
16 /* Change log:
17  *
18  */
19 
20 #ifndef AXLVIEWCONTROLER_H
21 #define AXLVIEWCONTROLER_H
22 
23 #include "axlCoreExport.h"
24 
25 #include <QtCore/QObject>
26 
27 class dtkAbstractData;
29 class axlAbstractField;
30 class axlAbstractActor;
31 class axlAbstractData;
32 class axlViewControllerPrivate;
33 
34 class AXLCORE_EXPORT axlViewController : public QObject
35 {
36  Q_OBJECT
37 
38 public:
39  axlViewController(void);
40  virtual ~axlViewController(void);
41 
42  axlAbstractActor *actor(dtkAbstractData *data);
43  dtkAbstractData *data(axlAbstractActor *actor);
44 
45  QList<dtkAbstractData *> data(void);
46 
47  int size(void);
48 
49  axlAbstractActorField *actorField(axlAbstractField *dataField);
50  axlAbstractField *dataField(axlAbstractActorField *actorField);
51 
52  QList<axlAbstractField *> dataField(void);
53 
54  int sizeField(void);
55 
56  bool contains(axlAbstractData *data);
57 
58 signals:
59  void inserted(void);
60  void insertedField(void);
61 
62 public slots:
63  bool insert(dtkAbstractData *data, axlAbstractActor *actor);
64  void remove(dtkAbstractData *data);
65 
66  bool insertField(axlAbstractField *dataField, axlAbstractActorField *actorField);
67  void removeField(axlAbstractField *dataField);
68 
69 public:
70  virtual QString description(void) const;
71 
72 private:
73  axlViewControllerPrivate *d;
74 };
75 
76 #endif //AXLVIEWCONTROLER_H
Class axlAbstractField defines an API for arrays of numeric data.
#define AXLCORE_EXPORT
Class axlAbstractData defines an API for all type of axel data.