mirror of
https://github.com/gnustep/apps-projectcenter.git
synced 2025-03-19 00:51:51 +00:00
use PCDefine constant for PC_WINDOWS dictionary key
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/apps/projectcenter/trunk@28339 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
parent
0cd4ab00c7
commit
94ee603288
4 changed files with 8 additions and 7 deletions
|
@ -406,7 +406,7 @@ NSString
|
|||
// Write to file and exit if preferences wasn't set to save panels
|
||||
if (!rememberWindows)
|
||||
{
|
||||
[projectFileDict setObject:windows forKey:@"PC_WINDOWS"];
|
||||
[projectFileDict setObject:windows forKey:PCWindows];
|
||||
[projectFileDict writeToFile:projectFile atomically:YES];
|
||||
return YES;
|
||||
}
|
||||
|
@ -447,10 +447,10 @@ NSString
|
|||
|
||||
// Set to project dict for case if project changed
|
||||
// Don't notify about projectDict changes
|
||||
[projectDict setObject:windows forKey:@"PC_WINDOWS"];
|
||||
[projectDict setObject:windows forKey:PCWindows];
|
||||
|
||||
// Now save it directly to username.project file
|
||||
[projectFileDict setObject:windows forKey:@"PC_WINDOWS"];
|
||||
[projectFileDict setObject:windows forKey:PCWindows];
|
||||
|
||||
[projectFileDict setObject: [[NSCalendarDate date] description]
|
||||
forKey: PCLastEditing];
|
||||
|
@ -482,7 +482,7 @@ NSString
|
|||
NSData *dictData = nil;
|
||||
|
||||
// remove key..
|
||||
[dict removeObjectForKey: @"PC_WINDOWS"];
|
||||
[dict removeObjectForKey: PCWindows];
|
||||
[dict removeObjectForKey: PCLastEditing];
|
||||
|
||||
// initialize the wrapper...
|
||||
|
|
|
@ -626,7 +626,7 @@ NSString *PCActiveProjectDidChangeNotification = @"PCActiveProjectDidChange";
|
|||
[project setProjectManager:self];
|
||||
|
||||
// Windows and panels
|
||||
wap = [pDict objectForKey:@"PC_WINDOWS"];
|
||||
wap = [pDict objectForKey:PCWindows];
|
||||
if ([[wap allKeys] containsObject:@"ProjectBuild"])
|
||||
{
|
||||
[[project projectWindow] showProjectBuild:self];
|
||||
|
|
|
@ -171,7 +171,7 @@
|
|||
// Window
|
||||
[projectWindow setFrameAutosaveName:@"ProjectWindow"];
|
||||
|
||||
pcWindows = [[project projectDict] objectForKey:@"PC_WINDOWS"];
|
||||
pcWindows = [[project projectDict] objectForKey:PCWindows];
|
||||
windowFrame = [pcWindows objectForKey:@"ProjectWindow"];
|
||||
// PCLogInfo(self, @"window frame %@", windowFrame);
|
||||
if (windowFrame != nil)
|
||||
|
@ -788,7 +788,7 @@
|
|||
if (!_splitViewsRestored)
|
||||
{
|
||||
projectDict = [project projectDict];
|
||||
windowsDict = [projectDict objectForKey:@"PC_WINDOWS"];
|
||||
windowsDict = [projectDict objectForKey:PCWindows];
|
||||
if (windowsDict != nil)
|
||||
{
|
||||
browserString = [windowsDict objectForKey:@"ProjectBrowser"];
|
||||
|
|
|
@ -120,6 +120,7 @@ typedef int PCProjInfoBits;
|
|||
#import <Foundation/Foundation.h>
|
||||
|
||||
static NSString * const PCLastEditing = @"LAST_EDITING";
|
||||
static NSString * const PCWindows = @"PC_WINDOWS";
|
||||
|
||||
static NSString * const PCClasses = @"CLASS_FILES";
|
||||
static NSString * const PCHeaders = @"HEADER_FILES";
|
||||
|
|
Loading…
Reference in a new issue