1 /* This file is part of
2 * ======================================================
4 * LyX, The Document Processor
6 * Copyright 1995 Matthias Ettrich
7 * Copyright 1995-2000 The LyX Team.
9 * ======================================================
15 #include "FormCharacter.h"
16 #include "FormCitation.h"
17 #include "FormCopyright.h"
18 #include "FormDocument.h"
19 #include "FormError.h"
20 #include "FormGraphics.h"
21 #include "FormIndex.h"
22 #include "FormParagraph.h"
23 #include "FormPreferences.h"
24 #include "FormPrint.h"
26 #include "FormTabular.h"
27 #include "FormTabularCreate.h"
32 #pragma implementation
37 // temporary till ported
38 extern void ShowCredits();
41 // Signal enabling all visible popups to be redrawn if so desired.
42 // E.g., when the GUI colours have been remapped.
43 Signal0<void> Dialogs::redrawGUI;
46 Dialogs::Dialogs(LyXView * lv)
48 dialogs_.push_back(new FormCharacter(lv, this));
49 dialogs_.push_back(new FormCitation(lv, this));
50 dialogs_.push_back(new FormCopyright(lv, this));
51 dialogs_.push_back(new FormDocument(lv, this));
52 dialogs_.push_back(new FormError(lv, this));
53 dialogs_.push_back(new FormGraphics(lv, this));
54 dialogs_.push_back(new FormIndex(lv, this));
55 dialogs_.push_back(new FormParagraph(lv, this));
56 dialogs_.push_back(new FormPreferences(lv, this));
57 dialogs_.push_back(new FormPrint(lv, this));
58 dialogs_.push_back(new FormRef(lv, this));
59 dialogs_.push_back(new FormTabular(lv, this));
60 dialogs_.push_back(new FormTabularCreate(lv, this));
61 dialogs_.push_back(new FormToc(lv, this));
62 dialogs_.push_back(new FormUrl(lv, this));
64 showCredits.connect(slot(ShowCredits));
66 // reduce the number of connections needed in
67 // dialogs by a simple connection here.
68 hideAll.connect(hideBufferDependent.slot());
74 for (vector<DialogBase *>::iterator iter = dialogs_.begin();
75 iter != dialogs_.end();