Getting Started Documentation Glish Learn More Programming Contact Us
Version 1.9 Build 1556
News FAQ
Search Home


next up previous contents index
Next: clipboard - Constructor Up: tasking - Module Previous: inputsmanager.save - Function


clipboard - Tool



Package utility
Module tasking


Postscript file available

clipboard object


Description
clipboard is a simple tool for saving and restoring glish variables. It's mainly of use for interacting with GUIs. Values can be copied to and from entry widgets. For example, to transfer a direction measure from the measures direction GUI to an entry in a tool, first use the Copy button on the direction GUI to place the value in the clipboard, and then use the Paste button in the Wrench menu of the direction entry to copy it into the entry.

A paste into the Glish CLI can be performed using the paste function. Similarly a copy from the Glish CLI can be done using the copy. For example, to multiply the value in the clipboard by the $ \sqrt{2}$, do:

include 'clipboard.g'
a: = dcb.paste()
a *:= sqrt(2.0)
dcb.copy(a);

This clipboard can only contain one value at a time, so you must copy and then paste one value at a time. Note that any glish variable can be placed in the clipboard. In the future, we may develop multiple entry clipboards if these are thought to be useful.




next up previous contents index
Next: clipboard - Constructor Up: tasking - Module Previous: inputsmanager.save - Function   Contents   Index
Please send questions or comments about AIPS++ to aips2-request@nrao.edu.
Copyright © 1995-2000 Associated Universities Inc., Washington, D.C.

Return to AIPS++ Home Page
2006-10-15