diff options
author | avenjamin <avenjamin@gmail.com> | 2009-04-20 15:29:33 +0000 |
---|---|---|
committer | avenjamin <avenjamin@gmail.com> | 2009-04-20 15:29:33 +0000 |
commit | 3d8cf2bf36d8a4ebb3e46623f58bf1652854716d (patch) | |
tree | a7a3fe91e62c31def53a2ab94c676509f22fd7c3 /Source | |
parent | 88335cc276770e86fb347405288b5f4ec0256926 (diff) | |
download | sequelpro-3d8cf2bf36d8a4ebb3e46623f58bf1652854716d.tar.gz sequelpro-3d8cf2bf36d8a4ebb3e46623f58bf1652854716d.tar.bz2 sequelpro-3d8cf2bf36d8a4ebb3e46623f58bf1652854716d.zip |
- Changed console window to match style of main window.
- New bottom bar.
- Both checkboxes moved into gear button with menu.
- Clear Console button has new custom image
Diffstat (limited to 'Source')
-rw-r--r-- | Source/SPQueryConsole.h | 1 | ||||
-rw-r--r-- | Source/SPQueryConsole.m | 9 |
2 files changed, 7 insertions, 3 deletions
diff --git a/Source/SPQueryConsole.h b/Source/SPQueryConsole.h index cbe89662..8b1d912d 100644 --- a/Source/SPQueryConsole.h +++ b/Source/SPQueryConsole.h @@ -29,6 +29,7 @@ IBOutlet NSSearchField *consoleSearchField; IBOutlet NSProgressIndicator *progressIndicator; IBOutlet NSButton *includeTimeStampsButton, *saveConsoleButton, *clearConsoleButton; + IBOutlet NSMenuItem *showTimeStampsMenuItem, *showSelectShowStatementsMenuItem; NSFont *consoleFont; NSMutableArray *messagesFullSet, *messagesFilteredSet, *messagesVisibleSet; diff --git a/Source/SPQueryConsole.m b/Source/SPQueryConsole.m index 7106f49a..43177ae1 100644 --- a/Source/SPQueryConsole.m +++ b/Source/SPQueryConsole.m @@ -200,7 +200,8 @@ static SPQueryConsole *sharedQueryConsole = nil; */ - (IBAction)toggleShowTimeStamps:(id)sender { - [[consoleTableView tableColumnWithIdentifier:TABLEVIEW_DATE_COLUMN_IDENTIFIER] setHidden:(![sender intValue])]; + [[consoleTableView tableColumnWithIdentifier:TABLEVIEW_DATE_COLUMN_IDENTIFIER] setHidden:([sender state])]; + [showTimeStampsMenuItem setState:![sender state]]; } /** @@ -208,9 +209,11 @@ static SPQueryConsole *sharedQueryConsole = nil; */ - (IBAction)toggleShowSelectShowStatements:(id)sender { + showSelectStatementsAreDisabled = [sender state]; + // Store the state of the toggle for later quick reference - showSelectStatementsAreDisabled = ![sender intValue]; - + [showSelectShowStatementsMenuItem setState:!showSelectStatementsAreDisabled]; + [self _updateFilterState]; } |