From e5681f4a504421711aabce6a11156c15b7ad9f59 Mon Sep 17 00:00:00 2001 From: Sergii Stoian Date: Sun, 22 Mar 2009 00:12:43 +0000 Subject: [PATCH] * Framework/PCProjectInspector.m: (searchOrderPopupDidChange:): Clean selection in list. Clean text field. (searchOrderClick:): Show value of selected item in text field. (addSearchOrder:): Add check for entered value. More checking will be added in the future. * Documentation/TODO: Rearrange some items. Update state. git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/apps/projectcenter/trunk@28117 72102866-910b-0410-8b05-ffd578937521 --- Documentation/TODO | 30 ++++++++++++++++++----------- Framework/PCProjectInspector.m | 35 +++++++++++++++++++++++++++------- 2 files changed, 47 insertions(+), 18 deletions(-) diff --git a/Documentation/TODO b/Documentation/TODO index dbe2c2f..50bafbe 100644 --- a/Documentation/TODO +++ b/Documentation/TODO @@ -53,10 +53,12 @@ ProjectCenter 0.6 - Rewrite Preferences (3rd party sections etc.) [done!] --- Project Builder -------------------------------------------- - Review build, compiler, linker options setting - (Build Options, Inspector) stoyan + (Build Options, Inspector) [done!] - Finish parsing build output (compiler errors/warnings, make errors, gnustep-make verbose mode) stoyan - - Implement interaction with Editor (errors, warnings) stoyan + - Finish interaction with Editor (errors, warnings) stoyan + - Add support for running configurable(Build Options) + command before and after make stoyan --- Project Editor --------------------------------------------- - review situations when editor is opened stoyan - implement go to line stoyan @@ -64,10 +66,12 @@ ProjectCenter 0.6 - Implement indentation stoyan - implement undo inside editor stoyan - Add and use basic editor preferences (fonts, colors, sizes) [50% done] +--- Project Inspector ------------------------------------------ + - Make sections as loadable bundles stoyan + - Finish functionality of all sections stoyan + - Review all sections for correct behaviour stoyan - Split "Application" to "Application GORM" and "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 ??? @@ -77,34 +81,38 @@ ProjectCenter 0.6 ProjectCenter 0.7 ----------------- +- Finish suppor of integrated debugging ??? - Add support for browsing 'Library' category entries ??? - Add support for non-project files ??? - Implement symbols indexing. This feature touches Browser (class and method list) and Editor (autocompletion) ??? - Editor: implement autocompletion ??? -- Implement Plist editor for editing project files ??? - An initial project wide find feature ??? -- Better integration with other tools (GORM) ??? -- Think about adopting existing directory tree (more flexible - directory configurations) ??? +- Better integration with other tools (GORM). DevKit? ??? ProjectCenter 0.8 ----------------- - Implement code folding in Editor ??? -- Initial user documentation ??? -- CVS/SVN integration ??? - Direct code documentation (using autogsdoc) ??? +- Think about adopting existing directory tree (more flexible + directory configurations) ??? ProjectCenter 0.9 ----------------- - ProjectCenter localization ??? +- Initial user documentation ??? +- Implement Plist editor for editing project files ??? - An initial class browser/documentation feature ??? ProjectCenter 1.0 ----------------- - Version 1.0 is aimed at stabilising and optimising existing +Version 1.0 is aimed at stabilising and optimising existing features. There will not be any new features since 0.9. +After 1.0 +--------- +- CVS/SVN integration ??? + diff --git a/Framework/PCProjectInspector.m b/Framework/PCProjectInspector.m index 595ff99..c915906 100644 --- a/Framework/PCProjectInspector.m +++ b/Framework/PCProjectInspector.m @@ -159,16 +159,16 @@ switch([sender indexOfSelectedItem]) { case 0: - [inspectorView setContentView: buildAttributesView]; + [inspectorView setContentView:buildAttributesView]; break; case 1: - [inspectorView setContentView: projectAttributesView]; + [inspectorView setContentView:projectAttributesView]; break; case 2: - [inspectorView setContentView: projectDescriptionView]; + [inspectorView setContentView:projectDescriptionView]; break; case 3: - [inspectorView setContentView: fileAttributesView]; + [inspectorView setContentView:fileAttributesView]; break; } @@ -410,10 +410,12 @@ ASSIGN(searchItems,nil); } + [searchOrderList reloadData]; + [searchOrderList deselectAll:self]; + [searchOrderTF setStringValue:@""]; + // Enable/disable buttons according to selected/not selected item [self setSearchOrderButtonsState]; - - [searchOrderList reloadData]; } - (void)searchOrderDoubleClick:(id)sender @@ -422,14 +424,28 @@ - (void)searchOrderClick:(id)sender { + int row = [searchOrderList selectedRow]; + [searchOrderTF setStringValue:[searchItems objectAtIndex:row]]; + [searchOrderTF selectText:self]; [self setSearchOrderButtonsState]; } - (void)setSearchOrderButtonsState { - // Disable until implemented + // "Set..." button is always off until functionality will be implemented [searchOrderSet setEnabled:NO]; + // After loadable inspectors implementation make it work by + // detection of text field becoming first responder. +/* if ([inspectorPanel firstResponder] == searchOrderTF) + { + [searchOrderAdd setEnabled:YES]; + } + else + { + [searchOrderAdd setEnabled:NO]; + }*/ + if ([searchOrderList selectedRow] == -1) { [searchOrderRemove setEnabled:NO]; @@ -461,6 +477,11 @@ { NSString *value = [searchOrderTF stringValue]; + if ([value isEqualToString:@""]) + { + return; + } + [searchItems addObject:value]; [searchOrderTF setStringValue:@""]; [self syncSearchOrder];