Nathan Sobo
6ef6fb77f9
Rename pane-*-model specs
2014-01-13 17:22:02 -07:00
Nathan Sobo
97999f1080
Rename PaneContainerModel to PaneContainer
2014-01-13 13:56:31 -07:00
Nathan Sobo
a268b3e963
Rename PaneAxisModel to PaneAxis
2014-01-13 13:54:04 -07:00
Nathan Sobo
8931bf8f3a
Rename PaneModel to Pane
2014-01-13 13:51:15 -07:00
Nathan Sobo
918c31905f
Rename PaneContainer to PaneContainerView
2014-01-13 13:46:28 -07:00
Nathan Sobo
4f604ced3c
Rename Pane to PaneView
2014-01-13 13:46:22 -07:00
Nathan Sobo
3fc3d48def
Destroy empty panes after deserializing
...
Fixes #1399
2014-01-12 17:53:25 -07:00
Nathan Sobo
b438b311f3
Rename showItem methods to activateItem
...
These methods set the *active* item, so the verb activate provides a
clearer correspondence. We could change the noun to "shown" item, but
that's awkward and having both active panes and active items is a nice
correspondence in terminology.
2014-01-12 17:40:57 -07:00
Nathan Sobo
561e31c0c5
Remove ::removeItemAtIndex and make ::removeItem private
...
Call ::destroyItem or just destroy the item directly (it should emit the
'destroyed' event)
2014-01-12 17:25:51 -07:00
Nathan Sobo
28b085be1c
Rename ::makeActive to ::activate and focus panes when they're activated
2014-01-11 20:48:01 -07:00
Nathan Sobo
72fe586101
Remove the concept of focus from the model
2014-01-10 17:27:28 -07:00
Nathan Sobo
23e805fe9e
Remove assertion for impossible situation
...
We were testing the behavior of returning the active pane by removing
the active class from its view. But "active" is a model-level concept
now, so this assertion makes no sense.
2014-01-10 15:28:55 -07:00
Nathan Sobo
47870a1214
Remove views (rather than detaching) if Pane::destroyItem is called
2014-01-10 13:35:18 -07:00
Nathan Sobo
4b0d22917b
Trust CSS to perform layout now that we've switched to flexbox
...
The behavior of flexbox is actually slightly different in that it
divides space evenly among the immediate children of a row or column
rather than accounting for all splits. But it's actually not that big
a deal.
2014-01-10 12:12:44 -07:00
Nathan Sobo
d34327a667
Remove the EditorView when Editor is destroyed
2014-01-10 11:56:27 -07:00
Nathan Sobo
339e30d973
Account for pane axis class name changes in pane-container-spec
2014-01-10 11:25:02 -07:00
Nathan Sobo
5e1e092650
When the last pane is destroyed, null out the root and active pane
2014-01-10 11:22:19 -07:00
Nathan Sobo
c69febd44d
Preserve the active pane across serialization
2014-01-10 11:22:02 -07:00
Nathan Sobo
1c7eef89c3
Merge branch 'master' into ns-pane-splits-with-models
2014-01-10 10:40:52 -07:00
Nathan Sobo
e87b8dc463
Remove focusNext/PreviousPane methods from PaneContainer view
2014-01-09 18:35:01 -07:00
Nathan Sobo
cd699d8b9b
Transfer focus to the root view when the last focused pane is destroyed
2014-01-09 18:17:08 -07:00
Nathan Sobo
5e1b2e2696
Manage the active pane at the model level
2014-01-09 18:00:19 -07:00
Nathan Sobo
4026e6ca5c
Properly serialize pane focus state
2014-01-09 16:09:22 -07:00
Nathan Sobo
5ca7ad3bce
Add spec for destroyed pane items getting removed at the model layer
2014-01-09 16:07:57 -07:00
Nathan Sobo
4dcba4bb27
Destroy remaining items when a pane is destroyed
2014-01-09 16:06:02 -07:00
Nathan Sobo
073ea84d69
Handle consequences of item removal in the model
2014-01-09 16:05:00 -07:00
Nathan Sobo
2317c6835e
At the model layer: Focus next pane when a focused pane is destroyed
...
This incorporates the Focusable mixin into PaneModel and ensures that
all panes in the same pane container share a single focus context.
2014-01-09 12:19:01 -07:00
Nathan Sobo
4e99d003ee
Add Focusable mixin and FocusContext
...
Focusable objects have ::focus and ::blur methods and a ::focused
property. Focusable objects can be assigned a ::focusContext, and the
::focused property will only be true for at most one object with the
same context.
2014-01-09 12:19:01 -07:00
Nathan Sobo
1a5e10c1d2
Focus the new pane when splitting
2014-01-09 12:19:01 -07:00
Nathan Sobo
f031a9706d
Support unsplitting in the model layer
2014-01-09 12:19:01 -07:00
Nathan Sobo
eb7f3ff5af
Support splitting at the model layer
...
Splitting in the view will need to be removed and mapped to splits in
the model.
2014-01-09 12:19:00 -07:00
probablycorey
99a67ca1ab
Remove focused spec
2014-01-08 16:37:57 -08:00
probablycorey
196942d126
Rename .row and .column in pane specs
2014-01-08 16:31:56 -08:00
Kevin Sawicki
d95aa0aac1
Expand buffer range in Selection::selectLine
2014-01-08 16:27:09 -08:00
Kevin Sawicki
c8f3e056e9
Pluralize selections in method name
2014-01-08 15:17:06 -08:00
Kevin Sawicki
0ef6757e65
Add Editor::splitSelectionIntoLines
2014-01-08 15:17:06 -08:00
Corey Johnson & Nathan Sobo
25c099f3a2
Serialize the items and activeItem via PaneModel
...
This necessitates setting the ::activeView based on the model's
::activeItem instead of doing it in ::showItem.
2014-01-07 17:23:29 -07:00
Kevin Sawicki
d618472f95
Specify error as first argument
2014-01-06 17:25:26 -08:00
Kevin Sawicki
a45ffb3aaa
Add async Directory::getEntries
2014-01-06 17:25:26 -08:00
Kevin Sawicki
1d2b2eec4c
Add Sync suffix to Directory::getEntries
2014-01-06 17:25:26 -08:00
Matt Colyer
e8ce559034
Merge branch 'master' into fix-windows-specs
...
Conflicts:
package.json
2014-01-06 16:02:45 -08:00
Matt Colyer
0e6bc275b7
Merge branch 'master' into fix-windows-specs
...
Conflicts:
package.json
2014-01-06 11:19:37 -08:00
Nathan Sobo
0bbd9630f5
Fix pane spec
2014-01-03 17:50:46 -07:00
Nathan Sobo
c6770aa83e
Merge remote-tracking branch 'origin/master' into ns-remove-telepath-from-core
...
Conflicts:
package.json
src/pane.coffee
2014-01-03 17:46:45 -07:00
Nathan Sobo
e26d97d5ac
Remove telepath as a core dependency
2014-01-03 17:42:11 -07:00
Corey Johnson
b2177cbc09
Merge pull request #1360 from atom/cj-add-prepend-append-methods-to-workspace
...
Add prepend/append methods to WorkspaceView
2014-01-03 16:34:16 -08:00
probablycorey
9f32a24e7e
Add all Tool Panel append and prepend methods
2014-01-03 15:43:00 -08:00
Nathan Sobo
bc65137911
Remove telepath from Project, WorkspaceView, and Pane*
2014-01-03 16:23:23 -07:00
Matt Colyer
2b4c2f1758
Merge branch 'master' into fix-windows-specs
2014-01-03 14:34:02 -08:00
Nathan Sobo
77dba8d19b
Merge branch 'master' into ns-fix-mini-editor-leak
2014-01-03 10:03:25 -07:00