Changes

Jump to: navigation, search

OOP344 Assignment Two

468 bytes added, 12:10, 7 November 2009
IO_CheckList
*CheckBox mode; where the selection is inclusive and many selections can be done at the same time.
Checklist is created as follows:
''Note that IO_CheckList is always framed...''
===Constuctor===Checklist is created as follows:
<big><pre>
IO_CheckList(CheckListMode mode, int row, int col,
*'''format''' is a 3 char string that holds the shape of a checked option(i.e. "[X]" or "<@>"),if the format is zero, then depending of the value of '''mode''' being '''Radio''' or '''CheckBox''', frame will be defaulted to '''_RADIOLIST_CHARS''' or '''_CHECKLIST_CHARS''' respectively.
*'''frameChars''' is a string with the characters building the frame.
===Public Methods===<big><pre>void display()const;</pre></big><big><pre>int edit(void);</pre></big><big><pre>int selectedIndex(void);</pre></big><big><pre>void selectedIndex(int);</pre></big><big><pre>bool editable()const;</pre></big><big><pre>void set(const void *status);</pre></big><big><pre>void set(int index);</pre></big><big><pre>bool operator[](unsigned int index);</pre></big><big><pre>int length(void);</pre></big>
---incomplete---

Navigation menu