Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
P
proview
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Esteban Blanc
proview
Commits
d62ebe64
Commit
d62ebe64
authored
May 24, 2016
by
Claes Sjofors
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Ge method toolbar and methods menu translation fix
parent
d7defd94
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
13 additions
and
8 deletions
+13
-8
xtt/lib/ge/src/ge_dyn.cpp
xtt/lib/ge/src/ge_dyn.cpp
+13
-8
No files found.
xtt/lib/ge/src/ge_dyn.cpp
View file @
d62ebe64
...
...
@@ -18373,17 +18373,20 @@ int GeMethodToolbar::action( grow_tObject object, glow_tEvent event)
break
;
case
glow_eEvent_TipText
:
{
pwr_tString80
text
;
int
sts
;
if
(
event
->
toolbar
.
category
==
1
)
{
sts
=
0
;
if
(
grow_GetTranslate
(
dyn
->
graph
->
grow
->
ctx
))
Lng
::
translate
(
GeMethods
::
op_tooltip
[
event
->
toolbar
.
idx
],
text
);
else
sts
=
Lng
::
translate
(
GeMethods
::
op_tooltip
[
event
->
toolbar
.
idx
],
text
);
if
(
EVEN
(
sts
))
strcpy
(
text
,
GeMethods
::
op_tooltip
[
event
->
toolbar
.
idx
]);
}
else
{
sts
=
0
;
if
(
grow_GetTranslate
(
dyn
->
graph
->
grow
->
ctx
))
Lng
::
translate
(
GeMethods
::
mnt_tooltip
[
event
->
toolbar
.
idx
],
text
);
else
sts
=
Lng
::
translate
(
GeMethods
::
mnt_tooltip
[
event
->
toolbar
.
idx
],
text
);
if
(
EVEN
(
sts
))
strcpy
(
text
,
GeMethods
::
mnt_tooltip
[
event
->
toolbar
.
idx
]);
}
grow_SetTipText
(
dyn
->
graph
->
grow
->
ctx
,
event
->
toolbar
.
object
,
...
...
@@ -18630,9 +18633,10 @@ int GeMethodPulldownMenu::action( grow_tObject object, glow_tEvent event)
if
(
opmask
&
(
1
<<
i
))
{
info
.
item
[
menu_idx
].
type
=
glow_eMenuItem_Button
;
sts
=
0
;
if
(
grow_GetTranslate
(
dyn
->
graph
->
grow
->
ctx
))
Lng
::
translate
(
GeMethods
::
op_name
[
i
],
info
.
item
[
menu_idx
].
text
);
else
sts
=
Lng
::
translate
(
GeMethods
::
op_name
[
i
],
info
.
item
[
menu_idx
].
text
);
if
(
EVEN
(
sts
))
strcpy
(
info
.
item
[
menu_idx
].
text
,
GeMethods
::
op_name
[
i
]);
info
.
item
[
menu_idx
].
occupied
=
true
;
if
(
insensitive_opmask
&
(
1
<<
i
))
...
...
@@ -18652,9 +18656,10 @@ int GeMethodPulldownMenu::action( grow_tObject object, glow_tEvent event)
if
(
mntmask
&
(
1
<<
i
))
{
info
.
item
[
menu_idx
].
type
=
glow_eMenuItem_Button
;
sts
=
0
;
if
(
grow_GetTranslate
(
dyn
->
graph
->
grow
->
ctx
))
Lng
::
translate
(
GeMethods
::
mnt_name
[
i
],
info
.
item
[
menu_idx
].
text
);
else
sts
=
Lng
::
translate
(
GeMethods
::
mnt_name
[
i
],
info
.
item
[
menu_idx
].
text
);
if
(
EVEN
(
sts
))
strcpy
(
info
.
item
[
menu_idx
].
text
,
GeMethods
::
mnt_name
[
i
]);
info
.
item
[
menu_idx
].
occupied
=
true
;
if
(
insensitive_mntmask
&
(
1
<<
i
))
...
...
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