+2005-04-05 Martin Vermeer <martin.vermeer@hut.fi>
+
+ * math_amsarrayinset.C:
+ * math__arrayinset.C:
+ * math_decorationinset.C:
+ * math_deliminset.C:
+ * math_nestinset.C:
+ * math_tabularinset.C: Final touch on various corner marker
+ positions and inset clickability in math
+
2005-04-04 Martin Vermeer <martin.vermeer@hut.fi>
* math_splitinset.[Ch]: add draw method calling setPosCache,
if (m.base.style == LM_ST_DISPLAY)
m.base.style = LM_ST_TEXT;
MathGridInset::metrics(m, dim);
- dim.wid += 12;
+ dim.wid += 14;
dim_ = dim;
}
void MathAMSArrayInset::draw(PainterInfo & pi, int x, int y) const
{
- MathGridInset::drawWithMargin(pi, x, y, 6, 6);
+ MathGridInset::drawWithMargin(pi, x, y, 6, 8);
int const yy = y - dim_.ascent();
mathed_draw_deco(pi, x + 1, yy, 5, dim_.height(), name_left());
- mathed_draw_deco(pi, x + dim_.width() - 6, yy, 5, dim_.height(), name_right());
+ mathed_draw_deco(pi, x + dim_.width() - 8, yy, 5, dim_.height(), name_right());
setPosCache(pi, x, y);
}
{
ArrayChanger dummy(mi.base);
MathGridInset::metrics(mi, dim);
+ dim.wid += 6;
+ dim_ = dim;
}
{
setPosCache(pi, x, y);
ArrayChanger dummy(pi.base);
- MathGridInset::draw(pi, x + 1, y);
+ MathGridInset::drawWithMargin(pi, x, y, 4, 2);
}
mathed_draw_deco(pi, x + 1 + (cell(0).width() - dw_) / 2,
y + dy_, dw_, dh_, key_->name);
drawMarkers(pi, x, y);
+ setPosCache(pi, x, y);
}
mathed_draw_deco(pi, x + 4, b, dw_, dim_.height(), left_);
mathed_draw_deco(pi, x + dim_.width() - dw_ - 4,
b, dw_, dim_.height(), right_);
+ setPosCache(pi, x, y);
}
x += 2;
}
+
void MathNestInset::metrics(MetricsInfo const & mi) const
{
MetricsInfo m = mi;
}
-void MathTabularInset::metrics(MetricsInfo & mi, Dimension & /*dim*/) const
+void MathTabularInset::metrics(MetricsInfo & mi, Dimension & dim) const
{
FontSetChanger dummy(mi.base, "textnormal");
- return MathGridInset::metrics(mi);
+ MathGridInset::metrics(mi, dim);
+ dim.wid += 6;
+ dim_ = dim;
}
void MathTabularInset::draw(PainterInfo & pi, int x, int y) const
{
FontSetChanger dummy(pi.base, "textnormal");
- MathGridInset::draw(pi, x, y);
+ MathGridInset::drawWithMargin(pi, x, y, 4, 2);
}