Leuven, E. a écrit :
I think we can shortcut that by using QLAction and avoid the call to "form_->controller().dispatchInsert(str)".

do we have access to lyxview in qmathdialog so that we can pass it to qlaction?

Yes: Dialog::View::kernel()->lyxview()
So from QMathDialog that would be form_->controller()->kernel()->lyxview() but I would prefer to define all the QAction we need inside QMath. QMathDialog would then be free to use them or not.

At the end, I think this Math panel should disappear and everything should be available from the Math toolbar. Even better would be a dock widget that will show in real time the latex math (a la OpenOffice).

Abdel.


Reply via email to