Skip to content

Commit

Permalink
Clang, preferences window, large refactoring of the plugin code and f…
Browse files Browse the repository at this point in the history
…eatures.
  • Loading branch information
benoitsan committed Jan 19, 2014
1 parent 624c196 commit f0411a7
Show file tree
Hide file tree
Showing 196 changed files with 6,502 additions and 1,151 deletions.
398 changes: 202 additions & 196 deletions BBUncrustifyPlugin.xcodeproj/project.pbxproj

Large diffs are not rendered by default.

10 changes: 10 additions & 0 deletions Classes/BBHyperLinkButtonCell.h
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
//
// Created by Benoît on 11/01/14.
// Copyright (c) 2014 Pragmatic Code. All rights reserved.
//

#import <Cocoa/Cocoa.h>

@interface BBHyperLinkButtonCell : NSButtonCell

@end
25 changes: 25 additions & 0 deletions Classes/BBHyperLinkButtonCell.m
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
//
// Created by Benoît on 11/01/14.
// Copyright (c) 2014 Pragmatic Code. All rights reserved.
//

#import "BBHyperLinkButtonCell.h"

@implementation BBHyperLinkButtonCell

- (NSAttributedString*)attributedTitle {

NSMutableAttributedString *attributedTitle = [[NSMutableAttributedString alloc] initWithAttributedString:[super attributedTitle]];

NSRange range = NSMakeRange(0, [attributedTitle length]);

[attributedTitle addAttribute:NSUnderlineStyleAttributeName value:[NSNumber numberWithInt:NSSingleUnderlineStyle] range:range];

NSColor *textColor = (self.isHighlighted) ? [NSColor colorWithCalibratedRed:0.117 green:0.376 blue:0.998 alpha:1.000] : [NSColor blueColor];

[attributedTitle addAttribute:NSForegroundColorAttributeName value:textColor range:range];

return [attributedTitle copy];
}

@end
7 changes: 2 additions & 5 deletions Classes/BBPluginUpdater.h
Original file line number Diff line number Diff line change
@@ -1,9 +1,6 @@
//
// BBPluginUpdater.h
// BBUncrustifyPlugin
//
// Created by Benoît on 07/04/13.
//
// Created by Benoît on 11/01/14.
// Copyright (c) 2014 Pragmatic Code. All rights reserved.
//

#import <Sparkle/Sparkle.h>
Expand Down
7 changes: 2 additions & 5 deletions Classes/BBPluginUpdater.m
Original file line number Diff line number Diff line change
@@ -1,9 +1,6 @@
//
// BBPluginUpdater.m
// BBUncrustifyPlugin
//
// Created by Benoît on 07/04/13.
//
// Created by Benoît on 11/01/14.
// Copyright (c) 2014 Pragmatic Code. All rights reserved.
//

#import "BBPluginUpdater.h"
Expand Down
24 changes: 0 additions & 24 deletions Classes/BBUncrustify.h

This file was deleted.

222 changes: 0 additions & 222 deletions Classes/BBUncrustify.m

This file was deleted.

14 changes: 0 additions & 14 deletions Classes/BBUncrustifyPlugin.h

This file was deleted.

Loading

0 comments on commit f0411a7

Please sign in to comment.