Commit b02d2385 authored by saeed's avatar saeed

info a bit cleaning

parent 744b8cf1
......@@ -420,51 +420,51 @@ static void odbinfo_onotherwindow(struct Vis *vis, struct odbinfo *odbinfo){
int nb = 1;
int indent = 20;
char *info = "filename:";
char *info = "filename: ";
txw = XTextWidth(vis->fontinfo,info,lenstring(info));
XDrawString(vis->dsp, pixmap, vis->gc,indent,heightpos(vis->h,spacing,nb) ,info,lenstring(info));
XDrawString(vis->dsp, pixmap, vis->gc,indent + txw,heightpos(vis->h,spacing,nb) ,odbinfo->filename,lenstring(odbinfo->filename));
nb++;
info = "report type:";
info = "report type: ";
txw = XTextWidth(vis->fontinfo,info,lenstring(info));
XDrawString(vis->dsp, pixmap, vis->gc,indent,heightpos(vis->h,spacing,nb),info,lenstring(info));
XDrawString(vis->dsp, pixmap, vis->gc,indent+txw,heightpos(vis->h,spacing,nb),odbinfo->reportype,lenstring(odbinfo->reportype));
nb++;
info = "description:";
info = "description: ";
txw = XTextWidth(vis->fontinfo,info,lenstring(info));
XDrawString(vis->dsp, pixmap, vis->gc,indent,heightpos(vis->h,spacing,nb),info,lenstring(info));
if (odbinfo->desc)XDrawString(vis->dsp, pixmap, vis->gc,indent+txw,heightpos(vis->h,spacing,nb),odbinfo->desc,lenstring(odbinfo->desc));
nb++;
info = "group:";
info = "group: ";
txw = XTextWidth(vis->fontinfo,info,lenstring(info));
XDrawString(vis->dsp, pixmap, vis->gc,indent,heightpos(vis->h,spacing,nb),info,lenstring(info));
if (odbinfo->group)XDrawString(vis->dsp, pixmap, vis->gc,indent+txw,heightpos(vis->h,spacing,nb),odbinfo->group,lenstring(odbinfo->group));
nb++;
info = "number of observation:";
info = "number of observation: ";
txw = XTextWidth(vis->fontinfo,info,lenstring(info));
XDrawString(vis->dsp, pixmap, vis->gc,indent,heightpos(vis->h,spacing,nb),info,lenstring(info));
XDrawString(vis->dsp, pixmap, vis->gc,indent+txw,heightpos(vis->h,spacing,nb),odbinfo->ntotal,lenstring(odbinfo->ntotal));
nb++;
info = "cycle:";
info = "cycle: ";
txw = XTextWidth(vis->fontinfo,info,lenstring(info));
XDrawString(vis->dsp, pixmap, vis->gc,indent,heightpos(vis->h,spacing,nb),info,lenstring(info));
XDrawString(vis->dsp, pixmap, vis->gc,indent+txw,heightpos(vis->h,spacing,nb),odbinfo->cycle,lenstring(odbinfo->cycle));
nb++;
info = "start_date:";
info = "start_date: ";
txw = XTextWidth(vis->fontinfo,info,lenstring(info));
XDrawString(vis->dsp, pixmap, vis->gc,indent,heightpos(vis->h,spacing,nb),info,lenstring(info));
XDrawString(vis->dsp, pixmap, vis->gc,indent+txw,heightpos(vis->h,spacing,nb),odbinfo->start_date,lenstring(odbinfo->start_date));
nb++;
info = "end_date:";
info = "end_date: ";
txw = XTextWidth(vis->fontinfo,info,lenstring(info));
XDrawString(vis->dsp, pixmap, vis->gc,indent,heightpos(vis->h,spacing,nb),info,lenstring(info));
XDrawString(vis->dsp, pixmap, vis->gc,indent+txw,heightpos(vis->h,spacing,nb),odbinfo->end_date,lenstring(odbinfo->end_date));
......
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