00001 /*---------------------------------------------------------------------------*\ 00002 * OpenSG * 00003 * * 00004 * * 00005 * Copyright (C) 2000-2002 by the OpenSG Forum * 00006 * * 00007 * www.opensg.org * 00008 * * 00009 * contact: dirk@opensg.org, gerrit.voss@vossg.org, jbehr@zgdv.de * 00010 * * 00011 \*---------------------------------------------------------------------------*/ 00012 /*---------------------------------------------------------------------------*\ 00013 * License * 00014 * * 00015 * This library is free software; you can redistribute it and/or modify it * 00016 * under the terms of the GNU Library General Public License as published * 00017 * by the Free Software Foundation, version 2. * 00018 * * 00019 * This library is distributed in the hope that it will be useful, but * 00020 * WITHOUT ANY WARRANTY; without even the implied warranty of * 00021 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU * 00022 * Library General Public License for more details. * 00023 * * 00024 * You should have received a copy of the GNU Library General Public * 00025 * License along with this library; if not, write to the Free Software * 00026 * Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. * 00027 * * 00028 \*---------------------------------------------------------------------------*/ 00029 /*---------------------------------------------------------------------------*\ 00030 * Changes * 00031 * * 00032 * * 00033 * * 00034 * * 00035 * * 00036 * * 00037 \*---------------------------------------------------------------------------*/ 00038 00039 #include "OSGQFieldEditorFactory.h" 00040 #include "OSGQFieldView_qt.h" 00041 #include "OSGQFieldEditor_qt.h" 00042 00043 OSG_USING_NAMESPACE 00044 00045 #ifdef __sgi 00046 #pragma set woff 1174 00047 #endif 00048 00049 namespace 00050 { 00051 static Char8 cvsid_cpp[] = "@(#)$Id: OSGQFieldEditorFactory.cpp,v 1.1 2003/05/07 14:03:40 neumannc Exp $"; 00052 static Char8 cvsid_hpp[] = OSGQFIELDEDITORFACTORY_HEADER_CVSID; 00053 // static Char8 cvsid_inl[] = OSGQFIELDEDITORFACTORY_INLINE_CVSID; 00054 } 00055 00056 #ifdef __sgi 00057 #pragma reset woff 1174 00058 #endif 00059 00060 QFieldEditorFactory *QFieldEditorFactory::_the = 0; 00061 00062 QFieldEditorFactory::~QFieldEditorFactory(void) 00063 { 00064 } 00065 00066 QFieldEditorFactory & 00067 QFieldEditorFactory::the(void) 00068 { 00069 if(!_the) 00070 _the = new QFieldEditorFactory; 00071 00072 return *_the; 00073 } 00074 00075 QFieldEditorBase * 00076 QFieldEditorFactory::createEditor( QFieldViewBase *pView, 00077 const char *name ) 00078 { 00079 return new QGenericFieldEditor(pView, name); 00080 } 00081 00082 QFieldEditorBase * 00083 QFieldEditorFactory::createEditor( UInt32 uiIndex, QFieldViewBase *pView, 00084 const char *name) 00085 { 00086 return new QGenericFieldEditor(uiIndex, pView, name); 00087 } 00088 00089 QFieldEditorFactory::QFieldEditorFactory(void) 00090 { 00091 }
1.5.5