X-Git-Url: http://matita.cs.unibo.it/gitweb/?a=blobdiff_plain;f=helm%2Fmatita%2FmatitaGeneratedGui.ml;h=cb72003911751663dc69a2441870910f25f20a79;hb=ac7687ce66526f905874ed99a845223c853c558a;hp=5ef77f8f39e7a829f8a199e671bb8a7db5be782e;hpb=481992ea591bf53cba758a96e7d42e9cdce7e129;p=helm.git diff --git a/helm/matita/matitaGeneratedGui.ml b/helm/matita/matitaGeneratedGui.ml index 5ef77f8f3..cb7200391 100644 --- a/helm/matita/matitaGeneratedGui.ml +++ b/helm/matita/matitaGeneratedGui.ml @@ -12,6 +12,10 @@ class mainWin ?(file="matita.glade") ?domain ?autoconnect(*=true*) () = new GWindow.window (GtkWindow.Window.cast (Glade.get_widget_msg ~name:"MainWin" ~info:"GtkWindow" xmldata)) method mainWin = mainWin + val mainWinEventBox = + new GBin.event_box (GtkBin.EventBox.cast + (Glade.get_widget_msg ~name:"MainWinEventBox" ~info:"GtkEventBox" xmldata)) + method mainWinEventBox = mainWinEventBox val mainWinShape = new GPack.box (GtkPack.Box.cast (Glade.get_widget_msg ~name:"MainWinShape" ~info:"GtkVBox" xmldata)) @@ -32,10 +36,10 @@ class mainWin ?(file="matita.glade") ?domain ?autoconnect(*=true*) () = new GMenu.image_menu_item (GtkMenu.ImageMenuItem.cast (Glade.get_widget_msg ~name:"NewMenu" ~info:"GtkImageMenuItem" xmldata)) method newMenu = newMenu - val image76 = + val image128 = new GMisc.image (GtkMisc.Image.cast - (Glade.get_widget_msg ~name:"image76" ~info:"GtkImage" xmldata)) - method image76 = image76 + (Glade.get_widget_msg ~name:"image128" ~info:"GtkImage" xmldata)) + method image128 = image128 val newMenu_menu = new GMenu.menu (GtkMenu.Menu.cast (Glade.get_widget_msg ~name:"NewMenu_menu" ~info:"GtkMenu" xmldata)) @@ -52,38 +56,38 @@ class mainWin ?(file="matita.glade") ?domain ?autoconnect(*=true*) () = new GMenu.image_menu_item (GtkMenu.ImageMenuItem.cast (Glade.get_widget_msg ~name:"OpenMenuItem" ~info:"GtkImageMenuItem" xmldata)) method openMenuItem = openMenuItem - val image77 = + val image129 = new GMisc.image (GtkMisc.Image.cast - (Glade.get_widget_msg ~name:"image77" ~info:"GtkImage" xmldata)) - method image77 = image77 + (Glade.get_widget_msg ~name:"image129" ~info:"GtkImage" xmldata)) + method image129 = image129 val saveMenuItem = new GMenu.image_menu_item (GtkMenu.ImageMenuItem.cast (Glade.get_widget_msg ~name:"SaveMenuItem" ~info:"GtkImageMenuItem" xmldata)) method saveMenuItem = saveMenuItem - val image78 = + val image130 = new GMisc.image (GtkMisc.Image.cast - (Glade.get_widget_msg ~name:"image78" ~info:"GtkImage" xmldata)) - method image78 = image78 + (Glade.get_widget_msg ~name:"image130" ~info:"GtkImage" xmldata)) + method image130 = image130 val saveAsMenuItem = new GMenu.image_menu_item (GtkMenu.ImageMenuItem.cast (Glade.get_widget_msg ~name:"SaveAsMenuItem" ~info:"GtkImageMenuItem" xmldata)) method saveAsMenuItem = saveAsMenuItem - val image79 = + val image131 = new GMisc.image (GtkMisc.Image.cast - (Glade.get_widget_msg ~name:"image79" ~info:"GtkImage" xmldata)) - method image79 = image79 + (Glade.get_widget_msg ~name:"image131" ~info:"GtkImage" xmldata)) + method image131 = image131 val separator1 = new GMenu.menu_item (GtkMenu.MenuItem.cast - (Glade.get_widget_msg ~name:"separator1" ~info:"GtkMenuItem" xmldata)) + (Glade.get_widget_msg ~name:"separator1" ~info:"GtkSeparatorMenuItem" xmldata)) method separator1 = separator1 val quitMenuItem = new GMenu.image_menu_item (GtkMenu.ImageMenuItem.cast (Glade.get_widget_msg ~name:"QuitMenuItem" ~info:"GtkImageMenuItem" xmldata)) method quitMenuItem = quitMenuItem - val image80 = + val image132 = new GMisc.image (GtkMisc.Image.cast - (Glade.get_widget_msg ~name:"image80" ~info:"GtkImage" xmldata)) - method image80 = image80 + (Glade.get_widget_msg ~name:"image132" ~info:"GtkImage" xmldata)) + method image132 = image132 val editMenu = new GMenu.menu_item (GtkMenu.MenuItem.cast (Glade.get_widget_msg ~name:"EditMenu" ~info:"GtkMenuItem" xmldata)) @@ -104,6 +108,14 @@ class mainWin ?(file="matita.glade") ?domain ?autoconnect(*=true*) () = new GMenu.check_menu_item (GtkMenu.CheckMenuItem.cast (Glade.get_widget_msg ~name:"ShowProofMenuItem" ~info:"GtkCheckMenuItem" xmldata)) method showProofMenuItem = showProofMenuItem + val showCheckMenuItem = + new GMenu.check_menu_item (GtkMenu.CheckMenuItem.cast + (Glade.get_widget_msg ~name:"ShowCheckMenuItem" ~info:"GtkCheckMenuItem" xmldata)) + method showCheckMenuItem = showCheckMenuItem + val showScriptMenuItem = + new GMenu.check_menu_item (GtkMenu.CheckMenuItem.cast + (Glade.get_widget_msg ~name:"ShowScriptMenuItem" ~info:"GtkCheckMenuItem" xmldata)) + method showScriptMenuItem = showScriptMenuItem val debugMenu = new GMenu.menu_item (GtkMenu.MenuItem.cast (Glade.get_widget_msg ~name:"DebugMenu" ~info:"GtkMenuItem" xmldata)) @@ -114,7 +126,7 @@ class mainWin ?(file="matita.glade") ?domain ?autoconnect(*=true*) () = method debugMenu_menu = debugMenu_menu val separator2 = new GMenu.menu_item (GtkMenu.MenuItem.cast - (Glade.get_widget_msg ~name:"separator2" ~info:"GtkMenuItem" xmldata)) + (Glade.get_widget_msg ~name:"separator2" ~info:"GtkSeparatorMenuItem" xmldata)) method separator2 = separator2 val helpMenu = new GMenu.menu_item (GtkMenu.MenuItem.cast @@ -136,6 +148,18 @@ class mainWin ?(file="matita.glade") ?domain ?autoconnect(*=true*) () = new GBin.scrolled_window (GtkBin.ScrolledWindow.cast (Glade.get_widget_msg ~name:"ScrolledSequents" ~info:"GtkScrolledWindow" xmldata)) method scrolledSequents = scrolledSequents + val viewport1 = + new GBin.viewport (GtkBin.Viewport.cast + (Glade.get_widget_msg ~name:"viewport1" ~info:"GtkViewport" xmldata)) + method viewport1 = viewport1 + val sequentsNotebook = + new GPack.notebook (GtkPack.Notebook.cast + (Glade.get_widget_msg ~name:"SequentsNotebook" ~info:"GtkNotebook" xmldata)) + method sequentsNotebook = sequentsNotebook + val consoleEventBox = + new GBin.event_box (GtkBin.EventBox.cast + (Glade.get_widget_msg ~name:"ConsoleEventBox" ~info:"GtkEventBox" xmldata)) + method consoleEventBox = consoleEventBox val scrolledConsole = new GBin.scrolled_window (GtkBin.ScrolledWindow.cast (Glade.get_widget_msg ~name:"ScrolledConsole" ~info:"GtkScrolledWindow" xmldata)) @@ -145,7 +169,7 @@ class mainWin ?(file="matita.glade") ?domain ?autoconnect(*=true*) () = (Glade.get_widget_msg ~name:"MainStatusBar" ~info:"GtkStatusbar" xmldata)) method mainStatusBar = mainStatusBar method reparent parent = - mainWinShape#misc#reparent parent; + mainWinEventBox#misc#reparent parent; toplevel#destroy () method check_widgets () = () end @@ -169,10 +193,6 @@ class proofWin ?(file="matita.glade") ?domain ?autoconnect(*=true*) () = new GBin.scrolled_window (GtkBin.ScrolledWindow.cast (Glade.get_widget_msg ~name:"ScrolledProof" ~info:"GtkScrolledWindow" xmldata)) method scrolledProof = scrolledProof - val viewport1 = - new GBin.viewport (GtkBin.Viewport.cast - (Glade.get_widget_msg ~name:"viewport1" ~info:"GtkViewport" xmldata)) - method viewport1 = viewport1 method reparent parent = proofWinEventBox#misc#reparent parent; toplevel#destroy () @@ -190,14 +210,14 @@ class fileSelectionWin ?(file="matita.glade") ?domain ?autoconnect(*=true*) () = new GWindow.file_selection (GtkWindow.FileSelection.cast (Glade.get_widget_msg ~name:"FileSelectionWin" ~info:"GtkFileSelection" xmldata)) method fileSelectionWin = fileSelectionWin - val cancel_button1 = + val fileSelCancelButton = new GButton.button (GtkButton.Button.cast - (Glade.get_widget_msg ~name:"cancel_button1" ~info:"GtkButton" xmldata)) - method cancel_button1 = cancel_button1 - val ok_button1 = + (Glade.get_widget_msg ~name:"fileSelCancelButton" ~info:"GtkButton" xmldata)) + method fileSelCancelButton = fileSelCancelButton + val fileSelOkButton = new GButton.button (GtkButton.Button.cast - (Glade.get_widget_msg ~name:"ok_button1" ~info:"GtkButton" xmldata)) - method ok_button1 = ok_button1 + (Glade.get_widget_msg ~name:"fileSelOkButton" ~info:"GtkButton" xmldata)) + method fileSelOkButton = fileSelOkButton method check_widgets () = () end class toolBarWin ?(file="matita.glade") ?domain ?autoconnect(*=true*) () = @@ -220,6 +240,10 @@ class toolBarWin ?(file="matita.glade") ?domain ?autoconnect(*=true*) () = new GPack.box (GtkPack.Box.cast (Glade.get_widget_msg ~name:"vbox1" ~info:"GtkVBox" xmldata)) method vbox1 = vbox1 + val vbuttonbox1 = + new GPack.button_box (GtkPack.BBox.cast + (Glade.get_widget_msg ~name:"vbuttonbox1" ~info:"GtkVButtonBox" xmldata)) + method vbuttonbox1 = vbuttonbox1 val button1 = new GButton.button (GtkButton.Button.cast (Glade.get_widget_msg ~name:"button1" ~info:"GtkButton" xmldata)) @@ -245,18 +269,22 @@ class confirmationDialog ?(file="matita.glade") ?domain ?autoconnect(*=true*) () let xmldata = Glade.create ~file ~root:"ConfirmationDialog" ?domain () in object (self) inherit Glade.xml ?autoconnect xmldata - val toplevel : [`NONE | `DELETE_EVENT | `ID of int] GWindow.dialog = - new GWindow.dialog (GtkWindow.Dialog.cast + val toplevel = + new GWindow.dialog_any (GtkWindow.Dialog.cast (Glade.get_widget_msg ~name:"ConfirmationDialog" ~info:"GtkDialog" xmldata)) method toplevel = toplevel - val confirmationDialog : [`NONE | `DELETE_EVENT | `ID of int] GWindow.dialog = - new GWindow.dialog (GtkWindow.Dialog.cast + val confirmationDialog = + new GWindow.dialog_any (GtkWindow.Dialog.cast (Glade.get_widget_msg ~name:"ConfirmationDialog" ~info:"GtkDialog" xmldata)) method confirmationDialog = confirmationDialog val dialog_vbox1 = new GPack.box (GtkPack.Box.cast (Glade.get_widget_msg ~name:"dialog-vbox1" ~info:"GtkVBox" xmldata)) method dialog_vbox1 = dialog_vbox1 + val dialog_action_area1 = + new GPack.button_box (GtkPack.BBox.cast + (Glade.get_widget_msg ~name:"dialog-action_area1" ~info:"GtkHButtonBox" xmldata)) + method dialog_action_area1 = dialog_action_area1 val confirmationDialogCancelButton = new GButton.button (GtkButton.Button.cast (Glade.get_widget_msg ~name:"ConfirmationDialogCancelButton" ~info:"GtkButton" xmldata)) @@ -278,22 +306,30 @@ class aboutWin ?(file="matita.glade") ?domain ?autoconnect(*=true*) () = let xmldata = Glade.create ~file ~root:"AboutWin" ?domain () in object (self) inherit Glade.xml ?autoconnect xmldata - val toplevel : [`NONE | `DELETE_EVENT | `ID of int] GWindow.dialog = - new GWindow.dialog (GtkWindow.Dialog.cast + val toplevel = + new GWindow.dialog_any (GtkWindow.Dialog.cast (Glade.get_widget_msg ~name:"AboutWin" ~info:"GtkDialog" xmldata)) method toplevel = toplevel - val aboutWin : [`NONE | `DELETE_EVENT | `ID of int] GWindow.dialog = - new GWindow.dialog (GtkWindow.Dialog.cast + val aboutWin = + new GWindow.dialog_any (GtkWindow.Dialog.cast (Glade.get_widget_msg ~name:"AboutWin" ~info:"GtkDialog" xmldata)) method aboutWin = aboutWin val dialog_vbox2 = new GPack.box (GtkPack.Box.cast (Glade.get_widget_msg ~name:"dialog-vbox2" ~info:"GtkVBox" xmldata)) method dialog_vbox2 = dialog_vbox2 + val dialog_action_area2 = + new GPack.button_box (GtkPack.BBox.cast + (Glade.get_widget_msg ~name:"dialog-action_area2" ~info:"GtkHButtonBox" xmldata)) + method dialog_action_area2 = dialog_action_area2 val aboutDismissButton = new GButton.button (GtkButton.Button.cast (Glade.get_widget_msg ~name:"AboutDismissButton" ~info:"GtkButton" xmldata)) method aboutDismissButton = aboutDismissButton + val aboutLabel = + new GMisc.label (GtkMisc.Label.cast + (Glade.get_widget_msg ~name:"AboutLabel" ~info:"GtkLabel" xmldata)) + method aboutLabel = aboutLabel method reparent parent = dialog_vbox2#misc#reparent parent; toplevel#destroy () @@ -303,18 +339,22 @@ class uriChoiceDialog ?(file="matita.glade") ?domain ?autoconnect(*=true*) () = let xmldata = Glade.create ~file ~root:"UriChoiceDialog" ?domain () in object (self) inherit Glade.xml ?autoconnect xmldata - val toplevel : [`NONE | `DELETE_EVENT | `ID of int] GWindow.dialog = - new GWindow.dialog (GtkWindow.Dialog.cast + val toplevel = + new GWindow.dialog_any (GtkWindow.Dialog.cast (Glade.get_widget_msg ~name:"UriChoiceDialog" ~info:"GtkDialog" xmldata)) method toplevel = toplevel - val uriChoiceDialog : [`NONE | `DELETE_EVENT | `ID of int] GWindow.dialog = - new GWindow.dialog (GtkWindow.Dialog.cast + val uriChoiceDialog = + new GWindow.dialog_any (GtkWindow.Dialog.cast (Glade.get_widget_msg ~name:"UriChoiceDialog" ~info:"GtkDialog" xmldata)) method uriChoiceDialog = uriChoiceDialog val dialog_vbox3 = new GPack.box (GtkPack.Box.cast (Glade.get_widget_msg ~name:"dialog-vbox3" ~info:"GtkVBox" xmldata)) method dialog_vbox3 = dialog_vbox3 + val dialog_action_area3 = + new GPack.button_box (GtkPack.BBox.cast + (Glade.get_widget_msg ~name:"dialog-action_area3" ~info:"GtkHButtonBox" xmldata)) + method dialog_action_area3 = dialog_action_area3 val uriChoiceAbortButton = new GButton.button (GtkButton.Button.cast (Glade.get_widget_msg ~name:"UriChoiceAbortButton" ~info:"GtkButton" xmldata)) @@ -400,18 +440,22 @@ class interpChoiceDialog ?(file="matita.glade") ?domain ?autoconnect(*=true*) () let xmldata = Glade.create ~file ~root:"InterpChoiceDialog" ?domain () in object (self) inherit Glade.xml ?autoconnect xmldata - val toplevel : [`NONE | `DELETE_EVENT | `ID of int] GWindow.dialog = - new GWindow.dialog (GtkWindow.Dialog.cast + val toplevel = + new GWindow.dialog_any (GtkWindow.Dialog.cast (Glade.get_widget_msg ~name:"InterpChoiceDialog" ~info:"GtkDialog" xmldata)) method toplevel = toplevel - val interpChoiceDialog : [`NONE | `DELETE_EVENT | `ID of int] GWindow.dialog = - new GWindow.dialog (GtkWindow.Dialog.cast + val interpChoiceDialog = + new GWindow.dialog_any (GtkWindow.Dialog.cast (Glade.get_widget_msg ~name:"InterpChoiceDialog" ~info:"GtkDialog" xmldata)) method interpChoiceDialog = interpChoiceDialog val dialog_vbox4 = new GPack.box (GtkPack.Box.cast (Glade.get_widget_msg ~name:"dialog-vbox4" ~info:"GtkVBox" xmldata)) method dialog_vbox4 = dialog_vbox4 + val dialog_action_area4 = + new GPack.button_box (GtkPack.BBox.cast + (Glade.get_widget_msg ~name:"dialog-action_area4" ~info:"GtkHButtonBox" xmldata)) + method dialog_action_area4 = dialog_action_area4 val interpChoiceHelpButton = new GButton.button (GtkButton.Button.cast (Glade.get_widget_msg ~name:"InterpChoiceHelpButton" ~info:"GtkButton" xmldata)) @@ -441,18 +485,22 @@ class emptyDialog ?(file="matita.glade") ?domain ?autoconnect(*=true*) () = let xmldata = Glade.create ~file ~root:"EmptyDialog" ?domain () in object (self) inherit Glade.xml ?autoconnect xmldata - val toplevel : [`NONE | `DELETE_EVENT | `ID of int] GWindow.dialog = - new GWindow.dialog (GtkWindow.Dialog.cast + val toplevel = + new GWindow.dialog_any (GtkWindow.Dialog.cast (Glade.get_widget_msg ~name:"EmptyDialog" ~info:"GtkDialog" xmldata)) method toplevel = toplevel - val emptyDialog : [`NONE | `DELETE_EVENT | `ID of int] GWindow.dialog = - new GWindow.dialog (GtkWindow.Dialog.cast + val emptyDialog = + new GWindow.dialog_any (GtkWindow.Dialog.cast (Glade.get_widget_msg ~name:"EmptyDialog" ~info:"GtkDialog" xmldata)) method emptyDialog = emptyDialog val emptyDialogVBox = new GPack.box (GtkPack.Box.cast (Glade.get_widget_msg ~name:"EmptyDialogVBox" ~info:"GtkVBox" xmldata)) method emptyDialogVBox = emptyDialogVBox + val dialog_action_area5 = + new GPack.button_box (GtkPack.BBox.cast + (Glade.get_widget_msg ~name:"dialog-action_area5" ~info:"GtkHButtonBox" xmldata)) + method dialog_action_area5 = dialog_action_area5 val emptyDialogCancelButton = new GButton.button (GtkButton.Button.cast (Glade.get_widget_msg ~name:"EmptyDialogCancelButton" ~info:"GtkButton" xmldata)) @@ -470,9 +518,101 @@ class emptyDialog ?(file="matita.glade") ?domain ?autoconnect(*=true*) () = toplevel#destroy () method check_widgets () = () end +class checkWin ?(file="matita.glade") ?domain ?autoconnect(*=true*) () = + let xmldata = Glade.create ~file ~root:"CheckWin" ?domain () in + object (self) + inherit Glade.xml ?autoconnect xmldata + val toplevel = + new GWindow.window (GtkWindow.Window.cast + (Glade.get_widget_msg ~name:"CheckWin" ~info:"GtkWindow" xmldata)) + method toplevel = toplevel + val checkWin = + new GWindow.window (GtkWindow.Window.cast + (Glade.get_widget_msg ~name:"CheckWin" ~info:"GtkWindow" xmldata)) + method checkWin = checkWin + val checkWinEventBox = + new GBin.event_box (GtkBin.EventBox.cast + (Glade.get_widget_msg ~name:"CheckWinEventBox" ~info:"GtkEventBox" xmldata)) + method checkWinEventBox = checkWinEventBox + val scrolledCheck = + new GBin.scrolled_window (GtkBin.ScrolledWindow.cast + (Glade.get_widget_msg ~name:"ScrolledCheck" ~info:"GtkScrolledWindow" xmldata)) + method scrolledCheck = scrolledCheck + method reparent parent = + checkWinEventBox#misc#reparent parent; + toplevel#destroy () + method check_widgets () = () + end +class scriptWin ?(file="matita.glade") ?domain ?autoconnect(*=true*) () = + let xmldata = Glade.create ~file ~root:"ScriptWin" ?domain () in + object (self) + inherit Glade.xml ?autoconnect xmldata + val toplevel = + new GWindow.window (GtkWindow.Window.cast + (Glade.get_widget_msg ~name:"ScriptWin" ~info:"GtkWindow" xmldata)) + method toplevel = toplevel + val scriptWin = + new GWindow.window (GtkWindow.Window.cast + (Glade.get_widget_msg ~name:"ScriptWin" ~info:"GtkWindow" xmldata)) + method scriptWin = scriptWin + val scriptWinEventBox = + new GBin.event_box (GtkBin.EventBox.cast + (Glade.get_widget_msg ~name:"ScriptWinEventBox" ~info:"GtkEventBox" xmldata)) + method scriptWinEventBox = scriptWinEventBox + val vbox4 = + new GPack.box (GtkPack.Box.cast + (Glade.get_widget_msg ~name:"vbox4" ~info:"GtkVBox" xmldata)) + method vbox4 = vbox4 + val toolbar1 = + new GButton.toolbar (GtkButton.Toolbar.cast + (Glade.get_widget_msg ~name:"toolbar1" ~info:"GtkToolbar" xmldata)) + method toolbar1 = toolbar1 + val button5 = + new GButton.button (GtkButton.Button.cast + (Glade.get_widget_msg ~name:"button5" ~info:"GtkButton" xmldata)) + method button5 = button5 + val image133 = + new GMisc.image (GtkMisc.Image.cast + (Glade.get_widget_msg ~name:"image133" ~info:"GtkImage" xmldata)) + method image133 = image133 + val button6 = + new GButton.button (GtkButton.Button.cast + (Glade.get_widget_msg ~name:"button6" ~info:"GtkButton" xmldata)) + method button6 = button6 + val image134 = + new GMisc.image (GtkMisc.Image.cast + (Glade.get_widget_msg ~name:"image134" ~info:"GtkImage" xmldata)) + method image134 = image134 + val button7 = + new GButton.button (GtkButton.Button.cast + (Glade.get_widget_msg ~name:"button7" ~info:"GtkButton" xmldata)) + method button7 = button7 + val image135 = + new GMisc.image (GtkMisc.Image.cast + (Glade.get_widget_msg ~name:"image135" ~info:"GtkImage" xmldata)) + method image135 = image135 + val scrolledScript = + new GBin.scrolled_window (GtkBin.ScrolledWindow.cast + (Glade.get_widget_msg ~name:"ScrolledScript" ~info:"GtkScrolledWindow" xmldata)) + method scrolledScript = scrolledScript + val scriptTextView = + new GText.view (GtkText.View.cast + (Glade.get_widget_msg ~name:"ScriptTextView" ~info:"GtkTextView" xmldata)) + method scriptTextView = scriptTextView + method reparent parent = + scriptWinEventBox#misc#reparent parent; + toplevel#destroy () + method check_widgets () = () + end let check_all ?(show=false) () = ignore (GMain.Main.init ()); + let scriptWin = new scriptWin () in + if show then scriptWin#toplevel#show (); + scriptWin#check_widgets (); + let checkWin = new checkWin () in + if show then checkWin#toplevel#show (); + checkWin#check_widgets (); let emptyDialog = new emptyDialog () in if show then emptyDialog#toplevel#show (); emptyDialog#check_widgets ();