diff options
author | Bibiko <bibiko@eva.mpg.de> | 2011-05-07 16:20:32 +0000 |
---|---|---|
committer | Bibiko <bibiko@eva.mpg.de> | 2011-05-07 16:20:32 +0000 |
commit | 1e4d8fa0225e493b156ec1cb60d38ad698ddd9e9 (patch) | |
tree | 2a98b3655d7b9cd557c7e841e4e0a48cd79ef745 /Source | |
parent | 0c2a225a68ef1512e51ff3a48fef1fa13eacce60 (diff) | |
download | sequelpro-1e4d8fa0225e493b156ec1cb60d38ad698ddd9e9.tar.gz sequelpro-1e4d8fa0225e493b156ec1cb60d38ad698ddd9e9.tar.bz2 sequelpro-1e4d8fa0225e493b156ec1cb60d38ad698ddd9e9.zip |
• control the separator menu item above the "Open ... in new Tab" in TablesList's context and gear menu to avoid having two separators one after another
Diffstat (limited to 'Source')
-rw-r--r-- | Source/SPTablesList.h | 2 | ||||
-rw-r--r-- | Source/SPTablesList.m | 10 |
2 files changed, 12 insertions, 0 deletions
diff --git a/Source/SPTablesList.h b/Source/SPTablesList.h index 914295a5..497fe620 100644 --- a/Source/SPTablesList.h +++ b/Source/SPTablesList.h @@ -81,6 +81,7 @@ IBOutlet NSMenuItem *separatorTableMenuItem; IBOutlet NSMenuItem *showCreateSyntaxMenuItem; IBOutlet NSMenuItem *separatorTableMenuItem2; + IBOutlet NSMenuItem *separatorTableMenuItem3; #endif MCPConnection *mySQLConnection; @@ -95,6 +96,7 @@ IBOutlet NSMenuItem *separatorTableContextMenuItem; IBOutlet NSMenuItem *showCreateSyntaxContextMenuItem; IBOutlet NSMenuItem *separatorTableContextMenuItem2; + IBOutlet NSMenuItem *separatorTableContextMenuItem3; #endif NSMutableArray *tables; diff --git a/Source/SPTablesList.m b/Source/SPTablesList.m index 6c37ee87..5054798c 100644 --- a/Source/SPTablesList.m +++ b/Source/SPTablesList.m @@ -833,6 +833,7 @@ static NSString *SPDuplicateTable = @"SPDuplicateTable"; // Context menu [renameTableContextMenuItem setHidden:YES]; [openTableInNewTabContextMenuItem setHidden:YES]; + [separatorTableContextMenuItem3 setHidden:YES]; [duplicateTableContextMenuItem setHidden:YES]; [separatorTableContextMenuItem setHidden:YES]; [separatorTableContextMenuItem2 setHidden:NO]; @@ -842,6 +843,7 @@ static NSString *SPDuplicateTable = @"SPDuplicateTable"; // 'Gear' menu [renameTableMenuItem setHidden:YES]; [openTableInNewTabMenuItem setHidden:YES]; + [separatorTableMenuItem3 setHidden:YES]; [duplicateTableMenuItem setHidden:YES]; [separatorTableMenuItem setHidden:YES]; [separatorTableMenuItem2 setHidden:NO]; @@ -930,6 +932,7 @@ static NSString *SPDuplicateTable = @"SPDuplicateTable"; [truncateTableButton setHidden:YES]; [removeTableMenuItem setTitle:NSLocalizedString(@"Delete View", @"delete view menu title")]; [openTableInNewTabMenuItem setHidden:NO]; + [separatorTableMenuItem3 setHidden:NO]; [openTableInNewTabMenuItem setTitle:NSLocalizedString(@"Open View in New Tab", @"open view in new table title")]; [showCreateSyntaxMenuItem setHidden:NO]; [showCreateSyntaxMenuItem setTitle:NSLocalizedString(@"Show Create View Syntax...", @"show create view syntax menu item")]; @@ -941,6 +944,7 @@ static NSString *SPDuplicateTable = @"SPDuplicateTable"; [truncateTableContextMenuItem setHidden:YES]; [removeTableContextMenuItem setTitle:NSLocalizedString(@"Delete View", @"delete view menu title")]; [openTableInNewTabContextMenuItem setHidden:NO]; + [separatorTableContextMenuItem3 setHidden:NO]; [openTableInNewTabContextMenuItem setTitle:NSLocalizedString(@"Open View in New Tab", @"open view in new table title")]; [showCreateSyntaxContextMenuItem setHidden:NO]; [showCreateSyntaxContextMenuItem setTitle:NSLocalizedString(@"Show Create View Syntax...", @"show create view syntax menu item")]; @@ -972,6 +976,7 @@ static NSString *SPDuplicateTable = @"SPDuplicateTable"; [removeTableMenuItem setTitle:NSLocalizedString(@"Delete Table", @"delete table menu title")]; [openTableInNewTabMenuItem setHidden:NO]; [openTableInNewTabMenuItem setTitle:NSLocalizedString(@"Open Table in New Tab", @"open table in new table title")]; + [separatorTableMenuItem3 setHidden:NO]; [showCreateSyntaxMenuItem setHidden:NO]; [showCreateSyntaxMenuItem setTitle:NSLocalizedString(@"Show Create Table Syntax...", @"show create table syntax menu item")]; @@ -983,6 +988,7 @@ static NSString *SPDuplicateTable = @"SPDuplicateTable"; [truncateTableContextMenuItem setTitle:NSLocalizedString(@"Truncate Table", @"truncate table menu title")]; [removeTableContextMenuItem setTitle:NSLocalizedString(@"Delete Table", @"delete table menu title")]; [openTableInNewTabContextMenuItem setHidden:NO]; + [separatorTableContextMenuItem3 setHidden:NO]; [openTableInNewTabContextMenuItem setTitle:NSLocalizedString(@"Open Table in New Tab", @"open table in new table title")]; [showCreateSyntaxContextMenuItem setHidden:NO]; [showCreateSyntaxContextMenuItem setTitle:NSLocalizedString(@"Show Create Table Syntax...", @"show create table syntax menu item")]; @@ -1007,6 +1013,7 @@ static NSString *SPDuplicateTable = @"SPDuplicateTable"; [removeTableMenuItem setTitle:NSLocalizedString(@"Delete Procedure", @"delete proc menu title")]; [openTableInNewTabMenuItem setHidden:NO]; [openTableInNewTabMenuItem setTitle:NSLocalizedString(@"Open Procedure in New Tab", @"open procedure in new table title")]; + [separatorTableMenuItem3 setHidden:NO]; [showCreateSyntaxMenuItem setHidden:NO]; [showCreateSyntaxMenuItem setTitle:NSLocalizedString(@"Show Create Procedure Syntax...", @"show create proc syntax menu item")]; @@ -1017,6 +1024,7 @@ static NSString *SPDuplicateTable = @"SPDuplicateTable"; [truncateTableContextMenuItem setHidden:YES]; [removeTableContextMenuItem setTitle:NSLocalizedString(@"Delete Procedure", @"delete proc menu title")]; [openTableInNewTabContextMenuItem setHidden:NO]; + [separatorTableContextMenuItem3 setHidden:NO]; [openTableInNewTabContextMenuItem setTitle:NSLocalizedString(@"Open Procedure in New Tab", @"open procedure in new table title")]; [showCreateSyntaxContextMenuItem setHidden:NO]; [showCreateSyntaxContextMenuItem setTitle:NSLocalizedString(@"Show Create Procedure Syntax...", @"show create proc syntax menu item")]; @@ -1040,6 +1048,7 @@ static NSString *SPDuplicateTable = @"SPDuplicateTable"; [truncateTableButton setHidden:YES]; [removeTableMenuItem setTitle:NSLocalizedString(@"Delete Function", @"delete func menu title")]; [openTableInNewTabMenuItem setHidden:NO]; + [separatorTableMenuItem3 setHidden:NO]; [openTableInNewTabMenuItem setTitle:NSLocalizedString(@"Open Function in New Tab", @"open function in new table title")]; [showCreateSyntaxMenuItem setHidden:NO]; [showCreateSyntaxMenuItem setTitle:NSLocalizedString(@"Show Create Function Syntax...", @"show create func syntax menu item")]; @@ -1051,6 +1060,7 @@ static NSString *SPDuplicateTable = @"SPDuplicateTable"; [truncateTableContextMenuItem setHidden:YES]; [removeTableContextMenuItem setTitle:NSLocalizedString(@"Delete Function", @"delete func menu title")]; [openTableInNewTabContextMenuItem setHidden:NO]; + [separatorTableContextMenuItem3 setHidden:NO]; [openTableInNewTabContextMenuItem setTitle:NSLocalizedString(@"Open Function in New Tab", @"open function in new table title")]; [showCreateSyntaxContextMenuItem setHidden:NO]; [showCreateSyntaxContextMenuItem setTitle:NSLocalizedString(@"Show Create Function Syntax...", @"show create func syntax menu item")]; |