Hi Quentin

Happy new year as well.

On 02/01/2011, at 06:13 AM, Quentin Mathé wrote:

> May be I'm completely off, but I have the feeling you shouldn't be using 
> ETIconLayout but just a simple ETColumnLayout. 
> ETTemplateItemLayout main use is to make a presentation that alters item 
> properties completely reusable.
> 
> Could you describe me precisely the view/presentation you'd like to obtain 
> from the various perspectives listed below?
> - Enclosing parent item (fixed size, scrollable etc.)
> - Item resizing policy
> - User interaction (click, label editing, drag and drop, rubber-band 
> selection or not etc.)
> - Drawn content (text, image, view etc.)

I suspect this is the case as well. I was trying to get something that I could 
just create a sort of "template" and then get EtoileUI to clone and reuse for 
each item.

I was basically trying to build the sort of "task bar" that is needed for 
project manager so that users can minimise/unminimise windows. I have got it 
XCBKit to the point where it creates and updates window pixmaps from each of 
the relevant top-level X11 windows on the screen, and shrinks them down to a 
size that fits into a 128x128 icon. These will be stored in some sort of array 
that is updated as windows are minimised/unminimised.

In terms of the criteria that you list:
- The parent item should be a narrow (say 96-128px) window on the left or right 
hand side of the screen. It will be fixed to be the same height as the screen, 
but the width might be adjustable. At this point, a resizable width isn't 
important.
- I don't want the items to be user-resizable - I just want them to fill out as 
much of the width of the column as possible. It seems to be sensible to 
constrain the height so that it is no more than 20-50% longer than the width. 
The pixmaps are copied from the window backing store on the X11 server and also 
scaled on the server before I pull them using XGetImage() and passing off to 
GNUstep as a NSBitmapImageRep. It would be great if I can get hints from 
EtoileUI about what size the layout item's icon will be rendered at, because I 
could just do the scaling to match that and eliminate double-scaling artefacts.
- The user just clicks on the items. There is no label or label editing. I 
don't think they should be rearrangeable via drag and drop, but this shouldn't 
matter if they are. No "selection" such as single or multi or rubber band 
selection.
- The content is just an icon, but it would be nice to have optional labels I 
think as the window images are rather small and difficult to see on a low-res 
display.

Thanks again
Chris

--------
Christopher Armstrong
[email protected]






_______________________________________________
Etoile-discuss mailing list
[email protected]
https://mail.gna.org/listinfo/etoile-discuss

Répondre à