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
3d9919a1
Commit
3d9919a1
authored
Nov 30, 2007
by
claes
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Type graph for UInt32
parent
78f61156
Changes
4
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
3344 additions
and
3 deletions
+3344
-3
xtt/exe/rt_xtt/src/xtt_main.cpp
xtt/exe/rt_xtt/src/xtt_main.cpp
+4
-1
xtt/exp/ge/src/pwr_t_uint32.pwg
xtt/exp/ge/src/pwr_t_uint32.pwg
+3290
-0
xtt/lib/ge/src/ge_graph_object.cpp
xtt/lib/ge/src/ge_graph_object.cpp
+41
-1
xtt/lib/xtt/src/xtt_c_object.cpp
xtt/lib/xtt/src/xtt_c_object.cpp
+9
-1
No files found.
xtt/exe/rt_xtt/src/xtt_main.cpp
View file @
3d9919a1
/*
* Proview $Id: xtt_main.cpp,v 1.
4 2007-05-16 12:37:39
claes Exp $
* Proview $Id: xtt_main.cpp,v 1.
5 2007-11-30 08:18:27
claes Exp $
* Copyright (C) 2005 SSAB Oxelsund AB.
*
* This program is free software; you can redistribute it and/or
...
...
@@ -353,6 +353,9 @@ void Xtt::activate_opengraph()
case
pwr_eType_Int32
:
sprintf
(
filename
,
"pwr_exe:pwr_t_int32.pwg"
);
break
;
case
pwr_eType_UInt32
:
sprintf
(
filename
,
"pwr_exe:pwr_t_uint32.pwg"
);
break
;
case
pwr_eType_Boolean
:
sprintf
(
filename
,
"pwr_exe:pwr_t_boolean.pwg"
);
break
;
...
...
xtt/exp/ge/src/pwr_t_uint32.pwg
0 → 100644
View file @
3d9919a1
This diff is collapsed.
Click to expand it.
xtt/lib/ge/src/ge_graph_object.cpp
View file @
3d9919a1
/*
* Proview $Id: ge_graph_object.cpp,v 1.1
7 2007-09-12 08:56:36
claes Exp $
* Proview $Id: ge_graph_object.cpp,v 1.1
8 2007-11-30 08:18:27
claes Exp $
* Copyright (C) 2005 SSAB Oxelsund AB.
*
* This program is free software; you can redistribute it and/or
...
...
@@ -44,6 +44,7 @@ typedef struct {
static
int
graph_attr_float32
(
Graph
*
graph
,
pwr_sAttrRef
*
attrref
);
static
int
graph_attr_int32
(
Graph
*
graph
,
pwr_sAttrRef
*
attrref
);
static
int
graph_attr_uint32
(
Graph
*
graph
,
pwr_sAttrRef
*
attrref
);
static
int
graph_attr_boolean
(
Graph
*
graph
,
pwr_sAttrRef
*
attrref
);
static
int
graph_object_ix
(
Graph
*
graph
,
pwr_sAttrRef
*
attrref
);
static
int
graph_object_ax
(
Graph
*
graph
,
pwr_sAttrRef
*
attrref
);
...
...
@@ -226,6 +227,10 @@ int Graph::init_object_graph( int mode)
sts
=
graph_attr_int32
(
this
,
&
attrref
);
return
sts
;
}
if
(
strcmp
(
classname
,
"uint32"
)
==
0
)
{
sts
=
graph_attr_uint32
(
this
,
&
attrref
);
return
sts
;
}
else
if
(
strcmp
(
classname
,
"boolean"
)
==
0
)
{
sts
=
graph_attr_boolean
(
this
,
&
attrref
);
return
sts
;
...
...
@@ -324,6 +329,41 @@ static int graph_attr_int32( Graph *graph, pwr_sAttrRef *attrref)
return
1
;
}
//
// Attribute graph for UInt32
//
typedef
struct
{
graph_sObjectTrend
td
;
}
graph_sAttrUInt32
;
static
void
graph_attr_uint32_scan
(
Graph
*
graph
)
{
graph_sAttrUInt32
*
od
=
(
graph_sAttrUInt32
*
)
graph
->
graph_object_data
;
graph
->
trend_scan
(
&
od
->
td
);
}
static
void
graph_attr_uint32_close
(
Graph
*
graph
)
{
free
(
graph
->
graph_object_data
);
}
static
int
graph_attr_uint32
(
Graph
*
graph
,
pwr_sAttrRef
*
attrref
)
{
int
sts
;
graph_sAttrUInt32
*
od
;
od
=
(
graph_sAttrUInt32
*
)
calloc
(
1
,
sizeof
(
graph_sAttrUInt32
));
graph
->
graph_object_data
=
(
void
*
)
od
;
graph
->
graph_object_close
=
graph_attr_uint32_close
;
graph
->
graph_object_scan
=
graph_attr_uint32_scan
;
sts
=
graph
->
trend_init
(
&
od
->
td
,
0
);
return
1
;
}
//
// Attribute graph for Boolean
//
...
...
xtt/lib/xtt/src/xtt_c_object.cpp
View file @
3d9919a1
/*
* Proview $Id: xtt_c_object.cpp,v 1.1
6 2007-01-04 08:22:46
claes Exp $
* Proview $Id: xtt_c_object.cpp,v 1.1
7 2007-11-30 08:18:27
claes Exp $
* Copyright (C) 2005 SSAB Oxelsund AB.
*
* This program is free software; you can redistribute it and/or
...
...
@@ -1413,6 +1413,12 @@ static pwr_tStatus OpenTypeGraph( xmenu_sMenuCall *ip)
case
pwr_eType_Boolean
:
sprintf
(
filename
,
"pwr_exe:pwr_t_boolean.pwg"
);
break
;
case
pwr_eType_Int32
:
sprintf
(
filename
,
"pwr_exe:pwr_t_int32.pwg"
);
break
;
case
pwr_eType_UInt32
:
sprintf
(
filename
,
"pwr_exe:pwr_t_uint32.pwg"
);
break
;
default:
return
XNAV__SUCCESS
;
}
...
...
@@ -1451,6 +1457,8 @@ static pwr_tStatus OpenTypeGraphFilter( xmenu_sMenuCall *ip)
switch
(
attr_type
)
{
case
pwr_eType_Float32
:
case
pwr_eType_Boolean
:
case
pwr_eType_Int32
:
case
pwr_eType_UInt32
:
return
XNAV__SUCCESS
;
break
;
default:
...
...
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