Andre Poenitz a écrit :
On Fri, Apr 07, 2006 at 05:26:58PM +0200, Abdelrazak Younes wrote:
Andre Poenitz a écrit :
On Thu, Apr 06, 2006 at 01:52:35PM +0200, Abdelrazak Younes wrote:
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.
BTW, I am not too happy that we use a 'Q' prefix for _our_ Qt stuff.
Feel free to change that. I agree with with you but I just followed the qt2 code here. Proposal welcome for QLAction, LAction?

My prefered naming would be 'lyx::Action', or, a bit less prefered
'lyx::frontend::Action'.

Let me explain what I have in mind:
My idea is that lyx::Action would be the action backend of LyX, that is, the unification of the toolbar and menubar backend. lyx::frontend::Action would be the frontend specialisation of this backend; in our case using QAction.

Abdel.

Reply via email to