mirror of
https://github.com/kennethreitz-archive/gitx.git
synced 2026-06-05 23:40:18 +00:00
1b41171d92
- add an action menu for the selected ref in the source view
- add Add Remote, Fetch, Pull and Push buttons to the bottom bar
- Add Remote icon by Nathan Kinsinger
- Fetch, Pull and Push icons are modified versions of André Berg's icons (from 4396081c07) made a bit smaller to fit in the UI better.
- move the status message for both the history view and the commit/stage view
- all PBViewControllers now have status and isBusy properties and can use those to put a message in the bottom bar when they are the active content controller of the window
44 lines
994 B
Objective-C
44 lines
994 B
Objective-C
//
|
|
// PBGitSidebar.h
|
|
// GitX
|
|
//
|
|
// Created by Pieter de Bie on 9/8/09.
|
|
// Copyright 2009 __MyCompanyName__. All rights reserved.
|
|
//
|
|
|
|
#import <Cocoa/Cocoa.h>
|
|
#import "PBViewController.h"
|
|
|
|
@class PBSourceViewItem;
|
|
@class PBGitHistoryController;
|
|
@class PBGitCommitController;
|
|
|
|
@interface PBGitSidebarController : PBViewController {
|
|
IBOutlet NSWindow *window;
|
|
IBOutlet NSOutlineView *sourceView;
|
|
IBOutlet NSView *sourceListControlsView;
|
|
IBOutlet NSPopUpButton *actionButton;
|
|
IBOutlet NSSegmentedControl *remoteControls;
|
|
|
|
NSMutableArray *items;
|
|
|
|
/* Specific things */
|
|
PBSourceViewItem *stage;
|
|
|
|
PBSourceViewItem *branches, *remotes, *tags, *others;
|
|
|
|
PBGitHistoryController *historyViewController;
|
|
PBGitCommitController *commitViewController;
|
|
}
|
|
|
|
- (void) selectStage;
|
|
- (void) selectCurrentBranch;
|
|
|
|
- (NSMenu *) menuForRow:(NSInteger)row;
|
|
|
|
- (IBAction) fetchPullPushAction:(id)sender;
|
|
|
|
@property(readonly) NSMutableArray *items;
|
|
@property(readonly) NSView *sourceListControlsView;
|
|
@end
|