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
120
Issues
120
List
Boards
Labels
Service Desk
Milestones
Merge Requests
16
Merge Requests
16
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
e194da63
Commit
e194da63
authored
Nov 15, 2016
by
Clément Fumex
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
right pan tweaking
parent
343f4048
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
16 additions
and
10 deletions
+16
-10
src/ide/why3ide.ml
src/ide/why3ide.ml
+16
-10
No files found.
src/ide/why3ide.ml
View file @
e194da63
...
...
@@ -121,7 +121,7 @@ let (_ : GMenu.menu_item) =
2.1 TODO: a tool box ?
2.2 a horizontal paned containing:
2.2.1 a scrolled window to hold the tree view of the session
2.2.2 a vertical
box
2.2.2 a vertical
paned containing
*)
let
hp
=
GPack
.
paned
`HORIZONTAL
~
packing
:
hb
#
add
()
...
...
@@ -140,7 +140,7 @@ let scrollview =
gconfig
.
tree_width
<-
w
)
in
sv
let
v
box222
=
GPack
.
vbox
~
packing
:
hp
#
add
()
let
v
pan222
=
GPack
.
paned
`VERTICAL
~
packing
:
hp
#
add
()
(* the scrolled window 2.2.1 contains a GTK tree
...
...
@@ -181,31 +181,34 @@ let goals_model,goals_view =
Debug
.
dprintf
debug
" done@."
;
model
,
view
(* v
box
222 contains:
(* v
pan
222 contains:
2.2.2.1 a view of the current task
2.2.2.2 a input field to type commands
2.2.2.2 a vertiacal pan which contains
2.2.2.2.1 the input field to type commands
2.2.2.2.2 the output of the commands
*)
let
scrolled_task_view
=
GBin
.
scrolled_window
~
hpolicy
:
`AUTOMATIC
~
vpolicy
:
`AUTOMATIC
~
shadow_type
:
`ETCHED_OUT
~
packing
:
(
vbox222
#
pack
?
from
:
None
~
expand
:
true
~
fill
:
true
?
padding
:
None
)
()
~
packing
:
vpan222
#
add
()
let
task_view
=
GSourceView2
.
source_view
~
editable
:
false
~
cursor_visible
:
false
~
show_line_numbers
:
true
~
packing
:
scrolled_task_view
#
add
()
let
vbox2222
=
GPack
.
vbox
~
packing
:
vpan222
#
add
()
let
command_entry
=
GEdit
.
entry
~
packing
:
vbox222
#
add
()
let
command_entry
=
GEdit
.
entry
~
packing
:
(
vbox2222
#
pack
?
from
:
None
?
expand
:
None
?
fill
:
None
?
padding
:
None
)
()
let
message_zone
=
GText
.
view
~
editable
:
false
~
cursor_visible
:
false
~
packing
:
(
vbox222
#
pack
?
from
:
None
~
expand
:
true
~
fill
:
true
?
padding
:
None
)
()
~
packing
:
(
vbox2222
#
pack
?
from
:
None
~
expand
:
true
~
fill
:
true
?
padding
:
None
)
()
(********************************************)
(* controller instance on the GTK scheduler *)
...
...
@@ -449,7 +452,9 @@ let on_selected_row r =
let
s
=
Pp
.
string_of
(
Driver
.
print_task
~
cntexample
:
false
task_driver
)
task
in
task_view
#
source_buffer
#
set_text
s
in
task_view
#
source_buffer
#
set_text
s
;
(* scroll to end of text *)
task_view
#
scroll_to_mark
`INSERT
|
_
->
task_view
#
source_buffer
#
set_text
""
with
|
Not_found
->
task_view
#
source_buffer
#
set_text
""
...
...
@@ -468,6 +473,7 @@ let (_ : GtkSignal.id) =
let
()
=
build_tree_from_session
cont
.
controller_session
;
(* temporary *)
vpan222
#
set_position
500
;
goals_view
#
expand_all
()
;
main_window
#
add_accel_group
accel_group
;
main_window
#
set_icon
(
Some
!
Gconfig
.
why_icon
);
...
...
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