mirror of
https://github.com/gnustep/libs-gui.git
synced 2025-06-01 20:11:55 +00:00
Completely renewed the ivars.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@5104 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
parent
18b942aede
commit
5ed75bcefa
1 changed files with 14 additions and 33 deletions
|
@ -11,7 +11,10 @@
|
||||||
Date: August 1998
|
Date: August 1998
|
||||||
Source by Daniel Bðhringer integrated into Scott Christley's preliminary
|
Source by Daniel Bðhringer integrated into Scott Christley's preliminary
|
||||||
implementation by Felipe A. Rodriguez <far@ix.netcom.com>
|
implementation by Felipe A. Rodriguez <far@ix.netcom.com>
|
||||||
|
|
||||||
|
Author: Nicola Pero <n.pero@mi.flashnet.it>
|
||||||
|
Date: 1999
|
||||||
|
|
||||||
This file is part of the GNUstep GUI Library.
|
This file is part of the GNUstep GUI Library.
|
||||||
|
|
||||||
This library is free software; you can redistribute it and/or
|
This library is free software; you can redistribute it and/or
|
||||||
|
@ -41,25 +44,14 @@
|
||||||
|
|
||||||
@interface NSOpenPanel : NSSavePanel <NSCoding>
|
@interface NSOpenPanel : NSSavePanel <NSCoding>
|
||||||
{
|
{
|
||||||
// Attributes
|
NSArray *_fileTypes;
|
||||||
NSMutableArray *the_filenames;
|
BOOL _canChooseDirectories;
|
||||||
BOOL multiple_select;
|
BOOL _canChooseFiles;
|
||||||
BOOL choose_dir;
|
|
||||||
BOOL choose_file;
|
|
||||||
// integrated from Daniel's source FAR
|
|
||||||
BOOL canChooseDirectories;
|
|
||||||
BOOL canChooseFiles;
|
|
||||||
BOOL allowsMultipleSelection;
|
|
||||||
}
|
}
|
||||||
|
// Accessing the NSOpenPanel shared instance
|
||||||
//
|
|
||||||
// Accessing the NSOpenPanel
|
|
||||||
//
|
|
||||||
+ (NSOpenPanel *)openPanel;
|
+ (NSOpenPanel *)openPanel;
|
||||||
|
|
||||||
//
|
|
||||||
// Filtering Files
|
// Filtering Files
|
||||||
//
|
|
||||||
- (BOOL)allowsMultipleSelection;
|
- (BOOL)allowsMultipleSelection;
|
||||||
- (BOOL)canChooseDirectories;
|
- (BOOL)canChooseDirectories;
|
||||||
- (BOOL)canChooseFiles;
|
- (BOOL)canChooseFiles;
|
||||||
|
@ -67,28 +59,17 @@
|
||||||
- (void)setCanChooseDirectories:(BOOL)flag;
|
- (void)setCanChooseDirectories:(BOOL)flag;
|
||||||
- (void)setCanChooseFiles:(BOOL)flag;
|
- (void)setCanChooseFiles:(BOOL)flag;
|
||||||
|
|
||||||
//
|
// Querying the Chosen Files
|
||||||
// Querying the Chosen Files
|
// Returns an array containing the absolute paths (as NSString
|
||||||
//
|
// objects) of the selected files and directories. If multiple
|
||||||
// Returns an array containing the absolute paths (as NSString
|
// selections aren't allowed, the array contains a single name.
|
||||||
// objects) of the selected files and directories. If multiple
|
|
||||||
// selections aren't allowed, the array contains a single name.
|
|
||||||
- (NSArray *)filenames;
|
- (NSArray *)filenames;
|
||||||
|
|
||||||
//
|
// Running an NSOpenPanel
|
||||||
// Running the NSOpenPanel
|
|
||||||
//
|
|
||||||
- (int)runModalForTypes:(NSArray *)fileTypes;
|
- (int)runModalForTypes:(NSArray *)fileTypes;
|
||||||
- (int)runModalForDirectory:(NSString *)path
|
- (int)runModalForDirectory:(NSString *)path
|
||||||
file:(NSString *)name
|
file:(NSString *)name
|
||||||
types:(NSArray *)fileTypes;
|
types:(NSArray *)fileTypes;
|
||||||
|
|
||||||
//
|
|
||||||
// NSCoding protocol
|
|
||||||
//
|
|
||||||
- (void)encodeWithCoder:aCoder;
|
|
||||||
- initWithCoder:aDecoder;
|
|
||||||
|
|
||||||
@end
|
@end
|
||||||
|
|
||||||
#endif // _GNUstep_H_NSOpenPanel
|
#endif // _GNUstep_H_NSOpenPanel
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue