8 #import <appkit/OpenPanel.h>
9 #import <appkit/SavePanel.h>
10 #import <appkit/PopUpList.h>
11 #import <appkit/Control.h>
12 #import <appkit/ActionCell.h>
14 #import <appkit/tiff.h>
29 [self activateSelf:NO];
38 [self activateSelf:NO];
39 if (!strcmp(type,
"rle"))
59 static const char *
const opentypes[] = {
"rle",
"rasf",NULL};
61 openpanel = [OpenPanel new];
63 [openpanel allowMultipleFiles:YES];
65 if ([
openpanel runModalForTypes:opentypes]) {
67 strncpy(directory,[
openpanel directory],1024);
68 while ([openpanel filenames][loop]) {
69 sprintf(temp,
"%s/%s",directory,[openpanel filenames][loop]);
70 extension =
rindex(temp,
'.');
71 if (!strcmp(extension,
".rle"))
72 ptr = [[RLE alloc]init];
74 ptr = [[RASF alloc]init];
85 [[mainWindow contentView] printPSCode:sender];
91 savepanel = [SavePanel new];
95 [compPopUP setEnabled:YES];
98 if (mainWindow != nil){
99 if ([savepanel runModal]){
101 [[mainWindow contentView] saveAsTiff:[savepanel filename] usingCompression:[self setCompType]];
103 [[mainWindow contentView] saveAsEPS:[savepanel filename]];
114 [compPopUP setEnabled:NO];
123 [compPopUP setEnabled:YES];
131 const char *selected_Cell = [[
compPopUP selectedCell] title];
133 switch(selected_Cell[0]){
135 return(NX_TIFF_COMPRESSION_LZW);
137 return(NX_TIFF_COMPRESSION_PACKBITS);
139 return(NX_TIFF_COMPRESSION_NONE);
141 return(NX_TIFF_COMPRESSION_JPEG);
143 return(NX_TIFF_COMPRESSION_LZW);
BOOL appAcceptsAnotherFile:(id sender)
id saveTypeTiff:(id sender)
id saveTypeEPS:(id sender)
int appOpenFile:type:(const char *fullPath,[type] const char *type)