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
c604ee59
Commit
c604ee59
authored
Mar 03, 2005
by
claes
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Postscript print added
parent
c269f138
Changes
7
Hide whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
130 additions
and
5 deletions
+130
-5
src/lib/rt/src/rt_trace.c
src/lib/rt/src/rt_trace.c
+47
-5
xtt/mmi/xtt/en_us/inc_xtt.uil
xtt/mmi/xtt/en_us/inc_xtt.uil
+1
-0
xtt/mmi/xtt/src/xtt_curve.uil
xtt/mmi/xtt/src/xtt_curve.uil
+16
-0
xtt/mmi/xtt/src/xtt_eve.uil
xtt/mmi/xtt/src/xtt_eve.uil
+39
-0
xtt/mmi/xtt/src/xtt_hist.uil
xtt/mmi/xtt/src/xtt_hist.uil
+13
-0
xtt/mmi/xtt/src/xtt_trace.uil
xtt/mmi/xtt/src/xtt_trace.uil
+13
-0
xtt/mmi/xtt/sv_se/inc_xtt.uil
xtt/mmi/xtt/sv_se/inc_xtt.uil
+1
-0
No files found.
src/lib/rt/src/rt_trace.c
View file @
c604ee59
...
@@ -301,15 +301,56 @@ static void tra_activate_print( Widget w, tra_tCtx tractx, XmAnyCallbackStruct *
...
@@ -301,15 +301,56 @@ static void tra_activate_print( Widget w, tra_tCtx tractx, XmAnyCallbackStruct *
flow_tObject
*
list
;
flow_tObject
*
list
;
int
cnt
;
int
cnt
;
double
ll_x
,
ll_y
,
ur_x
,
ur_y
;
double
ll_x
,
ll_y
,
ur_x
,
ur_y
;
flow_tNode
n
;
flow_tNode
*
np
;
int
j
;
int
i
=
0
;
char
filename
[
200
];
char
cmd
[
200
];
/* Get selected object */
flow_GetObjectList
(
ctx
,
&
list
,
&
cnt
);
np
=
list
;
for
(
j
=
0
;
j
<
cnt
;
j
++
)
{
if
(
cnt
>
0
&&
flow_GetObjectType
(
*
np
)
==
flow_eObjectType_Node
&&
flow_GetNodeGroup
(
*
np
)
==
flow_eNodeGroup_Document
)
{
sprintf
(
filename
,
"$pwrp_tmp/trace%d.ps"
,
++
i
);
dcli_translate_filename
(
filename
,
filename
);
flow_MeasureNode
(
*
np
,
&
ll_x
,
&
ll_y
,
&
ur_x
,
&
ur_y
);
flow_PrintRegion
(
ctx
,
ll_x
,
ll_y
,
ur_x
,
ur_y
,
filename
);
sprintf
(
cmd
,
"$pwr_exe/rt_print.sh %s 1"
,
filename
);
system
(
cmd
);
}
np
++
;
}
}
static
void
tra_activate_printselect
(
Widget
w
,
tra_tCtx
tractx
,
XmAnyCallbackStruct
*
data
)
{
flow_tCtx
ctx
=
(
flow_tCtx
)
tractx
->
flow_ctx
;
flow_tObject
*
list
;
int
cnt
;
double
ll_x
,
ll_y
,
ur_x
,
ur_y
;
flow_tNode
n
;
char
filename
[
200
];
int
i
=
0
;
char
cmd
[
200
];
/* Get selected object */
/* Get selected object */
flow_GetSelectList
(
ctx
,
&
list
,
&
cnt
);
flow_GetSelectList
(
ctx
,
&
list
,
&
cnt
);
if
(
cnt
>
0
&&
flow_GetObjectType
(
*
list
)
==
flow_eObjectType_Node
)
if
(
cnt
>
0
&&
flow_GetObjectType
(
*
list
)
==
flow_eObjectType_Node
&&
flow_GetNodeGroup
(
*
list
)
==
flow_eNodeGroup_Document
)
{
{
sprintf
(
filename
,
"$pwrp_tmp/trace%d.ps"
,
++
i
);
dcli_translate_filename
(
filename
,
filename
);
n
=
*
list
;
n
=
*
list
;
flow_MeasureNode
(
n
,
&
ll_x
,
&
ll_y
,
&
ur_x
,
&
ur_y
);
flow_MeasureNode
(
n
,
&
ll_x
,
&
ll_y
,
&
ur_x
,
&
ur_y
);
flow_PrintRegion
(
ctx
,
ll_x
,
ll_y
,
ur_x
,
ur_y
,
"test.ps"
);
flow_PrintRegion
(
ctx
,
ll_x
,
ll_y
,
ur_x
,
ur_y
,
filename
);
sprintf
(
cmd
,
"$pwr_exe/rt_print.sh %s 1"
,
filename
);
system
(
cmd
);
}
}
else
else
printf
(
"No such node
\n
"
);
printf
(
"No such node
\n
"
);
...
@@ -662,8 +703,8 @@ static int trace_flow_cb( FlowCtx *ctx, flow_tEvent event)
...
@@ -662,8 +703,8 @@ static int trace_flow_cb( FlowCtx *ctx, flow_tEvent event)
}
}
else
else
{
{
if
(
flow_GetNodeGroup
(
event
->
object
.
object
)
==
flow_eNodeGroup_Document
)
//
if ( flow_GetNodeGroup( event->object.object) == flow_eNodeGroup_Document)
break
;
//
break;
flow_SelectClear
(
ctx
);
flow_SelectClear
(
ctx
);
flow_SetInverse
(
event
->
object
.
object
,
1
);
flow_SetInverse
(
event
->
object
.
object
,
1
);
flow_SelectInsert
(
ctx
,
event
->
object
.
object
);
flow_SelectInsert
(
ctx
,
event
->
object
.
object
);
...
@@ -1351,6 +1392,7 @@ tra_tCtx trace_new( void *parent_ctx,
...
@@ -1351,6 +1392,7 @@ tra_tCtx trace_new( void *parent_ctx,
{
"tra_ctx"
,
0
},
{
"tra_ctx"
,
0
},
{
"tra_activate_close"
,(
caddr_t
)
tra_activate_close
},
{
"tra_activate_close"
,(
caddr_t
)
tra_activate_close
},
{
"tra_activate_print"
,(
caddr_t
)
tra_activate_print
},
{
"tra_activate_print"
,(
caddr_t
)
tra_activate_print
},
{
"tra_activate_printselect"
,(
caddr_t
)
tra_activate_printselect
},
{
"tra_activate_savetrace"
,(
caddr_t
)
tra_activate_savetrace
},
{
"tra_activate_savetrace"
,(
caddr_t
)
tra_activate_savetrace
},
{
"tra_activate_restoretrace"
,(
caddr_t
)
tra_activate_restoretrace
},
{
"tra_activate_restoretrace"
,(
caddr_t
)
tra_activate_restoretrace
},
{
"tra_activate_cleartrace"
,(
caddr_t
)
tra_activate_cleartrace
},
{
"tra_activate_cleartrace"
,(
caddr_t
)
tra_activate_cleartrace
},
...
...
xtt/mmi/xtt/en_us/inc_xtt.uil
View file @
c604ee59
...
@@ -80,6 +80,7 @@ c_Help_on_selected_msg : compound_string("Help on selected message");
...
@@ -80,6 +80,7 @@ c_Help_on_selected_msg : compound_string("Help on selected message");
! module xtt_trace.uil
! module xtt_trace.uil
c_PrintSelect : compound_string("PrintSelected");
c_SaveTrace : compound_string("SaveTrace");
c_SaveTrace : compound_string("SaveTrace");
c_RestoreTrace : compound_string("RestoreTrace");
c_RestoreTrace : compound_string("RestoreTrace");
c_ClearTrace : compound_string("ClearTrace");
c_ClearTrace : compound_string("ClearTrace");
...
...
xtt/mmi/xtt/src/xtt_curve.uil
View file @
c604ee59
...
@@ -19,6 +19,7 @@ identifier
...
@@ -19,6 +19,7 @@ identifier
procedure
procedure
gec_activate_exit(integer);
gec_activate_exit(integer);
gec_activate_configure(integer);
gec_activate_configure(integer);
gec_activate_print(integer);
gec_activate_zoomin(integer);
gec_activate_zoomin(integer);
gec_activate_zoomout(integer);
gec_activate_zoomout(integer);
gec_activate_zoomreset(integer);
gec_activate_zoomreset(integer);
...
@@ -164,6 +165,21 @@ object file_entry : XmCascadeButton
...
@@ -164,6 +165,21 @@ object file_entry : XmCascadeButton
};
};
};
};
XmPushButton
XmPushButton
{
arguments
{
XmNlabelString = c_Print;
XmNmnemonic = keysym('P');
XmNaccelerator = "Ctrl<Key>P";
XmNacceleratorText = compound_string('Ctrl+P');
XmNfontList = menu_font;
};
callbacks
{
XmNactivateCallback = procedure gec_activate_print(gec_ctx);
};
};
XmPushButton
{
{
arguments
arguments
{
{
...
...
xtt/mmi/xtt/src/xtt_eve.uil
View file @
c604ee59
...
@@ -18,6 +18,7 @@ identifier
...
@@ -18,6 +18,7 @@ identifier
ev_ctx;
ev_ctx;
procedure
procedure
ev_eve_activate_exit(integer);
ev_eve_activate_exit(integer);
ev_eve_activate_print(integer);
ev_eve_activate_ack_last(integer);
ev_eve_activate_ack_last(integer);
ev_eve_activate_zoom_in(integer);
ev_eve_activate_zoom_in(integer);
ev_eve_activate_zoom_out(integer);
ev_eve_activate_zoom_out(integer);
...
@@ -31,6 +32,7 @@ procedure
...
@@ -31,6 +32,7 @@ procedure
ev_eve_activate_helpevent(integer);
ev_eve_activate_helpevent(integer);
ev_eve_create_form(integer);
ev_eve_create_form(integer);
ev_ala_activate_exit(integer);
ev_ala_activate_exit(integer);
ev_ala_activate_print(integer);
ev_ala_activate_ack_last(integer);
ev_ala_activate_ack_last(integer);
ev_ala_activate_zoom_in(integer);
ev_ala_activate_zoom_in(integer);
ev_ala_activate_zoom_out(integer);
ev_ala_activate_zoom_out(integer);
...
@@ -44,6 +46,7 @@ procedure
...
@@ -44,6 +46,7 @@ procedure
ev_ala_activate_helpevent(integer);
ev_ala_activate_helpevent(integer);
ev_ala_create_form(integer);
ev_ala_create_form(integer);
ev_blk_activate_exit(integer);
ev_blk_activate_exit(integer);
ev_blk_activate_print(integer);
ev_blk_activate_zoom_in(integer);
ev_blk_activate_zoom_in(integer);
ev_blk_activate_zoom_out(integer);
ev_blk_activate_zoom_out(integer);
ev_blk_activate_zoom_reset(integer);
ev_blk_activate_zoom_reset(integer);
...
@@ -120,6 +123,18 @@ object eve_file_entry : XmCascadeButton
...
@@ -120,6 +123,18 @@ object eve_file_entry : XmCascadeButton
{
{
controls
controls
{
{
XmPushButton
{
arguments
{
XmNlabelString = c_Print;
XmNfontList = menu_font;
};
callbacks
{
XmNactivateCallback = procedure ev_eve_activate_print(ev_ctx);
};
};
XmPushButton
XmPushButton
{
{
arguments
arguments
...
@@ -416,6 +431,18 @@ object ala_file_entry : XmCascadeButton
...
@@ -416,6 +431,18 @@ object ala_file_entry : XmCascadeButton
{
{
controls
controls
{
{
XmPushButton
{
arguments
{
XmNlabelString = c_Print;
XmNfontList = menu_font;
};
callbacks
{
XmNactivateCallback = procedure ev_ala_activate_print(ev_ctx);
};
};
XmPushButton
XmPushButton
{
{
arguments
arguments
...
@@ -711,6 +738,18 @@ object blk_file_entry : XmCascadeButton
...
@@ -711,6 +738,18 @@ object blk_file_entry : XmCascadeButton
{
{
controls
controls
{
{
XmPushButton
{
arguments
{
XmNlabelString = c_Print;
XmNfontList = menu_font;
};
callbacks
{
XmNactivateCallback = procedure ev_blk_activate_print(ev_ctx);
};
};
XmPushButton
XmPushButton
{
{
arguments
arguments
...
...
xtt/mmi/xtt/src/xtt_hist.uil
View file @
c604ee59
...
@@ -18,6 +18,7 @@ identifier
...
@@ -18,6 +18,7 @@ identifier
hist_ctx;
hist_ctx;
procedure
procedure
hist_activate_exit(integer);
hist_activate_exit(integer);
hist_activate_print(integer);
hist_activate_zoom_in(integer);
hist_activate_zoom_in(integer);
hist_activate_zoom_out(integer);
hist_activate_zoom_out(integer);
hist_activate_zoom_reset(integer);
hist_activate_zoom_reset(integer);
...
@@ -254,6 +255,18 @@ object hist_file_entry : XmCascadeButton
...
@@ -254,6 +255,18 @@ object hist_file_entry : XmCascadeButton
{
{
controls
controls
{
{
XmPushButton
{
arguments
{
XmNlabelString = c_Print;
XmNfontList = menu_font;
};
callbacks
{
XmNactivateCallback = procedure hist_activate_print(hist_ctx);
};
};
XmPushButton
XmPushButton
{
{
arguments
arguments
...
...
xtt/mmi/xtt/src/xtt_trace.uil
View file @
c604ee59
...
@@ -22,6 +22,7 @@ identifier
...
@@ -22,6 +22,7 @@ identifier
procedure
procedure
tra_activate_close(integer);
tra_activate_close(integer);
tra_activate_print(integer);
tra_activate_print(integer);
tra_activate_printselect(integer);
tra_activate_savetrace(integer);
tra_activate_savetrace(integer);
tra_activate_restoretrace(integer);
tra_activate_restoretrace(integer);
tra_activate_cleartrace(integer);
tra_activate_cleartrace(integer);
...
@@ -143,6 +144,18 @@ object file_entry : XmCascadeButton
...
@@ -143,6 +144,18 @@ object file_entry : XmCascadeButton
};
};
};
};
XmPushButton
XmPushButton
{
arguments
{
XmNlabelString = c_PrintSelect;
XmNfontList = menu_font;
};
callbacks
{
XmNactivateCallback = procedure tra_activate_printselect(tra_ctx);
};
};
XmPushButton
{
{
arguments
arguments
{
{
...
...
xtt/mmi/xtt/sv_se/inc_xtt.uil
View file @
c604ee59
...
@@ -80,6 +80,7 @@ c_Help_on_selected_msg : compound_string("Hj
...
@@ -80,6 +80,7 @@ c_Help_on_selected_msg : compound_string("Hj
! module xtt_trace.uil
! module xtt_trace.uil
c_PrintSelect : compound_string("Skriv Utvald");
c_SaveTrace : compound_string("Spara Trace");
c_SaveTrace : compound_string("Spara Trace");
c_RestoreTrace : compound_string("terskapa Trace");
c_RestoreTrace : compound_string("terskapa Trace");
c_ClearTrace : compound_string("Rensa Trace");
c_ClearTrace : compound_string("Rensa Trace");
...
...
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