155
edits
(→ScratchPad: added detail on the scratchpad) |
|||
Line 173: | Line 173: | ||
# "Public" | # "Public" | ||
scalar me.input_string, | scalar me.input_string, | ||
# "Private" | # "Private" | ||
Line 179: | Line 178: | ||
func me.plusminus(), | func me.plusminus(), | ||
func me.clear(pressedTime), | func me.clear(pressedTime), | ||
}; | }; | ||
</code> | </code> | ||
'''messages''' | |||
This vector of strings is currently not used, but it can/should hold the messages the CDU (or other systems) want to display via the scrath pad of the CDU. The messages are printed in in FIFO fashion on the scratch pad, pressing the CLR key erases the currently displayed message (and should trigger the display of the next message if one is still in the vector). | |||
This functionality has not yet been tested and is just partially integrated. | |||
'''deleteString''' | |||
This string, defaulting to <tt>DELETE</tt> is entered into the scratch pad when it is empty and the DEL key is pressed. Having this in the scratch This behavior has not yet been tested and is just partially integrated. | |||
This functionality has been tested and is working in fields that implemented the logic. | |||
'''displayScratchPad()''' | |||
This function goes along the CDU.updateDisplay() function, however, it does not refresh the whole display but just the scratch pad line. Whenever the ScratchPad.inputString is altered and the current state should be displayed before another update to the display is called, calling this function will do that. | |||
'''new(...)''' | |||
The constructor of the scratch pad. Should theoretically not be necessary to use this outside the framework, particularly a use whilst creating pages (i.e. content) should not be necessary. | |||
'''inputString''' | |||
The string holding the current content of the scratch pad. | |||
'''plusminus()''' and '''pm_trigger''' | |||
A function beeing used when the "+/-" key is pressed. The function keeps track of the current state via <tt>pm_trigger</tt>. | |||
'''clear()''' | |||
This function is bound to the CLR key and erases the last character on the scratchpad (if CLR is presesd less than 1 s) or the whole scratch pad (if CLR is pressed longer than 1 s). | |||
== ListenerCollection == | == ListenerCollection == |
edits