]> git.lyx.org Git - lyx.git/blob - src/frontends/qt2/Dialogs.C
562bb2f3d463601abc928d7e6a044dcb3d627337
[lyx.git] / src / frontends / qt2 / Dialogs.C
1 /* This file is part of
2  * ======================================================
3  *
4  *           LyX, The Document Processor
5  *
6  *           Copyright 1995 Matthias Ettrich
7  *           Copyright 1995-2000 The LyX Team.
8  *
9  * ======================================================
10  */
11
12 #include <config.h>
13
14 #include "Dialogs.h"
15 #include "FormCharacter.h"
16 #include "FormCitation.h"
17 #include "FormCredits.h"
18 #include "FormCopyright.h"
19 #include "FormDocument.h"
20 #include "FormError.h"
21 #include "FormGraphics.h"
22 #include "FormIndex.h"
23 #include "FormParagraph.h"
24 #include "FormPreferences.h"
25 #include "FormPrint.h"
26 #include "FormRef.h"
27 #include "FormSearch.h"
28 #include "FormTabular.h"
29 #include "FormTabularCreate.h"
30 #include "FormToc.h"
31 #include "FormUrl.h"
32
33 #ifdef __GNUG__
34 #pragma implementation
35 #endif
36
37 using std::endl;
38
39 // Signal enabling all visible popups to be redrawn if so desired.
40 // E.g., when the GUI colours have been remapped.
41 Signal0<void> Dialogs::redrawGUI;
42
43
44 Dialogs::Dialogs(LyXView * lv)
45 {
46         dialogs_.push_back(new FormCharacter(lv, this));
47         dialogs_.push_back(new FormCitation(lv, this));
48         dialogs_.push_back(new FormCopyright(lv, this));
49         dialogs_.push_back(new FormCredits(lv, this));
50         dialogs_.push_back(new FormDocument(lv, this));
51         dialogs_.push_back(new FormError(lv, this));
52         dialogs_.push_back(new FormGraphics(lv, this));
53         dialogs_.push_back(new FormIndex(lv, this));
54         dialogs_.push_back(new FormParagraph(lv, this));
55         dialogs_.push_back(new FormPreferences(lv, this));
56         dialogs_.push_back(new FormPrint(lv, this));
57         dialogs_.push_back(new FormRef(lv, this));
58         dialogs_.push_back(new FormSearch(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));
63
64         // reduce the number of connections needed in
65         // dialogs by a simple connection here.
66         hideAll.connect(hideBufferDependent.slot());
67 }
68
69
70 Dialogs::~Dialogs()
71 {
72         for (vector<DialogBase *>::iterator iter = dialogs_.begin();
73              iter != dialogs_.end();
74              ++iter) {
75                 delete *iter;
76         }
77 }