aboutsummaryrefslogtreecommitdiffstats
path: root/Source/CustomQuery.m
diff options
context:
space:
mode:
authoravenjamin <avenjamin@gmail.com>2009-05-21 07:00:04 +0000
committeravenjamin <avenjamin@gmail.com>2009-05-21 07:00:04 +0000
commit205e60918c2cdc7be6c70ac71db9b85bf6301828 (patch)
tree82bdc7311c43b7e86e531f87bb6220a99bdb670d /Source/CustomQuery.m
parentffcbd889c7f9a5fd917b8dff01fa4fa8df39c926 (diff)
downloadsequelpro-205e60918c2cdc7be6c70ac71db9b85bf6301828.tar.gz
sequelpro-205e60918c2cdc7be6c70ac71db9b85bf6301828.tar.bz2
sequelpro-205e60918c2cdc7be6c70ac71db9b85bf6301828.zip
- Fixed NSFontPanel issue. Now showing font collections in Font Panel
- Replaced some toolbar icons with new ones - Edited some toolbar icons. - Added keyboard shortcut section to preferences (Disabled for now)
Diffstat (limited to 'Source/CustomQuery.m')
-rw-r--r--Source/CustomQuery.m7
1 files changed, 7 insertions, 0 deletions
diff --git a/Source/CustomQuery.m b/Source/CustomQuery.m
index 3aa90ce0..da538fe2 100644
--- a/Source/CustomQuery.m
+++ b/Source/CustomQuery.m
@@ -220,6 +220,7 @@ closes the sheet
// "Editor font..." menu item to bring up the font panel
if (sender == editorFontMenuItem) {
[[NSFontPanel sharedFontPanel] setPanelFont:[textView font] isMultiple:NO];
+ [[NSFontPanel sharedFontPanel] setDelegate:self];
[[NSFontPanel sharedFontPanel] makeKeyAndOrderFront:self];
}
@@ -1393,6 +1394,12 @@ traps enter key and
[prefs setObject:[NSArchiver archivedDataWithRootObject:[textView font]] forKey:@"CustomQueryEditorFont"];
}
+// set font panel's valid modes
+- (unsigned int)validModesForFontPanel:(NSFontPanel *)fontPanel
+{
+ return (NSFontPanelAllModesMask ^ NSFontPanelAllEffectsModeMask);
+}
+
#pragma mark -
#pragma mark MySQL Help