Commit d8cd2765 authored by claes's avatar claes

Historical event list added

parent 416afe4f
...@@ -28,7 +28,7 @@ c_Collect_show : compound_string("Collect show"); ...@@ -28,7 +28,7 @@ c_Collect_show : compound_string("Collect show");
c_Advanced_user : compound_string("Advanced user"); c_Advanced_user : compound_string("Advanced user");
c_View : compound_string("View"); c_View : compound_string("View");
c_Zoom_in : compound_string("Zoom in"); c_Zoom_in : compound_string("Zoom in");
c_Zoom_out : compound_string("Zoom ut"); c_Zoom_out : compound_string("Zoom out");
c_Zoom_reset : compound_string("Zoom reset"); c_Zoom_reset : compound_string("Zoom reset");
c_Help : compound_string("Help"); c_Help : compound_string("Help");
c_Overview : compound_string("Overview"); c_Overview : compound_string("Overview");
...@@ -38,6 +38,8 @@ c_Project : compound_string("Project"); ...@@ -38,6 +38,8 @@ c_Project : compound_string("Project");
c_Alarmlist : compound_string("Alarmlist"); c_Alarmlist : compound_string("Alarmlist");
c_Eventlist : compound_string("Eventlist"); c_Eventlist : compound_string("Eventlist");
c_Eventlog : compound_string("Eventlog");
c_Histlist : compound_string("Historical Eventlist");
c_Navigator : compound_string("Navigator"); c_Navigator : compound_string("Navigator");
! module xtt_xatt.uil ! module xtt_xatt.uil
...@@ -91,3 +93,35 @@ k_Value_input : "Value input"; ...@@ -91,3 +93,35 @@ k_Value_input : "Value input";
c_SearchNext : "SearchNext"; c_SearchNext : "SearchNext";
c_SearchPrevious : "SearchPrevious"; c_SearchPrevious : "SearchPrevious";
! module xtt_hist.uil
histformtitle : "Historical Event List: Search Condition";
Search : "Search";
Exit : "Exit";
starttime : "Start time";
priority : "Priority";
stoptime : "Stop time";
eventtype : "Event type";
eventtext : "Event text";
eventname : "Event name";
a_alarm : "A-Alarm";
b_alarm : "B-Alarm";
c_alarm : "C-Alarm";
d_alarm : "D-Alarm";
message : "Message";
active : "Active";
acknowledge : "Ack";
return : "Return";
nrOfEvents : "Number of events:";
today : "Today";
yesterday : "Yesterday";
thisweek : "This Week";
lastweek : "Last Week";
thismonth : "This Month";
lastmonth : "Last Month";
all : "All";
time : "Time";
searchcondition : "Searchcondition:";
mnemonic_FILE : 'F';
! rt_xtt_hist.uil -- <short description>
!
! PROVIEW/R
! Copyright (C) 1996 by Comator Process AB.
!
! <Description>.
!
module rt_xtt_hist
version = 'v1.0'
names = case_sensitive
objects = {
XmSeparator = gadget ;
}
include file 'inc_xtt.uil';
identifier
hist_ctx;
procedure
hist_activate_exit(integer);
hist_activate_zoom_in(integer);
hist_activate_zoom_out(integer);
hist_activate_zoom_reset(integer);
hist_activate_open_plc(integer);
hist_activate_display_in_xnav(integer);
hist_activate_disp_hundredth(integer);
hist_activate_hide_object(integer);
hist_activate_hide_text(integer);
hist_activate_help(integer);
hist_activate_helpevent(integer);
hist_create_form(integer);
! Callbacks from the search dialog widgets
hist_ok_btn(any);
! hist_start_time_help_label_cr(any);
hist_start_time_entry_cr(any);
hist_start_time_entry_lf(any);
hist_stop_time_entry_cr(any);
hist_stop_time_entry_lf(any);
hist_today_cb(any);
hist_yesterday_cb(any);
hist_thisw_cb(any);
hist_lastw_cb(any);
hist_thism_cb(any);
hist_lastm_cb(any);
hist_all_cb(any);
hist_time_cb(any);
hist_alarm_toggle_cr(any);
hist_info_toggle_cr(any);
hist_ack_toggle_cr(any);
hist_ret_toggle_cr(any);
hist_prioA_toggle_cr(any);
hist_prioB_toggle_cr(any);
hist_prioC_toggle_cr(any);
hist_prioD_toggle_cr(any);
hist_event_text_entry_cr(any);
hist_event_text_entry_lf(any);
hist_event_name_entry_cr(any);
hist_event_name_entry_lf(any);
hist_nrofevents_string_label_cr(any);
hist_search_string_label_cr(any);
hist_search_string2_label_cr(any);
hist_search_string3_label_cr(any);
hist_search_string4_label_cr(any);
value
menu_font : font ('-*-Helvetica-Bold-R-Normal--12-*-*-*-P-*-ISO8859-1');
bold_font : font ('-*-Helvetica-Bold-R-Normal--12-*-*-*-P-*-ISO8859-1');
! CONSTANTS, Defining the geometry of the application.
ButtonWidth : 70;
SearchBtn_PosX : 400;
SearchBtn_PosY : 145;!150;
startTime_lbl_PosX : 8;
startTime_lbl_PosY : 20;!25;!10;
startTime_field_PosX : 100;
startTime_field_PosY : 15;!20;!5;
stopTime_lbl_PosX : 280;
stopTime_lbl_PosY : 20;!25;!10;
stopTime_field_PosX : 350;
stopTime_field_PosY : 15;!20;!5;
TimeBtn_PosX : 520;
TimeBtn_PosY : 13;!18;
eventType_lbl_PosX : 8;
eventType_lbl_PosY : 50;!55;!40;
eventTypeAlarm_btn_PosX : 100;
eventTypeAlarm_btn_PosY : 45;!50;!35;
eventTypeInfo_btn_PosX : 170;
eventTypeInfo_btn_PosY : 45;!50;!35;
eventTypeRet_btn_PosX : 240;
eventTypeRet_btn_PosY : 45;!50;!35;
eventTypeAck_btn_PosX : 310;
eventTypeAck_btn_PosY : 45;!50;!35;
eventPrio_lbl_PosX : 8;
eventPrio_lbl_PosY : 74;!79;!70;
eventPrioA_btn_PosX : 100;
eventPrioA_btn_PosY : 69;!74;!65;
eventPrioB_btn_PosX : 170;
eventPrioB_btn_PosY : 69;!74;!65;
eventPrioC_btn_PosX : 240;
eventPrioC_btn_PosY : 69;!74;!65;
eventPrioD_btn_PosX : 310;
eventPrioD_btn_PosY : 69;!74;!65;
eventText_lbl_PosX : 8;
eventText_lbl_PosY : 130;!135;!105;
eventText_field_PosX : 100;
eventText_field_PosY : 125;!130;!100;
eventName_lbl_PosX : 8;
eventName_lbl_PosY : 100;!105;!135;
eventName_field_PosX : 100;
eventName_field_PosY : 95;!100;!130;
nrofevents_lbl_PosX : 10;
nrofevents_lbl_PosY : 145;!150;
searchstring_lbl_PosX : 100;
searchstring_lbl_PosY : 165;!170;
hformtitle : compound_string(histformtitle);
OKlabel : compound_string(Search);
starttimelabel : compound_string(starttime);
stoptimelabel : compound_string(stoptime);
todaylabel : compound_string(today);
yesterdaylabel : compound_string(yesterday);
thisweeklabel : compound_string(thisweek);
lastweeklabel : compound_string(lastweek);
thismonthlabel : compound_string(thismonth);
lastmonthlabel : compound_string(lastmonth);
alllabel : compound_string(all);
timelabel : compound_string(time);
eventtypelabel : compound_string(eventtype);
alarmlabel : compound_string(active);
msglabel : compound_string(message);
retlabel : compound_string(return);
acklabel : compound_string(acknowledge);
eventPriolabel : compound_string(priority);
eventPrioAlabel : compound_string(a_alarm);
eventPrioBlabel : compound_string(b_alarm);
eventPrioClabel : compound_string(c_alarm);
eventPrioDlabel : compound_string(d_alarm);
nrOfEventsLabel : compound_string(nrOfEvents);
eventTextlabel : compound_string(eventtext);
eventNamelabel : compound_string(eventname);
searchConditionLabel : compound_string(searchcondition);
file_mnemonic : keysym(mnemonic_FILE);
!----------------------------------------
! First declare the 'top level' widgets. These are not controlled by
! any other widgets. They are each fetched individually as needed.
!----------------------------------------
object hist_window : XmMainWindow
{
arguments
{
XmNx = 0;
XmNy = 0;
};
controls
{
XmMenuBar hist_menu;
XmForm hist_form;
};
};
object hist_form : XmForm
{
arguments
{
XmNwidth = 200;
XmNheight = 200;
XmNresizePolicy = XmRESIZE_NONE;
};
controls
{
XmPanedWindow hist_pane;
};
};
object hist_menu : XmMenuBar
{
arguments
{
XmNorientation = XmHORIZONTAL;
XmNspacing = 15;
XmNmenuHelpWidget = XmCascadeButton hist_help_entry;
};
controls
{
XmCascadeButton hist_file_entry;
XmCascadeButton hist_functions_entry;
XmCascadeButton hist_view_entry;
XmCascadeButton hist_help_entry;
};
};
object hist_file_entry : XmCascadeButton
{
arguments
{
XmNlabelString = c_File;
XmNmnemonic = file_mnemonic;
XmNfontList = menu_font;
};
controls
{
XmPulldownMenu
{
controls
{
XmPushButton
{
arguments
{
XmNlabelString = c_Close;
XmNfontList = menu_font;
};
callbacks
{
XmNactivateCallback = procedure hist_activate_exit(hist_ctx);
};
};
};
};
};
};
object hist_functions_entry : XmCascadeButton
{
arguments
{
XmNlabelString = c_Functions;
XmNfontList = menu_font;
};
controls
{
XmPulldownMenu
{
controls
{
XmPushButton
{
arguments
{
XmNlabelString = c_Open_Plc;
XmNmnemonic = keysym('l');
XmNaccelerator = "Ctrl<Key>L";
XmNacceleratorText = compound_string('Ctrl+L');
XmNfontList = menu_font;
};
callbacks
{
XmNactivateCallback = procedure hist_activate_open_plc(hist_ctx);
};
};
XmPushButton
{
arguments
{
XmNlabelString = c_Display_object_in_navigator;
XmNmnemonic = keysym('D');
XmNaccelerator = "Ctrl<Key>D";
XmNacceleratorText = compound_string('Ctrl+D');
XmNfontList = menu_font;
};
callbacks
{
XmNactivateCallback = procedure hist_activate_display_in_xnav(hist_ctx);
};
};
XmPushButton
{
arguments
{
XmNlabelString = c_Search;
XmNmnemonic = keysym('S');
XmNaccelerator = "Ctrl<Key>S";
XmNacceleratorText = compound_string('Ctrl+S');
XmNfontList = menu_font;
};
callbacks
{
XmNactivateCallback = procedure hist_ok_btn(hist_ctx);
};
};
};
};
};
};
object hist_view_entry : XmCascadeButton
{
arguments
{
XmNlabelString = c_View;
XmNfontList = menu_font;
};
controls
{
XmPulldownMenu
{
controls
{
XmPushButton
{
arguments
{
XmNlabelString = c_Zoom_in;
XmNmnemonic = keysym('I');
XmNaccelerator = "Ctrl<Key>I";
XmNacceleratorText = compound_string('Ctrl+I');
XmNfontList = menu_font;
};
callbacks
{
XmNactivateCallback = procedure hist_activate_zoom_in(hist_ctx);
};
};
XmPushButton
{
arguments
{
XmNlabelString = c_Zoom_out;
XmNmnemonic = keysym('O');
XmNaccelerator = "Ctrl<Key>O";
XmNacceleratorText = compound_string('Ctrl+O');
XmNfontList = menu_font;
};
callbacks
{
XmNactivateCallback = procedure hist_activate_zoom_out(hist_ctx);
};
};
XmPushButton
{
arguments
{
XmNlabelString = c_Zoom_reset;
XmNfontList = menu_font;
};
callbacks
{
XmNactivateCallback = procedure hist_activate_zoom_reset(hist_ctx);
};
};
XmToggleButton
{
arguments
{
XmNlabelString = c_Display_hundredth;
XmNfontList = menu_font;
};
callbacks
{
XmNvalueChangedCallback = procedure hist_activate_disp_hundredth(hist_ctx);
};
};
XmToggleButton
{
arguments
{
XmNlabelString = c_Hide_event_name;
XmNfontList = menu_font;
};
callbacks
{
XmNvalueChangedCallback = procedure hist_activate_hide_object(hist_ctx);
};
};
XmToggleButton
{
arguments
{
XmNlabelString = c_Hide_event_text;
XmNfontList = menu_font;
};
callbacks
{
XmNvalueChangedCallback = procedure hist_activate_hide_text(hist_ctx);
};
};
};
};
};
};
object hist_help_entry : XmCascadeButton
{
arguments
{
XmNlabelString = c_Help;
XmNfontList = menu_font;
};
controls
{
XmPulldownMenu
{
controls
{
XmPushButton
{
arguments
{
XmNlabelString = c_Histlist;
XmNfontList = menu_font;
};
callbacks
{
XmNactivateCallback = procedure hist_activate_help(hist_ctx);
};
};
XmPushButton
{
arguments
{
XmNlabelString = c_Help_on_selected_event;
XmNfontList = menu_font;
};
callbacks
{
XmNactivateCallback = procedure hist_activate_helpevent(hist_ctx);
};
};
}; !Controls
}; !Pulldown_menu
}; !Controls
}; ! help_entry
object hist_pane : XmPanedWindow
{
arguments
{
XmNleftAttachment = XmATTACH_FORM;
XmNrightAttachment = XmATTACH_FORM;
XmNbottomAttachment = XmATTACH_FORM;
XmNtopAttachment = XmATTACH_FORM;
};
controls
{
};
callbacks
{
MrmNcreateCallback = procedure hist_create_form( hist_ctx);
};
};
!*************************************************************
!
! This is the search dialog for the mainwindow. Where we define
! the search clause for events to show.
!
!*************************************************************
object
!_
histSearchDialog: XmForm
{
arguments
{
};
controls
{
XmLabel hl_startTimeLabel;
! XmLabel hl_startTimeHelpLabel;
XmTextField hl_startTimeText;
XmLabel hl_stopTimeLabel;
XmTextField hl_stopTimeText;
XmOptionMenu hl_timeInterval;
XmLabel hl_eventTypeLabel;
XmToggleButton hl_alarmToggle;
XmToggleButton hl_infoToggle;
XmToggleButton hl_retToggle;
XmToggleButton hl_ackToggle;
XmLabel hl_eventPrioLabel;
XmToggleButton hl_prioAToggle;
XmToggleButton hl_prioBToggle;
XmToggleButton hl_prioCToggle;
XmToggleButton hl_prioDToggle;
XmLabel hl_eventTextLabel;
XmTextField hl_eventTextText;
XmLabel hl_eventNameLabel;
XmTextField hl_eventNameText;
XmLabel hl_nrofeventsStringLabelLabel;
XmLabel hl_nrofeventsStringLabel;
XmLabel hl_searchStringLabelLabel;
XmLabel hl_searchStringLabel;
XmLabel hl_searchStringLabel2;
XmLabel hl_searchStringLabel3;
XmLabel hl_searchStringLabel4;
XmFrame
{
arguments
{
XmNshadowThickness = 0;
XmNleftAttachment = XmATTACH_FORM;
XmNleftOffset = 0;
XmNrightAttachment = XmATTACH_FORM;
XmNrightOffset = 0;
XmNbottomAttachment = XmATTACH_FORM;
XmNbottomOffset = 0;
XmNtopAttachment = XmATTACH_WIDGET;
XmNtopOffset = 15;
};
controls
{
XmForm
{
arguments
{
XmNheight = 50;
XmNwidth = 100;
XmNresizePolicy = XmRESIZE_NONE;
};
controls
{
XmPushButton
{
arguments
{
XmNlabelString = OKlabel;
XmNx = SearchBtn_PosX;
XmNy = SearchBtn_PosY;
XmNwidth = ButtonWidth;
XmNmnemonic = keysym('S');
XmNaccelerator = "Ctrl<Key>S";
XmNfontList = menu_font;
};
callbacks
{
XmNactivateCallback = procedure hist_ok_btn(hist_ctx);
};
};
};
};
};
};
};
};
!*************************************************************
!
! This is the widgets int the search dialog for the mainwindow.
!
!*************************************************************
hl_startTimeLabel: XmLabel
{
arguments
{
XmNlabelString = starttimelabel;
XmNx = startTime_lbl_PosX;
XmNy = startTime_lbl_PosY;
};
};
! hl_startTimeHelpLabel: XmLabel
! {
! arguments
! {
! XmNx = startTime_field_PosX + 5;
! XmNy = 1;
! };
! callbacks
! {
! MrmNcreateCallback = procedure hist_start_time_help_label_cr(hist_ctx);
! };
! };
hl_startTimeText: XmTextField
{
arguments
{
XmNcolumns = 19;
XmNmaxLength = 19;
XmNx = startTime_field_PosX;
XmNy = startTime_field_PosY;
XmNfontList = bold_font;
};
callbacks
{
MrmNcreateCallback = procedure hist_start_time_entry_cr(hist_ctx);
XmNlosingFocusCallback = procedure hist_start_time_entry_lf(hist_ctx);
};
};
hl_stopTimeLabel: XmLabel
{
arguments
{
XmNlabelString = stoptimelabel;
XmNx = stopTime_lbl_PosX;
XmNy = stopTime_lbl_PosY;
};
};
hl_stopTimeText: XmTextField
{
arguments
{
XmNcolumns = 19;
XmNmaxLength = 19;
XmNx = stopTime_field_PosX;
XmNy = stopTime_field_PosY;
XmNfontList = bold_font;
};
callbacks
{
MrmNcreateCallback = procedure hist_stop_time_entry_cr(hist_ctx);
XmNlosingFocusCallback = procedure hist_stop_time_entry_lf(hist_ctx);
};
};
hl_timeInterval: XmOptionMenu
{
arguments
{
XmNx = TimeBtn_PosX;
XmNy = TimeBtn_PosY;
XmNwidth = ButtonWidth;
};
controls
{
XmPulldownMenu
{
arguments
{
XmNborderWidth = 1;
};
controls
{
XmPushButton
{
arguments
{
XmNlabelString = alllabel;
};
callbacks
{
XmNactivateCallback = procedure hist_all_cb(hist_ctx);
};
};
XmPushButton
{
arguments
{
XmNlabelString = todaylabel;
};
callbacks
{
XmNactivateCallback = procedure hist_today_cb(hist_ctx);
};
};
XmPushButton
{
arguments
{
XmNlabelString = yesterdaylabel;
};
callbacks
{
XmNactivateCallback = procedure hist_yesterday_cb(hist_ctx);
};
};
XmPushButton
{
arguments
{
XmNlabelString = thisweeklabel;
};
callbacks
{
XmNactivateCallback = procedure hist_thisw_cb(hist_ctx);
};
};
XmPushButton
{
arguments
{
XmNlabelString = lastweeklabel;
};
callbacks
{
XmNactivateCallback = procedure hist_lastw_cb(hist_ctx);
};
};
XmPushButton
{
arguments
{
XmNlabelString = thismonthlabel;
};
callbacks
{
XmNactivateCallback = procedure hist_thism_cb(hist_ctx);
};
};
XmPushButton
{
arguments
{
XmNlabelString = lastmonthlabel;
};
callbacks
{
XmNactivateCallback = procedure hist_lastm_cb(hist_ctx);
};
};
XmPushButton
{
arguments
{
XmNlabelString = timelabel;
};
callbacks
{
XmNactivateCallback = procedure hist_time_cb(hist_ctx);
};
};
};
};
};
};
hl_eventTypeLabel: XmLabel
{
arguments
{
XmNlabelString = eventtypelabel;
XmNx = eventType_lbl_PosX;
XmNy = eventType_lbl_PosY;
};
};
hl_alarmToggle: XmToggleButton
{
arguments
{
XmNlabelString = alarmlabel;
XmNx = eventTypeAlarm_btn_PosX;
XmNy = eventTypeAlarm_btn_PosY;
};
callbacks
{
MrmNcreateCallback = procedure hist_alarm_toggle_cr(hist_ctx);
};
};
hl_infoToggle: XmToggleButton
{
arguments
{
XmNlabelString = msglabel;
XmNx = eventTypeInfo_btn_PosX;
XmNy = eventTypeInfo_btn_PosY;
};
callbacks
{
MrmNcreateCallback = procedure hist_info_toggle_cr(hist_ctx);
};
};
hl_ackToggle: XmToggleButton
{
arguments
{
XmNlabelString = acklabel;
XmNx = eventTypeAck_btn_PosX;
XmNy = eventTypeAck_btn_PosY;
};
callbacks
{
MrmNcreateCallback = procedure hist_ack_toggle_cr(hist_ctx);
};
};
hl_retToggle: XmToggleButton
{
arguments
{
XmNlabelString = retlabel;
XmNx = eventTypeRet_btn_PosX;
XmNy = eventTypeRet_btn_PosY;
};
callbacks
{
MrmNcreateCallback = procedure hist_ret_toggle_cr(hist_ctx);
};
};
hl_eventPrioLabel: XmLabel
{
arguments
{
XmNlabelString = eventPriolabel;
XmNx = eventPrio_lbl_PosX;
XmNy = eventPrio_lbl_PosY;
};
};
hl_prioAToggle: XmToggleButton
{
arguments
{
XmNlabelString = eventPrioAlabel;
XmNx = eventPrioA_btn_PosX;
XmNy = eventPrioA_btn_PosY;
};
callbacks
{
MrmNcreateCallback = procedure hist_prioA_toggle_cr(hist_ctx);
};
};
hl_prioBToggle: XmToggleButton
{
arguments
{
XmNlabelString = eventPrioBlabel;
XmNx = eventPrioB_btn_PosX;
XmNy = eventPrioB_btn_PosY;
};
callbacks
{
MrmNcreateCallback = procedure hist_prioB_toggle_cr(hist_ctx);
};
};
hl_prioCToggle: XmToggleButton
{
arguments
{
XmNlabelString = eventPrioClabel;
XmNx = eventPrioC_btn_PosX;
XmNy = eventPrioC_btn_PosY;
};
callbacks
{
MrmNcreateCallback = procedure hist_prioC_toggle_cr(hist_ctx);
};
};
hl_prioDToggle: XmToggleButton
{
arguments
{
XmNlabelString = eventPrioDlabel;
XmNx = eventPrioD_btn_PosX;
XmNy = eventPrioD_btn_PosY;
};
callbacks
{
MrmNcreateCallback = procedure hist_prioD_toggle_cr(hist_ctx);
};
};
hl_eventTextLabel: XmLabel
{
arguments
{
XmNlabelString = eventTextlabel;
XmNx = eventText_lbl_PosX;
XmNy = eventText_lbl_PosY;
};
};
hl_eventTextText: XmTextField
{
arguments
{
XmNcolumns = 90;
XmNmaxLength = 90;
XmNx = eventText_field_PosX;
XmNy = eventText_field_PosY;
XmNfontList = bold_font;
};
callbacks
{
MrmNcreateCallback = procedure hist_event_text_entry_cr(hist_ctx);
XmNlosingFocusCallback = procedure hist_event_text_entry_lf(hist_ctx);
};
};
hl_eventNameLabel: XmLabel
{
arguments
{
XmNlabelString = eventNamelabel;
XmNx = eventName_lbl_PosX;
XmNy = eventName_lbl_PosY;
};
};
hl_eventNameText: XmTextField
{
arguments
{
XmNcolumns = 90;
XmNmaxLength = 90;
XmNx = eventName_field_PosX;
XmNy = eventName_field_PosY;
XmNfontList = bold_font;
};
callbacks
{
MrmNcreateCallback = procedure hist_event_name_entry_cr(hist_ctx);
XmNlosingFocusCallback = procedure hist_event_name_entry_lf(hist_ctx);
};
};
hl_nrofeventsStringLabelLabel: XmLabel
{
arguments
{
XmNx = 10;
XmNy = 170;
XmNlabelString = nrOfEventsLabel;
};
callbacks
{
!MrmNcreateCallback = procedure hist_nrofevents_string_label_cr(hist_ctx);
};
};
hl_nrofeventsStringLabel: XmLabel
{
arguments
{
XmNx = 100;
XmNy = 170;
XmNfontList = bold_font;
XmNlabelString = " ";
};
callbacks
{
MrmNcreateCallback = procedure hist_nrofevents_string_label_cr(hist_ctx);
};
};
hl_searchStringLabelLabel: XmLabel
{
arguments
{
XmNx = 10;
XmNy = 190;
XmNlabelString = searchConditionLabel;
};
callbacks
{
!MrmNcreateCallback = procedure hist_search_string_label_cr(hist_ctx);
};
};
hl_searchStringLabel: XmLabel
{
arguments
{
XmNx = 10;
XmNy = 210;
XmNalignment = XmALIGNMENT_BEGINNING;
!XmNfontList = bold_font;
XmNlabelString = compound_string(" ");
};
callbacks
{
MrmNcreateCallback = procedure hist_search_string_label_cr(hist_ctx);
};
};
hl_searchStringLabel2: XmLabel
{
arguments
{
XmNx = 10;
XmNy = 230;
XmNalignment = XmALIGNMENT_BEGINNING;
!XmNfontList = bold_font;
XmNlabelString = compound_string(" ");
};
callbacks
{
MrmNcreateCallback = procedure hist_search_string2_label_cr(hist_ctx);
};
};
hl_searchStringLabel3: XmLabel
{
arguments
{
XmNx = 10;
XmNy = 250;
XmNalignment = XmALIGNMENT_BEGINNING;
!XmNfontList = bold_font;
XmNlabelString = compound_string(" ");
};
callbacks
{
MrmNcreateCallback = procedure hist_search_string3_label_cr(hist_ctx);
};
};
hl_searchStringLabel4: XmLabel
{
arguments
{
XmNx = 10;
XmNy = 270;
XmNalignment = XmALIGNMENT_BEGINNING;
!XmNfontList = bold_font;
XmNlabelString = compound_string(" ");
};
callbacks
{
MrmNcreateCallback = procedure hist_search_string4_label_cr(hist_ctx);
};
};
end module;
...@@ -87,6 +87,7 @@ procedure ...@@ -87,6 +87,7 @@ procedure
op_create_appl_form(integer); op_create_appl_form(integer);
op_activate_alarmlist(integer); op_activate_alarmlist(integer);
op_activate_eventlist(integer); op_activate_eventlist(integer);
op_activate_eventlog(integer);
op_activate_navigator(integer); op_activate_navigator(integer);
op_activate_help(integer); op_activate_help(integer);
...@@ -569,6 +570,7 @@ object base_form : XmForm ...@@ -569,6 +570,7 @@ object base_form : XmForm
{ {
XmPushButton alarm_list; XmPushButton alarm_list;
XmPushButton event_list; XmPushButton event_list;
XmPushButton event_log;
XmPushButton navigator; XmPushButton navigator;
XmPushButton help; XmPushButton help;
}; };
...@@ -631,6 +633,25 @@ object navigator : XmPushButton ...@@ -631,6 +633,25 @@ object navigator : XmPushButton
}; };
}; };
object event_log : XmPushButton
{
arguments
{
XmNlabelString = c_Eventlog;
XmNleftAttachment = XmATTACH_FORM;
XmNtopAttachment = XmATTACH_WIDGET;
XmNtopWidget = XmPushButton navigator;
XmNrightAttachment = XmATTACH_FORM;
! XmNwidth = 50;
XmNheight = 25;
XmNfontList = menu_font;
};
callbacks
{
XmNactivateCallback = procedure op_activate_eventlog(op_ctx);
};
};
object help : XmPushButton object help : XmPushButton
{ {
arguments arguments
...@@ -638,7 +659,7 @@ object help : XmPushButton ...@@ -638,7 +659,7 @@ object help : XmPushButton
XmNlabelString = c_Help; XmNlabelString = c_Help;
XmNleftAttachment = XmATTACH_FORM; XmNleftAttachment = XmATTACH_FORM;
XmNtopAttachment = XmATTACH_WIDGET; XmNtopAttachment = XmATTACH_WIDGET;
XmNtopWidget = XmPushButton navigator; XmNtopWidget = XmPushButton event_log;
XmNrightAttachment = XmATTACH_FORM; XmNrightAttachment = XmATTACH_FORM;
XmNbottomAttachment = XmATTACH_FORM; XmNbottomAttachment = XmATTACH_FORM;
! XmNwidth = 50; ! XmNwidth = 50;
......
...@@ -38,6 +38,8 @@ c_Project : compound_string("Projekt"); ...@@ -38,6 +38,8 @@ c_Project : compound_string("Projekt");
c_Alarmlist : compound_string("Larmlista"); c_Alarmlist : compound_string("Larmlista");
c_Eventlist : compound_string("Hndelselista"); c_Eventlist : compound_string("Hndelselista");
c_Eventlog : compound_string("Hndelselogg");
c_Histlist : compound_string("Historisk Hndelselista");
c_Navigator : compound_string("Navigatr"); c_Navigator : compound_string("Navigatr");
! module xtt_xatt.uil ! module xtt_xatt.uil
...@@ -96,3 +98,49 @@ c_SearchPrevious : "S ...@@ -96,3 +98,49 @@ c_SearchPrevious : "S
! module xtt_hist.uil
histformtitle : "Historisk hndelselista: Skvillkor";
Search : "Sk";
Exit : "Avsluta";
starttime : "Start tid";
priority : "Prioritet";
stoptime : "Stopp tid";
eventtype : "Hndelsetyp";
eventtext : "Hndelsetext";
eventname : "Hndelsenamn";
a_alarm : "A-Larm";
b_alarm : "B-Larm";
c_alarm : "C-Larm";
d_alarm : "D-Larm";
message : "Meddel.";
active : "Aktiv";
acknowledge : "Kvittens";
return : "Retur";
nrOfEvents : "Antal hndelser:";
today : "Idag";
yesterday : "Igr";
thisweek : "Denna vecka";
lastweek : "Frra veckan";
thismonth : "Denna mnad";
lastmonth : "Frra mnaden";
all : "Allt";
time : "Tid";
searchcondition : "Skvillkor:";
mnemonic_FILE : 'A';
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment