Commit Graph

47 Commits

Author SHA1 Message Date
Nathan Kinsinger 783e38d623 Remove the lower toolbar from the history and stage views
- in the history view move the detail/tree view and quick look buttons to the top toolbar
2010-03-22 12:26:57 -06:00
Nathan Kinsinger ef8fed6f4e Fix up the stage view's commit message text view
- stop the spelling error markers from being drawn over
    - allow undo/redo in the commit message view
2010-03-13 22:16:27 -07:00
Nathan Kinsinger 9dc54b3316 Resize the Amend checkbox
It was being clipped by one pixel
2010-03-13 22:15:49 -07:00
Nathan Kinsinger 1b41171d92 Add a bottom content border/toolbar to the repository window
- add an action menu for the selected ref in the source view
    - add Add Remote, Fetch, Pull and Push buttons to the bottom bar
        - Add Remote icon by Nathan Kinsinger
        - Fetch, Pull and Push icons are modified versions of André Berg's icons (from 4396081c07) made a bit smaller to fit in the UI better.
    - move the status message for both the history view and the commit/stage view
        - all PBViewControllers now have status and isBusy properties and can use those to put a message in the bottom bar when they are the active content controller of the window
2010-03-13 22:15:13 -07:00
Nathan Kinsinger 64f4276e21 Delete old toolbars and create new ones
- remove the separate window toolbars from the history and commit views and create a new window toolbar in the repository window
    - add new toolbars inside the history view
        - new class to draw a gradient in the background of a view
        - moved the search field from the main toolbar to the scope bar
2010-03-13 22:14:36 -07:00
Nathan Kinsinger b1e632cf6f Move the sidebar to the window controller
Remove the sidebar from the history controller and put it under the control of the window controller.
    - the window controller is the delegate of the split view and controls resizing so the source list stays the same width as the window resizes
    - the sidebar controller tells the window controller which content view to show
    - removed the view selector from the toolbars of the history and commit xibs (the menu and keyboard shortcuts command-1 and command-2 still switch between the views)
    - added horizontal lines to the history and commit xibs to delineate the bottom toolbar area
2010-03-13 22:13:12 -07:00
Nathan Kinsinger 03dc7819b4 Disable Commit button when there are no staged files. 2010-02-19 22:54:55 -07:00
Pieter de Bie 438a3f808d GitIndexController: reorder methods a bit, remove unnecessary stuff 2009-09-13 16:55:40 +02:00
Pieter de Bie 03e1d3e882 WIP: Add GUI support for the new index 2009-09-13 16:55:38 +02:00
Benjamin Kramer a8f4304f86 Fix checkbox scaling warnings
This fixes Snow Leopard's "The image scaling property should not be used with
checkboxes" warnings. Noticed by Stonewall Ballard.
2009-08-31 22:35:33 +02:00
Nicholas Riley 3ee50de56b Truncate the middle of pathnames in the Unstaged/Staged Changes lists.
Previously, the ends of the pathnames were truncated instead, which
could lose the filename.
2009-07-07 11:56:55 +01:00
Nicholas Riley 9fff83a0af Reduce font size of staged/unstaged changes lists.
This is better for smaller screens and deeply nested paths.
2009-07-07 11:56:35 +01:00
Johannes Gilger 93124387c4 PBGitCommit: Add "Sign-Off" button/method
This adds a small method signOff which simply appends a SOB-line to the
current commit-message, using user.name and user.email.

Signed-off-by: Johannes Gilger <heipei@hackvalue.de>

