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_file.hh"
00026
00027 using namespace VOSGUI;
00028
00029
00030 FileInput::FileInput(MetaObject* s) : MetaObject(s), Widget(s), Input(s)
00031 {
00032 }
00033
00034
00035 FileInput::~FileInput() {
00036 }
00037
00038
00039 LocalFileInput::LocalFileInput(MetaObject* s) : FileInput(s), MetaObject(s), LocalWidget(s), Widget(s), LocalInput(s), Input(s)
00040 {
00041 }
00042
00043 LocalFileInput::~LocalFileInput() {
00044 }
00045
00046
00047 RemoteFileInput::RemoteFileInput(MetaObject* s) : FileInput(s), MetaObject(s), Widget(s), RemoteWidget(s), RemoteInput(s), Input(s)
00048 {
00049 }
00050
00051 RemoteFileInput::~RemoteFileInput() {
00052 }
00053
00054
00055
00056 const string FileInput::getType() {
00057 return string("gui:widget.input.file");
00058 }
00059
00060
00061 void FileInput::registerExtenders() {
00062 LocalSite::addLocalObjectExtension(typeid(LocalFileInput).name(), &LocalFileInput::new_LocalFileInput);
00063 LocalSite::addLocalObjectExtension(typeid(FileInput).name(), &LocalFileInput::new_LocalFileInput);
00064 LocalSite::addLocalObjectExtension("gui:widget.input.file", &LocalFileInput::new_LocalFileInput);
00065 RemoteSite::addRemoteObjectExtension(typeid(RemoteFileInput).name(), &RemoteFileInput::new_RemoteFileInput);
00066 RemoteSite::addRemoteObjectExtension(typeid(FileInput).name(), &RemoteFileInput::new_RemoteFileInput);
00067 RemoteSite::addRemoteObjectExtension("gui:widget.input.file", &RemoteFileInput::new_RemoteFileInput);
00068 }
00069
00070
00071
00072
00073 MetaObject* LocalFileInput::new_LocalFileInput(MetaObject *s, const string& type) {
00074 LocalFileInput* o = new LocalFileInput(s);
00075 return o;
00076 }
00077
00078 MetaObject* RemoteFileInput::new_RemoteFileInput(MetaObject *s, const string& type) {
00079 return new RemoteFileInput(s);
00080 }
00081