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
995e4650
Commit
995e4650
authored
Oct 03, 2012
by
Claes Sjofors
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Gtk print dilog fix
parent
b7a95862
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
17 additions
and
40 deletions
+17
-40
xtt/lib/xtt/gtk/xtt_clog_gtk.cpp
xtt/lib/xtt/gtk/xtt_clog_gtk.cpp
+2
-0
xtt/lib/xtt/gtk/xtt_evlist_gtk.cpp
xtt/lib/xtt/gtk/xtt_evlist_gtk.cpp
+11
-0
xtt/lib/xtt/src/xtt_clog.cpp
xtt/lib/xtt/src/xtt_clog.cpp
+1
-4
xtt/lib/xtt/src/xtt_ev.cpp
xtt/lib/xtt/src/xtt_ev.cpp
+3
-36
No files found.
xtt/lib/xtt/gtk/xtt_clog_gtk.cpp
View file @
995e4650
...
...
@@ -536,6 +536,8 @@ void CLogGtk::print()
wow
->
CreateBrowPrintDialog
(
title
,
clognav
->
brow
->
ctx
,
flow_eOrientation_Landscape
,
parent_wid
,
&
sts
);
if
(
sts
==
WOW__PRINTDIALOGDISABLED
)
wow
->
DisplayError
(
"Disabled"
,
"Print Dialog is disabled"
);
}
xtt/lib/xtt/gtk/xtt_evlist_gtk.cpp
View file @
995e4650
...
...
@@ -45,6 +45,7 @@
#include "co_cdh.h"
#include "co_time.h"
#include "co_syi.h"
#include "co_dcli.h"
#include "pwr_baseclasses.h"
#include "rt_gdh.h"
#include "rt_mh.h"
...
...
@@ -113,4 +114,14 @@ void EvListGtk::print( const char *title)
CoWowGtk
::
CreateBrowPrintDialogGtk
(
print_title
,
brow
->
ctx
,
flow_eOrientation_Landscape
,
GTK_WINDOW
(
parent_wid
),
&
sts
);
if
(
sts
==
WOW__PRINTDIALOGDISABLED
)
{
pwr_tFileName
filename
;
pwr_tCmd
cmd
;
dcli_translate_filename
(
filename
,
"$pwrp_tmp/xnav.ps"
);
print_nodia
(
filename
);
sprintf
(
cmd
,
"$pwr_exe/rt_print.sh %s"
,
filename
);
system
(
cmd
);
}
}
xtt/lib/xtt/src/xtt_clog.cpp
View file @
995e4650
...
...
@@ -86,10 +86,7 @@ void CLog::activate_prev_file()
void
CLog
::
activate_print
()
{
if
(
CoWow
::
PrintDialogIsDisabled
())
wow
->
DisplayError
(
"Disabled"
,
"Print Dialog is disabled"
);
else
print
();
print
();
}
void
CLog
::
activate_help
()
...
...
xtt/lib/xtt/src/xtt_ev.cpp
View file @
995e4650
...
...
@@ -163,50 +163,17 @@ void Ev::blk_display_in_xnav_cb( void *ctx, pwr_tAttrRef *arp)
void
Ev
::
eve_activate_print
()
{
if
(
CoWow
::
PrintDialogIsDisabled
())
{
pwr_tFileName
filename
;
pwr_tCmd
cmd
;
dcli_translate_filename
(
filename
,
"$pwrp_tmp/xnav.ps"
);
eve
->
print_nodia
(
filename
);
sprintf
(
cmd
,
"$pwr_exe/rt_print.sh %s"
,
filename
);
system
(
cmd
);
}
else
eve
->
print
(
"Event List"
);
eve
->
print
(
"Event List"
);
}
void
Ev
::
ala_activate_print
()
{
if
(
CoWow
::
PrintDialogIsDisabled
())
{
pwr_tFileName
filename
;
pwr_tCmd
cmd
;
dcli_translate_filename
(
filename
,
"$pwrp_tmp/xnav.ps"
);
ala
->
print_nodia
(
filename
);
sprintf
(
cmd
,
"$pwr_exe/rt_print.sh %s"
,
filename
);
system
(
cmd
);
}
else
ala
->
print
(
"Alarm List"
);
ala
->
print
(
"Alarm List"
);
}
void
Ev
::
blk_activate_print
()
{
if
(
CoWow
::
PrintDialogIsDisabled
())
{
pwr_tFileName
filename
;
pwr_tCmd
cmd
;
dcli_translate_filename
(
filename
,
"$pwrp_tmp/xnav.ps"
);
blk
->
print_nodia
(
filename
);
sprintf
(
cmd
,
"$pwr_exe/rt_print.sh %s"
,
filename
);
system
(
cmd
);
}
else
blk
->
print
(
"Block List"
);
blk
->
print
(
"Block List"
);
}
void
Ev
::
eve_activate_ack_last
()
...
...
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