mirror of
https://github.com/kennethreitz-archive/gitx.git
synced 2026-06-05 23:40:18 +00:00
b1e632cf6f
Remove the sidebar from the history controller and put it under the control of the window controller.
- the window controller is the delegate of the split view and controls resizing so the source list stays the same width as the window resizes
- the sidebar controller tells the window controller which content view to show
- removed the view selector from the toolbars of the history and commit xibs (the menu and keyboard shortcuts command-1 and command-2 still switch between the views)
- added horizontal lines to the history and commit xibs to delineate the bottom toolbar area
36 lines
728 B
Objective-C
36 lines
728 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;
|
|
|
|
NSMutableArray *items;
|
|
|
|
/* Specific things */
|
|
PBSourceViewItem *stage;
|
|
|
|
PBSourceViewItem *branches, *remotes, *tags, *others;
|
|
|
|
PBGitHistoryController *historyViewController;
|
|
PBGitCommitController *commitViewController;
|
|
}
|
|
|
|
- (void) selectStage;
|
|
- (void) selectCurrentBranch;
|
|
|
|
@property(readonly) NSMutableArray *items;
|
|
@end
|