package frama-c
Install
Dune Dependency
Authors
-
MMichele Alberti
-
TThibaud Antignac
-
GGergö Barany
-
PPatrick Baudin
-
TThibaut Benjamin
-
AAllan Blanchard
-
LLionel Blatter
-
FFrançois Bobot
-
RRichard Bonichon
-
QQuentin Bouillaguet
-
DDavid Bühler
-
ZZakaria Chihani
-
LLoïc Correnson
-
JJulien Crétin
-
PPascal Cuoq
-
ZZaynah Dargaye
-
BBasile Desloges
-
JJean-Christophe Filliâtre
-
PPhilippe Herrmann
-
MMaxime Jacquemin
-
FFlorent Kirchner
-
AAlexander Kogtenkov
-
TTristan Le Gall
-
JJean-Christophe Léchenet
-
MMatthieu Lemerre
-
DDara Ly
-
DDavid Maison
-
CClaude Marché
-
AAndré Maroneze
-
TThibault Martin
-
FFonenantsoa Maurica
-
MMelody Méaulle
-
BBenjamin Monate
-
YYannick Moy
-
AAnne Pacalet
-
VValentin Perrelle
-
GGuillaume Petiot
-
DDario Pinto
-
VVirgile Prevosto
-
AArmand Puccetti
-
FFélix Ridoux
-
VVirgile Robles
-
MMuriel Roger
-
JJulien Signoles
-
NNicolas Stouls
-
KKostyantyn Vorobyov
-
BBoris Yakobowski
Maintainers
Sources
sha256=5b13574a16a58971c27909bee94ae7f37b17d897852b40c768a3d4e2e09e39d2
doc/frama-c.gui/Frama_c_gui/Gtk_helper/index.html
Module Frama_c_gui.Gtk_helper
Source
Generic Gtk helpers.
Configuration module for the GUI: all magic visual constants should use this mechanism (window width, ratios, ...).
Tags
val make_tag :
< tag_table : Gtk.text_tag_table
; create_tag : ?name:string -> GText.tag_property list -> GText.tag.. > ->
name:string ->
GText.tag_property list ->
GText.tag
Channels
Build a formatter that redirects its output to the given buffer. flush
is called whenever the formatter is flushed.
Redirects all strings written to the terminal and call the given function on each.
Redirect the given formatter to the given buffer
Asynchronous command execution
val spawn_command :
?timeout:int ->
?stdout:Buffer.t ->
?stderr:Buffer.t ->
string ->
string array ->
(Unix.process_status -> unit) ->
unit
Launches the given command and calls the given function when the process terminates. If timeout is > 0 (the default) then the process will be killed if it does not end before timeout seconds. In this case the returned process status will be Unix.WSIGNALED Sys.sigalrm
.
Locks
This is a mutex you may use to prevent running some code while the GUI is locked.
val register_locking_machinery :
?lock_last:bool ->
lock:(bool -> unit) ->
unlock:(unit -> unit) ->
unit ->
unit
Add hooks to the locking mechanism of the GUI. lock_last
must be set to true if lock
must be executed after all the others locking actions and unlock
must be executed before all the others unlocking actions. Default is false
. At least one "lock_last" action is allowed.
2 Tooltips
Add the given tooltip to the given widget. It has no effect if no tooltip is given.
Chooser
The created widget is packed in the box. The two following functions are supposed to be accessors(get and set) for the value to be displayed. The returned closure may be called to resynchronize the value in the widget from the get function.
val on_int :
?tooltip:string ->
?use_markup:bool ->
?lower:int ->
?upper:int ->
?sensitive:(unit -> bool) ->
?width:int ->
int chooser
Pack a spin button. By default, sensitivity is set to true when this function is called.
val on_string :
?tooltip:string ->
?use_markup:bool ->
?validator:(string -> bool) ->
?width:int ->
string chooser
Pack a string chooser
Pack a string-set chooser
val on_combo :
string list ->
?tooltip:string ->
?use_markup:bool ->
?width:int ->
string chooser
Pack a string-selector
Error manager
A utility class to catch exceptions and report proper error messages. See the documentations of the methods in Design.main_window_extension_points
, which inherits from this class.
A utility class to catch exceptions and report proper error messages. The error dialog will be transient for the GWindow.window_skel
argument.
Source files chooser
val source_files_chooser :
source_files_chooser_host ->
string list ->
(string list -> unit) ->
unit
Open a dialog box for choosing C source files and performing an action on them.
val select_file :
?title:string ->
?dir:string ref ->
?filename:string ->
unit ->
string option
Launches a standard gtk file chooser window and returns the name of the selected file. Replaces GToolbox.select_file that has not been ported to lablgtk3.
Miscellaneous
Process some pending events in the main Glib loop. This is intended to be called only when !gui_unlocked == false
.
val make_string_list :
packing:(GObj.widget -> unit) ->
(string -> unit) * (unit -> unit) * (unit -> string list)
Sets the position of the paned widget to the given ratio
Saves the current ratio of the panel associated to the given key.
Catch exception Not_found
and do nothing
Trace all events on stderr for the given object. This is a debugging function: it should not be called during normal execution.
val make_text_page :
?pos:int ->
GPack.notebook ->
string ->
(GPack.notebook -> unit) * GText.view
Insert a GText.view in a new page of the notebook with the given title, at position pos
if specified, or last if not. It returns a new GText.view together with a function to reparent the inserted page in another notebook. The tab label of the created page will be highlighted whenever its contents changes.
Opens file
in an external viewer, optionally centered on line line
(if supported by the viewer). The viewer is executed in the background (i.e. it does not block the execution of Frama-C). The external viewer is given by the environment variable EDITOR
. If undefined, a default viewer is used.
A functor to build custom Gtk lists. You'll probably prefer to use the highlevel custom models in the next module named Custom.List. It may be part of a future lablgtk release. Do not change anything without changing lablgtk svn.
val input_string :
parent:GWindow.window ->
title:string ->
?ok:string ->
?cancel:string ->
?text:string ->
string ->
string option
Copied from lablgtk GToolbox.input_string
. See the lablgtk API for more details.
calls the packing function to append a new menu item with an icon and a label. replaces GMenu.image_menu_item that has been deprecated in GTK3