diff options
Diffstat (limited to 'macosx/Controller.h')
-rw-r--r-- | macosx/Controller.h | 23 |
1 files changed, 3 insertions, 20 deletions
diff --git a/macosx/Controller.h b/macosx/Controller.h index 923abec5e..c660166c2 100644 --- a/macosx/Controller.h +++ b/macosx/Controller.h @@ -18,28 +18,12 @@ #import "HBPresets.h" @class HBOutputPanelController; -//------------------------------------------------------------------------------------ -// As usual, we need to subclass NSOutlineView to handle a few special cases: -// -// (1) variable row heights during live resizes -// HBQueueOutlineView exists solely to get around a bug in variable row height outline -// views in which row heights get messed up during live resizes. See this discussion: -// http://lists.apple.com/archives/cocoa-dev/2005/Oct/msg00871.html -// However, the recommeneded fix (override drawRect:) does not work. Instead, this -// subclass implements viewDidEndLiveResize in order to recalculate all row heights. -// -// (2) prevent expanding of items during drags -// During dragging operations, we don't want outline items to expand, since a queue -// doesn't really have children items. -// -// (3) generate a drag image that incorporates more than just the first column -// By default, NSTableView only drags an image of the first column. Change this to -// drag an image of the queue's icon and desc columns. +/* We subclass NSView so that our drags show both the icon as well as PresetName columns */ @interface HBPresetsOutlineView : NSOutlineView { -//#if HB_QUEUE_DRAGGING + BOOL fIsDragging; -//#endif + } @end @interface HBController : NSObject <GrowlApplicationBridgeDelegate> @@ -214,7 +198,6 @@ BOOL fIsDragging; IBOutlet NSPanel * fAddPresetPanel; /* new NSOutline View for the presets */ NSArray *fDraggedNodes; - //IBOutlet NSOutlineView * fPresetsOutlineView; // <-- Old assignment before subclassing IBOutlet HBPresetsOutlineView * fPresetsOutlineView; IBOutlet NSButton * fPresetsAdd; IBOutlet NSButton * fPresetsDelete; |