Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Vcsn
Vaucanson 1
Commits
4a062d11
Commit
4a062d11
authored
Aug 06, 2009
by
Florent D'Halluin
Browse files
[yavgui] Add command "product".
* yavgui/src/command_list.cc, * yavgui/src/commands_common.hh: Do that.
parent
39e7b66a
Changes
3
Hide whitespace changes
Inline
Side-by-side
ChangeLog
View file @
4a062d11
2009-08-06 d-halluin <d-halluin@lrde.epita.fr>
[yavgui] Add command "product".
* yavgui/src/command_list.cc,
* yavgui/src/commands_common.hh: Do that.
2009-08-06 d-halluin <d-halluin@lrde.epita.fr>
[yavgui] Allow transition adjustement with left click only.
...
...
yavgui/src/command_list.cc
View file @
4a062d11
...
...
@@ -44,6 +44,8 @@ namespace gui
(
new
commands
::
IsEmpty
()));
commands_
.
push_back
(
new
VcsnCommandSlot
(
new
commands
::
Sum
()));
commands_
.
push_back
(
new
VcsnCommandSlot
(
new
commands
::
Product
()));
commands_
.
push_back
(
new
VcsnCommandSlot
(
new
commands
::
AutToExp
()));
commands_
.
push_back
(
new
VcsnCommandSlot
...
...
yavgui/src/commands_common.hh
View file @
4a062d11
...
...
@@ -91,7 +91,8 @@ namespace gui
COMMAND_BASE
(
Sum
,
FLAG_NAME
(
"sum"
);
FLAG_TOOLTIP
(
"FIXME."
);
FLAG_TOOLTIP
(
"Create a new automaton as the sum"
"of two automata."
);
FLAG_ALL
;
,
CODE_ALL
(
...
...
@@ -104,6 +105,24 @@ namespace gui
)
);
COMMAND_BASE
(
Product
,
FLAG_NAME
(
"product"
);
FLAG_TOOLTIP
(
"Create a new automaton as the product"
"of two automata."
);
FLAG_B
;
FLAG_Z
;
,
CODE_BZ
(
GET_CURRENT_INSTANCE
(
i1
);
GET_NEW_INSTANCE
(
i2
);
Automaton
&
a1
=
AUTOMATON
(
i1
,
Automaton
);
Automaton
&
a2
=
AUTOMATON
(
i2
,
Automaton
);
MAKE_INSTANCE
(
i3
,
product
(
a1
,
a2
),
type
);
UPDATE_INSTANCE
(
i3
);
)
CODE_FAIL_OTHERS
);
COMMAND_BASE
(
AutToExp
,
FLAG_NAME
(
"aut_to_exp"
);
FLAG_TOOLTIP
(
"FIXME."
);
...
...
Write
Preview
Supports
Markdown
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