mirror of
https://github.com/gnustep/apps-gorm.git
synced 2025-02-24 03:51:22 +00:00
Initialize the items of Gorm's predefined Find menu with tags and
actions suitable for using the standard NSTextView find panel. git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/apps/gorm/trunk@31069 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
parent
2ba2c53a79
commit
acbfc23850
3 changed files with 29 additions and 13 deletions
10
ChangeLog
10
ChangeLog
|
@ -1,3 +1,13 @@
|
||||||
|
2010-08-02 Wolfgang Lux <wolfgang.lux@gmail.com>
|
||||||
|
|
||||||
|
* Palettes/0Menus/MenusPalette.m (-finishInstantiate):
|
||||||
|
Initialize the find menu items with tags and actions suitable for
|
||||||
|
using the standard NSTextView find panel.
|
||||||
|
|
||||||
|
* Resources/ClassInformation.plist:
|
||||||
|
Add -centerSelectionInVisibleArea: and -performFindPanelAction: to
|
||||||
|
the list of first responder actions.
|
||||||
|
|
||||||
2010-07-10 01:22-EDT Gregory John Casamento <greg.casamento@gmail.com>
|
2010-07-10 01:22-EDT Gregory John Casamento <greg.casamento@gmail.com>
|
||||||
|
|
||||||
* GormInfo.plist: Simplified copyright portion. Give a range of
|
* GormInfo.plist: Simplified copyright portion. Give a range of
|
||||||
|
|
|
@ -306,20 +306,24 @@
|
||||||
* The Find menu
|
* The Find menu
|
||||||
*/
|
*/
|
||||||
m = [[GormNSMenu alloc] init];
|
m = [[GormNSMenu alloc] init];
|
||||||
[m addItemWithTitle: @"Find Panel..."
|
i = [m addItemWithTitle: @"Find Panel..."
|
||||||
action: NULL
|
action: @selector(performFindPanelAction:)
|
||||||
keyEquivalent: @"f"];
|
keyEquivalent: @"f"];
|
||||||
[m addItemWithTitle: @"Find Next"
|
[i setTag: NSFindPanelActionShowFindPanel];
|
||||||
action: NULL
|
i = [m addItemWithTitle: @"Find Next"
|
||||||
keyEquivalent: @"g"];
|
action: @selector(performFindPanelAction:)
|
||||||
[m addItemWithTitle: @"Find Previous"
|
keyEquivalent: @"g"];
|
||||||
action: NULL
|
[i setTag: NSFindPanelActionNext];
|
||||||
keyEquivalent: @"d"];
|
i = [m addItemWithTitle: @"Find Previous"
|
||||||
[m addItemWithTitle: @"Enter Selection"
|
action: @selector(performFindPanelAction:)
|
||||||
action: NULL
|
keyEquivalent: @"d"];
|
||||||
keyEquivalent: @"e"];
|
[i setTag: NSFindPanelActionPrevious];
|
||||||
|
i = [m addItemWithTitle: @"Enter Selection"
|
||||||
|
action: @selector(performFindPanelAction:)
|
||||||
|
keyEquivalent: @"e"];
|
||||||
|
[i setTag: NSFindPanelActionSetFindString];
|
||||||
[m addItemWithTitle: @"Jump To Selection"
|
[m addItemWithTitle: @"Jump To Selection"
|
||||||
action: NULL
|
action: @selector(centerSelectionInVisibleArea:)
|
||||||
keyEquivalent: @"j"];
|
keyEquivalent: @"j"];
|
||||||
[m setTitle: @"Find"];
|
[m setTitle: @"Find"];
|
||||||
i = [[NSMenuItem alloc] initWithTitle: @"Find"
|
i = [[NSMenuItem alloc] initWithTitle: @"Find"
|
||||||
|
|
|
@ -9,6 +9,7 @@
|
||||||
"arrangeInFront:",
|
"arrangeInFront:",
|
||||||
"cancel:",
|
"cancel:",
|
||||||
"capitalizeWord:",
|
"capitalizeWord:",
|
||||||
|
"centerSelectionInVisibleArea:",
|
||||||
"changeColor:",
|
"changeColor:",
|
||||||
"changeFont:",
|
"changeFont:",
|
||||||
"checkSpelling:",
|
"checkSpelling:",
|
||||||
|
@ -81,6 +82,7 @@
|
||||||
"pasteFont:",
|
"pasteFont:",
|
||||||
"pasteRuler:",
|
"pasteRuler:",
|
||||||
"performClose:",
|
"performClose:",
|
||||||
|
"performFindPanelAction:",
|
||||||
"performMiniaturize:",
|
"performMiniaturize:",
|
||||||
"performZoom:",
|
"performZoom:",
|
||||||
"print:",
|
"print:",
|
||||||
|
|
Loading…
Reference in a new issue