| 1 |
class box () = |
| 2 |
let vbox = GPack.vbox ~homogeneous:false () in |
| 3 |
let wtool1 = |
| 4 |
GButton.toolbar ~orientation:`HORIZONTAL ~style:`BOTH ~space_style:`EMPTY |
| 5 |
~tooltips:true ~button_relief:`NORMAL |
| 6 |
~packing:(vbox#pack ~expand:false ~fill:true) () |
| 7 |
in |
| 8 |
let wtool2 = |
| 9 |
GButton.toolbar ~orientation:`HORIZONTAL ~style:`BOTH ~space_style:`EMPTY |
| 10 |
~tooltips:true ~button_relief:`NORMAL |
| 11 |
~packing:(vbox#pack ~expand:false ~fill:true) () |
| 12 |
in |
| 13 |
let box_fields = |
| 14 |
GPack.vbox ~homogeneous:false |
| 15 |
~packing:(vbox#pack ~expand:false ~fill:true) () |
| 16 |
in |
| 17 |
let _anonymous_container_1 = |
| 18 |
GPack.hbox ~homogeneous:false |
| 19 |
~packing:(vbox#pack ~expand:false ~fill:true) () |
| 20 |
in |
| 21 |
let _ = |
| 22 |
GMisc.label ~text:"Network : " |
| 23 |
~justify:`LEFT ~line_wrap:true |
| 24 |
~packing:(_anonymous_container_1#pack ~expand:false ~fill:true) () |
| 25 |
in |
| 26 |
let (nets, nets_wcombo) = Gui_global.networks_combo true in |
| 27 |
let _ = |
| 28 |
_anonymous_container_1#pack nets_wcombo#coerce ~padding: 1 |
| 29 |
in |
| 30 |
let _anonymous_container_2 = |
| 31 |
GPack.hbox ~homogeneous:false |
| 32 |
~packing:(vbox#pack ~expand:false ~fill:true) () |
| 33 |
in |
| 34 |
let _ = |
| 35 |
GMisc.label ~text:(Gettext.gettext Gui_messages.max_hits ^ " : ") |
| 36 |
~justify:`LEFT ~line_wrap:true |
| 37 |
~packing:(_anonymous_container_2#pack ~expand:false ~fill:true) () |
| 38 |
in |
| 39 |
let we_max_hits = |
| 40 |
GEdit.entry ~text:"200" ~visibility:true ~editable:true |
| 41 |
~packing:(_anonymous_container_2#pack ~expand:false ~fill:true) () |
| 42 |
in |
| 43 |
let hbox_show = |
| 44 |
GPack.hbox ~homogeneous:false |
| 45 |
~packing:(vbox#pack ~expand:false ~fill:true) () |
| 46 |
in |
| 47 |
let wchk_show = |
| 48 |
GButton.check_button ~active:false ~draw_indicator:true |
| 49 |
~packing:(hbox_show#pack ~expand:false ~fill:true) () |
| 50 |
in |
| 51 |
let _ = |
| 52 |
GMisc.label ~text:(Gettext.gettext Gui_messages.show_hidden_fields) |
| 53 |
~justify:`LEFT ~line_wrap:true ~xpad:2 |
| 54 |
~packing:(hbox_show#pack ~expand:false ~fill:true) () |
| 55 |
in |
| 56 |
object |
| 57 |
val vbox = vbox |
| 58 |
val wtool1 = wtool1 |
| 59 |
val wtool2 = wtool2 |
| 60 |
val box_fields = box_fields |
| 61 |
val we_max_hits = we_max_hits |
| 62 |
val hbox_show = hbox_show |
| 63 |
val wchk_show = wchk_show |
| 64 |
val nets = nets |
| 65 |
val nets_wcombo = nets_wcombo |
| 66 |
method vbox = vbox |
| 67 |
method wtool1 = wtool1 |
| 68 |
method wtool2 = wtool2 |
| 69 |
method box_fields = box_fields |
| 70 |
method we_max_hits = we_max_hits |
| 71 |
method hbox_show = hbox_show |
| 72 |
method wchk_show = wchk_show |
| 73 |
method coerce = vbox#coerce |
| 74 |
end |
| 75 |
class paned () = |
| 76 |
let wnote_queries = |
| 77 |
GPack.notebook ~tab_pos:`LEFT ~show_tabs:true ~homogeneous_tabs:true |
| 78 |
~show_border:true ~scrollable:true ~popup:true () |
| 79 |
in |
| 80 |
object |
| 81 |
val wnote_queries = wnote_queries |
| 82 |
method wnote_queries = wnote_queries |
| 83 |
method coerce = wnote_queries#coerce |
| 84 |
end |
| 85 |
|