aboutsummaryrefslogtreecommitdiffstats
path: root/Source/TableDocument.m
diff options
context:
space:
mode:
authorstuconnolly <stuart02@gmail.com>2009-05-27 13:30:34 +0000
committerstuconnolly <stuart02@gmail.com>2009-05-27 13:30:34 +0000
commit4cb9f0b6ab99875d487ae9c2c438595978222a3e (patch)
treebe63b305825ba346a73f5bb267bd7113150b61a2 /Source/TableDocument.m
parentde6f4edd315c319bd7fbc37907176d665aa454dc (diff)
downloadsequelpro-4cb9f0b6ab99875d487ae9c2c438595978222a3e.tar.gz
sequelpro-4cb9f0b6ab99875d487ae9c2c438595978222a3e.tar.bz2
sequelpro-4cb9f0b6ab99875d487ae9c2c438595978222a3e.zip
Redesigned table information pane.
Diffstat (limited to 'Source/TableDocument.m')
-rw-r--r--Source/TableDocument.m18
1 files changed, 13 insertions, 5 deletions
diff --git a/Source/TableDocument.m b/Source/TableDocument.m
index 9b15dced..aedf9d34 100644
--- a/Source/TableDocument.m
+++ b/Source/TableDocument.m
@@ -32,21 +32,22 @@
#import "TableContent.h"
#import "CustomQuery.h"
#import "TableDump.h"
-#import "TableStatus.h"
#import "ImageAndTextCell.h"
#import "SPGrowlController.h"
#import "SPExportController.h"
#import "SPQueryConsole.h"
#import "SPSQLParser.h"
#import "SPTableData.h"
+#import "SPDatabaseData.h"
#import "SPStringAdditions.h"
#import "SPQueryConsole.h"
#import "CMMCPConnection.h"
#import "CMMCPResult.h"
#import "MainController.h"
+#import "SPExtendedTableInfo.h"
#import "SPPreferenceController.h"
-//used for printing
+// Used for printing
#import "MGTemplateEngine.h"
#import "ICUTemplateMatcher.h"
@@ -341,17 +342,24 @@ NSString *TableDocumentFavoritesControllerSelectionIndexDidChange = @"TableDocum
} else {
mySQLVersion = [[NSString stringWithString:version] retain];
}
+
[self setDatabases:self];
+
+ // For each of the main controllers assigned the current connection
[tablesListInstance setConnection:mySQLConnection];
[tableSourceInstance setConnection:mySQLConnection];
[tableContentInstance setConnection:mySQLConnection];
[tableRelationsInstance setConnection:mySQLConnection];
[customQueryInstance setConnection:mySQLConnection];
- [customQueryInstance setMySQLversion:mySQLVersion];
[tableDumpInstance setConnection:mySQLConnection];
[spExportControllerInstance setConnection:mySQLConnection];
- [tableStatusInstance setConnection:mySQLConnection];
[tableDataInstance setConnection:mySQLConnection];
+ [extendedTableInfoInstance setConnection:mySQLConnection];
+ [databaseDataInstance setConnection:mySQLConnection];
+
+ // Set the cutom query editor's MySQL version
+ [customQueryInstance setMySQLversion:mySQLVersion];
+
[self setFileName:[NSString stringWithFormat:@"(MySQL %@) %@@%@ %@", mySQLVersion, [userField stringValue],
[hostField stringValue], [databaseField stringValue]]];
[tableWindow setTitle:[NSString stringWithFormat:@"(MySQL %@) %@/%@", mySQLVersion, [self name], [databaseField stringValue]]];
@@ -782,7 +790,7 @@ NSString *TableDocumentFavoritesControllerSelectionIndexDidChange = @"TableDocum
if (reloadViews) {
if ([tablesListInstance structureLoaded]) [tableSourceInstance reloadTable:self];
if ([tablesListInstance contentLoaded]) [tableContentInstance reloadTable:self];
- if ([tablesListInstance statusLoaded]) [tableStatusInstance reloadTable:self];
+ if ([tablesListInstance statusLoaded]) [extendedTableInfoInstance reloadTable:self];
}
}