Commit 62fc2c31 authored by claes's avatar claes

Bold is set on subannot when changed in editor

parent 5f6db06a
/*
* Proview $Id: glow_growctx.cpp,v 1.22 2007-05-07 14:35:03 claes Exp $
* Proview $Id: glow_growctx.cpp,v 1.23 2007-06-15 11:34:43 claes Exp $
* Copyright (C) 2005 SSAB Oxelsund AB.
*
* This program is free software; you can redistribute it and/or
......@@ -2843,6 +2843,8 @@ void GrowCtx::set_select_textbold( int bold)
((GrowFolder *)a_sel[i])->set_textbold( bold);
else if ( a_sel[i]->type() == glow_eObjectType_GrowTable)
((GrowTable *)a_sel[i])->set_textbold( bold);
else if ( a_sel[i]->type() == glow_eObjectType_GrowSubAnnot)
((GrowSubAnnot *)a_sel[i])->set_textbold( bold);
}
}
......
/*
* Proview $Id: glow_growsubannot.cpp,v 1.6 2007-05-23 08:04:09 claes Exp $
* Proview $Id: glow_growsubannot.cpp,v 1.7 2007-06-15 11:34:43 claes Exp $
* Copyright (C) 2005 SSAB Oxelsund AB.
*
* This program is free software; you can redistribute it and/or
......@@ -568,3 +568,20 @@ void GrowSubAnnot::draw()
x_right * ctx->navw.zoom_factor_x - ctx->navw.offset_x + 1,
y_high * ctx->navw.zoom_factor_y - ctx->navw.offset_y + 1);
}
void GrowSubAnnot::set_textbold( int bold)
{
if ( ( bold && draw_type == glow_eDrawType_TextHelveticaBold) ||
( !bold && draw_type == glow_eDrawType_TextHelvetica))
return;
erase( &ctx->mw);
erase( &ctx->navw);
if ( bold)
draw_type = glow_eDrawType_TextHelveticaBold;
else
draw_type = glow_eDrawType_TextHelvetica;
get_node_borders();
draw();
}
/*
* Proview $Id: glow_growsubannot.h,v 1.5 2007-01-04 07:57:39 claes Exp $
* Proview $Id: glow_growsubannot.h,v 1.6 2007-06-15 11:34:43 claes Exp $
* Copyright (C) 2005 SSAB Oxelsund AB.
*
* This program is free software; you can redistribute it and/or
......@@ -97,6 +97,7 @@ class GrowSubAnnot : public GlowAnnot {
void set_original_text_color( glow_eDrawType drawtype)
{ color_drawtype = drawtype; text.color_drawtype = drawtype; draw();};
void draw();
void set_textbold( int bold);
};
#endif
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