-
Notifications
You must be signed in to change notification settings - Fork 8
/
TODO.txt
71 lines (51 loc) · 2.45 KB
/
TODO.txt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
11/13/24 Development
*******************
*** DIGITALKNOB ***
*******************
There are currently 2 branches that implement the DOM.
1. Javascript DOM, (located in the main and Development branches)
2. C++/Javascript DOM, (located in the CPP_DOM branch)
We need to start bridging the gap between the 2 source versions.
We may need to follow the directory structure that CPP_DOM uses for each WebApi
We may want to create a new JS_DOM branch and rename CPP_DOM to CPP_JS_DOM as well
Change javascript entry point file name from "/assets/app.js" to "/assets/main.js"
Move all github wiki into DK.Readme.md and remove all wiki
Remove github Wiki and create an example just like /DKPlugins/index.html
Create a fork of RmlUi with a javascript folder for the document object, then dom
Go over DKFile.js and alphabatize functions
Move all gui related javascript into DKGui.js
DK.js will have access to a C++ EventTarget
In fact, all C++ OOP structure will follow W3 javascript naming standards.
make a "raw key" to "w3 standard key translation".. int 43 = "KeyY" ;)
Translate all keycodes to internet w3 standards from raw code
*** DKNotepad ***
textarea steals key events from document
Get DKNotepad to listen for Ctrl + s
DKNotepadFile_Exit() breaks DK_Close()
Get Copy and Paste working
Remove save comfrimation and make a sparkle, or something
*** DKTUTORIAL ***
DK1: DKCmake build system
DK2: DK C++ w/ nothing
DK3: DK C++ w/Javascript (DKDuktape) = OM "Object Model"
DK4: DK C++ w/ javascript (DKDuktape) + DKRml = DOM "Document Object Model"
* This is how DKTestApps should be named *
If we create DKDom as a seperate RmlUi Library, poeple might chip in.
Remodel DK/Events.cpp after javascript EventTarget by creating DK/EventTarget.h/cpp
*** Javascript ***
EventTarget is lower than Window. Use that for javascript without a document context.
ALL C++ Javascript functions now require a CPP_ prefix
Proper naming would be CPP_DKPlugin_Function
DK Javascript functions are just DKPlugin_Function
*** DK.js ***
Make sure all function are prefixed with DK_
i.e. DK_Function(var)
** Eliminate DKWidget
Let continue to strip down DKWidget.js because it's all moving to DK.js, then DKWidget will be completley removed.
*** Javascript ***
replace all == with ===
replace all != with !==
*** DKDomEvent ***
* add removeEventListener everywhere neccesary
* Make EVERY event go through DKDomEventTarget.js event without a DOM
* keep track of events in DKDomEventTarget.js