Received: from mailman by lists.gnu.org with archive (Exim 4.43) id 1Ml1pA-0002Nl-NC for mharc-grub-devel@gnu.org; Tue, 08 Sep 2009 10:37:36 -0400 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1Ml1p7-0002Mx-LE for grub-devel@gnu.org; Tue, 08 Sep 2009 10:37:33 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1Ml1oy-0002Lf-Ap for grub-devel@gnu.org; Tue, 08 Sep 2009 10:37:28 -0400 Received: from [199.232.76.173] (port=44276 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Ml1oy-0002Lb-3g for grub-devel@gnu.org; Tue, 08 Sep 2009 10:37:24 -0400 Received: from mail-px0-f202.google.com ([209.85.216.202]:48544) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1Ml1ox-00061M-Pu for grub-devel@gnu.org; Tue, 08 Sep 2009 10:37:23 -0400 Received: by pxi40 with SMTP id 40so3346710pxi.5 for ; Tue, 08 Sep 2009 07:37:22 -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=4f/tke9viFc2aB8wDmCcV/hA4zyVWr38t7S9sLtpXvA=; b=Oz5U958zEXAJBLiqfHbO7qqUw7I/kKTC91Y54c6xxCZZj6XpfXF9YNcmfjQZVgJiAK eLCPdvsW1rzNpzLpMrSUT8HEAUZ7a3nQy3GQZ5fn2+uF2b1Lkn6cbL12U9u6JwnBT9j4 her35qhqxneuIQwVUHhyAI5O5JqNVPGjEl9Jo= 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=nf88FAGJewWwRnK9YvxjMoay1LL6ZPicXZPwgKsaScO7NGHjqanAE/n5DhZI4GNzjp Ic8x7e2rKRzocmWYHn88gD+xrll8zIaY/26h2oL3b6pUq1BDbCphsiDxZpaojBUXZkNu fYW+EfBpzgoE+KlursCxoVUH7VeFqEgQFIe0E= MIME-Version: 1.0 Received: by 10.140.143.19 with SMTP id q19mr3512387rvd.17.1252420642785; Tue, 08 Sep 2009 07:37:22 -0700 (PDT) In-Reply-To: References: Date: Tue, 8 Sep 2009 22:37:22 +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 (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: Tue, 08 Sep 2009 14:37:34 -0000 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 (extends edit component) menu - menu list (extends list box) We should be able to construct more powerful component using the above simple ones, I'm considering adding a dialog tree: + dialog { + edit { + window { class = "edit" + edit { } } } + message { + window { class = "message" + label { text = $1 } } } } Then we can use something like this to show a popup message dialog: popup message "Hello World" And for components with input focus, we can add hotkey node to add actions: + screen { + menu { + hotkey { key = "F1" command = "popup message Hello" } + hotkey { key = "F9" command = "reboot" } + hotkey { key = "F10" command = "halt" } } } -- Bean gitgrub home: http://github.com/grub/grub/ my fork page: http://github.com/bean123/grub/