Andre Poenitz wrote:
I plan to 'manually expand' the current uses QController as in the
attached patch.

The result is not only shorter but also simpler. No need for a template
with a template argument (QController) anymore.

You don't even need the GuiView thing (the former QView). My solution was to get completely rid of it. See GuiViewSource for a simple example of it:

- GuiViewSource directly inherits ControlViewSource
- GuiViewSourceDialog only inherits *QWidget* and "uses" the GuiViewSource controller.

For some classes, you don't even need the first Controller inheritence, the dialog can use the controller in src/frontends/controllers/ directly.

This dialog is then encapsulated in a DockWidget by LyX (ses Dialogs.cpp and my helper class DockView).

By the way, we have a problem with your renaming: you renamed QView to GuiView but this name was already taken by the Qt4 specialisation of LyXView.


Maybe I'll arrive at a point where I understand the code at some time...

You don't even have to if you use my simple framework.

Abdel.

Reply via email to