/
BXImportFinalizingPanelController.h
59 lines (41 loc) · 2.04 KB
/
BXImportFinalizingPanelController.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
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
/*
Copyright (c) 2013 Alun Bestor and contributors. All rights reserved.
This source file is released under the GNU General Public License 2.0. A full copy of this license
can be found in this XCode project at Resources/English.lproj/BoxerHelp/pages/legalese.html, or read
online at [http://www.gnu.org/licenses/gpl-2.0.txt].
*/
//BXImportFinalizingPanelController manages the finalizing-gamebox view of the game import window.
#import <Cocoa/Cocoa.h>
#import "BXImportSession.h"
@class BXImportWindowController;
@interface BXImportFinalizingPanelController : NSViewController
{
__unsafe_unretained BXImportWindowController *_controller;
}
#pragma mark -
#pragma mark Properties
//A reference to our window controller.
@property (assign, nonatomic) IBOutlet BXImportWindowController *controller;
//A textual description of what import stage we are currently performing.
//Used for populating the description field beneath the progress bar.
@property (readonly, nonatomic) NSString *progressDescription;
//The label and enabledness of the stop importing/skip importing button.
@property (readonly, nonatomic) NSString * cancelButtonLabel;
@property (readonly, nonatomic) BOOL cancelButtonEnabled;
//Whether to show the tip about importing additional CDs.
//Will be YES if the source is a CD-ROM or CD image, NO otherwise.
@property (readonly, nonatomic) BOOL showAdditionalCDTips;
#pragma mark -
#pragma mark Helper class methods
//Helper methods used by progressDescription and cancelButtonLabel.
+ (NSString *) cancelButtonLabelForImportType: (BXSourceFileImportType)importType;
+ (NSString *) stageDescriptionForImportType: (BXSourceFileImportType)importType;
+ (NSAlert *) skipAlertForSourceURL: (NSURL *)sourceURL
type: (BXSourceFileImportType)importType;
#pragma mark -
#pragma mark UI actions
//Display help for this stage of the import process.
- (IBAction) showImportFinalizingHelp: (id)sender;
//Skip the source file import stage. This will show a confirmation prompt.
- (IBAction) cancelSourceFileImport: (id)sender;
@end