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
1d727d1f
Commit
1d727d1f
authored
Nov 23, 2012
by
Claes Sjofors
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Ge axis dynamic fix
parent
257ad396
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
40 additions
and
21 deletions
+40
-21
xtt/lib/ge/src/ge_dyn.cpp
xtt/lib/ge/src/ge_dyn.cpp
+2
-1
xtt/lib/ge/src/ge_graph.cpp
xtt/lib/ge/src/ge_graph.cpp
+38
-20
No files found.
xtt/lib/ge/src/ge_dyn.cpp
View file @
1d727d1f
...
...
@@ -770,7 +770,8 @@ void GeDyn::get_attributes( grow_tObject object, attr_sItem *itemlist, int *item
total_dyn_type1
&
ge_mDynType1_Trend
||
total_dyn_type1
&
ge_mDynType1_Table
||
total_dyn_type1
&
ge_mDynType1_FastCurve
||
total_dyn_type1
&
ge_mDynType1_XY_Curve
)
total_dyn_type1
&
ge_mDynType1_XY_Curve
||
total_dyn_type2
&
ge_mDynType2_Axis
)
attrinfo
[
i
].
noedit
=
1
;
attrinfo
[
i
].
mask
=
~
(
ge_mDynType1_Bar
|
ge_mDynType1_Trend
|
ge_mDynType1_Table
|
ge_mDynType1_FastCurve
|
ge_mDynType1_XY_Curve
|
ge_mDynType1_SliderBackground
);
...
...
xtt/lib/ge/src/ge_graph.cpp
View file @
1d727d1f
...
...
@@ -1965,7 +1965,9 @@ static int graph_attr_recall_cb( void *g, grow_tObject object, int idx,
grow_GetObjectType
(
object
)
==
glow_eObjectType_GrowTable
||
grow_GetObjectType
(
object
)
==
glow_eObjectType_GrowBar
||
grow_GetObjectType
(
object
)
==
glow_eObjectType_GrowPie
||
grow_GetObjectType
(
object
)
==
glow_eObjectType_GrowBarChart
)
{
grow_GetObjectType
(
object
)
==
glow_eObjectType_GrowBarChart
||
grow_GetObjectType
(
object
)
==
glow_eObjectType_GrowAxis
||
grow_GetObjectType
(
object
)
==
glow_eObjectType_GrowAxisArc
)
{
sts
=
graph
->
recall
.
get
(
&
dyn
,
idx
);
if
(
ODD
(
sts
))
{
grow_GetUserData
(
object
,
(
void
**
)
old_dyn
);
...
...
@@ -3632,14 +3634,17 @@ static int graph_trace_grow_cb( GlowCtx *ctx, glow_tEvent event)
grow_GetObjectType
(
event
->
object
.
object
)
==
glow_eObjectType_GrowTable
||
grow_GetObjectType
(
event
->
object
.
object
)
==
glow_eObjectType_GrowBar
||
grow_GetObjectType
(
event
->
object
.
object
)
==
glow_eObjectType_GrowPie
||
grow_GetObjectType
(
event
->
object
.
object
)
==
glow_eObjectType_GrowBarChart
))
grow_GetObjectType
(
event
->
object
.
object
)
==
glow_eObjectType_GrowBarChart
||
grow_GetObjectType
(
event
->
object
.
object
)
==
glow_eObjectType_GrowAxis
||
grow_GetObjectType
(
event
->
object
.
object
)
==
glow_eObjectType_GrowAxisArc
))
{
GeDyn
*
dyn
;
grow_GetUserData
(
event
->
object
.
object
,
(
void
**
)
&
dyn
);
dyn
->
action
(
event
->
object
.
object
,
event
);
graph
->
current_mb1_down
=
event
->
object
.
object
;
if
(
dyn
)
{
dyn
->
action
(
event
->
object
.
object
,
event
);
graph
->
current_mb1_down
=
event
->
object
.
object
;
}
}
break
;
}
...
...
@@ -3656,14 +3661,17 @@ static int graph_trace_grow_cb( GlowCtx *ctx, glow_tEvent event)
grow_GetObjectType
(
graph
->
current_mb1_down
)
==
glow_eObjectType_GrowTable
||
grow_GetObjectType
(
graph
->
current_mb1_down
)
==
glow_eObjectType_GrowBar
||
grow_GetObjectType
(
graph
->
current_mb1_down
)
==
glow_eObjectType_GrowPie
||
grow_GetObjectType
(
graph
->
current_mb1_down
)
==
glow_eObjectType_GrowBarChart
)
grow_GetObjectType
(
graph
->
current_mb1_down
)
==
glow_eObjectType_GrowBarChart
||
grow_GetObjectType
(
graph
->
current_mb1_down
)
==
glow_eObjectType_GrowAxis
||
grow_GetObjectType
(
graph
->
current_mb1_down
)
==
glow_eObjectType_GrowAxisArc
)
{
GeDyn
*
dyn
;
grow_GetUserData
(
graph
->
current_mb1_down
,
(
void
**
)
&
dyn
);
dyn
->
action
(
graph
->
current_mb1_down
,
event
);
graph
->
current_mb1_down
=
0
;
if
(
dyn
)
{
dyn
->
action
(
graph
->
current_mb1_down
,
event
);
graph
->
current_mb1_down
=
0
;
}
}
break
;
}
...
...
@@ -3813,7 +3821,9 @@ static int graph_trace_grow_cb( GlowCtx *ctx, glow_tEvent event)
grow_GetObjectType
(
event
->
object
.
object
)
==
glow_eObjectType_GrowXYCurve
||
grow_GetObjectType
(
event
->
object
.
object
)
==
glow_eObjectType_GrowTrend
||
grow_GetObjectType
(
event
->
object
.
object
)
==
glow_eObjectType_GrowPie
||
grow_GetObjectType
(
event
->
object
.
object
)
==
glow_eObjectType_GrowBarChart
))
grow_GetObjectType
(
event
->
object
.
object
)
==
glow_eObjectType_GrowBarChart
||
grow_GetObjectType
(
event
->
object
.
object
)
==
glow_eObjectType_GrowAxis
||
grow_GetObjectType
(
event
->
object
.
object
)
==
glow_eObjectType_GrowAxisArc
))
break
;
if
(
graph
->
mode
!=
graph_eMode_Runtime
)
break
;
...
...
@@ -3824,7 +3834,8 @@ static int graph_trace_grow_cb( GlowCtx *ctx, glow_tEvent event)
GeDyn
*
dyn
;
grow_GetUserData
(
event
->
object
.
object
,
(
void
**
)
&
dyn
);
dyn
->
action
(
event
->
object
.
object
,
event
);
if
(
dyn
)
dyn
->
action
(
event
->
object
.
object
,
event
);
break
;
}
default:
;
...
...
@@ -3880,17 +3891,21 @@ static int graph_trace_grow_cb( GlowCtx *ctx, glow_tEvent event)
grow_GetObjectType
(
event
->
object
.
object
)
==
glow_eObjectType_GrowXYCurve
||
grow_GetObjectType
(
event
->
object
.
object
)
==
glow_eObjectType_GrowTrend
||
grow_GetObjectType
(
event
->
object
.
object
)
==
glow_eObjectType_GrowPie
||
grow_GetObjectType
(
event
->
object
.
object
)
==
glow_eObjectType_GrowBarChart
)
grow_GetObjectType
(
event
->
object
.
object
)
==
glow_eObjectType_GrowBarChart
||
grow_GetObjectType
(
event
->
object
.
object
)
==
glow_eObjectType_GrowAxis
||
grow_GetObjectType
(
event
->
object
.
object
)
==
glow_eObjectType_GrowAxisArc
)
{
grow_GetUserData
(
event
->
object
.
object
,
(
void
**
)
&
dyn
);
sts
=
dyn
->
action
(
event
->
object
.
object
,
event
);
if
(
sts
==
GLOW__TERMINATED
)
return
sts
;
else
if
(
sts
==
GLOW__SUBTERMINATED
)
{
if
(
ctx_popped
)
graph
->
grow
->
push
();
return
sts
;
if
(
dyn
)
{
sts
=
dyn
->
action
(
event
->
object
.
object
,
event
);
if
(
sts
==
GLOW__TERMINATED
)
return
sts
;
else
if
(
sts
==
GLOW__SUBTERMINATED
)
{
if
(
ctx_popped
)
graph
->
grow
->
push
();
return
sts
;
}
}
}
break
;
...
...
@@ -5180,11 +5195,14 @@ static void graph_free_dyn( grow_tObject object)
grow_GetObjectType
(
object
)
==
glow_eObjectType_GrowBar
||
grow_GetObjectType
(
object
)
==
glow_eObjectType_GrowPie
||
grow_GetObjectType
(
object
)
==
glow_eObjectType_GrowBarChart
||
grow_GetObjectType
(
object
)
==
glow_eObjectType_GrowAxis
||
grow_GetObjectType
(
object
)
==
glow_eObjectType_GrowAxisArc
||
grow_GetObjectType
(
object
)
==
glow_eObjectType_NodeClass
)
{
GeDyn
*
dyn
;
grow_GetUserData
(
object
,
(
void
**
)
&
dyn
);
delete
dyn
;
if
(
dyn
)
delete
dyn
;
}
}
...
...
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