diff options
Diffstat (limited to 'Source')
-rw-r--r-- | Source/SPDatabaseDocument.h | 2 | ||||
-rw-r--r-- | Source/SPDatabaseDocument.m | 9 | ||||
-rw-r--r-- | Source/SPTableInfo.h | 1 | ||||
-rw-r--r-- | Source/SPTableInfo.m | 9 |
4 files changed, 9 insertions, 12 deletions
diff --git a/Source/SPDatabaseDocument.h b/Source/SPDatabaseDocument.h index 2b7fb38a..485b224b 100644 --- a/Source/SPDatabaseDocument.h +++ b/Source/SPDatabaseDocument.h @@ -66,7 +66,7 @@ IBOutlet NSSearchField *listFilterField; IBOutlet NSScrollView *tableInfoScrollView; - IBOutlet NSScrollView *activitiesScrollView; + IBOutlet NSScrollView *documentActivityScrollView; IBOutlet NSView *parentView; diff --git a/Source/SPDatabaseDocument.m b/Source/SPDatabaseDocument.m index 376d7d3f..751d7654 100644 --- a/Source/SPDatabaseDocument.m +++ b/Source/SPDatabaseDocument.m @@ -167,7 +167,7 @@ // Set the connection controller's delegate [connectionController setDelegate:self]; - + // Register observers for when the DisplayTableViewVerticalGridlines preference changes [prefs addObserver:self forKeyPath:SPDisplayTableViewVerticalGridlines options:NSKeyValueObservingOptionNew context:NULL]; [prefs addObserver:tableSourceInstance forKeyPath:SPDisplayTableViewVerticalGridlines options:NSKeyValueObservingOptionNew context:NULL]; @@ -202,6 +202,9 @@ // Hide the tabs in the tab view (we only show them to allow switching tabs in interface builder) [tableTabView setTabViewType:NSNoTabsNoBorder]; + // Hide the activity list + [self setActivityPaneHidden:[NSNumber numberWithInteger:1]]; + // Bind the background color of the create syntax text view to the users preference [createTableSyntaxTextView setAllowsDocumentBackgroundColorChange:YES]; @@ -5098,9 +5101,9 @@ { if(![hide integerValue] == 1) { [tableInfoScrollView setHidden:YES]; - [activitiesScrollView setHidden:NO]; + [documentActivityScrollView setHidden:NO]; } else { - [activitiesScrollView setHidden:YES]; + [documentActivityScrollView setHidden:YES]; [tableInfoScrollView setHidden:NO]; } } diff --git a/Source/SPTableInfo.h b/Source/SPTableInfo.h index 9328e05c..48e56e0c 100644 --- a/Source/SPTableInfo.h +++ b/Source/SPTableInfo.h @@ -33,7 +33,6 @@ IBOutlet NSTableView *activitiesTable; IBOutlet NSScrollView *tableInfoScrollView; - IBOutlet NSScrollView *activitiesScrollView; IBOutlet NSView *containerView; NSMutableArray *info; diff --git a/Source/SPTableInfo.m b/Source/SPTableInfo.m index 6c7c216d..d06198b4 100644 --- a/Source/SPTableInfo.m +++ b/Source/SPTableInfo.m @@ -63,9 +63,6 @@ name:SPActivitiesUpdateNotification object:nil]; - [tableInfoScrollView setHidden:NO]; - [activitiesScrollView setHidden:YES]; - // Add activities header [activities addObject:[NSDictionary dictionaryWithObjectsAndKeys:NSLocalizedString(@"ACTIVITIES", @"header for activities pane"), @"name", nil]]; [activitiesTable reloadData]; @@ -364,12 +361,10 @@ if(rowIndex > 0) return NO; if(![tableInfoScrollView isHidden]) { - [tableInfoScrollView setHidden:YES]; - [activitiesScrollView setHidden:NO]; + [tableDocumentInstance setActivityPaneHidden:[NSNumber numberWithInteger:0]]; [[NSApp mainWindow] makeFirstResponder:activitiesTable]; } else { - [activitiesScrollView setHidden:YES]; - [tableInfoScrollView setHidden:NO]; + [tableDocumentInstance setActivityPaneHidden:[NSNumber numberWithInteger:1]]; [[NSApp mainWindow] makeFirstResponder:infoTable]; } |