Defined additional window masks. Removed all unneeded ivars and

replaced the others by the superclass additional flags.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@10999 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
Fred Kiefer 2001-09-24 23:30:04 +00:00
parent ee22454665
commit ccf62d14f7

View file

@ -33,6 +33,11 @@
@class NSString;
enum {
NSUtilityWindowMask = 16,
NSDocModalWindowMask = 32
};
enum {
NSOKButton = 1,
NSCancelButton = 0
@ -57,19 +62,12 @@ enum {
#define NS_ALERTERROR NSAlertErrorReturn
#endif
@interface NSPanel : NSWindow <NSCoding>
@interface NSPanel : NSWindow
{
// Attributes
BOOL _becomesKeyOnlyIfNeeded;
BOOL _isFloatingPanel;
BOOL _worksWhenModal;
id file_name;
id directory;
id panel_title;
id accessory_view;
id required_type;
id panel_prompt;
id file_package;
// Think of the following as BOOL ivars
#define _becomesKeyOnlyIfNeeded _f.subclass_bool_one
#define _isFloatingPanel _f.subclass_bool_two
#define _worksWhenModal _f.subclass_bool_three
}
//
@ -82,12 +80,6 @@ enum {
- (void)setWorksWhenModal:(BOOL)flag;
- (BOOL)worksWhenModal;
//
// NSCoding protocol
//
- (void)encodeWithCoder:aCoder;
- initWithCoder:aDecoder;
@end
//