21
edits
Changes
→Add methods
=====Add methods=====
the '''IO_Form''' must be able to add the several IO_Field classes to itself , one at a time and then provide the user, the means of editing them in order they were added. '''IO_Form''' uses this private add method to provide means of adding fields through several public add methods. this method adds an IO_Field to the end of the IO_Fields in the IO_Form;
<big><pre>
int add(IO_Field* f, bool dynamic, bool submitter);
</pre></big>
'''IO_Form''' uses this private '''add''' method to provide means of adding fields through several public add methods. this method adds an IO_Field to the end of the IO_Fields in the IO_Form; *'''f''': is the address of the IO_Field begin added to the IO_Form*'''dynamic''': if set to true, it sets this IO_Field to be deallocated by IO_Form's destructor at the end;*'''submitter''': if set to true, it tags this IO_Field to terminate the IO_Form's edit() if ENTER_KEY is hit. see the edit() method for more info.
</pre></big>
Uses the private add() method to add a dynamaic IO_field.
<hr width="50%" />
<big><pre>
int add(IO_Field& f, bool submitter = false);
</pre></big>
Uses the private add() method to add a non-dynamaic IO_field.
<hr width="50%" />
<big><pre>
int addHelp(IO_Label* L);
</pre></big>
Uses the private add() method to add a dynamaic IO_field and also saves its address for the general help message label of the Form.
<hr width="50%" />
<big><pre>
int addHelp(IO_Label& L);
</pre></big>
Uses the private add() method to add a non-dynamaic IO_field and also saves its address for the general help message label of the Form.
<hr width="50%" />
<big><pre>
int addError(IO_Label* L);
</pre></big>
Uses the private add() method to add a dynamaic IO_field and also saves its address for the general error message label of the Form.
<hr width="50%" />
<big><pre>
int addError(IO_Label& L);
</pre></big>
Uses the private add() method to add a dynamaic IO_field and also saves its address for the general error message label of the Form.
<hr width="50%" />
--- incomplete ----