OOP344 - Success Project Dev Complex IO Functions

From CDOT Wiki
Revision as of 23:35, 23 June 2010 by Mjschranz (talk | contribs) (Added info for Complex IO Functions Project Dev)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

Complex Functions

AS2 Complex Functions Complete. Fardad has been sent the email acknowledging such, with subject "oop344 - iof 0.2 release".

int iof_edit() Special Key switch cases
Status - Complete
Keys Member Responsible Status
BACKSPACE_KEY jquan4 Completed
LEFT_KEY jquan4 completed
RIGHT_KEY jquan4 completed
HOME_KEY apliats Completed
DEL_KEY apliats Completed
END_KEY mjschranz Completed
TAB_KEY apliats Completed
ESCAPE_KEY ibalzamova Completed
INSERT_KEY jquan4 completed
ENTER_KEY jquan4 completed
UP_KEY jquan4 completed
DOWN_KEY jquan4 completed
PGUP_KEY jquan4 completed
PGDN_KEY jquan4 completed
F1_KEY To F12_KEY jquan4 completed
Overstrike mode jquan4 completed
insert mode jquan4 completed
initial corrections jquan4 completed


platform tests
Status - 4/4 Complete
Platforms Member Responsible Status
VCC jquan4 completed pass all tests
BCC jquan4 completed pass all tests
MAC mjschranz Completed - Passes all tests.
LNX apliats Completed - Passes all tests.
other complex functions
Status - Complete
functions Member Responsible Status
void iof_display() ibalzamova Completed
void iof_displayflag() mjschranz Completed
int iof_flag() mjschranz Completed
void iof_displayMenuItem() ibalzamova Completed
int iof_menuItem() apliats Completed


Bugs
Problem description, suggestions, guesses etc. Date discovered Discovered by Fixed by Date fixed
Revision 74 was not in compile state because datalen was already defined at the top of iof.c 06/21/2010 jquan4 jquan4 06/21/2010
I put in a trunk test main and tried to run it. Our code didn't pass test#6. I was able to check and uncheck box but wasn't able to move to the next check box using the right key Jun21 23:30 apliats mjschranz 06/22/2010
Test 8 currently has errors. Can't move up or down in the menu and it's not responsive to the space key to select each one. 06/22/2010 mjschranz mjschranz 06/22/2010
Test 9.4 is currently failing. Following message is returned from iofmain.c: iof_edit() was supposed to have the following values but it doesn't: insert is 1, but should be 0. My guess is it has something to do with insertmode perhaps when the INSERT_KEY is being hit, as that is what it is testing. Test 9.4: iof_edit() toggling insert: The insert is set to 1, hit insert key once and then hit ENTER only to test! 06/22/2010 mjschranz mjschranz 06/22/2010
Test 9.9 is currently failing. END_KEY is not functioning properly. Hurray!

iof_edit() was supposed to have the following values but it doesn't:

      curpos is 19, but should be 15
      offset is 5, but should be 10


06/22/2010 mjschranz mjschranz 06/23/2010
Test 9.22 is currently failing. -

iof_edit() does not have correct value for its data:

Shoule be:ABCDEFGHINOPQRSTUVWXYZabcdefghijklmnopqrs

Value is:ABCDEFGHIJNOPQRSTUVWXYZabcdefghijklmnopqrs

jquan4 solution: The solution to this error was that backspace was not changing offset in order to get the forth and remove it.It is now fixed in revision 86


06/23/2010 mjschranz jquan4 06/23/2010
Test 9.23 is currently failing as well. It tests for what values are based on when IsTextEditor is 0 and ESCAPE_KEY is hit. Comment out #defines in iofmain.c if you want to test this one directly.

mjschranz solution: Basically, after reading the instructions a little bit more clearly for ESCAPE_KEY and IsTextEdior being 0 I figured it out. We currently were restoring the string to the previous incarnation of it with the backup, but we had no backup for the offset and curpos values. All I did was make two integer variables for them and then assigned *offset and *curpos to them whenever ESCAPE_KEY was hit and IsTextEditor was 0. Fixed in revision 87.

06/23/2010 mjschranz mjschranz 06/23/2010