Signed-off-by: Pieter de Bie <frimmirf+gitx@gmail.com>
2009-06-11 23:39:08 +01:00
Pieter de Bie 87fae3f03e CommitView: Remove a stray label 2009-01-25 18:29:27 +00:00
Pieter de Bie 8c34fc9d84 CommitView: Actually show commit message
The message that the commit was succesful used to disappear
because after the commit, the index would refresh and another
file would be shown. We fix this by never requiring a file to be
selected.
2009-01-19 20:08:55 +00:00
Pieter de Bie 4dd7a46b86 Allow Toolbar customization
This allows both toolbars to be customized.
2008-12-01 13:50:51 +01:00
Kim Does ac0327249d Add icons for the history view and commit view 2008-11-20 15:09:55 +01:00
Pieter de Bie 6fcc12d69d CommitView: Allow drag 'n drop of staged / unstaged files 2008-11-18 23:59:25 +01:00
Pieter de Bie 0975426f2f CommitView: move index functions to separate controller
This merges functionality that was previously stored in the
combination of PBGitCommitController / PBChangedFile to a
dedicated controller, PBGitIndexController.
2008-11-18 23:59:25 +01:00
Pieter de Bie 874737fcb5 CommitView: Allow multiple selection 2008-11-18 23:59:25 +01:00
Pieter de Bie 82aa6a3232 Autosave divider position
This autosaves the position of the divider in the splitviews
of the commit view and the history view
2008-11-17 13:56:33 +01:00
Pieter de Bie 8dcb8553ed Fix XIB inconsistencies in naming 2008-11-17 13:54:11 +01:00
Pieter de Bie 90db001409 WebCommitView: Add a state display
This adds a div in the webview to display the current commit
state. It allows us to notify the user of new commits by
showing something in the webview, rather than a modal
dialog.
2008-11-01 20:56:33 +01:00
Pieter de Bie 77ad37a76a History/CommitView: Use a nice-looking splitview divider
This uses images based on those in Mail.app to create a nice
looking splitview (Hush, don't tell Apple!)
2008-10-31 23:44:24 +01:00
Pieter de Bie b252de1a76 CommitView: Allow committing per hunk 2008-10-21 23:31:45 +02:00
Jeff Mesnil fc63af0709 CommitView: Add a vertical line to the commit message
Since Git recommends to use 50 characters in the first line of a commit
message, this adds a vertical line to the commit message view to show where
the 50 char limit is.

[PB: This preference can be changed using a user default -- for now we don't
have a preference pane yet, so this is hidden.]
2008-10-21 14:56:43 +02:00
Pieter de Bie 472d36c7f9 CommitView: Add context menu to revert changes 2008-10-10 21:59:23 +02:00
Pieter de Bie e659e63fc0 CommitView: Add option to amend commits 2008-10-10 21:59:23 +02:00
Pieter de Bie e418878c1b CommitView: Add command-shift-enter shortcut to commit 2008-10-10 21:59:21 +02:00
Pieter de Bie b2cd87cb72 GitWindow: Don't try to be smart with the view selector
Previously, we would try to copy the view selector from within
the RepositoryWindow, so we could reuse it and change it if we
need to.

However, that causes problems if you have another window open:
if we try to add an item using the insertItemWithIdentifier:atIndex:
method, the item will be added to _all_ toolbars with the same
identifier, even if those toolbars already have the item!

As I see no easy way to fix that, we completely avoid the issue
by not inserting any objects and just copying the view selector
from view to view.
2008-10-04 23:00:11 +02:00
Pieter de Bie a42adc6d82 CommitView: Allow doubleclick to (un)stage changes 2008-10-04 22:41:21 +02:00
Pieter de Bie ff6cc26181 CommitView: Don't show commit / amend radio buttons
As this function is not yet implemented, just don't show it.
2008-09-26 00:41:57 +02:00
Pieter de Bie 978d7cb2b1 CommitView: Correctly set the default commitmessage font to Monaco 12
This way, wo don't need any text entered to set a font.
2008-09-26 00:11:49 +02:00
Pieter de Bie 37cda5faa4 CommitView: Intelligently add files
Rather than rereading our status every time we add something,
calculate where a file should go.
2008-09-25 23:57:48 +02:00
Pieter de Bie 0ad81bc2a6 CommitView: Use the status bar to update on status 2008-09-25 23:31:24 +02:00
Pieter de Bie 3f923f51a1 CommitView: Add commit capability 2008-09-24 01:08:10 +02:00
Pieter de Bie 76e176e8b4 Add staging and unstaging of files 2008-09-24 00:47:41 +02:00
Ciarán Walsh 9893037d86 Hit testing and action sending 2008-09-23 22:41:32 +01:00
Ciarán Walsh b8292f1b34 Adding an icon and text cell implementation from CocoaDev 2008-09-23 22:11:28 +01:00
Pieter de Bie 62612f0e51 Use a more logical checkout 2008-09-23 21:51:31 +02:00
Pieter de Bie 8a687840cb Merge commit 'HEAD@{1}'
* commit 'HEAD@{1}':
  Show a pretty status bar

Conflicts:
	PBGitCommitView.xib
2008-09-23 20:30:18 +02:00
Ciarán Walsh 5111b363ef Setting up target/action for the file icon buttons 2008-09-23 18:37:15 +01:00
Ciarán Walsh 7be97dcbf8 Using button cells instead of image cells, for the icons, so we can hook up an action. 2008-09-23 18:08:28 +01:00
Pieter de Bie e9f4830e1c Show a pretty status bar 2008-09-23 02:40:59 +02:00
Pieter de Bie 44009b6f3e CommitView: use only one array for all files 2008-09-23 02:04:12 +02:00
Pieter de Bie 252796ee26 CommitView: Show basic files 2008-09-23 01:02:33 +02:00
Pieter de Bie 65b61d4502 add more files 2008-09-19 23:33:26 +02:00