Advertisement
Guest User

Untitled

a guest
Sep 17th, 2013
201
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C# 5.75 KB | None | 0 0
  1. [BaseType (typeof (NSView))]
  2.     interface MMTabBarView
  3.     {
  4.         [Export ("tabView")]
  5.         NSTabView TabView { get; set; }
  6.  
  7.         [Export("partnerView")]
  8.         NSView PartnerView { get; set; }
  9.  
  10.         [Wrap ("WeakDelegate")]
  11.         MMTabBarViewDelegate Delegate { get; set; }
  12.        
  13.         [Export ("delegate")]
  14.         NSObject WeakDelegate { get; set; }
  15.  
  16.         [Export ("selectTabViewItem:")]
  17.         void SelectTabViewItem (NSTabViewItem anItem);
  18.  
  19.         [Export ("selectedTabViewItem")]
  20.         NSTabViewItem SelectedTabViewItem ();
  21.  
  22.         [Export ("removeTabViewItem:")]
  23.         void RemoveTabViewItem (NSTabViewItem anItem);
  24.  
  25.         [Export ("setStyleNamed:")]
  26.         void SetStyle (NSString name);
  27.  
  28.         [Export ("style")] // Can't figure out how to bind this strongly-typed
  29.         NSObject Style { get; set; }
  30.  
  31.         [Export ("canCloseOnlyTab")]
  32.         bool CanCloseOnlyTab { get; set; }
  33.  
  34.         [Export ("numberOfTabViewItems")]
  35.         uint NumberOfTabViewItems ();
  36.  
  37.         [Export ("onlyShowCloseOnHover")]
  38.         bool OnlyShowCloseOnHover { get; set; }
  39.  
  40.         [Export ("disableTabClose")]
  41.         bool DisableTabClose { get; set; }
  42.        
  43.         [Export ("hideForSingleTab")]
  44.         bool HideForSingleTab { get; set; }
  45.  
  46.         [Export ("showAddTabButton")]
  47.         bool ShowAddTabButton { get; set; }
  48.        
  49.         [Export ("buttonMinWidth")]
  50.         int ButtonMinWidth { get; set; }
  51.        
  52.         [Export ("buttonMaxWidth")]
  53.         int ButtonMaxWidth { get; set; }
  54.        
  55.         [Export ("buttonOptimumWidth")]
  56.         int ButtonOptimumWidth { get; set; }
  57.  
  58.         [Export ("allowsBackgroundTabClosing")]
  59.         bool AllowsBackgroundTabClosing { get; set; }
  60.  
  61.         [Export ("sizeButtonsToFit")]
  62.         bool SizeButtonsToFit { get; set; }
  63.  
  64.         [Export ("tearOffStyle")]
  65.         MMTabBarTearOffStyle TearOffStyle { get; set; }
  66.  
  67.         [Export ("useOverflowMenu")]
  68.         bool UseOverflowMenu { get; set; }
  69.  
  70.         [Export ("allowsScrubbing")]
  71.         bool AllowsScrubbing { get; set; }
  72.  
  73.         [Export ("automaticallyAnimates")]
  74.         bool AutomaticallyAnimates { get; set; }
  75.  
  76.         [Export("leftMargin")]
  77.         float LeftMargin { get; }
  78.     }
  79.  
  80.     [BaseType (typeof(NSObject))]
  81.     [Model]
  82.     interface MMTabBarItem
  83.     {
  84.         [Export ("icon")]
  85.         NSImage Icon { get; set; }
  86.  
  87.         [Export ("largeImage")]
  88.         NSImage LargeImage { get; set; }
  89.  
  90.         [Export ("objectCount")]
  91.         int ObjectCount { get; set; }
  92.  
  93.         [Export ("objectCountColor")]
  94.         NSColor ObjectCountColor { get; set; }
  95.  
  96.         [Export ("isProcessing")]
  97.         bool Processing { get; set; }
  98.  
  99.         [Export ("isEdited")]
  100.         bool Edited { get; set; }
  101.  
  102.         [Export ("hasCloseButton")]
  103.         bool HasCloseButton { get; set; }
  104.  
  105.         [Export ("title", ArgumentSemantic.Copy)]
  106.         NSString Title { get; set; }
  107.     }
  108.  
  109.        
  110.     [BaseType (typeof(NSObject))]
  111.     [Model]
  112.     interface MMTabBarViewDelegate
  113.     {
  114.         [Export ("tabView:shouldCloseTabViewItem:")]
  115.         bool ShouldCloseTabViewItem (NSTabView aTabView, NSTabViewItem tabViewItem);
  116.  
  117.         [Export ("tabView:willCloseTabViewItem:")]
  118.         void WillCloseTabViewItem (NSTabView aTabView, NSTabViewItem tabViewItem);
  119.  
  120.         [Export ("tabView:didCloseTabViewItem:")]
  121.         void DidCloseTabViewItem (NSTabView aTabView, NSTabViewItem tabViewItem);
  122.  
  123.         [Export ("tabView:didDetachTabViewItem:")]
  124.         void DidDetachTabViewItem (NSTabView aTabView, NSTabViewItem tabViewItem);
  125.  
  126.         [Export ("tabView:tabBarViewDidHide:")]
  127.         void TabBarDidHide (NSTabView aTabView, MMTabBarView tabBarView);
  128.  
  129.         [Export ("tabView:tabBarViewDidUnhide:")]
  130.         void TabBarViewDidShow (NSTabView aTabView, MMTabBarView tabBarView);
  131.  
  132.         [Export ("tabView:disableTabCloseForTabViewItem:")]
  133.         bool DisableTabCloseForTabViewItem (NSTabView aTabView, NSTabViewItem tabViewItem);
  134.  
  135.         [Export ("addNewTabToTabView:")]
  136.         void AddNewTabToTabView (NSTabView aTabView);
  137.  
  138.         [Export ("tabView:menuForTabViewItem:")]
  139.         NSMenu MenuForTabViewItem (NSTabView aTabView, NSTabViewItem tabViewItem);
  140.  
  141.         [Export ("tabView:shouldDragTabViewItem:inTabBarView:")]
  142.         bool ShouldDragTabViewIteminTabBarView (NSTabView aTabView, NSTabViewItem tabViewItem, MMTabBarView tabBarView);
  143.  
  144.         [Export ("tabView:validateSlideOfProposedItem:proposedIndex:inTabBarView:")]
  145.         NSDragOperation ValidateSlideOfProposedItemProposedIndexInTabBarView (NSTabView aTabView, NSTabViewItem tabViewItem, uint proposedIndex, MMTabBarView tabBarView);
  146.  
  147.         [Export ("tabView:shouldAllowTabViewItem:toLeaveTabBarView:")]
  148.         bool ShouldAllowTabViewItemtoLeaveTabBarView (NSTabView aTabView, NSTabViewItem tabViewItem, MMTabBarView tabBarView);
  149.  
  150.         [Export ("tabView:didDropTabViewItem:inTabBarView:")]
  151.         void DidDropTabViewIteminTabBarView (NSTabView aTabView, NSTabViewItem tabViewItem, MMTabBarView tabBarView);
  152.  
  153.         [Export ("allowedDraggedTypesForTabView:")]
  154.         NSArray AllowedDraggedTypesForTabView (NSTabView aTabView);
  155.  
  156.         [Export ("tabView:imageForTabViewItem:offset:styleMask:")]
  157.         NSImage ImageForTabViewItemOffsetStyleMask (NSTabView aTabView, NSTabViewItem tabViewItem, SizeF offset, uint styleMask);
  158.  
  159.         [Export ("tabView:newTabBarViewForDraggedTabViewItem:atPoint:")]
  160.         MMTabBarView NewTabBarViewForDraggedTabViewItemAtPoint (NSTabView aTabView, NSTabViewItem tabViewItem, PointF point);
  161.  
  162.         [Export ("tabView:closeWindowForLastTabViewItem:")]
  163.         void CloseWindowForLastTabViewItem (NSTabView aTabView, NSTabViewItem tabViewItem);
  164.  
  165.         [Export ("tabView:validateOverflowMenuItem:forTabViewItem:")]
  166.         bool ValidateOverflowMenuItem (NSTabView aTabView, NSMenuItem menuItem, NSTabViewItem tabViewItem);
  167.  
  168.         [Export ("tabView:tabViewItem:isInOverflowMenu:")]
  169.         void ItemIsInOverflowMenu (NSTabView aTabView, NSTabViewItem tabViewItem, bool inOverflowMenu);
  170.  
  171.         [Export ("tabView:toolTipForTabViewItem:")]
  172.         string ToolTipForTabViewItem (NSTabView aTabView, NSTabViewItem tabViewItem);
  173.  
  174.         [Export ("accessibilityStringForTabView:objectCount:")]
  175.         string AccessibilityStringForTabViewObjectCount (NSTabView aTabView, int objectCount);
  176.     }
  177.  
  178.     public enum MMTabBarTearOffStyle
  179.     {
  180.         MMTabBarTearOffAlphaWindow,
  181.         MMTabBarTearOffMiniwindow
  182.     }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement