Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
VIGNET Pierre
cadbiom
Commits
b2ed1573
Commit
b2ed1573
authored
Dec 11, 2018
by
VIGNET Pierre
Browse files
[gui] Change of notation: cam -> mac
parent
412efe1f
Changes
2
Hide whitespace changes
Inline
Side-by-side
gui/cadbiom_gui/gt_gui/chart_checker/chart_checker_controler.py
View file @
b2ed1573
...
...
@@ -163,10 +163,10 @@ class OccurenceForm(object):
self
.
but_solutions
.
connect
(
"clicked"
,
self
.
on_solutions
)
self
.
but_solutions
.
set_sensitive
(
False
)
self
.
but_
cam
=
self
.
__wtree
.
get_widget
(
"but_
cam
"
)
self
.
but_
cam
.
connect
(
"clicked"
,
self
.
on_
cam
)
self
.
but_
cam
.
connect
(
"clicked"
,
self
.
on_entry_changed
)
self
.
but_
cam
.
set_sensitive
(
False
)
self
.
but_
mac
=
self
.
__wtree
.
get_widget
(
"but_
mac
"
)
self
.
but_
mac
.
connect
(
"clicked"
,
self
.
on_
mac
)
self
.
but_
mac
.
connect
(
"clicked"
,
self
.
on_entry_changed
)
self
.
but_
mac
.
set_sensitive
(
False
)
# children
self
.
__aux_win
=
[]
...
...
@@ -192,7 +192,7 @@ class OccurenceForm(object):
"""
# buttons
self
.
but_solutions
.
set_sensitive
(
False
)
self
.
but_
cam
.
set_sensitive
(
False
)
self
.
but_
mac
.
set_sensitive
(
False
)
def
on_yn
(
self
,
widget
):
"""
...
...
@@ -258,7 +258,7 @@ class OccurenceForm(object):
"""
# desactivate buttons
self
.
but_solutions
.
set_sensitive
(
False
)
self
.
but_
cam
.
set_sensitive
(
False
)
self
.
but_
mac
.
set_sensitive
(
False
)
# get info
final_prop
=
self
.
property_entry
.
get_text
()
...
...
@@ -333,7 +333,7 @@ class OccurenceForm(object):
# activate buttons
self
.
but_solutions
.
set_sensitive
(
True
)
self
.
but_
cam
.
set_sensitive
(
True
)
self
.
but_
mac
.
set_sensitive
(
True
)
def
on_solutions
(
self
,
widget
):
"""
...
...
@@ -357,7 +357,7 @@ class OccurenceForm(object):
# ok_warn("There is no common solution")
pass
def
on_
cam
(
self
,
widget
):
def
on_
mac
(
self
,
widget
):
"""
launch mac computations
"""
...
...
@@ -367,12 +367,12 @@ class OccurenceForm(object):
if
ask
:
query
=
MCLSimpleQuery
(
self
.
start_prop
,
self
.
inv_prop
,
self
.
property
)
cam
_list
=
self
.
mcla
.
mac_search
(
query
,
self
.
max_step
)
if
len
(
cam
_list
)
==
0
:
mac
_list
=
self
.
mcla
.
mac_search
(
query
,
self
.
max_step
)
if
len
(
mac
_list
)
==
0
:
ok_warn
(
"The solver could not find a MAC,"
+
"
\n
you should refine your query"
)
else
:
CNSWindow
(
cam
_list
,
self
.
__emvc
,
CNSWindow
(
mac
_list
,
self
.
__emvc
,
self
.
__error_reporter
,
self
)
# sub windows management
...
...
gui/cadbiom_gui/gt_gui/chart_glade/occurence_form.glade
View file @
b2ed1573
...
...
@@ -265,7 +265,7 @@
</packing>
</child>
<child>
<widget
class=
"GtkButton"
id=
"but_
cam
"
>
<widget
class=
"GtkButton"
id=
"but_
mac
"
>
<property
name=
"visible"
>
True
</property>
<property
name=
"can_focus"
>
True
</property>
<property
name=
"receives_default"
>
True
</property>
...
...
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