From 9c51b60d27bd8500730ad67eed17566794e6699f Mon Sep 17 00:00:00 2001 From: masakih Date: Sun, 25 Dec 2016 00:16:47 +0900 Subject: [PATCH] =?utf8?q?=E4=B8=8D=E8=A6=81=E3=81=AB=E3=81=AA=E3=81=A3?= =?utf8?q?=E3=81=9F=E3=82=AF=E3=83=A9=E3=82=B9=E3=82=92=E5=89=8A=E9=99=A4?= =?utf8?q?=E3=81=97=E3=81=9F?= MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit --- KCD.xcodeproj/project.pbxproj | 6 ---- KCD/HMBookmarkListTableView.h | 20 ----------- KCD/HMBookmarkListTableView.m | 77 ------------------------------------------- 3 files changed, 103 deletions(-) delete mode 100644 KCD/HMBookmarkListTableView.h delete mode 100644 KCD/HMBookmarkListTableView.m diff --git a/KCD.xcodeproj/project.pbxproj b/KCD.xcodeproj/project.pbxproj index b094830e..0b7bacc7 100644 --- a/KCD.xcodeproj/project.pbxproj +++ b/KCD.xcodeproj/project.pbxproj @@ -76,7 +76,6 @@ 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 */; }; @@ -455,8 +454,6 @@ F4649FD91DBC54270097AEBF /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.xib; name = Base; path = Base.lproj/HMScreenshotListViewController.xib; sourceTree = ""; }; F4649FDA1DBC54320097AEBF /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.xib; name = Base; path = Base.lproj/HMScreenshotDetailViewController.xib; sourceTree = ""; }; F4649FDB1DBC543A0097AEBF /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.xib; name = Base; path = Base.lproj/HMScreenshotEditorViewController.xib; sourceTree = ""; }; - F4666C4B1B1B3113001840DB /* HMBookmarkListTableView.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = HMBookmarkListTableView.h; sourceTree = ""; }; - F4666C4C1B1B3113001840DB /* HMBookmarkListTableView.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = HMBookmarkListTableView.m; sourceTree = ""; }; F4666C581B2067CF001840DB /* HMSourceListColoredView.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = HMSourceListColoredView.h; sourceTree = ""; }; F4666C591B2067CF001840DB /* HMSourceListColoredView.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = HMSourceListColoredView.m; sourceTree = ""; }; F4666C5C1B242124001840DB /* HMQuestProgressTransformer.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = HMQuestProgressTransformer.h; sourceTree = ""; }; @@ -1088,8 +1085,6 @@ F4C668591C5450EB00601AFB /* HMBookmarkListViewController.xib */, F4666C581B2067CF001840DB /* HMSourceListColoredView.h */, F4666C591B2067CF001840DB /* HMSourceListColoredView.m */, - F4666C4B1B1B3113001840DB /* HMBookmarkListTableView.h */, - F4666C4C1B1B3113001840DB /* HMBookmarkListTableView.m */, F4D05BCD1E0D50D300688D66 /* HMBrowserContentAdjuster.swift */, F4C6685F1C54515C00601AFB /* HMBrowserContentAdjuster.xib */, F4D05BCB1E0D274100688D66 /* HMBookmarkEditorViewController.swift */, @@ -1876,7 +1871,6 @@ 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 */, diff --git a/KCD/HMBookmarkListTableView.h b/KCD/HMBookmarkListTableView.h deleted file mode 100644 index 747cf63a..00000000 --- a/KCD/HMBookmarkListTableView.h +++ /dev/null @@ -1,20 +0,0 @@ -// -// HMBookmarkListTableView.h -// KCD -// -// Created by Hori,Masaki on 2015/05/31. -// Copyright (c) 2015å¹´ Hori,Masaki. All rights reserved. -// - -#import - -@interface HMBookmarkListTableView : NSTableView - -@end - -@protocol HMBookmarkListTableViewDatasorce - -@optional -- (NSMenu *)tableView:(HMBookmarkListTableView *)tableView menuForEvent:(NSEvent *)event; - -@end diff --git a/KCD/HMBookmarkListTableView.m b/KCD/HMBookmarkListTableView.m deleted file mode 100644 index 068d90ae..00000000 --- a/KCD/HMBookmarkListTableView.m +++ /dev/null @@ -1,77 +0,0 @@ -// -// HMBookmarkListTableView.m -// KCD -// -// Created by Hori,Masaki on 2015/05/31. -// Copyright (c) 2015å¹´ Hori,Masaki. All rights reserved. -// - -#import "HMBookmarkListTableView.h" - -@interface HMBookmarkListTableView () -@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)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 -- 2.11.0