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

Go to the documentation of this file.
00001 /* $Id:$ */
00002 
00003 
00004 /* This file was generated by otd2cpp.pl, a script for VOS by Reed Hedges <reed@zerohour.net>.
00005    Search for TODO for stuff that needs editing. You will want to especially fill in constructors,
00006    destructors, message handlers, non-property subobjects...
00007 
00008    I can make no guarantee that this code will work, or even that it even is safe to run.
00009    Use it at your own risk.
00010 */
00011 
00012 /** @file menuBar.cc Code: a MetaObject for MenuBar object types. */
00013 
00014 #include "vos/vos.hh"
00015 #include "property/property.hh"
00016 #include "menuBar.hh"
00017 
00018 using namespace VOSGUI;
00019 
00020 /* Constructor */
00021 MenuBar::MenuBar(MetaObject* s) : MetaObject(s)
00022 {
00023     accessControl = &NoPropertyAccessControl::static_;
00024 }
00025 
00026 /* Destructor */
00027 MenuBar::~MenuBar() {
00028 }
00029 
00030 /* Get/Set default AC */
00031 void MenuBar::setPropertyAccessControl(PropertyAccessControl* ac) {
00032     accessControl = ac;
00033 }
00034 PropertyAccessControl* MenuBar::getPropertyAccessControl() {
00035     return accessControl;
00036 }
00037 
00038 LocalMenuBar::LocalMenuBar(MetaObject* s) : MenuBar(s), MetaObject(s)
00039 {
00040     accessControl = &NoPropertyAccessControl::static_;
00041 }
00042 
00043 LocalMenuBar::~LocalMenuBar() {
00044 }
00045 
00046 /* Initialize required subobjects: */
00047 
00048 void LocalMenuBar::initialize(PropertyAccessControl* ac) {
00049     accessControl = ac;
00050     initialize();
00051 }
00052 
00053 void LocalMenuBar::initialize() {
00054 
00055     vRef<LocalSite> localsite = Site::getDefaultPeer();
00056 }
00057 
00058 RemoteMenuBar::RemoteMenuBar(MetaObject* s) : MenuBar(s), MetaObject(s)
00059 {
00060 }
00061 
00062 RemoteMenuBar::~RemoteMenuBar() {
00063 }
00064 
00065 /* Return type string ("gui:menuBar") */
00066 
00067 const string MenuBar::getType() {
00068     return string("gui:menuBar");
00069 }
00070 
00071 /* Register extenders with libvos MetaFactory */
00072 void MenuBar::registerExtenders() {
00073     LocalSite::addLocalObjectExtension(typeid(LocalMenuBar).name(), &LocalMenuBar::new_LocalMenuBar);
00074     LocalSite::addLocalObjectExtension(typeid(MenuBar).name(), &LocalMenuBar::new_LocalMenuBar);
00075     LocalSite::addLocalObjectExtension("gui:menuBar", &LocalMenuBar::new_LocalMenuBar);
00076     RemoteSite::addRemoteObjectExtension(typeid(RemoteMenuBar).name(), &RemoteMenuBar::new_RemoteMenuBar);
00077     RemoteSite::addRemoteObjectExtension(typeid(MenuBar).name(), &RemoteMenuBar::new_RemoteMenuBar);
00078     RemoteSite::addRemoteObjectExtension("gui:menuBar", &RemoteMenuBar::new_RemoteMenuBar);
00079 }
00080 
00081 /* Get and set Subproperties and other Subobjects */
00082 
00083 
00084 /* Process local object messages */
00085 /* XXX probably not necesary, since handler methods are registered
00086    in the generator (new_*)
00087 */
00088 void LocalMenuBar::sendMessage(Message* m) {
00089 
00090     /* Let superclass have message */
00091     MenuBar::sendMessage(m);
00092 }
00093 
00094 
00095 
00096 
00097 
00098 /* Process remote update messages */
00099 void RemoteMenuBar::sendUpdateMessage(Message* m) {
00100 
00101 
00102     /* branch to update message handlers specific to RemoteMenuBar 
00103 
00104     This method is very redundant if handlers have already been registered as 
00105     callbacks, but here is how you would do it: */
00106 
00107     /* let superclass have message... */
00108     MenuBar::sendUpdateMessage(m);
00109 }
00110 
00111 /* Local Actuators: */
00112 
00113 /* Message Handlers:  */
00114 
00115 /* Remote Actuators: */
00116 
00117 
00118 /* Generators for factory */
00119 
00120 
00121 MetaObject* LocalMenuBar::new_LocalMenuBar(MetaObject *s, const string& type) {
00122     LocalMenuBar* o = new LocalMenuBar(s);
00123     return o;
00124 }
00125 
00126 MetaObject* RemoteMenuBar::new_RemoteMenuBar(MetaObject *s, const string& type) {
00127     return new RemoteMenuBar(s);
00128 }
00129 

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