ProjectManager  0.2
TemplateFileSelector.h
1 /*
2  TemplateFileSelector.h
3 
4  Interface declaration for the TemplateFileSelector class for
5  the ProjectManager class.
6 
7  Copyright (C) 2005 Saso Kiselkov
8 
9  This program is free software; you can redistribute it and/or modify
10  it under the terms of the GNU General Public License as published by
11  the Free Software Foundation; either version 2 of the License, or
12  (at your option) any later version.
13 
14  This program is distributed in the hope that it will be useful,
15  but WITHOUT ANY WARRANTY; without even the implied warranty of
16  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
17  GNU General Public License for more details.
18 
19  You should have received a copy of the GNU General Public License
20  along with this program; if not, write to the Free Software
21  Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
22 */
23 
24 #import <Foundation/NSObject.h>
25 
26 #import <AppKit/NSNibDeclarations.h>
27 
28 @class NSString;
29 
30 @class NSPanel,
31  NSBrowser,
32  NSTextView,
33  NSButton,
34  NSMatrix,
35  NSFormCell;
36 
37 @interface TemplateFileSelector : NSObject
38 {
39  IBOutlet NSPanel * panel;
40 
41  IBOutlet NSBrowser * browser;
42  IBOutlet NSTextView * fileDescription;
43 
44  IBOutlet NSFormCell * filename;
45 
46  IBOutlet NSButton * okButton;
47  IBOutlet NSButton * importAssociatedButton;
48 
49  NSString * directory;
50  NSString * oldBrowserPath;
51 }
52 
53 + shared;
54 
55 - (int) runModalForTemplatesDirectory: (NSString *) aDirectory;
56 
57 - (NSString *) filename;
58 - (NSString *) templateFile;
59 - (NSString *) templateDirectory;
60 - (BOOL) shouldImportAssociatedFiles;
61 
62 // button actions
63 - (void) ok: sender;
64 - (void) cancel: sender;
65 
66 // browser action
67 - (void) updateSelection: sender;
68 
69 // browser delegate methods
70 - (void) browser: (NSBrowser *)sender createRowsForColumn: (int)column
71  inMatrix: (NSMatrix *)matrix;
72 
73 @end
Definition: TemplateFileSelector.h:38