Returns instantiated component based on the given "Model" name. If there is no such component registers the function returns NULL.
| 76 | // Returns instantiated component based on the given "Model" name. If |
| 77 | // there is no such component registers the function returns NULL. |
| 78 | Component * Module::getComponent (QString Model) { |
| 79 | if ( Modules.contains(Model)) { |
| 80 | Module *m = Modules.find(Model).value(); |
| 81 | QString Name; |
| 82 | char * File; |
| 83 | QString vaBitmap; |
| 84 | if (vaComponents.contains(Model)) |
| 85 | return (Component *) |
| 86 | vacomponent::info (Name, vaBitmap, true, vaComponents[Model]); |
| 87 | else |
| 88 | return (Component *) m->info (Name, File, true); |
| 89 | } |
| 90 | return 0; |
| 91 | } |
| 92 | |
| 93 | void Module::registerDynamicComponents() |
| 94 | { |