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
10a38b30
Commit
10a38b30
authored
Oct 09, 2012
by
Claes Sjofors
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Print dialog in trace and plc editor
parent
419a26a1
Changes
26
Show whitespace changes
Inline
Side-by-side
Showing
26 changed files
with
417 additions
and
87 deletions
+417
-87
wb/lib/wb/gtk/wb_foe_gtk.cpp
wb/lib/wb/gtk/wb_foe_gtk.cpp
+16
-0
wb/lib/wb/gtk/wb_foe_gtk.h
wb/lib/wb/gtk/wb_foe_gtk.h
+1
-0
wb/lib/wb/motif/wb_wda_motif.cpp
wb/lib/wb/motif/wb_wda_motif.cpp
+1
-1
wb/lib/wb/motif/wb_wnav_motif.cpp
wb/lib/wb/motif/wb_wnav_motif.cpp
+1
-0
xtt/lib/cow/gtk/cow_wow_gtk.cpp
xtt/lib/cow/gtk/cow_wow_gtk.cpp
+109
-12
xtt/lib/cow/gtk/cow_wow_gtk.h
xtt/lib/cow/gtk/cow_wow_gtk.h
+5
-0
xtt/lib/cow/src/cow_wow.h
xtt/lib/cow/src/cow_wow.h
+2
-0
xtt/lib/flow/gtk/flow_printdraw_gtk.cpp
xtt/lib/flow/gtk/flow_printdraw_gtk.cpp
+148
-53
xtt/lib/flow/gtk/flow_printdraw_gtk.h
xtt/lib/flow/gtk/flow_printdraw_gtk.h
+1
-1
xtt/lib/flow/src/flow_annot.cpp
xtt/lib/flow/src/flow_annot.cpp
+4
-4
xtt/lib/flow/src/flow_api.cpp
xtt/lib/flow/src/flow_api.cpp
+16
-0
xtt/lib/flow/src/flow_api.h
xtt/lib/flow/src/flow_api.h
+7
-1
xtt/lib/flow/src/flow_ctx.cpp
xtt/lib/flow/src/flow_ctx.cpp
+74
-0
xtt/lib/flow/src/flow_ctx.h
xtt/lib/flow/src/flow_ctx.h
+5
-0
xtt/lib/flow/src/flow_pdf.cpp
xtt/lib/flow/src/flow_pdf.cpp
+1
-1
xtt/lib/flow/src/flow_pdf.h
xtt/lib/flow/src/flow_pdf.h
+1
-1
xtt/lib/flow/src/flow_print.h
xtt/lib/flow/src/flow_print.h
+1
-1
xtt/lib/flow/src/flow_printdraw.h
xtt/lib/flow/src/flow_printdraw.h
+1
-1
xtt/lib/flow/src/flow_pscript.cpp
xtt/lib/flow/src/flow_pscript.cpp
+1
-1
xtt/lib/flow/src/flow_pscript.h
xtt/lib/flow/src/flow_pscript.h
+1
-1
xtt/lib/flow/src/flow_text.cpp
xtt/lib/flow/src/flow_text.cpp
+1
-1
xtt/lib/xtt/gtk/xtt_clog_gtk.cpp
xtt/lib/xtt/gtk/xtt_clog_gtk.cpp
+1
-1
xtt/lib/xtt/gtk/xtt_trace_gtk.cpp
xtt/lib/xtt/gtk/xtt_trace_gtk.cpp
+5
-2
xtt/lib/xtt/src/xtt_ev.cpp
xtt/lib/xtt/src/xtt_ev.cpp
+12
-3
xtt/lib/xtt/src/xtt_hist.cpp
xtt/lib/xtt/src/xtt_hist.cpp
+1
-1
xtt/lib/xtt/src/xtt_trace.h
xtt/lib/xtt/src/xtt_trace.h
+1
-1
No files found.
wb/lib/wb/gtk/wb_foe_gtk.cpp
View file @
10a38b30
...
...
@@ -144,6 +144,16 @@ void WFoeGtk::activate_print( GtkWidget *w, gpointer data)
foe
->
activate_print
();
}
// Callback from the menu.
void
WFoeGtk
::
activate_printdialog
(
GtkWidget
*
w
,
gpointer
data
)
{
WFoe
*
foe
=
(
WFoe
*
)
data
;
pwr_tStatus
sts
;
CoWowGtk
::
CreateFlowPrintDialogGtk
(
"PlcEditor"
,
foe
->
gre
->
flow_ctx
,
flow_eOrientation_Landscape
,
1.0
,
((
WFoeGtk
*
)
foe
)
->
toplevel
,
&
sts
);
}
// Callback from the menu.
void
WFoeGtk
::
activate_printoverv
(
GtkWidget
*
w
,
gpointer
data
)
{
...
...
@@ -1220,6 +1230,11 @@ pwr_tStatus WFoeGtk::create_window( int x_top,
widgets
.
save
=
gtk_image_menu_item_new_from_stock
(
GTK_STOCK_SAVE
,
accel_g
);
g_signal_connect
(
widgets
.
save
,
"activate"
,
G_CALLBACK
(
WFoeGtk
::
activate_save
),
this
);
// Submenu Print
GtkWidget
*
file_print_dialog
=
gtk_menu_item_new_with_mnemonic
(
"_Print..."
);
g_signal_connect
(
file_print_dialog
,
"activate"
,
G_CALLBACK
(
WFoeGtk
::
activate_printdialog
),
this
);
// Submenu Print
GtkWidget
*
file_print_documents
=
gtk_menu_item_new_with_mnemonic
(
"_Documents"
);
g_signal_connect
(
file_print_documents
,
"activate"
,
...
...
@@ -1239,6 +1254,7 @@ pwr_tStatus WFoeGtk::create_window( int x_top,
GtkWidget
*
file_print
=
gtk_menu_item_new_with_mnemonic
(
"_Print"
);
GtkMenu
*
file_print_menu
=
(
GtkMenu
*
)
g_object_new
(
GTK_TYPE_MENU
,
NULL
);
gtk_menu_shell_append
(
GTK_MENU_SHELL
(
file_print_menu
),
file_print_dialog
);
gtk_menu_shell_append
(
GTK_MENU_SHELL
(
file_print_menu
),
file_print_documents
);
gtk_menu_shell_append
(
GTK_MENU_SHELL
(
file_print_menu
),
file_print_overv
);
gtk_menu_shell_append
(
GTK_MENU_SHELL
(
file_print_menu
),
file_print_select
);
...
...
wb/lib/wb/gtk/wb_foe_gtk.h
View file @
10a38b30
...
...
@@ -210,6 +210,7 @@ class WFoeGtk : public WFoe {
static
void
activate_restoretrace
(
GtkWidget
*
w
,
gpointer
data
);
static
void
activate_history
(
GtkWidget
*
w
,
gpointer
data
);
static
void
activate_print
(
GtkWidget
*
w
,
gpointer
data
);
static
void
activate_printdialog
(
GtkWidget
*
w
,
gpointer
data
);
static
void
activate_printoverv
(
GtkWidget
*
w
,
gpointer
data
);
static
void
activate_printselect
(
GtkWidget
*
w
,
gpointer
data
);
static
void
activate_printpdf
(
GtkWidget
*
w
,
gpointer
data
);
...
...
wb/lib/wb/motif/wb_wda_motif.cpp
View file @
10a38b30
...
...
@@ -211,7 +211,7 @@ void WdaMotif::activate_exit( Widget w, WdaMotif *wda, XmAnyCallbackStruct *data
}
void
WdaMotif
::
activate_print
(
Widget
w
,
WdaMotif
*
wda
,
XmAnyCallbackStruct
*
data
)
{
wda
->
print
();
((
Wda
*
)
wda
)
->
activate_
print
();
}
void
WdaMotif
::
activate_setclass
(
Widget
w
,
WdaMotif
*
wda
,
XmAnyCallbackStruct
*
data
)
{
...
...
wb/lib/wb/motif/wb_wnav_motif.cpp
View file @
10a38b30
...
...
@@ -251,6 +251,7 @@ void WNavMotif::print( const char *title)
{
char
filename
[
80
]
=
"pwrp_tmp:wnav.ps"
;
char
cmd
[
200
];
int
sts
;
dcli_translate_filename
(
filename
,
filename
);
brow_Print
(
brow
->
ctx
,
filename
);
...
...
xtt/lib/cow/gtk/cow_wow_gtk.cpp
View file @
10a38b30
...
...
@@ -49,6 +49,7 @@
#include "co_api.h"
#include "co_lng.h"
#include "co_wow_msg.h"
#include "flow_api.h"
#include "flow_browapi.h"
#define WOW_MAXNAMES 400
...
...
@@ -64,7 +65,7 @@ typedef struct {
typedef
struct
{
char
title
[
80
];
brow_tCtx
br
ow_ctx
;
flow_tCtx
fl
ow_ctx
;
flow_eOrientation
orientation
;
double
scale
;
}
wow_sPrintData
;
...
...
@@ -1531,18 +1532,18 @@ void CoWowGtk::Wait( float time)
static
void
begin_print
(
GtkPrintOperation
*
operation
,
static
void
b
rowprint_b
egin_print
(
GtkPrintOperation
*
operation
,
GtkPrintContext
*
context
,
gpointer
user_data
)
{
wow_sPrintData
*
print_data
=
(
wow_sPrintData
*
)
user_data
;
int
pages
;
brow_PrintGetPages
(
print_data
->
br
ow_ctx
,
print_data
->
orientation
,
print_data
->
scale
,
&
pages
);
brow_PrintGetPages
(
(
brow_tCtx
)
print_data
->
fl
ow_ctx
,
print_data
->
orientation
,
print_data
->
scale
,
&
pages
);
gtk_print_operation_set_n_pages
(
operation
,
pages
);
}
static
void
end_print
(
GtkPrintOperation
*
operation
,
static
void
browprint_
end_print
(
GtkPrintOperation
*
operation
,
GtkPrintContext
*
context
,
gpointer
user_data
)
{
...
...
@@ -1550,18 +1551,18 @@ static void end_print( GtkPrintOperation *operation,
free
(
print_data
);
}
static
void
draw_page
(
GtkPrintOperation
*
operation
,
static
void
browprint_
draw_page
(
GtkPrintOperation
*
operation
,
GtkPrintContext
*
context
,
gint
page_nr
,
gpointer
user_data
)
{
wow_sPrintData
*
print_data
=
(
wow_sPrintData
*
)
user_data
;
brow_PrintDrawPage
(
print_data
->
br
ow_ctx
,
context
,
print_data
->
title
,
page_nr
,
brow_PrintDrawPage
(
(
brow_tCtx
)
print_data
->
fl
ow_ctx
,
context
,
print_data
->
title
,
page_nr
,
print_data
->
orientation
,
print_data
->
scale
);
}
static
void
request_page_setup
(
GtkPrintOperation
*
operation
,
static
void
browprint_
request_page_setup
(
GtkPrintOperation
*
operation
,
GtkPrintContext
*
context
,
gint
page_nr
,
GtkPageSetup
*
setup
,
...
...
@@ -1590,7 +1591,103 @@ void CoWowGtk::CreateBrowPrintDialogGtk( const char *title, void *brow_ctx, int
}
wow_sPrintData
*
print_data
=
(
wow_sPrintData
*
)
calloc
(
1
,
sizeof
(
wow_sPrintData
));
print_data
->
brow_ctx
=
(
brow_tCtx
)
brow_ctx
;
print_data
->
flow_ctx
=
(
flow_tCtx
)
brow_ctx
;
print_data
->
orientation
=
(
flow_eOrientation
)
orientation
;
print_data
->
scale
=
scale
;
strncpy
(
print_data
->
title
,
convert_utf8
(
title
),
sizeof
(
print_data
->
title
));
print
=
gtk_print_operation_new
();
if
(
settings
)
gtk_print_operation_set_print_settings
(
print
,
settings
);
else
settings
=
gtk_print_settings_new
();
if
(
strcmp
(
m_default_printer
,
""
)
!=
0
)
{
gtk_print_settings_set_printer
(
settings
,
m_default_printer
);
gtk_print_operation_set_print_settings
(
print
,
settings
);
}
if
(
m_printdialog_disable
)
action
=
GTK_PRINT_OPERATION_ACTION_PRINT
;
g_signal_connect
(
print
,
"begin_print"
,
G_CALLBACK
(
browprint_begin_print
),
print_data
);
g_signal_connect
(
print
,
"draw_page"
,
G_CALLBACK
(
browprint_draw_page
),
print_data
);
g_signal_connect
(
print
,
"request_page_setup"
,
G_CALLBACK
(
browprint_request_page_setup
),
print_data
);
g_signal_connect
(
print
,
"end_print"
,
G_CALLBACK
(
browprint_end_print
),
print_data
);
gtk_print_operation_set_allow_async
(
print
,
TRUE
);
result
=
gtk_print_operation_run
(
print
,
action
,
GTK_WINDOW
(
parent_widget
),
0
);
if
(
result
==
GTK_PRINT_OPERATION_RESULT_APPLY
)
{
if
(
settings
)
g_object_unref
(
settings
);
settings
=
(
GtkPrintSettings
*
)
g_object_ref
(
gtk_print_operation_get_print_settings
(
print
));
}
g_object_unref
(
print
);
*
sts
=
WOW__SUCCESS
;
}
static
void
flowprint_begin_print
(
GtkPrintOperation
*
operation
,
GtkPrintContext
*
context
,
gpointer
user_data
)
{
wow_sPrintData
*
print_data
=
(
wow_sPrintData
*
)
user_data
;
int
pages
;
flow_PrintGetPages
(
print_data
->
flow_ctx
,
print_data
->
orientation
,
print_data
->
scale
,
&
pages
);
gtk_print_operation_set_n_pages
(
operation
,
pages
);
}
static
void
flowprint_end_print
(
GtkPrintOperation
*
operation
,
GtkPrintContext
*
context
,
gpointer
user_data
)
{
wow_sPrintData
*
print_data
=
(
wow_sPrintData
*
)
user_data
;
free
(
print_data
);
}
static
void
flowprint_draw_page
(
GtkPrintOperation
*
operation
,
GtkPrintContext
*
context
,
gint
page_nr
,
gpointer
user_data
)
{
wow_sPrintData
*
print_data
=
(
wow_sPrintData
*
)
user_data
;
flow_PrintDrawPage
(
print_data
->
flow_ctx
,
context
,
print_data
->
title
,
page_nr
,
print_data
->
orientation
,
print_data
->
scale
);
}
static
void
flowprint_request_page_setup
(
GtkPrintOperation
*
operation
,
GtkPrintContext
*
context
,
gint
page_nr
,
GtkPageSetup
*
setup
,
gpointer
user_data
)
{
wow_sPrintData
*
print_data
=
(
wow_sPrintData
*
)
user_data
;
flow_eOrientation
orientation
;
flow_PrintDrawGetOrientation
(
print_data
->
flow_ctx
,
page_nr
,
&
orientation
);
if
(
orientation
==
flow_eOrientation_Landscape
)
gtk_page_setup_set_orientation
(
setup
,
GTK_PAGE_ORIENTATION_LANDSCAPE
);
else
gtk_page_setup_set_orientation
(
setup
,
GTK_PAGE_ORIENTATION_PORTRAIT
);
}
void
CoWowGtk
::
CreateFlowPrintDialogGtk
(
const
char
*
title
,
void
*
flow_ctx
,
int
orientation
,
double
scale
,
void
*
parent_widget
,
pwr_tStatus
*
sts
)
{
static
GtkPrintSettings
*
settings
=
0
;
GtkPrintOperation
*
print
;
GtkPrintOperationResult
result
;
GtkPrintOperationAction
action
=
GTK_PRINT_OPERATION_ACTION_PRINT_DIALOG
;
if
(
m_printdialog_disable
&&
strcmp
(
m_default_printer
,
""
)
==
0
)
{
*
sts
=
WOW__PRINTDIALOGDISABLED
;
return
;
}
wow_sPrintData
*
print_data
=
(
wow_sPrintData
*
)
calloc
(
1
,
sizeof
(
wow_sPrintData
));
print_data
->
flow_ctx
=
(
flow_tCtx
)
flow_ctx
;
print_data
->
orientation
=
(
flow_eOrientation
)
orientation
;
print_data
->
scale
=
scale
;
strncpy
(
print_data
->
title
,
title
,
sizeof
(
print_data
->
title
));
...
...
@@ -1609,10 +1706,10 @@ void CoWowGtk::CreateBrowPrintDialogGtk( const char *title, void *brow_ctx, int
if
(
m_printdialog_disable
)
action
=
GTK_PRINT_OPERATION_ACTION_PRINT
;
g_signal_connect
(
print
,
"begin_print"
,
G_CALLBACK
(
begin_print
),
print_data
);
g_signal_connect
(
print
,
"draw_page"
,
G_CALLBACK
(
draw_page
),
print_data
);
g_signal_connect
(
print
,
"request_page_setup"
,
G_CALLBACK
(
request_page_setup
),
print_data
);
g_signal_connect
(
print
,
"end_print"
,
G_CALLBACK
(
end_print
),
print_data
);
g_signal_connect
(
print
,
"begin_print"
,
G_CALLBACK
(
flowprint_
begin_print
),
print_data
);
g_signal_connect
(
print
,
"draw_page"
,
G_CALLBACK
(
flowprint_
draw_page
),
print_data
);
g_signal_connect
(
print
,
"request_page_setup"
,
G_CALLBACK
(
flowprint_
request_page_setup
),
print_data
);
g_signal_connect
(
print
,
"end_print"
,
G_CALLBACK
(
flowprint_
end_print
),
print_data
);
gtk_print_operation_set_allow_async
(
print
,
TRUE
);
result
=
gtk_print_operation_run
(
print
,
action
,
GTK_WINDOW
(
parent_widget
),
0
);
...
...
xtt/lib/cow/gtk/cow_wow_gtk.h
View file @
10a38b30
...
...
@@ -153,6 +153,11 @@ class CoWowGtk : public CoWow {
CreateBrowPrintDialogGtk
(
title
,
brow_ctx
,
orientation
,
scale
,
parent_widget
,
sts
);}
static
void
CreateBrowPrintDialogGtk
(
const
char
*
title
,
void
*
brow_ctx
,
int
orientation
,
double
scale
,
void
*
parent_widget
,
pwr_tStatus
*
sts
);
void
CreateFlowPrintDialog
(
const
char
*
title
,
void
*
flow_ctx
,
int
orientation
,
double
scale
,
void
*
parent_widget
,
pwr_tStatus
*
sts
)
{
CreateFlowPrintDialogGtk
(
title
,
flow_ctx
,
orientation
,
scale
,
parent_widget
,
sts
);}
static
void
CreateFlowPrintDialogGtk
(
const
char
*
title
,
void
*
flow_ctx
,
int
orientation
,
double
scale
,
void
*
parent_widget
,
pwr_tStatus
*
sts
);
CoWowTimer
*
timer_new
();
void
SetParent
(
GtkWidget
*
parent
)
{
m_parent
=
parent
;}
void
Wait
(
float
time
);
...
...
xtt/lib/cow/src/cow_wow.h
View file @
10a38b30
...
...
@@ -155,6 +155,8 @@ class CoWow {
virtual
pwr_tStatus
DeleteMenuItem
(
const
char
*
name
,
void
*
menu
)
{
return
0
;}
virtual
void
CreateBrowPrintDialog
(
const
char
*
title
,
void
*
brow_ctx
,
int
orientation
,
double
scale
,
void
*
parent_widget
,
pwr_tStatus
*
sts
)
{
*
sts
=
WOW__NYI
;}
virtual
void
CreateFlowPrintDialog
(
const
char
*
title
,
void
*
flow_ctx
,
int
orientation
,
double
scale
,
void
*
parent_widget
,
pwr_tStatus
*
sts
)
{
*
sts
=
WOW__NYI
;}
static
void
SetDefaultPrinter
(
const
char
*
printer
)
{
strncpy
(
m_default_printer
,
printer
,
sizeof
(
m_default_printer
));}
static
void
DisablePrintDialog
()
{
m_printdialog_disable
=
true
;}
static
bool
PrintDialogIsDisabled
()
{
return
m_printdialog_disable
;}
...
...
xtt/lib/flow/gtk/flow_printdraw_gtk.cpp
View file @
10a38b30
...
...
@@ -51,6 +51,12 @@ FlowPrintDrawGtk::FlowPrintDrawGtk( void *context, const char *t, int p, void *f
print_ctx
((
GtkPrintContext
*
)
context
),
border
(
page_border
),
ctx
((
FlowCtx
*
)
flow_ctx
),
show_red
(
1
),
page
(
p
)
{
strncpy
(
title
,
t
,
sizeof
(
title
));
if
(
ctx
->
type
()
==
flow_eCtxType_Flow
)
{
print_margin_x
=
10
;
print_margin_y
=
10
;
}
*
sts
=
1
;
}
...
...
@@ -66,11 +72,22 @@ int FlowPrintDrawGtk::print_page( double ll_x, double ll_y, double ur_x, double
PangoFontDescription
*
desc
;
char
page_str
[
40
];
if
(
ctx
->
type
()
==
flow_eCtxType_Flow
)
{
if
(
ur_x
-
ll_x
>
ur_y
-
ll_y
)
{
print_margin_x
=
10
;
print_margin_y
=
60
;
}
else
{
print_margin_x
=
60
;
print_margin_y
=
10
;
}
}
if
(
ur_x
-
ll_x
>
ur_y
-
ll_y
)
ctx
->
print_zoom_factor
=
730
/
(
ur_x
-
ll_x
);
else
ctx
->
print_zoom_factor
=
730
/
(
ur_y
-
ll_y
);
ctx
->
print_zoom
();
page_x
=
ll_x
*
ctx
->
print_zoom_factor
;
page_y
=
ll_y
*
ctx
->
print_zoom_factor
;
...
...
@@ -78,6 +95,7 @@ int FlowPrintDrawGtk::print_page( double ll_x, double ll_y, double ur_x, double
cairo
=
gtk_print_context_get_cairo_context
(
print_ctx
);
width
=
gtk_print_context_get_width
(
print_ctx
);
if
(
ctx
->
type
()
==
flow_eCtxType_Brow
)
{
cairo_move_to
(
cairo
,
print_margin_x
,
print_margin_y
);
cairo_line_to
(
cairo
,
print_margin_x
+
width
,
print_margin_y
);
cairo_set_source_rgb
(
cairo
,
0
,
0
,
0
);
...
...
@@ -123,7 +141,7 @@ int FlowPrintDrawGtk::print_page( double ll_x, double ll_y, double ur_x, double
pango_cairo_show_layout
(
cairo
,
layout
);
g_object_unref
(
layout
);
}
cairo_rectangle
(
cairo
,
print_margin_x
,
print_margin_y
,
(
ur_x
-
ll_x
)
*
ctx
->
print_zoom_factor
,
(
ur_y
-
ll_y
)
*
ctx
->
print_zoom_factor
);
...
...
@@ -140,15 +158,13 @@ int FlowPrintDrawGtk::print_page( double ll_x, double ll_y, double ur_x, double
int
FlowPrintDrawGtk
::
rect
(
double
x
,
double
y
,
double
width
,
double
height
,
flow_eDrawType
type
,
double
idx
,
int
highlight
)
{
switch
(
type
)
{
case
flow_eDrawType_LineRed
:
if
(
highlight
||
type
==
flow_eDrawType_LineRed
)
cairo_set_source_rgb
(
cairo
,
1
,
0
,
0
);
break
;
default:
else
cairo_set_source_rgb
(
cairo
,
0
,
0
,
0
);
}
cairo_set_line_width
(
cairo
,
0.5
*
idx
);
cairo_rectangle
(
cairo
,
x
-
page_x
,
y
-
page_y
,
width
,
height
);
cairo_rectangle
(
cairo
,
print_margin_x
+
x
-
page_x
,
print_margin_y
+
y
-
page_y
,
width
,
height
);
cairo_stroke
(
cairo
);
return
1
;
...
...
@@ -187,22 +203,75 @@ int FlowPrintDrawGtk::filled_rect( double x, double y, double width, double heig
int
FlowPrintDrawGtk
::
arc
(
double
x
,
double
y
,
double
width
,
double
height
,
int
angle1
,
int
angle2
,
flow_eDrawType
type
,
double
idx
,
int
highlight
)
{
double
dashed
[]
=
{
4.0
,
2.0
};
if
(
highlight
||
type
==
flow_eDrawType_LineRed
||
type
==
flow_eDrawType_LineDashedRed
)
cairo_set_source_rgb
(
cairo
,
1
,
0
,
0
);
else
cairo_set_source_rgb
(
cairo
,
0
,
0
,
0
);
if
(
type
==
flow_eDrawType_LineDashed
||
type
==
flow_eDrawType_LineDashedRed
)
cairo_set_dash
(
cairo
,
dashed
,
2
,
0
);
cairo_set_line_width
(
cairo
,
0.5
*
idx
);
cairo_arc
(
cairo
,
print_margin_x
+
x
+
width
/
2
-
page_x
,
print_margin_y
+
y
+
height
/
2
-
page_y
,
width
/
2
,
-
M_PI
*
(
angle1
+
angle2
)
/
180
,
-
M_PI
*
angle1
/
180
);
cairo_stroke
(
cairo
);
if
(
type
==
flow_eDrawType_LineDashed
||
type
==
flow_eDrawType_LineDashedRed
)
cairo_set_dash
(
cairo
,
0
,
0
,
0
);
return
1
;
}
int
FlowPrintDrawGtk
::
line
(
double
x1
,
double
y1
,
double
x2
,
double
y2
,
flow_eDrawType
type
,
double
idx
,
int
highlight
)
{
double
dashed
[]
=
{
4.0
,
2.0
};
switch
(
type
)
{
case
flow_eDrawType_LineRed
:
cairo_set_source_rgb
(
cairo
,
1
,
0
,
0
);
break
;
case
flow_eDrawType_LineGray
:
cairo_set_source_rgb
(
cairo
,
0.7
,
0.7
,
0.7
);
break
;
case
flow_eDrawType_LineDashed
:
cairo_set_dash
(
cairo
,
dashed
,
2
,
0
);
cairo_set_source_rgb
(
cairo
,
0
,
0
,
0
);
break
;
case
flow_eDrawType_LineDashedRed
:
cairo_set_dash
(
cairo
,
dashed
,
2
,
0
);
cairo_set_source_rgb
(
cairo
,
1
,
0
,
0
);
break
;
default:
cairo_set_source_rgb
(
cairo
,
0
,
0
,
0
);
}
cairo_move_to
(
cairo
,
print_margin_x
+
x1
-
page_x
,
print_margin_y
+
y1
-
page_y
);
cairo_line_to
(
cairo
,
print_margin_x
+
x2
-
page_x
,
print_margin_y
+
y2
-
page_y
);
cairo_set_line_width
(
cairo
,
0.5
*
idx
);
cairo_stroke
(
cairo
);
switch
(
type
)
{
case
flow_eDrawType_LineDashed
:
case
flow_eDrawType_LineDashedRed
:
cairo_set_dash
(
cairo
,
0
,
0
,
0
);
break
;
default:
;
}
return
1
;
}
int
FlowPrintDrawGtk
::
text
(
double
x
,
double
y
,
char
*
text
,
int
len
,
flow_eDrawType
type
,
double
siz
e
)
double
size
,
int
lin
e
)
{
char
font
[
40
];
PangoLayout
*
layout
;
PangoLayout
*
layout
=
0
;
PangoFontDescription
*
desc
;
int
w
,
h
;
char
*
s
;
switch
(
type
)
{
case
flow_eDrawType_TextHelvetica
:
...
...
@@ -215,19 +284,27 @@ int FlowPrintDrawGtk::text( double x, double y, char *text, int len, flow_eDrawT
;
}
layout
=
gtk_print_context_create_pango_layout
(
print_ctx
);
desc
=
pango_font_description_from_string
(
font
);
pango_layout_set_font_description
(
layout
,
desc
);
pango_font_description_free
(
desc
);
char
*
textutf8
=
g_convert
(
text
,
-
1
,
"UTF-8"
,
"ISO8859-1"
,
NULL
,
NULL
,
NULL
);
for
(
s
=
text
;
*
s
;
s
++
)
{
if
(
*
s
==
10
)
break
;
}
char
*
textutf8
=
g_convert
(
text
,
s
-
text
,
"UTF-8"
,
"ISO8859-1"
,
NULL
,
NULL
,
NULL
);
if
(
s
-
text
>
0
)
{
layout
=
gtk_print_context_create_pango_layout
(
print_ctx
);
pango_layout_set_font_description
(
layout
,
desc
);
pango_layout_set_text
(
layout
,
textutf8
,
-
1
);
pango_layout_set_alignment
(
layout
,
PANGO_ALIGN_LEFT
);
pango_layout_get_size
(
layout
,
&
w
,
&
h
);
cairo_move_to
(
cairo
,
print_margin_x
+
x
-
page_x
,
print_margin_y
+
y
-
page_y
-
0.8
/
PANGO_SCALE
*
h
);
// cairo_move_to( cairo, print_margin_x + x - page_x, print_margin_y + y - page_y - 0.8 / PANGO_SCALE * h);
cairo_move_to
(
cairo
,
print_margin_x
+
x
-
page_x
,
print_margin_y
+
y
-
page_y
-
0.8
/
PANGO_SCALE
*
size
*
1093
+
0.5
/
PANGO_SCALE
*
size
*
1093
*
line
);
cairo_set_source_rgb
(
cairo
,
0
,
0
,
0
);
pango_cairo_show_layout
(
cairo
,
layout
);
g_object_unref
(
layout
);
}
pango_font_description_free
(
desc
);
g_free
(
textutf8
);
return
1
;
...
...
@@ -361,6 +438,24 @@ int FlowPrintDrawGtk::image( double x, double y, double width, double height, fl
int
FlowPrintDrawGtk
::
arrow
(
double
x1
,
double
y1
,
double
x2
,
double
y2
,
double
x3
,
double
y3
,
flow_eDrawType
type
,
double
idx
)
{
switch
(
type
)
{
case
flow_eDrawType_LineRed
:
cairo_set_source_rgb
(
cairo
,
1
,
0
,
0
);
break
;
case
flow_eDrawType_LineGray
:
cairo_set_source_rgb
(
cairo
,
0.7
,
0.7
,
0.7
);
break
;
default:
cairo_set_source_rgb
(
cairo
,
0
,
0
,
0
);
}
cairo_move_to
(
cairo
,
print_margin_x
+
x1
-
page_x
,
print_margin_y
+
y1
-
page_y
);
cairo_line_to
(
cairo
,
print_margin_x
+
x2
-
page_x
,
print_margin_y
+
y2
-
page_y
);
cairo_line_to
(
cairo
,
print_margin_x
+
x3
-
page_x
,
print_margin_y
+
y3
-
page_y
);
cairo_line_to
(
cairo
,
print_margin_x
+
x1
-
page_x
,
print_margin_y
+
y1
-
page_y
);
cairo_close_path
(
cairo
);
cairo_fill_preserve
(
cairo
);
return
1
;
}
...
...
xtt/lib/flow/gtk/flow_printdraw_gtk.h
View file @
10a38b30
...
...
@@ -53,7 +53,7 @@ class FlowPrintDrawGtk : public FlowPrintDraw {
int
arc
(
double
x
,
double
y
,
double
width
,
double
height
,
int
angle1
,
int
angle2
,
flow_eDrawType
type
,
double
idx
,
int
highlight
);
int
line
(
double
x1
,
double
y1
,
double
x2
,
double
y2
,
flow_eDrawType
type
,
double
idx
,
int
highlight
);
int
text
(
double
x
,
double
y
,
char
*
text
,
int
len
,
flow_eDrawType
type
,
double
size
);
int
text
(
double
x
,
double
y
,
char
*
text
,
int
len
,
flow_eDrawType
type
,
double
size
,
int
line
);
int
pixmap
(
double
x
,
double
y
,
flow_sPixmapDataElem
*
data
,
flow_eDrawType
type
);
int
image
(
double
x
,
double
y
,
double
width
,
double
height
,
flow_tImImage
image
,
flow_eDrawType
type
);
int
arrow
(
double
x1
,
double
y1
,
double
x2
,
double
y2
,
...
...
xtt/lib/flow/src/flow_annot.cpp
View file @
10a38b30
...
...
@@ -93,7 +93,7 @@ void FlowAnnot::print( void *pos, void *node, int highlight)
ctx
->
current_print
->
text
(
x
,
p
.
print_z_y
+
((
FlowPoint
*
)
pos
)
->
print_z_y
,
((
FlowNode
*
)
node
)
->
annotv
[
number
],
strlen
(((
FlowNode
*
)
node
)
->
annotv
[
number
]),
draw_type
,
size
);
strlen
(((
FlowNode
*
)
node
)
->
annotv
[
number
]),
draw_type
,
size
,
0
);
break
;
case
flow_eAnnotType_MultiLine
:
{
...
...
@@ -114,7 +114,7 @@ void FlowAnnot::print( void *pos, void *node, int highlight)
{
if
(
len
)
ctx
->
current_print
->
text
(
z_x
,
z_y
+
line_cnt
*
z_h
,
line
,
len
,
draw_type
,
size
);
draw_type
,
size
,
line_cnt
);
len
=
0
;
line
=
s
+
1
;
line_cnt
++
;
...
...
@@ -124,7 +124,7 @@ void FlowAnnot::print( void *pos, void *node, int highlight)
}
if
(
len
)
ctx
->
current_print
->
text
(
z_x
,
z_y
+
line_cnt
*
z_h
,
line
,
len
,
draw_type
,
size
);
len
,
draw_type
,
size
,
line_cnt
);
break
;
}
}
...
...
xtt/lib/flow/src/flow_api.cpp
View file @
10a38b30
...
...
@@ -490,6 +490,22 @@ int flow_PrintPdfRegion( flow_tCtx ctx, double ll_x, double ll_y,
return
ctx
->
print_pdf_region
(
ll_x
,
ll_y
,
ur_x
,
ur_y
,
filename
);
}
void
flow_PrintDrawPage
(
flow_tCtx
ctx
,
void
*
context
,
const
char
*
title
,
int
page
,
flow_eOrientation
orientation
,
double
scale
)
{
ctx
->
print_draw_page
(
context
,
title
,
page
,
orientation
,
scale
);
}
void
flow_PrintGetPages
(
flow_tCtx
ctx
,
flow_eOrientation
orientation
,
double
scale
,
int
*
pages
)
{
ctx
->
print_get_pages
(
orientation
,
scale
,
pages
);
}
void
flow_PrintDrawGetOrientation
(
flow_tCtx
ctx
,
int
page_nr
,
flow_eOrientation
*
orientation
)
{
ctx
->
print_get_orientation
(
page_nr
,
orientation
);
}
void
flow_GetUserData
(
flow_tObject
object
,
void
**
user_data
)
{
((
FlowArrayElem
*
)
object
)
->
get_user_data
(
user_data
);
...
...
xtt/lib/flow/src/flow_api.h
View file @
10a38b30
...
...
@@ -43,7 +43,9 @@
extern
"C"
{
#endif
#ifndef __cplusplus
#if defined __cplusplus
#include "flow_ctx.h"
#else
#ifndef flow_browapi_h
typedef
void
*
FlowCtx
;
#endif
...
...
@@ -208,6 +210,10 @@ int flow_PrintRegion( flow_tCtx ctx, double ll_x, double ll_y,
double
ur_x
,
double
ur_y
,
char
*
filename
);
int
flow_PrintPdfRegion
(
flow_tCtx
ctx
,
double
ll_x
,
double
ll_y
,
double
ur_x
,
double
ur_y
,
char
*
filename
);
void
flow_PrintDrawPage
(
flow_tCtx
ctx
,
void
*
context
,
const
char
*
title
,
int
page
,
flow_eOrientation
orientation
,
double
scale
);
void
flow_PrintGetPages
(
flow_tCtx
ctx
,
flow_eOrientation
orientation
,
double
scale
,
int
*
pages
);
void
flow_PrintDrawGetOrientation
(
flow_tCtx
ctx
,
int
page_nr
,
flow_eOrientation
*
orientation
);
void
flow_GetUserData
(
flow_tObject
object
,
void
**
user_data
);
void
flow_SetUserData
(
flow_tObject
object
,
void
*
user_data
);
void
flow_GetCtxUserData
(
flow_tCtx
ctx
,
void
**
user_data
);
...
...
xtt/lib/flow/src/flow_ctx.cpp
View file @
10a38b30
...
...
@@ -754,6 +754,80 @@ int FlowCtx::print_pdf_region( double ll_x, double ll_y, double ur_x,
return
sts
;
}
void
FlowCtx
::
print_draw_page
(
void
*
context
,
const
char
*
title
,
int
page
,
flow_eOrientation
orientation
,
double
scale
)
{
double
ll_x
,
ll_y
,
ur_x
,
ur_y
;
int
sts
;
if
(
a
.
size
()
==
0
)
return
;
int
doc_cnt
=
0
;
int
found
=
0
;
int
page_idx
;
for
(
int
i
=
0
;
i
<
a
.
a_size
;
i
++
)
{
if
(
a
.
a
[
i
]
->
type
()
==
flow_eObjectType_Node
&&
((
FlowNode
*
)
a
.
a
[
i
])
->
nc
->
group
==
flow_eNodeGroup_Document
)
{
doc_cnt
++
;
if
(
doc_cnt
==
page
+
1
)
{
found
=
1
;
page_idx
=
i
;
break
;
}
}
}
((
FlowNode
*
)
a
[
page_idx
])
->
measure
(
&
ll_x
,
&
ll_y
,
&
ur_x
,
&
ur_y
);
current_print
=
(
FlowPrint
*
)
fdraw
->
print_draw_new
(
context
,
title
,
page
,
this
,
1
,
&
sts
);
if
(
EVEN
(
sts
))
return
;
current_print
->
print_page
(
ll_x
,
ll_y
,
ur_x
,
ur_y
);
delete
current_print
;
}
void
FlowCtx
::
print_get_pages
(
flow_eOrientation
orientation
,
double
scale
,
int
*
pages
)
{
int
doc_cnt
=
0
;
for
(
int
i
=
0
;
i
<
a
.
a_size
;
i
++
)
{
if
(
a
.
a
[
i
]
->
type
()
==
flow_eObjectType_Node
&&
((
FlowNode
*
)
a
.
a
[
i
])
->
nc
->
group
==
flow_eNodeGroup_Document
)
doc_cnt
++
;
}
*
pages
=
doc_cnt
;
}
void
FlowCtx
::
print_get_orientation
(
int
page_nr
,
flow_eOrientation
*
orientation
)
{
double
ll_x
,
ll_y
,
ur_x
,
ur_y
;
int
doc_cnt
=
0
;
int
found
=
0
;
int
page_idx
;
for
(
int
i
=
0
;
i
<
a
.
a_size
;
i
++
)
{
if
(
a
.
a
[
i
]
->
type
()
==
flow_eObjectType_Node
&&
((
FlowNode
*
)
a
.
a
[
i
])
->
nc
->
group
==
flow_eNodeGroup_Document
)
{
doc_cnt
++
;
if
(
doc_cnt
==
page_nr
+
1
)
{
found
=
1
;
page_idx
=
i
;
break
;
}
}
}
if
(
!
found
)
{
*
orientation
=
flow_eOrientation_Portrait
;
return
;
}
((
FlowNode
*
)
a
[
page_idx
])
->
measure
(
&
ll_x
,
&
ll_y
,
&
ur_x
,
&
ur_y
);
if
(
ur_x
-
ll_x
<
ur_y
-
ll_y
)
*
orientation
=
flow_eOrientation_Portrait
;
else
*
orientation
=
flow_eOrientation_Landscape
;
}
void
FlowCtx
::
nav_clear
()
{
fdraw
->
nav_clear
(
this
);
...
...
xtt/lib/flow/src/flow_ctx.h
View file @
10a38b30
...
...
@@ -257,6 +257,11 @@ class FlowCtx {
double
ur_y
,
char
*
filename
);
int
print_pdf_region
(
double
ll_x
,
double
ll_y
,
double
ur_x
,
double
ur_y
,
char
*
filename
);
void
print_draw_page
(
void
*
context
,
const
char
*
title
,
int
page
,
flow_eOrientation
orientation
,
double
scale
);
void
print_get_pages
(
flow_eOrientation
orientation
,
double
scale
,
int
*
pages
);
void
print_get_orientation
(
int
page_nr
,
flow_eOrientation
*
orientation
);
double
draw_delta
;
double
grafcet_con_delta
;
int
refcon_cnt
;
...
...
xtt/lib/flow/src/flow_pdf.cpp
View file @
10a38b30
...
...
@@ -140,7 +140,7 @@ int FlowPdf::arc( double x, double y, double width, double height, int angle1, i
}
int
FlowPdf
::
text
(
double
x
,
double
y
,
char
*
text
,
int
len
,
flow_eDrawType
type
,
double
size
)
double
size
,
int
line
)
{
char
t
[
500
];
...
...
xtt/lib/flow/src/flow_pdf.h
View file @
10a38b30
...
...
@@ -53,7 +53,7 @@ class FlowPdf : public FlowPrint {
int
arc
(
double
x
,
double
y
,
double
width
,
double
height
,
int
angel1
,
int
angel2
,
flow_eDrawType
type
,
double
idx
,
int
highlight
);
int
line
(
double
x1
,
double
y1
,
double
x2
,
double
y2
,
flow_eDrawType
type
,
double
idx
,
int
highlight
);
int
text
(
double
x
,
double
y
,
char
*
text
,
int
len
,
flow_eDrawType
type
,
double
size
);
int
text
(
double
x
,
double
y
,
char
*
text
,
int
len
,
flow_eDrawType
type
,
double
size
,
int
line
);
int
pixmap
(
double
x
,
double
y
,
flow_sPixmapDataElem
*
data
,
flow_eDrawType
type
);
int
arrow
(
double
x1
,
double
y1
,
double
x2
,
double
y2
,
double
x3
,
double
y3
,
flow_eDrawType
type
,
double
idx
);
...
...
xtt/lib/flow/src/flow_print.h
View file @
10a38b30
...
...
@@ -51,7 +51,7 @@ class FlowPrint {
virtual
int
arc
(
double
x
,
double
y
,
double
width
,
double
height
,
int
angle1
,
int
angle2
,
flow_eDrawType
type
,
double
idx
,
int
highlight
)
{
return
1
;}
virtual
int
line
(
double
x1
,
double
y1
,
double
x2
,
double
y2
,
flow_eDrawType
type
,
double
idx
,
int
highlight
)
{
return
1
;}
virtual
int
text
(
double
x
,
double
y
,
char
*
text
,
int
len
,
flow_eDrawType
type
,
double
size
)
{
return
1
;}
virtual
int
text
(
double
x
,
double
y
,
char
*
text
,
int
len
,
flow_eDrawType
type
,
double
size
,
int
line
)
{
return
1
;}
virtual
int
pixmap
(
double
x
,
double
y
,
flow_sPixmapDataElem
*
data
,
flow_eDrawType
type
)
{
return
1
;}
virtual
int
image
(
double
x
,
double
y
,
double
width
,
double
height
,
flow_tImImage
image
,
flow_eDrawType
type
)
{
return
1
;}
virtual
int
arrow
(
double
x1
,
double
y1
,
double
x2
,
double
y2
,
...
...
xtt/lib/flow/src/flow_printdraw.h
View file @
10a38b30
...
...
@@ -53,7 +53,7 @@ class FlowPrintDraw : public FlowPrint {
virtual
int
arc
(
double
x
,
double
y
,
double
width
,
double
height
,
int
angle1
,
int
angle2
,
flow_eDrawType
type
,
double
idx
,
int
highlight
)
{
return
1
;}
virtual
int
line
(
double
x1
,
double
y1
,
double
x2
,
double
y2
,
flow_eDrawType
type
,
double
idx
,
int
highlight
)
{
return
1
;}
virtual
int
text
(
double
x
,
double
y
,
char
*
text
,
int
len
,
flow_eDrawType
type
,
double
size
)
{
return
1
;}
virtual
int
text
(
double
x
,
double
y
,
char
*
text
,
int
len
,
flow_eDrawType
type
,
double
size
,
int
line
)
{
return
1
;}
virtual
int
pixmap
(
double
x
,
double
y
,
flow_sPixmapDataElem
*
data
,
flow_eDrawType
type
)
{
return
1
;}
virtual
int
arrow
(
double
x1
,
double
y1
,
double
x2
,
double
y2
,
double
x3
,
double
y3
,
flow_eDrawType
type
,
double
idx
)
{
return
1
;}
...
...
xtt/lib/flow/src/flow_pscript.cpp
View file @
10a38b30
...
...
@@ -286,7 +286,7 @@ int FlowPscript::line( double x1, double y1, double x2, double y2, flow_eDrawTyp
}
int
FlowPscript
::
text
(
double
x
,
double
y
,
char
*
text
,
int
len
,
flow_eDrawType
type
,
double
siz
e
)
double
size
,
int
lin
e
)
{
char
font
[
40
];
char
c
;
...
...
xtt/lib/flow/src/flow_pscript.h
View file @
10a38b30
...
...
@@ -51,7 +51,7 @@ class FlowPscript : public FlowPrint {
int
arc
(
double
x
,
double
y
,
double
width
,
double
height
,
int
angle1
,
int
angle2
,
flow_eDrawType
type
,
double
idx
,
int
highlight
);
int
line
(
double
x1
,
double
y1
,
double
x2
,
double
y2
,
flow_eDrawType
type
,
double
idx
,
int
highlight
);
int
text
(
double
x
,
double
y
,
char
*
text
,
int
len
,
flow_eDrawType
type
,
double
size
);
int
text
(
double
x
,
double
y
,
char
*
text
,
int
len
,
flow_eDrawType
type
,
double
size
,
int
line
);
int
pixmap
(
double
x
,
double
y
,
flow_sPixmapDataElem
*
data
,
flow_eDrawType
type
);
int
arrow
(
double
x1
,
double
y1
,
double
x2
,
double
y2
,
double
x3
,
double
y3
,
flow_eDrawType
type
,
double
idx
);
...
...
xtt/lib/flow/src/flow_text.cpp
View file @
10a38b30
...
...
@@ -72,7 +72,7 @@ void FlowText::print( void *pos, void *node, int highlight)
idx
=
MIN
(
idx
,
DRAW_TYPE_SIZE
-
1
);
ctx
->
current_print
->
text
(
p
.
print_z_x
+
((
FlowPoint
*
)
pos
)
->
print_z_x
,
p
.
print_z_y
+
((
FlowPoint
*
)
pos
)
->
print_z_y
,
text
,
strlen
(
text
),
draw_type
,
size
);
draw_type
,
size
,
0
);
}
void
FlowText
::
save
(
ofstream
&
fp
,
flow_eSaveMode
mode
)
...
...
xtt/lib/xtt/gtk/xtt_clog_gtk.cpp
View file @
10a38b30
...
...
@@ -527,7 +527,7 @@ void CLogGtk::print()
pwr_tStatus
sts
;
char
title
[
80
];
strcpy
(
title
,
"System Messages "
);
strcpy
(
title
,
Lng
::
translate
(
"System Messages"
)
);
syi_NodeName
(
&
sts
,
nodename
,
sizeof
(
nodename
));
if
(
ODD
(
sts
))
{
strcat
(
title
,
" "
);
...
...
xtt/lib/xtt/gtk/xtt_trace_gtk.cpp
View file @
10a38b30
...
...
@@ -68,9 +68,12 @@ void RtTraceGtk::activate_close(GtkWidget *w, gpointer data)
void
RtTraceGtk
::
activate_print
(
GtkWidget
*
w
,
gpointer
data
)
{
RtTrace
*
tractx
=
(
RtTrace
*
)
data
;
RtTraceGtk
*
tractx
=
(
RtTraceGtk
*
)
data
;
pwr_tStatus
sts
;
CoWowGtk
::
CreateFlowPrintDialogGtk
(
"Trace"
,
tractx
->
flow_ctx
,
flow_eOrientation_Landscape
,
1.0
,
tractx
->
toplevel
,
&
sts
);
tractx
->
activate_print
();
}
void
RtTraceGtk
::
activate_printselect
(
GtkWidget
*
w
,
gpointer
data
)
...
...
xtt/lib/xtt/src/xtt_ev.cpp
View file @
10a38b30
...
...
@@ -163,17 +163,26 @@ void Ev::blk_display_in_xnav_cb( void *ctx, pwr_tAttrRef *arp)
void
Ev
::
eve_activate_print
()
{
eve
->
print
(
"Event List"
);
char
title
[
80
];
strcpy
(
title
,
Lng
::
translate
(
"Event List"
));
eve
->
print
(
title
);
}
void
Ev
::
ala_activate_print
()
{
ala
->
print
(
"Alarm List"
);
char
title
[
80
];
strcpy
(
title
,
Lng
::
translate
(
"Alarm List"
));
ala
->
print
(
title
);
}
void
Ev
::
blk_activate_print
()
{
blk
->
print
(
"Block List"
);
char
title
[
80
];
strcpy
(
title
,
Lng
::
translate
(
"Blocked Alarms"
));
blk
->
print
(
title
);
}
void
Ev
::
eve_activate_ack_last
()
...
...
xtt/lib/xtt/src/xtt_hist.cpp
View file @
10a38b30
...
...
@@ -135,7 +135,7 @@ void Hist::activate_print()
hist
->
print_nodia
(
filename
);
}
else
hist
->
print
(
"Event Log"
);
hist
->
print
(
Lng
::
translate
(
"Eventlog"
)
);
}
void
Hist
::
activate_help
()
...
...
xtt/lib/xtt/src/xtt_trace.h
View file @
10a38b30
...
...
@@ -64,7 +64,7 @@ struct trace_sNode {
class
RtTrace
{
public:
void
*
parent_ctx
;
char
name
[
80
]
;
pwr_tOName
name
;
flow_tNodeClass
trace_analyse_nc
;
flow_tConClass
trace_con_cc
;
int
trace_started
;
...
...
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