diff options
author | gareuselesinge <gareuselesinge@85f007b7-540e-0410-9357-904b9bb8a0f7> | 2013-09-30 16:09:58 +0000 |
---|---|---|
committer | gareuselesinge <gareuselesinge@85f007b7-540e-0410-9357-904b9bb8a0f7> | 2013-09-30 16:09:58 +0000 |
commit | 5d628ba4a253f86c9796a10a344b8ce9c176cf9b (patch) | |
tree | 9743c3e8b19b5fce5bf28663d65fda8785637004 /ide/wg_Command.mli | |
parent | c262d5f43d3dcaef9bd078437cd022d9d272f753 (diff) |
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
Diffstat (limited to 'ide/wg_Command.mli')
-rw-r--r-- | ide/wg_Command.mli | 42 |
1 files changed, 36 insertions, 6 deletions
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 |