mirror of
https://github.com/gnustep/apps-projectcenter.git
synced 2025-03-19 00:51:51 +00:00
handle setting path from buttons
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/apps/projectcenter/trunk@27236 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
parent
5fbc998044
commit
00d1c0f635
3 changed files with 34 additions and 4 deletions
|
@ -1,3 +1,9 @@
|
|||
2008-12-07 Riccardo Mottola <rmottola@users.sf.net>
|
||||
|
||||
* Headers/ProjectCenter/PCPrefController.h,
|
||||
Framework/PCPrefController.m: handle setting path from Buttons
|
||||
|
||||
|
||||
2008-11-27 22:06-EST Gregory John Casamento <greg_casamento@yahoo.com>
|
||||
|
||||
* Modules/Projects/Application/Resources/AppController.m: Correct
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
/*
|
||||
GNUstep ProjectCenter - http://www.gnustep.org/experience/ProjectCenter.html
|
||||
|
||||
Copyright (C) 2001 Free Software Foundation
|
||||
Copyright (C) 2001-2008 Free Software Foundation
|
||||
|
||||
This file is part of GNUstep.
|
||||
|
||||
|
@ -664,7 +664,18 @@ static PCPrefController *_prefCtrllr = nil;
|
|||
|
||||
- (void)setBuildTool:(id)sender
|
||||
{
|
||||
NSString *path = [buildToolField stringValue];
|
||||
NSString *path;
|
||||
|
||||
if (sender == buildToolButton)
|
||||
{
|
||||
path = [self selectFileWithTypes:nil];
|
||||
[buildToolField setStringValue:path];
|
||||
}
|
||||
else
|
||||
{
|
||||
path = [buildToolField stringValue];
|
||||
}
|
||||
|
||||
|
||||
if ([path isEqualToString:@""] || !path)
|
||||
{
|
||||
|
@ -685,7 +696,18 @@ static PCPrefController *_prefCtrllr = nil;
|
|||
|
||||
- (void)setDebugger:(id)sender
|
||||
{
|
||||
NSString *path = [debuggerField stringValue];
|
||||
NSString *path;
|
||||
|
||||
if (sender == buildToolButton)
|
||||
{
|
||||
path = [self selectFileWithTypes:nil];
|
||||
[debuggerField setStringValue:path];
|
||||
}
|
||||
else
|
||||
{
|
||||
path = [debuggerField stringValue];
|
||||
}
|
||||
;
|
||||
|
||||
if ([path isEqualToString:@""] || !path)
|
||||
{
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
/*
|
||||
GNUstep ProjectCenter - http://www.gnustep.org/experience/ProjectCenter.html
|
||||
|
||||
Copyright (C) 2001 Free Software Foundation
|
||||
Copyright (C) 2001-2008 Free Software Foundation
|
||||
|
||||
This file is part of GNUstep.
|
||||
|
||||
|
@ -66,7 +66,9 @@
|
|||
IBOutlet NSButton *deleteCache;
|
||||
IBOutlet NSButton *fullPathInFilePanels;
|
||||
IBOutlet NSTextField *buildToolField;
|
||||
IBOutlet NSButton *buildToolButton;
|
||||
IBOutlet NSTextField *debuggerField;
|
||||
IBOutlet NSButton *debuggerButton;
|
||||
IBOutlet NSTextField *editorField;
|
||||
|
||||
IBOutlet NSBox *interfaceView;
|
||||
|
|
Loading…
Reference in a new issue