Commit Graph

24 Commits

Author SHA1 Message Date
Pieter de Bie cd4ee1b993 Update views when switching 2008-12-22 20:47:36 +01:00
Pieter de Bie 4dd7a46b86 Allow Toolbar customization
This allows both toolbars to be customized.
2008-12-01 13:50:51 +01:00
Pieter de Bie 0a2ddc36f7 GitWindowController: Store multiple views
This keeps the subviews in memory, which means that switching views will
be faster if a view has already been opened. This also allows you to type
a commit message, switch to the history view, and then switch back to
continue typing.
2008-11-26 17:44:25 +01:00
Pieter de Bie 3dd6385440 Fix memory leaks 2008-11-26 17:44:24 +01:00
Pieter de Bie edf4822e34 CLI: Show history view if necessary 2008-11-19 02:21:02 +01:00
Pieter de Bie 5cb842ca6b PBGitRepositoryWindow: keep toolbar DisplayMode when switching views 2008-10-16 14:58:28 +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 e329493154 Move toolbar to view xib 2008-10-03 17:18:26 +02:00
Ciarán Walsh e1704729f9 Adding view-specific toolbars. 2008-09-30 23:14:02 +01:00
Pieter de Bie 01966d59c7 WindowController: Make sure the subview is the right size before adding it
This fixes a rendering bug when you start in commit view and 
then switch to History view.
2008-09-28 16:14:47 +02:00
Pieter de Bie 1028157cbc Fix memory leaks
This changes a bunch of ivars to __weak's, to avoid reference loops.
Furthermore, in PBGitHistoryController, we need to call [webView close],
otherwise some memory will never be freed?
2008-09-28 16:14:00 +02:00
Pieter de Bie 709547ac85 Add Commit/History options in View menu 2008-09-26 23:30:52 +02:00
Pieter de Bie 86606ef815 Add a --commit option to the CLI client
This changes a lot of code, so quick review:

* RepositoryDocumentController now returns the document without selecting a ref
* PBGitWindowController now optionally shows the default view, or selects no view at all
* PBGitRepository keeps a pointer to its WindowController so that it can change views
2008-09-26 23:22:15 +02:00
Pieter de Bie d3f97bdfcb GitWindowController: bind selected view to controller
This used to be bound to the UserDefaults, but that introduced the
bug that switching the view in one window also switched it in other
open windows.

See 2e7cd5268d
2008-09-26 00:35:05 +02:00
Pieter de Bie b257f0090a Fix compiler warnings 2008-09-24 17:19:58 +02:00
Ciarán Walsh 2e7cd5268d Remember selected view (history or commit) 2008-09-23 22:58:53 +01:00
Pieter de Bie e9f4830e1c Show a pretty status bar 2008-09-23 02:40:59 +02:00
Pieter de Bie 45ee18c4f7 Unbind the search controller before switching views
Otherwise, the app will run fine in Debug mode but not when you
run it otherwise :|
2008-09-20 12:50:22 +02:00
Pieter de Bie 7f337cda2a Show current branch in branch menu
This kept going broken, so now instead of Interface Builder bindings,
we create the binding ourselves
2008-09-20 11:24:21 +02:00
Pieter de Bie 252b44cbe9 Re-enable menu items 2008-09-20 11:05:12 +02:00
Pieter de Bie 6edc25413f Merge branch 'commit_view'
* commit_view:
  Add a commit view mockup

Conflicts:
	PBGitWindowController.h
	PBGitWindowController.m
2008-09-20 10:27:45 +02:00
Pieter de Bie 80ae07984c Hopefully make the searchfield not break 2008-09-20 10:26:21 +02:00
Pieter de Bie 43d7285ac1 Add a commit view mockup 2008-09-19 22:25:48 +02:00
Pieter de Bie 708c08a293 First part of splitting views 2008-09-19 21:36:52 +02:00