21/04/2013 17:04, Hashini Senaratne:
Hello Scott,
I was trying to sliding too long Labels for the past few days. I was able to
learn many new things about painting methods and still interested to proceed
with this project. After figuring out how the partial slides of current tables
have been implemented (using the method void InsetTabular::resetPos(Cursor &
cur) const and also drawing methods of InsetTabular.cpp), I am trying to modify
methods in other needed files.
Hello Hashini,
What I would try personally is to look at TextMetrics::drawParagraph
(TextMetrics.cpp). There, you can test whether the cursor is in the row
one wants to paint, and whether its x_pos() is too large for the screen.
In this case you can, as a first experiment change the value of the x
parameter of the RowPainter constructor and see how well it works for
example for making large equations easy to edit. No UI at this point,
and no inset specific code.
But I still did not find a way to how to
activate an event that listen to mouse hovering. It seems like that LyX has
not still used such actions. I am pleased if you can guide me with your
experiences and knowledge.
It may be interesting to take a look at BufferView::updateHoveredInset()
(BufferView.cpp) where some similar stuff is done for hovering over
inset buttons.
I am asking about this from Jean too. I am not sure if he gets notifications
for the mails under this thread.
I do read all these mails, even if I do not seems very reactive at times.
Regards,
Jean-Marc
PS: of course, you should also read the threads started by other
students interested in this subject, since I may answer there to
questions that are of interest for you too.
Regards,
JMarc