//----------------------------------------------------------------------- // Notifications // NOTE: Subsystem S1 is kept in globals for debug prupose //----------------------------------------------------------------------- void CFuiProbe::NotifyChildEvent(Tag idm,Tag itm,EFuiEvents evn) { switch (idm) { case 'sysb': SystemHandler(evn); return; case 'lsub': sBox.VScrollHandler((U_INT)itm,evn); return; case 'wpid': bPID.VScrollHandler((U_INT)itm,evn); ReplacePID(); return; case 'btn1': pob1.sub = GetSubsystem(pob1.btn); ViewSubsystem(pob1.sub,pob1); return; case 'btn2': pob2.sub = GetSubsystem(pob2.btn); ViewSubsystem(pob2.sub,pob2); return; case 'dpn1': pob1.box.VScrollHandler((U_INT)itm,evn); return; case 'dpn2': pob2.box.VScrollHandler((U_INT)itm,evn); return; case 'bdp1': ReplaceDependent(pob1,pob2); return; case 'bdp2': ReplaceDependent(pob2,pob1); } return; }
SubsystemPtr Application::GetSubsystem( const std::string& className ) { const Class* classType = Class::forName(className); if ( classType != NULL ) { return GetSubsystem( *classType ); } else { std::cerr << "Class name \"" << className << "\" not found in class registry." << std::endl; } return SubsystemPtr(); }