Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
why3
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
125
Issues
125
List
Boards
Labels
Service Desk
Milestones
Merge Requests
15
Merge Requests
15
Operations
Operations
Incidents
Packages & Registries
Packages & Registries
Container Registry
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Why3
why3
Commits
d5585439
Commit
d5585439
authored
Jun 04, 2018
by
Raphael Rieu-Helft
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
s/labels/attributes/g for IDE
parent
b0cef7e3
Changes
5
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
21 additions
and
21 deletions
+21
-21
doc/technical.tex
doc/technical.tex
+1
-1
doc/why3ide-doc.conf
doc/why3ide-doc.conf
+1
-1
examples/tests/bv-smtlib-realization/why3-smt-realize.conf
examples/tests/bv-smtlib-realization/why3-smt-realize.conf
+1
-1
src/ide/gconfig.ml
src/ide/gconfig.ml
+17
-17
src/ide/gconfig.mli
src/ide/gconfig.mli
+1
-1
No files found.
doc/technical.tex
View file @
d5585439
...
@@ -72,7 +72,7 @@ goal_color = "gold"
...
@@ -72,7 +72,7 @@ goal_color = "gold"
iconset = "fatcow"
iconset = "fatcow"
intro
_
premises = true
intro
_
premises = true
premise
_
color = "chartreuse"
premise
_
color = "chartreuse"
print
_
label
s = false
print
_
attribute
s = false
print
_
locs = false
print
_
locs = false
print
_
time
_
limit = false
print
_
time
_
limit = false
saving
_
policy = 2
saving
_
policy = 2
...
...
doc/why3ide-doc.conf
View file @
d5585439
...
@@ -16,7 +16,7 @@ max_boxes = 16
...
@@ -16,7 +16,7 @@ max_boxes = 16
neg_premise_color
=
"pink"
neg_premise_color
=
"pink"
premise_color
=
"chartreuse"
premise_color
=
"chartreuse"
print_coercions
=
true
print_coercions
=
true
print_
label
s
=
false
print_
attribute
s
=
false
print_locs
=
false
print_locs
=
false
print_time_limit
=
false
print_time_limit
=
false
saving_policy
=
2
saving_policy
=
2
...
...
examples/tests/bv-smtlib-realization/why3-smt-realize.conf
View file @
d5585439
...
@@ -43,7 +43,7 @@ intro_premises = true
...
@@ -43,7 +43,7 @@ intro_premises = true
max_boxes
=
16
max_boxes
=
16
neg_premise_color
=
"pink"
neg_premise_color
=
"pink"
premise_color
=
"chartreuse"
premise_color
=
"chartreuse"
print_
label
s
=
false
print_
attribute
s
=
false
print_locs
=
false
print_locs
=
false
print_time_limit
=
false
print_time_limit
=
false
saving_policy
=
2
saving_policy
=
2
...
...
src/ide/gconfig.ml
View file @
d5585439
...
@@ -38,7 +38,7 @@ type t =
...
@@ -38,7 +38,7 @@ type t =
mutable
current_tab
:
int
;
mutable
current_tab
:
int
;
mutable
verbose
:
int
;
mutable
verbose
:
int
;
mutable
show_full_context
:
bool
;
mutable
show_full_context
:
bool
;
mutable
show_
label
s
:
bool
;
mutable
show_
attribute
s
:
bool
;
mutable
show_coercions
:
bool
;
mutable
show_coercions
:
bool
;
mutable
show_locs
:
bool
;
mutable
show_locs
:
bool
;
mutable
show_time_limit
:
bool
;
mutable
show_time_limit
:
bool
;
...
@@ -73,7 +73,7 @@ type ide = {
...
@@ -73,7 +73,7 @@ type ide = {
ide_current_tab
:
int
;
ide_current_tab
:
int
;
ide_verbose
:
int
;
ide_verbose
:
int
;
ide_show_full_context
:
bool
;
ide_show_full_context
:
bool
;
ide_show_
label
s
:
bool
;
ide_show_
attribute
s
:
bool
;
ide_show_coercions
:
bool
;
ide_show_coercions
:
bool
;
ide_show_locs
:
bool
;
ide_show_locs
:
bool
;
ide_show_time_limit
:
bool
;
ide_show_time_limit
:
bool
;
...
@@ -99,7 +99,7 @@ let default_ide =
...
@@ -99,7 +99,7 @@ let default_ide =
ide_current_tab
=
0
;
ide_current_tab
=
0
;
ide_verbose
=
0
;
ide_verbose
=
0
;
ide_show_full_context
=
false
;
ide_show_full_context
=
false
;
ide_show_
label
s
=
false
;
ide_show_
attribute
s
=
false
;
ide_show_coercions
=
true
;
ide_show_coercions
=
true
;
ide_show_locs
=
false
;
ide_show_locs
=
false
;
ide_show_time_limit
=
false
;
ide_show_time_limit
=
false
;
...
@@ -133,10 +133,10 @@ let load_ide section =
...
@@ -133,10 +133,10 @@ let load_ide section =
ide_show_full_context
=
ide_show_full_context
=
get_bool
section
~
default
:
default_ide
.
ide_show_full_context
get_bool
section
~
default
:
default_ide
.
ide_show_full_context
"show_full_context"
;
"show_full_context"
;
ide_show_
label
s
=
ide_show_
attribute
s
=
get_bool
section
~
default
:
default_ide
.
ide_show_
labels
"print_label
s"
;
get_bool
section
~
default
:
default_ide
.
ide_show_
attributes
"print_attribute
s"
;
ide_show_coercions
=
ide_show_coercions
=
get_bool
section
~
default
:
default_ide
.
ide_show_
label
s
"print_coercions"
;
get_bool
section
~
default
:
default_ide
.
ide_show_
attribute
s
"print_coercions"
;
ide_show_locs
=
ide_show_locs
=
get_bool
section
~
default
:
default_ide
.
ide_show_locs
"print_locs"
;
get_bool
section
~
default
:
default_ide
.
ide_show_locs
"print_locs"
;
ide_show_time_limit
=
ide_show_time_limit
=
...
@@ -173,8 +173,8 @@ let load_ide section =
...
@@ -173,8 +173,8 @@ let load_ide section =
}
}
let
set_
labels
_flag
=
let
set_
attr
_flag
=
let
fl
=
Debug
.
lookup_flag
"print_
label
s"
in
let
fl
=
Debug
.
lookup_flag
"print_
attribute
s"
in
fun
b
->
fun
b
->
(
if
b
then
Debug
.
set_flag
else
Debug
.
unset_flag
)
fl
(
if
b
then
Debug
.
set_flag
else
Debug
.
unset_flag
)
fl
...
@@ -194,7 +194,7 @@ let load_config config original_config =
...
@@ -194,7 +194,7 @@ let load_config config original_config =
|
None
->
default_ide
|
None
->
default_ide
|
Some
s
->
load_ide
s
|
Some
s
->
load_ide
s
in
in
set_
labels_flag
ide
.
ide_show_label
s
;
set_
attr_flag
ide
.
ide_show_attribute
s
;
set_coercions_flag
ide
.
ide_show_coercions
;
set_coercions_flag
ide
.
ide_show_coercions
;
set_locs_flag
ide
.
ide_show_locs
;
set_locs_flag
ide
.
ide_show_locs
;
{
window_height
=
ide
.
ide_window_height
;
{
window_height
=
ide
.
ide_window_height
;
...
@@ -205,7 +205,7 @@ let load_config config original_config =
...
@@ -205,7 +205,7 @@ let load_config config original_config =
font_size
=
ide
.
ide_font_size
;
font_size
=
ide
.
ide_font_size
;
verbose
=
ide
.
ide_verbose
;
verbose
=
ide
.
ide_verbose
;
show_full_context
=
ide
.
ide_show_full_context
;
show_full_context
=
ide
.
ide_show_full_context
;
show_
labels
=
ide
.
ide_show_label
s
;
show_
attributes
=
ide
.
ide_show_attribute
s
;
show_coercions
=
ide
.
ide_show_coercions
;
show_coercions
=
ide
.
ide_show_coercions
;
show_locs
=
ide
.
ide_show_locs
;
show_locs
=
ide
.
ide_show_locs
;
show_time_limit
=
ide
.
ide_show_time_limit
;
show_time_limit
=
ide
.
ide_show_time_limit
;
...
@@ -250,7 +250,7 @@ let save_config t =
...
@@ -250,7 +250,7 @@ let save_config t =
let
ide
=
set_int
ide
"font_size"
t
.
font_size
in
let
ide
=
set_int
ide
"font_size"
t
.
font_size
in
let
ide
=
set_int
ide
"verbose"
t
.
verbose
in
let
ide
=
set_int
ide
"verbose"
t
.
verbose
in
let
ide
=
set_bool
ide
"show_full_context"
t
.
show_full_context
in
let
ide
=
set_bool
ide
"show_full_context"
t
.
show_full_context
in
let
ide
=
set_bool
ide
"print_
labels"
t
.
show_label
s
in
let
ide
=
set_bool
ide
"print_
attributes"
t
.
show_attribute
s
in
let
ide
=
set_bool
ide
"print_coercions"
t
.
show_coercions
in
let
ide
=
set_bool
ide
"print_coercions"
t
.
show_coercions
in
let
ide
=
set_bool
ide
"print_locs"
t
.
show_locs
in
let
ide
=
set_bool
ide
"print_locs"
t
.
show_locs
in
let
ide
=
set_bool
ide
"print_time_limit"
t
.
show_time_limit
in
let
ide
=
set_bool
ide
"print_time_limit"
t
.
show_time_limit
in
...
@@ -808,17 +808,17 @@ let appearance_settings (c : t) (notebook:GPack.notebook) =
...
@@ -808,17 +808,17 @@ let appearance_settings (c : t) (notebook:GPack.notebook) =
showfullcontext
#
connect
#
toggled
~
callback
:
showfullcontext
#
connect
#
toggled
~
callback
:
(
fun
()
->
c
.
show_full_context
<-
not
c
.
show_full_context
)
(
fun
()
->
c
.
show_full_context
<-
not
c
.
show_full_context
)
in
in
let
show
label
s
=
let
show
attr
s
=
GButton
.
check_button
GButton
.
check_button
~
label
:
"show
label
s in formulas"
~
label
:
"show
attribute
s in formulas"
~
packing
:
display_options_box
#
add
()
~
packing
:
display_options_box
#
add
()
~
active
:
c
.
show_
label
s
~
active
:
c
.
show_
attribute
s
in
in
let
(
_
:
GtkSignal
.
id
)
=
let
(
_
:
GtkSignal
.
id
)
=
show
label
s
#
connect
#
toggled
~
callback
:
show
attr
s
#
connect
#
toggled
~
callback
:
(
fun
()
->
(
fun
()
->
c
.
show_
labels
<-
not
c
.
show_label
s
;
c
.
show_
attributes
<-
not
c
.
show_attribute
s
;
set_
labels_flag
c
.
show_label
s
)
set_
attr_flag
c
.
show_attribute
s
)
in
in
let
showcoercions
=
let
showcoercions
=
GButton
.
check_button
GButton
.
check_button
...
...
src/ide/gconfig.mli
View file @
d5585439
...
@@ -20,7 +20,7 @@ type t =
...
@@ -20,7 +20,7 @@ type t =
mutable
current_tab
:
int
;
mutable
current_tab
:
int
;
mutable
verbose
:
int
;
mutable
verbose
:
int
;
mutable
show_full_context
:
bool
;
mutable
show_full_context
:
bool
;
mutable
show_
label
s
:
bool
;
mutable
show_
attribute
s
:
bool
;
mutable
show_coercions
:
bool
;
mutable
show_coercions
:
bool
;
mutable
show_locs
:
bool
;
mutable
show_locs
:
bool
;
mutable
show_time_limit
:
bool
;
mutable
show_time_limit
:
bool
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment