* PCMenuController.m:

(showInfoPanel:): Use appController intead of [NSApp delegate].
* GNUmakefile: Change version to 0.5.1.
* Resources/Info-gnustep.plist: ditto.
* Framework/PCProjectManager.m:
  (open): Move ordering front project window for here...
  (openProjectAt:): to here.
* Framework/PCProjectBrowser.m:
  (nameOfSelectedCategory): Edit comment text.
* Framework/PCLogController.m:
  (showPanel): Call makeKeyAndOrderFront instead of orderFront.
* Headers/PCInfoController.[hm]:
  (showInfoWindow:): Get version info from Info-gnustep.plist.
* PCPrefController.m:
  (showPanel:): Call makeKeyAndOrderFront instead of orderFront.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/apps/projectcenter/trunk@27861 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
Sergii Stoian 2009-02-14 15:45:52 +00:00
parent 923416f666
commit 6817d12843
11 changed files with 26 additions and 16 deletions

View file

@ -1,3 +1,12 @@
{
"## Comment" = "Do NOT change this file, Gorm maintains it";
PCInfoController = {
Actions = (
);
Outlets = (
infoWindow,
versionField
);
Super = NSObject;
};
}

Binary file not shown.

View file

@ -134,7 +134,7 @@ static PCLogController *_logCtrllr = nil;
- (void)showPanel
{
[panel orderFront:self];
[panel makeKeyAndOrderFront:self];
}
- (void)logMessage:(NSString *)text withTag:(int)tag sender:(id)sender;

View file

@ -150,8 +150,8 @@ NSString *PCBrowserDidSetPathNotification = @"PCBrowserDidSetPathNotification";
NSString *name = nil;
int i;
// Name of subproject selected: change path to be ended with 'Subprojects'
// category of superproject.
// Name of subproject selected: Change active project to superproject
// to check category against superproject's catgory list.
// But: path '/Subproject/Foo' and '/Subprojects/Foo/Subprojects' will
// return the same category 'Subprojects' and active project will be 'Foo'
// in both cases

View file

@ -641,6 +641,9 @@ NSString *PCActiveProjectDidChangeNotification = @"PCActiveProjectDidChange";
{
[[project projectWindow] showProjectLoadedFiles:self];
}
[[project projectWindow] makeKeyAndOrderFront:self];
return YES;
}
@ -662,13 +665,7 @@ NSString *PCActiveProjectDidChangeNotification = @"PCActiveProjectDidChange";
if (filePath != nil)
{
if (![self openProjectAt:filePath])
{
// No need to open alert panel.
// Panel was opened in openProjectAt:->loadProjectAt: method.
return;
}
[[activeProject projectWindow] makeKeyAndOrderFront:self];
[self openProjectAt:filePath];
}
}

View file

@ -16,7 +16,7 @@ include $(GNUSTEP_MAKEFILES)/common.make
#
# Main application
#
VERSION = 0.5.0
VERSION = 0.5.1
APP_NAME = ProjectCenter
ProjectCenter_APPLICATION_ICON = Images/ProjectCenter.tiff

View file

@ -27,8 +27,9 @@
@interface PCInfoController : NSObject
{
id infoWindow;
NSDictionary *infoDict;
id infoWindow;
id versionField;
NSDictionary *infoDict;
}
- (id)init;

View file

@ -61,6 +61,9 @@
// PCLogError(self, @"error loading Menu NIB file!");
return;
}
[infoWindow makeKeyAndOrderFront:self];
[versionField setStringValue:[NSString stringWithFormat:@"Version %@", [infoDict objectForKey:@"ApplicationRelease"]]];
/*#if defined(GNUSTEP)
if (!infoWindow)

View file

@ -87,7 +87,7 @@
- (void)showInfoPanel:(id)sender
{
[[[NSApp delegate] infoController] showInfoWindow:sender];
[[appController infoController] showInfoWindow:sender];
}
- (void)showEditorPanel:(id)sender

View file

@ -348,7 +348,7 @@ static PCPrefController *_prefCtrllr = nil;
// Load saved prefs
[self loadPreferences];
[panel orderFront:self];
[panel makeKeyAndOrderFront:self];
}
//

View file

@ -3,7 +3,7 @@
ApplicationName = "ProjectCenter";
ApplicationDescription = "GNUstep Integrated Development Environment";
ApplicationIcon = "ProjectCenter.tiff";
ApplicationRelease = "0.5.0";
ApplicationRelease = "0.5.1";
FullVersionID = "HEAD";
Authors = (
"Philippe C.D. Robert",