1 /*---------------------------------------------------------------------------*\
5 * Copyright (C) 2000-2002 by the OpenSG Forum *
9 * contact: dirk@opensg.org, gerrit.voss@vossg.org, jbehr@zgdv.de *
11 \*---------------------------------------------------------------------------*/
12 /*---------------------------------------------------------------------------*\
15 * This library is free software; you can redistribute it and/or modify it *
16 * under the terms of the GNU Library General Public License as published *
17 * by the Free Software Foundation, version 2. *
19 * This library is distributed in the hope that it will be useful, but *
20 * WITHOUT ANY WARRANTY; without even the implied warranty of *
21 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU *
22 * Library General Public License for more details. *
24 * You should have received a copy of the GNU Library General Public *
25 * License along with this library; if not, write to the Free Software *
26 * Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. *
28 \*---------------------------------------------------------------------------*/
29 /*---------------------------------------------------------------------------*\
37 \*---------------------------------------------------------------------------*/
40 #ifndef _OSGQTWINDOWDATAFIELDS_H_
41 #define _OSGQTWINDOWDATAFIELDS_H_
47 #include "OSGConfig.h"
49 #include "OSGWindowQT4Def.h"
51 #include "OSGQ4GLWidget_qt.h"
53 #include "OSGWindowFields.h"
57 /*! \ingroup GrpWindowQt4FieldTraits
60 typedef OSGQGLWidget
*OSGQGLWidgetP
;
62 /*! \ingroup GrpWindowQt4FieldTraits
66 struct FieldTraits
<OSGQGLWidgetP
>
67 : public FieldTraitsPtrToStringTemplateBase
<OSGQGLWidgetP
>
69 static DataType _type
;
70 typedef FieldTraits
<OSGQGLWidget
*> Self
;
72 enum { Convertible
= (Self::ToStringConvertible
|
73 Self::FromStringConvertible
) };
75 OSG_WINDOWQT4_DLLMAPPING
76 static DataType
&getType (void){return _type
;};
78 static const Char8
*getSName(void) { return "SFOSGQGLWidgetP"; }
79 static const Char8
*getMName(void) { return "MFOSGQGLWidgetP"; }
81 static bool getFromCString( OSGQGLWidgetP
&widget
,
89 static void putToString (const OSGQGLWidgetP
&,
92 outStr
.assign("OSGQGLWidgetP");
96 #ifndef DOXYGEN_SHOULD_SKIP_THIS
97 /*! \ingroup GrpWindowQt4FieldSFields */
98 typedef SField
<OSGQGLWidgetP
> SFOSGQGLWidgetP
;
100 /*! \ingroup GrpWindowQt4FieldMFields */
101 typedef MField
<OSGQGLWidgetP
> MFOSGQGLWidgetP
;
103 /*! \ingroup GrpWindowQt4FieldSFields \ingroup GrpLibOSGWindowQt4 */
104 struct SFOSGQGLWidgetP
: public SField
<OSGQGLWidgetP
> {};
106 /*! \ingroup GrpWindowQt4FieldMFields \ingroup GrpLibOSGWindowQt4 */
107 struct MFOSGQGLWidgetP
: public MField
<OSGQGLWidgetP
> {};
113 #endif /* _OSGQTWINDOWDATAFIELDS_H_ */