From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mailman by lists.gnu.org with archive (Exim 4.43) id 1MtHES-0003Su-OH for mharc-grub-devel@gnu.org; Thu, 01 Oct 2009 04:41:48 -0400 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1MtHEQ-0003RU-1e for grub-devel@gnu.org; Thu, 01 Oct 2009 04:41:46 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1MtHEK-0003OZ-IM for grub-devel@gnu.org; Thu, 01 Oct 2009 04:41:44 -0400 Received: from [199.232.76.173] (port=58822 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1MtHEJ-0003OM-M7 for grub-devel@gnu.org; Thu, 01 Oct 2009 04:41:39 -0400 Received: from mail-fx0-f205.google.com ([209.85.220.205]:36377) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1MtHEJ-0004Nx-6H for grub-devel@gnu.org; Thu, 01 Oct 2009 04:41:39 -0400 Received: by fxm1 with SMTP id 1so5828371fxm.31 for ; Thu, 01 Oct 2009 01:41:37 -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=MGJ600R1BgfLMLFruXyyIC0ZCWSNet5d4Gt+Y7y2bdo=; b=F6Iz8hpLrZitZLAp8iHEPB3zNgWs7ZyFkCxgV6JBC3v0YNINRf74kZiSYaMnfvIDM/ pYWplYcm5h24RorNhlzZC9TSW+xaM2nUNOfy1TjzfBWcKNratJGNaBcqtDx235qa1gQS x9FGF45AvmJryVzWUaH1X1oqRvV9qR+dqHS9U= 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=U/TjMM2iws6zNdPm/XWT5+HMGqrulTBIus9JltLTM/n1aaJgOO+95x12uoxg4B8mOe PGy2uXuOZLBSnf/jQxXDwbMwEJ9CrAWp8OK9IHUPxHek51sq4ExMkWHHfq4nMD341IYl HFFh7OlnE8mvVQ6Z7azSZRYy9ac7Ac7D/zLc4= MIME-Version: 1.0 Sender: hramrach@gmail.com Received: by 10.86.251.6 with SMTP id y6mr921267fgh.24.1254386497545; Thu, 01 Oct 2009 01:41:37 -0700 (PDT) In-Reply-To: References: Date: Thu, 1 Oct 2009 10:41:37 +0200 X-Google-Sender-Auth: d34fec404a5e54d6 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 (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 08:41:46 -0000 2009/10/1 Bean : > On Thu, Oct 1, 2009 at 7:21 AM, Michal Suchanek wro= te: >> 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 trick= ery. > > 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: > > =C2=A0panel { > =C2=A0 =C2=A0direction =3D vertical > =C2=A0 =C2=A0space =3D 10/1 > =C2=A0 =C2=A0input =3D 1 > > =C2=A0 =C2=A0panel { > =C2=A0 =C2=A0 =C2=A0direction =3D horizontal > =C2=A0 =C2=A0 =C2=A0space =3D 10/1 > =C2=A0 =C2=A0 =C2=A0command =3D "" > > =C2=A0 =C2=A0 =C2=A0image { > =C2=A0 =C2=A0 =C2=A0 =C2=A0image =3D "/menu/ubuntu.png" > =C2=A0 =C2=A0 =C2=A0} > > =C2=A0 =C2=A0 =C2=A0text { > =C2=A0 =C2=A0 =C2=A0 =C2=A0text =3D "Ubuntu" > =C2=A0 =C2=A0 =C2=A0 =C2=A0color =3D "yellow:light-green" > =C2=A0 =C2=A0 =C2=A0} > =C2=A0 =C2=A0} > > =C2=A0 =C2=A0panel { > =C2=A0 =C2=A0 =C2=A0direction =3D horizontal > =C2=A0 =C2=A0 =C2=A0space =3D 10/1 > =C2=A0 =C2=A0 =C2=A0command =3D "" > > =C2=A0 =C2=A0 =C2=A0image { > =C2=A0 =C2=A0 =C2=A0 =C2=A0image =3D "/menu/debian.png" > =C2=A0 =C2=A0 =C2=A0} > > =C2=A0 =C2=A0 =C2=A0text { > =C2=A0 =C2=A0 =C2=A0 =C2=A0text =3D "Debian" > =C2=A0 =C2=A0 =C2=A0 =C2=A0color =3D "yellow:light-green" > =C2=A0 =C2=A0 =C2=A0} > =C2=A0 =C2=A0} > > =C2=A0 =C2=A0panel { > =C2=A0 =C2=A0 =C2=A0direction =3D horizontal > =C2=A0 =C2=A0 =C2=A0space =3D 10/1 > =C2=A0 =C2=A0 =C2=A0command =3D "" > > =C2=A0 =C2=A0 =C2=A0image { > =C2=A0 =C2=A0 =C2=A0 =C2=A0image =3D "/menu/gentoo.png" > =C2=A0 =C2=A0 =C2=A0} > > =C2=A0 =C2=A0 =C2=A0text { > =C2=A0 =C2=A0 =C2=A0 =C2=A0text =3D "Gentoo" > =C2=A0 =C2=A0 =C2=A0 =C2=A0color =3D "yellow:light-green" > =C2=A0 =C2=A0 =C2=A0} > =C2=A0 =C2=A0} > =C2=A0} > This sounds good. It gives more flexibility in designing the active items. > There are two level interaction, "input" is used to indicate "window", Cannot this be inferred automatically? That is any panel that contains command items is a 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 =C2=A0command to execute when the item is clicked. Thanks Michal