Re: [gtkmm] add a button into a TreeModel of Treeview ???



Murray Cumming <murrayc murrayc com> writes:

> On Wed, 2004-06-23 at 18:50 +0100, Roger Leigh wrote:
>> cedric <cedric probesys com> writes:
>> 
>> > The aim of putting a button in a model , for me, is to make it
>> > possible to add small buttons for deleting, modifying, or activate a
>> > line for example ...
>> 
>> Wouldn't it make more sense to have "Add", "Edit" and "Remove" buttons
>> to the side (or underneath) the TreeView.  It's trivial to get the
>> TreeSelection and pop up an edit/properties dialog, or delete selected
>> rows.  It also means less clutter in the TreeView.
>
> I think it's OK to have buttons on the rows sometimes. I'd like that in
> glom.

Never say never, but if you get something like this:

  Dondal Buck          [delete] [edit]
  Bondal Huck          [delete] [edit]
  Donbal Tuck          [delete] [edit]
  Dandol Suck          [delete] [edit]

Then you've got an awful lot of similar buttons next to each other,
which does add clutter. It goes against the principle of as simple as
possible. It also makes it harder to use the keyboard, I think.

Right-click context menus are another possible candidate.

But YMMV, etc., 

-- 
Ole Laursen
http://www.cs.aau.dk/~olau/



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]