Re: [RFC] Redesign of the menu system

2009-08-19 Thread Bean
On Wed, Aug 19, 2009 at 11:17 PM, Michal Suchanek wrote: > {} block syntax is also widely used and much easier to read and write > by humans than XML+CSS. > > I do not see the reason for pushing XML/CSS everywhere. It's a > compromise that does not quite work for neither of visual formatting, > oth

Re: [RFC] Redesign of the menu system

2009-08-19 Thread Michal Suchanek
2009/8/19 Bean : > On Wed, Aug 19, 2009 at 10:30 PM, Vladimir 'phcoder' > Serbinenko wrote: >> On Wed, Aug 19, 2009 at 4:22 PM, Bean wrote: >>> Hi, >>> >>> Some clarification about the XML/CSS format: >>> >>> First of all, the internal representation of component is tree-like >>> structure, which i

Re: [RFC] Redesign of the menu system

2009-08-19 Thread Bean
On Wed, Aug 19, 2009 at 10:30 PM, Vladimir 'phcoder' Serbinenko wrote: > On Wed, Aug 19, 2009 at 4:22 PM, Bean wrote: >> Hi, >> >> Some clarification about the XML/CSS format: >> >> First of all, the internal representation of component is tree-like >> structure, which is quite natural to XML, we c

Re: [RFC] Redesign of the menu system

2009-08-19 Thread Vladimir 'phcoder' Serbinenko
On Wed, Aug 19, 2009 at 4:22 PM, Bean wrote: > Hi, > > Some clarification about the XML/CSS format: > > First of all, the internal representation of component is tree-like > structure, which is quite natural to XML, we can create the tree while > parsing. Besides, we don't need to implement the ful

Re: [RFC] Redesign of the menu system

2009-08-19 Thread Bean
Hi, Some clarification about the XML/CSS format: First of all, the internal representation of component is tree-like structure, which is quite natural to XML, we can create the tree while parsing. Besides, we don't need to implement the full specification of XML/CSS, just a subset that works for

Re: [RFC] Redesign of the menu system

2009-08-19 Thread Michal Suchanek
2009/8/19 Vladimir 'phcoder' Serbinenko : >>> To have level or tree-like model you can use '.' as a name separator >>> it will make the system uniform with current FreeBSD booting. >> >> XML/CSS is not the easiest format to work with but a bunch of >> variables which represent a tree is not nice ei

Re: [RFC] Redesign of the menu system

2009-08-19 Thread Vladimir 'phcoder' Serbinenko
>> To have level or tree-like model you can use '.' as a name separator >> it will make the system uniform with current FreeBSD booting. > > XML/CSS is not the easiest format to work with but a bunch of > variables which represent a tree is not nice either. > > However, apt has settings format that

Re: [RFC] Redesign of the menu system

2009-08-19 Thread Michal Suchanek
2009/8/19 Vladimir 'phcoder' Serbinenko : > On Wed, Aug 19, 2009 at 11:05 AM, Bean wrote: >> Hi, >> >> Currently, the menu system is a little unorganized and difficult to >> extend. My goal of the redesign are: >> >> Modular >> Split code into small modules, each module implement a specific >> func

Re: [RFC] Redesign of the menu system

2009-08-19 Thread Vladimir 'phcoder' Serbinenko
On Wed, Aug 19, 2009 at 11:05 AM, Bean wrote: > Hi, > > Currently, the menu system is a little unorganized and difficult to > extend. My goal of the redesign are: > > Modular > Split code into small modules, each module implement a specific > function, modules uses predefined interface to call each

[RFC] Redesign of the menu system

2009-08-19 Thread Bean
Hi, Currently, the menu system is a little unorganized and difficult to extend. My goal of the redesign are: Modular Split code into small modules, each module implement a specific function, modules uses predefined interface to call each other. Extensible The core of the menu system is component