Developer documentation | Axl-2.5.1

axlInspectorObjectManagerList.cpp
Go to the documentation of this file.
1 /* axlInspectorObjectManagerList.cpp ---
2  *
3  * Author: Meriadeg Perrinel
4  * Copyright (C) 2008 - Meriadeg Perrinel, Inria.
5  * Created: Mon Mar 14 18:25:24 2011 (+0100)
6  * Version: $Id$
7  * Last-Updated: Mon Mar 14 18:25:57 2011 (+0100)
8  * By: Meriadeg Perrinel
9  * Update #: 3
10  */
11 
12 /* Commentary:
13  *
14  */
15 
16 /* Change log:
17  *
18  */
19 
22 
25 
26 
27 class axlInspectorObjectManagerListPrivate
28 {
29 public:
30  axlAbstractData *axlData;
31 
32 
33  //public:
34  // QList<axlInspectorObjectManagerListItem *> itemList;
35 };
36 
37 axlInspectorObjectManagerList::axlInspectorObjectManagerList(QWidget *parent) : QListWidget(parent), d(new axlInspectorObjectManagerListPrivate)
38 {
39  d->axlData = NULL;
40 
41  this->setAttribute(Qt::WA_MacShowFocusRect, false);
42  this->setFrameShape(QFrame::NoFrame);
43 }
44 
46 {
47  delete d;
48 
49  d = NULL;
50 }
51 
53 {
54  return d->axlData;
55 }
56 
58 {
59  this->clear();
60 
61  d->axlData = data;
62 
63  foreach(axlAbstractField *field, data->fields()){
64  this->addItem(new axlInspectorObjectManagerListItem(field->name(), field,this));
65  }
66 
67 }
Class axlAbstractField defines an API for arrays of numeric data.
QList< axlAbstractField * > fields(void)
Class axlAbstractData defines an API for all type of axel data.