Commit bb7ed310 authored by claes's avatar claes

Update function, i.e. reread the current files, implemented

parent 3e9b6578
......@@ -41,6 +41,7 @@ static void clog_activate_exit( Widget w, CLog *clog, XmAnyCallbackStruct *data)
static void clog_activate_select_file( Widget w, CLog *clog, XmAnyCallbackStruct *data);
static void clog_activate_next_file( Widget w, CLog *clog, XmAnyCallbackStruct *data);
static void clog_activate_prev_file( Widget w, CLog *clog, XmAnyCallbackStruct *data);
static void clog_activate_update( Widget w, CLog *clog, XmAnyCallbackStruct *data);
static void clog_activate_zoom_in( Widget w, CLog *clog, XmAnyCallbackStruct *data);
static void clog_activate_zoom_out( Widget w, CLog *clog, XmAnyCallbackStruct *data);
static void clog_activate_zoom_reset( Widget w, CLog *clog, XmAnyCallbackStruct *data);
......@@ -86,6 +87,7 @@ CLog::CLog(
{"clog_activate_select_file",(caddr_t)clog_activate_select_file },
{"clog_activate_next_file",(caddr_t)clog_activate_next_file },
{"clog_activate_prev_file",(caddr_t)clog_activate_prev_file },
{"clog_activate_update",(caddr_t)clog_activate_update },
{"clog_activate_zoom_in",(caddr_t)clog_activate_zoom_in },
{"clog_activate_zoom_out",(caddr_t)clog_activate_zoom_out },
{"clog_activate_zoom_reset",(caddr_t)clog_activate_zoom_reset },
......@@ -296,6 +298,13 @@ static void clog_activate_prev_file( Widget w, CLog *clog, XmAnyCallbackStruct *
clog->reset_cursor();
}
static void clog_activate_update( Widget w, CLog *clog, XmAnyCallbackStruct *data)
{
clog->set_clock_cursor();
clog->clognav->update();
clog->reset_cursor();
}
static void clog_activate_help( Widget w, CLog *clog, XmAnyCallbackStruct *data)
{
if ( clog->help_cb)
......
......@@ -399,6 +399,13 @@ void CLogNav::get_files()
}
int CLogNav::update()
{
int pos[2] = {current_pos_low, current_pos_high};
read( pos, 2);
return 1;
}
int CLogNav::next_file()
{
if ( current_pos_low <= 1)
......
......@@ -157,6 +157,7 @@ class CLogNav {
void get_files();
int next_file();
int prev_file();
int update();
};
class ItemMsgBase {
......
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