From 9cd0cf50616a47f600a62de39c033c8e9d4d7a37 Mon Sep 17 00:00:00 2001 From: Corey Johnson Date: Tue, 27 Sep 2011 15:27:16 -0700 Subject: [PATCH] added class layout --- docs/api.coffee | 65 ++++++++++++++++++++++++++----------------------- 1 file changed, 35 insertions(+), 30 deletions(-) diff --git a/docs/api.coffee b/docs/api.coffee index 3154fd01f..3a088a767 100644 --- a/docs/api.coffee +++ b/docs/api.coffee @@ -1,38 +1,43 @@ # API Ideas - -# -# Chrome -# - -# View hierarchy -# -# App: has many Windows -# Window: has many Plugins, contains a Document model -# Plugin: could have a Pane, or be headless -# Pane: has 0 or more Panes -# -# Model hieerarcy -# -# Document: holds all the data! - -App = - windows: [] - activeWindow: null - -class Window +# Radfish +class Radfish plugins: [] - document: null - activePane: null + keybindings: {} + +class View = + app: null + + html: -> + # gets or creates the html for the view -class Pane - panes: [] - window: null - activeSubPane: null +class Pane extends View -class Document - window: null +class Modal extends View class Plugin - window: null + app: null +# Atomicity +class App extends Radfish + baseURL: null + openURLs: [] + + startup: (@baseURL) -> + + shutdown: -> + + open: (path...) -> + + close: (paths...) -> + + save: (paths...) -> + +class Editor + app: null + +class TreeView + app: null + +class Tabs + app: null \ No newline at end of file