Re: [qooxdoo-devel] Table with checkbox based select

2009-08-28 Thread skar
Derrell Lipman wrote: > I just looked into it. It's a non-trivial change, as it involved both the > Scroller and the selection manager. I think this one will have to wait for a > rewritten table widget based on qx.ui.virtual.* > No problem. I can wait for the virtual rewrite. Till then, I can us

Re: [qooxdoo-devel] Table with checkbox based select

2009-08-28 Thread Derrell Lipman
On Fri, Aug 28, 2009 at 06:54, skar wrote: > Derrell Lipman wrote: > > Ok, if you checkout from trunk now you'll have a nice fix I think. I've > > fixed a few bugs, particularly with the toggle model, and added a new > > property to Table, rowFocusChangeModifiesSelection, that you can turn off >

Re: [qooxdoo-devel] Table with checkbox based select

2009-08-28 Thread skar
Derrell Lipman wrote: > Ok, if you checkout from trunk now you'll have a nice fix I think. I've > fixed a few bugs, particularly with the toggle model, and added a new > property to Table, rowFocusChangeModifiesSelection, that you can turn off to > get the desired behavior. > > tableSelect.setFocus

Re: [qooxdoo-devel] Table with checkbox based select

2009-08-27 Thread Derrell Lipman
On Thu, Aug 27, 2009 at 11:08, Dietrich Streifert < [email protected]> wrote: > Hi Derrell! > > please consider porting this changes back to branches/legacy_0_7_x. This > would be great. > You're aware it's called "legacy" for a reason, right? :-) Only those sites with existing code

Re: [qooxdoo-devel] Table with checkbox based select

2009-08-27 Thread Dietrich Streifert
Hi Derrell! please consider porting this changes back to branches/legacy_0_7_x. This would be great. Thank you for your great work. Best regards. Derrell Lipman schrieb: On Thu, Aug 27, 2009 at 08:56, Derrell Lipman > wrote: On Thu, Aug 27,

Re: [qooxdoo-devel] Table with checkbox based select

2009-08-27 Thread Derrell Lipman
On Thu, Aug 27, 2009 at 08:56, Derrell Lipman < [email protected]> wrote: > On Thu, Aug 27, 2009 at 08:45, skar wrote: > >> >> > Are you sure? I think when you scroll with the arrow keys, a new row >> should >> > be FOCUSED but it shouldn't be SELECTED unless you press the space

Re: [qooxdoo-devel] Table with checkbox based select

2009-08-27 Thread skar
skar wrote: >> >> > I just need 2 behaviors added to "NO_SELECTION" for it to behave like I > want. How do I add a click handler for the first column which is a > boolean checkbox? If clicked, I can toggle the state and set selected or > not. I'd also want to listen for space bar being pres

Re: [qooxdoo-devel] Table with checkbox based select

2009-08-27 Thread skar
Derrell Lipman wrote: > I agree. It sounds like a bug. It also sounds like a bug that's been there > since the beginning of time, and changing it would affect many, many > applications, so it'll have to be fixed with the addition of a new property, > but default to the current implementation. > > L

Re: [qooxdoo-devel] Table with checkbox based select

2009-08-27 Thread Derrell Lipman
On Thu, Aug 27, 2009 at 08:45, skar wrote: > > > Are you sure? I think when you scroll with the arrow keys, a new row > should > > be FOCUSED but it shouldn't be SELECTED unless you press the space bar. > > > > You can try turning off focus indications to see if this changes the > > apparent beha

Re: [qooxdoo-devel] Table with checkbox based select

2009-08-27 Thread skar
> Are you sure? I think when you scroll with the arrow keys, a new row should > be FOCUSED but it shouldn't be SELECTED unless you press the space bar. > > You can try turning off focus indications to see if this changes the > apparent behavior: > > table.setFocusCellOnMouseMove(false); > table.sh

Re: [qooxdoo-devel] Table with checkbox based select

2009-08-26 Thread skar
Dear Sebastien, > Replace this line > > selectionModel.setSelectionMode(qx.ui.table.selection.Model.MULTIPLE_INTERVAL_SELECTION); > > by > > selectionModel.setSelectionMode(qx.ui.table.selection.Model.MULTIPLE_INTERVAL_SELECTION_TOGGLE); > > and remove the color theme, if you want keep the highlig

Re: [qooxdoo-devel] Table with checkbox based select

2009-08-26 Thread Derrell Lipman
On Wed, Aug 26, 2009 at 10:00, skar wrote: > Dear Sebastien, > > Replace this line > > > > > selectionModel.setSelectionMode(qx.ui.table.selection.Model.MULTIPLE_INTERVAL_SELECTION); > > > > by > > > > > selectionModel.setSelectionMode(qx.ui.table.selection.Model.MULTIPLE_INTERVAL_SELECTION_TOGGL

Re: [qooxdoo-devel] Table with checkbox based select

2009-08-26 Thread sebastien hupin
Hi, Replace this line selectionModel.setSelectionMode(qx.ui.table.selection.Model.MULTIPLE_INTERVAL_SELECTION); by selectionModel.setSelectionMode(qx.ui.table.selection.Model.MULTIPLE_INTERVAL_SELECTION_TOGGLE); and remove the color theme, if you want keep the highlight option. Best regards

Re: [qooxdoo-devel] Table with checkbox based select

2009-08-26 Thread skar
Hi, > Hi, > > You can with this code : > > var tableModel = new qx.ui.table.model.Simple(); > tableModel.setColumns([ "test", "selected"],["idtest","idselect"]); > > > var tableSelect = new qx.ui.table.Table(tableModel); > var columnModel = tableSelect.getTabl

Re: [qooxdoo-devel] Table with checkbox based select

2009-08-26 Thread sebastien hupin
Hi, You can with this code : var tableModel = new qx.ui.table.model.Simple(); tableModel.setColumns([ "test", "selected"],["idtest","idselect"]); var tableSelect = new qx.ui.table.Table(tableModel); var columnModel = tableSelect.getTableColumnModel();

Re: [qooxdoo-devel] Table with checkbox based select

2009-08-25 Thread Christian Schmidt
Hi Skar, I'm not a table expert. So I'm not sure, but I think it isn't possible. Derrell, please correct me, if I sad something wrong. Cheers, Chris skar schrieb: > Hi, > > I'm having a multi-select table. Is there any way to use a checkbox > which is checked when a row is selected, instead of

[qooxdoo-devel] Table with checkbox based select

2009-08-25 Thread skar
Hi, I'm having a multi-select table. Is there any way to use a checkbox which is checked when a row is selected, instead of the current highlight only option? cheers, skar. -- -- The life so short, the craft so long to learn. --