00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
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
00030 ColorInput::ColorInput(MetaObject* s) : MetaObject(s), Widget(s), Input(s)
00031 {
00032 }
00033
00034
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
00055
00056 const string ColorInput::getType() {
00057 return string("gui:widget.input.color");
00058 }
00059
00060
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
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