/usr/include/GNUstep/InterfaceBuilder/IBPalette.h is in gorm.app 1.2.10-2.1.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 | /* IBPalette.h
*
* Copyright (C) 2003 Free Software Foundation, Inc.
*
* Author: Gregory John Casamento <greg_casamento@yahoo.com>
* Date: 2003
*
* This file is part of GNUstep.
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 3 of the License, or
* (at your option) any later version.
*
* This program 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 General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program; if not, write to the Free Software
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02111 USA.
*/
#ifndef INCLUDED_IBPALETTE_H
#define INCLUDED_IBPALETTE_H
#include <Foundation/NSMapTable.h>
#include <Foundation/NSObject.h>
#include <InterfaceBuilder/IBDocuments.h>
#include <InterfaceBuilder/IBSystem.h>
// forward references
@class NSString;
@class NSImage;
@class NSWindow;
@class NSView;
/*
* Pasteboard types used for DnD when views are dragged out of a palette
* window into another window in Gorm (or, in the case of IBWindowPboardType
* onto the desktop).
*/
IB_EXTERN NSString *IBCellPboardType;
IB_EXTERN NSString *IBMenuPboardType;
IB_EXTERN NSString *IBMenuCellPboardType;
IB_EXTERN NSString *IBObjectPboardType;
IB_EXTERN NSString *IBViewPboardType;
IB_EXTERN NSString *IBWindowPboardType;
IB_EXTERN NSString *IBFormatterPboardType;
/*
* Pasteboard types used for DnD from images or sounds tab
* to views or inspector's textfield onto the desktop).
* NOTE: These are specific to Gorm...
*/
IB_EXTERN NSString *GormImagePboardType;
IB_EXTERN NSString *GormSoundPboardType;
IB_EXTERN NSString *GormLinkPboardType;
@interface IBPalette : NSObject
{
NSWindow *originalWindow;
NSImage *icon;
id<IBDocuments> paletteDocument;
}
/*
* For internal use only - these class methods return the information
* associated with a particular view.
*/
+ (id) objectForView: (NSView*)aView;
+ (NSString*) typeForView: (NSView*)aView;
/**
* Associate a particular object and DnD type with a view - so that
* Gorm knows to initiate a DnD session with the specified object
* and type rather than an archived copy of the view itsself and
* the default type (IBViewPboardType).
*/
- (void) associateObject: (id)anObject
type: (NSString*)aType
with: (NSView*)aView;
/**
* Releases all the instance variables apart from the window (which is
* presumed to release itsself when closed) and removes self as an observer
* of notifications before destroying self.
*/
- (void) dealloc;
/**
* Method called by GUI builder application when a new palette has been created
* and its model (nib/gorm) has been loaded. Any palette initialization should
* be done here.
*/
- (void) finishInstantiate;
/**
* Return the icon representing the palette.
*/
- (NSImage*) paletteIcon;
/**
* Return the window containing the views that may be dragged from the
* palette.
*/
- (NSWindow*) originalWindow;
/**
* Returns an object representing the palette which conforms to the
* IBDocuments protocol.
*/
- (id<IBDocuments>) paletteDocument;
@end
#endif
|