/usr/include/GNUstep/Frameworks/AddressView.framework/Versions/0/ADPersonPropertyView.h is in libaddressview-dev 0.4.7-1ubuntu3.
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 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 | // ADPersonPropertyView.h (this is -*- ObjC -*-)
//
// \author: Björn Giesler <giesler@ira.uka.de>
//
// Address Book Application for GNUstep
//
// $Author: rmottola $
// $Locker: $
// $Revision: 1.1 $
// $Date: 2007/03/29 22:36:04 $
#ifndef ADPERSONPROPERTYVIEW_H
#define ADPERSONPROPERTYVIEW_H
/* system includes */
#include <AppKit/AppKit.h>
#include <Addresses/Addresses.h>
/* my includes */
/* (none) */
@interface NSString(ADPersonPropertySupport)
- (NSString*) stringByAbbreviatingToFitWidth: (int) width
inFont: (NSFont*) font;
- (NSString*) stringByTrimmingWhitespace;
- (BOOL) isEmptyString;
@end
@interface ADPersonPropertyCell: NSTextFieldCell
{
NSRect _r;
id _details;
}
- (void) setRect: (NSRect) r;
- (NSRect) rect;
- (void) setDetails: (id) details;
- (id) details;
@end
typedef enum {
ADAddAction = 0,
ADRemoveAction = 1,
ADChangeAction = 2
} ADActionType;
@interface ADPersonActionCell: NSImageCell
{
NSPoint _origin;
id _details;
ADActionType _type;
}
- (void) setActionType: (ADActionType) type;
- (ADActionType) actionType;
- (void) setOrigin: (NSPoint) origin;
- (NSRect) rect;
- (void) setDetails: (id) details;
- (id) details;
@end
@interface ADPersonPropertyView: NSView
{
ADPerson *_person;
NSString *_property;
NSMutableArray *_cells;
BOOL _displaysLabel;
int _maxLabelWidth, _neededLabelWidth;
float _fontSize;
NSFont *_font; BOOL _fontSetExternally;
BOOL _editable;
int _editingCellIndex; id _textObject;
id _delegate;
SEL _clickSel, _changeSel, _canPerformSel, _widthSel, _editInNextSel;
NSSize _requiredSize;
NSImage *_addImg, *_rmvImg, *_chgImg;
NSDictionary *_labelDict;
BOOL _mouseDownOnSelf;
NSString *_propertyForDrag; id _mouseDownCell;
}
+ (NSFont*) font;
+ (NSFont*) boldFont;
+ (float) fontSize;
+ (void) setFontSize: (float) size;
- (void) setDelegate: (id) delegate;
- (id) delegate;
- (void) setPerson: (ADPerson*) person;
- (ADPerson*) person;
- (void) setProperty: (NSString*) property;
- (NSString*) property;
- (void) setDisplaysLabel: (BOOL) yesno;
- (BOOL) displaysLabel;
- (void) setMaxLabelWidth: (int) width;
- (int) maxLabelWidth;
- (int) neededLabelWidth;
- (NSFont*) font;
- (void) setFont: (NSFont*) font;
- (NSFont*) boldFont;
- (float) fontSize;
- (void) setFontSize: (float) size;
- (void) setEditable: (BOOL) editable;
- (BOOL) isEditable;
- (BOOL) hasEditableCells;
- (BOOL) hasCells;
- (void) beginEditingInFirstCell;
- (void) beginEditingInLastCell;
- (void) endEditing;
- (int) indexOfEditableCellWithDetails: (id) details;
- (NSString*) propertyForDragWithDetails: (id) details;
- (NSImage*) imageForDraggedProperty: (NSString*) prop;
@end
@interface ADPersonPropertyView (LabelMangling)
- (NSString*) nextLabelAfter: (NSString*) previous;
- (NSString*) defaultLabel;
- (id) emptyValue;
- (NSArray*) layoutRuleForValue: (NSDictionary*) dict;
@end
@protocol ADPersonPropertyViewDelegate
- (void) viewWillBeginEditing: (id) view; // must implement this
- (BOOL) canPerformClickForProperty: (id) property;
- (void) clickedOnProperty: (id) value
withValue: (id) property
inView: (id) sender;
- (void) valueForProperty: (id) property
changedToValue: (id) value
inView: (id) sender;
- (void) view: (id) view
changedWidthFrom: (float) oldW
to: (float) newW;
- (void) view: (id) view
changedHeightFrom: (float) oldH
to: (float) newH;
- (void) beginEditingInNextViewWithTextMovement: (int) textMovement;
- (BOOL) personPropertyView: (ADPersonPropertyView*) view
willDragValue: (NSString*) value
forProperty: (NSString*) aProperty;
- (BOOL) personPropertyView: (ADPersonPropertyView*) view
willDragPerson: (ADPerson*) aPerson;
- (NSImage*) draggingImage;
@end
@interface ADPersonPropertyView (Private)
- (ADPersonPropertyCell*) addCellWithValue: (NSString*) val
inRect: (NSRect*) rect
editable: (BOOL) yesno
font: (NSFont*) font
alignment: (NSTextAlignment) alignment
details: (id) details;
- (ADPersonPropertyCell*) addValueCellForValue: (NSString*) val
inRect: (NSRect*) rect
details: (id) details;
- (ADPersonPropertyCell*) addValueCellForValue: (NSString*) val
inRect: (NSRect*) rect;
- (ADPersonPropertyCell*) addLabelCellForLabel: (NSString*) label
inRect: (NSRect*) rect;
- (void) layout;
@end
@interface ADPersonPropertyView (Events)
- (void) beginEditingInCellAtIndex: (int) i
becauseOfEvent: (NSEvent*) e;
- (void) beginEditingInCellWithDetails: (id) details
becauseOfEvent: (NSEvent*) e;
@end
#endif /* ADPERSONPROPERTYVIEW_H */
|