From 8e2277ff6a509ff069e405bdccb6e591f42b529c Mon Sep 17 00:00:00 2001 From: Sergii Stoian Date: Thu, 11 Jan 2007 17:18:53 +0000 Subject: [PATCH] Updates in Project Builder make errors parsing git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/apps/projectcenter/trunk@24337 72102866-910b-0410-8b05-ffd578937521 --- Headers/ProjectCenter/PCProjectBuilder.h | 41 +++++++++++++++++++++--- 1 file changed, 36 insertions(+), 5 deletions(-) diff --git a/Headers/ProjectCenter/PCProjectBuilder.h b/Headers/ProjectCenter/PCProjectBuilder.h index 6047828..a95c319 100644 --- a/Headers/ProjectCenter/PCProjectBuilder.h +++ b/Headers/ProjectCenter/PCProjectBuilder.h @@ -31,6 +31,15 @@ @class PCProject; @class PCButton; +typedef enum _ErrorLevel { + ELFile, + ELFunction, + ELIncluded, + ELIncludedError, + ELError, + ELNone +} ErrorLevel; + @interface PCProjectBuilder : NSObject { NSBox *componentView; @@ -38,22 +47,35 @@ PCButton *cleanButton; PCButton *installButton; PCButton *optionsButton; + NSSplitView *split; id buildStatusField; id targetField; NSTextView *logOutput; - NSTextView *errorOutput; +/// NSTextView *errorOutput; + // Error logging + NSTableView *errorOutputTable; + NSTableColumn *errorImageColumn; + NSTableColumn *errorColumn; + NSMutableArray *errorArray; + NSMutableString *errorString; + + ErrorLevel currentEL; + ErrorLevel lastEL; + ErrorLevel nextEL; + NSString *lastIndentString; + + // Options NSPopUpButton *popup; - NSPanel *optionsPanel; NSTextField *buildTargetHostField; NSTextField *buildTargetArgsField; - NSString *makePath; - + // Variables PCProject *currentProject; NSDictionary *currentOptions; + NSString *makePath; NSString *statusString; NSMutableString *buildTarget; NSMutableArray *buildArgs; @@ -97,7 +119,6 @@ @interface PCProjectBuilder (UserInterface) -- (void)_createComponentView; - (void)_createOptionsPanel; @end @@ -110,4 +131,14 @@ @end +@interface PCProjectBuilder (ErrorLogging) + +- (void)logErrorString:(NSString *)string; +- (void)addItems:(NSArray *)items; + +- (NSString *)lineTail:(NSString*)line afterString:(NSString*)string; +- (NSArray *)parseErrorLine:(NSString *)string; + +@end + #endif