49 Commits

Author SHA1 Message Date
Max Brunsfeld
8a6915e7a6 Pass application delegate to PaneElement 2015-10-21 10:57:56 -07:00
Antonio Scandurra
fa06124bb2 Don't use atom globals in PaneElement 2015-10-07 15:25:01 -05:00
Nathan Sobo
e0d426b817 Register deserializers, view providers, and commands in Atom constructor
Previously, these registrations were scattered all over the codebase and
required that `global.atom` be defined, which creating weird ordering
issues. Registering them all from the global makes the relationships
clearer and means we don’t have to assign a global to set up a fully-
functional environment.
2015-10-07 15:24:52 -05:00
Nathan Sobo
14e4e46b17 🔥 Remove grim require from PaneElement 2015-09-22 10:37:08 -06:00
Nathan Sobo
938a8e5230 Remove unused require 2015-09-18 20:48:47 -06:00
Nathan Sobo
e343125486 Drop attach/remove hook support for legacy SpacePen views 2015-09-18 20:48:46 -06:00
Nathan Sobo
4c73395608 Remove PaneContainerView and PaneView SpacePen shims 2015-09-18 20:48:45 -06:00
Kevin Sawicki
83b99ef962 Move size adjusting to model 2015-08-13 06:54:51 -07:00
Kevin Sawicki
388d716028 pane:enlarge/shrink -> pane:increase-size/decrease-size 2015-08-13 06:54:51 -07:00
liuxiong332
b4109715df add command enlarge and shrink 2015-08-13 06:54:51 -07:00
Ben Ogle
3817423b5f Remove duplicate pane:move-item-* command handlers
Closes #8300
2015-08-10 16:29:12 -07:00
Ben Ogle
6c63e829d8 Move pane item move commands to atom-workspace
This allows pane movement to work in find and replace, the 
tree view, etc.
2015-08-04 11:54:19 -07:00
Kevin Sawicki
1602b8cf45 👕 remove some coffee lint 2015-04-15 14:01:49 -07:00
Max Brunsfeld
632c57d7b4 Merge pull request #5902 from liuxiong332/pane-resize
add  implementation for resizable panes, just solve the issue #274
2015-04-15 13:31:33 -07:00
Kevin Sawicki
9a0c3f94a9 Remove path data attributes when no active item 2015-04-15 10:32:22 -07:00
Kevin Sawicki
476cf4152c 🎨 2015-04-15 10:24:51 -07:00
Machiste Quintana
7b02720d06 🎨 Finish rename 2015-04-15 13:16:31 -04:00
Machiste Quintana
8d0168a520 🎨 2015-04-15 13:12:38 -04:00
liuxiong332
86a004dc8c add observer to watch flex scale change event in pane-element.coffee 2015-04-15 12:44:13 +08:00
liuxiong332
e46d3b0d27 Merge remote-tracking branch 'origin' into pane-resize
Conflicts:
	src/pane-element.coffee
	src/pane.coffee
