2003-07-31 23:52:10 +00:00
|
|
|
/*
|
|
|
|
NSHelpPanel.h
|
|
|
|
|
|
|
|
Standard panel for showing help information
|
|
|
|
|
|
|
|
Copyright (C) 1996 Free Software Foundation, Inc.
|
|
|
|
|
|
|
|
Author: Scott Christley <scottc@net-community.com>
|
|
|
|
Date: 1996
|
|
|
|
|
|
|
|
This file is part of the GNUstep GUI Library.
|
|
|
|
|
|
|
|
This library is free software; you can redistribute it and/or
|
|
|
|
modify it under the terms of the GNU Library General Public
|
|
|
|
License as published by the Free Software Foundation; either
|
|
|
|
version 2 of the License, or (at your option) any later version.
|
|
|
|
|
|
|
|
This library is distributed in the hope that it will be useful,
|
|
|
|
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
|
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
|
|
|
Library General Public License for more details.
|
|
|
|
|
|
|
|
You should have received a copy of the GNU Library General Public
|
|
|
|
License along with this library; see the file COPYING.LIB.
|
|
|
|
If not, write to the Free Software Foundation,
|
2006-11-06 13:58:37 +00:00
|
|
|
51 Franklin Street, Fifth Floor,
|
|
|
|
Boston, MA 02110-1301, USA.
|
2003-07-31 23:52:10 +00:00
|
|
|
*/
|
|
|
|
|
|
|
|
|
|
|
|
#ifndef _GNUstep_H_NSHelpPanel
|
|
|
|
#define _GNUstep_H_NSHelpPanel
|
2006-11-06 13:58:37 +00:00
|
|
|
#import <GNUstepBase/GSVersionMacros.h>
|
|
|
|
|
|
|
|
#if OS_API_VERSION(GS_API_OPENSTEP,GS_API_MACOSX) || GS_API_VERSION(GS_API_NONE, GS_API_LATEST)
|
2003-07-31 23:52:10 +00:00
|
|
|
|
|
|
|
#include <AppKit/NSApplication.h>
|
|
|
|
#include <AppKit/NSPanel.h>
|
|
|
|
|
|
|
|
@class NSString;
|
|
|
|
|
|
|
|
@interface NSApplication (NSHelpPanel)
|
|
|
|
- (void) orderFrontHelpPanel: (id)sender;
|
|
|
|
@end
|
|
|
|
|
|
|
|
@interface NSHelpPanel : NSPanel <NSCoding>
|
|
|
|
{
|
|
|
|
// Attributes
|
|
|
|
}
|
|
|
|
|
|
|
|
//
|
|
|
|
// Accessing the Help Panel
|
|
|
|
//
|
2006-10-02 05:09:48 +00:00
|
|
|
+ (NSHelpPanel *) sharedHelpPanel;
|
|
|
|
+ (NSHelpPanel *) sharedHelpPanelWithDirectory: (NSString *)helpDirectory;
|
2003-07-31 23:52:10 +00:00
|
|
|
|
|
|
|
//
|
|
|
|
// Managing the Contents
|
|
|
|
//
|
2006-10-02 05:09:48 +00:00
|
|
|
+ (void) setHelpDirectory: (NSString *)helpDirectory;
|
|
|
|
- (void) addSupplement: (NSString *)helpDirectory
|
|
|
|
inPath: (NSString *)supplementPath;
|
|
|
|
- (NSString *) helpDirectory;
|
|
|
|
- (NSString *) helpFile;
|
2003-07-31 23:52:10 +00:00
|
|
|
|
|
|
|
//
|
|
|
|
// Attaching Help to Objects
|
|
|
|
//
|
2006-10-02 05:09:48 +00:00
|
|
|
+ (void) attachHelpFile: (NSString *)filename
|
|
|
|
markerName: (NSString *)markerName
|
|
|
|
to: (id)anObject;
|
|
|
|
+ (void) detachHelpFrom: (id)anObject;
|
2003-07-31 23:52:10 +00:00
|
|
|
|
|
|
|
//
|
|
|
|
// Showing Help
|
|
|
|
//
|
2006-10-02 05:09:48 +00:00
|
|
|
- (void) showFile: (NSString *)filename
|
|
|
|
atMarker: (NSString *)markerName;
|
|
|
|
- (BOOL) showHelpAttachedTo: (id)anObject;
|
2003-07-31 23:52:10 +00:00
|
|
|
|
|
|
|
//
|
|
|
|
// Printing
|
|
|
|
//
|
2006-10-02 05:09:48 +00:00
|
|
|
- (void) print: (id)sender;
|
2003-07-31 23:52:10 +00:00
|
|
|
|
|
|
|
//
|
|
|
|
// NSCoding protocol
|
|
|
|
//
|
2006-10-02 05:09:48 +00:00
|
|
|
- (void) encodeWithCoder: (NSCoder *)aCoder;
|
|
|
|
- (id) initWithCoder: (NSCoder *)aDecoder;
|
2003-07-31 23:52:10 +00:00
|
|
|
|
|
|
|
@end
|
|
|
|
|
2006-11-06 13:58:37 +00:00
|
|
|
#endif // !GS_API_MACOSX
|
2003-07-31 23:52:10 +00:00
|
|
|
#endif // _GNUstep_H_NSHelpPanel
|
|
|
|
|