From: Neil T. <nt...@us...> - 2006-08-30 15:51:19
|
Update of /cvsroot/pgsqlformac/QueryTool In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv22673 Modified Files: AppController.h ChangeLog DataSource.m MyOutlineView.h MyResultsView.h PreferenceController.h SqlDocument.h SqlDocument.m SqlMenuCategory.h SqlToolbarCategory.h Log Message: Restructure for schema threading. Index: ChangeLog =================================================================== RCS file: /cvsroot/pgsqlformac/QueryTool/ChangeLog,v retrieving revision 1.14 retrieving revision 1.15 diff -C2 -d -r1.14 -r1.15 *** ChangeLog 30 Aug 2006 01:06:53 -0000 1.14 --- ChangeLog 30 Aug 2006 15:51:15 -0000 1.15 *************** *** 1,2 **** --- 1,14 ---- + 2006-08-29 20:06 ntiffin + + * AppController.h, AppController.m, ChangeLog, + PreferenceController.h, PreferenceController.m, SqlDocument.h, + SqlDocument.m, TODO.txt, English.lproj/MainMenu.nib/classes.nib, + English.lproj/MainMenu.nib/info.nib, + English.lproj/MainMenu.nib/objects.nib, + English.lproj/Preferences.nib/classes.nib, + English.lproj/Preferences.nib/info.nib, + English.lproj/Preferences.nib/keyedobjects.nib, + English.lproj/SqlDocument.nib/keyedobjects.nib: Add preferences. + 2006-08-18 12:46 ntiffin Index: MyResultsView.h =================================================================== RCS file: /cvsroot/pgsqlformac/QueryTool/MyResultsView.h,v retrieving revision 1.1 retrieving revision 1.2 diff -C2 -d -r1.1 -r1.2 *** MyResultsView.h 16 Jul 2006 23:17:39 -0000 1.1 --- MyResultsView.h 30 Aug 2006 15:51:15 -0000 1.2 *************** *** 8,12 **** #import <Cocoa/Cocoa.h> ! @interface MyResultsView : NSTableView { --- 8,12 ---- #import <Cocoa/Cocoa.h> ! #import "QueryTool.h" @interface MyResultsView : NSTableView { Index: PreferenceController.h =================================================================== RCS file: /cvsroot/pgsqlformac/QueryTool/PreferenceController.h,v retrieving revision 1.1 retrieving revision 1.2 diff -C2 -d -r1.1 -r1.2 *** PreferenceController.h 30 Aug 2006 01:06:53 -0000 1.1 --- PreferenceController.h 30 Aug 2006 15:51:15 -0000 1.2 *************** *** 8,12 **** #import <Cocoa/Cocoa.h> ! @interface PreferenceController : NSWindowController { --- 8,12 ---- #import <Cocoa/Cocoa.h> ! #import "QueryTool.h" @interface PreferenceController : NSWindowController { Index: AppController.h =================================================================== RCS file: /cvsroot/pgsqlformac/QueryTool/AppController.h,v retrieving revision 1.1 retrieving revision 1.2 diff -C2 -d -r1.1 -r1.2 *** AppController.h 30 Aug 2006 01:06:53 -0000 1.1 --- AppController.h 30 Aug 2006 15:51:15 -0000 1.2 *************** *** 8,11 **** --- 8,13 ---- #import <Cocoa/Cocoa.h> + #import "QueryTool.h" + @class PreferenceController; Index: MyOutlineView.h =================================================================== RCS file: /cvsroot/pgsqlformac/QueryTool/MyOutlineView.h,v retrieving revision 1.4 retrieving revision 1.5 diff -C2 -d -r1.4 -r1.5 *** MyOutlineView.h 16 Jul 2006 23:17:39 -0000 1.4 --- MyOutlineView.h 30 Aug 2006 15:51:15 -0000 1.5 *************** *** 3,6 **** --- 3,7 ---- #import <Cocoa/Cocoa.h> #import "ExplorerNode.h" + #import "QueryTool.h" @interface MyOutlineView : NSOutlineView Index: SqlMenuCategory.h =================================================================== RCS file: /cvsroot/pgsqlformac/QueryTool/SqlMenuCategory.h,v retrieving revision 1.1.1.1 retrieving revision 1.2 diff -C2 -d -r1.1.1.1 -r1.2 *** SqlMenuCategory.h 8 Mar 2005 21:50:09 -0000 1.1.1.1 --- SqlMenuCategory.h 30 Aug 2006 15:51:15 -0000 1.2 *************** *** 9,12 **** --- 9,13 ---- #import <Foundation/Foundation.h> #import "SqlDocument.h" + #import "QueryTool.h" @interface SqlDocument (SqlMenuCategory) Index: DataSource.m =================================================================== RCS file: /cvsroot/pgsqlformac/QueryTool/DataSource.m,v retrieving revision 1.2 retrieving revision 1.3 diff -C2 -d -r1.2 -r1.3 *** DataSource.m 12 Aug 2006 16:39:04 -0000 1.2 --- DataSource.m 30 Aug 2006 15:51:15 -0000 1.3 *************** *** 8,11 **** --- 8,12 ---- #import <Cocoa/Cocoa.h> #import "DataSource.h" + #import "QueryTool.h" @implementation DataSource Index: SqlDocument.m =================================================================== RCS file: /cvsroot/pgsqlformac/QueryTool/SqlDocument.m,v retrieving revision 1.20 retrieving revision 1.21 diff -C2 -d -r1.20 -r1.21 *** SqlDocument.m 30 Aug 2006 01:06:53 -0000 1.20 --- SqlDocument.m 30 Aug 2006 15:51:15 -0000 1.21 *************** *** 181,189 **** -(void)setNewExplorerConn { - ExplorerModel *newExplorer = [[ExplorerModel alloc] initRebuilding]; - [schemaView setDataSource:newExplorer]; [explorer autorelease]; ! // change the schema explorer explorer =[[ExplorerModel alloc] initWithConnection: conn]; // set explorer display defaults from NSUserDefaults --- 181,187 ---- -(void)setNewExplorerConn { [explorer autorelease]; ! // create the new schema explorer explorer =[[ExplorerModel alloc] initWithConnection: conn]; // set explorer display defaults from NSUserDefaults *************** *** 193,202 **** [explorer setShowPGToast:[userDefaults boolForKey:@"PGSqlForMac_QueryTool_ShowPGToastSchema"]]; [explorer setShowPGTemps:[userDefaults boolForKey:@"PGSqlForMac_QueryTool_ShowPGTempsSchema"]]; ! [explorer buildSchema]; [schemaView setDataSource:explorer]; // explorer does the work. [schemaView setMenuActionTarget:self]; - [newExplorer autorelease]; - //[explorer printLog]; } --- 191,200 ---- [explorer setShowPGToast:[userDefaults boolForKey:@"PGSqlForMac_QueryTool_ShowPGToastSchema"]]; [explorer setShowPGTemps:[userDefaults boolForKey:@"PGSqlForMac_QueryTool_ShowPGTempsSchema"]]; + [explorer setShowPublic:[userDefaults boolForKey:@"PGSqlForMac_QueryTool_ShowPGPublicSchema"]]; ! [NSThread detachNewThreadSelector:@selector(buildSchema:) toTarget:explorer withObject:schemaView]; ! [schemaView setDataSource:explorer]; // explorer does the work. [schemaView setMenuActionTarget:self]; } Index: SqlToolbarCategory.h =================================================================== RCS file: /cvsroot/pgsqlformac/QueryTool/SqlToolbarCategory.h,v retrieving revision 1.1.1.1 retrieving revision 1.2 diff -C2 -d -r1.1.1.1 -r1.2 *** SqlToolbarCategory.h 8 Mar 2005 21:50:09 -0000 1.1.1.1 --- SqlToolbarCategory.h 30 Aug 2006 15:51:15 -0000 1.2 *************** *** 9,12 **** --- 9,13 ---- #import <Foundation/Foundation.h> #import "SqlDocument.h" + #import "QueryTool.h" @interface SqlDocument (SqlToolbarCategory) Index: SqlDocument.h =================================================================== RCS file: /cvsroot/pgsqlformac/QueryTool/SqlDocument.h,v retrieving revision 1.13 retrieving revision 1.14 diff -C2 -d -r1.13 -r1.14 *** SqlDocument.h 30 Aug 2006 01:06:53 -0000 1.13 --- SqlDocument.h 30 Aug 2006 15:51:15 -0000 1.14 *************** *** 14,17 **** --- 14,18 ---- #import "MyOutlineView.h" #import "MyResultsView.h" + #import "QueryTool.h" @class PreferenceController; *************** *** 121,125 **** - (void)colorRange:(NSRange)rangeToColor; - #define UNUSED_PARAMETER(x) (void)(x) - @end --- 122,124 ---- |