Open main menu

CDOT Wiki β

Changes

Console UI Core Classes - OOP344 20113

88 bytes added, 09:11, 23 November 2011
To Do
* CMenu
===To Do===
* # Before starting CText:*#: Modify '''Console::edit(char *str....)''' and add two argument to the argument list; ''IsTextEditor'', ''ReadOnly'':*#: ''int Console::edit(char *str, int row, int col, int fieldLength, int maxStrLength, bool* insertMode, int* strOffset, int* curPosition,'' '''bool IsTextEditor = false, bool ReadOnly = false''''')''*#:* '''IsTextEditor''': If IsTextEditor is true, then if offset is modified, stop editing and terminate the function returning the last key entered by the user. The easiest way to accomplish this, is as follows:*#:*# Save the value of the '''offset''' in a local variable at the very beginning of the main processing loop in the '''edit()''' function.*#:*# At the very end of the processing loop, If '''IsTextEditor''' is true, then compare the saved value with the value of offset. If the values are different, then set the termination flag (done) to true.
* # Before starting CCheckList:*#: Add the following methods to the CCheckMark class*#:* bool radio(); *#:* void radio(bool isRadio); *#:* operator bool();*#:: (see [[#CCheckMark|CCheckMark]] description)# Divide and assign tasks.# Branch and Create Mock-ups for the classes# Start coding.
===Due Dates===