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
94263582
Commit
94263582
authored
Aug 28, 2009
by
Claes Sjofors
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Help menu links updated
parent
d650a2d5
Changes
25
Show whitespace changes
Inline
Side-by-side
Showing
25 changed files
with
93 additions
and
29 deletions
+93
-29
src/lib/rt/src/rt_trace.cpp
src/lib/rt/src/rt_trace.cpp
+1
-1
wb/lib/wb/src/wb_wnav.cpp
wb/lib/wb/src/wb_wnav.cpp
+3
-0
xtt/exe/rt_xtt/gtk/rt_xtt_gtk.cpp
xtt/exe/rt_xtt/gtk/rt_xtt_gtk.cpp
+15
-0
xtt/exe/rt_xtt/gtk/rt_xtt_gtk.h
xtt/exe/rt_xtt/gtk/rt_xtt_gtk.h
+1
-0
xtt/exe/rt_xtt/src/rt_xtt_main.h
xtt/exe/rt_xtt/src/rt_xtt_main.h
+1
-0
xtt/exe/rt_xtt/src/xtt_main.cpp
xtt/exe/rt_xtt/src/xtt_main.cpp
+5
-0
xtt/lib/xtt/gtk/xtt_ev_gtk.cpp
xtt/lib/xtt/gtk/xtt_ev_gtk.cpp
+4
-2
xtt/lib/xtt/gtk/xtt_hist_gtk.cpp
xtt/lib/xtt/gtk/xtt_hist_gtk.cpp
+3
-1
xtt/lib/xtt/gtk/xtt_op_gtk.cpp
xtt/lib/xtt/gtk/xtt_op_gtk.cpp
+8
-1
xtt/lib/xtt/gtk/xtt_op_gtk.h
xtt/lib/xtt/gtk/xtt_op_gtk.h
+1
-0
xtt/lib/xtt/motif/xtt_ev_motif.cpp
xtt/lib/xtt/motif/xtt_ev_motif.cpp
+2
-0
xtt/lib/xtt/motif/xtt_hist_motif.cpp
xtt/lib/xtt/motif/xtt_hist_motif.cpp
+2
-1
xtt/lib/xtt/src/xtt_clog.cpp
xtt/lib/xtt/src/xtt_clog.cpp
+1
-1
xtt/lib/xtt/src/xtt_ev.cpp
xtt/lib/xtt/src/xtt_ev.cpp
+14
-9
xtt/lib/xtt/src/xtt_ev.h
xtt/lib/xtt/src/xtt_ev.h
+3
-0
xtt/lib/xtt/src/xtt_evlist.cpp
xtt/lib/xtt/src/xtt_evlist.cpp
+4
-5
xtt/lib/xtt/src/xtt_evlist.h
xtt/lib/xtt/src/xtt_evlist.h
+3
-1
xtt/lib/xtt/src/xtt_fast.cpp
xtt/lib/xtt/src/xtt_fast.cpp
+1
-1
xtt/lib/xtt/src/xtt_hist.cpp
xtt/lib/xtt/src/xtt_hist.cpp
+7
-4
xtt/lib/xtt/src/xtt_hist.h
xtt/lib/xtt/src/xtt_hist.h
+3
-0
xtt/lib/xtt/src/xtt_op.cpp
xtt/lib/xtt/src/xtt_op.cpp
+6
-0
xtt/lib/xtt/src/xtt_op.h
xtt/lib/xtt/src/xtt_op.h
+1
-0
xtt/lib/xtt/src/xtt_sevhist.cpp
xtt/lib/xtt/src/xtt_sevhist.cpp
+1
-1
xtt/lib/xtt/src/xtt_trend.cpp
xtt/lib/xtt/src/xtt_trend.cpp
+1
-1
xtt/lib/xtt/src/xtt_xnav_command.cpp
xtt/lib/xtt/src/xtt_xnav_command.cpp
+2
-0
No files found.
src/lib/rt/src/rt_trace.cpp
View file @
94263582
...
@@ -597,7 +597,7 @@ void RtTrace::activate_view()
...
@@ -597,7 +597,7 @@ void RtTrace::activate_view()
void
RtTrace
::
activate_help
()
void
RtTrace
::
activate_help
()
{
{
if
(
help_cb
)
if
(
help_cb
)
(
help_cb
)(
this
,
"trace"
);
(
help_cb
)(
this
,
"
opg_
trace"
);
}
}
void
RtTrace
::
activate_helpplc
()
void
RtTrace
::
activate_helpplc
()
...
...
wb/lib/wb/src/wb_wnav.cpp
View file @
94263582
...
@@ -3081,6 +3081,9 @@ void WNav::refresh()
...
@@ -3081,6 +3081,9 @@ void WNav::refresh()
void
WNav
::
select_object
(
brow_tObject
object
)
void
WNav
::
select_object
(
brow_tObject
object
)
{
{
if
(
!
object_exist
(
object
))
return
;
if
(
set_focus_cb
)
if
(
set_focus_cb
)
(
set_focus_cb
)(
parent_ctx
,
this
);
(
set_focus_cb
)(
parent_ctx
,
this
);
...
...
xtt/exe/rt_xtt/gtk/rt_xtt_gtk.cpp
View file @
94263582
...
@@ -458,6 +458,16 @@ void XttGtk::activate_help_project( GtkWidget *w, gpointer data)
...
@@ -458,6 +458,16 @@ void XttGtk::activate_help_project( GtkWidget *w, gpointer data)
xtt
->
activate_help_project
();
xtt
->
activate_help_project
();
}
}
void
XttGtk
::
activate_help_navigator
(
GtkWidget
*
w
,
gpointer
data
)
{
Xtt
*
xtt
=
(
Xtt
*
)
data
;
if
(
!
xtt
->
xnav
->
is_authorized
())
return
;
xtt
->
activate_help_navigator
();
}
void
XttGtk
::
activate_help_proview
(
GtkWidget
*
w
,
gpointer
data
)
void
XttGtk
::
activate_help_proview
(
GtkWidget
*
w
,
gpointer
data
)
{
{
Xtt
*
xtt
=
(
Xtt
*
)
data
;
Xtt
*
xtt
=
(
Xtt
*
)
data
;
...
@@ -817,6 +827,10 @@ XttGtk::XttGtk( int argc, char *argv[], int *return_sts) :
...
@@ -817,6 +827,10 @@ XttGtk::XttGtk( int argc, char *argv[], int *return_sts) :
gtk_widget_add_accelerator
(
help_overview
,
"activate"
,
accel_g
,
gtk_widget_add_accelerator
(
help_overview
,
"activate"
,
accel_g
,
'h'
,
GDK_CONTROL_MASK
,
GTK_ACCEL_VISIBLE
);
'h'
,
GDK_CONTROL_MASK
,
GTK_ACCEL_VISIBLE
);
GtkWidget
*
help_navigator
=
gtk_menu_item_new_with_mnemonic
(
CoWowGtk
::
translate_utf8
(
"_Navigator"
));
g_signal_connect
(
help_navigator
,
"activate"
,
G_CALLBACK
(
XttGtk
::
activate_help_navigator
),
this
);
GtkWidget
*
help_project
=
gtk_menu_item_new_with_mnemonic
(
CoWowGtk
::
translate_utf8
(
"_Project"
));
GtkWidget
*
help_project
=
gtk_menu_item_new_with_mnemonic
(
CoWowGtk
::
translate_utf8
(
"_Project"
));
g_signal_connect
(
help_project
,
"activate"
,
g_signal_connect
(
help_project
,
"activate"
,
G_CALLBACK
(
XttGtk
::
activate_help_project
),
this
);
G_CALLBACK
(
XttGtk
::
activate_help_project
),
this
);
...
@@ -827,6 +841,7 @@ XttGtk::XttGtk( int argc, char *argv[], int *return_sts) :
...
@@ -827,6 +841,7 @@ XttGtk::XttGtk( int argc, char *argv[], int *return_sts) :
GtkMenu
*
help_menu
=
(
GtkMenu
*
)
g_object_new
(
GTK_TYPE_MENU
,
NULL
);
GtkMenu
*
help_menu
=
(
GtkMenu
*
)
g_object_new
(
GTK_TYPE_MENU
,
NULL
);
gtk_menu_shell_append
(
GTK_MENU_SHELL
(
help_menu
),
help_overview
);
gtk_menu_shell_append
(
GTK_MENU_SHELL
(
help_menu
),
help_overview
);
gtk_menu_shell_append
(
GTK_MENU_SHELL
(
help_menu
),
help_navigator
);
gtk_menu_shell_append
(
GTK_MENU_SHELL
(
help_menu
),
help_project
);
gtk_menu_shell_append
(
GTK_MENU_SHELL
(
help_menu
),
help_project
);
gtk_menu_shell_append
(
GTK_MENU_SHELL
(
help_menu
),
help_proview
);
gtk_menu_shell_append
(
GTK_MENU_SHELL
(
help_menu
),
help_proview
);
...
...
xtt/exe/rt_xtt/gtk/rt_xtt_gtk.h
View file @
94263582
...
@@ -95,6 +95,7 @@ class XttGtk : public Xtt {
...
@@ -95,6 +95,7 @@ class XttGtk : public Xtt {
static
void
activate_zoom_out
(
GtkWidget
*
w
,
gpointer
data
);
static
void
activate_zoom_out
(
GtkWidget
*
w
,
gpointer
data
);
static
void
activate_zoom_reset
(
GtkWidget
*
w
,
gpointer
data
);
static
void
activate_zoom_reset
(
GtkWidget
*
w
,
gpointer
data
);
static
void
activate_help
(
GtkWidget
*
w
,
gpointer
data
);
static
void
activate_help
(
GtkWidget
*
w
,
gpointer
data
);
static
void
activate_help_navigator
(
GtkWidget
*
w
,
gpointer
data
);
static
void
activate_help_project
(
GtkWidget
*
w
,
gpointer
data
);
static
void
activate_help_project
(
GtkWidget
*
w
,
gpointer
data
);
static
void
activate_help_proview
(
GtkWidget
*
w
,
gpointer
data
);
static
void
activate_help_proview
(
GtkWidget
*
w
,
gpointer
data
);
static
void
activate_back
(
GtkWidget
*
w
,
gpointer
data
);
static
void
activate_back
(
GtkWidget
*
w
,
gpointer
data
);
...
...
xtt/exe/rt_xtt/src/rt_xtt_main.h
View file @
94263582
...
@@ -106,6 +106,7 @@ class Xtt {
...
@@ -106,6 +106,7 @@ class Xtt {
void
activate_zoom_in
();
void
activate_zoom_in
();
void
activate_zoom_out
();
void
activate_zoom_out
();
void
activate_help
();
void
activate_help
();
void
activate_help_navigator
();
void
activate_help_project
();
void
activate_help_project
();
void
activate_help_proview
();
void
activate_help_proview
();
void
activate_method
(
char
*
method
,
char
*
filter
);
void
activate_method
(
char
*
method
,
char
*
filter
);
...
...
xtt/exe/rt_xtt/src/xtt_main.cpp
View file @
94263582
...
@@ -443,6 +443,11 @@ void Xtt::activate_help_project()
...
@@ -443,6 +443,11 @@ void Xtt::activate_help_project()
CoXHelp
::
dhelp
(
"index"
,
""
,
navh_eHelpFile_Project
,
NULL
,
0
);
CoXHelp
::
dhelp
(
"index"
,
""
,
navh_eHelpFile_Project
,
NULL
,
0
);
}
}
void
Xtt
::
activate_help_navigator
()
{
CoXHelp
::
dhelp
(
"opg_navigator"
,
""
,
navh_eHelpFile_Other
,
"$pwr_lang/man_opg.dat"
,
0
);
}
void
Xtt
::
activate_help_proview
()
void
Xtt
::
activate_help_proview
()
{
{
CoXHelp
::
dhelp
(
"version"
,
""
,
navh_eHelpFile_Other
,
"$pwr_exe/xtt_version_help.dat"
,
0
);
CoXHelp
::
dhelp
(
"version"
,
""
,
navh_eHelpFile_Other
,
"$pwr_exe/xtt_version_help.dat"
,
0
);
...
...
xtt/lib/xtt/gtk/xtt_ev_gtk.cpp
View file @
94263582
...
@@ -257,7 +257,7 @@ EvGtk::EvGtk( void *ev_parent_ctx,
...
@@ -257,7 +257,7 @@ EvGtk::EvGtk( void *ev_parent_ctx,
gtk_widget_add_accelerator
(
help_help
,
"activate"
,
accel_g
,
gtk_widget_add_accelerator
(
help_help
,
"activate"
,
accel_g
,
'h'
,
GDK_CONTROL_MASK
,
GTK_ACCEL_VISIBLE
);
'h'
,
GDK_CONTROL_MASK
,
GTK_ACCEL_VISIBLE
);
GtkWidget
*
help_helpevent
=
gtk_
check_
menu_item_new_with_mnemonic
(
GtkWidget
*
help_helpevent
=
gtk_menu_item_new_with_mnemonic
(
CoWowGtk
::
translate_utf8
(
"Help Selected Event"
));
CoWowGtk
::
translate_utf8
(
"Help Selected Event"
));
g_signal_connect
(
help_helpevent
,
"activate"
,
g_signal_connect
(
help_helpevent
,
"activate"
,
G_CALLBACK
(
eve_activate_helpevent
),
this
);
G_CALLBACK
(
eve_activate_helpevent
),
this
);
...
@@ -430,7 +430,7 @@ EvGtk::EvGtk( void *ev_parent_ctx,
...
@@ -430,7 +430,7 @@ EvGtk::EvGtk( void *ev_parent_ctx,
gtk_widget_add_accelerator
(
help_help
,
"activate"
,
accel_g
,
gtk_widget_add_accelerator
(
help_help
,
"activate"
,
accel_g
,
'h'
,
GDK_CONTROL_MASK
,
GTK_ACCEL_VISIBLE
);
'h'
,
GDK_CONTROL_MASK
,
GTK_ACCEL_VISIBLE
);
GtkWidget
*
help_helpevent
=
gtk_
check_
menu_item_new_with_mnemonic
(
GtkWidget
*
help_helpevent
=
gtk_menu_item_new_with_mnemonic
(
CoWowGtk
::
translate_utf8
(
"Help Selected Event"
));
CoWowGtk
::
translate_utf8
(
"Help Selected Event"
));
g_signal_connect
(
help_helpevent
,
"activate"
,
g_signal_connect
(
help_helpevent
,
"activate"
,
G_CALLBACK
(
ala_activate_helpevent
),
this
);
G_CALLBACK
(
ala_activate_helpevent
),
this
);
...
@@ -635,6 +635,8 @@ EvGtk::EvGtk( void *ev_parent_ctx,
...
@@ -635,6 +635,8 @@ EvGtk::EvGtk( void *ev_parent_ctx,
g_object_set
(
parent_wid_blk
,
"visible"
,
FALSE
,
NULL
);
g_object_set
(
parent_wid_blk
,
"visible"
,
FALSE
,
NULL
);
}
}
wow
=
new
CoWowGtk
(
parent_wid_ala
);
sts
=
outunit_connect
(
user
);
sts
=
outunit_connect
(
user
);
if
(
EVEN
(
sts
))
if
(
EVEN
(
sts
))
*
status
=
sts
;
*
status
=
sts
;
...
...
xtt/lib/xtt/gtk/xtt_hist_gtk.cpp
View file @
94263582
...
@@ -220,7 +220,7 @@ HistGtk::HistGtk( void *hist_parent_ctx,
...
@@ -220,7 +220,7 @@ HistGtk::HistGtk( void *hist_parent_ctx,
gtk_widget_add_accelerator
(
help_help
,
"activate"
,
accel_g
,
gtk_widget_add_accelerator
(
help_help
,
"activate"
,
accel_g
,
'h'
,
GDK_CONTROL_MASK
,
GTK_ACCEL_VISIBLE
);
'h'
,
GDK_CONTROL_MASK
,
GTK_ACCEL_VISIBLE
);
GtkWidget
*
help_helpevent
=
gtk_
check_
menu_item_new_with_mnemonic
(
CoWowGtk
::
translate_utf8
(
"Help Selected Event"
));
GtkWidget
*
help_helpevent
=
gtk_menu_item_new_with_mnemonic
(
CoWowGtk
::
translate_utf8
(
"Help Selected Event"
));
g_signal_connect
(
help_helpevent
,
"activate"
,
g_signal_connect
(
help_helpevent
,
"activate"
,
G_CALLBACK
(
activate_helpevent
),
this
);
G_CALLBACK
(
activate_helpevent
),
this
);
...
@@ -453,6 +453,8 @@ HistGtk::HistGtk( void *hist_parent_ctx,
...
@@ -453,6 +453,8 @@ HistGtk::HistGtk( void *hist_parent_ctx,
get_hist_list
();
get_hist_list
();
}
}
wow
=
new
CoWowGtk
(
parent_wid_hist
);
*
status
=
1
;
*
status
=
1
;
}
}
...
...
xtt/lib/xtt/gtk/xtt_op_gtk.cpp
View file @
94263582
...
@@ -281,7 +281,7 @@ OpGtk::OpGtk( void *op_parent_ctx,
...
@@ -281,7 +281,7 @@ OpGtk::OpGtk( void *op_parent_ctx,
GtkWidget
*
tools_help
=
gtk_button_new
();
GtkWidget
*
tools_help
=
gtk_button_new
();
gtk_container_add
(
GTK_CONTAINER
(
tools_help
),
gtk_container_add
(
GTK_CONTAINER
(
tools_help
),
gtk_image_new_from_stock
(
"gtk-help"
,
GTK_ICON_SIZE_SMALL_TOOLBAR
));
gtk_image_new_from_stock
(
"gtk-help"
,
GTK_ICON_SIZE_SMALL_TOOLBAR
));
g_signal_connect
(
tools_help
,
"clicked"
,
G_CALLBACK
(
activate_help
),
this
);
g_signal_connect
(
tools_help
,
"clicked"
,
G_CALLBACK
(
activate_help
_overview
),
this
);
gtk_toolbar_append_widget
(
GTK_TOOLBAR
(
tools
),
tools_help
,
"Help"
,
""
);
gtk_toolbar_append_widget
(
GTK_TOOLBAR
(
tools
),
tools_help
,
"Help"
,
""
);
GtkWidget
*
tools_navigator
=
gtk_button_new
();
GtkWidget
*
tools_navigator
=
gtk_button_new
();
...
@@ -866,6 +866,13 @@ void OpGtk::activate_help( GtkWidget *w, gpointer data)
...
@@ -866,6 +866,13 @@ void OpGtk::activate_help( GtkWidget *w, gpointer data)
op
->
activate_help
();
op
->
activate_help
();
}
}
void
OpGtk
::
activate_help_overview
(
GtkWidget
*
w
,
gpointer
data
)
{
Op
*
op
=
(
Op
*
)
data
;
op
->
activate_help_overview
();
}
void
OpGtk
::
activate_appl1
(
GtkWidget
*
w
,
gpointer
data
)
void
OpGtk
::
activate_appl1
(
GtkWidget
*
w
,
gpointer
data
)
{
{
Op
*
op
=
(
Op
*
)
data
;
Op
*
op
=
(
Op
*
)
data
;
...
...
xtt/lib/xtt/gtk/xtt_op_gtk.h
View file @
94263582
...
@@ -78,6 +78,7 @@ class OpGtk : public Op {
...
@@ -78,6 +78,7 @@ class OpGtk : public Op {
static
void
activate_eventlog
(
GtkWidget
*
w
,
gpointer
data
);
static
void
activate_eventlog
(
GtkWidget
*
w
,
gpointer
data
);
static
void
activate_navigator
(
GtkWidget
*
w
,
gpointer
data
);
static
void
activate_navigator
(
GtkWidget
*
w
,
gpointer
data
);
static
void
activate_help
(
GtkWidget
*
w
,
gpointer
data
);
static
void
activate_help
(
GtkWidget
*
w
,
gpointer
data
);
static
void
activate_help_overview
(
GtkWidget
*
w
,
gpointer
data
);
static
void
activate_appl1
(
GtkWidget
*
w
,
gpointer
data
);
static
void
activate_appl1
(
GtkWidget
*
w
,
gpointer
data
);
static
void
activate_appl2
(
GtkWidget
*
w
,
gpointer
data
);
static
void
activate_appl2
(
GtkWidget
*
w
,
gpointer
data
);
static
void
activate_appl3
(
GtkWidget
*
w
,
gpointer
data
);
static
void
activate_appl3
(
GtkWidget
*
w
,
gpointer
data
);
...
...
xtt/lib/xtt/motif/xtt_ev_motif.cpp
View file @
94263582
...
@@ -296,6 +296,8 @@ EvMotif::EvMotif( void *ev_parent_ctx,
...
@@ -296,6 +296,8 @@ EvMotif::EvMotif( void *ev_parent_ctx,
flow_AddCloseVMProtocolCb
(
parent_wid_blk
,
flow_AddCloseVMProtocolCb
(
parent_wid_blk
,
(
XtCallbackProc
)
blk_activate_exit
,
this
);
(
XtCallbackProc
)
blk_activate_exit
,
this
);
wow
=
new
CoWowMotif
(
toplevel_ala
);
// Store this for the mh callbacks
// Store this for the mh callbacks
ev
=
this
;
ev
=
this
;
...
...
xtt/lib/xtt/motif/xtt_hist_motif.cpp
View file @
94263582
...
@@ -247,6 +247,7 @@ HistMotif::HistMotif( void *hist_parent_ctx,
...
@@ -247,6 +247,7 @@ HistMotif::HistMotif( void *hist_parent_ctx,
}
}
}
}
wow
=
new
CoWowMotif
(
parent_wid_hist
);
}
}
...
...
xtt/lib/xtt/src/xtt_clog.cpp
View file @
94263582
...
@@ -70,7 +70,7 @@ void CLog::activate_prev_file()
...
@@ -70,7 +70,7 @@ void CLog::activate_prev_file()
void
CLog
::
activate_help
()
void
CLog
::
activate_help
()
{
{
if
(
help_cb
)
if
(
help_cb
)
(
help_cb
)(
parent_ctx
,
"
consolelo
g"
);
(
help_cb
)(
parent_ctx
,
"
opg_nav_systemms
g"
);
}
}
...
...
xtt/lib/xtt/src/xtt_ev.cpp
View file @
94263582
...
@@ -27,6 +27,7 @@
...
@@ -27,6 +27,7 @@
#include "co_cdh.h"
#include "co_cdh.h"
#include "co_time.h"
#include "co_time.h"
#include "co_dcli.h"
#include "co_dcli.h"
#include "co_wow.h"
#include "pwr_baseclasses.h"
#include "pwr_baseclasses.h"
#include "rt_gdh.h"
#include "rt_gdh.h"
#include "rt_mh.h"
#include "rt_mh.h"
...
@@ -180,43 +181,47 @@ void Ev::eve_activate_ack_last()
...
@@ -180,43 +181,47 @@ void Ev::eve_activate_ack_last()
void
Ev
::
eve_activate_help
()
void
Ev
::
eve_activate_help
()
{
{
if
(
help_cb
)
if
(
help_cb
)
(
help_cb
)(
parent_ctx
,
"eventlist"
);
(
help_cb
)(
parent_ctx
,
"
opg_
eventlist"
);
}
}
void
Ev
::
eve_activate_helpevent
()
void
Ev
::
eve_activate_helpevent
()
{
{
char
eventname
[
80
];
char
eventname
[
80
];
int
sts
;
int
sts
;
ItemAlarm
*
item
;
if
(
help_cb
)
{
if
(
help_cb
)
{
sts
=
ev
->
eve
->
get_selected_event
(
eventname
);
sts
=
ev
->
eve
->
get_selected_event
(
eventname
,
&
item
);
if
(
ODD
(
sts
))
if
(
ODD
(
sts
))
{
(
help_cb
)(
parent_ctx
,
eventname
);
wow
->
DisplayText
(
eventname
,
item
->
eventmoretext
);
}
}
}
}
}
void
Ev
::
ala_activate_help
()
void
Ev
::
ala_activate_help
()
{
{
if
(
help_cb
)
if
(
help_cb
)
(
help_cb
)(
parent_ctx
,
"alarmlist"
);
(
help_cb
)(
parent_ctx
,
"
opg_
alarmlist"
);
}
}
void
Ev
::
ala_activate_helpevent
()
void
Ev
::
ala_activate_helpevent
()
{
{
char
eventname
[
80
];
char
eventname
[
80
];
int
sts
;
int
sts
;
ItemAlarm
*
item
;
if
(
help_cb
)
{
if
(
help_cb
)
{
sts
=
ala
->
get_selected_event
(
eventname
);
sts
=
ala
->
get_selected_event
(
eventname
,
&
item
);
if
(
ODD
(
sts
))
if
(
ODD
(
sts
))
{
(
help_cb
)(
parent_ctx
,
eventname
);
wow
->
DisplayText
(
eventname
,
item
->
eventmoretext
);
}
}
}
}
}
void
Ev
::
blk_activate_help
()
void
Ev
::
blk_activate_help
()
{
{
if
(
help_cb
)
if
(
help_cb
)
(
help_cb
)(
parent_ctx
,
"blocklist"
);
(
help_cb
)(
parent_ctx
,
"
opg_
blocklist"
);
}
}
int
Ev
::
get_alarm_info
(
evlist_sAlarmInfo
*
info
)
int
Ev
::
get_alarm_info
(
evlist_sAlarmInfo
*
info
)
...
...
xtt/lib/xtt/src/xtt_ev.h
View file @
94263582
...
@@ -30,6 +30,8 @@
...
@@ -30,6 +30,8 @@
# include "xtt_evlist.h"
# include "xtt_evlist.h"
#endif
#endif
class
CoWow
;
typedef
struct
{
typedef
struct
{
char
Object
[
120
];
char
Object
[
120
];
char
Alias
[
8
];
char
Alias
[
8
];
...
@@ -77,6 +79,7 @@ class Ev {
...
@@ -77,6 +79,7 @@ class Ev {
int
ala_size
;
int
ala_size
;
int
blk_size
;
int
blk_size
;
ev_sAlias
alias_list
[
20
];
ev_sAlias
alias_list
[
20
];
CoWow
*
wow
;
static
Ev
*
ev
;
static
Ev
*
ev
;
virtual
void
map_eve
()
{}
virtual
void
map_eve
()
{}
...
...
xtt/lib/xtt/src/xtt_evlist.cpp
View file @
94263582
...
@@ -1738,22 +1738,21 @@ void EvList::ack( mh_sEventId *id)
...
@@ -1738,22 +1738,21 @@ void EvList::ack( mh_sEventId *id)
}
}
}
}
int
EvList
::
get_selected_event
(
char
*
eventname
)
int
EvList
::
get_selected_event
(
char
*
eventname
,
ItemAlarm
**
item
)
{
{
brow_tNode
*
node_list
;
brow_tNode
*
node_list
;
int
node_count
;
int
node_count
;
ItemAlarm
*
item
;
brow_GetSelectedNodes
(
brow
->
ctx
,
&
node_list
,
&
node_count
);
brow_GetSelectedNodes
(
brow
->
ctx
,
&
node_list
,
&
node_count
);
if
(
!
node_count
)
if
(
!
node_count
)
return
0
;
return
0
;
brow_GetUserData
(
node_list
[
0
],
(
void
**
)
&
item
);
brow_GetUserData
(
node_list
[
0
],
(
void
**
)
item
);
free
(
node_list
);
free
(
node_list
);
switch
(
item
->
type
)
switch
(
(
*
item
)
->
type
)
{
{
case
evlist_eItemType_Alarm
:
case
evlist_eItemType_Alarm
:
strcpy
(
eventname
,
item
->
eventname
);
strcpy
(
eventname
,
(
*
item
)
->
eventname
);
break
;
break
;
default:
default:
return
0
;
return
0
;
...
...
xtt/lib/xtt/src/xtt_evlist.h
View file @
94263582
...
@@ -50,6 +50,8 @@
...
@@ -50,6 +50,8 @@
#include "flow_browapi.h"
#include "flow_browapi.h"
#endif
#endif
class
ItemAlarm
;
#define ALARM_INFO_A_SIZE 5
#define ALARM_INFO_A_SIZE 5
#define ALARM_INFO_B_SIZE 2
#define ALARM_INFO_B_SIZE 2
#define ALARM_INFO_C_SIZE 2
#define ALARM_INFO_C_SIZE 2
...
@@ -188,7 +190,7 @@ class EvList {
...
@@ -188,7 +190,7 @@ class EvList {
void
set_hide_text
(
int
value
);
void
set_hide_text
(
int
value
);
int
get_alarm_info
(
evlist_sAlarmInfo
*
info
);
int
get_alarm_info
(
evlist_sAlarmInfo
*
info
);
int
get_last_not_acked_prio
(
mh_sEventId
**
id
,
unsigned
long
type
,
unsigned
long
prio
);
int
get_last_not_acked_prio
(
mh_sEventId
**
id
,
unsigned
long
type
,
unsigned
long
prio
);
int
get_selected_event
(
char
*
eventname
);
int
get_selected_event
(
char
*
eventname
,
ItemAlarm
**
item
);
int
get_destination
(
pwr_tTime
time
,
void
**
dest
);
int
get_destination
(
pwr_tTime
time
,
void
**
dest
);
void
block_remove
();
void
block_remove
();
void
print
(
char
*
filename
);
void
print
(
char
*
filename
);
...
...
xtt/lib/xtt/src/xtt_fast.cpp
View file @
94263582
...
@@ -211,7 +211,7 @@ void XttFast::fast_help_cb( void *ctx)
...
@@ -211,7 +211,7 @@ void XttFast::fast_help_cb( void *ctx)
XttFast
*
fast
=
(
XttFast
*
)
ctx
;
XttFast
*
fast
=
(
XttFast
*
)
ctx
;
if
(
fast
->
help_cb
)
if
(
fast
->
help_cb
)
(
fast
->
help_cb
)(
fast
->
xnav
,
"
fastwindow
"
);
(
fast
->
help_cb
)(
fast
->
xnav
,
"
opg_fastcurves
"
);
}
}
void
XttFast
::
fast_scan
(
void
*
data
)
void
XttFast
::
fast_scan
(
void
*
data
)
...
...
xtt/lib/xtt/src/xtt_hist.cpp
View file @
94263582
...
@@ -36,6 +36,7 @@ using namespace std;
...
@@ -36,6 +36,7 @@ using namespace std;
extern
"C"
{
extern
"C"
{
#include "co_cdh.h"
#include "co_cdh.h"
#include "co_time.h"
#include "co_time.h"
#include "co_wow.h"
#include "pwr_baseclasses.h"
#include "pwr_baseclasses.h"
#include "rt_gdh.h"
#include "rt_gdh.h"
#include "rt_mh.h"
#include "rt_mh.h"
...
@@ -119,18 +120,20 @@ void Hist::activate_print()
...
@@ -119,18 +120,20 @@ void Hist::activate_print()
void
Hist
::
activate_help
()
void
Hist
::
activate_help
()
{
{
if
(
help_cb
)
if
(
help_cb
)
(
help_cb
)(
parent_ctx
,
"
histlist
"
);
(
help_cb
)(
parent_ctx
,
"
opg_eventlog
"
);
}
}
void
Hist
::
activate_helpevent
()
void
Hist
::
activate_helpevent
()
{
{
char
eventname
[
80
];
char
eventname
[
80
];
int
sts
;
int
sts
;
ItemAlarm
*
item
;
if
(
help_cb
)
{
if
(
help_cb
)
{
sts
=
hist
->
get_selected_event
(
eventname
);
sts
=
hist
->
get_selected_event
(
eventname
,
&
item
);
if
(
ODD
(
sts
))
if
(
ODD
(
sts
))
{
(
help_cb
)(
parent_ctx
,
eventname
);
wow
->
DisplayText
(
eventname
,
item
->
eventmoretext
);
}
}
}
}
}
...
...
xtt/lib/xtt/src/xtt_hist.h
View file @
94263582
...
@@ -39,6 +39,8 @@ extern "C" {
...
@@ -39,6 +39,8 @@ extern "C" {
#endif
#endif
#define ERROR_TIME_CONVERT -99
#define ERROR_TIME_CONVERT -99
class
CoWow
;
class
Hist
{
class
Hist
{
public:
public:
Hist
(
void
*
hist_parent_ctx
,
Hist
(
void
*
hist_parent_ctx
,
...
@@ -80,6 +82,7 @@ class Hist {
...
@@ -80,6 +82,7 @@ class Hist {
bool
eventType_Unblock
;
bool
eventType_Unblock
;
bool
eventType_Reblock
;
bool
eventType_Reblock
;
bool
eventType_CancelBlock
;
bool
eventType_CancelBlock
;
CoWow
*
wow
;
void
get_hist_list
();
void
get_hist_list
();
pwr_tStatus
hist_add_ack_mess
(
mh_sAck
*
MsgP
);
pwr_tStatus
hist_add_ack_mess
(
mh_sAck
*
MsgP
);
...
...
xtt/lib/xtt/src/xtt_op.cpp
View file @
94263582
...
@@ -143,6 +143,12 @@ void Op::activate_help()
...
@@ -143,6 +143,12 @@ void Op::activate_help()
help_cb
(
parent_ctx
,
"index"
);
help_cb
(
parent_ctx
,
"index"
);
}
}
void
Op
::
activate_help_overview
()
{
if
(
help_cb
)
help_cb
(
parent_ctx
,
"overview"
);
}
void
Op
::
jop_command_cb
(
void
*
op
,
char
*
command
)
void
Op
::
jop_command_cb
(
void
*
op
,
char
*
command
)
{
{
if
(
((
Op
*
)
op
)
->
command_cb
)
if
(
((
Op
*
)
op
)
->
command_cb
)
...
...
xtt/lib/xtt/src/xtt_op.h
View file @
94263582
...
@@ -80,6 +80,7 @@ class Op {
...
@@ -80,6 +80,7 @@ class Op {
void
activate_eventlog
();
void
activate_eventlog
();
void
activate_navigator
();
void
activate_navigator
();
void
activate_help
();
void
activate_help
();
void
activate_help_overview
();
static
void
jop_command_cb
(
void
*
op
,
char
*
command
);
static
void
jop_command_cb
(
void
*
op
,
char
*
command
);
};
};
...
...
xtt/lib/xtt/src/xtt_sevhist.cpp
View file @
94263582
...
@@ -240,7 +240,7 @@ void XttSevHist::sevhist_help_cb( void *ctx)
...
@@ -240,7 +240,7 @@ void XttSevHist::sevhist_help_cb( void *ctx)
XttSevHist
*
sevhist
=
(
XttSevHist
*
)
ctx
;
XttSevHist
*
sevhist
=
(
XttSevHist
*
)
ctx
;
if
(
sevhist
->
help_cb
)
if
(
sevhist
->
help_cb
)
(
sevhist
->
help_cb
)(
sevhist
->
xnav
,
"
sevhistwindow
"
);
(
sevhist
->
help_cb
)(
sevhist
->
xnav
,
"
opg_history
"
);
}
}
void
XttSevHist
::
sevhist_scan
(
void
*
data
)
void
XttSevHist
::
sevhist_scan
(
void
*
data
)
...
...
xtt/lib/xtt/src/xtt_trend.cpp
View file @
94263582
...
@@ -273,7 +273,7 @@ void XttTrend::trend_help_cb( void *ctx)
...
@@ -273,7 +273,7 @@ void XttTrend::trend_help_cb( void *ctx)
XttTrend
*
trend
=
(
XttTrend
*
)
ctx
;
XttTrend
*
trend
=
(
XttTrend
*
)
ctx
;
if
(
trend
->
help_cb
)
if
(
trend
->
help_cb
)
(
trend
->
help_cb
)(
trend
->
xnav
,
"
trendwindow
"
);
(
trend
->
help_cb
)(
trend
->
xnav
,
"
opg_trend
"
);
}
}
void
XttTrend
::
trend_scan
(
void
*
data
)
void
XttTrend
::
trend_scan
(
void
*
data
)
...
...
xtt/lib/xtt/src/xtt_xnav_command.cpp
View file @
94263582
...
@@ -6748,6 +6748,8 @@ static void xnav_op_help_cb( void *ctx, const char *key)
...
@@ -6748,6 +6748,8 @@ static void xnav_op_help_cb( void *ctx, const char *key)
int
sts
;
int
sts
;
sts
=
CoXHelp
::
dhelp
(
key
,
""
,
navh_eHelpFile_Project
,
NULL
,
0
);
sts
=
CoXHelp
::
dhelp
(
key
,
""
,
navh_eHelpFile_Project
,
NULL
,
0
);
if
(
EVEN
(
sts
))
sts
=
CoXHelp
::
dhelp
(
key
,
""
,
navh_eHelpFile_Base
,
NULL
,
0
);
if
(
EVEN
(
sts
))
if
(
EVEN
(
sts
))
xnav
->
message
(
'E'
,
"Unable to find topic"
);
xnav
->
message
(
'E'
,
"Unable to find topic"
);
else
else
...
...
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