00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022
00023
00024
00025 #include "vos/vos.hh"
00026 #include <vos/metaobjects/property/property.hh>
00027 #include "select.hh"
00028
00029 using namespace VOSGUI;
00030
00031
00032 Select::Select(MetaObject* s) : MetaObject(s), Widget(s)
00033 {
00034 }
00035
00036
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
00058
00059 const string Select::getType() {
00060 return string("gui:widget.select");
00061 }
00062
00063
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