From c2637a0da6d9a1c8626ca39f8451ab3b7cda487a Mon Sep 17 00:00:00 2001 From: Timothy Pearson Date: Thu, 15 Dec 2011 15:47:59 -0600 Subject: Rename a number of old tq methods that are no longer tq specific --- kviewshell/plugins/djvu/libdjvu/DjVuAnno.cpp | 64 ++++++++++++++-------------- 1 file changed, 32 insertions(+), 32 deletions(-) (limited to 'kviewshell/plugins/djvu/libdjvu/DjVuAnno.cpp') diff --git a/kviewshell/plugins/djvu/libdjvu/DjVuAnno.cpp b/kviewshell/plugins/djvu/libdjvu/DjVuAnno.cpp index f3a53bf7..7cece60b 100644 --- a/kviewshell/plugins/djvu/libdjvu/DjVuAnno.cpp +++ b/kviewshell/plugins/djvu/libdjvu/DjVuAnno.cpp @@ -978,16 +978,16 @@ DjVuANT::get_mode(GLParser & parser) return retval; } -static inline DjVuANT::tqalignment +static inline DjVuANT::alignment legal_halign(const int i) { - DjVuANT::tqalignment retval; - switch((DjVuANT::tqalignment)i) + DjVuANT::alignment retval; + switch((DjVuANT::alignment)i) { case DjVuANT::ALIGN_LEFT: case DjVuANT::ALIGN_CENTER: case DjVuANT::ALIGN_RIGHT: - retval=(DjVuANT::tqalignment)i; + retval=(DjVuANT::alignment)i; break; default: retval=DjVuANT::ALIGN_UNSPEC; @@ -996,16 +996,16 @@ legal_halign(const int i) return retval; } -static inline DjVuANT::tqalignment +static inline DjVuANT::alignment legal_valign(const int i) { - DjVuANT::tqalignment retval; - switch((DjVuANT::tqalignment)i) + DjVuANT::alignment retval; + switch((DjVuANT::alignment)i) { case DjVuANT::ALIGN_CENTER: case DjVuANT::ALIGN_TOP: case DjVuANT::ALIGN_BOTTOM: - retval=(DjVuANT::tqalignment)i; + retval=(DjVuANT::alignment)i; break; default: retval=DjVuANT::ALIGN_UNSPEC; @@ -1014,12 +1014,12 @@ legal_valign(const int i) return retval; } -DjVuANT::tqalignment +DjVuANT::alignment DjVuANT::get_hor_align(GLParser & parser) { DEBUG_MSG("DjVuAnt::get_hor_align(): getting hor page alignemnt ...\n"); DEBUG_MAKE_INDENT(3); - tqalignment retval=ALIGN_UNSPEC; + alignment retval=ALIGN_UNSPEC; G_TRY { GP obj=parser.get_object(ALIGN_TAG); @@ -1030,7 +1030,7 @@ DjVuANT::get_hor_align(GLParser & parser) for(int i=(int)ALIGN_UNSPEC;(i obj=parser.get_object(ALIGN_TAG); @@ -1069,7 +1069,7 @@ DjVuANT::get_ver_align(GLParser & parser) DEBUG_MSG("ver_align='" << align << "'\n"); for(int i=(int)ALIGN_UNSPEC;(i map_area; - if (tqshape->get_type()==GLObject::LIST) + if (shape->get_type()==GLObject::LIST) { - if (tqshape->get_name()==GMapArea::RECT_TAG) + if (shape->get_name()==GMapArea::RECT_TAG) { DEBUG_MSG("it's a rectangle.\n"); - GRect grect((*tqshape)[0]->get_number(), - (*tqshape)[1]->get_number(), - (*tqshape)[2]->get_number(), - (*tqshape)[3]->get_number()); + GRect grect((*shape)[0]->get_number(), + (*shape)[1]->get_number(), + (*shape)[2]->get_number(), + (*shape)[3]->get_number()); GP map_rect=GMapRect::create(grect); map_area=(GMapRect *)map_rect; - } else if (tqshape->get_name()==GMapArea::POLY_TAG) + } else if (shape->get_name()==GMapArea::POLY_TAG) { DEBUG_MSG("it's a polygon.\n"); - int points=tqshape->get_list().size()/2; + int points=shape->get_list().size()/2; GTArray xx(points-1), yy(points-1); for(int i=0;iget_number(); - yy[i]=(*tqshape)[2*i+1]->get_number(); + xx[i]=(*shape)[2*i]->get_number(); + yy[i]=(*shape)[2*i+1]->get_number(); } GP map_poly=GMapPoly::create(xx,yy,points); map_area=(GMapPoly *)map_poly; - } else if (tqshape->get_name()==GMapArea::OVAL_TAG) + } else if (shape->get_name()==GMapArea::OVAL_TAG) { DEBUG_MSG("it's an ellipse.\n"); - GRect grect((*tqshape)[0]->get_number(), - (*tqshape)[1]->get_number(), - (*tqshape)[2]->get_number(), - (*tqshape)[3]->get_number()); + GRect grect((*shape)[0]->get_number(), + (*shape)[1]->get_number(), + (*shape)[2]->get_number(), + (*shape)[3]->get_number()); GP map_oval=GMapOval::create(grect); map_area=(GMapOval *)map_oval; } -- cgit v1.2.1