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
24680d18
Commit
24680d18
authored
Nov 18, 2014
by
Claes Sjofors
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Plc editor execute order display fix
parent
edf2c28f
Changes
12
Hide whitespace changes
Inline
Side-by-side
Showing
12 changed files
with
69 additions
and
18 deletions
+69
-18
wb/lib/wb/src/wb_goen.h
wb/lib/wb/src/wb_goen.h
+1
-1
wb/lib/wb/src/wb_goenm0.cpp
wb/lib/wb/src/wb_goenm0.cpp
+4
-1
wb/lib/wb/src/wb_goenm1.cpp
wb/lib/wb/src/wb_goenm1.cpp
+4
-1
wb/lib/wb/src/wb_goenm10.cpp
wb/lib/wb/src/wb_goenm10.cpp
+4
-1
wb/lib/wb/src/wb_goenm12.cpp
wb/lib/wb/src/wb_goenm12.cpp
+4
-1
wb/lib/wb/src/wb_goenm14.cpp
wb/lib/wb/src/wb_goenm14.cpp
+4
-1
wb/lib/wb/src/wb_goenm15.cpp
wb/lib/wb/src/wb_goenm15.cpp
+4
-1
wb/lib/wb/src/wb_goenm16.cpp
wb/lib/wb/src/wb_goenm16.cpp
+4
-1
wb/lib/wb/src/wb_goenm2.cpp
wb/lib/wb/src/wb_goenm2.cpp
+4
-1
wb/lib/wb/src/wb_goenm4.cpp
wb/lib/wb/src/wb_goenm4.cpp
+28
-7
wb/lib/wb/src/wb_goenm5.cpp
wb/lib/wb/src/wb_goenm5.cpp
+4
-1
wb/lib/wb/src/wb_goenm7.cpp
wb/lib/wb/src/wb_goenm7.cpp
+4
-1
No files found.
wb/lib/wb/src/wb_goen.h
View file @
24680d18
...
...
@@ -130,7 +130,7 @@ class WGre;
#define GOEN_REFNODEWIDTH 0.08
/* Reference rect width */
#define GOEN_REFNODEHEIGHT 0.035
/* Reference rect height */
#define GOEN_DISPLAYNODEWIDTH 0.09
/* Display node rect width */
#define GOEN_DISPLAYNODEHEIGHT 0.0
3
0
/* Display node rect height */
#define GOEN_DISPLAYNODEHEIGHT 0.0
4
0
/* Display node rect height */
/* Connection attributes */
#define GOEN_CON_OBJTOOBJ 1
...
...
wb/lib/wb/src/wb_goenm0.cpp
View file @
24680d18
...
...
@@ -330,7 +330,10 @@ int goen_create_nodetype_m0(
/* Add execute order display */
flow_AddFilledRect
(
nc_pid
,
f_width
-
GOEN_DISPLAYNODEWIDTH
,
-
f_yoffs
,
GOEN_DISPLAYNODEWIDTH
,
GOEN_DISPLAYNODEHEIGHT
,
flow_eDrawType_LineGray
,
flow_mDisplayLevel_2
);
flow_eDrawType_LineErase
,
flow_mDisplayLevel_2
);
flow_AddRect
(
nc_pid
,
f_width
-
GOEN_DISPLAYNODEWIDTH
,
-
f_yoffs
,
GOEN_DISPLAYNODEWIDTH
,
GOEN_DISPLAYNODEHEIGHT
,
flow_eDrawType_LineRed
,
1
,
flow_mDisplayLevel_2
);
flow_AddAnnot
(
nc_pid
,
f_width
-
GOEN_DISPLAYNODEWIDTH
+
f_strlength
,
(
GOEN_DISPLAYNODEHEIGHT
+
f_strheight
)
/
2.0
-
f_yoffs
,
...
...
wb/lib/wb/src/wb_goenm1.cpp
View file @
24680d18
...
...
@@ -325,7 +325,10 @@ int goen_create_nodetype_m1(
/* Add execute order display */
flow_AddFilledRect
(
nc_pid
,
f_width
-
GOEN_DISPLAYNODEWIDTH
,
-
f_yoffs
,
GOEN_DISPLAYNODEWIDTH
,
GOEN_DISPLAYNODEHEIGHT
,
flow_eDrawType_LineGray
,
flow_mDisplayLevel_2
);
flow_eDrawType_LineErase
,
flow_mDisplayLevel_2
);
flow_AddRect
(
nc_pid
,
f_width
-
GOEN_DISPLAYNODEWIDTH
,
-
f_yoffs
,
GOEN_DISPLAYNODEWIDTH
,
GOEN_DISPLAYNODEHEIGHT
,
flow_eDrawType_LineRed
,
1
,
flow_mDisplayLevel_2
);
flow_AddAnnot
(
nc_pid
,
f_width
-
GOEN_DISPLAYNODEWIDTH
+
f_strlength
,
(
GOEN_DISPLAYNODEHEIGHT
+
f_strheight
)
/
2.0
-
f_yoffs
,
...
...
wb/lib/wb/src/wb_goenm10.cpp
View file @
24680d18
...
...
@@ -325,7 +325,10 @@ int goen_create_nodetype_m10(
/* Add execute order display */
flow_AddFilledRect
(
nc_pid
,
f_width
-
GOEN_DISPLAYNODEWIDTH
,
-
f_yoffs
,
GOEN_DISPLAYNODEWIDTH
,
GOEN_DISPLAYNODEHEIGHT
,
flow_eDrawType_LineGray
,
flow_mDisplayLevel_2
);
flow_eDrawType_LineErase
,
flow_mDisplayLevel_2
);
flow_AddRect
(
nc_pid
,
f_width
-
GOEN_DISPLAYNODEWIDTH
,
-
f_yoffs
,
GOEN_DISPLAYNODEWIDTH
,
GOEN_DISPLAYNODEHEIGHT
,
flow_eDrawType_LineRed
,
1
,
flow_mDisplayLevel_2
);
flow_AddAnnot
(
nc_pid
,
f_width
-
GOEN_DISPLAYNODEWIDTH
+
f_strlength
,
(
GOEN_DISPLAYNODEHEIGHT
+
f_strheight
)
/
2.0
-
f_yoffs
,
...
...
wb/lib/wb/src/wb_goenm12.cpp
View file @
24680d18
...
...
@@ -147,7 +147,10 @@ int goen_create_nodetype_m12( pwr_sGraphPlcNode *graphbody,
double
y
=
0
;
flow_AddFilledRect
(
nc
,
x
,
y
,
GOEN_DISPLAYNODEWIDTH
,
GOEN_DISPLAYNODEHEIGHT
,
flow_eDrawType_LineGray
,
flow_mDisplayLevel_2
);
flow_eDrawType_LineErase
,
flow_mDisplayLevel_2
);
flow_AddRect
(
nc
,
x
,
y
,
GOEN_DISPLAYNODEWIDTH
,
GOEN_DISPLAYNODEHEIGHT
,
flow_eDrawType_LineRed
,
1
,
flow_mDisplayLevel_2
);
flow_AddAnnot
(
nc
,
x
+
f_strlength
,
y
+
(
GOEN_DISPLAYNODEHEIGHT
+
f_strheight
)
/
2.0
,
...
...
wb/lib/wb/src/wb_goenm14.cpp
View file @
24680d18
...
...
@@ -336,7 +336,10 @@ int goen_create_nodetype_m14(
/* Add execute order display */
flow_AddFilledRect
(
nc_pid
,
f_width
-
GOEN_DISPLAYNODEWIDTH
,
-
f_yoffs
,
GOEN_DISPLAYNODEWIDTH
,
GOEN_DISPLAYNODEHEIGHT
,
flow_eDrawType_LineGray
,
flow_mDisplayLevel_2
);
flow_eDrawType_LineErase
,
flow_mDisplayLevel_2
);
flow_AddRect
(
nc_pid
,
f_width
-
GOEN_DISPLAYNODEWIDTH
,
-
f_yoffs
,
GOEN_DISPLAYNODEWIDTH
,
GOEN_DISPLAYNODEHEIGHT
,
flow_eDrawType_LineRed
,
1
,
flow_mDisplayLevel_2
);
flow_AddAnnot
(
nc_pid
,
f_width
-
GOEN_DISPLAYNODEWIDTH
+
f_strlength
,
(
GOEN_DISPLAYNODEHEIGHT
+
f_strheight
)
/
2.0
-
f_yoffs
,
...
...
wb/lib/wb/src/wb_goenm15.cpp
View file @
24680d18
...
...
@@ -365,7 +365,10 @@ int goen_create_nodetype_m15(
/* Add execute order display */
flow_AddFilledRect
(
nc_pid
,
f_width
-
GOEN_DISPLAYNODEWIDTH
,
-
f_yoffs
,
GOEN_DISPLAYNODEWIDTH
,
GOEN_DISPLAYNODEHEIGHT
,
flow_eDrawType_LineGray
,
flow_mDisplayLevel_2
);
flow_eDrawType_LineErase
,
flow_mDisplayLevel_2
);
flow_AddRect
(
nc_pid
,
f_width
-
GOEN_DISPLAYNODEWIDTH
,
-
f_yoffs
,
GOEN_DISPLAYNODEWIDTH
,
GOEN_DISPLAYNODEHEIGHT
,
flow_eDrawType_LineRed
,
1
,
flow_mDisplayLevel_2
);
flow_AddAnnot
(
nc_pid
,
f_width
-
GOEN_DISPLAYNODEWIDTH
+
f_strlength
,
(
GOEN_DISPLAYNODEHEIGHT
+
f_strheight
)
/
2.0
-
f_yoffs
,
...
...
wb/lib/wb/src/wb_goenm16.cpp
View file @
24680d18
...
...
@@ -469,7 +469,10 @@ int goen_create_nodetype_m16(
/* Add execute order display */
flow_AddFilledRect
(
nc_pid
,
f_width
-
GOEN_DISPLAYNODEWIDTH
,
-
f_yoffs
,
GOEN_DISPLAYNODEWIDTH
,
GOEN_DISPLAYNODEHEIGHT
,
flow_eDrawType_LineGray
,
flow_mDisplayLevel_2
);
flow_eDrawType_LineErase
,
flow_mDisplayLevel_2
);
flow_AddRect
(
nc_pid
,
f_width
-
GOEN_DISPLAYNODEWIDTH
,
-
f_yoffs
,
GOEN_DISPLAYNODEWIDTH
,
GOEN_DISPLAYNODEHEIGHT
,
flow_eDrawType_LineRed
,
1
,
flow_mDisplayLevel_2
);
flow_AddAnnot
(
nc_pid
,
f_width
-
GOEN_DISPLAYNODEWIDTH
+
f_strlength
,
(
GOEN_DISPLAYNODEHEIGHT
+
f_strheight
)
/
2.0
-
f_yoffs
,
...
...
wb/lib/wb/src/wb_goenm2.cpp
View file @
24680d18
...
...
@@ -384,8 +384,11 @@ int goen_create_nodetype_m2(
/* Add execute order display */
flow_AddFilledRect
(
nc_pid
,
f_width
-
GOEN_DISPLAYNODEWIDTH
,
-
f_yoffs
,
GOEN_DISPLAYNODEWIDTH
,
GOEN_DISPLAYNODEHEIGHT
,
flow_eDrawType_LineErase
,
flow_mDisplayLevel_2
);
flow_AddRect
(
nc_pid
,
f_width
-
GOEN_DISPLAYNODEWIDTH
,
-
f_yoffs
,
GOEN_DISPLAYNODEWIDTH
,
GOEN_DISPLAYNODEHEIGHT
,
flow_eDrawType_Line
Gray
,
flow_mDisplayLevel_2
);
flow_eDrawType_Line
Red
,
1
,
flow_mDisplayLevel_2
);
flow_AddAnnot
(
nc_pid
,
f_width
-
GOEN_DISPLAYNODEWIDTH
+
f_strlength
,
(
GOEN_DISPLAYNODEHEIGHT
+
f_strheight
)
/
2.0
-
f_yoffs
,
...
...
wb/lib/wb/src/wb_goenm4.cpp
View file @
24680d18
...
...
@@ -173,7 +173,10 @@ int goen_create_nodetype_m4(
/* Add execute order display */
flow_AddFilledRect
(
nc
,
f_width
/
2
-
GOEN_DISPLAYNODEWIDTH
,
-
f_height
/
2
,
GOEN_DISPLAYNODEWIDTH
,
GOEN_DISPLAYNODEHEIGHT
,
flow_eDrawType_LineGray
,
flow_mDisplayLevel_2
);
flow_eDrawType_LineErase
,
flow_mDisplayLevel_2
);
flow_AddRect
(
nc
,
f_width
/
2
-
GOEN_DISPLAYNODEWIDTH
,
-
f_height
/
2
,
GOEN_DISPLAYNODEWIDTH
,
GOEN_DISPLAYNODEHEIGHT
,
flow_eDrawType_LineRed
,
1
,
flow_mDisplayLevel_2
);
flow_AddAnnot
(
nc
,
f_width
/
2
-
GOEN_DISPLAYNODEWIDTH
+
f_strlength
,
(
GOEN_DISPLAYNODEHEIGHT
+
f_strheight
)
/
2.0
-
f_height
/
2
,
...
...
@@ -210,7 +213,10 @@ int goen_create_nodetype_m4(
/* Add execute order display */
flow_AddFilledRect
(
nc
,
f_width
/
2
-
GOEN_DISPLAYNODEWIDTH
,
-
f_height
/
2
,
GOEN_DISPLAYNODEWIDTH
,
GOEN_DISPLAYNODEHEIGHT
,
flow_eDrawType_LineGray
,
flow_mDisplayLevel_2
);
flow_eDrawType_LineErase
,
flow_mDisplayLevel_2
);
flow_AddRect
(
nc
,
f_width
/
2
-
GOEN_DISPLAYNODEWIDTH
,
-
f_height
/
2
,
GOEN_DISPLAYNODEWIDTH
,
GOEN_DISPLAYNODEHEIGHT
,
flow_eDrawType_LineRed
,
1
,
flow_mDisplayLevel_2
);
flow_AddAnnot
(
nc
,
f_width
/
2
-
GOEN_DISPLAYNODEWIDTH
+
f_strlength
,
(
GOEN_DISPLAYNODEHEIGHT
+
f_strheight
)
/
2.0
-
f_height
/
2
,
...
...
@@ -251,7 +257,10 @@ int goen_create_nodetype_m4(
/* Add execute order display */
flow_AddFilledRect
(
nc
,
f_width
/
2
-
GOEN_DISPLAYNODEWIDTH
,
-
f_height
/
2
,
GOEN_DISPLAYNODEWIDTH
,
GOEN_DISPLAYNODEHEIGHT
,
flow_eDrawType_LineGray
,
flow_mDisplayLevel_2
);
flow_eDrawType_LineErase
,
flow_mDisplayLevel_2
);
flow_AddRect
(
nc
,
f_width
/
2
-
GOEN_DISPLAYNODEWIDTH
,
-
f_height
/
2
,
GOEN_DISPLAYNODEWIDTH
,
GOEN_DISPLAYNODEHEIGHT
,
flow_eDrawType_LineRed
,
1
,
flow_mDisplayLevel_2
);
flow_AddAnnot
(
nc
,
f_width
/
2
-
GOEN_DISPLAYNODEWIDTH
+
f_strlength
,
(
GOEN_DISPLAYNODEHEIGHT
+
f_strheight
)
/
2.0
-
f_height
/
2
,
...
...
@@ -279,7 +288,10 @@ int goen_create_nodetype_m4(
/* Add execute order display */
flow_AddFilledRect
(
nc
,
f_width
/
2
-
GOEN_DISPLAYNODEWIDTH
,
-
f_height
/
2
,
GOEN_DISPLAYNODEWIDTH
,
GOEN_DISPLAYNODEHEIGHT
,
flow_eDrawType_LineGray
,
flow_mDisplayLevel_2
);
flow_eDrawType_LineErase
,
flow_mDisplayLevel_2
);
flow_AddRect
(
nc
,
f_width
/
2
-
GOEN_DISPLAYNODEWIDTH
,
-
f_height
/
2
,
GOEN_DISPLAYNODEWIDTH
,
GOEN_DISPLAYNODEHEIGHT
,
flow_eDrawType_LineRed
,
1
,
flow_mDisplayLevel_2
);
flow_AddAnnot
(
nc
,
f_width
/
2
-
GOEN_DISPLAYNODEWIDTH
+
f_strlength
,
(
GOEN_DISPLAYNODEHEIGHT
+
f_strheight
)
/
2.0
-
f_height
/
2
,
...
...
@@ -307,7 +319,10 @@ int goen_create_nodetype_m4(
/* Add execute order display */
flow_AddFilledRect
(
nc
,
f_width
/
2
-
GOEN_DISPLAYNODEWIDTH
,
-
f_height
/
2
,
GOEN_DISPLAYNODEWIDTH
,
GOEN_DISPLAYNODEHEIGHT
,
flow_eDrawType_LineGray
,
flow_mDisplayLevel_2
);
flow_eDrawType_LineErase
,
flow_mDisplayLevel_2
);
flow_AddRect
(
nc
,
f_width
/
2
-
GOEN_DISPLAYNODEWIDTH
,
-
f_height
/
2
,
GOEN_DISPLAYNODEWIDTH
,
GOEN_DISPLAYNODEHEIGHT
,
flow_eDrawType_LineRed
,
1
,
flow_mDisplayLevel_2
);
flow_AddAnnot
(
nc
,
f_width
/
2
-
GOEN_DISPLAYNODEWIDTH
+
f_strlength
,
(
GOEN_DISPLAYNODEHEIGHT
+
f_strheight
)
/
2.0
-
f_height
/
2
,
...
...
@@ -339,7 +354,10 @@ int goen_create_nodetype_m4(
/* Add execute order display */
flow_AddFilledRect
(
nc
,
f_width
/
2
-
GOEN_DISPLAYNODEWIDTH
,
0
,
GOEN_DISPLAYNODEWIDTH
,
GOEN_DISPLAYNODEHEIGHT
,
flow_eDrawType_LineGray
,
flow_mDisplayLevel_2
);
flow_eDrawType_LineErase
,
flow_mDisplayLevel_2
);
flow_AddRect
(
nc
,
f_width
/
2
-
GOEN_DISPLAYNODEWIDTH
,
0
,
GOEN_DISPLAYNODEWIDTH
,
GOEN_DISPLAYNODEHEIGHT
,
flow_eDrawType_LineRed
,
1
,
flow_mDisplayLevel_2
);
flow_AddAnnot
(
nc
,
f_width
/
2
-
GOEN_DISPLAYNODEWIDTH
+
f_strlength
,
(
GOEN_DISPLAYNODEHEIGHT
+
f_strheight
)
/
2.0
,
...
...
@@ -387,7 +405,10 @@ int goen_create_nodetype_m4(
/* Add execute order display */
flow_AddFilledRect
(
nc
,
f_width
-
GOEN_DISPLAYNODEWIDTH
,
-
f_height
/
2
,
GOEN_DISPLAYNODEWIDTH
,
GOEN_DISPLAYNODEHEIGHT
,
flow_eDrawType_LineGray
,
flow_mDisplayLevel_2
);
flow_eDrawType_LineErase
,
flow_mDisplayLevel_2
);
flow_AddRect
(
nc
,
f_width
-
GOEN_DISPLAYNODEWIDTH
,
-
f_height
/
2
,
GOEN_DISPLAYNODEWIDTH
,
GOEN_DISPLAYNODEHEIGHT
,
flow_eDrawType_LineRed
,
1
,
flow_mDisplayLevel_2
);
flow_AddAnnot
(
nc
,
f_width
-
GOEN_DISPLAYNODEWIDTH
+
f_strlength
,
(
GOEN_DISPLAYNODEHEIGHT
+
f_strheight
)
/
2.0
-
f_height
/
2
,
...
...
wb/lib/wb/src/wb_goenm5.cpp
View file @
24680d18
...
...
@@ -270,7 +270,10 @@ int goen_create_nodetype_m5(
/* Add execute order display */
flow_AddFilledRect
(
nc
,
f_width
-
GOEN_DISPLAYNODEWIDTH
,
-
f_yoffs
,
GOEN_DISPLAYNODEWIDTH
,
GOEN_DISPLAYNODEHEIGHT
,
flow_eDrawType_LineGray
,
flow_mDisplayLevel_2
);
flow_eDrawType_LineErase
,
flow_mDisplayLevel_2
);
flow_AddRect
(
nc
,
f_width
-
GOEN_DISPLAYNODEWIDTH
,
-
f_yoffs
,
GOEN_DISPLAYNODEWIDTH
,
GOEN_DISPLAYNODEHEIGHT
,
flow_eDrawType_LineRed
,
1
,
flow_mDisplayLevel_2
);
flow_AddAnnot
(
nc
,
f_width
-
GOEN_DISPLAYNODEWIDTH
+
f_strlength
,
(
GOEN_DISPLAYNODEHEIGHT
+
f_strheight
)
/
2.0
-
f_yoffs
,
...
...
wb/lib/wb/src/wb_goenm7.cpp
View file @
24680d18
...
...
@@ -327,7 +327,10 @@ int goen_create_nodetype_m7(
/* Add execute order display */
flow_AddFilledRect
(
nc_pid
,
f_width
-
GOEN_DISPLAYNODEWIDTH
,
-
f_yoffs
,
GOEN_DISPLAYNODEWIDTH
,
GOEN_DISPLAYNODEHEIGHT
,
flow_eDrawType_LineGray
,
flow_mDisplayLevel_2
);
flow_eDrawType_LineErase
,
flow_mDisplayLevel_2
);
flow_AddRect
(
nc_pid
,
f_width
-
GOEN_DISPLAYNODEWIDTH
,
-
f_yoffs
,
GOEN_DISPLAYNODEWIDTH
,
GOEN_DISPLAYNODEHEIGHT
,
flow_eDrawType_LineRed
,
1
,
flow_mDisplayLevel_2
);
flow_AddAnnot
(
nc_pid
,
f_width
-
GOEN_DISPLAYNODEWIDTH
+
f_strlength
,
(
GOEN_DISPLAYNODEHEIGHT
+
f_strheight
)
/
2.0
-
f_yoffs
,
...
...
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