ProjectManager  0.2
TemplateFileSelector.h
00001 /*
00002     TemplateFileSelector.h
00003 
00004     Interface declaration for the TemplateFileSelector class for
00005     the ProjectManager class.
00006 
00007     Copyright (C) 2005  Saso Kiselkov
00008 
00009     This program is free software; you can redistribute it and/or modify
00010     it under the terms of the GNU General Public License as published by
00011     the Free Software Foundation; either version 2 of the License, or
00012     (at your option) any later version.
00013 
00014     This program is distributed in the hope that it will be useful,
00015     but WITHOUT ANY WARRANTY; without even the implied warranty of
00016     MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
00017     GNU General Public License for more details.
00018 
00019     You should have received a copy of the GNU General Public License
00020     along with this program; if not, write to the Free Software
00021     Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301  USA
00022 */
00023 
00024 #import <Foundation/NSObject.h>
00025 
00026 #import <AppKit/NSNibDeclarations.h>
00027 
00028 @class NSString;
00029 
00030 @class NSPanel,
00031        NSBrowser,
00032        NSTextView,
00033        NSButton,
00034        NSMatrix,
00035        NSFormCell;
00036 
00037 @interface TemplateFileSelector : NSObject
00038 {
00039   IBOutlet NSPanel * panel;
00040 
00041   IBOutlet NSBrowser * browser;
00042   IBOutlet NSTextView * fileDescription;
00043 
00044   IBOutlet NSFormCell * filename;
00045 
00046   IBOutlet NSButton * okButton;
00047   IBOutlet NSButton * importAssociatedButton;
00048 
00049   NSString * directory;
00050   NSString * oldBrowserPath;
00051 }
00052 
00053 + shared;
00054 
00055 - (int) runModalForTemplatesDirectory: (NSString *) aDirectory;
00056 
00057 - (NSString *) filename;
00058 - (NSString *) templateFile;
00059 - (NSString *) templateDirectory;
00060 - (BOOL) shouldImportAssociatedFiles;
00061 
00062 // button actions
00063 - (void) ok: sender;
00064 - (void) cancel: sender;
00065 
00066 // browser action
00067 - (void) updateSelection: sender;
00068 
00069 // browser delegate methods
00070 - (void) browser: (NSBrowser *)sender createRowsForColumn: (int)column
00071   inMatrix: (NSMatrix *)matrix;
00072 
00073 @end