From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mailman by lists.gnu.org with archive (Exim 4.43) id 1MJoCl-0003iU-TP for mharc-grub-devel@gnu.org; Thu, 25 Jun 2009 08:37:27 -0400 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1MJoCk-0003hK-7E for grub-devel@gnu.org; Thu, 25 Jun 2009 08:37:26 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1MJoCf-0003gi-7z for grub-devel@gnu.org; Thu, 25 Jun 2009 08:37:25 -0400 Received: from [199.232.76.173] (port=42122 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1MJoCf-0003gY-4w for grub-devel@gnu.org; Thu, 25 Jun 2009 08:37:21 -0400 Received: from aybabtu.com ([69.60.117.155]:33969) by monty-python.gnu.org with esmtps (TLS-1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1MJoCe-0005Au-DS for grub-devel@gnu.org; Thu, 25 Jun 2009 08:37:20 -0400 Received: from [192.168.10.10] (helo=thorin) by aybabtu.com with esmtp (Exim 4.69) (envelope-from ) id 1MJn9G-0000CG-Oa for grub-devel@gnu.org; Thu, 25 Jun 2009 13:29:49 +0200 Received: from rmh by thorin with local (Exim 4.69) (envelope-from ) id 1MJoCO-0002oh-G5 for grub-devel@gnu.org; Thu, 25 Jun 2009 14:37:04 +0200 Date: Thu, 25 Jun 2009 14:37:04 +0200 From: Robert Millan To: The development of GRUB 2 Message-ID: <20090625123659.GA6874@thorin> References: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: Organization: free as in freedom X-Message-Flag: Worried about Outlook viruses? Switch to Thunderbird! www.mozilla.com/thunderbird X-Debbugs-No-Ack: true User-Agent: Mutt/1.5.18 (2008-05-17) X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6 (newer, 1) Subject: Re: [RFC] New menu design based on MVC X-BeenThere: grub-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: The development of GRUB 2 List-Id: The development of GRUB 2 List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 25 Jun 2009 12:37:26 -0000 On Thu, Jun 25, 2009 at 12:07:18PM +0800, Bean wrote: > Hi, > > The current menu system is a little chaotic, the various components > are mixed together which make it difficult to maintain and extend. > Therefore, I propose a new design which seperates model, view and > controller. > > Model. It's the menu items. Currently, menu are added using menuitem > statement, which is unique to sh script engine. I think it'd be > advantageous to have a scipt independent way to define menu. Also, > using configfile to define submenu is not good, as it is > difficult to implement interaction between parent and child menu, for > example, auto expand the child menu when parent is selected, or > implement a hotkey that will jump back to the top menu regardless of > the current menu level. IMO, the menu should be loaded as a whole. > > The menu is tree structure, a natural way to represent it is to use > xml, for example, we may write it like this: > > > > > root (hd0,1) > chainloader +1 > > > root (hd0,2) > linux /vmlinuz > initrd /initrd.img > > > > Isn't Colin already working on a redesign of the menu? -- Robert Millan The DRM opt-in fallacy: "Your data belongs to us. We will decide when (and how) you may access your data; but nobody's threatening your freedom: we still allow you to remove your data and not access it at all."