From f24d40c2d3ecb9e07c7877a05a0070920d991896 Mon Sep 17 00:00:00 2001 From: Sergii Stoian Date: Fri, 19 Jan 2007 00:06:32 +0000 Subject: [PATCH] PCButton.m([initWitCoder]): add [_cell setImageDimsWhenDisabled:YES] git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/apps/projectcenter/trunk@24382 72102866-910b-0410-8b05-ffd578937521 --- Documentation/TODO | 64 +++++++++--------- .../English.lproj/Builder.gorm/data.classes | 8 ++- .../English.lproj/Builder.gorm/objects.gorm | Bin 23681 -> 23726 bytes Framework/PCButton.m | 1 + Headers/ProjectCenter/PCDefines.h | 21 +++--- PCAppController.m | 2 + 6 files changed, 52 insertions(+), 44 deletions(-) diff --git a/Documentation/TODO b/Documentation/TODO index 304819b..b1fbaa9 100644 --- a/Documentation/TODO +++ b/Documentation/TODO @@ -7,51 +7,51 @@ Feel free to propose changes to this list or make suggestions! ProjectCenter 0.4 Owner/Status ----------------- ------------ -- Review and cleanup of PC project bundles/templates [done!] -- Finish Project Inspector [done!] -- Inspector UI using Gorm [done!] -- File creation (File->New in project) cleanup and finishing [done!] -- Initial suprojects support [done!] -- Finish support of external editors [done!] -- Preferences enhancements and UI using Gorm [done!] -- Remember project windows and panels in PC.project [done!] +- Review and cleanup of PC project bundles/templates [done!] +- Finish Project Inspector [done!] +- Inspector UI using Gorm [done!] +- File creation (File->New in project) cleanup and finishing [done!] +- Initial suprojects support [done!] +- Finish support of external editors [done!] +- Preferences enhancements and UI using Gorm [done!] +- Remember project windows and panels in PC.project [done!] ProjectCenter 0.5 ----------------- -- Create ProjectWindow GORM file [done!] -- Add "Framework" project type [done!] -- Add "Resource Set" project type [done!] -- Implement on demand loading of bundles [done!] -- Localization support for projects [done!] -- Finish save/restore size of split views in Project Window [done!] -- Save last used path separately for different file panels stoyan +- Create ProjectWindow GORM file [done!] +- Add "Framework" project type [done!] +- Add "Resource Set" project type [done!] +- Implement on demand loading of bundles [done!] +- Localization support for projects [done!] +- Finish save/restore size of split views in Project Window [done!] +- Save last used path separately for different file panels stoyan --- Project Editor: - - Implement on demand loading (editor for file type) [done!] - - Open some files read only (Supporting Files) [done!] - - Implement code parser (get it from CodeEditor?) [done!] - - Project Browser should show file structure. [done!] - - Click on Browser item should move cursor to line in file [done!] - - Imlement pending adding/removal of files (history?) stoyan + - Implement on demand loading (editor for file type) [done!] + - Open some files read only (Supporting Files) [done!] + - Implement code parser (get it from CodeEditor?) [done!] + - Project Browser should show file structure. [done!] + - Click on Browser item should move cursor to line in file [done!] + - Imlement pending adding/removal of files (history?) stoyan --- Project Builder: - - Create panel and builder GORM files [done!] - - Implement root build directory handling [done!] - - Finish options handling stoyan - - Parse gcc output [95% done!] - - Display warnings,errors,options etc. as clickable list [done!] -- Finish FileNameIcon (draggable, files can be dragged to it) stoyan + - Create panel and builder GORM files [done!] + - Implement root build directory handling [done!] + - Finish options handling stoyan + - Parse gcc output [95% done!] + - Display warnings,errors,options etc. as clickable list [done!] +- Finish FileNameIcon (draggable, files can be dragged to it) stoyan - Review all dialogs and situations when dialogs must be - popped up stoyan + popped up stoyan ProjectCenter 0.6 ----------------- -- Rewrite Preferences (3rd party sections etc.) stoyan -- Add "Palette" project type stoyan -- Add "Component" project type stoyan +- Rewrite Preferences (3rd party sections etc.) stoyan +- Add "Palette" project type stoyan +- Add "Component" project type stoyan - Create custom Info panel stoyan - More options for file creation stoyan -- Implement Editor indentation stoyan +- Implement Editor indentation stoyan - Better integration with other tools (Gorm) stoyan ProjectCenter 0.7 diff --git a/Framework/English.lproj/Builder.gorm/data.classes b/Framework/English.lproj/Builder.gorm/data.classes index d94f5cf..6f73604 100644 --- a/Framework/English.lproj/Builder.gorm/data.classes +++ b/Framework/English.lproj/Builder.gorm/data.classes @@ -2,14 +2,15 @@ "## Comment" = "Do NOT change this file, Gorm maintains it"; FirstResponder = { Actions = ( - "startInstall:", + "showOptionsPanel:", "showFindView:", "showProjectBuild:", "showProjectInspector:", "showProjectLaunch:", "showProjectLoadedFiles:", "startBuild:", - "startClean:" + "startClean:", + "startInstall:" ); Super = NSObject; }; @@ -24,7 +25,8 @@ Actions = ( "startInstall:", "startBuild:", - "startClean:" + "startClean:", + "showOptionsPanel:" ); Outlets = ( buildButton, diff --git a/Framework/English.lproj/Builder.gorm/objects.gorm b/Framework/English.lproj/Builder.gorm/objects.gorm index 1dfbbafd234771a67f0499eda271180f721870ba..171f5a915c847751a721f9fecb2abeddb0c1b870 100644 GIT binary patch delta 208 zcmZqN$+&JO;{**xvyGZkjO+mn4BRf24wJnYFEBE0mS(!4$H*}Gy|UJ3Im0V5j9bA> zS-&Js_Vplz%?_K}!rw7Yo)#&=IB{}bq$2O6jXY`$3=EQ@AY$_FNNvUmlb=U=GEUfR z7{$!UI$=YL!Scxo(c+T>qA&4G+|V<@VCzPe4J{icPS%UDbynTb4OFmWBL~O~K~*5Z x3NlELsW>CQ+`phCGe565ATcjB$I4*mMn#Y!mJQ7t^fz>FP}(qI0}oKQ6#zq|MMwYu delta 173 zcmZ3tld*9p;{**xlZ~2EjO+~!4BRfs4U@eXFEBD}mS(!4$5=7>y|UJ3Im0V5jACG> ztX~o*`vL}_!Ul%TZQ<`2CznKsv6*OY$Tyfcc|wGw5Rl1jFli%?8Uq7^geZuZygO2x zapL6Xk)DhbHycJVGqO(H&| VG;h$~(78cr!^90d8@e}G0RRA%J3IgY diff --git a/Framework/PCButton.m b/Framework/PCButton.m index ad8ac21..e2d1697 100644 --- a/Framework/PCButton.m +++ b/Framework/PCButton.m @@ -40,6 +40,7 @@ // self = [super initWithFrame:frameRect]; self = [super initWithCoder:coder]; [_cell setGradientType:NSGradientConvexWeak]; + [_cell setImageDimsWhenDisabled:YES]; [self setImagePosition:NSImageOnly]; [self setFont:[NSFont systemFontOfSize:10.0]]; [self setRefusesFirstResponder:YES]; diff --git a/Headers/ProjectCenter/PCDefines.h b/Headers/ProjectCenter/PCDefines.h index 29f55de..95d8f6d 100644 --- a/Headers/ProjectCenter/PCDefines.h +++ b/Headers/ProjectCenter/PCDefines.h @@ -129,13 +129,6 @@ if (__value != __object) \ #define TARGET_MAKE_CLEAN @"MakeClean" #define TARGET_MAKE_RPM @"MakeRPM" -#define BUILD_TAG 0 -#define LAUNCH_TAG 1 -#define EDITOR_TAG 2 -#define FILES_TAG 3 -#define FIND_TAG 4 -#define INSPECTOR_TAG 5 - //============================================================================= // ==== Not used yet //============================================================================= @@ -164,6 +157,8 @@ typedef int PCProjInfoBits; #include +static NSString * const PCLastEditing = @"LAST_EDITING"; + static NSString * const PCClasses = @"CLASS_FILES"; static NSString * const PCHeaders = @"HEADER_FILES"; static NSString * const PCOtherSources = @"OTHER_SOURCES"; @@ -186,7 +181,6 @@ static NSString * const PCPreprocessorOptions = @"CPPOPTIONS"; static NSString * const PCCreationDate = @"CREATION_DATE"; static NSString * const PCInstallDir = @"INSTALLDIR"; static NSString * const PCLinkerOptions = @"LINKEROPTIONS"; -static NSString * const PCLastEditing = @"LAST_EDITING"; static NSString * const PCObjCCompilerOptions = @"OBJC_COMPILEROPTIONS"; static NSString * const PCPrincipalClass = @"PRINCIPAL_CLASS"; static NSString * const PCAuthors = @"PROJECT_AUTHORS"; @@ -206,6 +200,15 @@ static NSString * const PCURL = @"PROJECT_URL"; 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 PCBuilderTarget = @"BUILDER_TARGET"; +static NSString * const PCBuilderArguments = @"BUILDER_ARGS"; +static NSString * const PCBuilderDebug = @"BUILDER_DEBUG"; +static NSString * const PCBuilderProfile = @"BUILDER_PROFILE"; +static NSString * const PCBuilderVerboseMake = @"BUILDER_VERBOSE_MAKE"; +static NSString * const PCBuilderSharedLibs = @"BUILDER_SHARED_LIBS"; + // Application specific static NSString * const PCAppIcon = @"APPLICATIONICON"; static NSString * const PCMainInterfaceFile = @"MAININTERFACE"; @@ -226,7 +229,7 @@ static NSString * const PCToolIcon = @"TOOLICON"; static NSString * const PCPackageName = @"PACKAGE_NAME"; static NSString * const PCLibraryVar = @"LIBRARY_VAR"; -// Will be removed +// Will be removed (compatibility) static NSString * const PCProjectBuilderClass = @"PROJECT_BUILDER"; #endif // _PCDEFINES_H_ diff --git a/PCAppController.m b/PCAppController.m index b44d7a7..0ae5b40 100644 --- a/PCAppController.m +++ b/PCAppController.m @@ -108,6 +108,8 @@ || [[fileName pathExtension] isEqualToString:@"project"] == YES) { [projectManager openProjectAt:fileName]; + [[[projectManager activeProject] projectWindow] + makeKeyAndOrderFront:self]; } else {