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
a3a75762
Commit
a3a75762
authored
Jan 15, 2004
by
claes
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Compile and link corrections for Lynx and Alpha
parent
fc434677
Changes
24
Hide whitespace changes
Inline
Side-by-side
Showing
24 changed files
with
100 additions
and
98 deletions
+100
-98
src/exe/co_convert/src/os_vms/hw_axp/co_convert.opt
src/exe/co_convert/src/os_vms/hw_axp/co_convert.opt
+1
-0
src/exe/rt_fast/src/os_lynx/link_rule.mk
src/exe/rt_fast/src/os_lynx/link_rule.mk
+10
-0
src/lib/co/src/co_api.cpp
src/lib/co/src/co_api.cpp
+3
-3
src/lib/co/src/co_msgwindow.cpp
src/lib/co/src/co_msgwindow.cpp
+1
-1
src/lib/co/src/co_msgwindow.h
src/lib/co/src/co_msgwindow.h
+3
-3
src/lib/co/src/co_nav_help.h
src/lib/co/src/co_nav_help.h
+2
-0
src/lib/co/src/co_user.h
src/lib/co/src/co_user.h
+1
-1
src/lib/rt/src/rt_io_base.c
src/lib/rt/src/rt_io_base.c
+2
-2
wb/lib/wb/src/wb_error.h
wb/lib/wb/src/wb_error.h
+5
-25
wb/lib/wb/src/wb_status.h
wb/lib/wb/src/wb_status.h
+3
-28
xtt/exe/rt_xtt/src/os_vms/hw_axp/rt_xtt.opt
xtt/exe/rt_xtt/src/os_vms/hw_axp/rt_xtt.opt
+1
-0
xtt/lib/flow/src/flow.h
xtt/lib/flow/src/flow.h
+2
-2
xtt/lib/ge/src/ge_convert.cpp
xtt/lib/ge/src/ge_convert.cpp
+7
-2
xtt/lib/ge/src/ge_dyn.cpp
xtt/lib/ge/src/ge_dyn.cpp
+13
-10
xtt/lib/ge/src/ge_graph.cpp
xtt/lib/ge/src/ge_graph.cpp
+3
-3
xtt/lib/ge/src/ge_graph_javabean.cpp
xtt/lib/ge/src/ge_graph_javabean.cpp
+23
-0
xtt/lib/glow/src/glow_color.cpp
xtt/lib/glow/src/glow_color.cpp
+5
-5
xtt/lib/glow/src/glow_exportjbean.cpp
xtt/lib/glow/src/glow_exportjbean.cpp
+1
-1
xtt/lib/glow/src/glow_growapi.cpp
xtt/lib/glow/src/glow_growapi.cpp
+3
-0
xtt/lib/glow/src/glow_growctx.cpp
xtt/lib/glow/src/glow_growctx.cpp
+4
-4
xtt/lib/glow/src/glow_growline.cpp
xtt/lib/glow/src/glow_growline.cpp
+1
-1
xtt/lib/glow/src/glow_grownode.cpp
xtt/lib/glow/src/glow_grownode.cpp
+2
-2
xtt/lib/glow/src/glow_nodeclass.cpp
xtt/lib/glow/src/glow_nodeclass.cpp
+3
-3
xtt/lib/xtt/src/xtt_xnav_help.cpp
xtt/lib/xtt/src/xtt_xnav_help.cpp
+1
-2
No files found.
src/exe/co_convert/src/os_vms/hw_axp/co_convert.opt
View file @
a3a75762
...
@@ -12,5 +12,6 @@ pwr_obj:cnv_classread_xtthelp
...
@@ -12,5 +12,6 @@ pwr_obj:cnv_classread_xtthelp
pwr_obj:cnv_classread_src
pwr_obj:cnv_classread_src
pwr_obj:cnv_classread_struct
pwr_obj:cnv_classread_struct
pwr_obj:cnv_help
pwr_obj:cnv_help
pwr_obj:cnv_setup
pwr_lib:libpwr_co/lib
pwr_lib:libpwr_co/lib
pwr_obj:pwr_msg_co.obj
pwr_obj:pwr_msg_co.obj
src/exe/rt_fast/src/os_lynx/link_rule.mk
0 → 100644
View file @
a3a75762
ifndef
link_rule_mk
link_rule_mk
:=
1
link
=
$(ldxx)
$(linkflags)
$(domap)
-o
$(export_exe)
\
$(export_obj)
$(objects)
$(rt_msg_objs)
\
$(pwr_obj)
/rt_io_user.o
\
-lpwr_rt
-lpwr_co
-lpwr_msg_dummy
\
-lrpc
-lnetinet
-llynx
endif
src/lib/co/src/co_api.cpp
View file @
a3a75762
...
@@ -130,17 +130,17 @@ void msgw_message( int severity, char *text, msgw_ePop pop)
...
@@ -130,17 +130,17 @@ void msgw_message( int severity, char *text, msgw_ePop pop)
void
msgw_message_sts
(
pwr_tStatus
sts
,
char
*
text1
,
char
*
text2
)
void
msgw_message_sts
(
pwr_tStatus
sts
,
char
*
text1
,
char
*
text2
)
{
{
MsgWindow
::
message
(
wb
_error
(
sts
),
text1
,
text2
);
MsgWindow
::
message
(
co
_error
(
sts
),
text1
,
text2
);
}
}
void
msgw_message_object
(
pwr_tStatus
sts
,
char
*
text1
,
char
*
text2
,
pwr_tOid
oid
)
void
msgw_message_object
(
pwr_tStatus
sts
,
char
*
text1
,
char
*
text2
,
pwr_tOid
oid
)
{
{
MsgWindow
::
message
(
wb
_error
(
sts
),
text1
,
text2
,
oid
);
MsgWindow
::
message
(
co
_error
(
sts
),
text1
,
text2
,
oid
);
}
}
void
msgw_message_plcobject
(
pwr_tStatus
sts
,
char
*
text1
,
char
*
text2
,
pwr_tOid
oid
)
void
msgw_message_plcobject
(
pwr_tStatus
sts
,
char
*
text1
,
char
*
text2
,
pwr_tOid
oid
)
{
{
MsgWindow
::
message
(
wb
_error
(
sts
),
text1
,
text2
,
oid
,
true
);
MsgWindow
::
message
(
co
_error
(
sts
),
text1
,
text2
,
oid
,
true
);
}
}
void
msgw_set_nodraw
()
void
msgw_set_nodraw
()
...
...
src/lib/co/src/co_msgwindow.cpp
View file @
a3a75762
...
@@ -73,7 +73,7 @@ void MsgWindow::message( int severity, const char *text, msgw_ePop pop, pwr_tOid
...
@@ -73,7 +73,7 @@ void MsgWindow::message( int severity, const char *text, msgw_ePop pop, pwr_tOid
default_window
->
map
();
default_window
->
map
();
}
}
void
MsgWindow
::
message
(
const
wb
_error
&
e
,
const
char
*
text1
,
const
char
*
text2
,
pwr_tOid
oid
,
bool
is_plc
)
void
MsgWindow
::
message
(
const
co
_error
&
e
,
const
char
*
text1
,
const
char
*
text2
,
pwr_tOid
oid
,
bool
is_plc
)
{
{
pwr_tStatus
sts
=
e
.
sts
();
pwr_tStatus
sts
=
e
.
sts
();
int
severity
;
int
severity
;
...
...
src/lib/co/src/co_msgwindow.h
View file @
a3a75762
...
@@ -26,8 +26,8 @@ extern "C" {
...
@@ -26,8 +26,8 @@ extern "C" {
# include "co_msglist.h"
# include "co_msglist.h"
#endif
#endif
#ifndef
wb
_error_h
#ifndef
co
_error_h
# include "
wb
_error.h"
# include "
co
_error.h"
#endif
#endif
typedef
enum
{
typedef
enum
{
...
@@ -71,7 +71,7 @@ class MsgWindow {
...
@@ -71,7 +71,7 @@ class MsgWindow {
static
void
set_default
(
MsgWindow
*
msgw
)
{
default_window
=
msgw
;}
static
void
set_default
(
MsgWindow
*
msgw
)
{
default_window
=
msgw
;}
static
void
message
(
int
severity
,
const
char
*
text
,
msgw_ePop
pop
=
msgw_ePop_Default
,
static
void
message
(
int
severity
,
const
char
*
text
,
msgw_ePop
pop
=
msgw_ePop_Default
,
pwr_tOid
oid
=
pwr_cNOid
,
bool
is_plc
=
false
);
pwr_tOid
oid
=
pwr_cNOid
,
bool
is_plc
=
false
);
static
void
message
(
const
wb
_error
&
e
,
const
char
*
text1
=
0
,
const
char
*
text2
=
0
,
static
void
message
(
const
co
_error
&
e
,
const
char
*
text1
=
0
,
const
char
*
text2
=
0
,
pwr_tOid
oid
=
pwr_cNOid
,
bool
is_plc
=
false
);
pwr_tOid
oid
=
pwr_cNOid
,
bool
is_plc
=
false
);
static
void
message
(
int
severity
,
const
char
*
text1
,
const
char
*
text2
,
const
char
*
text3
=
0
,
static
void
message
(
int
severity
,
const
char
*
text1
,
const
char
*
text2
,
const
char
*
text3
=
0
,
pwr_tOid
oid
=
pwr_cNOid
,
bool
is_plc
=
false
);
pwr_tOid
oid
=
pwr_cNOid
,
bool
is_plc
=
false
);
...
...
src/lib/co/src/co_nav_help.h
View file @
a3a75762
...
@@ -8,6 +8,8 @@
...
@@ -8,6 +8,8 @@
<Description>. */
<Description>. */
#include <string.h>
#if defined __cplusplus
#if defined __cplusplus
extern
"C"
{
extern
"C"
{
#endif
#endif
...
...
src/lib/co/src/co_user.h
View file @
a3a75762
...
@@ -159,7 +159,7 @@ class GeUser {
...
@@ -159,7 +159,7 @@ class GeUser {
char
fname
[
256
];
char
fname
[
256
];
bool
get_system_name_child
(
SystemList
*
s
,
SystemList
*
system
,
char
*
name
);
bool
get_system_name_child
(
SystemList
*
s
,
SystemList
*
system
,
char
*
name
);
SystemList
*
GeUser
::
get_system_child
(
SystemList
*
system
,
UserList
*
user
);
SystemList
*
get_system_child
(
SystemList
*
system
,
UserList
*
user
);
public:
public:
...
...
src/lib/rt/src/rt_io_base.c
View file @
a3a75762
...
@@ -780,7 +780,7 @@ io_init_iv_signals (
...
@@ -780,7 +780,7 @@ io_init_iv_signals (
pwr_sClass_IvArea
*
area_op
;
pwr_sClass_IvArea
*
area_op
;
pwr_sClass_Iv
*
o
;
pwr_sClass_Iv
*
o
;
pwr_tStatus
sts
;
pwr_tStatus
sts
;
pwr_t
Boolean
*
p
;
pwr_t
Int32
*
p
;
pwr_tInt32
iv_count
=
0
;
pwr_tInt32
iv_count
=
0
;
pwr_sClass_IvArea
*
iarea_op
;
pwr_sClass_IvArea
*
iarea_op
;
...
@@ -817,7 +817,7 @@ io_init_iv_signals (
...
@@ -817,7 +817,7 @@ io_init_iv_signals (
#if 0
#if 0
*p = o->InitialValue;
*p = o->InitialValue;
#endif
#endif
gdh_StoreRtdbPointer
(
(
pwr_tInt32
*
)
&
iarea_op
->
Value
[
iv_count
],
&
o
->
InitialValue
);
gdh_StoreRtdbPointer
(
(
pwr_t
U
Int32
*
)
&
iarea_op
->
Value
[
iv_count
],
&
o
->
InitialValue
);
iv_count
++
;
iv_count
++
;
p
++
;
p
++
;
}
}
...
...
wb/lib/wb/src/wb_error.h
View file @
a3a75762
#ifndef wb_error_h
#ifndef wb_error_h
#define wb_error_h
#define wb_error_h
#include "
pw
r.h"
#include "
co_erro
r.h"
#include "wb_status.h"
#include "wb_status.h"
class
wb_error
:
public
wb_status
#define wb_error co_error
{
#define wb_error_str co_error_str
public:
wb_error
()
{};
wb_error
(
pwr_tStatus
sts
)
:
wb_status
(
sts
)
{}
};
class
wb_error_str
:
public
wb_error
{
string
m_error_str
;
public:
wb_error_str
(
string
str
)
:
m_error_str
(
str
)
{}
wb_error_str
(
pwr_tStatus
sts
,
string
str
)
:
wb_error
(
sts
),
m_error_str
(
str
)
{}
string
what
()
const
{
string
s
;
if
(
m_sts
)
s
=
m_error_str
+
", "
+
wb_error
::
what
();
else
s
=
m_error_str
;
return
s
;
}
};
#endif
#endif
wb/lib/wb/src/wb_status.h
View file @
a3a75762
#ifndef wb_status_h
#ifndef wb_status_h
#define wb_status_h
#define wb_status_h
#include <string>
#include "co_status.h"
#include "pwr.h"
extern
"C"
{
#define wb_status co_status
#include "co_msg.h"
}
using
namespace
std
;
class
wb_status
{
protected:
pwr_tStatus
m_sts
;
public:
wb_status
()
:
m_sts
(
0
)
{}
wb_status
(
pwr_tStatus
sts
)
:
m_sts
(
sts
)
{}
virtual
~
wb_status
()
{};
pwr_tStatus
sts
()
const
{
return
m_sts
;}
bool
evenSts
()
const
{
return
EVEN
(
m_sts
);}
bool
oddSts
()
const
{
return
ODD
(
m_sts
);}
virtual
string
what
()
const
{
char
msg
[
200
];
msg_GetMsg
(
m_sts
,
msg
,
sizeof
(
msg
));
string
s
(
msg
);
return
s
;
}
};
#endif
#endif
...
...
xtt/exe/rt_xtt/src/os_vms/hw_axp/rt_xtt.opt
View file @
a3a75762
...
@@ -27,6 +27,7 @@ pwr_obj:xtt_menu.obj
...
@@ -27,6 +27,7 @@ pwr_obj:xtt_menu.obj
pwr_obj:xtt_xhelp.obj
pwr_obj:xtt_xhelp.obj
pwr_obj:xtt_url.obj
pwr_obj:xtt_url.obj
pwr_obj:xtt_logging.obj
pwr_obj:xtt_logging.obj
pwr_obj:xtt_fast.obj
pwr_obj:xtt_xnav_brow.obj
pwr_obj:xtt_xnav_brow.obj
pwr_obj:xtt_c_object.obj
pwr_obj:xtt_c_object.obj
pwr_obj:xtt_c_plcpgm.obj
pwr_obj:xtt_c_plcpgm.obj
...
...
xtt/lib/flow/src/flow.h
View file @
a3a75762
...
@@ -22,9 +22,9 @@ extern "C" {
...
@@ -22,9 +22,9 @@ extern "C" {
#define MIN(Dragon,Eagle) ((Dragon) < (Eagle) ? (Dragon) : (Eagle))
#define MIN(Dragon,Eagle) ((Dragon) < (Eagle) ? (Dragon) : (Eagle))
#endif
#endif
#ifndef __ALPHA
//
#ifndef __ALPHA
#define ABS(Dragon) ((Dragon) >= 0 ? (Dragon) : (-(Dragon)))
#define ABS(Dragon) ((Dragon) >= 0 ? (Dragon) : (-(Dragon)))
#endif
//
#endif
#define DRAW_TYPE_SIZE 9
#define DRAW_TYPE_SIZE 9
#define DRAW_FONT_SIZE 9
#define DRAW_FONT_SIZE 9
...
...
xtt/lib/ge/src/ge_convert.cpp
View file @
a3a75762
...
@@ -52,6 +52,7 @@ extern "C" {
...
@@ -52,6 +52,7 @@ extern "C" {
#endif
#endif
}
}
#if defined OS_LINUX
static
void
get_class_dyntype
(
int
trace_type
,
int
*
d
,
int
*
a
,
int
*
anim_sequence_p
)
static
void
get_class_dyntype
(
int
trace_type
,
int
*
d
,
int
*
a
,
int
*
anim_sequence_p
)
{
{
int
dyn_type
;
int
dyn_type
;
...
@@ -2025,9 +2026,13 @@ int Graph::convert_object( grow_tObject object)
...
@@ -2025,9 +2026,13 @@ int Graph::convert_object( grow_tObject object)
return
1
;
return
1
;
}
}
#else
int
Graph
::
convert
()
{
return
1
;
}
#endif
...
...
xtt/lib/ge/src/ge_dyn.cpp
View file @
a3a75762
...
@@ -10,6 +10,7 @@
...
@@ -10,6 +10,7 @@
#include <stdio.h>
#include <stdio.h>
#include <stdlib.h>
#include <stdlib.h>
#include <float.h>
#include <float.h>
#include <math.h>
extern
"C"
{
extern
"C"
{
#include "co_cdh.h"
#include "co_cdh.h"
...
@@ -124,6 +125,8 @@ GeDyn::GeDyn( const GeDyn& x) :
...
@@ -124,6 +125,8 @@ GeDyn::GeDyn( const GeDyn& x) :
e
=
new
GeRotate
((
const
GeRotate
&
)
*
elem
);
break
;
e
=
new
GeRotate
((
const
GeRotate
&
)
*
elem
);
break
;
case
ge_mDynType_Move
:
case
ge_mDynType_Move
:
e
=
new
GeMove
((
const
GeMove
&
)
*
elem
);
break
;
e
=
new
GeMove
((
const
GeMove
&
)
*
elem
);
break
;
case
ge_mDynType_DigShift
:
e
=
new
GeDigShift
((
const
GeDigShift
&
)
*
elem
);
break
;
case
ge_mDynType_AnalogShift
:
case
ge_mDynType_AnalogShift
:
e
=
new
GeAnalogShift
((
const
GeAnalogShift
&
)
*
elem
);
break
;
e
=
new
GeAnalogShift
((
const
GeAnalogShift
&
)
*
elem
);
break
;
case
ge_mDynType_Video
:
case
ge_mDynType_Video
:
...
@@ -893,21 +896,21 @@ int GeDyn::connect( grow_tObject object, glow_sTraceData *trace_data)
...
@@ -893,21 +896,21 @@ int GeDyn::connect( grow_tObject object, glow_sTraceData *trace_data)
if
(
cycle
==
glow_eCycle_Inherit
)
if
(
cycle
==
glow_eCycle_Inherit
)
cycle
=
glow_eCycle_Slow
;
cycle
=
glow_eCycle_Slow
;
if
(
dyn_type
&
ge_mDynType_Inherit
)
if
(
dyn_type
&
ge_mDynType_Inherit
)
(
int
)
dyn_type
=
dyn_type
&
~
ge_mActionType_Inherit
;
dyn_type
=
ge_mDynType
(
dyn_type
&
~
ge_mDynType_Inherit
)
;
if
(
dyn_type
&
ge_mDynType_Inherit
)
if
(
dyn_type
&
ge_mDynType_Inherit
)
(
int
)
action_type
=
action_type
&
~
ge_mActionType_Inherit
;
action_type
=
ge_mActionType
(
action_type
&
~
ge_mActionType_Inherit
)
;
}
}
if
(
dyn_type
&
ge_mDynType_Inherit
)
{
if
(
dyn_type
&
ge_mDynType_Inherit
)
{
grow_GetObjectClassDynType
(
object
,
&
inherit_dyn_type
,
&
inherit_action_type
);
grow_GetObjectClassDynType
(
object
,
&
inherit_dyn_type
,
&
inherit_action_type
);
(
int
)
total_dyn_type
=
dyn_type
|
inherit_dyn_type
;
total_dyn_type
=
ge_mDynType
(
dyn_type
|
inherit_dyn_type
)
;
}
}
else
else
total_dyn_type
=
dyn_type
;
total_dyn_type
=
dyn_type
;
if
(
action_type
&
ge_mActionType_Inherit
)
{
if
(
action_type
&
ge_mActionType_Inherit
)
{
grow_GetObjectClassDynType
(
object
,
&
inherit_dyn_type
,
&
inherit_action_type
);
grow_GetObjectClassDynType
(
object
,
&
inherit_dyn_type
,
&
inherit_action_type
);
(
int
)
total_action_type
=
action_type
|
inherit_action_type
;
total_action_type
=
ge_mActionType
(
action_type
|
inherit_action_type
)
;
}
}
else
else
total_action_type
=
action_type
;
total_action_type
=
action_type
;
...
@@ -965,14 +968,14 @@ void GeDyn::export_java( grow_tObject object, ofstream& fp, char *var_name)
...
@@ -965,14 +968,14 @@ void GeDyn::export_java( grow_tObject object, ofstream& fp, char *var_name)
if
(
dyn_type
&
ge_mDynType_Inherit
)
{
if
(
dyn_type
&
ge_mDynType_Inherit
)
{
grow_GetObjectClassDynType
(
object
,
&
inherit_dyn_type
,
&
inherit_action_type
);
grow_GetObjectClassDynType
(
object
,
&
inherit_dyn_type
,
&
inherit_action_type
);
(
int
)
total_dyn_type
=
dyn_type
|
inherit_dyn_type
;
total_dyn_type
=
ge_mDynType
(
dyn_type
|
inherit_dyn_type
)
;
}
}
else
else
total_dyn_type
=
dyn_type
;
total_dyn_type
=
dyn_type
;
if
(
action_type
&
ge_mActionType_Inherit
)
{
if
(
action_type
&
ge_mActionType_Inherit
)
{
grow_GetObjectClassDynType
(
object
,
&
inherit_dyn_type
,
&
inherit_action_type
);
grow_GetObjectClassDynType
(
object
,
&
inherit_dyn_type
,
&
inherit_action_type
);
(
int
)
total_action_type
=
(
action_type
|
inherit_action_type
)
&
~
ge_mActionType_Inherit
;
total_action_type
=
ge_mActionType
(
(
action_type
|
inherit_action_type
)
&
~
ge_mActionType_Inherit
)
;
}
}
else
else
total_action_type
=
action_type
;
total_action_type
=
action_type
;
...
@@ -1079,7 +1082,7 @@ int GeDigLowColor::set_color( grow_tObject object, glow_eDrawType color)
...
@@ -1079,7 +1082,7 @@ int GeDigLowColor::set_color( grow_tObject object, glow_eDrawType color)
char
msg
[
200
];
char
msg
[
200
];
if
(
dyn
->
total_dyn_type
&
ge_mDynType_Tone
)
{
if
(
dyn
->
total_dyn_type
&
ge_mDynType_Tone
)
{
(
int
)
this
->
color
=
color
/
30
;
this
->
color
=
glow_eDrawType
(
color
/
30
)
;
sprintf
(
msg
,
"DigLowTone.Tone = %s"
,
grow_ColorToneToName
(
this
->
color
));
sprintf
(
msg
,
"DigLowTone.Tone = %s"
,
grow_ColorToneToName
(
this
->
color
));
}
}
else
{
else
{
...
@@ -1319,7 +1322,7 @@ int GeDigColor::set_color( grow_tObject object, glow_eDrawType color)
...
@@ -1319,7 +1322,7 @@ int GeDigColor::set_color( grow_tObject object, glow_eDrawType color)
char
msg
[
200
];
char
msg
[
200
];
if
(
dyn
->
total_dyn_type
&
ge_mDynType_Tone
)
{
if
(
dyn
->
total_dyn_type
&
ge_mDynType_Tone
)
{
(
int
)
this
->
color
=
color
/
30
;
this
->
color
=
glow_eDrawType
(
color
/
30
)
;
if
(
instance
==
ge_mInstance_1
)
if
(
instance
==
ge_mInstance_1
)
sprintf
(
msg
,
"DigTone.Tone = %s"
,
grow_ColorToneToName
(
this
->
color
));
sprintf
(
msg
,
"DigTone.Tone = %s"
,
grow_ColorToneToName
(
this
->
color
));
else
else
...
@@ -1787,7 +1790,7 @@ int GeDigFlash::set_color( grow_tObject object, glow_eDrawType color)
...
@@ -1787,7 +1790,7 @@ int GeDigFlash::set_color( grow_tObject object, glow_eDrawType color)
char
msg
[
200
];
char
msg
[
200
];
if
(
dyn
->
total_dyn_type
&
ge_mDynType_Tone
)
{
if
(
dyn
->
total_dyn_type
&
ge_mDynType_Tone
)
{
(
int
)
this
->
color
=
color
/
30
;
this
->
color
=
glow_eDrawType
(
color
/
30
)
;
sprintf
(
msg
,
"DigFlash.Tone = %s"
,
grow_ColorToneToName
(
this
->
color
));
sprintf
(
msg
,
"DigFlash.Tone = %s"
,
grow_ColorToneToName
(
this
->
color
));
}
}
else
{
else
{
...
@@ -2949,7 +2952,7 @@ int GeAnalogColor::set_color( grow_tObject object, glow_eDrawType color)
...
@@ -2949,7 +2952,7 @@ int GeAnalogColor::set_color( grow_tObject object, glow_eDrawType color)
char
msg
[
200
];
char
msg
[
200
];
if
(
dyn
->
total_dyn_type
&
ge_mDynType_Tone
)
{
if
(
dyn
->
total_dyn_type
&
ge_mDynType_Tone
)
{
(
int
)
this
->
color
=
color
/
30
;
this
->
color
=
glow_eDrawType
(
color
/
30
)
;
if
(
instance
==
ge_mInstance_1
)
if
(
instance
==
ge_mInstance_1
)
sprintf
(
msg
,
"AnalogTone.Tone = %s"
,
grow_ColorToneToName
(
this
->
color
));
sprintf
(
msg
,
"AnalogTone.Tone = %s"
,
grow_ColorToneToName
(
this
->
color
));
else
else
...
...
xtt/lib/ge/src/ge_graph.cpp
View file @
a3a75762
...
@@ -810,10 +810,10 @@ void Graph::change_value( grow_tObject object, char *text)
...
@@ -810,10 +810,10 @@ void Graph::change_value( grow_tObject object, char *text)
event
.
event
=
glow_eEvent_MB1Click
;
event
.
event
=
glow_eEvent_MB1Click
;
// Trigger the confirm action
// Trigger the confirm action
(
int
)
dyn
->
total_action_type
=
dyn
->
total_action_type
&
~
ge_mActionType_ValueInput
;
dyn
->
total_action_type
=
ge_mActionType
(
dyn
->
total_action_type
&
~
ge_mActionType_ValueInput
)
;
strncpy
(
confirm_text
,
text
,
sizeof
(
confirm_text
));
strncpy
(
confirm_text
,
text
,
sizeof
(
confirm_text
));
dyn
->
action
(
object
,
&
event
);
dyn
->
action
(
object
,
&
event
);
(
int
)
dyn
->
total_action_type
=
dyn
->
total_action_type
|
ge_mActionType_ValueInput
;
dyn
->
total_action_type
=
ge_mActionType
(
dyn
->
total_action_type
|
ge_mActionType_ValueInput
)
;
}
}
else
{
else
{
dyn
->
change_value
(
object
,
text
);
dyn
->
change_value
(
object
,
text
);
...
@@ -1848,7 +1848,7 @@ static int graph_grow_cb( GlowCtx *ctx, glow_tEvent event)
...
@@ -1848,7 +1848,7 @@ static int graph_grow_cb( GlowCtx *ctx, glow_tEvent event)
GeDyn
*
dyn
=
new
GeDyn
(
graph
);
GeDyn
*
dyn
=
new
GeDyn
(
graph
);
grow_SetUserData
(
n1
,
(
void
*
)
dyn
);
grow_SetUserData
(
n1
,
(
void
*
)
dyn
);
if
(
grow_IsSliderClass
(
nc
))
if
(
grow_IsSliderClass
(
nc
))
(
int
)
dyn
->
action_type
|=
ge_mActionType_Slider
;
dyn
->
action_type
=
ge_mActionType
(
dyn
->
action_type
|
ge_mActionType_Slider
)
;
}
}
else
if
(
strcmp
(
type
,
".gif"
)
==
0
||
strcmp
(
type
,
".jpg"
)
==
0
)
else
if
(
strcmp
(
type
,
".gif"
)
==
0
||
strcmp
(
type
,
".jpg"
)
==
0
)
...
...
xtt/lib/ge/src/ge_graph_javabean.cpp
View file @
a3a75762
...
@@ -39,6 +39,8 @@ extern "C" {
...
@@ -39,6 +39,8 @@ extern "C" {
#define cFrameBorderX 8
#define cFrameBorderX 8
#define cFrameBorderY 44
#define cFrameBorderY 44
#if defined OS_LINUX
int
Graph
::
export_javabean
(
char
*
filename
,
char
*
bean_name
)
int
Graph
::
export_javabean
(
char
*
filename
,
char
*
bean_name
)
{
{
ofstream
fp
;
ofstream
fp
;
...
@@ -2249,3 +2251,24 @@ int Graph::export_SliderTraceAttr( ofstream& fp, grow_tObject object, int cnt)
...
@@ -2249,3 +2251,24 @@ int Graph::export_SliderTraceAttr( ofstream& fp, grow_tObject object, int cnt)
return
1
;
return
1
;
}
}
#else
int
Graph
::
export_javabean
(
char
*
filename
,
char
*
bean_name
)
{
return
1
;}
int
Graph
::
export_gejava_nodeclass
(
ofstream
&
fp
,
grow_tNodeClass
nodeclass
)
{
return
1
;}
int
Graph
::
export_javaframe
(
char
*
filename
,
char
*
bean_name
,
int
applet
,
int
html
)
{
return
1
;}
int
Graph
::
export_gejava
(
char
*
filename
,
char
*
bean_name
,
int
applet
,
int
html
)
{
return
1
;}
int
Graph
::
export_ObjectTraceAttr
(
ofstream
&
fp
,
grow_tObject
object
,
int
cnt
)
{
return
1
;}
int
Graph
::
export_GejavaObjectTraceAttr
(
ofstream
&
fp
,
grow_tObject
object
,
int
cnt
)
{
return
1
;}
int
Graph
::
export_BarTraceAttr
(
ofstream
&
fp
,
grow_tObject
object
,
int
cnt
){
return
1
;}
int
Graph
::
export_TrendTraceAttr
(
ofstream
&
fp
,
grow_tObject
object
,
int
cnt
)
{
return
1
;}
int
Graph
::
export_SliderTraceAttr
(
ofstream
&
fp
,
grow_tObject
object
,
int
cnt
)
{
return
1
;}
#endif
xtt/lib/glow/src/glow_color.cpp
View file @
a3a75762
...
@@ -203,20 +203,20 @@ glow_eDrawType GlowColor::get_drawtype( glow_eDrawType local_drawtype,
...
@@ -203,20 +203,20 @@ glow_eDrawType GlowColor::get_drawtype( glow_eDrawType local_drawtype,
if
(
local_drawtype
>
30
)
{
if
(
local_drawtype
>
30
)
{
if
(
tone
>=
glow_eDrawTone_GrayHighSaturation
&&
if
(
tone
>=
glow_eDrawTone_GrayHighSaturation
&&
tone
<
glow_eDrawTone_GrayLowSaturation
)
{
tone
<
glow_eDrawTone_GrayLowSaturation
)
{
(
int
)
tone
-=
27
;
tone
=
glow_eDrawTone
(
tone
-
27
)
;
intensity
+=
2
;
intensity
+=
2
;
}
}
else
if
(
tone
>=
glow_eDrawTone_GrayLowSaturation
)
{
else
if
(
tone
>=
glow_eDrawTone_GrayLowSaturation
)
{
(
int
)
tone
-=
2
*
27
;
tone
=
glow_eDrawTone
(
tone
-
2
*
27
)
;
intensity
-=
1
;
intensity
-=
1
;
}
}
if
(
tone
>=
glow_eDrawTone_DarkGray
&&
if
(
tone
>=
glow_eDrawTone_DarkGray
&&
tone
<
glow_eDrawTone_LightGray
)
{
tone
<
glow_eDrawTone_LightGray
)
{
(
int
)
tone
-=
9
;
tone
=
glow_eDrawTone
(
tone
-
9
)
;
lightness
-=
2
;
lightness
-=
2
;
}
}
else
if
(
tone
>=
glow_eDrawTone_LightGray
)
{
else
if
(
tone
>=
glow_eDrawTone_LightGray
)
{
(
int
)
tone
-=
18
;
tone
=
glow_eDrawTone
(
tone
-
18
)
;
lightness
+=
2
;
lightness
+=
2
;
}
}
...
@@ -254,7 +254,7 @@ glow_eDrawType GlowColor::get_drawtype( glow_eDrawType local_drawtype,
...
@@ -254,7 +254,7 @@ glow_eDrawType GlowColor::get_drawtype( glow_eDrawType local_drawtype,
if
(
drawtype
>=
60
)
{
if
(
drawtype
>=
60
)
{
base_drawtype
=
drawtype
/
30
*
30
;
base_drawtype
=
drawtype
/
30
*
30
;
incr
=
drawtype
-
base_drawtype
;
incr
=
drawtype
-
base_drawtype
;
(
int
)
drawtype
+=
min
(
2
-
incr
/
10
,
intensity
)
*
10
;
drawtype
=
glow_eDrawType
(
drawtype
+
min
(
2
-
incr
/
10
,
intensity
)
*
10
)
;
if
(
drawtype
<
base_drawtype
)
if
(
drawtype
<
base_drawtype
)
drawtype
=
(
glow_eDrawType
)(
glow_eDrawType_Color41
+
incr
);
drawtype
=
(
glow_eDrawType
)(
glow_eDrawType_Color41
+
incr
);
/*
/*
...
...
xtt/lib/glow/src/glow_exportjbean.cpp
View file @
a3a75762
...
@@ -1298,7 +1298,7 @@ void GlowExportJBean::annot( int x0, int y0, int number,
...
@@ -1298,7 +1298,7 @@ void GlowExportJBean::annot( int x0, int y0, int number,
" = s;}"
<<
endl
<<
" = s;}"
<<
endl
<<
" Font annot"
<<
number
<<
"Font = new Font(
\"
Helvetica
\"
, Font."
<<
" Font annot"
<<
number
<<
"Font = new Font(
\"
Helvetica
\"
, Font."
<<
bold_str
<<
", "
<<
text_size
<<
");"
<<
endl
<<
bold_str
<<
", "
<<
text_size
<<
");"
<<
endl
<<
" int annot"
<<
number
<<
"Color = "
<<
text_drawtype
<<
";"
<<
endl
<<
" int annot"
<<
number
<<
"Color = "
<<
int
(
text_drawtype
)
<<
";"
<<
endl
<<
" public void setAnnot"
<<
number
<<
"Font( Font font) { annot"
<<
number
<<
" public void setAnnot"
<<
number
<<
"Font( Font font) { annot"
<<
number
<<
"Font = font;}"
<<
endl
<<
"Font = font;}"
<<
endl
<<
" public void setAnnot"
<<
number
<<
"Color( int color) { annot"
<<
number
<<
" public void setAnnot"
<<
number
<<
"Color( int color) { annot"
<<
number
<<
...
...
xtt/lib/glow/src/glow_growapi.cpp
View file @
a3a75762
...
@@ -3588,6 +3588,9 @@ int grow_ImageUpdate( grow_tObject object)
...
@@ -3588,6 +3588,9 @@ int grow_ImageUpdate( grow_tObject object)
return
((
GrowImage
*
)
object
)
->
update
();
return
((
GrowImage
*
)
object
)
->
update
();
}
}
#if defined OS_VMS
extern
"C"
#endif
void
grow_RegisterUserDataCallbacks
(
grow_tCtx
ctx
,
void
grow_RegisterUserDataCallbacks
(
grow_tCtx
ctx
,
void
(
*
save
)(
void
*
,
grow_tObject
),
void
(
*
save
)(
void
*
,
grow_tObject
),
void
(
*
open
)(
void
*
,
grow_tObject
),
void
(
*
open
)(
void
*
,
grow_tObject
),
...
...
xtt/lib/glow/src/glow_growctx.cpp
View file @
a3a75762
...
@@ -1624,7 +1624,7 @@ void GrowCtx::save_grow( ofstream& fp, glow_eSaveMode mode)
...
@@ -1624,7 +1624,7 @@ void GrowCtx::save_grow( ofstream& fp, glow_eSaveMode mode)
fp
<<
int
(
glow_eSave_GrowCtx_cycle
)
<<
FSPACE
<<
int
(
cycle
)
<<
endl
;
fp
<<
int
(
glow_eSave_GrowCtx_cycle
)
<<
FSPACE
<<
int
(
cycle
)
<<
endl
;
fp
<<
int
(
glow_eSave_GrowCtx_mb3_action
)
<<
FSPACE
<<
int
(
mb3_action
)
<<
endl
;
fp
<<
int
(
glow_eSave_GrowCtx_mb3_action
)
<<
FSPACE
<<
int
(
mb3_action
)
<<
endl
;
fp
<<
int
(
glow_eSave_GrowCtx_translate_on
)
<<
FSPACE
<<
translate_on
<<
endl
;
fp
<<
int
(
glow_eSave_GrowCtx_translate_on
)
<<
FSPACE
<<
translate_on
<<
endl
;
fp
<<
int
(
glow_eSave_GrowCtx_input_focus_mark
)
<<
FSPACE
<<
in
put_focus_mark
<<
endl
;
fp
<<
int
(
glow_eSave_GrowCtx_input_focus_mark
)
<<
FSPACE
<<
in
t
(
input_focus_mark
)
<<
endl
;
fp
<<
int
(
glow_eSave_End
)
<<
endl
;
fp
<<
int
(
glow_eSave_End
)
<<
endl
;
}
}
...
@@ -1846,7 +1846,7 @@ int GrowCtx::save_subgraph( char *filename, glow_eSaveMode mode)
...
@@ -1846,7 +1846,7 @@ int GrowCtx::save_subgraph( char *filename, glow_eSaveMode mode)
fp
<<
int
(
glow_eSave_NodeClass_y1
)
<<
FSPACE
<<
y1
<<
endl
;
fp
<<
int
(
glow_eSave_NodeClass_y1
)
<<
FSPACE
<<
y1
<<
endl
;
fp
<<
int
(
glow_eSave_NodeClass_x0
)
<<
FSPACE
<<
x0
<<
endl
;
fp
<<
int
(
glow_eSave_NodeClass_x0
)
<<
FSPACE
<<
x0
<<
endl
;
fp
<<
int
(
glow_eSave_NodeClass_x1
)
<<
FSPACE
<<
x1
<<
endl
;
fp
<<
int
(
glow_eSave_NodeClass_x1
)
<<
FSPACE
<<
x1
<<
endl
;
fp
<<
int
(
glow_eSave_NodeClass_input_focus_mark
)
<<
FSPACE
<<
in
put_focus_mark
<<
endl
;
fp
<<
int
(
glow_eSave_NodeClass_input_focus_mark
)
<<
FSPACE
<<
in
t
(
input_focus_mark
)
<<
endl
;
fp
<<
int
(
glow_eSave_End
)
<<
endl
;
fp
<<
int
(
glow_eSave_End
)
<<
endl
;
// End Array
// End Array
...
@@ -3464,9 +3464,9 @@ void GrowCtx::convert( glow_eConvert version)
...
@@ -3464,9 +3464,9 @@ void GrowCtx::convert( glow_eConvert version)
set_background
(
background_color
);
set_background
(
background_color
);
if
(
dyn_type
==
3
||
dyn_type
==
4
||
dyn_type
==
12
)
{
if
(
dyn_type
==
3
||
dyn_type
==
4
||
dyn_type
==
12
)
{
if
(
(
glow_eDrawTone
)
dyn_color
[
0
]
==
glow_eDrawTone_YellowGreen
)
if
(
(
glow_eDrawTone
)
dyn_color
[
0
]
==
glow_eDrawTone_YellowGreen
)
(
glow_eDrawTone
)
dyn_color
[
0
]
=
glow_eDrawTone_Yellow
;
dyn_color
[
0
]
=
(
glow_eDrawType
)
glow_eDrawTone_Yellow
;
if
(
(
glow_eDrawTone
)
dyn_color
[
1
]
==
glow_eDrawTone_YellowGreen
)
if
(
(
glow_eDrawTone
)
dyn_color
[
1
]
==
glow_eDrawTone_YellowGreen
)
(
glow_eDrawTone
)
dyn_color
[
1
]
=
glow_eDrawTone_Yellow
;
dyn_color
[
1
]
=
(
glow_eDrawType
)
glow_eDrawTone_Yellow
;
}
}
else
{
else
{
dyn_color
[
0
]
=
GlowColor
::
convert
(
version
,
dyn_color
[
0
]);
dyn_color
[
0
]
=
GlowColor
::
convert
(
version
,
dyn_color
[
0
]);
...
...
xtt/lib/glow/src/glow_growline.cpp
View file @
a3a75762
...
@@ -273,7 +273,7 @@ void GrowLine::save( ofstream& fp, glow_eSaveMode mode)
...
@@ -273,7 +273,7 @@ void GrowLine::save( ofstream& fp, glow_eSaveMode mode)
fp
<<
int
(
glow_eSave_GrowLine_y_low
)
<<
FSPACE
<<
y_low
<<
endl
;
fp
<<
int
(
glow_eSave_GrowLine_y_low
)
<<
FSPACE
<<
y_low
<<
endl
;
fp
<<
int
(
glow_eSave_GrowLine_original_border_drawtype
)
<<
FSPACE
fp
<<
int
(
glow_eSave_GrowLine_original_border_drawtype
)
<<
FSPACE
<<
int
(
original_border_drawtype
)
<<
endl
;
<<
int
(
original_border_drawtype
)
<<
endl
;
fp
<<
int
(
glow_eSave_GrowLine_line_type
)
<<
FSPACE
<<
line_type
<<
endl
;
fp
<<
int
(
glow_eSave_GrowLine_line_type
)
<<
FSPACE
<<
int
(
line_type
)
<<
endl
;
fp
<<
int
(
glow_eSave_GrowLine_line_part
)
<<
endl
;
fp
<<
int
(
glow_eSave_GrowLine_line_part
)
<<
endl
;
GlowLine
::
save
(
fp
,
mode
);
GlowLine
::
save
(
fp
,
mode
);
fp
<<
int
(
glow_eSave_GrowLine_trf
)
<<
endl
;
fp
<<
int
(
glow_eSave_GrowLine_trf
)
<<
endl
;
...
...
xtt/lib/glow/src/glow_grownode.cpp
View file @
a3a75762
...
@@ -1954,9 +1954,9 @@ void GrowNode::convert( glow_eConvert version)
...
@@ -1954,9 +1954,9 @@ void GrowNode::convert( glow_eConvert version)
trace
.
attr_type
==
1013
||
trace
.
attr_type
==
1014
||
trace
.
attr_type
==
1015
||
trace
.
attr_type
==
1013
||
trace
.
attr_type
==
1014
||
trace
.
attr_type
==
1015
||
trace
.
attr_type
==
1016
||
trace
.
attr_type
==
1021
||
trace
.
attr_type
==
1023
)
{
trace
.
attr_type
==
1016
||
trace
.
attr_type
==
1021
||
trace
.
attr_type
==
1023
)
{
if
(
(
glow_eDrawTone
)
trace
.
color
==
glow_eDrawTone_YellowGreen
)
if
(
(
glow_eDrawTone
)
trace
.
color
==
glow_eDrawTone_YellowGreen
)
(
glow_eDrawTone
)
trace
.
color
=
glow_eDrawTone_Yellow
;
trace
.
color
=
(
glow_eDrawType
)
glow_eDrawTone_Yellow
;
if
(
(
glow_eDrawTone
)
trace
.
color2
==
glow_eDrawTone_YellowGreen
)
if
(
(
glow_eDrawTone
)
trace
.
color2
==
glow_eDrawTone_YellowGreen
)
(
glow_eDrawTone
)
trace
.
color2
=
glow_eDrawTone_Yellow
;
trace
.
color2
=
(
glow_eDrawType
)
glow_eDrawTone_Yellow
;
}
}
else
{
else
{
trace
.
color
=
GlowColor
::
convert
(
version
,
trace
.
color
);
trace
.
color
=
GlowColor
::
convert
(
version
,
trace
.
color
);
...
...
xtt/lib/glow/src/glow_nodeclass.cpp
View file @
a3a75762
...
@@ -119,7 +119,7 @@ void GlowNodeClass::save( ofstream& fp, glow_eSaveMode mode)
...
@@ -119,7 +119,7 @@ void GlowNodeClass::save( ofstream& fp, glow_eSaveMode mode)
fp
<<
int
(
glow_eSave_NodeClass_y1
)
<<
FSPACE
<<
y1
<<
endl
;
fp
<<
int
(
glow_eSave_NodeClass_y1
)
<<
FSPACE
<<
y1
<<
endl
;
fp
<<
int
(
glow_eSave_NodeClass_x0
)
<<
FSPACE
<<
x0
<<
endl
;
fp
<<
int
(
glow_eSave_NodeClass_x0
)
<<
FSPACE
<<
x0
<<
endl
;
fp
<<
int
(
glow_eSave_NodeClass_x1
)
<<
FSPACE
<<
x1
<<
endl
;
fp
<<
int
(
glow_eSave_NodeClass_x1
)
<<
FSPACE
<<
x1
<<
endl
;
fp
<<
int
(
glow_eSave_NodeClass_input_focus_mark
)
<<
FSPACE
<<
in
put_focus_mark
<<
endl
;
fp
<<
int
(
glow_eSave_NodeClass_input_focus_mark
)
<<
FSPACE
<<
in
t
(
input_focus_mark
)
<<
endl
;
fp
<<
int
(
glow_eSave_End
)
<<
endl
;
fp
<<
int
(
glow_eSave_End
)
<<
endl
;
}
}
...
@@ -847,9 +847,9 @@ void GlowNodeClass::convert( glow_eConvert version)
...
@@ -847,9 +847,9 @@ void GlowNodeClass::convert( glow_eConvert version)
a
.
convert
(
version
);
a
.
convert
(
version
);
if
(
dyn_type
==
3
||
dyn_type
==
4
||
dyn_type
==
12
)
{
if
(
dyn_type
==
3
||
dyn_type
==
4
||
dyn_type
==
12
)
{
if
(
(
glow_eDrawTone
)
dyn_color
[
0
]
==
glow_eDrawTone_YellowGreen
)
if
(
(
glow_eDrawTone
)
dyn_color
[
0
]
==
glow_eDrawTone_YellowGreen
)
(
glow_eDrawTone
)
dyn_color
[
0
]
=
glow_eDrawTone_Yellow
;
dyn_color
[
0
]
=
(
glow_eDrawType
)
glow_eDrawTone_Yellow
;
if
(
(
glow_eDrawTone
)
dyn_color
[
1
]
==
glow_eDrawTone_YellowGreen
)
if
(
(
glow_eDrawTone
)
dyn_color
[
1
]
==
glow_eDrawTone_YellowGreen
)
(
glow_eDrawTone
)
dyn_color
[
1
]
=
glow_eDrawTone_Yellow
;
dyn_color
[
1
]
=
(
glow_eDrawType
)
glow_eDrawTone_Yellow
;
}
}
else
{
else
{
dyn_color
[
0
]
=
GlowColor
::
convert
(
version
,
dyn_color
[
0
]);
dyn_color
[
0
]
=
GlowColor
::
convert
(
version
,
dyn_color
[
0
]);
...
...
xtt/lib/xtt/src/xtt_xnav_help.cpp
View file @
a3a75762
...
@@ -129,8 +129,7 @@ int XNav::help( char *help_key, char *help_bookmark,
...
@@ -129,8 +129,7 @@ int XNav::help( char *help_key, char *help_bookmark,
brow_SetNodraw
(
brow
->
ctx
);
brow_SetNodraw
(
brow
->
ctx
);
}
}
sts
=
navhelp
->
help
(
help_key
,
help_bookmark
,
file_type
,
sts
=
navhelp
->
help
(
help_key
,
help_bookmark
,
file_type
,
file_name
,
&
bookmark_node
,
false
);
file_name
,
&
bookmark_node
);
if
(
EVEN
(
sts
))
{
if
(
EVEN
(
sts
))
{
if
(
!
pop
||
(
pop
&&
!
init_help
))
{
if
(
!
pop
||
(
pop
&&
!
init_help
))
{
brow_push
();
brow_push
();
...
...
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