mirror of
https://github.com/gnustep/apps-projectcenter.git
synced 2025-02-15 16:11:25 +00:00
* Framework/PCProject.m:
(buildTargets): Return default build targets only if project file doesn't contains list them. * Framework/PCProjectBuilder.m: (prebuildCheck): Create build directory only if preference was set. (build:): Set initial "=== started ===" string. * Framework/PCProjectInspector.m: (createBuildAttributes): Set target and action for table view. (searchOrderPopupDidChange:): Add support for "Build Targets". (setSearchOrderButtonsState): Enable "Remove" button only if item in list was selected. (syncSearchOrder): Add support for "Build Targets". * Documentation/TODO: Add some tasks and update status of others. * Headers/ProjectCenter/PCDefines.h: Add key for build targets support. git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/apps/projectcenter/trunk@28099 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
parent
a002b0c43c
commit
d6a49c572a
6 changed files with 58 additions and 27 deletions
|
@ -52,7 +52,10 @@ ProjectCenter 0.6
|
|||
- Check all textfields if 'scrollable' attribute set [done!]
|
||||
- Rewrite Preferences (3rd party sections etc.) [done!]
|
||||
--- Project Builder --------------------------------------------
|
||||
- Finish parsing gcc output (make errors, etc.) stoyan
|
||||
- Review build, compiler, linker options setting
|
||||
(Build Options, Inspector) stoyan
|
||||
- Finish parsing build output (compiler errors/warnings,
|
||||
make errors, gnustep-make verbose mode) stoyan
|
||||
- Implement interaction with Editor (errors, warnings) stoyan
|
||||
--- Project Editor ---------------------------------------------
|
||||
- review situations when editor is opened stoyan
|
||||
|
@ -60,13 +63,15 @@ ProjectCenter 0.6
|
|||
- Implement interaction with Builder (errors, warnings) stoyan
|
||||
- Implement indentation stoyan
|
||||
- implement undo inside editor stoyan
|
||||
- Add and use basic editor preferences (fonts, colors, sizes) [25% done]
|
||||
- Think about imlementing pending adding/removal of files ???
|
||||
- Add and use basic editor preferences (fonts, colors, sizes) [50% done]
|
||||
- Split "Application" to "Application GORM" and
|
||||
"Application Renaissance" project types ???
|
||||
"Application Renaissance" project types stoyan
|
||||
- Review all sections of Project Inspector for correct
|
||||
behaviour stoyan
|
||||
- Add "Palette" project type ???
|
||||
- Add "Component" project type ???
|
||||
- Process reported bugs ???
|
||||
- Think about imlementing pending adding/removal of files ???
|
||||
- New icons. Need volonteers!!! ???
|
||||
|
||||
ProjectCenter 0.7
|
||||
|
|
Binary file not shown.
|
@ -701,7 +701,18 @@ NSString
|
|||
|
||||
- (NSArray *)buildTargets
|
||||
{
|
||||
return [[self projectBundleInfoTable] objectForKey:@"BuildTargets"];
|
||||
NSArray *buildTargets = [projectDict objectForKey:PCBuilderTargets];
|
||||
|
||||
if (!buildTargets)
|
||||
{
|
||||
buildTargets =
|
||||
[[self projectBundleInfoTable] objectForKey:@"BuildTargets"];
|
||||
[self setProjectDictObject:buildTargets
|
||||
forKey:PCBuilderTargets
|
||||
notify:NO];
|
||||
}
|
||||
|
||||
return buildTargets;
|
||||
}
|
||||
|
||||
- (NSArray *)sourceFileKeys
|
||||
|
|
|
@ -187,9 +187,9 @@
|
|||
[errorOutput addTableColumn:errorColumn];
|
||||
[errorOutput setDataSource:self];
|
||||
[errorOutput setBackgroundColor:[NSColor colorWithDeviceRed:0.88
|
||||
green:0.76
|
||||
blue:0.60
|
||||
alpha:1.0]];
|
||||
green:0.76
|
||||
blue:0.60
|
||||
alpha:1.0]];
|
||||
[errorOutput setDrawsGrid:NO];
|
||||
[errorOutput setTarget:self];
|
||||
[errorOutput setAction:@selector(errorItemClick:)];
|
||||
|
@ -206,8 +206,7 @@
|
|||
/*
|
||||
* Log output
|
||||
*/
|
||||
logScroll = [[NSScrollView alloc]
|
||||
initWithFrame:NSMakeRect (0, 0, 480, 133)];
|
||||
logScroll = [[NSScrollView alloc] initWithFrame:NSMakeRect(0,0,480,133)];
|
||||
[logScroll setHasHorizontalScroller:NO];
|
||||
[logScroll setHasVerticalScroller:YES];
|
||||
[logScroll setBorderType:NSBezelBorder];
|
||||
|
@ -237,9 +236,9 @@
|
|||
* Split view
|
||||
*/
|
||||
[split addSubview:errorScroll];
|
||||
RELEASE (errorScroll);
|
||||
RELEASE(errorScroll);
|
||||
[split addSubview:logScroll];
|
||||
RELEASE (logScroll);
|
||||
RELEASE(logScroll);
|
||||
|
||||
// [split adjustSubviews];
|
||||
// [componentView addSubview:split];
|
||||
|
@ -532,11 +531,16 @@
|
|||
}
|
||||
|
||||
// Create root build directory if not exist
|
||||
buildDir = [NSString stringWithFormat:@"%@.build", [project projectName]];
|
||||
buildDir = [rootBuildDir stringByAppendingPathComponent:buildDir];
|
||||
if (![fm fileExistsAtPath:rootBuildDir] || ![fm fileExistsAtPath:buildDir])
|
||||
if (rootBuildDir && ![rootBuildDir isEqualToString:@""])
|
||||
{
|
||||
[pcfm createDirectoriesIfNeededAtPath:buildDir];
|
||||
buildDir = [NSString
|
||||
stringWithFormat:@"%@.build", [project projectName]];
|
||||
buildDir = [rootBuildDir stringByAppendingPathComponent:buildDir];
|
||||
if (![fm fileExistsAtPath:rootBuildDir] ||
|
||||
![fm fileExistsAtPath:buildDir])
|
||||
{
|
||||
[pcfm createDirectoriesIfNeededAtPath:buildDir];
|
||||
}
|
||||
}
|
||||
|
||||
return YES;
|
||||
|
@ -597,6 +601,11 @@
|
|||
[makeTask setStandardOutput:logPipe];
|
||||
[makeTask setStandardError:errorPipe];
|
||||
|
||||
[self logString:
|
||||
[NSString stringWithFormat:@"=== %@ started ===", buildStatusTarget]
|
||||
error:NO
|
||||
newLine:YES];
|
||||
|
||||
NS_DURING
|
||||
{
|
||||
[makeTask launch];
|
||||
|
|
|
@ -377,6 +377,9 @@
|
|||
// Table
|
||||
[searchOrderList setCornerView:nil];
|
||||
[searchOrderList setHeaderView:nil];
|
||||
[searchOrderList setTarget:self];
|
||||
[searchOrderList setAction:@selector(searchOrderClick:)];
|
||||
// [searchOrderColumn setEditable:NO];
|
||||
|
||||
// Buttons
|
||||
[self setSearchOrderButtonsState];
|
||||
|
@ -390,15 +393,19 @@
|
|||
{
|
||||
NSString *selectedTitle = [sender titleOfSelectedItem];
|
||||
|
||||
if ([selectedTitle isEqualToString: @"Header Directories Search Order"])
|
||||
if ([selectedTitle isEqualToString:@"Header Directories Search Order"])
|
||||
{
|
||||
ASSIGN(searchItems, searchHeaders);
|
||||
}
|
||||
else if ([selectedTitle isEqualToString: @"Library Directories Search Order"])
|
||||
else if ([selectedTitle isEqualToString:@"Library Directories Search Order"])
|
||||
{
|
||||
ASSIGN(searchItems, searchLibs);
|
||||
}
|
||||
else
|
||||
else if ([selectedTitle isEqualToString:@"Build Targets"])
|
||||
{
|
||||
ASSIGN(searchItems,[project buildTargets]);
|
||||
}
|
||||
else
|
||||
{
|
||||
ASSIGN(searchItems,nil);
|
||||
}
|
||||
|
@ -415,8 +422,6 @@
|
|||
|
||||
- (void)searchOrderClick:(id)sender
|
||||
{
|
||||
// Warning! NSTableView doesn't call action method
|
||||
// TODO: Fix NSTableView (NSCell/NSActionCell?)
|
||||
[self setSearchOrderButtonsState];
|
||||
}
|
||||
|
||||
|
@ -425,8 +430,6 @@
|
|||
// Disable until implemented
|
||||
[searchOrderSet setEnabled:NO];
|
||||
|
||||
return; // See searchOrderClick
|
||||
|
||||
if ([searchOrderList selectedRow] == -1)
|
||||
{
|
||||
[searchOrderRemove setEnabled:NO];
|
||||
|
@ -472,17 +475,20 @@
|
|||
pIndex = [searchOrderPopup indexOfSelectedItem];
|
||||
switch (pIndex)
|
||||
{
|
||||
case 0:
|
||||
case 0: // Headers
|
||||
[project setProjectDictObject:searchItems
|
||||
forKey:PCSearchHeaders
|
||||
notify:YES];
|
||||
break;
|
||||
case 1:
|
||||
case 1: // Libraries
|
||||
[project setProjectDictObject:searchItems
|
||||
forKey:PCSearchLibs
|
||||
notify:YES];
|
||||
break;
|
||||
case 2:
|
||||
case 2: // Targets
|
||||
[project setProjectDictObject:searchItems
|
||||
forKey:PCBuilderTargets
|
||||
notify:YES];
|
||||
return;
|
||||
}
|
||||
}
|
||||
|
|
|
@ -163,7 +163,7 @@ static NSString * const PCSearchHeaders = @"SEARCH_HEADER_DIRS";
|
|||
static NSString * const PCSearchLibs = @"SEARCH_LIB_DIRS";
|
||||
|
||||
// Project Builder options
|
||||
static NSString * const PCBuilderOptions = @"BUILDER_OPTIONS";
|
||||
static NSString * const PCBuilderTargets = @"BUILDER_TARGETS";
|
||||
static NSString * const PCBuilderArguments = @"BUILDER_ARGS";
|
||||
static NSString * const PCBuilderDebug = @"BUILDER_DEBUG";
|
||||
static NSString * const PCBuilderStrip = @"BUILDER_STRIP";
|
||||
|
|
Loading…
Reference in a new issue