Commit Graph

71 Commits

Author SHA1 Message Date
Corey Johnson & Nathan Sobo
35e4b0e969 Incorporate Editor into templating framework. 2011-12-29 13:12:13 -06:00
Corey Johnson & Nathan Sobo
0285c3d94d Builder.subview wires an outlet directly, rather than assigning an outlet property. 2011-12-29 13:10:44 -06:00
Corey Johnson & Nathan Sobo
b25fc80c9a Template.subview expects a view instance instead of a template and params hash. 2011-12-29 12:17:52 -06:00
Corey Johnson & Nathan Sobo
8455507566 Use _.uniqueId to generate temporary subview divs. 2011-12-29 11:58:59 -06:00
Corey Johnson & Nathan Sobo
79ead1fefb Add Builder.subview / Template.subview 2011-12-29 11:43:14 -06:00
Corey Johnson & Nathan Sobo
c6d90748f7 Meta-t adds file finder to bottom of layout. 2011-12-28 16:30:08 -06:00
Corey Johnson & Nathan Sobo
cc2b28451c Add Template.toHtml 2011-12-28 16:29:40 -06:00
Corey Johnson & Nathan Sobo
3869193d33 Fix html builder bug: functions are considered objects, causing attributes to get clobbered. 2011-12-28 16:29:30 -06:00
Nathan Sobo
0fe85355f8 Merge branch 'view' 2011-12-28 14:22:12 -06:00
Nathan Sobo
eeb20673b3 Pass the event and element to event-handling methods on the view. 2011-12-27 19:13:54 -06:00
Nathan Sobo
ba18614c2f Bind DOM events to view methods based on element attributes.
For example, if you give an element the attribute click: 'elementClicked', the template will bind a click event to that element which calls the elementClicked method on the view.
2011-12-27 19:00:00 -06:00
Nathan Sobo
7948543a5b Template extends view with @viewProperties and calls initialize with attributes passed to build. 2011-12-27 18:36:54 -06:00
Corey Johnson
a0fc994dcb addMenuItem can take a key pattern and set it as the key equivalent. 2011-12-27 16:30:48 -08:00
Nathan Sobo
08c1d33836 Switch Template to use builder. Wire outlets in Template. 2011-12-27 18:21:00 -06:00
Nathan Sobo
43ddb6b16a Builder.toFragment creates outlet references on the fragment. 2011-12-27 17:43:05 -06:00
Nathan Sobo
bd79d9cd5d Builder correctly generates void (self-closing) tags. 2011-12-27 16:43:28 -06:00
Nathan Sobo
21fb88141e Builder can generate tags with attributes. 2011-12-27 16:16:35 -06:00
Nathan Sobo
b5a06c288e Tags can take textual content. 2011-12-27 16:05:01 -06:00
Nathan Sobo
e570c5d454 Tags can take a function for their content. 2011-12-27 15:57:29 -06:00
Nathan Sobo
22167faf28 Add template/Builder. It generates basic tags. 2011-12-27 15:50:39 -06:00
Nathan Sobo
a48a1b24f4 Don't add the same menu item more than once. 2011-12-26 23:33:05 -06:00
Nathan Sobo
a010c8e3c6 Add window.bindMenuItem, which adds a menu item that invokes a given function.
Every menu item is created with a path (File > Save). The functions are stored in a hash from (menu item path -> action) on the window. When an AtomMenuItem is selected, it looks up the action on the current window based on its path.
2011-12-26 13:12:27 -06:00
Nathan Sobo
00bccdca96 Add partial implementation Native.addMenuItem.
It takes a path like "Menu 1 > Menu 2 > Item", and builds a series of submenus if needed along that path, then adds the final item at its terminus. Specs still need to be fleshed out further.
2011-12-23 16:45:04 -06:00
Nathan Sobo
ae4fdf8812 Add Native.resetMainMenu and call it in global afterEach
This method removes any AtomMenuItems that aren't marked as 'global'. It ignores menu items that aren't instances of our custom subclass. This is needed by specs to clear any menu items added during tests. It will also be needed when a window loses focus and we want to remove any non-global menus associated with the window.
2011-12-23 12:43:32 -06:00
Corey Johnson
d0ed5992ca 'meta-o' presents open dialog. 2011-12-20 10:41:31 -08:00
Corey Johnson
c679df770b CoffeeScript compiler is slow. Take steps to avoid it. 2011-12-19 14:56:11 -08:00
Nathan Sobo
7dcb00f0ec When saving buffer with no url, pop up 'save as' dialog.
Remove a lot of old code.
2011-12-16 16:31:02 -08:00
Corey Johnson & Nathan Sobo
a07daf26ca Add Buffer.save 2011-12-15 15:59:32 -08:00
Corey Johnson & Nathan Sobo
ef774cb529 Coffeescript compile errors show file name. 2011-12-15 14:10:06 -08:00
Corey Johnson & Nathan Sobo
3aa46dbb6c Ensures line numbers match up with required javascript. 2011-12-15 10:38:27 -08:00
Corey Johnson
fbb3efacf4 wii - gettings specs on App.open. Window closing not working quite right. 2011-12-14 16:24:30 -08:00
Corey Johnson
6ce5d32d83 Render the initial window layout programmatically with a template.
Remove layout html from the bootstrap page. Now the same page can be used for specs and the editor windows.
2011-12-14 11:26:14 -08:00
Corey Johnson
3d22a691f6 Doesn't crash on empty key bindings. 2011-12-14 09:46:27 -08:00
Corey Johnson & Nathan Sobo
607149a07d Half-baked template experiment 2011-12-12 16:24:55 -08:00
Corey Johnson & Nathan Sobo
0dd6df1ab6 Empty test suite runs when you hit ctr-alt-cmd-s 2011-12-12 15:05:59 -08:00
Corey Johnson
6ea1766945 Nearly pure JS storage. 2011-11-29 15:22:59 -05:00
Corey Johnson
1c985bd899 Give JS access to the project dir so we can automate that shit. 2011-11-29 15:22:14 -05:00
Chris Wanstrath
4adf3b31d4 whitespace 💄 2011-11-25 23:25:56 -08:00
Chris Wanstrath
d50a29ffa9 ChildProcess.exec (with passing tests) 2011-11-25 21:49:31 -08:00
Chris Wanstrath
0c88c38101 💄 2011-11-25 21:09:09 -08:00
Chris Wanstrath
15005657bf 💄 2011-11-25 19:20:10 -08:00
Chris Wanstrath
6167637dd7 typo 2011-11-25 19:19:17 -08:00
Chris Wanstrath
c4746047cc move ~/.atomicity stuff into "dotatom" extension 2011-11-25 18:18:16 -08:00
Corey Johnson
d01926885d Some comments 2011-11-23 14:46:32 -05:00
Corey Johnson
90995ba0b2 Settings grab data from ~/.atomocity/settings.coffee 2011-11-23 14:42:38 -05:00
Corey Johnson
c76119020a Better error message 2011-11-23 14:34:14 -05:00
Corey Johnson
f97eeb6e5d key-bindings that do not load get a warning 2011-11-23 11:27:55 -05:00
Chris Wanstrath
e9bbc37547 automatically load extension/key-bindings.coffee 2011-11-21 22:11:11 -08:00
Corey Johnson
cd2fbb0ca7 Blarg, OSX key codesare not the same as web keycodes. 2011-11-14 17:48:34 -08:00
Chris Wanstrath
85656a26fd add 'path' to stdlib. bad? not in commonjs but in node.js 2011-11-13 20:13:52 -08:00