class EditElement



EditElement is used to add or modify existing ElementNode entries within mainElements. It is called by MINDPrefsUI.



Screenshots

EditElement dialog


Constructors

EditElement( ElementNode*, MINDPrefsUI* )
Creates an instance of the class without opening the window. The ElementNode* parameter is the actual ElementNode to modify, while the MINDPrefsUI* parameter allows us to update the MINDPrefsUI window if information is changed. If NULL is passed as the node pointer, a new node is created.

Functionality

public void show()
Calls FLTK functions to actually open the window.
public void hide()
Calls close(0).
public void close( int save )
Closes the open window and optionally saves changes to the ElementNode entry we're modifying by specifying 1 as a parameter.

Private Members

Fl_Input tagInput
Allows user to input a DCM_TAG in decimal notation. This is stored in the ElementNode class.
Fl_Input descInput
Allows user to input a description that will be used instead of the default DCM description tags (often cryptic). This is stored in the ElementNode class.
Fl_Round_Button patientButton
If selected, will indicate to set pane to 0.
Fl_Round_Button studyButton
If selected, will indicate to set pane to 1.
Fl_Button okButton
Calls quit(1).
Fl_Button cancelButton
Calls quit(0).
ElementNode* node
Pointer to the node we're editing.
MINDPrefsUI* mprefs
Pointer to the MINDPrefsUI class that called us. This allows us to update the pane within the Preferences window when changes are made.
int add
add = 1 implies that the element we are editing was created by the EditElement constructor and should be destroyed if quit(0) is called.