2015-04-15 10:09:41 +08:00
Machiste Quintana
2b43f7d163 Add active path and file name to atom-pane 2015-04-14 20:52:26 -04:00
Machiste Quintana
06c7ed98f9 🎨 Refactor class add 2015-04-14 20:20:39 -04:00
Machiste Quintana
078c6a80cf Add .has-file-path if active buffer has a file path 2015-04-14 18:35:32 -04:00
Kevin Sawicki
7d592c8b78 includeDeprecations -> includeDeprecatedAPIs 2015-04-03 11:29:16 -07:00
Kevin Sawicki
0c06c69cd9 Check deprecations flag for space pen shim inclusion 2015-04-03 11:29:14 -07:00
liuxiong332
c05a410d11 add serialization for pane's flex scale when resize the pane 2015-03-17 15:35:16 +08:00
liuxiong332
71a279745c invalidate document's drag and drop event to prevent the browser's default open url link. add listener for pane's drop event to open dragged files. 2015-03-09 21:50:17 +08:00
Max Brunsfeld
e4bcb96dcc Change ::setModel to ::initialize on all element classes 2014-12-01 17:52:19 -08:00
Nathan Sobo
4591f00a65 Remove view registry references from the workspace model layer
Removed various ::getView methods from the model. Using the atom.views
global in the views for now, but going to switch them over to using a
locally assigned view registry instead in a subsequent commit.
2014-12-01 16:28:33 -08:00
Nathan Sobo
ffbcddf063 Always focus pane element when pane model is activated
Signed-off-by: Max Brunsfeld <maxbrunsfeld@gmail.com>
2014-11-26 18:25:55 -07:00
Nathan Sobo
616a94a10e Only SpacePen callRemoveHooks on removed pane item view if destroyed 2014-11-20 11:12:50 -07:00
Ben Ogle
6159209d49 moveItemTo* -> moveItem* 2014-11-10 13:28:15 -08:00
Ardeshir Javaherchi
ff80545285 🐧 Add keymap implementation to reorder tabs in linux 2014-11-10 11:25:16 -08:00
Nathan Sobo
aa46e3d26f Add atom-pane commands via atom.commands again 2014-11-10 10:10:52 -07:00
Nathan Sobo
bad0504e1d Attach active pane item view before showing/hiding
Fixes #4112
2014-11-10 10:06:12 -07:00
Nathan Sobo
efd3329c50 Prompt to save modified items when closing a pane via pane:close
Fixes #4094
2014-11-10 07:55:37 -07:00
Nathan Sobo
c4cfac5615 Use event capture for pane focus/blur events
Focusin/focusout don’t seem to bubble properly across shadow DOM
boundaries, so capturing is a more reliable alternative.
2014-11-04 16:37:24 -07:00
Nathan Sobo
ea8a3a78da Don’t hide pane items that are already hidden 2014-10-28 11:23:35 -06:00
Nathan Sobo
ee9284e228 Use ‘atom-pane’ custom tag name for PaneElement 2014-10-09 07:39:13 -07:00
Nathan Sobo
481c99d852 Use native DOM APIs to remove pane item views 2014-10-07 13:01:56 -06:00
Nathan Sobo
2e6b1cf902 Attach, show and hide pane item views with native DOM APIs
We continue to invoke SpacePen attach hooks on any shim wrappers
for backward compatibility, but SpacePen wrappers are no longer required
for attoch/hide/show as they were previously. Next: removal.
2014-10-07 12:59:12 -06:00
Nathan Sobo
34bd103c3d Move remaining workspace commands back to $::command temporarily 2014-10-06 13:19:47 -06:00
Nathan Sobo
d7efa9bb37 Add PaneElement::attached to prevent shape change 2014-10-03 17:51:44 -06:00
Kevin Sawicki
a807619906 Only call show on active item when attached
Closes atom/settings-view#258
2014-10-03 15:23:21 -07:00
Nathan Sobo
60a551b308 Only dispose PaneElement subscriptions when pane is destroyed
Not when the element is detached, because it might be reattached.
2014-09-24 15:28:34 -06:00
Nathan Sobo
da87f321e8 Add PaneAxisElement 2014-09-24 15:28:34 -06:00
Nathan Sobo
de29ca6906 Keep existing PaneView SpacePen API working as before
We will eventually deprecate all access to views via
`atom.workspaceView`, which is the only way to get a reference to
instances of PaneView. Draining the swamp!
2014-09-24 15:28:33 -06:00
Nathan Sobo
4ba3162f3e Handle pane commands on PaneElement via command registry 2014-09-24 15:28:33 -06:00
Nathan Sobo
2710c06313 WIP: First stab at custom element for panes
Still need to create a SpacePen shim for access via `atom.workspaceView`
property so we’re backward compatible with packages, but it basically
works.
2014-09-24 15:28:33 -06:00