comparison template/dw.c @ 2410:0286ac44d347

Add DW_FEATURE_TREE feature test, since iOS does not suppor tree. Update dwtest to show a placeholder when missing the tree widget. Remove DW_FEATURE_CONTAINER_STRIPE from GTK4. Apparently it is supported with the GtkListBox widget and custom CSS, but it performs badly and is unrecommended by the GTK development team. Finally add missing feature test example code to the template source.
author bsmith@81767d24-ef19-dc11-ae90-00e081727c95
date Tue, 30 Mar 2021 08:28:35 +0000
parents 47b214db2465
children fa976a5bc7bd
comparison
equal deleted inserted replaced
2409:2ab3e88e5d68 2410:0286ac44d347
3691 case DW_FEATURE_CONTAINER_STRIPE: /* Supports striped line display in container widgets */ 3691 case DW_FEATURE_CONTAINER_STRIPE: /* Supports striped line display in container widgets */
3692 case DW_FEATURE_MDI: /* Supports Multiple Document Interface window frame */ 3692 case DW_FEATURE_MDI: /* Supports Multiple Document Interface window frame */
3693 case DW_FEATURE_NOTEBOOK_STATUS_TEXT: /* Supports status text area on notebook/tabbed controls */ 3693 case DW_FEATURE_NOTEBOOK_STATUS_TEXT: /* Supports status text area on notebook/tabbed controls */
3694 case DW_FEATURE_NOTIFICATION: /* Supports sending system notifications */ 3694 case DW_FEATURE_NOTIFICATION: /* Supports sending system notifications */
3695 case DW_FEATURE_UTF8_UNICODE: /* Supports UTF8 encoded Unicode text */ 3695 case DW_FEATURE_UTF8_UNICODE: /* Supports UTF8 encoded Unicode text */
3696 case DW_FEATURE_MLE_RICH_EDIT: /* Supports Rich Edit based MLE control (Windows) */
3697 case DW_FEATURE_TASK_BAR: /* Supports icons in the taskbar or similar system widget */
3698 case DW_FEATURE_TREE: .* Supports the Tree Widget */
3696 return DW_FEATURE_ENABLED; 3699 return DW_FEATURE_ENABLED;
3697 #endif 3700 #endif
3698 default: 3701 default:
3699 return DW_FEATURE_UNSUPPORTED; 3702 return DW_FEATURE_UNSUPPORTED;
3700 } 3703 }
3729 case DW_FEATURE_CONTAINER_STRIPE: /* Supports striped line display in container widgets */ 3732 case DW_FEATURE_CONTAINER_STRIPE: /* Supports striped line display in container widgets */
3730 case DW_FEATURE_MDI: /* Supports Multiple Document Interface window frame */ 3733 case DW_FEATURE_MDI: /* Supports Multiple Document Interface window frame */
3731 case DW_FEATURE_NOTEBOOK_STATUS_TEXT: /* Supports status text area on notebook/tabbed controls */ 3734 case DW_FEATURE_NOTEBOOK_STATUS_TEXT: /* Supports status text area on notebook/tabbed controls */
3732 case DW_FEATURE_NOTIFICATION: /* Supports sending system notifications */ 3735 case DW_FEATURE_NOTIFICATION: /* Supports sending system notifications */
3733 case DW_FEATURE_UTF8_UNICODE: /* Supports UTF8 encoded Unicode text */ 3736 case DW_FEATURE_UTF8_UNICODE: /* Supports UTF8 encoded Unicode text */
3737 case DW_FEATURE_MLE_RICH_EDIT: /* Supports Rich Edit based MLE control (Windows) */
3738 case DW_FEATURE_TASK_BAR: /* Supports icons in the taskbar or similar system widget */
3739 case DW_FEATURE_TREE: .* Supports the Tree Widget */
3734 return DW_ERROR_GENERAL; 3740 return DW_ERROR_GENERAL;
3735 #endif 3741 #endif
3736 /* These features are supported and configurable */ 3742 /* These features are supported and configurable */
3737 default: 3743 default:
3738 return DW_FEATURE_UNSUPPORTED; 3744 return DW_FEATURE_UNSUPPORTED;