From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mailman by lists.gnu.org with archive (Exim 4.43) id 1MtDs1-0003Iq-Ry for mharc-grub-devel@gnu.org; Thu, 01 Oct 2009 01:06:26 -0400 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1MtDrz-0003EB-My for grub-devel@gnu.org; Thu, 01 Oct 2009 01:06:23 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1MtDru-000347-LK for grub-devel@gnu.org; Thu, 01 Oct 2009 01:06:23 -0400 Received: from [199.232.76.173] (port=56896 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1MtDru-00033t-Bm for grub-devel@gnu.org; Thu, 01 Oct 2009 01:06:18 -0400 Received: from mail-px0-f185.google.com ([209.85.216.185]:34880) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1MtDrt-0001Kr-Kk for grub-devel@gnu.org; Thu, 01 Oct 2009 01:06:17 -0400 Received: by pxi15 with SMTP id 15so7335533pxi.25 for ; Wed, 30 Sep 2009 22:06:16 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:in-reply-to:references :date:message-id:subject:from:to:content-type; bh=w/lpfn2Xh7zu0eEETkKd48fZx999R+VeSNvrsum4sek=; b=dC3tMrwR+pofyt/GMzsMfn+sMUrRQMbAfojJTEO97rDEFONky09R8/vcwb9DFxT1nJ Cnn3kAzACJhKz5EjEmPvWIxaCgo+5WC/n6A/BfgjNL6LGTYDRW7opdgWaYfcO1tV1kya iZAjqKu70KpEFI9NB810XvSH/UJq1Vt8jovls= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type; b=IRzqhSQCvs0fOXywtL6vUiN94te9+9P+ZfAawaq/4Xgu4yym2J9aC2NJszkZhFcnKr ndowFJjU16pEm0Ql12HDxTXE6Uwlkkl2p8Bbfsva7SM2P/O6HiGmD8tXnERnt5xTNgQH Vhqh2jZktL9DQ1CcCDZ97Rgp5a5ZcSZY4AQMc= MIME-Version: 1.0 Received: by 10.141.28.19 with SMTP id f19mr69833rvj.60.1254373576759; Wed, 30 Sep 2009 22:06:16 -0700 (PDT) In-Reply-To: References: Date: Thu, 1 Oct 2009 13:06:16 +0800 Message-ID: From: Bean To: The development of GRUB 2 Content-Type: text/plain; charset=ISO-8859-1 X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6 (newer, 2) Subject: Re: [GITGRUB] New menu interface (implementation) 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, 01 Oct 2009 05:06:23 -0000 On Thu, Oct 1, 2009 at 7:21 AM, Michal Suchanek wrote: > It is not. A label can have focus (the whole icon+text widget) but panel cannot. > > It will be impossible to make both focused at once without special trickery. Hi, It's possible to make both focused, actually my next demo would be to illustrate the menu interaction. The basic unit is panel, we can add "input" or "select" property to panel so that it can have input focus or can be selected, something like this: panel { direction = vertical space = 10/1 input = 1 panel { direction = horizontal space = 10/1 command = "" image { image = "/menu/ubuntu.png" } text { text = "Ubuntu" color = "yellow:light-green" } } panel { direction = horizontal space = 10/1 command = "" image { image = "/menu/debian.png" } text { text = "Debian" color = "yellow:light-green" } } panel { direction = horizontal space = 10/1 command = "" image { image = "/menu/gentoo.png" } text { text = "Gentoo" color = "yellow:light-green" } } } There are two level interaction, "input" is used to indicate "window", we use tab key to switch between different window. "command" is used to indicate "item", each window can have multiple items, we use up or down key to navigate between items. The command property also contains the command to execute when the item is clicked. -- Bean gitgrub home: http://github.com/grub/grub/ my fork page: http://github.com/bean123/grub/