F4649FC91DBC51EF0097AEBF /* HMScreenshotListViewController.xib in Resources */ = {isa = PBXBuildFile; fileRef = F4649FCB1DBC51EF0097AEBF /* HMScreenshotListViewController.xib */; };
F4649FCE1DBC52600097AEBF /* HMScreenshotDetailViewController.xib in Resources */ = {isa = PBXBuildFile; fileRef = F4649FD01DBC52600097AEBF /* HMScreenshotDetailViewController.xib */; };
F4649FD31DBC52A50097AEBF /* HMScreenshotEditorViewController.xib in Resources */ = {isa = PBXBuildFile; fileRef = F4649FD51DBC52A50097AEBF /* HMScreenshotEditorViewController.xib */; };
- F4666C4D1B1B3113001840DB /* HMBookmarkListTableView.m in Sources */ = {isa = PBXBuildFile; fileRef = F4666C4C1B1B3113001840DB /* HMBookmarkListTableView.m */; };
F4666C5A1B2067CF001840DB /* HMSourceListColoredView.m in Sources */ = {isa = PBXBuildFile; fileRef = F4666C591B2067CF001840DB /* HMSourceListColoredView.m */; };
F4666C5E1B242124001840DB /* HMQuestProgressTransformer.m in Sources */ = {isa = PBXBuildFile; fileRef = F4666C5D1B242124001840DB /* HMQuestProgressTransformer.m */; };
F4666C641B25CA3E001840DB /* HMKCQuest+Extensions.m in Sources */ = {isa = PBXBuildFile; fileRef = F4666C631B25CA3E001840DB /* HMKCQuest+Extensions.m */; };
F4649FD91DBC54270097AEBF /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.xib; name = Base; path = Base.lproj/HMScreenshotListViewController.xib; sourceTree = "<group>"; };
F4649FDA1DBC54320097AEBF /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.xib; name = Base; path = Base.lproj/HMScreenshotDetailViewController.xib; sourceTree = "<group>"; };
F4649FDB1DBC543A0097AEBF /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.xib; name = Base; path = Base.lproj/HMScreenshotEditorViewController.xib; sourceTree = "<group>"; };
- F4666C4B1B1B3113001840DB /* HMBookmarkListTableView.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = HMBookmarkListTableView.h; sourceTree = "<group>"; };
- F4666C4C1B1B3113001840DB /* HMBookmarkListTableView.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = HMBookmarkListTableView.m; sourceTree = "<group>"; };
F4666C581B2067CF001840DB /* HMSourceListColoredView.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = HMSourceListColoredView.h; sourceTree = "<group>"; };
F4666C591B2067CF001840DB /* HMSourceListColoredView.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = HMSourceListColoredView.m; sourceTree = "<group>"; };
F4666C5C1B242124001840DB /* HMQuestProgressTransformer.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = HMQuestProgressTransformer.h; sourceTree = "<group>"; };
F4C668591C5450EB00601AFB /* HMBookmarkListViewController.xib */,
F4666C581B2067CF001840DB /* HMSourceListColoredView.h */,
F4666C591B2067CF001840DB /* HMSourceListColoredView.m */,
- F4666C4B1B1B3113001840DB /* HMBookmarkListTableView.h */,
- F4666C4C1B1B3113001840DB /* HMBookmarkListTableView.m */,
F4D05BCD1E0D50D300688D66 /* HMBrowserContentAdjuster.swift */,
F4C6685F1C54515C00601AFB /* HMBrowserContentAdjuster.xib */,
F4D05BCB1E0D274100688D66 /* HMBookmarkEditorViewController.swift */,
F4D6BCA91AA298FD00742FEB /* HMShipDetailViewController.m in Sources */,
F4B3DC2118DECF570011B4FC /* HMTSVSupport.m in Sources */,
F4B1E30819C73B6A00805879 /* HMSuppliesCell.m in Sources */,
- F4666C4D1B1B3113001840DB /* HMBookmarkListTableView.m in Sources */,
F4A3AD8E19BB220000FDBF80 /* HMMaskInfomation.m in Sources */,
F4F6E8291B3045970008B66E /* CacheStoragePolicy.m in Sources */,
F4F9F8A31C70AFB600D0EE76 /* HMFleetManager.m in Sources */,
+++ /dev/null
-//
-// HMBookmarkListTableView.m
-// KCD
-//
-// Created by Hori,Masaki on 2015/05/31.
-// Copyright (c) 2015年 Hori,Masaki. All rights reserved.
-//
-
-#import "HMBookmarkListTableView.h"
-
-@interface HMBookmarkListTableView () <NSMenuDelegate>
-@property NSInteger contextMenuRow;
-@end
-
-@implementation HMBookmarkListTableView
-
-- (instancetype)initWithFrame:(NSRect)frameRect
-{
- self = [super initWithFrame:frameRect];
- if(self) {
- _contextMenuRow = -1;
- }
- return self;
-}
-- (instancetype)initWithCoder:(NSCoder *)coder
-{
- self = [super initWithCoder:coder];
- if(self) {
- _contextMenuRow = -1;
- }
- return self;
-}
-
-
-- (void)drawRect:(NSRect)dirtyRect
-{
- [super drawRect:dirtyRect];
-
- if(self.contextMenuRow == -1) return;
-
- NSRect rowRect = [self rectOfRow:self.contextMenuRow];
- NSColor *color = [NSColor alternateSelectedControlColor];
- [color set];
- NSBezierPath *roundRect = [NSBezierPath bezierPathWithRoundedRect:NSInsetRect(rowRect, 1, 1)
- xRadius:4.0
- yRadius:4.0];
- roundRect.lineWidth = 2;
- roundRect.lineCapStyle = NSRoundLineCapStyle;
- roundRect.lineJoinStyle = NSRoundLineJoinStyle;
- [roundRect stroke];
-}
-
-- (NSMenu *)menuForEvent:(NSEvent *)event
-{
- if(!self.dataSource || ![self.dataSource respondsToSelector:@selector(tableView:menuForEvent:)]) return nil;
-
- NSMenu *menu = [(id<HMBookmarkListTableViewDatasorce>)self.dataSource tableView:self menuForEvent:event];
- if(menu) {
- NSPoint mouse = [self convertPoint:[event locationInWindow] fromView:nil];
- self.contextMenuRow = [self rowAtPoint:mouse];
- NSRect rowRect= [self rectOfRow:self.contextMenuRow];
- [self setNeedsDisplayInRect:rowRect];
- [self displayIfNeeded];
- [menu setDelegate:self];
-
- }
- return menu;
-}
-- (void)menuDidClose:(NSMenu *)menu
-{
- NSRect rowRect = [self rectOfRow:self.contextMenuRow];
- [self setNeedsDisplayInRect:rowRect];
- [menu setDelegate:nil];
-
- self.contextMenuRow = -1;
-}
-@end