unison

Fork of Unison, a bi-directional file synchronization tool
git clone git://git.laack.co/unison.git
Log | Files | Refs | README | LICENSE

SSSelectableToolbar.h (886B)


      1 //
      2 //  SSToolbar.h
      3 //  SelectableToolbarHelper
      4 //
      5 //  Created by Steven Streeting on 19/06/2011.
      6 //  Copyright 2011 Torus Knot Software Ltd. All rights reserved.
      7 //
      8 
      9 #import <Cocoa/Cocoa.h>
     10 
     11 @interface SSSelectableToolbar : NSToolbar
     12 {
     13         NSWindow* window;
     14         NSView* blankView;
     15         NSInteger defaultItemIndex;
     16 }
     17 @property (nonatomic, retain) IBOutlet NSWindow* window;
     18 @property (nonatomic, assign) NSInteger defaultItemIndex;
     19 
     20 -(NSToolbarItem*)itemWithIdentifier:(NSString*)identifier;
     21 // select the item with the given index, ordered as per the palette and ignoring
     22 // all types of buttons except SSSelectableToolbarItem
     23 -(void)selectItemWithIndex:(NSInteger)idx;
     24 // Convert a selectable item index (ignoring all except selectable items in palette)
     25 // to a main index which can be used for other purposes
     26 -(NSInteger)selectableItemIndexToMainIndex:(NSInteger)idx;
     27 @end