diff options
author | stuconnolly <stuart02@gmail.com> | 2009-03-26 23:28:27 +0000 |
---|---|---|
committer | stuconnolly <stuart02@gmail.com> | 2009-03-26 23:28:27 +0000 |
commit | 3a7dc0b03bc51f46d762e2bbe6d7afdee59288ef (patch) | |
tree | afdf05045c74e6a7f12590a4005a306a76d221e3 /Source/SPQueryConsole.h | |
parent | 93dfcc27627fd64c1f6c3124297252298a3f499a (diff) | |
download | sequelpro-3a7dc0b03bc51f46d762e2bbe6d7afdee59288ef.tar.gz sequelpro-3a7dc0b03bc51f46d762e2bbe6d7afdee59288ef.tar.bz2 sequelpro-3a7dc0b03bc51f46d762e2bbe6d7afdee59288ef.zip |
Completely redesigned query console that now uses a table view instead of a text view. This should significantly improve import speed, but most importantly resolves the crashes caused by the drawing that was being performed by the text view. Fixes issue #87 and implements #167.
New console provides the following:
- Live filtering
- Ability to hide message time stamps
- Ability to hide SELECT/SHOW statement messages
- Ability to copy messages to pasteboard, including multiple messages
- Ability to save the current filtered content to a file, with the option to include the message time stamps
Diffstat (limited to 'Source/SPQueryConsole.h')
-rw-r--r-- | Source/SPQueryConsole.h | 18 |
1 files changed, 15 insertions, 3 deletions
diff --git a/Source/SPQueryConsole.h b/Source/SPQueryConsole.h index e1072904..65d716d4 100644 --- a/Source/SPQueryConsole.h +++ b/Source/SPQueryConsole.h @@ -24,15 +24,27 @@ @interface SPQueryConsole : NSWindowController { - IBOutlet NSTextView *consoleTextView; + NSFont *consoleFont; + NSMutableArray *messages, *messagesActiveSet, *messagesFilterSet, *messagesSubset; + + IBOutlet NSView *saveLogView; + IBOutlet NSTableView *consoleTableView; + IBOutlet NSSearchField *consoleSearchField; + IBOutlet NSProgressIndicator *progressIndicator; + IBOutlet NSButton *includeTimeStampsButton, *saveConsoleButton, *clearConsoleButton; } +@property (readwrite, retain) NSFont *consoleFont; + ++ (SPQueryConsole *)sharedQueryConsole; + +- (IBAction)copy:(id)sender; - (IBAction)clearConsole:(id)sender; - (IBAction)saveConsoleAs:(id)sender; +- (IBAction)toggleShowTimeStamps:(id)sender; +- (IBAction)toggleShowSelectShowStatements:(id)sender; - (void)showMessageInConsole:(NSString *)message; - (void)showErrorInConsole:(NSString *)error; -- (NSTextView *)consoleTextView; - @end |