Using a listview to display an array

Selene also allows you to modify an array through a listview. This can be handy when you want to present a set of objects to the user and allow to modify it. Through some recursive tricks, a dialog will be generated for the enclosed type.

listview.cs

The cells in the view are also editable. Types that cannot be displayed in a listview, such as the ushort[3], representing a color, will simply be ignored by the listview. The editing/adding dialog will display them as widgets, though.

The Qt/Qyoto equivalents are listed below (widget arranging made them too big to cram on the right). The implementation however, is fully mature and can do anything the GTK frontend can.

Initial view

Adding something

Item added

Editing something

Item edited

Qyoto equivalents