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
|
2007-10-29 21:16:17 +00:00
|
|
|
modify it under the terms of the GNU Lesser General Public
|
2003-07-31 23:52:10 +00:00
|
|
|
License as published by the Free Software Foundation; either
|
2008-06-10 04:01:49 +00:00
|
|
|
version 2 of the License, or (at your option) any later version.
|
2007-10-29 21:16:17 +00:00
|
|
|
|
2003-07-31 23:52:10 +00:00
|
|
|
This library is distributed in the hope that it will be useful,
|
|
|
|
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
2007-10-29 21:16:17 +00:00
|
|
|
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
|
|
|
Lesser General Public License for more details.
|
2003-07-31 23:52:10 +00:00
|
|
|
|
2007-10-29 21:16:17 +00:00
|
|
|
You should have received a copy of the GNU Lesser General Public
|
2003-07-31 23:52:10 +00:00
|
|
|
License along with this library; see the file COPYING.LIB.
|
2007-10-29 21:16:17 +00:00
|
|
|
If not, see <http://www.gnu.org/licenses/> or write to the
|
|
|
|
Free Software Foundation, 51 Franklin Street, Fifth Floor,
|
2006-11-06 13:58:37 +00:00
|
|
|
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>
|
|
|
|
|
2010-03-25 21:30:28 +00:00
|
|
|
#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
|
|
|
|
2010-03-25 21:30:28 +00:00
|
|
|
#import <AppKit/NSApplication.h>
|
|
|
|
#import <AppKit/NSPanel.h>
|
2003-07-31 23:52:10 +00:00
|
|
|
|
|
|
|
@class NSString;
|
|
|
|
|
|
|
|
@interface NSApplication (NSHelpPanel)
|
|
|
|
- (void) orderFrontHelpPanel: (id)sender;
|
|
|
|
@end
|
|
|
|
|
* Source/NSEvent.m,
* Source/NSParagraphStyle.m: Use NSInteger instead of enumerator
type name for decoding and encoding.
* Header/AppKit/NSFontPanel.h,
* Header/AppKit/NSOpenPanel.h,
* Header/AppKit/NSDataLinkPanel.h,
* Source/NSDataLinkPanel.m,
* Header/AppKit/NSForm.h,
* Source/NSForm.m,
* Header/AppKit/NSHelpPanel.h,
* Source/NSHelpPanel.m,
* Source/NSColorPanel.m: Remove unused encoding/decoding
* methods.
* Source/NSCustomImageRep.m,
* Source/NSEPSImageRep.m,
* Source/NSMovie.m,
* Source/NSRulerMarker.m,
* Source/NSColorList.m: Flag missing keyed encoding/decoding.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@36377 72102866-910b-0410-8b05-ffd578937521
2013-03-17 19:53:50 +00:00
|
|
|
@interface NSHelpPanel : NSPanel
|
2003-07-31 23:52:10 +00:00
|
|
|
{
|
|
|
|
// 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
|
|
|
|
|
|
|
@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
|
|
|
|
|