-
sullivan authored
except the string-matching ones. * History.subproj/IFURIEntry.h: * History.subproj/IFURIEntry.m: (-[IFURIEntry initWithURL:title:image:comment:]), (-[IFURIEntry lastVisitedDate]), (-[IFURIEntry setModificationDate:]), (-[IFURIEntry setLastVisitedDate:]): Changed all NSDates to be NSCalendarDates. * History.subproj/IFWebHistory.h: * History.subproj/IFWebHistory.m: (-[IFWebHistory init]), (-[IFWebHistory dealloc]), (-[IFWebHistory sendEntriesChangedNotification]), (-[IFWebHistory addEntry:]), (-[IFWebHistory removeEntry:]), (-[IFWebHistory removeEntriesForDay:]), (-[IFWebHistory removeAllEntries]), (-[IFWebHistory orderedLastVisitedDays]), (-[IFWebHistory orderedEntriesLastVisitedOnDay:]), (-[IFWebHistory entriesWithAddressContainingString:]), (-[IFWebHistory entriesWithTitleOrAddressContainingString:]), (-[IFWebHistory containsURL:]): Implemented all IFWebHistory methods by calling through to IFWebHistoryPrivate object. Send a change notification each time the actual data changes. Removed all canned-data mechanisms. * History.subproj/IFWebHistoryPrivate.h: * History.subproj/IFWebHistoryPrivate.m: (-[IFWebHistoryPrivate init]), (-[IFWebHistoryPrivate dealloc]), (-[IFWebHistoryPrivate findIndex:forDay:]), (-[IFWebHistoryPrivate insertEntry:atDateIndex:]), (-[IFWebHistoryPrivate removeEntryForURLString:]), (-[IFWebHistoryPrivate addEntry:]), (-[IFWebHistoryPrivate removeEntry:]), (-[IFWebHistoryPrivate removeEntriesForDay:]), (-[IFWebHistoryPrivate removeAllEntries]), (-[IFWebHistoryPrivate orderedLastVisitedDays]), (-[IFWebHistoryPrivate orderedEntriesLastVisitedOnDay:]), (-[IFWebHistoryPrivate entriesWithAddressContainingString:]), (-[IFWebHistoryPrivate entriesWithTitleOrAddressContainingString:]), (-[IFWebHistoryPrivate containsURL:]): Implemented guts of history mechanism using a dictionary for URL lookup and a sorted array of dates with entries and a sorted array of sorted arrays of entries per date. * WebKit.pbproj/project.pbxproj: Updated for new files Made History window work. * BrowserDocument.h: whitespace changes only * BrowserDocument.m: (-[BrowserDocument addHistoryEntryForCurrentPage]): New method. (-[BrowserDocument locationChangeDone:forFrame:]): Call new method. (-[BrowserDocument locationChangeStartedForFrame:initiatedByUserEvent:]): Changed postNotification to use simpler userinfo-free version. * GlobalHistory.m: (+[GlobalHistory sharedGlobalHistory]): Register for changed notifications from IFWebHistory (-[GlobalHistory outlineView:objectValueForTableColumn:byItem:]): Use "today" for current date; "unknown title" for nil titles. (-[GlobalHistory historyIsEmpty]): New private convenience method. (-[GlobalHistory expandToday]): New method, expands the triangle for today's history entries if the first triangle is for today. (-[GlobalHistory updateButtons]), (-[GlobalHistory validateUserInterfaceItem:]): Use historyIsEmpty (-[GlobalHistory receivedEntriesChangedNotification:]): New method, react to change notification by reloading data and updating buttons. (-[GlobalHistory removeSelectedItems:]), (-[GlobalHistory removeAll:]): Implemented by calling IFWebHistory methods. (-[GlobalHistory showWindow:]): expand today's triangle * English.lproj/History.nib: Removed "completely fake" from History window title. git-svn-id: http://svn.webkit.org/repository/webkit/trunk@645 268f45cc-cd09-0410-ab3c-d52691b4dbfc
168bf470