Documentation


X3DTK::Qt::MField< TypeSField > Class Template Reference

#include <Fields.h>

Inheritance diagram for X3DTK::Qt::MField< TypeSField >:

X3DTK::Qt::AbstractMField X3DTK::Qt::Field X3DTK::Qt::MFVector2 X3DTK::Qt::MFVector3 X3DTK::Qt::MFVector4 X3DTK::Qt::X3DMFRotation X3DTK::Qt::X3DMFVec2f X3DTK::Qt::X3DMFVec3f List of all members.

Detailed Description

template<typename TypeSField>
class X3DTK::Qt::MField< TypeSField >

A pure abstract Multiple fields.

Definition at line 160 of file Fields.h.

Public Member Functions

 MField (QString name, void *pointer, unsigned int nbColumns=1, bool edit=false)
 The main controller GUI.

virtual QWidgetSFieldGUI (QString name, TypeSField *ptr, QWidget *parent)=0
 the corresponding field GUI (Graphique User Interface)

virtual void add (QWidget *parent)
 Add the corresponding field GUI (Graphique User Interface) to the parameter QWidget * parent.

virtual QString read ()
 Read the multiple fields of this field from the attribute Field::pointer.

virtual void write (QString s)
 Write the multiple fields from a QString through the attribute Field::pointer.


Protected Attributes

QWidgetMFtab
 The page corresponding to this MField in the GUI (Graphique User Interface).

QGridLayout * MFtabLayout
 The layout of the attribute MField::MFtab.

std::list< QWidget * > chidrenMFtabList
 The QWidget list corresponding to the children of the attribute MField::MFtab.

ObjectGUIobjectGUI
 The QWidget parent of MFtab.


Constructor & Destructor Documentation

template<typename TypeSField>
X3DTK::Qt::MField< TypeSField >::MField QString  name,
void *  pointer,
unsigned int  nbColumns = 1,
bool  edit = false
[inline]
 

The main controller GUI.

Definition at line 174 of file Fields.h.


Member Function Documentation

template<typename TypeSField>
void X3DTK::Qt::MField< TypeSField >::add QWidget parent  )  [virtual]
 

Add the corresponding field GUI (Graphique User Interface) to the parameter QWidget * parent.

Implements X3DTK::Qt::Field.

Definition at line 25 of file Fields.cpp.

References X3DTK::Qt::MField< TypeSField >::chidrenMFtabList, X3DTK::Qt::MField< TypeSField >::MFtab, X3DTK::Qt::MField< TypeSField >::MFtabLayout, X3DTK::Qt::MField< TypeSField >::objectGUI, and X3DTK::Qt::MField< TypeSField >::SFieldGUI().

Referenced by X3DTK::Qt::MField< TypeSField >::write().

template<typename TypeSField>
QString X3DTK::Qt::MField< TypeSField >::read  )  [virtual]
 

Read the multiple fields of this field from the attribute Field::pointer.

Implements X3DTK::Qt::AbstractMField.

Definition at line 87 of file Fields.cpp.

template<typename TypeSField>
virtual QWidget* X3DTK::Qt::MField< TypeSField >::SFieldGUI QString  name,
TypeSField *  ptr,
QWidget parent
[pure virtual]
 

the corresponding field GUI (Graphique User Interface)

Implemented in X3DTK::Qt::MFFloat, and X3DTK::Qt::MFInt.

Referenced by X3DTK::Qt::MField< TypeSField >::add().

template<typename TypeSField>
void X3DTK::Qt::MField< TypeSField >::write QString  s  )  [virtual]
 

Write the multiple fields from a QString through the attribute Field::pointer.

Implements X3DTK::Qt::AbstractMField.

Definition at line 106 of file Fields.cpp.

References X3DTK::Qt::MField< TypeSField >::add(), X3DTK::Qt::MField< TypeSField >::objectGUI, and X3DTK::Qt::ObjectGUI::ok().


Member Data Documentation

template<typename TypeSField>
std::list<QWidget *> X3DTK::Qt::MField< TypeSField >::chidrenMFtabList [protected]
 

The QWidget list corresponding to the children of the attribute MField::MFtab.

Definition at line 167 of file Fields.h.

Referenced by X3DTK::Qt::MField< TypeSField >::add().

template<typename TypeSField>
QWidget* X3DTK::Qt::MField< TypeSField >::MFtab [protected]
 

The page corresponding to this MField in the GUI (Graphique User Interface).

Definition at line 163 of file Fields.h.

Referenced by X3DTK::Qt::MField< TypeSField >::add().

template<typename TypeSField>
QGridLayout* X3DTK::Qt::MField< TypeSField >::MFtabLayout [protected]
 

The layout of the attribute MField::MFtab.

Definition at line 165 of file Fields.h.

Referenced by X3DTK::Qt::MField< TypeSField >::add().

template<typename TypeSField>
ObjectGUI* X3DTK::Qt::MField< TypeSField >::objectGUI [protected]
 

The QWidget parent of MFtab.

Definition at line 169 of file Fields.h.

Referenced by X3DTK::Qt::MField< TypeSField >::add(), and X3DTK::Qt::MField< TypeSField >::write().


The documentation for this class was generated from the following files:
Generated on Thu Dec 23 13:52:34 2004 by doxygen 1.3.6