Changes

Jump to: navigation, search

Console Framework Classes 20103 - OOP344

1,011 bytes added, 10:46, 14 November 2010
Methods
int add(FWField* field, bool dynamic = true);
</pre></big>
Adds the '''FWField''' pointed by '''field''' to the Fields of the Dialog; by appending the value of the field pointer to the _fld array , setting the corresponding _dyn element to the value of dynamic argument and then increasing _fnum by one and returning it.
 
<big><pre>
int add(FWField& field, bool dynamic = false);
</pre></big>
Makes a direct call to the previous add() method, passing the address of the '''field''' argument and the value of the '''dynamic''' argument and returning what it returns.
<big><pre>
FWDialog& operator<<(FWField* field);
</pre></big>
Makes a direct call the first '''add()''' method returning a reference of the owner (the FWDialog);
<big><pre>
FWDialog& operator<<(FWField& field);
</pre></big>
Makes a direct call the second '''add()''' method returning a reference of the owner (the FWDialog);
<big><pre>
bool editable();
</pre></big>
If at least one editable field exist in the Dialog, it returns true, otherwise, it returns false;
 
<big><pre>
int fieldNum()const;
</pre></big>
Returns number of fields added to the Dialog.
 
<big><pre>
int curIndex()const;
</pre></big>
Returns the index of the Field that was just being edited.
<big><pre>
FWField& operator[](unsigned int index);
</pre></big>
Returns the reference of the Field with incoming index. (Note that here, the first field index is '''0''')
<big><pre>
FWField& curField();
</pre></big>
Returns the reference of the Field that was just being edited.
===Dialog and Label Tester===

Navigation menu