changed: auto add updateData callback to stages so that stagedata can be updated...
[opensg.git] / Source / WindowSystem / QT4 / OSGQT4WindowDataFields.h
bloba0a778b2329a08262abfbb7048485347bd73f3ac
1 /*---------------------------------------------------------------------------*\
2 * OpenSG *
3 * *
4 * *
5 * Copyright (C) 2000-2002 by the OpenSG Forum *
6 * *
7 * www.opensg.org *
8 * *
9 * contact: dirk@opensg.org, gerrit.voss@vossg.org, jbehr@zgdv.de *
10 * *
11 \*---------------------------------------------------------------------------*/
12 /*---------------------------------------------------------------------------*\
13 * License *
14 * *
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. *
18 * *
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. *
23 * *
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. *
27 * *
28 \*---------------------------------------------------------------------------*/
29 /*---------------------------------------------------------------------------*\
30 * Changes *
31 * *
32 * *
33 * *
34 * *
35 * *
36 * *
37 \*---------------------------------------------------------------------------*/
40 #ifndef _OSGQTWINDOWDATAFIELDS_H_
41 #define _OSGQTWINDOWDATAFIELDS_H_
42 #ifdef __sgi
43 #pragma once
44 #endif
47 #include "OSGConfig.h"
49 #include "OSGWindowQT4Def.h"
51 #include "OSGQ4GLWidget_qt.h"
53 #include "OSGWindowFields.h"
55 OSG_BEGIN_NAMESPACE
57 /*! \ingroup GrpWindowQt4FieldTraits
60 typedef OSGQGLWidget *OSGQGLWidgetP;
62 /*! \ingroup GrpWindowQt4FieldTraits
65 template <>
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,
82 const Char8 *)
84 widget = NULL;
86 return true;
89 static void putToString (const OSGQGLWidgetP &,
90 std::string &outStr)
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;
102 #else
103 /*! \ingroup GrpWindowQt4FieldSFields \ingroup GrpLibOSGWindowQt4 */
104 struct SFOSGQGLWidgetP : public SField<OSGQGLWidgetP> {};
106 /*! \ingroup GrpWindowQt4FieldMFields \ingroup GrpLibOSGWindowQt4 */
107 struct MFOSGQGLWidgetP : public MField<OSGQGLWidgetP> {};
108 #endif
110 OSG_END_NAMESPACE
113 #endif /* _OSGQTWINDOWDATAFIELDS_H_ */