Commit Graph

13 Commits

Author SHA1 Message Date
André Berg 4832f3b59f Code cleanup: Remove unneeded #imports, empty methods, declare id return type when left out, commit irrelevant whitespace flagged as change. 2010-03-24 09:02:45 +01:00
Nathan Kinsinger 6a8f495318 Add support for QuickLook in 10.6+
In 10.6 Apple removed the private QL API that existed in 10.5 and added a new public API. However they did not port the new API back to 10.5 so we have to do some work to get it working in both.

This patch has GitX choose the correct version at run time.
    - The delegate code is based on Apple's QuickLookDownloader example project
    - added three of the public API methods to CWQuickLook.h to avoid warnings about unknown method calls
    - In ApplicationController try to load the public API first then load the private one if it fails
    - Created PBQLTextView, a subclass of NSTextView to allow the space key event to toggle the preview panel
    - PBGitHistoryView.xib:
        - set the text view's class to PBQLTextView
        - connected the history controller to the controller outlet
        - bound the quick look button's enabled binding to File's Owner.selectedCommitDetailsIndex
        - added "Quick Look" to the quick look button's tooltip
    - The commit list table view toggles the panel if the tree view is active
    - changed name of the toggle IBAction method which caused MainMenu.xib and PBGitHistoryView.xib to update
2010-03-22 12:25:02 -06:00
Nathan Kinsinger 87f76fd5a1 Bugfix: fix the contextual menu and drag-n-drop of refs
When the Subject column is not the first column in the git history table the contextual menu for refs and dragging and dropping refs don't work.

Offset the mouse click's x value by the x origin of the Subject column.

In PBRefController look up the column index of the subject column and check that it's the clicked column (don't assume it's the first one).
2010-02-19 22:54:25 -07:00
Johannes Gilger 193b834a5c PBCollapsibleSplitView: Enable collapse/uncollapse using keys
This adds a method to programmatically collapse/uncollapse the two
subviews of our custom SplitView-class. It also implements a
keyDown-method so that the collapsing can be used with
Command-Shift-{Up,Down}.

Signed-off-by: Johannes Gilger <heipei@hackvalue.de>
2009-07-07 18:46:04 +01:00
Benjamin Kramer c12e8b9dd4 Get rid of some unnecessary casts 2009-05-27 18:09:29 +01:00
Pieter de Bie e02ee5231c WebHistoryController: Move ref deletion to RefController
That's why it's there, after all. This also makes the system
more robust and catches some more errors.

The next thing this enables is to also allow right-clicking
on refs in the commit list.
2008-11-01 22:51:10 +01:00
Pieter de Bie 304a1a5d03 Remove stray debug messages 2008-11-01 21:14:57 +01:00
Pieter de Bie 4cefe8ee92 HistoryView: Allow dragging of refs to move them 2008-11-01 21:14:24 +01:00
Pieter de Bie de9f4ddf91 HistoryView: Add copy behaviour in commit list
This copies text like:

	2e7cd5268d (Remember selected view (history or commit))

to the pasteboard on command-c
2008-09-26 18:43:06 +02:00
Pieter de Bie 38f16a2122 Allow copy and pasting of web source by pressing 'c' 2008-09-19 15:03:51 +02:00
Pieter de Bie 978a22c5a5 Add 'v' as a shortcut to show large diffs 2008-09-12 22:17:31 +02:00
Pieter de Bie c3c4f98c66 Allow hunk navigation by using j/k keys 2008-09-12 22:12:58 +02:00
Pieter de Bie 84d929d6fc Allow scrolling of the webView by pressing space 2008-09-12 11:54:45 +02:00