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
6587a816
Commit
6587a816
authored
Jan 24, 2008
by
claes
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Opwindow popped for new alarm
parent
24028756
Changes
6
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
51 additions
and
15 deletions
+51
-15
xtt/lib/xtt/gtk/xtt_op_gtk.cpp
xtt/lib/xtt/gtk/xtt_op_gtk.cpp
+6
-1
xtt/lib/xtt/gtk/xtt_op_gtk.h
xtt/lib/xtt/gtk/xtt_op_gtk.h
+5
-1
xtt/lib/xtt/src/xtt_ev.cpp
xtt/lib/xtt/src/xtt_ev.cpp
+4
-1
xtt/lib/xtt/src/xtt_ev.h
xtt/lib/xtt/src/xtt_ev.h
+2
-1
xtt/lib/xtt/src/xtt_evlist.cpp
xtt/lib/xtt/src/xtt_evlist.cpp
+30
-9
xtt/lib/xtt/src/xtt_evlist.h
xtt/lib/xtt/src/xtt_evlist.h
+4
-2
No files found.
xtt/lib/xtt/gtk/xtt_op_gtk.cpp
View file @
6587a816
/*
* Proview $Id: xtt_op_gtk.cpp,v 1.
7 2007-10-30 07:45:55
claes Exp $
* Proview $Id: xtt_op_gtk.cpp,v 1.
8 2008-01-24 09:35:26
claes Exp $
* Copyright (C) 2005 SSAB Oxelsund AB.
*
* This program is free software; you can redistribute it and/or
...
...
@@ -371,7 +371,12 @@ OpGtk::~OpGtk()
void
OpGtk
::
map
()
{
if
(
poptimer
.
disabled
())
return
;
gtk_window_present
(
GTK_WINDOW
(
toplevel
));
poptimer
.
disable
(
1000
);
}
void
OpGtk
::
add_close_button
()
...
...
xtt/lib/xtt/gtk/xtt_op_gtk.h
View file @
6587a816
/*
* Proview $Id: xtt_op_gtk.h,v 1.
2 2007-05-16 12:37:39
claes Exp $
* Proview $Id: xtt_op_gtk.h,v 1.
3 2008-01-24 09:35:26
claes Exp $
* Copyright (C) 2005 SSAB Oxelsund AB.
*
* This program is free software; you can redistribute it and/or
...
...
@@ -26,6 +26,9 @@
# include "xtt_op.h"
#endif
#ifndef co_wow_gtk_h
# include "co_wow_gtk.h"
#endif
class
OpGtk
:
public
Op
{
public:
...
...
@@ -56,6 +59,7 @@ class OpGtk : public Op {
int
a_exist
[
5
];
int
a_active
[
5
];
int
text_size
;
CoWowFocusTimerGtk
poptimer
;
void
map
();
int
configure
(
char
*
opplace_str
);
...
...
xtt/lib/xtt/src/xtt_ev.cpp
View file @
6587a816
/*
* Proview $Id: xtt_ev.cpp,v 1.
9 2007-01-04 08:22:46
claes Exp $
* Proview $Id: xtt_ev.cpp,v 1.
10 2008-01-24 09:36:17
claes Exp $
* Copyright (C) 2005 SSAB Oxelsund AB.
*
* This program is free software; you can redistribute it and/or
...
...
@@ -389,6 +389,9 @@ pwr_tStatus Ev::mh_alarm_bc( mh_sMessage *MsgP)
ev
->
ala
->
event_alarm
(
MsgP
);
if
(
ev
->
update_info_cb
)
ev
->
update_info_cb
(
ev
->
parent_ctx
);
if
(
ev
->
pop_cb
)
ev
->
pop_cb
(
ev
->
parent_ctx
);
return
1
;
}
...
...
xtt/lib/xtt/src/xtt_ev.h
View file @
6587a816
/*
* Proview $Id: xtt_ev.h,v 1.
8 2007-01-04 08:22:46
claes Exp $
* Proview $Id: xtt_ev.h,v 1.
9 2008-01-24 09:36:17
claes Exp $
* Copyright (C) 2005 SSAB Oxelsund AB.
*
* This program is free software; you can redistribute it and/or
...
...
@@ -64,6 +64,7 @@ class Ev {
void
(
*
popup_menu_cb
)(
void
*
,
pwr_tAttrRef
,
unsigned
long
,
unsigned
long
,
char
*
,
int
x
,
int
y
);
int
(
*
sound_cb
)(
void
*
,
pwr_tAttrRef
*
);
void
(
*
pop_cb
)(
void
*
);
EvList
*
eve
;
EvList
*
ala
;
EvList
*
blk
;
...
...
xtt/lib/xtt/src/xtt_evlist.cpp
View file @
6587a816
/*
* Proview $Id: xtt_evlist.cpp,v 1.1
8 2007-10-24 15:11:30
claes Exp $
* Proview $Id: xtt_evlist.cpp,v 1.1
9 2008-01-24 09:36:17
claes Exp $
* Copyright (C) 2005 SSAB Oxelsund AB.
*
* This program is free software; you can redistribute it and/or
...
...
@@ -315,6 +315,8 @@ void EvListBrow::brow_setup()
EvList
::
brow_cb
);
brow_EnableEvent
(
ctx
,
flow_eEvent_ScrollDown
,
flow_eEventType_CallBack
,
EvList
::
brow_cb
);
brow_EnableEvent
(
ctx
,
flow_eEvent_TipText
,
flow_eEventType_CallBack
,
EvList
::
brow_cb
);
}
//
...
...
@@ -430,7 +432,8 @@ void EvList::event_info( mh_sMessage *msg)
event
->
Info
.
EventTime
,
event
->
Msg
.
EventText
,
event
->
Info
.
EventName
,
event
->
Info
.
EventFlags
,
event
->
Info
.
EventPrio
,
event
->
Info
.
Id
,
event
->
Info
.
Object
,
&
event
->
Msg
.
EventSound
,
msg
->
Status
,
event
->
Info
.
Object
,
&
event
->
Msg
.
EventSound
,
event
->
Msg
.
EventMoreText
,
msg
->
Status
,
evlist_eEventType_Info
,
dest_node
,
dest_code
);
size
++
;
}
...
...
@@ -474,7 +477,8 @@ void EvList::event_alarm( mh_sMessage *msg)
event
->
Info
.
EventTime
,
event
->
Msg
.
EventText
,
event
->
Info
.
EventName
,
event
->
Info
.
EventFlags
,
event
->
Info
.
EventPrio
,
event
->
Info
.
Id
,
event
->
Info
.
Object
,
&
event
->
Msg
.
EventSound
,
msg
->
Status
,
event
->
Info
.
Object
,
&
event
->
Msg
.
EventSound
,
event
->
Msg
.
EventMoreText
,
msg
->
Status
,
evlist_eEventType_Alarm
,
dest_node
,
dest_code
);
size
++
;
}
...
...
@@ -522,7 +526,7 @@ void EvList::event_block( mh_sBlock *msg)
event
->
Info
.
EventTime
,
event
->
Info
.
EventName
,
text
,
event
->
Info
.
EventFlags
,
event
->
Info
.
EventPrio
,
event
->
Info
.
Id
,
event
->
Info
.
Object
,
0
,
0
,
evlist_eEventType_Block
,
event
->
Info
.
Object
,
0
,
0
,
0
,
evlist_eEventType_Block
,
dest_node
,
dest_code
);
size
++
;
break
;
...
...
@@ -578,7 +582,7 @@ void EvList::event_block( mh_sBlock *msg)
event
->
Info
.
EventTime
,
text
,
event
->
Info
.
EventName
,
event
->
Info
.
EventFlags
,
event
->
Info
.
EventPrio
,
event
->
Info
.
Id
,
event
->
Info
.
Object
,
0
,
0
,
evlist_eEventType_Block
,
event
->
Info
.
Object
,
0
,
0
,
0
,
evlist_eEventType_Block
,
dest_node
,
dest_code
);
switch
(
msg
->
Info
.
EventType
)
{
...
...
@@ -663,7 +667,7 @@ void EvList::event_ack( mh_sAck *msg)
event
->
Info
.
EventTime
,
""
,
event
->
Info
.
EventName
,
event
->
Info
.
EventFlags
,
event
->
Info
.
EventPrio
,
event
->
Info
.
Id
,
event
->
Info
.
Object
,
0
,
0
,
evlist_eEventType_Ack
,
event
->
Info
.
Object
,
0
,
0
,
0
,
evlist_eEventType_Ack
,
dest_node
,
dest_code
);
size
++
;
}
...
...
@@ -726,7 +730,7 @@ void EvList::event_return( mh_sReturn *msg)
event
->
Info
.
EventTime
,
event
->
Msg
.
EventText
,
event
->
Info
.
EventName
,
event
->
Info
.
EventFlags
,
event
->
Info
.
EventPrio
,
event
->
Info
.
Id
,
event
->
Info
.
Object
,
0
,
0
,
evlist_eEventType_Return
,
event
->
Info
.
Object
,
0
,
0
,
0
,
evlist_eEventType_Return
,
dest_node
,
dest_code
);
size
++
;
}
...
...
@@ -1177,6 +1181,20 @@ int EvList::brow_cb( FlowCtx *ctx, flow_tEvent event)
;
}
break
;
case
flow_eEvent_TipText
:
{
brow_GetUserData
(
event
->
object
.
object
,
(
void
**
)
&
item
);
switch
(
item
->
type
)
{
case
evlist_eItemType_Alarm
:
if
(
strcmp
(
((
ItemAlarm
*
)
item
)
->
eventmoretext
,
""
)
!=
0
)
{
brow_SetTipText
(
evlist
->
brow
->
ctx
,
event
->
object
.
object
,
((
ItemAlarm
*
)
item
)
->
eventmoretext
,
event
->
any
.
x_pixel
,
event
->
any
.
y_pixel
);
}
break
;
default:
;
}
break
;
}
default:
;
}
...
...
@@ -1186,7 +1204,7 @@ int EvList::brow_cb( FlowCtx *ctx, flow_tEvent event)
ItemAlarm
::
ItemAlarm
(
EvList
*
item_evlist
,
char
*
item_name
,
pwr_tTime
item_time
,
char
*
item_eventtext
,
char
*
item_eventname
,
int
item_eventflags
,
unsigned
long
item_eventprio
,
mh_sEventId
item_eventid
,
pwr_tObjid
item_object
,
pwr_tAttrRef
*
item_eventsound
,
pwr_tObjid
item_object
,
pwr_tAttrRef
*
item_eventsound
,
char
*
item_eventmoretext
,
unsigned
long
item_status
,
evlist_eEventType
item_event_type
,
brow_tNode
dest
,
flow_eDest
dest_code
)
:
event_type
(
item_event_type
),
evlist
(
item_evlist
),
time
(
item_time
),
...
...
@@ -1207,7 +1225,10 @@ ItemAlarm::ItemAlarm( EvList *item_evlist, char *item_name, pwr_tTime item_time,
strcpy
(
alias
,
""
);
if
(
item_eventsound
)
eventsound
=
*
item_eventsound
;
if
(
eventmoretext
)
strncpy
(
eventmoretext
,
item_eventmoretext
,
sizeof
(
eventmoretext
));
else
strcpy
(
eventmoretext
,
""
);
switch
(
event_type
)
{
case
evlist_eEventType_Alarm
:
...
...
xtt/lib/xtt/src/xtt_evlist.h
View file @
6587a816
/*
* Proview $Id: xtt_evlist.h,v 1.1
1 2007-01-04 08:22:46
claes Exp $
* Proview $Id: xtt_evlist.h,v 1.1
2 2008-01-24 09:36:17
claes Exp $
* Copyright (C) 2005 SSAB Oxelsund AB.
*
* This program is free software; you can redistribute it and/or
...
...
@@ -203,7 +203,8 @@ class ItemAlarm {
ItemAlarm
(
EvList
*
evlist
,
char
*
item_name
,
pwr_tTime
item_time
,
char
*
item_eventtext
,
char
*
item_eventname
,
int
item_eventflags
,
unsigned
long
item_eventprio
,
mh_sEventId
item_eventid
,
pwr_tObjid
item_object
,
pwr_tAttrRef
*
item_eventsound
,
unsigned
long
item_status
,
pwr_tObjid
item_object
,
pwr_tAttrRef
*
item_eventsound
,
char
*
item_eventmoretext
,
unsigned
long
item_status
,
evlist_eEventType
item_event_type
,
brow_tNode
dest
,
flow_eDest
dest_code
);
evlist_eItemType
type
;
...
...
@@ -221,6 +222,7 @@ class ItemAlarm {
unsigned
long
status
;
char
alias
[
40
];
pwr_tAttrRef
eventsound
;
pwr_tText256
eventmoretext
;
void
update_text
();
};
...
...
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