]> git.lyx.org Git - lyx.git/blob - src/frontends/kde/Dialogs.C
Removed an incorrect assert in GraphicsCache.
[lyx.git] / src / frontends / kde / Dialogs.C
1 /**
2  * \file Dialogs.C
3  * Copyright 2001 the LyX Team
4  * Read the file COPYING
5  *
6  * \author Jürgen Vigna
7  * \author John Levon
8  */
9
10 #include <config.h>
11 #include FORMS_H_LOCATION
12
13 #include "Dialogs.h"
14 #include "FormBibitem.h"
15 #include "FormBibtex.h"
16 #include "FormCitation.h"
17 #include "FormCopyright.h"
18 #include "FormDocument.h"
19 #include "FormError.h"
20 #include "FormGraphics.h"
21 #include "FormInclude.h"
22 #include "FormIndex.h"
23 #include "FormLog.h"
24 #include "FormParagraph.h"
25 #include "FormPreferences.h"
26 #include "FormPrint.h"
27 #include "FormRef.h"
28 #include "FormSplash.h"
29 #include "FormTabular.h"
30 #include "FormTabularCreate.h"
31 #include "FormToc.h"
32 #include "FormUrl.h"
33 #include "FormVCLog.h"
34
35 #ifdef __GNUG__
36 #pragma implementation
37 #endif
38
39 // temporary till ported
40 extern void ShowCredits();
41
42 /* We don't implement this, but it's needed whilst we
43  * still rely on xforms
44  */
45 Signal0<void> Dialogs::redrawGUI;
46
47 Dialogs::Dialogs(LyXView * lv)
48 {
49         dialogs_.push_back(new FormBibitem(lv, this));
50         dialogs_.push_back(new FormBibtex(lv, this));
51         dialogs_.push_back(new FormCitation(lv, this));
52         dialogs_.push_back(new FormCopyright(lv, this));
53         dialogs_.push_back(new FormDocument(lv, this));
54         dialogs_.push_back(new FormError(lv, this));
55         dialogs_.push_back(new FormGraphics(lv, this));
56         dialogs_.push_back(new FormInclude(lv, this));
57         dialogs_.push_back(new FormIndex(lv, this));
58         dialogs_.push_back(new FormLog(lv, this));
59         dialogs_.push_back(new FormParagraph(lv, this));
60         dialogs_.push_back(new FormPreferences(lv, this));
61         dialogs_.push_back(new FormPrint(lv, this));
62         dialogs_.push_back(new FormRef(lv, this));
63         dialogs_.push_back(new FormSplash(lv, this));
64         dialogs_.push_back(new FormTabular(lv, this));
65         dialogs_.push_back(new FormTabularCreate(lv, this));
66         dialogs_.push_back(new FormToc(lv, this));
67         dialogs_.push_back(new FormUrl(lv, this));
68         dialogs_.push_back(new FormVCLog(lv, this));
69
70         showCredits.connect(slot(ShowCredits));
71
72         // reduce the number of connections needed in
73         // dialogs by a simple connection here.
74         hideAll.connect(hideBufferDependent.slot());
75 }
76
77
78 Dialogs::~Dialogs()
79 {
80         for (vector<DialogBase *>::iterator iter = dialogs_.begin();
81              iter != dialogs_.end();
82              ++iter) {
83                 delete *iter;
84         }
85 }