#import "Myapp.h"
Definition at line 25 of file Myapp.m.
- (BOOL) appAcceptsAnotherFile: |
|
(id) |
sender |
|
- (int) appOpenFile: |
|
(const char *) |
fullPath |
type: |
|
(const char *) |
type |
|
|
| |
Definition at line 34 of file Myapp.m.
References RLE::init, and RLE::open:.
34 :(
const char *)fullPath
type:(
const char *)
type
38 [
self activateSelf:NO];
39 if (!strcmp(
type,
"rle"))
42 ptr = [[
RASF alloc]init];
43 [ptr open:(char *)fullPath];
- (id) openfile: |
|
(id) |
sender |
|
Definition at line 52 of file Myapp.m.
References openpanel.
59 static const char *
const opentypes[] = {
"rle",
"rasf",NULL};
63 [openpanel allowMultipleFiles:YES];
65 if ([
openpanel runModalForTypes:opentypes]) {
67 strncpy(directory,[
openpanel directory],1024);
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];
- (id) print: |
|
(id) |
sender |
|
Definition at line 83 of file Myapp.m.
85 [[mainWindow contentView] printPSCode:sender];
Definition at line 89 of file Myapp.m.
References savepanel, savePanelAccessory, and saveType.
92 [savepanel setAccessoryView:savePanelAccessory];
93 [savepanel setRequiredFileType:"tiff"];
94 [savepanel setTitle:"Save To TIFF"];
95 [compPopUP setEnabled:YES];
98 if (mainWindow != nil){
101 [[mainWindow contentView] saveAsTiff:[savepanel filename] usingCompression:[
self setCompType]];
103 [[mainWindow contentView] saveAsEPS:[savepanel filename]];
- (id) saveTypeEPS: |
|
(id) |
sender |
|
Definition at line 110 of file Myapp.m.
References savepanel, and saveType.
112 [savepanel setRequiredFileType:"eps"];
113 [savepanel setTitle:"Save To EPS"];
114 [compPopUP setEnabled:NO];
- (id) saveTypeTiff: |
|
(id) |
sender |
|
Definition at line 119 of file Myapp.m.
References savepanel, and saveType.
121 [savepanel setRequiredFileType:"tiff"];
122 [savepanel setTitle:"Save To TIFF"];
123 [compPopUP setEnabled:YES];
Definition at line 128 of file Myapp.m.
References compPopUP.
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);
- (id) savePanelAccessory |
|
protected |
The documentation for this class was generated from the following files: