summaryrefslogtreecommitdiffstats
path: root/macosx/Controller.h
diff options
context:
space:
mode:
authordynaflash <[email protected]>2008-03-07 20:05:46 +0000
committerdynaflash <[email protected]>2008-03-07 20:05:46 +0000
commitab2bcfdbdf6db2e2de9bc2b3b487d25e69116d45 (patch)
treeb918be125c93140b1851744f8fda13925caad43b /macosx/Controller.h
parent2cdbc53eac6122cfe3ea77db0728a8fb4f4d2271 (diff)
MacGui: Clean up some formatting and errant comments left over from some of the snippets I robbed out of HBQueueController on the drag and drop preset commit. :)
git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@1335 b64f7644-9d1e-0410-96f1-a4d463321fa5
Diffstat (limited to 'macosx/Controller.h')
-rw-r--r--macosx/Controller.h23
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;