Main Page | Modules | Namespace List | Class Hierarchy | Alphabetical List | Compound List | File List | Namespace Members | Compound Members | File Members | Related Pages | Examples

vos/gui/gui/select.cc

Go to the documentation of this file.
00001 /* $Id: select.cc,v 1.5 2003/07/22 05:09:05 tetron Exp $ */
00002 
00003 
00004 /*
00005     Copyright (C) 2002 Reed Hedges
00006 
00007     This library is free software; you can redistribute it and/or
00008     modify it under the terms of the GNU Lesser General Public
00009     License as published by the Free Software Foundation; either
00010     version 2 of the License, or (at your option) any later version.
00011 
00012     This library is distributed in the hope that it will be useful,
00013     but WITHOUT ANY WARRANTY; without even the implied warranty of
00014     MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
00015     Lesser General Public License for more details.
00016 
00017     You should have received a copy of the GNU Lesser General Public
00018     License along with this library; if not, write to the Free Software
00019     Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307  USA
00020 
00021 */
00022 
00023 /** @file select.cc Code: a MetaObject for Select object types. */
00024 
00025 #include "vos/vos.hh"
00026 #include <vos/metaobjects/property/property.hh>
00027 #include "select.hh"
00028 
00029 using namespace VOSGUI;
00030 
00031 /* Constructor */
00032 Select::Select(MetaObject* s) : MetaObject(s), Widget(s)
00033 {
00034 }
00035 
00036 /* Destructor */
00037 Select::~Select() {
00038 }
00039 
00040 
00041 LocalSelect::LocalSelect(MetaObject* s) : Select(s), MetaObject(s), Widget(s), LocalWidget(s)
00042 {
00043 }
00044 
00045 LocalSelect::~LocalSelect() {
00046 }
00047 
00048 
00049 
00050 RemoteSelect::RemoteSelect(MetaObject* s) : Select(s), MetaObject(s), Widget(s), RemoteWidget(s)
00051 {
00052 }
00053 
00054 RemoteSelect::~RemoteSelect() {
00055 }
00056 
00057 /* Return type string ("gui:widget.select") */
00058 
00059 const string Select::getType() {
00060     return string("gui:widget.select");
00061 }
00062 
00063 /* Register extenders with libvos MetaFactory */
00064 void Select::registerExtenders() {
00065     LocalSite::addLocalObjectExtension(typeid(LocalSelect).name(), &LocalSelect::new_LocalSelect);
00066     LocalSite::addLocalObjectExtension(typeid(Select).name(), &LocalSelect::new_LocalSelect);
00067     LocalSite::addLocalObjectExtension("gui:widget.select", &LocalSelect::new_LocalSelect);
00068     RemoteSite::addRemoteObjectExtension(typeid(RemoteSelect).name(), &RemoteSelect::new_RemoteSelect);
00069     RemoteSite::addRemoteObjectExtension(typeid(Select).name(), &RemoteSelect::new_RemoteSelect);
00070     RemoteSite::addRemoteObjectExtension("gui:widget.select", &RemoteSelect::new_RemoteSelect);
00071 }
00072 
00073 
00074 
00075 
00076 MetaObject* LocalSelect::new_LocalSelect(MetaObject *s, const string& type) {
00077     LocalSelect* o = new LocalSelect(s);
00078     return o;
00079 }
00080 
00081 MetaObject* RemoteSelect::new_RemoteSelect(MetaObject *s, const string& type) {
00082     return new RemoteSelect(s);
00083 }
00084 

Generated on Tue Aug 12 03:55:43 2003 for Interreality Project - VOS by doxygen 1.3.2