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


next up previous contents index
Next: componenteditor - Constructor Up: componenteditor - Tool Previous: Spectrum

Actions

There are two buttons at the bottom of the componenteditor which provide quick access to common operations. To the left is the ``Undo'' button and to the right is the ``Dismiss'' button.

The ``Dismiss'' button makes the component editor window go away. Use this button when you have finished making your changes. Note that the componenteditor tool has not gone away, just its GUI elements. In particular you can still access the (possibly edited) component it contains using the tool functions described below.

The ``Undo'' button will replace the currently displayed component with the one the component editor was started with1.4. The undo button is disabled if the editor knows that the currently displayed component is identical with its initialised one. If the undo button is enabled then the editor believes that the component has been modified. This may not always be correct as the editor does not compare numbers to determine if a component has been modified, it only determines if you had the potential to modify the component.



Example
include 'componenteditor.g'
ce := componenteditor();
ce.gui();
# After some pointing and clicking in the GUI
mycomponent := ce.get();
ce.done();

In this example I show how to use the componenteditor GUI as a separate tool that is not invoked by the componentlist tool or the componentlist GUI. The first line is the obligatory include line. The second constructs the tool. It initialises itself with a default component but does not start up the GUI until the the third line. I assume the user clicked on the dismiss button to get rid of the GUI window. The edited component is extracted from the componenteditor tool using the get tool function. All the memory used by the componenteditor is released in the last step. At this point the tool no longer exists.


next up previous contents index
Next: componenteditor - Constructor Up: componenteditor - Tool Previous: Spectrum   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