On Thursday 12 September 2002 1:04 pm, Edwin Leuven wrote: > I've added the preamble to the document dialog which made me > wonder about how to implement the controller
Oh you little beauty! > we're putting qwidgets in a stackwidget > > should we have a controller for each of these stacked widgets > and then a controller for the document dialog > > or > > should we let ControlDocument hold pointers like > > private: > ControlPreamble * preamble_ > ControlMargins * margins_ > > etc. > > and interface in some way with these > > or > > one big document controller? I think that the controller should know as little as possible about how you implement the view. It should store a bufferparams instance so that the view can access this data and that's about it. If you want ControlDocument to manage several different dialogs, then do it � la Maths Panel and have a virtual view that contains several dialogs. Angus > ps. I also want to add the biblio stuff to the document dialog > (what is now QBibtexDialog) people agree? We had a discussion about this a long, long time ago. the concensus was that LaTeX supports multiple reference lists (ok, we don't support the LaTeX that does that very well) so we need the inset. Also allows the user to position the references within the document. Maybe some of the stuff entered in the dialog could go in a document-wide setting, but note that LaTeX allows different styles per \bibliography. Etc, etc, etc. A
