forked from erkyrath/Inform7-IDE-Mac
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathIFNewProjectFile.h
32 lines (24 loc) · 1.02 KB
/
IFNewProjectFile.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
//
// IFNewProjectFile.h
// Inform
//
// Created by Andrew Hunter on Tue Jun 01 2004.
// Copyright (c) 2004 Andrew Hunter. All rights reserved.
//
#import <AppKit/AppKit.h>
#import "IFProjectController.h"
//
// Window controller that handles the dialog that's presented when we want to add a new file to
// a project
//
@interface IFNewProjectFile : NSWindowController {
IFProjectController* projectController; // The project controller for the project that's getting a new file
IBOutlet NSPopUpButton* fileType; // Used to select the type of file
IBOutlet NSTextField* fileName; // Used to enter the new file name
NSString* newFilename; // Stores the filename that the new file will have
}
- (id) initWithProjectController: (IFProjectController*) control; // Initialises this object
- (IBAction) cancel: (id) sender; // Cancels the action
- (IBAction) addFile: (id) sender; // Performs the action
- (NSString*) getNewFilename; // Retrieves the name of the file that should be created
@end