Commit e2e84fde authored by claes's avatar claes

Fileview added

parent e2cb7c0a
/*
* Proview $Id: xtt_xnav_gtk.cpp,v 1.4 2008-04-01 14:19:30 claes Exp $
* Proview $Id: xtt_xnav_gtk.cpp,v 1.5 2008-04-25 11:28:54 claes Exp $
* Copyright (C) 2005 SSAB Oxelsund AB.
*
* This program is free software; you can redistribute it and/or
......@@ -66,6 +66,7 @@ typedef void *Widget;
#include "xtt_op_gtk.h"
#include "xtt_hist_gtk.h"
#include "ge_curve_gtk.h"
#include "xtt_fileview_gtk.h"
#define max(Dragon,Eagle) ((Dragon) > (Eagle) ? (Dragon) : (Eagle))
#define min(Dragon,Eagle) ((Dragon) < (Eagle) ? (Dragon) : (Eagle))
......@@ -252,6 +253,13 @@ GeCurve *XNavGtk::gecurve_new( char *name, char *filename, GeCurveData *data,
return new GeCurveGtk( this, parent_wid, name, filename, data, pos_right);
}
XttFileview *XNavGtk::fileview_new( pwr_tOid oid, char *title, char *dir, char *pattern,
int type, char *target_attr, char *trigger_attr)
{
return new XttFileviewGtk( this, parent_wid, oid, title, dir, pattern, type, target_attr,
trigger_attr);
}
void XNavGtk::bell( int time)
{
gdk_display_beep( gtk_widget_get_display( brow_widget));
......
/*
* Proview $Id: xtt_xnav_gtk.h,v 1.2 2007-05-21 14:28:56 claes Exp $
* Proview $Id: xtt_xnav_gtk.h,v 1.3 2008-04-25 11:28:54 claes Exp $
* Copyright (C) 2005 SSAB Oxelsund AB.
*
* This program is free software; you can redistribute it and/or
......@@ -71,6 +71,8 @@ class XNavGtk : public XNav {
int (*xg_is_authorized_cb) (void *, unsigned int));
GeCurve *gecurve_new( char *name, char *filename, GeCurveData *data,
int pos_right);
XttFileview *fileview_new( pwr_tOid oid, char *title, char *dir, char *pattern,
int type, char *target_attr, char *trigger_attr);
void bell( int time);
void get_popup_menu( pwr_sAttrRef attrref,
xmenu_eItemType item_type,
......
/*
* Proview $Id: xtt_xnav.h,v 1.21 2007-05-21 14:28:32 claes Exp $
* Proview $Id: xtt_xnav.h,v 1.22 2008-04-25 11:28:54 claes Exp $
* Copyright (C) 2005 SSAB Oxelsund AB.
*
* This program is free software; you can redistribute it and/or
......@@ -96,6 +96,7 @@ class Hist;
class CLog;
class XttGe;
class RtTrace;
class XttFileview;
typedef enum {
xnav_mOpen_All = ~0,
......@@ -340,6 +341,8 @@ class XNav {
int (*xg_is_authorized_cb) (void *, unsigned int)) {return 0;}
virtual GeCurve *gecurve_new( char *name, char *filename, GeCurveData *data,
int pos_right) {return 0;}
virtual XttFileview *fileview_new( pwr_tOid oid, char *title, char *dir, char *pattern,
int type, char *target_attr, char *trigger_attr) {return 0;}
virtual void bell( int time) {}
void start_trace( pwr_tObjid Objid, char *object_str);
......
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