1999-12-16 04:25:11 -08:00
|
|
|
(*************************************************************************)
|
|
|
|
(* *)
|
|
|
|
(* Objective Caml LablTk library *)
|
|
|
|
(* *)
|
|
|
|
(* Jacques Garrigue, Kyoto University RIMS *)
|
|
|
|
(* *)
|
|
|
|
(* Copyright 1999 Institut National de Recherche en Informatique et *)
|
|
|
|
(* en Automatique and Kyoto University. All rights reserved. *)
|
|
|
|
(* This file is distributed under the terms of the GNU Library *)
|
|
|
|
(* General Public License. *)
|
|
|
|
(* *)
|
|
|
|
(*************************************************************************)
|
|
|
|
|
1999-11-30 06:59:39 -08:00
|
|
|
(* $Id$ *)
|
|
|
|
|
|
|
|
open Tk
|
|
|
|
open Jg_tk
|
|
|
|
open Mytypes
|
|
|
|
open Longident
|
|
|
|
open Types
|
|
|
|
open Typedtree
|
|
|
|
open Env
|
|
|
|
open Searchpos
|
|
|
|
open Searchid
|
|
|
|
|
2000-04-11 20:43:25 -07:00
|
|
|
let list_modules ~path =
|
|
|
|
List.fold_left path ~init:[] ~f:
|
2000-04-02 18:57:52 -07:00
|
|
|
begin fun modules dir ->
|
1999-11-30 06:59:39 -08:00
|
|
|
let l =
|
|
|
|
List.filter (Useunix.get_files_in_directory dir)
|
2000-04-11 20:43:25 -07:00
|
|
|
~f:(fun x -> Filename.check_suffix x ".cmi") in
|
|
|
|
let l = List.map l ~f:
|
1999-11-30 06:59:39 -08:00
|
|
|
begin fun x ->
|
2000-04-02 18:57:52 -07:00
|
|
|
String.capitalize (Filename.chop_suffix x ".cmi")
|
1999-11-30 06:59:39 -08:00
|
|
|
end in
|
2000-04-11 20:43:25 -07:00
|
|
|
List.fold_left l ~init:modules
|
|
|
|
~f:(fun modules item ->
|
2000-04-02 18:57:52 -07:00
|
|
|
if List.mem item modules then modules else item :: modules)
|
1999-11-30 06:59:39 -08:00
|
|
|
end
|
|
|
|
|
|
|
|
let reset_modules box =
|
2000-04-11 20:43:25 -07:00
|
|
|
Listbox.delete box ~first:(`Num 0) ~last:`End;
|
|
|
|
module_list := Sort.list ~order:(<) (list_modules ~path:!Config.load_path);
|
|
|
|
Listbox.insert box ~index:`End ~texts:!module_list;
|
|
|
|
Jg_box.recenter box ~index:(`Num 0)
|
1999-11-30 06:59:39 -08:00
|
|
|
|
2000-04-11 20:43:25 -07:00
|
|
|
let view_symbol ~kind ~env ?path id =
|
1999-11-30 06:59:39 -08:00
|
|
|
let name = match id with
|
|
|
|
Lident x -> x
|
|
|
|
| Ldot (_, x) -> x
|
|
|
|
| _ -> match kind with Pvalue | Ptype | Plabel -> "z" | _ -> "Z"
|
|
|
|
in
|
|
|
|
match kind with
|
|
|
|
Pvalue ->
|
|
|
|
let path, vd = lookup_value id env in
|
2000-04-11 20:43:25 -07:00
|
|
|
view_signature_item ~path ~env [Tsig_value (Ident.create name, vd)]
|
|
|
|
| Ptype -> view_type_id id ~env
|
1999-11-30 06:59:39 -08:00
|
|
|
| Plabel -> let ld = lookup_label id env in
|
|
|
|
begin match ld.lbl_res.desc with
|
2000-04-11 20:43:25 -07:00
|
|
|
Tconstr (path, _, _) -> view_type_decl path ~env
|
1999-11-30 06:59:39 -08:00
|
|
|
| _ -> ()
|
|
|
|
end
|
|
|
|
| Pconstructor ->
|
|
|
|
let cd = lookup_constructor id env in
|
|
|
|
begin match cd.cstr_res.desc with
|
|
|
|
Tconstr (cpath, _, _) ->
|
|
|
|
if Path.same cpath Predef.path_exn then
|
2000-04-11 20:43:25 -07:00
|
|
|
view_signature ~title:(string_of_longident id) ~env ?path
|
1999-11-30 06:59:39 -08:00
|
|
|
[Tsig_exception (Ident.create name, cd.cstr_args)]
|
|
|
|
else
|
2000-04-11 20:43:25 -07:00
|
|
|
view_type_decl cpath ~env
|
1999-11-30 06:59:39 -08:00
|
|
|
| _ -> ()
|
|
|
|
end
|
2000-04-11 20:43:25 -07:00
|
|
|
| Pmodule -> view_module_id id ~env
|
|
|
|
| Pmodtype -> view_modtype_id id ~env
|
|
|
|
| Pclass -> view_class_id id ~env
|
|
|
|
| Pcltype -> view_cltype_id id ~env
|
1999-11-30 06:59:39 -08:00
|
|
|
|
2000-04-11 20:43:25 -07:00
|
|
|
let choose_symbol ~title ~env ?signature ?path l =
|
1999-11-30 06:59:39 -08:00
|
|
|
if match path with
|
|
|
|
None -> false
|
2000-02-15 02:09:55 -08:00
|
|
|
| Some path -> is_shown_module path
|
1999-11-30 06:59:39 -08:00
|
|
|
then () else
|
|
|
|
let tl = Jg_toplevel.titled title in
|
|
|
|
Jg_bind.escape_destroy tl;
|
|
|
|
top_widgets := coe tl :: !top_widgets;
|
|
|
|
let buttons = Frame.create tl in
|
2000-04-11 20:43:25 -07:00
|
|
|
let all = Button.create buttons ~text:"Show all" ~padx:20
|
|
|
|
and ok = Jg_button.create_destroyer tl ~parent:buttons
|
|
|
|
and detach = Button.create buttons ~text:"Detach"
|
|
|
|
and edit = Button.create buttons ~text:"Impl"
|
|
|
|
and intf = Button.create buttons ~text:"Intf" in
|
|
|
|
let l = Sort.list l ~order:
|
1999-11-30 06:59:39 -08:00
|
|
|
(fun (li1, _) (li2,_) ->
|
|
|
|
string_of_longident li1 < string_of_longident li2)
|
|
|
|
in
|
2000-04-11 20:43:25 -07:00
|
|
|
let nl = List.map l ~f:
|
1999-11-30 06:59:39 -08:00
|
|
|
begin fun (li, k) ->
|
|
|
|
string_of_longident li ^ " (" ^ string_of_kind k ^ ")"
|
|
|
|
end in
|
|
|
|
let fb = Frame.create tl in
|
|
|
|
let box =
|
2000-04-11 20:43:25 -07:00
|
|
|
new Jg_multibox.c fb ~cols:3 ~texts:nl ~maxheight:3 ~width:21 in
|
1999-11-30 06:59:39 -08:00
|
|
|
box#init;
|
2000-04-11 20:43:25 -07:00
|
|
|
box#bind_kbd ~events:[`KeyPressDetail"Escape"]
|
|
|
|
~action:(fun _ ~index -> destroy tl; break ());
|
2000-02-15 02:09:55 -08:00
|
|
|
if List.length nl > 9 then ignore (Jg_multibox.add_scrollbar box);
|
2000-04-11 20:43:25 -07:00
|
|
|
Jg_multibox.add_completion box ~action:
|
1999-11-30 06:59:39 -08:00
|
|
|
begin fun pos ->
|
2000-04-02 18:57:52 -07:00
|
|
|
let li, k = List.nth l pos in
|
1999-11-30 06:59:39 -08:00
|
|
|
let path =
|
|
|
|
match path, li with
|
|
|
|
None, Ldot (lip, _) ->
|
|
|
|
begin try
|
|
|
|
Some (fst (lookup_module lip env))
|
|
|
|
with Not_found -> None
|
|
|
|
end
|
|
|
|
| _ -> path
|
2000-04-11 20:43:25 -07:00
|
|
|
in view_symbol li ~kind:k ~env ?path
|
1999-11-30 06:59:39 -08:00
|
|
|
end;
|
2000-04-11 20:43:25 -07:00
|
|
|
pack [buttons] ~side:`Bottom ~fill:`X;
|
|
|
|
pack [fb] ~side:`Top ~fill:`Both ~expand:true;
|
1999-11-30 06:59:39 -08:00
|
|
|
begin match signature with
|
2000-04-11 20:43:25 -07:00
|
|
|
None -> pack [ok] ~fill:`X ~expand:true
|
1999-11-30 06:59:39 -08:00
|
|
|
| Some signature ->
|
2000-04-11 20:43:25 -07:00
|
|
|
Button.configure all ~command:
|
1999-11-30 06:59:39 -08:00
|
|
|
begin fun () ->
|
2000-04-11 20:43:25 -07:00
|
|
|
view_signature signature ~title ~env ?path
|
1999-11-30 06:59:39 -08:00
|
|
|
end;
|
2000-04-11 20:43:25 -07:00
|
|
|
pack [ok; all] ~side:`Right ~fill:`X ~expand:true
|
1999-11-30 06:59:39 -08:00
|
|
|
end;
|
|
|
|
begin match path with None -> ()
|
|
|
|
| Some path ->
|
|
|
|
let frame = Frame.create tl in
|
2000-04-11 20:43:25 -07:00
|
|
|
pack [frame] ~side:`Bottom ~fill:`X;
|
1999-11-30 06:59:39 -08:00
|
|
|
add_shown_module path
|
2000-04-11 20:43:25 -07:00
|
|
|
~widgets:{ mw_frame = frame; mw_detach = detach;
|
1999-11-30 06:59:39 -08:00
|
|
|
mw_edit = edit; mw_intf = intf }
|
|
|
|
end
|
|
|
|
|
|
|
|
let search_which = ref "itself"
|
|
|
|
|
|
|
|
let search_symbol () =
|
|
|
|
if !module_list = [] then
|
2000-04-11 20:43:25 -07:00
|
|
|
module_list := Sort.list ~order:(<) (list_modules ~path:!Config.load_path);
|
1999-11-30 06:59:39 -08:00
|
|
|
let tl = Jg_toplevel.titled "Search symbol" in
|
|
|
|
Jg_bind.escape_destroy tl;
|
2000-04-11 20:43:25 -07:00
|
|
|
let ew = Entry.create tl ~width:30 in
|
1999-11-30 06:59:39 -08:00
|
|
|
let choice = Frame.create tl
|
2000-04-11 20:43:25 -07:00
|
|
|
and which = Textvariable.create ~on:tl () in
|
|
|
|
let itself = Radiobutton.create choice ~text:"Itself"
|
|
|
|
~variable:which ~value:"itself"
|
|
|
|
and extype = Radiobutton.create choice ~text:"Exact type"
|
|
|
|
~variable:which ~value:"exact"
|
|
|
|
and iotype = Radiobutton.create choice ~text:"Included type"
|
|
|
|
~variable:which ~value:"iotype"
|
1999-11-30 06:59:39 -08:00
|
|
|
and buttons = Frame.create tl in
|
2000-04-11 20:43:25 -07:00
|
|
|
let search = Button.create buttons ~text:"Search" ~command:
|
1999-11-30 06:59:39 -08:00
|
|
|
begin fun () ->
|
|
|
|
search_which := Textvariable.get which;
|
|
|
|
let text = Entry.get ew in
|
|
|
|
try if text = "" then () else
|
1999-12-07 07:01:12 -08:00
|
|
|
let l =
|
|
|
|
match !search_which with
|
|
|
|
"itself" -> search_string_symbol text
|
2000-04-11 20:43:25 -07:00
|
|
|
| "iotype" -> search_string_type text ~mode:`included
|
|
|
|
| "exact" -> search_string_type text ~mode:`exact
|
1999-12-07 07:01:12 -08:00
|
|
|
| _ -> assert false
|
1999-11-30 06:59:39 -08:00
|
|
|
in
|
|
|
|
if l <> [] then
|
2000-04-11 20:43:25 -07:00
|
|
|
choose_symbol ~title:"Choose symbol" ~env:!start_env l
|
1999-11-30 06:59:39 -08:00
|
|
|
with Searchid.Error (s,e) ->
|
|
|
|
Entry.selection_clear ew;
|
2000-04-11 20:43:25 -07:00
|
|
|
Entry.selection_range ew ~start:(`Num s) ~stop:(`Num e);
|
|
|
|
Entry.xview_index ew ~index:(`Num s)
|
1999-11-30 06:59:39 -08:00
|
|
|
end
|
2000-04-11 20:43:25 -07:00
|
|
|
and ok = Jg_button.create_destroyer tl ~parent:buttons ~text:"Cancel" in
|
1999-11-30 06:59:39 -08:00
|
|
|
|
|
|
|
Focus.set ew;
|
2000-04-11 20:43:25 -07:00
|
|
|
Jg_bind.return_invoke ew ~button:search;
|
2000-04-02 18:57:52 -07:00
|
|
|
Textvariable.set which !search_which;
|
2000-04-11 20:43:25 -07:00
|
|
|
pack [itself; extype; iotype] ~side:`Left ~anchor:`W;
|
|
|
|
pack [search; ok] ~side:`Left ~fill:`X ~expand:true;
|
1999-11-30 06:59:39 -08:00
|
|
|
pack [coe ew; coe choice; coe buttons]
|
2000-04-11 20:43:25 -07:00
|
|
|
~side:`Top ~fill:`X ~expand:true
|
1999-11-30 06:59:39 -08:00
|
|
|
|
2000-04-11 20:43:25 -07:00
|
|
|
let view_defined modlid ~env =
|
1999-11-30 06:59:39 -08:00
|
|
|
try match lookup_module modlid env with
|
|
|
|
path, Tmty_signature sign ->
|
|
|
|
let ident_of_decl = function
|
|
|
|
Tsig_value (id, _) -> Lident (Ident.name id), Pvalue
|
|
|
|
| Tsig_type (id, _) -> Lident (Ident.name id), Ptype
|
|
|
|
| Tsig_exception (id, _) -> Ldot (modlid, Ident.name id), Pconstructor
|
|
|
|
| Tsig_module (id, _) -> Lident (Ident.name id), Pmodule
|
|
|
|
| Tsig_modtype (id, _) -> Lident (Ident.name id), Pmodtype
|
|
|
|
| Tsig_class (id, _) -> Lident (Ident.name id), Pclass
|
|
|
|
| Tsig_cltype (id, _) -> Lident (Ident.name id), Pcltype
|
|
|
|
in
|
|
|
|
let rec iter_sign sign idents =
|
|
|
|
match sign with
|
|
|
|
[] -> List.rev idents
|
|
|
|
| decl :: rem ->
|
|
|
|
let rem = match decl, rem with
|
|
|
|
Tsig_class _, cty :: ty1 :: ty2 :: rem -> rem
|
|
|
|
| Tsig_cltype _, ty1 :: ty2 :: rem -> rem
|
|
|
|
| _, rem -> rem
|
|
|
|
in iter_sign rem (ident_of_decl decl :: idents)
|
|
|
|
in
|
|
|
|
let l = iter_sign sign [] in
|
2000-04-11 20:43:25 -07:00
|
|
|
choose_symbol l ~title:(string_of_path path) ~signature:sign
|
|
|
|
~env:(open_signature path sign env) ~path
|
1999-11-30 06:59:39 -08:00
|
|
|
| _ -> ()
|
|
|
|
with Not_found -> ()
|
|
|
|
| Env.Error err ->
|
2000-04-11 20:43:25 -07:00
|
|
|
let tl, tw, finish = Jg_message.formatted ~title:"Error!" () in
|
2000-03-06 14:12:09 -08:00
|
|
|
Env.report_error Format.std_formatter err;
|
1999-11-30 06:59:39 -08:00
|
|
|
finish ()
|
|
|
|
|
|
|
|
let close_all_views () =
|
|
|
|
List.iter !top_widgets
|
2000-04-11 20:43:25 -07:00
|
|
|
~f:(fun tl -> try destroy tl with Protocol.TkError _ -> ());
|
1999-11-30 06:59:39 -08:00
|
|
|
top_widgets := []
|
|
|
|
|
|
|
|
|
|
|
|
let shell_counter = ref 1
|
|
|
|
let default_shell = ref "ocaml"
|
|
|
|
|
|
|
|
let start_shell () =
|
|
|
|
let tl = Jg_toplevel.titled "Start New Shell" in
|
2000-04-11 20:43:25 -07:00
|
|
|
Wm.transient_set tl ~master:Widget.default_toplevel;
|
1999-11-30 06:59:39 -08:00
|
|
|
let input = Frame.create tl
|
|
|
|
and buttons = Frame.create tl in
|
2000-04-11 20:43:25 -07:00
|
|
|
let ok = Button.create buttons ~text:"Ok"
|
|
|
|
and cancel = Jg_button.create_destroyer tl ~parent:buttons ~text:"Cancel"
|
1999-11-30 06:59:39 -08:00
|
|
|
and labels = Frame.create input
|
|
|
|
and entries = Frame.create input in
|
2000-04-11 20:43:25 -07:00
|
|
|
let l1 = Label.create labels ~text:"Command:"
|
|
|
|
and l2 = Label.create labels ~text:"Title:"
|
1999-11-30 06:59:39 -08:00
|
|
|
and e1 =
|
2000-04-11 20:43:25 -07:00
|
|
|
Jg_entry.create entries ~command:(fun _ -> Button.invoke ok)
|
1999-11-30 06:59:39 -08:00
|
|
|
and e2 =
|
2000-04-11 20:43:25 -07:00
|
|
|
Jg_entry.create entries ~command:(fun _ -> Button.invoke ok)
|
|
|
|
and names = List.map ~f:fst (Shell.get_all ()) in
|
|
|
|
Entry.insert e1 ~index:`End ~text:!default_shell;
|
2000-04-02 18:57:52 -07:00
|
|
|
let shell_name () = "Shell #" ^ string_of_int !shell_counter in
|
|
|
|
while List.mem (shell_name ()) names do
|
1999-11-30 06:59:39 -08:00
|
|
|
incr shell_counter
|
|
|
|
done;
|
2000-04-11 20:43:25 -07:00
|
|
|
Entry.insert e2 ~index:`End ~text:(shell_name ());
|
|
|
|
Button.configure ok ~command:(fun () ->
|
2000-04-02 18:57:52 -07:00
|
|
|
if not (List.mem (Entry.get e2) names) then begin
|
1999-11-30 06:59:39 -08:00
|
|
|
default_shell := Entry.get e1;
|
2000-04-11 20:43:25 -07:00
|
|
|
Shell.f ~prog:!default_shell ~title:(Entry.get e2);
|
1999-11-30 06:59:39 -08:00
|
|
|
destroy tl
|
|
|
|
end);
|
2000-04-11 20:43:25 -07:00
|
|
|
pack [l1;l2] ~side:`Top ~anchor:`W;
|
|
|
|
pack [e1;e2] ~side:`Top ~fill:`X ~expand:true;
|
|
|
|
pack [labels;entries] ~side:`Left ~fill:`X ~expand:true;
|
|
|
|
pack [ok;cancel] ~side:`Left ~fill:`X ~expand:true;
|
|
|
|
pack [input;buttons] ~side:`Top ~fill:`X ~expand:true
|
1999-11-30 06:59:39 -08:00
|
|
|
|
2000-04-11 20:43:25 -07:00
|
|
|
let f ?(dir=Unix.getcwd()) ?on () =
|
1999-11-30 06:59:39 -08:00
|
|
|
let tl = match on with
|
|
|
|
None ->
|
|
|
|
let tl = Jg_toplevel.titled "Module viewer" in
|
2000-02-15 02:09:55 -08:00
|
|
|
ignore (Jg_bind.escape_destroy tl); coe tl
|
1999-11-30 06:59:39 -08:00
|
|
|
| Some top ->
|
2000-04-11 20:43:25 -07:00
|
|
|
Wm.title_set top ~title:"OCamlBrowser";
|
|
|
|
Wm.iconname_set top ~name:"OCamlBrowser";
|
1999-11-30 06:59:39 -08:00
|
|
|
let tl = Frame.create top in
|
2000-04-11 20:43:25 -07:00
|
|
|
pack [tl] ~expand:true ~fill:`Both;
|
1999-11-30 06:59:39 -08:00
|
|
|
coe tl
|
|
|
|
in
|
2000-04-11 20:43:25 -07:00
|
|
|
let menus = Frame.create tl ~name:"menubar" in
|
|
|
|
let filemenu = new Jg_menu.c "File" ~parent:menus
|
|
|
|
and modmenu = new Jg_menu.c "Modules" ~parent:menus in
|
1999-11-30 06:59:39 -08:00
|
|
|
let fmbox, mbox, msb = Jg_box.create_with_scrollbar tl in
|
|
|
|
|
2000-04-11 20:43:25 -07:00
|
|
|
Jg_box.add_completion mbox ~nocase:true ~action:
|
1999-11-30 06:59:39 -08:00
|
|
|
begin fun index ->
|
2000-04-11 20:43:25 -07:00
|
|
|
view_defined (Lident (Listbox.get mbox ~index)) ~env:!start_env
|
1999-11-30 06:59:39 -08:00
|
|
|
end;
|
|
|
|
Setpath.add_update_hook (fun () -> reset_modules mbox);
|
|
|
|
|
|
|
|
let ew = Entry.create tl in
|
|
|
|
let buttons = Frame.create tl in
|
2000-04-11 20:43:25 -07:00
|
|
|
let search = Button.create buttons ~text:"Search" ~pady:1 ~command:
|
1999-11-30 06:59:39 -08:00
|
|
|
begin fun () ->
|
|
|
|
let s = Entry.get ew in
|
|
|
|
let is_type = ref false and is_long = ref false in
|
|
|
|
for i = 0 to String.length s - 2 do
|
|
|
|
if s.[i] = '-' & s.[i+1] = '>' then is_type := true;
|
|
|
|
if s.[i] = '.' then is_long := true
|
|
|
|
done;
|
|
|
|
let l =
|
|
|
|
if !is_type then try
|
2000-04-11 20:43:25 -07:00
|
|
|
search_string_type ~mode:`included s
|
1999-11-30 06:59:39 -08:00
|
|
|
with Searchid.Error (start,stop) ->
|
2000-04-11 20:43:25 -07:00
|
|
|
Entry.icursor ew ~index:(`Num start); []
|
1999-11-30 06:59:39 -08:00
|
|
|
else if !is_long then
|
|
|
|
search_string_symbol s
|
|
|
|
else
|
|
|
|
search_pattern_symbol s in
|
|
|
|
match l with [] -> ()
|
2000-04-11 20:43:25 -07:00
|
|
|
| [lid,kind] when !is_long -> view_symbol lid ~kind ~env:!start_env
|
|
|
|
| _ -> choose_symbol ~title:"Choose symbol" ~env:!start_env l
|
1999-11-30 06:59:39 -08:00
|
|
|
end
|
|
|
|
and close =
|
2000-04-11 20:43:25 -07:00
|
|
|
Button.create buttons ~text:"Close all" ~pady:1 ~command:close_all_views
|
1999-11-30 06:59:39 -08:00
|
|
|
in
|
|
|
|
(* bindings *)
|
|
|
|
Jg_bind.enter_focus ew;
|
2000-04-11 20:43:25 -07:00
|
|
|
Jg_bind.return_invoke ew ~button:search;
|
|
|
|
bind close ~events:[`Modified([`Double], `ButtonPressDetail 1)]
|
|
|
|
~action:(fun _ -> destroy tl);
|
1999-11-30 06:59:39 -08:00
|
|
|
|
|
|
|
(* File menu *)
|
|
|
|
filemenu#add_command "Open..."
|
2000-04-11 20:43:25 -07:00
|
|
|
~command:(fun () -> !editor_ref ~opendialog:true ());
|
|
|
|
filemenu#add_command "Editor..." ~command:(fun () -> !editor_ref ());
|
|
|
|
filemenu#add_command "Shell..." ~command:start_shell;
|
|
|
|
filemenu#add_command "Quit" ~command:(fun () -> destroy tl);
|
1999-11-30 06:59:39 -08:00
|
|
|
|
|
|
|
(* modules menu *)
|
2000-02-15 02:09:55 -08:00
|
|
|
modmenu#add_command "Path editor..."
|
2000-04-11 20:43:25 -07:00
|
|
|
~command:(fun () -> Setpath.set ~dir);
|
1999-11-30 06:59:39 -08:00
|
|
|
modmenu#add_command "Reset cache"
|
2000-04-11 20:43:25 -07:00
|
|
|
~command:(fun () -> reset_modules mbox; Env.reset_cache ());
|
|
|
|
modmenu#add_command "Search symbol..." ~command:search_symbol;
|
1999-11-30 06:59:39 -08:00
|
|
|
|
2000-04-11 20:43:25 -07:00
|
|
|
pack [filemenu#button; modmenu#button] ~side:`Left ~ipadx:5 ~anchor:`W;
|
|
|
|
pack [menus] ~side:`Top ~fill:`X;
|
|
|
|
pack [close; search] ~fill:`X ~side:`Right ~expand:true;
|
|
|
|
pack [coe buttons; coe ew] ~fill:`X ~side:`Bottom;
|
|
|
|
pack [msb] ~side:`Right ~fill:`Y;
|
|
|
|
pack [mbox] ~side:`Left ~fill:`Both ~expand:true;
|
|
|
|
pack [fmbox] ~fill:`Both ~expand:true ~side:`Top;
|
1999-11-30 06:59:39 -08:00
|
|
|
reset_modules mbox
|