Jean-Marc Lasgouttes wrote:
> Abdelrazak Younes <[email protected]> writes:
>> As far as dispatch is concerned, my goal was to make
>> GuiApp::dispatch() the first entry in the dispatch machinery instead
>> of LyXFunc::dispatch() which should basically disappear... At the end,
>> all the virtual interface in "src/frontend/" should disappear too.
> 
> I could not care less about where is the main entry point as long as
> there is a main entry point and everybody is not directly invoking
> individual dispatch function.
> 
> About putting it in GuiApp, why not, although most of the code there is
> non-gui code. What could/should probably move is the default: case of
> the big switch. 

Originally it was the Model-View-Controller pattern, so isn't a
controller the perfect candidate for the cental dispatcher?

> 
> Note that, with my latest changes, LyXFunc only has two member variables
> left (those for saving cursor x/y). I would propose to move these
> variables into Cursor (savedX, savedY). Would somebody object to that?
> 
> Then there would not be a LyXFunc object anymore, but functions (or
> static members).
> 
> JMarc
> 

Reply via email to