mirror of
https://github.com/gnustep/apps-gorm.git
synced 2025-04-22 22:20:44 +00:00
Update to data.classes format and layout changes.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/apps/gorm/trunk@20532 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
parent
6663b0eced
commit
64e6c59d8a
10 changed files with 37 additions and 118 deletions
12
ChangeLog
12
ChangeLog
|
@ -1,3 +1,15 @@
|
|||
2005-01-09 01:36 Gregory John Casamento <greg_casamento@yahoo.com>
|
||||
|
||||
* ClassInformation.plist: Added missing changeFont: method.
|
||||
* GormClassManager.m: Changed code to read only the additions to
|
||||
FirstResponder from the data.classes file.
|
||||
* GormFilePrefsManager.m: Updated version to 0.8.7.
|
||||
* GormImageEditor.m: Made some logs "debug".
|
||||
* GormInfo.plist: Updated version.
|
||||
* GormInternalViewEditor.m: Made some logs "debug".
|
||||
* Palettes/1Windows/GormNSWindowInspector.gorm: Changes to layout
|
||||
* Palettes/1Windows/GormNSWindowSizeInspector.gorm: Same.
|
||||
|
||||
2005-01-08 18:36 Gregory John Casamento <greg_casamento@yahoo.com>
|
||||
|
||||
* GormImage.h: Moved the declaration for setArchiveByName: here.
|
||||
|
|
|
@ -10,6 +10,7 @@
|
|||
"cancel:",
|
||||
"capitalizeWord:",
|
||||
"changeColor:",
|
||||
"changeFont:",
|
||||
"checkSpelling:",
|
||||
"close:",
|
||||
"complete:",
|
||||
|
|
|
@ -39,6 +39,21 @@
|
|||
#include <GormObjCHeaderParser/OCMethod.h>
|
||||
#include <GormObjCHeaderParser/OCIVar.h>
|
||||
|
||||
/**
|
||||
* Just a few definitions to start things out. To increase efficiency,
|
||||
* so that Gorm doesn't need to constantly derive the method list for
|
||||
* each class, it is necessary to cache some information. Here is the
|
||||
* way it works.
|
||||
*
|
||||
* Actions = All actions on that class, excluding superclass methods.
|
||||
* AllActions = All actions on that class including superclass methods.
|
||||
* ExtraActions = All actions added during this session.
|
||||
*
|
||||
* Outlets = All actions on that class, excluding superclass methods.
|
||||
* AllOutlets = All actions on that class including superclass methods.
|
||||
* ExtraOutlets = All actions added during this session.
|
||||
*/
|
||||
|
||||
/** Private methods not accesible from outside */
|
||||
@interface GormClassManager (Private)
|
||||
- (NSMutableDictionary*) classInfoForClassName: (NSString*)className;
|
||||
|
@ -64,11 +79,11 @@
|
|||
|
||||
- (void) mergeObjectsFromArray: (NSArray *)array
|
||||
{
|
||||
NSEnumerator *enumerator = [array objectEnumerator];
|
||||
id obj = nil;
|
||||
|
||||
if(array != nil)
|
||||
{
|
||||
NSEnumerator *enumerator = [array objectEnumerator];
|
||||
while ((obj = [enumerator nextObject]) != nil)
|
||||
{
|
||||
[self mergeObject: obj];
|
||||
|
@ -104,9 +119,6 @@
|
|||
customClassMap = [[NSMutableDictionary alloc] initWithCapacity: 10];
|
||||
categoryClasses = [[NSMutableArray alloc] initWithCapacity: 1];
|
||||
|
||||
// add first responder so that it may be edited.
|
||||
[customClasses addObject: @"FirstResponder"];
|
||||
|
||||
// add the imported classes to the class information list...
|
||||
[classInformation addEntriesFromDictionary: [palettesManager importedClasses]];
|
||||
}
|
||||
|
@ -120,6 +132,7 @@
|
|||
[[NSNotificationCenter defaultCenter]
|
||||
postNotificationName: GormDidModifyClassNotification
|
||||
object: self];
|
||||
|
||||
[document touch];
|
||||
}
|
||||
|
||||
|
@ -1348,11 +1361,6 @@
|
|||
[customClasses addObject: key];
|
||||
[classInformation setObject: classDict forKey: key];
|
||||
}
|
||||
else if([key isEqual: @"FirstResponder"] == YES)
|
||||
{
|
||||
[customClasses addObject: key];
|
||||
[classInformation setObject: classDict forKey: key];
|
||||
}
|
||||
else
|
||||
{
|
||||
NSMutableArray *actions = [classDict objectForKey: @"Actions"];
|
||||
|
@ -1362,21 +1370,11 @@
|
|||
// remove any duplicate actions...
|
||||
if(origActions != nil)
|
||||
{
|
||||
NSEnumerator *en = [actions objectEnumerator];
|
||||
id action = nil;
|
||||
|
||||
allActions = [NSMutableArray arrayWithArray: origActions];
|
||||
|
||||
[actions removeObjectsInArray: origActions];
|
||||
[allActions addObjectsFromArray: actions];
|
||||
[info setObject: allActions forKey: @"AllActions"];
|
||||
|
||||
// take out any duplicates which might be present.
|
||||
while((action = [en nextObject]) != nil)
|
||||
{
|
||||
if([origActions containsObject: action])
|
||||
{
|
||||
[actions removeObject: action];
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
// if there are any action methods left after the process above,
|
||||
|
|
|
@ -85,7 +85,7 @@ NSString *formatVersion(int version)
|
|||
|
||||
+ (int) currentVersion
|
||||
{
|
||||
return appVersion(0,8,5);
|
||||
return appVersion(0,8,7);
|
||||
}
|
||||
|
||||
- (void) awakeFromNib
|
||||
|
|
|
@ -264,7 +264,7 @@ static int handled_mask= NSDragOperationCopy|NSDragOperationGeneric|NSDragOperat
|
|||
// This *WILL* leak, but I don't want it crashing on people.
|
||||
|
||||
RELEASE(objects);
|
||||
NSLog(@"Released...");
|
||||
NSDebugLog(@"Released...");
|
||||
}
|
||||
|
||||
- (void) close
|
||||
|
|
|
@ -14,9 +14,9 @@
|
|||
ApplicationDescription = "[GNUstep | Graphical] Object Relationship Modeller";
|
||||
ApplicationIcon = "Gorm.tiff";
|
||||
ApplicationName = "Gorm";
|
||||
ApplicationRelease = "Gorm 0.8.5 (Alpha)";
|
||||
ApplicationRelease = "Gorm 0.8.7 (Alpha)";
|
||||
Authors = ("Gregory John Casamento <greg_casamento@yahoo.com>","Richard Frith-Macdonald <rfm@gnu.org>","Pierre-Yves Rivaille <pyrivail@ens-lyon.fr>");
|
||||
Copyright = "Copyright (C) 1999, 2000, 2001, 2002, 2003, 2004 FSF";
|
||||
CopyrightDescription = "Released under the GNU General Public License 2.0";
|
||||
NSBuildVersion = "0.8.5 Jan 8 2005";
|
||||
NSBuildVersion = "0.8.7 Jan 8 2005";
|
||||
}
|
||||
|
|
|
@ -444,7 +444,7 @@ static NSImage *horizontalImage;
|
|||
}
|
||||
else
|
||||
{
|
||||
NSLog(@"WARNING -- strange case");
|
||||
NSDebugLog(@"WARNING -- strange case");
|
||||
result = self;
|
||||
}
|
||||
}
|
||||
|
|
|
@ -1,11 +1,5 @@
|
|||
{
|
||||
"## Comment" = "Do NOT change this file, Gorm maintains it";
|
||||
FirstResponder = {
|
||||
Actions = (
|
||||
"changeFont:"
|
||||
);
|
||||
Super = NSObject;
|
||||
};
|
||||
GormWindowInspector = {
|
||||
Actions = (
|
||||
);
|
||||
|
|
Binary file not shown.
|
@ -1,78 +1,5 @@
|
|||
{
|
||||
"## Comment" = "Do NOT change this file, Gorm maintains it";
|
||||
FirstResponder = {
|
||||
Actions = (
|
||||
"alignCenter:",
|
||||
"alignLeft:",
|
||||
"arrangeInFront:",
|
||||
"capitalizeWord:",
|
||||
"changeFont:",
|
||||
"close:",
|
||||
"copy:",
|
||||
"copyRuler:",
|
||||
"delete:",
|
||||
"deleteForward:",
|
||||
"deleteToBeginningOfParagraph:",
|
||||
"deleteToEndOfParagraph:",
|
||||
"deleteWordBackward:",
|
||||
"deminiaturize:",
|
||||
"fax:",
|
||||
"hideOtherApplications:",
|
||||
"loosenKerning:",
|
||||
"lowercaseWord:",
|
||||
"miniaturize:",
|
||||
"moveBackward:",
|
||||
"moveDown:",
|
||||
"moveForward:",
|
||||
"moveLeft:",
|
||||
"moveToBeginningOfDocument:",
|
||||
"moveToBeginningOfParagraph:",
|
||||
"moveToEndOfLine:",
|
||||
"moveUp:",
|
||||
"moveWordBackward:",
|
||||
"moveWordForward:",
|
||||
"newDocument:",
|
||||
"openDocument:",
|
||||
"orderFront:",
|
||||
"orderFrontDataLinkPanel:",
|
||||
"orderFrontStandardAboutPanel:",
|
||||
"orderOut:",
|
||||
"pageUp:",
|
||||
"pasteAsPlainText:",
|
||||
"pasteFont:",
|
||||
"performClose:",
|
||||
"performZoom:",
|
||||
"raiseBaseline:",
|
||||
"runPageLayout:",
|
||||
"saveAllDocuments:",
|
||||
"saveDocumentAs:",
|
||||
"scrollLineDown:",
|
||||
"scrollPageDown:",
|
||||
"scrollViaScroller:",
|
||||
"selectLine:",
|
||||
"selectParagraph:",
|
||||
"selectToMark:",
|
||||
"selectWord:",
|
||||
"showGuessPanel:",
|
||||
"showWindow:",
|
||||
"subscript:",
|
||||
"swapWithMark:",
|
||||
"takeFloatValueFrom:",
|
||||
"takeObjectValueFrom:",
|
||||
"terminate:",
|
||||
"toggle:",
|
||||
"toggleRuler:",
|
||||
"toggleTraditionalCharacterShape:",
|
||||
"transposeWords:",
|
||||
"turnOffLigatures:",
|
||||
"unhide:",
|
||||
"unscript:",
|
||||
"useAllLigatures:",
|
||||
"useStandardLigatures:",
|
||||
"zoom:"
|
||||
);
|
||||
Super = NSObject;
|
||||
};
|
||||
GormWindowSizeInspector = {
|
||||
Actions = (
|
||||
);
|
||||
|
@ -83,17 +10,4 @@
|
|||
);
|
||||
Super = IBInspector;
|
||||
};
|
||||
IBInspector = {
|
||||
Actions = (
|
||||
"revert:"
|
||||
);
|
||||
Super = NSObject;
|
||||
};
|
||||
NSControl = {
|
||||
Actions = (
|
||||
"takeFloatValueFrom:",
|
||||
"takeObjectValueFrom:"
|
||||
);
|
||||
Super = NSView;
|
||||
};
|
||||
}
|
Loading…
Reference in a new issue