mirror of
https://github.com/gnustep/libs-gui.git
synced 2025-04-23 16:20:46 +00:00
Added declarations for new methods in specification. Some of this
where already present in the code. git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@10603 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
parent
8eb057e9d8
commit
d380574ab7
1 changed files with 30 additions and 0 deletions
|
@ -31,6 +31,7 @@
|
|||
|
||||
#include <Foundation/Foundation.h>
|
||||
#include <AppKit/NSNibDeclarations.h>
|
||||
#include <AppKit/NSUserInterfaceValidation.h>
|
||||
|
||||
|
||||
@class NSURL, NSUndoManager;
|
||||
|
@ -82,6 +83,8 @@ typedef enum _NSSaveOperationType {
|
|||
- (void)addWindowController:(NSWindowController *)windowController;
|
||||
- (BOOL)shouldCloseWindowController:(NSWindowController *)windowController;
|
||||
- (void)showWindows;
|
||||
- (void)removeWindowController:(NSWindowController *)windowController;
|
||||
- (void)setWindow:(NSWindow *)aWindow;
|
||||
|
||||
/*" Window controller creation "*/
|
||||
- (void)makeWindowControllers; // Manual creation
|
||||
|
@ -135,6 +138,10 @@ typedef enum _NSSaveOperationType {
|
|||
- (BOOL)shouldRunSavePanelWithAccessoryView;
|
||||
- (NSString *)fileNameFromRunningSavePanelForSaveOperation:(NSSaveOperationType)saveOperation;
|
||||
- (int)runModalSavePanel:(NSSavePanel *)savePanel withAccessoryView:(NSView *)accessoryView;
|
||||
- (NSString *)fileTypeFromLastRunSavePanel;
|
||||
- (BOOL)writeWithBackupToFile:(NSString *)fileName
|
||||
ofType:(NSString *)fileType
|
||||
saveOperation:(NSSaveOperationType)saveOp;
|
||||
|
||||
/*" Printing "*/
|
||||
- (NSPrintInfo *)printInfo;
|
||||
|
@ -153,6 +160,7 @@ typedef enum _NSSaveOperationType {
|
|||
|
||||
/*" Menus "*/
|
||||
- (BOOL)validateMenuItem:(NSMenuItem *)anItem;
|
||||
- (BOOL)validateUserInterfaceItem:(id <NSValidatedUserInterfaceItem>)anItem;
|
||||
|
||||
/*" Undo "*/
|
||||
- (NSUndoManager *)undoManager;
|
||||
|
@ -160,6 +168,28 @@ typedef enum _NSSaveOperationType {
|
|||
- (BOOL)hasUndoManager;
|
||||
- (void)setHasUndoManager:(BOOL)flag;
|
||||
|
||||
/* NEW delegate operations*/
|
||||
- (void)shouldCloseWindowController:(NSWindowController *)windowController
|
||||
delegate:(id)delegate
|
||||
shouldCloseSelector:(SEL)callback
|
||||
contextInfo:(void *)contextInfo;
|
||||
- (void)canCloseDocumentWithDelegate:(id)delegate
|
||||
shouldCloseSelector:(SEL)shouldCloseSelector
|
||||
contextInfo:(void *)contextInfo;
|
||||
- (void)saveToFile:(NSString *)fileName
|
||||
saveOperation:(NSSaveOperationType)saveOperation
|
||||
delegate:(id)delegate
|
||||
didSaveSelector:(SEL)didSaveSelector
|
||||
contextInfo:(void *)contextInfo;
|
||||
- (BOOL)prepareSavePanel:(NSSavePanel *)savePanel;
|
||||
- (void)saveDocumentWithDelegate:(id)delegate
|
||||
didSaveSelector:(SEL)didSaveSelector
|
||||
contextInfo:(void *)contextInfo;
|
||||
- (void)runModalSavePanelForSaveOperation:(NSSaveOperationType)saveOperation
|
||||
delegate:(id)delegate
|
||||
didSaveSelector:(SEL)didSaveSelector
|
||||
contextInfo:(void *)contextInfo;
|
||||
|
||||
@end
|
||||
|
||||
#endif // _GNUstep_H_NSDocument
|
||||
|
|
Loading…
Reference in a new issue