Skip to content

Commit

Permalink
Merge branch 'develop' of https://github.com/pixmeo/osirixplugins int…
Browse files Browse the repository at this point in the history
…o develop
  • Loading branch information
aglv committed Jun 11, 2013
2 parents 83a84e6 + 14b456a commit 2d00289
Show file tree
Hide file tree
Showing 26 changed files with 6,144 additions and 0 deletions.
Binary file added SandBox/English.lproj/InfoPlist.strings
Binary file not shown.
2,257 changes: 2,257 additions & 0 deletions SandBox/English.lproj/S_BurnViewer.xib

Large diffs are not rendered by default.

14 changes: 14 additions & 0 deletions SandBox/English.lproj/locversion.plist
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple Computer//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>LprojCompatibleVersion</key>
<string>220.2</string>
<key>LprojLocale</key>
<string>en</string>
<key>LprojRevisionLevel</key>
<string>1</string>
<key>LprojVersion</key>
<string>307</string>
</dict>
</plist>
28 changes: 28 additions & 0 deletions SandBox/Info.plist
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>CFBundleDevelopmentRegion</key>
<string>English</string>
<key>CFBundleExecutable</key>
<string>SandBox</string>
<key>CFBundleIconFile</key>
<string></string>
<key>CFBundleInfoDictionaryVersion</key>
<string>6.0</string>
<key>CFBundlePackageType</key>
<string>BNDL</string>
<key>CFBundleSignature</key>
<string>????</string>
<key>CFBundleVersion</key>
<string>1.0</string>
<key>MenuTitles</key>
<array>
<string>SandBox</string>
</array>
<key>NSPrincipalClass</key>
<string>SandBoxFilter</string>
<key>pluginType</key>
<string>Database</string>
</dict>
</plist>
86 changes: 86 additions & 0 deletions SandBox/S_BurnerWindowController.h
Original file line number Diff line number Diff line change
@@ -0,0 +1,86 @@
/*=========================================================================
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 S_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;
- (BOOL)dicomCheck:(NSString *)filename;
- (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
Loading

0 comments on commit 2d00289

Please sign in to comment.