comparison Discovery/Src/tMenuEditSystem.c @ 382:14fd5f35cb50 MotionDetection

merge default
author Ideenmodellierer
date Thu, 10 Oct 2019 22:26:03 +0200
parents 0dbf550dc743 c9d217b110cc
children 427ae9f8e28e
comparison
equal deleted inserted replaced
381:695434a6dcf6 382:14fd5f35cb50
41 #include "Motion.h" 41 #include "Motion.h"
42 #include "t7.h" 42 #include "t7.h"
43 43
44 44
45 #define CV_SUBPAGE_MAX (2u) /* max number of customer view selection pages */ 45 #define CV_SUBPAGE_MAX (2u) /* max number of customer view selection pages */
46 /* Private variables ---------------------------------------------------------*/ 46 /*#define HAVE_DEBUG_VIEW */
47 static uint8_t infoPage = 0; 47 static uint8_t infoPage = 0;
48 48
49 49
50 static uint8_t infoPage = 0;
50 51
51 /* Private function prototypes -----------------------------------------------*/ 52 /* Private function prototypes -----------------------------------------------*/
52 void openEdit_DateTime(void); 53 void openEdit_DateTime(void);
53 void openEdit_Language(void); 54 void openEdit_Language(void);
54 void openEdit_Design(void); 55 void openEdit_Design(void);
608 { 609 {
609 refresh_Design(); 610 refresh_Design();
610 611
611 write_field_button(StMSYS3_Units, 400, 700, ME_Y_LINE1, &FontT48, ""); 612 write_field_button(StMSYS3_Units, 400, 700, ME_Y_LINE1, &FontT48, "");
612 write_field_button(StMSYS3_Colors, 400, 700, ME_Y_LINE2, &FontT48, ""); 613 write_field_button(StMSYS3_Colors, 400, 700, ME_Y_LINE2, &FontT48, "");
613 // write_field_button(StMSYS3_Debug, 400, 700, ME_Y_LINE3, &FontT48, ""); 614 #ifdef HAVE_DEBUG_VIEW
615 write_field_button(StMSYS3_Debug, 400, 700, ME_Y_LINE3, &FontT48, "");
616 #endif
614 setEvent(StMSYS3_Units, (uint32_t)OnAction_Units); 617 setEvent(StMSYS3_Units, (uint32_t)OnAction_Units);
615 setEvent(StMSYS3_Colors, (uint32_t)OnAction_Colorscheme); 618 setEvent(StMSYS3_Colors, (uint32_t)OnAction_Colorscheme);
616 // setEvent(StMSYS3_Debug, (uint32_t)OnAction_DebugInfo); 619 #ifdef HAVE_DEBUG_VIEW
620 setEvent(StMSYS3_Debug, (uint32_t)OnAction_DebugInfo);
621 #endif
617 } 622 }
618 623
619 624
620 void refresh_Design(void) 625 void refresh_Design(void)
621 { 626 {
652 657
653 text[0] = '0' + settingsGetPointer()->tX_colorscheme; 658 text[0] = '0' + settingsGetPointer()->tX_colorscheme;
654 text[1] = 0; 659 text[1] = 0;
655 write_label_var( 400, 700, ME_Y_LINE2, &FontT48, text); 660 write_label_var( 400, 700, ME_Y_LINE2, &FontT48, text);
656 661
657 /* 662 #ifdef HAVE_DEBUG_VIEW
658 // specials 663 // specials
659 text[0] = TXT_2BYTE; 664 text[0] = TXT_2BYTE;
660 text[1] = TXT2BYTE_ShowDebug; 665 text[1] = TXT2BYTE_ShowDebug;
661 text[2] = 0; 666 text[2] = 0;
662 write_label_var( 30, 700, ME_Y_LINE3, &FontT48, text); 667 write_label_var( 30, 700, ME_Y_LINE3, &FontT48, text);
665 text[0] = '\005'; 670 text[0] = '\005';
666 else 671 else
667 text[0] = '\006'; 672 text[0] = '\006';
668 text[1] = 0; 673 text[1] = 0;
669 write_label_var( 400, 700, ME_Y_LINE3, &FontT48, text); 674 write_label_var( 400, 700, ME_Y_LINE3, &FontT48, text);
670 */ 675 #endif
671 676
672 // design 677 // design
673 text[0] = TXT_Depth; 678 text[0] = TXT_Depth;
674 text[1] = 0; 679 text[1] = 0;
675 write_content( 30, 700, ME_Y_LINE4, &FontT24, text, CLUT_Font031); 680 write_content( 30, 700, ME_Y_LINE4, &FontT24, text, CLUT_Font031);