Boost logo

Boost :

Subject: Re: [boost] [rfc] cppgui
From: Felipe Magno de Almeida (felipe.m.almeida_at_[hidden])
Date: 2009-07-01 14:24:05


On Thu, Jun 25, 2009 at 11:26 AM, Felipe Magno de
Almeida<felipe.m.almeida_at_[hidden]> wrote:
> On Wed, Jun 24, 2009 at 7:18 PM, Tomas<pecholt_at_[hidden]> wrote:
>> I think that couple of important topics were raised here. Things
>> like MVC, layout system and surface concept briefly described on
>> your website need to be thinked over in more detail because these
>> are going to affect how the library will be used.

I've started with a layout system implementation.
It is still more than shy. I've implemented a ruler (still only for qt, going to
port it to win32 very soon).
This can be used like this (layout1 example shows):

my_window::my_window()
{
  layout::horizontal_ruler ruler(wnd_from_this(), 50);

  wnd<> btn = create<controls::button>( _parent = wnd_from_this()
    , _pos = (20, ruler));

  ruler.move(100);

  assert(btn->position().y() == 100);
}

The ruler can be saved and used later. It most not live more than the
window used to create it though. I'm not sure if this is a problem. Is
it?

[snip]

I'm still researching other layout systems, with grids, auto-resize,
proportionality factors, etc.
As I get more implemented I'll be reporting here. I've researched a
listbox/tree with MVC, and it seems straightforward to implement. I'll
do that as soon as I finish the layout system.
I have myself a project that will use these MVC widgets with database
data very soon.

Thanks,

-- 
Felipe Magno de Almeida

Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk