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/input_color.cc

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

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