ResKnife/Cocoa/Classes/InfoWindowController.h

52 lines
1.2 KiB
C
Raw Normal View History

2001-10-19 19:41:13 +00:00
#import <Cocoa/Cocoa.h>
@class ResourceDocument, Resource;
2002-03-31 12:00:02 +00:00
extern NSString *DocumentInfoWillChangeNotification;
extern NSString *DocumentInfoDidChangeNotification;
2001-10-19 19:41:13 +00:00
enum Attributes
{
changedBox = 0,
preloadBox,
protectedBox,
lockedBox,
purgableBox,
systemHeapBox
};
@interface InfoWindowController : NSWindowController
{
2002-02-07 07:37:51 +00:00
IBOutlet NSImageView *iconView;
IBOutlet NSTextField *nameView;
IBOutlet NSBox *placeholderView;
IBOutlet NSBox *resourceView;
IBOutlet NSBox *documentView;
IBOutlet NSMatrix *attributesMatrix;
2002-04-02 21:57:17 +00:00
IBOutlet NSForm *filePropertyForm;
2001-10-19 19:41:13 +00:00
@private
ResourceDocument *currentDocument;
Resource *selectedResource;
}
- (void)updateInfoWindow;
- (void)setMainWindow:(NSWindow *)mainWindow;
- (IBAction)attributesChanged:(id)sender;
- (void)resourceAttributesDidChange:(NSNotification *)notification;
2002-04-02 21:57:17 +00:00
- (void)documentInfoDidChange:(NSNotification *)notification;
2001-10-19 19:41:13 +00:00
+ (id)sharedInfoWindowController;
@end
2002-05-31 17:31:41 +00:00
@interface NSWindowController (InfoWindowAdditions)
/*! @function resource
@discussion Your plug-in should override this method to return the resource it's editing. Default implementation returns nil.
*/
- (Resource *)resource;
@end