mirror of
https://github.com/gnustep/libs-gui.git
synced 2025-05-02 21:31:07 +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
4a1fc2d142
commit
064d218dcb
1 changed files with 30 additions and 0 deletions
|
@ -31,6 +31,7 @@
|
||||||
|
|
||||||
#include <Foundation/Foundation.h>
|
#include <Foundation/Foundation.h>
|
||||||
#include <AppKit/NSNibDeclarations.h>
|
#include <AppKit/NSNibDeclarations.h>
|
||||||
|
#include <AppKit/NSUserInterfaceValidation.h>
|
||||||
|
|
||||||
|
|
||||||
@class NSURL, NSUndoManager;
|
@class NSURL, NSUndoManager;
|
||||||
|
@ -82,6 +83,8 @@ typedef enum _NSSaveOperationType {
|
||||||
- (void)addWindowController:(NSWindowController *)windowController;
|
- (void)addWindowController:(NSWindowController *)windowController;
|
||||||
- (BOOL)shouldCloseWindowController:(NSWindowController *)windowController;
|
- (BOOL)shouldCloseWindowController:(NSWindowController *)windowController;
|
||||||
- (void)showWindows;
|
- (void)showWindows;
|
||||||
|
- (void)removeWindowController:(NSWindowController *)windowController;
|
||||||
|
- (void)setWindow:(NSWindow *)aWindow;
|
||||||
|
|
||||||
/*" Window controller creation "*/
|
/*" Window controller creation "*/
|
||||||
- (void)makeWindowControllers; // Manual creation
|
- (void)makeWindowControllers; // Manual creation
|
||||||
|
@ -135,6 +138,10 @@ typedef enum _NSSaveOperationType {
|
||||||
- (BOOL)shouldRunSavePanelWithAccessoryView;
|
- (BOOL)shouldRunSavePanelWithAccessoryView;
|
||||||
- (NSString *)fileNameFromRunningSavePanelForSaveOperation:(NSSaveOperationType)saveOperation;
|
- (NSString *)fileNameFromRunningSavePanelForSaveOperation:(NSSaveOperationType)saveOperation;
|
||||||
- (int)runModalSavePanel:(NSSavePanel *)savePanel withAccessoryView:(NSView *)accessoryView;
|
- (int)runModalSavePanel:(NSSavePanel *)savePanel withAccessoryView:(NSView *)accessoryView;
|
||||||
|
- (NSString *)fileTypeFromLastRunSavePanel;
|
||||||
|
- (BOOL)writeWithBackupToFile:(NSString *)fileName
|
||||||
|
ofType:(NSString *)fileType
|
||||||
|
saveOperation:(NSSaveOperationType)saveOp;
|
||||||
|
|
||||||
/*" Printing "*/
|
/*" Printing "*/
|
||||||
- (NSPrintInfo *)printInfo;
|
- (NSPrintInfo *)printInfo;
|
||||||
|
@ -153,6 +160,7 @@ typedef enum _NSSaveOperationType {
|
||||||
|
|
||||||
/*" Menus "*/
|
/*" Menus "*/
|
||||||
- (BOOL)validateMenuItem:(NSMenuItem *)anItem;
|
- (BOOL)validateMenuItem:(NSMenuItem *)anItem;
|
||||||
|
- (BOOL)validateUserInterfaceItem:(id <NSValidatedUserInterfaceItem>)anItem;
|
||||||
|
|
||||||
/*" Undo "*/
|
/*" Undo "*/
|
||||||
- (NSUndoManager *)undoManager;
|
- (NSUndoManager *)undoManager;
|
||||||
|
@ -160,6 +168,28 @@ typedef enum _NSSaveOperationType {
|
||||||
- (BOOL)hasUndoManager;
|
- (BOOL)hasUndoManager;
|
||||||
- (void)setHasUndoManager:(BOOL)flag;
|
- (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
|
@end
|
||||||
|
|
||||||
#endif // _GNUstep_H_NSDocument
|
#endif // _GNUstep_H_NSDocument
|
||||||
|
|
Loading…
Reference in a new issue