Go to the source code of this file.
Definition in file button.hh.
|
|
|
Value: { \ LocalSite::addLocalObjectExtension(typeid(CLASS).name(), &CLASS::new_##CLASS); \ vRef<MetaObject> o = (SITE)->createMetaObject(#CLASS, typeid(CLASS).name(), 0); \ vRef<CLASS> b = MetaObject::meta_cast<CLASS*>(&o); \ assert(&b); \ b->initialize(&NoPropertyAccessControl::static_); \ b->setup(DATA); \ (PARENT)->insertChild(-1, #CLASS, &o); \ }
|
|
Value: class CLASS : public virtual VOSGUI::LocalButton { \ protected: \ vRef<DATA> data; \ public: \ CLASS(MetaObject* super) : VOSGUI::LocalButton(super), VOSGUI::Button(super), VOSGUI::LocalWidget(super), VOSGUI::Widget(super), MetaObject(super) { \ }\ static MetaObject* new_##CLASS (MetaObject* super, const string& type) { \ return new CLASS(super); \ }\ void setup(DATA* data_p = 0) { \ data = data_p; \ setLabel(LABEL); \ }\ virtual void push(const string& userid = ""); \ };
|