X-Git-Url: https://git.lyx.org/gitweb/?a=blobdiff_plain;f=src%2Ffrontends%2Fxforms%2FDialogs.C;h=aa300df61d7dc60758ef741e349c80b9c74d7f77;hb=eba67bc3120dc301bf193c3f3b570f51f00a4654;hp=1d8891dad70d87032515878d1a2a3377b37ededb;hpb=bfabea1a25e85e13a470994f1ad7004c8561937e;p=lyx.git diff --git a/src/frontends/xforms/Dialogs.C b/src/frontends/xforms/Dialogs.C index 1d8891dad7..aa300df61d 100644 --- a/src/frontends/xforms/Dialogs.C +++ b/src/frontends/xforms/Dialogs.C @@ -1,46 +1,79 @@ +/* This file is part of + * ====================================================== + * + * LyX, The Document Processor + * + * Copyright 1995 Matthias Ettrich + * Copyright 1995-2000 The LyX Team. + * + * ====================================================== + */ + #include -#include FORMS_H_LOCATION #include "Dialogs.h" #include "FormCitation.h" #include "FormCopyright.h" +#include "FormDocument.h" +#include "FormError.h" #include "FormGraphics.h" #include "FormIndex.h" +#include "FormParagraph.h" #include "FormPreferences.h" #include "FormPrint.h" #include "FormRef.h" #include "FormTabular.h" +#include "FormTabularCreate.h" #include "FormToc.h" #include "FormUrl.h" +//#include "debug.h" #ifdef __GNUG__ #pragma implementation #endif +using std::endl; + +// temporary till ported +extern void ShowCredits(); + + +// Signal enabling all visible popups to be redrawn if so desired. +// E.g., when the GUI colours have been remapped. +Signal0 Dialogs::redrawGUI; + Dialogs::Dialogs(LyXView * lv) { dialogs_.push_back(new FormCitation(lv, this)); dialogs_.push_back(new FormCopyright(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 FormIndex(lv, this)); + dialogs_.push_back(new FormParagraph(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 FormTabular(lv, this)); + dialogs_.push_back(new FormTabularCreate(lv, this)); dialogs_.push_back(new FormToc(lv, this)); dialogs_.push_back(new FormUrl(lv, this)); + showCredits.connect(slot(ShowCredits)); + // 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) { + //lyxerr << "delete *iter" << endl; delete *iter; } }