Commit Graph

67 Commits

Author SHA1 Message Date
Kevin Sawicki
662262ab82 Use deep clone for load settings
The new initialSize load setting has a nested object which should be
cloned as well.
2013-10-09 09:25:53 -07:00
Kevin Sawicki
349ba86b92 Create new windows with same size as focused window 2013-10-09 09:25:53 -07:00
Kevin Sawicki
d93633a837 Maximize window by default
Use the available height and width as the default window size
when no window state exists for the dimensions.
2013-10-09 09:25:53 -07:00
Matt Colyer
33cf5dda15 Merge branch 'master' into menu-api
Conflicts:
	src/atom.coffee
	src/config.coffee
2013-10-08 15:49:55 -07:00
Kevin Sawicki
e95e8a22c3 💄 Remove extra newline 2013-10-07 16:12:00 -07:00
Kevin Sawicki
0033c9659f 💉 directory dependencies into Config 2013-10-07 16:12:00 -07:00
Kevin Sawicki
87bfcf5683 💉 dependencies into AtomPackage
Removes use of resourcePath and config globals
2013-10-07 16:11:59 -07:00
Matt Colyer
1deba49722 Move Keymap init above MenuManager init 2013-10-04 14:38:43 -07:00
Kevin Sawicki
80a9cebbef Don't parse empty strings as JSON
windowState can be an empty string which should not be attempted to be
parsed.
2013-10-04 13:01:44 -07:00
Matt Colyer
32101c57bf Load core menus from a file 2013-10-04 12:28:19 -07:00
Matt Colyer
d8e857efc9 Create MenuManager class
A minimal implementation that takes over the responsiblities of managing
the application menu within the render process.
2013-10-04 11:33:28 -07:00
Kevin Sawicki
e4b55c4210 🐎 Only reload active package stylesheets
Previously all package stylesheets were loaded twice during startup,
once when the themes were loaded and once when the packages were
activated.
2013-10-02 18:49:26 -07:00
Kevin Sawicki
ca137974c9 Store site on atom global 2013-10-02 15:23:06 -07:00
Kevin Sawicki
5aa83163ad Memoize load settings and return a clone
Calling this method actual eats up a lot of spec time since
it does an ipc channel sync call.
2013-10-02 14:09:30 -07:00
Kevin Sawicki
a85817369e Add shim for packages accessing atom.packageStates 2013-10-02 13:40:35 -07:00
Kevin Sawicki
333c5a0db2 Add requireWithGlobals() to atom global 2013-10-02 13:40:35 -07:00
Kevin Sawicki
068a10b2db Extract deserializer management into class 2013-10-02 13:40:34 -07:00
Kevin Sawicki
cad2c9c7af 📝 Mention centering behavior 2013-10-02 13:40:34 -07:00
Kevin Sawicki
1d7861677a 📝 doc dimension getter/setter 2013-10-02 13:40:34 -07:00
Kevin Sawicki
ebe1598a71 Correctly passthrough call to deactivatePackages 2013-10-02 13:40:34 -07:00
Kevin Sawicki
c3e462db00 Use subscribe instead of on 2013-10-02 13:40:34 -07:00
Kevin Sawicki
52ef2db198 Separate construction vs. initialization 2013-10-02 13:40:34 -07:00
Kevin Sawicki
e2d727f838 Move Syntax global to Atom class 2013-10-02 13:40:33 -07:00
Kevin Sawicki
5c4a8f55c8 Add deserializeEditorWindow to Atom class 2013-10-02 13:40:33 -07:00
Kevin Sawicki
4be4868959 Move dimension helpers from window to Atom class 2013-10-02 13:40:33 -07:00
Kevin Sawicki
62278d9137 Create config, pasteboard, and keymap in Atom 2013-10-02 13:40:33 -07:00
Kevin Sawicki
8660a46fac 📝 Mark Atom class as public 2013-10-02 13:40:33 -07:00
Kevin Sawicki
3f5875e5db 💄 Add getCurrentWindow() helper 2013-10-02 13:40:33 -07:00
Kevin Sawicki
7f4ccf6a42 Export an Atom class from atom.coffee 2013-10-02 13:40:33 -07:00
Kevin Sawicki
44d6bf9bf0 Call getLoadPackages() instead of referencing ivar 2013-10-02 13:40:33 -07:00
Kevin Sawicki
fc3dcd9749 Add PackageManager class accessible from atom.packages 2013-10-02 13:40:33 -07:00
Kevin Sawicki
c808630ba1 Move all stylesheet globals to ThemeManager 2013-10-02 13:40:32 -07:00
Kevin Sawicki
b120109cbf Expose shell.beep() through atom global 2013-09-29 22:08:45 -07:00
Kevin Sawicki
a433f5eb61 Use current window by default in atom.confirmSync
Closes atom/tree-view#7
2013-09-27 12:10:36 -07:00
Nathan Sobo
33a7c86646 Upgrade telepath to v0.5.1
This version of telepath provides telepath.Model, document-based
property resolution, and relational operators.
2013-09-25 14:06:10 -06:00
Kevin Sawicki
9222f158b5 Measure load/activate time in package classes 2013-09-24 21:31:48 -07:00
Kevin Sawicki
4c2df6e291 📝 Tweak wording in require comment 2013-09-23 16:07:18 -07:00
Kevin Sawicki
461a271526 Prime require cache with atom exports 2013-09-23 16:07:18 -07:00
Kevin Sawicki
906ed61ec6 Record activation and load time for each package 2013-09-22 13:59:18 -07:00
Matt Colyer
25e49550cb Merge branch 'master' into context-menu
Conflicts:
	src/atom.coffee
2013-09-20 13:31:45 -07:00
Kevin Sawicki
d11742e178 Use relative require path to package class 2013-09-20 10:02:21 -07:00
Kevin Sawicki
41fc4f7fe6 Use relative require paths in src/ files 2013-09-20 10:02:20 -07:00
Kevin Sawicki
e9db2cfe17 Remove vendor prefix from bootstrap path 2013-09-20 10:02:19 -07:00
Kevin Sawicki
7e6ee6cc0c Use relative require paths to stylesheets 2013-09-20 10:02:18 -07:00
Matt Colyer
c39ced381d Implement declarative context menu loading 2013-09-19 14:21:31 -07:00
Matt Colyer
2f419a639c s/ContextMenuMap/ContextMenu/g 2013-09-17 14:34:05 -07:00
Matt Colyer
9e11f5a737 Add ContextMenuMap and use it to create the context menu 2013-09-16 17:38:41 -07:00
Kevin Sawicki
9ea1ad7ce9 Use resolvable path to bootstrap stylesheet 2013-09-16 16:31:51 -07:00
Kevin Sawicki
bb479f47d9 Put vendor/bootstrap/less instead of vendor/ on less search path 2013-09-16 16:16:05 -07:00
Matt Colyer
b1675714e6 Load themes after packages, since we depend on them 2013-09-13 12:13:32 -07:00