From ffab593752dd8fbd56f7eeb0f7fa666a938ba774 Mon Sep 17 00:00:00 2001 From: stuconnolly Date: Sat, 14 Nov 2009 13:23:17 +0000 Subject: Bunch of improvements to the query console, including: - New connection column (been meaning to add this for a while) - Display table view column headers - Enable table view text cell line truncating - Allow table view columns to be re-ordered - The table view now respects the display table view vertical grid lines preference - Support for including the connection when saving messages to a file - Support for showing/hiding the connection column - Increase table view row height to match that of all others - Display message time stamps using the user's system wide medium time format --- Source/SPQueryController.h | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) (limited to 'Source/SPQueryController.h') diff --git a/Source/SPQueryController.h b/Source/SPQueryController.h index 79d1ea8c..2a7af9ca 100644 --- a/Source/SPQueryController.h +++ b/Source/SPQueryController.h @@ -33,8 +33,7 @@ IBOutlet NSSearchField *consoleSearchField; IBOutlet NSTextField *loggingDisabledTextField; IBOutlet NSProgressIndicator *progressIndicator; - IBOutlet NSButton *includeTimeStampsButton, *saveConsoleButton, *clearConsoleButton; - IBOutlet NSMenuItem *showTimeStampsMenuItem, *showSelectShowStatementsMenuItem, *showHelpMenuItem; + IBOutlet NSButton *includeTimeStampsButton, *includeConnectionButton, *saveConsoleButton, *clearConsoleButton; NSFont *consoleFont; NSMutableArray *messagesFullSet, *messagesFilteredSet, *messagesVisibleSet; @@ -53,6 +52,7 @@ NSUInteger numberOfMaxAllowedHistory; NSUserDefaults *prefs; + NSDateFormatter *dateFormatter; } @property (readwrite, retain) NSFont *consoleFont; @@ -64,16 +64,17 @@ - (IBAction)clearConsole:(id)sender; - (IBAction)saveConsoleAs:(id)sender; - (IBAction)toggleShowTimeStamps:(id)sender; +- (IBAction)toggleShowConnections:(id)sender; - (IBAction)toggleShowSelectShowStatements:(id)sender; - (IBAction)toggleShowHelpStatements:(id)sender; - (void)updateEntries; -- (BOOL) allowConsoleUpdate; -- (void) setAllowConsoleUpdate:(BOOL)allowUpdate; +- (BOOL)allowConsoleUpdate; +- (void)setAllowConsoleUpdate:(BOOL)allowUpdate; -- (void)showMessageInConsole:(NSString *)message; -- (void)showErrorInConsole:(NSString *)error; +- (void)showMessageInConsole:(NSString *)message connection:(NSString *)connection; +- (void)showErrorInConsole:(NSString *)error connection:(NSString *)connection; - (NSUInteger)consoleMessageCount; -- cgit v1.2.3