forked from pixmeo/osirix
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathBurnerWindowController.h
85 lines (74 loc) · 2.56 KB
/
BurnerWindowController.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
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
/*=========================================================================
Program: OsiriX
Copyright (c) OsiriX Team
All rights reserved.
Distributed under GNU - LGPL
See http://www.osirix-viewer.com/copyright.html for details.
This software is distributed WITHOUT ANY WARRANTY; without even
the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
PURPOSE.
=========================================================================*/
#import <Cocoa/Cocoa.h>
enum burnerDestination
{
CDDVD = 0,
USBKey = 1,
DMGFile = 2
};
@class DRTrack;
@class DicomDatabase;
/** \brief Window Controller for DICOM disk burning */
@interface BurnerWindowController : NSWindowController <NSWindowDelegate>
{
volatile BOOL burning;
NSMutableArray *files, *anonymizedFiles, *dbObjectsID, *originalDbObjectsID;
float burnSize;
IBOutlet NSTextField *nameField;
IBOutlet NSTextField *sizeField, *finalSizeField;
IBOutlet NSMatrix *compressionMode;
IBOutlet NSButton *burnButton;
IBOutlet NSButton *anonymizedCheckButton;
NSString *cdName;
NSTimer *burnAnimationTimer;
volatile BOOL runBurnAnimation, isExtracting, isSettingUpBurn, isThrobbing, windowWillClose;
NSArray *filesToBurn;
BOOL _multiplePatients;
BOOL cancelled;
NSString *writeDMGPath, *writeVolumePath;
NSUInteger selectedUSB;
NSArray *anonymizationTags;
int sizeInMb;
NSString *password;
IBOutlet NSWindow *passwordWindow;
BOOL buttonsDisabled;
BOOL burnSuppFolder, burnOsiriX, burnHtml, burnWeasis;
int burnAnimationIndex;
int irisAnimationIndex;
NSTimer *irisAnimationTimer;
}
@property BOOL buttonsDisabled;
@property NSUInteger selectedUSB;
@property (retain) NSString *password;
- (NSArray*) volumes;
- (IBAction) ok:(id)sender;
- (IBAction) cancel:(id)sender;
- (IBAction) setAnonymizedCheck: (id) sender;
- (id) initWithFiles:(NSArray *)theFiles;
- (id)initWithFiles:(NSArray *)theFiles managedObjects:(NSArray *)managedObjects;
- (IBAction)burn:(id)sender;
- (void)setCDTitle: (NSString *)title;
- (IBAction)setCDName:(id)sender;
- (NSString *)folderToBurn;
- (void)setFilesToBurn:(NSArray *)theFiles;
- (void)burnCD:(id)object;
- (NSArray *)extractFileNames:(NSArray *)filenames;
- (void)importFiles:(NSArray *)fileNames;
- (void)setup:(id)sender;
- (void) prepareCDContent: (NSMutableArray*) dbObjects :(NSMutableArray*) originalDbObjects;
- (IBAction)estimateFolderSize:(id)object;
- (void)performBurn:(id)object;
- (void)irisAnimation:(NSTimer*)object;
- (NSNumber*)getSizeOfDirectory:(NSString*)path;
- (NSString*) defaultTitle;
- (void)saveOnVolume;
@end