44 NSString *fFile; |
44 NSString *fFile; |
45 |
45 |
46 // File dialog's mode |
46 // File dialog's mode |
47 jint fMode; |
47 jint fMode; |
48 |
48 |
|
49 // Indicates whether the user can select multiple files |
|
50 BOOL fMultipleMode; |
|
51 |
49 // Should we navigate into apps? |
52 // Should we navigate into apps? |
50 BOOL fNavigateApps; |
53 BOOL fNavigateApps; |
51 |
54 |
52 // panel's filename |
55 // Contains the absolute paths of the selected files as URLs |
53 NSString *fReturnedFilename; |
56 NSArray *fURLs; |
54 } |
57 } |
55 |
58 |
56 // Allocator |
59 // Allocator |
57 - (id) initWithFilter:(jboolean)inHasFilter |
60 - (id) initWithFilter:(jboolean)inHasFilter |
58 fileDialog:(jobject)inDialog |
61 fileDialog:(jobject)inDialog |
59 title:(NSString *)inTitle |
62 title:(NSString *)inTitle |
60 directory:(NSString *)inPath |
63 directory:(NSString *)inPath |
61 file:(NSString *)inFile |
64 file:(NSString *)inFile |
62 mode:(jint)inMode |
65 mode:(jint)inMode |
|
66 multipleMode:(BOOL)inMultipleMode |
63 shouldNavigate:(BOOL)inNavigateApps |
67 shouldNavigate:(BOOL)inNavigateApps |
64 withEnv:(JNIEnv*)env; |
68 withEnv:(JNIEnv*)env; |
65 |
69 |
66 // Invoked from the main thread |
70 // Invoked from the main thread |
67 - (void) safeSaveOrLoad; |
71 - (void) safeSaveOrLoad; |
68 |
72 |
69 // Get dialog return value |
73 // Get dialog return value |
70 - (BOOL) userClickedOK; |
74 - (BOOL) userClickedOK; |
71 |
75 |
72 // Filename user chose |
76 // Returns the absolute paths of the selected files as URLs |
73 - (NSString *) filename; |
77 - (NSArray *) URLs; |
74 |
78 |
75 @end |
79 @end |