mirror of
https://github.com/kennethreitz-archive/gitx.git
synced 2026-06-05 23:40:18 +00:00
c36726b985
- In PBGitSidebarView.xib
- change indentation to 12
- change font size to 11
- disable the editable behavior
- disable autoresizing
- disable user resizing (column should resize with view)
- remove the window
- remove the shared user defaults controller (not being used)
- add a project item with the project's name
- a "Stage" item to go to what has been called the commit view
- new icons for branches, remote branches and tags (created by Nathan Kinsinger)
- remove the old tiff icons, PBSourceViewRemote.h/m and PBSourceViewAction.h/m from the xcode project
- uses system icon for folder
- uses Network icon for remotes
- capitalize group names
- rename the Custom group to Other (you can't really customize items in the traditional sense)
- create a class for each item type that takes care of it's image (instead of trying to guess the image from it or it's parent's name)
- remove the branch menu toolbar item from the history view, it's redundant now
42 lines
688 B
Objective-C
42 lines
688 B
Objective-C
//
|
|
// PBGitSVRemoteItem.m
|
|
// GitX
|
|
//
|
|
// Created by Nathan Kinsinger on 3/2/10.
|
|
// Copyright 2010 Nathan Kinsinger. All rights reserved.
|
|
//
|
|
|
|
#import "PBGitSVRemoteItem.h"
|
|
#import "PBGitRef.h"
|
|
|
|
|
|
@implementation PBGitSVRemoteItem
|
|
|
|
|
|
+ (id)remoteItemWithTitle:(NSString *)title
|
|
{
|
|
PBGitSVRemoteItem *item = [self itemWithTitle:title];
|
|
|
|
return item;
|
|
}
|
|
|
|
|
|
- (NSImage *) icon
|
|
{
|
|
static NSImage *networkImage = nil;
|
|
if (!networkImage) {
|
|
networkImage = [NSImage imageNamed:NSImageNameNetwork];
|
|
[networkImage setSize:NSMakeSize(16,16)];
|
|
}
|
|
|
|
return networkImage;
|
|
}
|
|
|
|
|
|
- (PBGitRef *) ref
|
|
{
|
|
return [PBGitRef refFromString:[kGitXRemoteRefPrefix stringByAppendingString:self.title]];
|
|
}
|
|
|
|
@end
|