]> git.lyx.org Git - lyx.git/blob - src/frontends/qt2/Dialogs.C
try this for distinguishing inner and outer tabs
[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 "FormCitation.h"
16 #include "FormCopyright.h"
17 #include "FormDocument.h"
18 #include "FormError.h"
19 #include "FormGraphics.h"
20 #include "FormIndex.h"
21 #include "FormParagraph.h"
22 #include "FormPreferences.h"
23 #include "FormPrint.h"
24 #include "FormRef.h"
25 #include "FormTabular.h"
26 #include "FormTabularCreate.h"
27 #include "FormToc.h"
28 #include "FormUrl.h"
29
30 #ifdef __GNUG__
31 #pragma implementation
32 #endif
33
34 using std::endl;
35
36 // temporary till ported
37 extern void ShowCredits();
38
39
40 // Signal enabling all visible popups to be redrawn if so desired.
41 // E.g., when the GUI colours have been remapped.
42 Signal0<void> Dialogs::redrawGUI;
43
44
45 Dialogs::Dialogs(LyXView * lv)
46 {
47         dialogs_.push_back(new FormCitation(lv, this));
48         dialogs_.push_back(new FormCopyright(lv, this));
49         dialogs_.push_back(new FormDocument(lv, this));
50         dialogs_.push_back(new FormError(lv, this));
51         dialogs_.push_back(new FormGraphics(lv, this));
52         dialogs_.push_back(new FormIndex(lv, this));
53         dialogs_.push_back(new FormParagraph(lv, this));
54         dialogs_.push_back(new FormPreferences(lv, this));
55         dialogs_.push_back(new FormPrint(lv, this));
56         dialogs_.push_back(new FormRef(lv, this));
57         dialogs_.push_back(new FormTabular(lv, this));
58         dialogs_.push_back(new FormTabularCreate(lv, this));
59         dialogs_.push_back(new FormToc(lv, this));
60         dialogs_.push_back(new FormUrl(lv, this));
61
62         showCredits.connect(slot(ShowCredits));
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 }