comparison dwtx/ui/forms/widgets/FormText.d @ 192:c3583c6ec027

Added missing default cases for switch statements
author Frank Benoit <benoit@tionex.de>
date Mon, 03 Nov 2008 22:52:26 +0100
parents 04b47443bb01
children
comparison
equal deleted inserted replaced
191:1ef729510ed6 192:c3583c6ec027
395 case DWT.TRAVERSE_PAGE_PREVIOUS: 395 case DWT.TRAVERSE_PAGE_PREVIOUS:
396 case DWT.TRAVERSE_ARROW_NEXT: 396 case DWT.TRAVERSE_ARROW_NEXT:
397 case DWT.TRAVERSE_ARROW_PREVIOUS: 397 case DWT.TRAVERSE_ARROW_PREVIOUS:
398 e.doit = false; 398 e.doit = false;
399 return; 399 return;
400 default:
400 } 401 }
401 if (!model.hasFocusSegments()) { 402 if (!model.hasFocusSegments()) {
402 e.doit = true; 403 e.doit = true;
403 return; 404 return;
404 } 405 }
717 case DWT.TRAVERSE_PAGE_PREVIOUS: 718 case DWT.TRAVERSE_PAGE_PREVIOUS:
718 case DWT.TRAVERSE_ARROW_NEXT: 719 case DWT.TRAVERSE_ARROW_NEXT:
719 case DWT.TRAVERSE_ARROW_PREVIOUS: 720 case DWT.TRAVERSE_ARROW_PREVIOUS:
720 e.doit = false; 721 e.doit = false;
721 return; 722 return;
723 default:
722 } 724 }
723 Control c = cast(Control) e.widget; 725 Control c = cast(Control) e.widget;
724 ControlSegment segment = cast(ControlSegment) c 726 ControlSegment segment = cast(ControlSegment) c
725 .getData(CONTROL_KEY); 727 .getData(CONTROL_KEY);
726 if (e.detail is DWT.TRAVERSE_TAB_NEXT) 728 if (e.detail is DWT.TRAVERSE_TAB_NEXT)
728 else if (e.detail is DWT.TRAVERSE_TAB_PREVIOUS) 730 else if (e.detail is DWT.TRAVERSE_TAB_PREVIOUS)
729 e.doit = advanceControl(c, segment, false); 731 e.doit = advanceControl(c, segment, false);
730 if (!e.doit) 732 if (!e.doit)
731 e.detail = DWT.TRAVERSE_NONE; 733 e.detail = DWT.TRAVERSE_NONE;
732 break; 734 break;
735 default:
733 } 736 }
734 } 737 }
735 }; 738 };
736 for (int i = 0; i < paragraphs.length; i++) { 739 for (int i = 0; i < paragraphs.length; i++) {
737 Paragraph p = paragraphs[i]; 740 Paragraph p = paragraphs[i];