From 5d628ba4a253f86c9796a10a344b8ce9c176cf9b Mon Sep 17 00:00:00 2001 From: gareuselesinge Date: Mon, 30 Sep 2013 16:09:58 +0000 Subject: wg_Command: detachable, less "from the 80s", query pane - Tabs have labels derived from the query (e.g. "About eq_ind" will have "eq_ind" as its label, that is better than "Page 1" ;-) - Tabs have a [x] close icon - Icon to create a new tab in in the notebook - Dispotically grab the F1 key to open/close the query pane (alt-esc is grabbed by windows managers these days) - Esc hides the query pane (like the search pane) - F1 puts a detached query pane in front - Tab switches from the combo-box to the entry on its right - Detaching is taken-over, and the query pane is reparented in a regular window that can be resized - A detached query pane can be put back by closing the window git-svn-id: svn+ssh://scm.gforge.inria.fr/svn/coq/trunk@16817 85f007b7-540e-0410-9357-904b9bb8a0f7 --- ide/wg_Command.mli | 42 ++++++++++++++++++++++++++++++++++++------ 1 file changed, 36 insertions(+), 6 deletions(-) (limited to 'ide/wg_Command.mli') diff --git a/ide/wg_Command.mli b/ide/wg_Command.mli index 2245befe7..92ad858f4 100644 --- a/ide/wg_Command.mli +++ b/ide/wg_Command.mli @@ -6,13 +6,43 @@ (* * GNU Lesser General Public License Version 2.1 *) (************************************************************************) -class command_window : Coq.coqtop -> - mark_as_broken:(Stateid.t list -> unit) -> - mark_as_processed:(Stateid.t list -> unit) -> - cur_state:(unit -> Stateid.t) -> +class type detachable_signals = object - method new_command : ?command:string -> ?term:string -> unit -> unit - method frame : GBin.frame + inherit GContainer.container_signals + method attached : callback:(GObj.widget -> unit) -> unit + method detached : callback:(GObj.widget -> unit) -> unit + end + +class detachable : ([> Gtk.box] as 'a) Gobject.obj -> + object + inherit GPack.box_skel + val obj : Gtk.box Gobject.obj + method connect : detachable_signals + method child : GObj.widget + method show : unit + method hide : unit + method visible : bool + method title : string + method set_title : string -> unit + + end + +val detachable : + ?title:string -> + ?homogeneous:bool -> + ?spacing:int -> + ?border_width:int -> + ?width:int -> + ?height:int -> + ?packing:(GObj.widget -> unit) -> ?show:bool -> unit -> detachable + +class command_window : string -> Coq.coqtop -> + object + method new_query : ?command:string -> ?term:string -> unit -> unit + method pack_in : (GObj.widget -> unit) -> unit method refresh_font : unit -> unit method refresh_color : unit -> unit + method show : unit + method hide : unit + method visible : bool end -- cgit v1.2.3