unison

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

UnisonToolbar.h (1045B)


      1 //
      2 //  UnisonToolbar.h
      3 //
      4 //  Extended NSToolbar with several views
      5 //
      6 //  Created by Ben Willmore on Sun March 12 2006.
      7 //  Copyright (c) 2006, licensed under GNU GPL.
      8 //
      9 
     10 #import <AppKit/AppKit.h>
     11 
     12 @class ReconTableView, MyController;
     13 
     14 @interface UnisonToolbar : NSToolbar
     15 #if (MAC_OS_X_VERSION_MAX_ALLOWED >= 1060)
     16   <NSToolbarDelegate>
     17 #endif
     18 {
     19         ReconTableView*  tableView;
     20         MyController*    myController;
     21         NSString*        currentView;
     22         NSView*          tableModeView;
     23 }
     24 
     25 - initWithIdentifier:(NSString *) identifier :(MyController *) aController :(ReconTableView *) aTableView;
     26 - (NSToolbarItem *) toolbar: (NSToolbar *)toolbar itemForItemIdentifier: (NSString *) itemIdent willBeInsertedIntoToolbar:(BOOL) willBeInserted;
     27 - (NSArray *) itemIdentifiersForView: (NSString *) whichView;
     28 - (NSArray *) toolbarDefaultItemIdentifiers: (NSToolbar *) toolbar;
     29 - (NSArray *) toolbarAllowedItemIdentifiers: (NSToolbar *) toolbar;
     30 - (void) setView: (NSString *) whichView;
     31 - (void)takeTableModeView:(NSView *)view;
     32 
     33 @end