mirror of
https://github.com/gnustep/apps-gorm.git
synced 2025-04-22 22:20:44 +00:00
Corrected some behavior in the sound and image inspector.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/apps/gorm/trunk@19349 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
parent
a5eed116f1
commit
7377aafb21
4 changed files with 49 additions and 1 deletions
10
ChangeLog
10
ChangeLog
|
@ -1,3 +1,13 @@
|
|||
2004-05-16 07:20 Gregory John Casamento <greg_casamento@yahoo.com>
|
||||
|
||||
* GormSoundEditor.m: Added methods to GormSound class to
|
||||
show the "not applicable" inspector on all options but the
|
||||
attributes inspector.
|
||||
* GormImageEditor.m: same as above for GormImage.
|
||||
* GormInspectorsManager.m: Added code to show "Sound Inspector"
|
||||
or "Image Inspector" when appropriate for either GormSound or
|
||||
GormImage respectively.
|
||||
|
||||
2004-05-15 23:14 Gregory John Casamento <greg_casamento@yahoo.com>
|
||||
|
||||
* GormImageInspector.gorm: Repositioned fields.
|
||||
|
|
|
@ -567,4 +567,19 @@ static int handled_mask= NSDragOperationCopy|NSDragOperationGeneric|NSDragOperat
|
|||
{
|
||||
return @"GormImageInspector";
|
||||
}
|
||||
|
||||
- (NSString*) classInspectorClassName
|
||||
{
|
||||
return @"GormNotApplicableInspector";
|
||||
}
|
||||
|
||||
- (NSString*) connectInspectorClassName
|
||||
{
|
||||
return @"GormNotApplicableInspector";
|
||||
}
|
||||
|
||||
- (NSString*) sizeInspectorClassName
|
||||
{
|
||||
return @"GormNotApplicableInspector";
|
||||
}
|
||||
@end
|
||||
|
|
|
@ -440,6 +440,14 @@
|
|||
[panel setTitle: [NSString stringWithFormat: @"Class Edit Inspector:%@",
|
||||
[obj className]]];
|
||||
}
|
||||
else if ([obj isKindOfClass: [GormSound class]])
|
||||
{
|
||||
[panel setTitle: @"Sound Inspector"];
|
||||
}
|
||||
else if ([obj isKindOfClass: [GormImage class]])
|
||||
{
|
||||
[panel setTitle: @"Image Inspector"];
|
||||
}
|
||||
else
|
||||
{
|
||||
NSString *newTitle = [obj className];
|
||||
|
|
|
@ -618,6 +618,21 @@ static NSMapTable *docMap = 0;
|
|||
|
||||
- (NSString *)inspectorClassName
|
||||
{
|
||||
return @"GormSoundInspector"; //[self soundInspectorClassName];
|
||||
return @"GormSoundInspector";
|
||||
}
|
||||
|
||||
- (NSString*) classInspectorClassName
|
||||
{
|
||||
return @"GormNotApplicableInspector";
|
||||
}
|
||||
|
||||
- (NSString*) connectInspectorClassName
|
||||
{
|
||||
return @"GormNotApplicableInspector";
|
||||
}
|
||||
|
||||
- (NSString*) sizeInspectorClassName
|
||||
{
|
||||
return @"GormNotApplicableInspector";
|
||||
}
|
||||
@end
|
||||
|
|
Loading…
Reference in a new issue