| 46 | } |
| 47 | |
| 48 | void EditorIconRegistry::loadFromPath( const String &path, bool overwrite ) |
| 49 | { |
| 50 | AbstractClassRep *classRep = AbstractClassRep::getClassList(); |
| 51 | while ( classRep ) |
| 52 | { |
| 53 | String iconFile = String::ToString( "%s%s", path.c_str(), classRep->getClassName() ); |
| 54 | add( classRep->getClassName(), iconFile.c_str(), overwrite ); |
| 55 | classRep = classRep->getNextClass(); |
| 56 | } |
| 57 | |
| 58 | String defaultIconFile = path + "default"; |
| 59 | |
| 60 | mDefaultIcon.set( defaultIconFile, |
| 61 | &GFXDefaultPersistentProfile, |
| 62 | avar("%s() - mIcons[] (line %d)", |
| 63 | __FUNCTION__, __LINE__) ); |
| 64 | } |
| 65 | |
| 66 | void EditorIconRegistry::add( const String &className, const String &imageFile, bool overwrite ) |
| 67 | { |
no test coverage detected