Merge pull request #506 from andrewcsmith/patch-2
[supercollider.git] / editors / scapp / include / GoToPanel.h
blobe2dfb0ce9509232eeb57f95771ed6fc204a123df
1 /*
2 * GoToPanel.M
3 * SC3lang
5 * Created by j. trutzschler on 02 sept 2003.
6 derived from TextFinder.m by Ali Ozer
8 a panel that searches and selects a line
10 This program is free software; you can redistribute it and/or modify
11 it under the terms of the GNU General Public License as published by
12 the Free Software Foundation; either version 2 of the License, or
13 (at your option) any later version.
15 This program is distributed in the hope that it will be useful,
16 but WITHOUT ANY WARRANTY; without even the implied warranty of
17 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
18 GNU General Public License for more details.
20 You should have received a copy of the GNU General Public License
21 along with this program; if not, write to the Free Software
22 Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
25 #import <Cocoa/Cocoa.h>
27 @interface GoToPanel : NSObject {
28 id findTextField;
29 id okButton;
32 /* Common way to get a text finder. One instance of TextFinder per app is good enough. */
33 + (id)sharedInstance;
35 /* Main method for external users; does a find in the first responder. Selects found range or beeps. */
36 - (void)selectLine:(id)sender;
37 - (void) getAndDisplayCurrentLine;
38 - (void)prselectLine:(int)linenum;
40 /* Loads UI lazily */
41 - (NSPanel *)gotoLinePanel;
43 /* Gets the first responder and returns it if it's an NSTextView */
44 - (NSTextView *)textObjectToSelectIn;
46 - (void)orderFrontGotoLinePanel:(id)sender;
48 /* Misc internal methods */
49 - (void)appDidActivate:(NSNotification *)notification;
52 @end