X-Git-Url: https://git.lyx.org/gitweb/?a=blobdiff_plain;f=src%2Ffrontends%2Fxforms%2FDialogs.C;h=776df33c40d852b711c4a38bce145d3c2ba81f33;hb=9f29ab3aa5fb11baca9bc28dc3710076cb3a2645;hp=1a177293298b0dfdbaf0ac9fb01c5834bdc6af30;hpb=b66c83b542877ec814afffcb4c5585448a5d1b1b;p=lyx.git diff --git a/src/frontends/xforms/Dialogs.C b/src/frontends/xforms/Dialogs.C index 1a17729329..776df33c40 100644 --- a/src/frontends/xforms/Dialogs.C +++ b/src/frontends/xforms/Dialogs.C @@ -11,19 +11,40 @@ #include +#ifdef __GNUG__ +#pragma implementation +#endif + #include "Dialogs.h" + +#include "ControlBibitem.h" +#include "ControlBibtex.h" +#include "ControlCitation.h" +#include "ControlLog.h" +#include "ControlVCLog.h" +#include "xformsBC.h" + +#include "form_bibitem.h" // needed for clean destructtion of boost::scoped ptr +#include "form_bibtex.h" +#include "form_browser.h" +#include "form_citation.h" + #include "FormBibitem.h" #include "FormBibtex.h" #include "FormCitation.h" +#include "FormLog.h" +#include "FormVCLog.h" + #include "FormCharacter.h" #include "FormCopyright.h" #include "FormCredits.h" #include "FormDocument.h" #include "FormError.h" +#include "FormExternal.h" #include "FormGraphics.h" #include "FormInclude.h" #include "FormIndex.h" -#include "FormLog.h" +#include "FormMathsPanel.h" #include "FormParagraph.h" #include "FormPreamble.h" #include "FormPreferences.h" @@ -35,62 +56,50 @@ #include "FormTabularCreate.h" #include "FormToc.h" #include "FormUrl.h" -#include "FormVCLog.h" - -#ifdef __GNUG__ -#pragma implementation -#endif - -using std::endl; +#include "FormMinipage.h" // Signal enabling all visible popups to be redrawn if so desired. // E.g., when the GUI colours have been remapped. -Signal0 Dialogs::redrawGUI; - +SigC::Signal0 Dialogs::redrawGUI; Dialogs::Dialogs(LyXView * lv) { - dialogs_.push_back(new FormBibitem(lv, this)); - dialogs_.push_back(new FormBibtex(lv, this)); - dialogs_.push_back(new FormCharacter(lv, this)); - dialogs_.push_back(new FormCitation(lv, this)); - dialogs_.push_back(new FormCopyright(lv, this)); - dialogs_.push_back(new FormCredits(lv, this)); - dialogs_.push_back(new FormDocument(lv, this)); - dialogs_.push_back(new FormError(lv, this)); - dialogs_.push_back(new FormGraphics(lv, this)); - dialogs_.push_back(new FormInclude(lv, this)); - dialogs_.push_back(new FormIndex(lv, this)); - dialogs_.push_back(new FormLog(lv, this)); - dialogs_.push_back(new FormParagraph(lv, this)); - dialogs_.push_back(new FormPreamble(lv, this)); - dialogs_.push_back(new FormPreferences(lv, this)); - dialogs_.push_back(new FormPrint(lv, this)); - dialogs_.push_back(new FormRef(lv, this)); - dialogs_.push_back(new FormSearch(lv, this)); - dialogs_.push_back(new FormSplash(lv, this)); - dialogs_.push_back(new FormTabular(lv, this)); - dialogs_.push_back(new FormTabularCreate(lv, this)); - dialogs_.push_back(new FormToc(lv, this)); - dialogs_.push_back(new FormUrl(lv, this)); - dialogs_.push_back(new FormVCLog(lv, this)); - + splash_.reset(new FormSplash(lv, this)); + + add(new GUICitation(*lv, *this)); + add(new GUIBibitem(*lv, *this)); + add(new GUIBibtex(*lv, *this)); + add(new GUILog(*lv, *this)); + add(new GUIVCLog(*lv, *this)); + + add(new FormCharacter(lv, this)); + add(new FormCopyright(lv, this)); + add(new FormCredits(lv, this)); + add(new FormDocument(lv, this)); + add(new FormError(lv, this)); + add(new FormExternal(lv, this)); + add(new FormGraphics(lv, this)); + add(new FormInclude(lv, this)); + add(new FormIndex(lv, this)); + add(new FormMathsPanel(lv, this)); + add(new FormParagraph(lv, this)); + add(new FormPreamble(lv, this)); + add(new FormPreferences(lv, this)); + add(new FormPrint(lv, this)); + add(new FormRef(lv, this)); + add(new FormSearch(lv, this)); + add(new FormSplash(lv, this)); + add(new FormTabular(lv, this)); + add(new FormTabularCreate(lv, this)); + add(new FormToc(lv, this)); + add(new FormUrl(lv, this)); + add(new FormMinipage(lv, this)); + // reduce the number of connections needed in // dialogs by a simple connection here. hideAll.connect(hideBufferDependent.slot()); } - -Dialogs::~Dialogs() -{ - for (vector::iterator iter = dialogs_.begin(); - iter != dialogs_.end(); - ++iter) { - delete *iter; - } -} - - /***************************************************************************** Q. WHY does Dialogs::Dialogs pass `this' to dialog constructors?