[haiku-development] BColumnListView, BRow, BMenu small additions proposal

  • From: Tri-Edge AI <triedgeai@xxxxxxxxx>
  • To: haiku-development@xxxxxxxxxxxxx
  • Date: Tue, 1 Jan 2013 00:15:44 +0200

Greetings, Haiku Developers,

I'm a GCI student for Haiku OS this year. Recently I've been working on a
task to create a resource editing program for Haiku. A part of my work
consists of modifications in two private and one public Interface Kit
classes. My mentor, François Revol (mmu_man), suggested that the changes
should be proposed to the Haiku Development Mailing List beforehand, so:

The first change is in class BRow - I've added a method IsSelected()
In class BColumnListView - added a method SwapRows()
In BMenu - added a method FindMarkedIndex() which works like FindMarked(),
but returns the index of the item instead of the item itself.
There is also a small bugfix in AddRow of BColumnListView. Before the fix
newly added rows would appear in the middle of the list when sorting is
enabled but no sort column is specified.

The changes can be previewed in detail inside this patch:
https://docs.google.com/file/d/0B_0qMOIuMBy8Yk9meE14SGNZTTQ/edit

Best regards and Happy New Year :).

Other related posts: