Received: from mailman by lists.gnu.org with archive (Exim 4.43) id 1MlOV0-0006N9-My for mharc-grub-devel@gnu.org; Wed, 09 Sep 2009 10:50:18 -0400 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1MlOUy-0006Lb-Gl for grub-devel@gnu.org; Wed, 09 Sep 2009 10:50:16 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1MlOUx-0006Jn-5G for grub-devel@gnu.org; Wed, 09 Sep 2009 10:50:15 -0400 Received: from [199.232.76.173] (port=47746 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1MlOUw-0006Jh-Vs for grub-devel@gnu.org; Wed, 09 Sep 2009 10:50:15 -0400 Received: from fg-out-1718.google.com ([72.14.220.154]:6087) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1MlOUw-0005jw-HC for grub-devel@gnu.org; Wed, 09 Sep 2009 10:50:14 -0400 Received: by fg-out-1718.google.com with SMTP id e21so1154542fga.12 for ; Wed, 09 Sep 2009 07:50:13 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:sender:received:in-reply-to :references:date:x-google-sender-auth:message-id:subject:from:to :content-type:content-transfer-encoding; bh=6/YW5L/b85nj27SRCFumMBmOsf3sJ/nOxSssUMReTuQ=; b=dHlNnKOxIM7U5KRvrl00MD+0eUu7m1jmJdUZrW0mBkgU9dHE7Dl8361BVQCpLOguF2 84GOaO0EM52JQJ9zxYEP62L0xsZ3Vvv3CIyFrnhYyzVAYqbK8tZuy1/eFJf/gJ4fsSCP ewOGuzcFAu+O7yW+Pw0Drm3717+n2Qvvkm2/I= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:sender:in-reply-to:references:date :x-google-sender-auth:message-id:subject:from:to:content-type :content-transfer-encoding; b=Hmq2RQNVwCDs8oFnWnexlIHLuLE8oQaCNXQUYVJU/Ry/gTrl6P9Tw3zh42XnQUaBu6 Ri3LtRBTz26Sk5FxDjODliZSwc8iRv8C4FP8NlN27+w2NHhNyGBkSziWecwIsDMkKmwk fU8ThxxrKPkTsbQLlQGKA4z8CqwuW8w+1FFw0= MIME-Version: 1.0 Sender: hramrach@gmail.com Received: by 10.86.17.4 with SMTP id 4mr169894fgq.13.1252507813644; Wed, 09 Sep 2009 07:50:13 -0700 (PDT) In-Reply-To: References: Date: Wed, 9 Sep 2009 16:50:13 +0200 X-Google-Sender-Auth: 79e109196d71cbf0 Message-ID: From: Michal Suchanek To: The development of GRUB 2 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6 (newer, 2) Subject: Re: [GITGRUB] New menu interface (second draft) 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: Wed, 09 Sep 2009 14:50:16 -0000 2009/9/8 Bean : > Hi, > > After more consideration, perhaps we should use the following > component structure: > > frame - window border > panel - layout manager with scroll bar support > window - frame + panel > label - text > image - image > button - button > list - list box > edit - multi-line edit box > term - terminal emulator =C2=A0(extends edit component) > menu - menu list (extends list box) Also how is the menu shown? Currently the menu is implicitly shown if defined but with this extended menu system you can create multiple "windows". There could be a menu with some magic ID that is shown automatically if defined after config parsing ends. Another approach is adding a show command that shows a particular element (with its subelements) as the main window on the screen, This would be likely implicitly present in the edit command for the menu items that have some action bound to them. To make the window management simple every time only a single window would be shown - they could be pushed onto a window stack so that if a popup (such as the action edit popup) is closed the previous window is restored. Thanks Michal