]> git.lyx.org Git - lyx.git/blob - src/frontends/qt2/Dialogs.C
50baf9a9184419ee22e1302924b67903ecfa0d27
[lyx.git] / src / frontends / qt2 / Dialogs.C
1 /**
2  * \file Dialogs.C
3  * Copyright 2001 the LyX Team
4  * Read the file COPYING
5  *
6  */
7
8 #include <config.h>
9
10 #ifdef __GNUG__
11 #pragma implementation
12 #endif
13
14 // the dialog definitions
15 #include "QAboutDialog.h"
16 #include "QBibitemDialog.h"
17 #include "QBibtexDialog.h"
18 #include "QCharacterDialog.h"
19 #include "QCitationDialog.h"
20 #include "QErrorDialog.h"
21 #include "QERTDialog.h"
22 #include "QExternalDialog.h"
23 #include "QGraphicsDialog.h"
24 #include "QIncludeDialog.h"
25 #include "QIndexDialog.h"
26 #include "QLogDialog.h"
27 #include "QMinipageDialog.h"
28 #include "QPreambleDialog.h"
29 #include "QPrintDialog.h"
30 #include "QRefDialog.h"
31 #include "QSearchDialog.h"
32 #include "QSpellcheckerDialog.h"
33 #include "QTabularCreateDialog.h"
34 #include "QTexinfoDialog.h"
35 #include "QThesaurusDialog.h"
36 #include "QURLDialog.h"
37 #include "QVCLogDialog.h"
38
39 #include "QAbout.h"
40 #include "QBibitem.h"
41 #include "QBibtex.h"
42 #include "QCharacter.h"
43 #include "QCitation.h"
44 #include "QError.h"
45 #include "QERT.h"
46 #include "QExternal.h"
47 #include "QGraphics.h"
48 #include "QInclude.h"
49 #include "QIndex.h"
50 #include "QLog.h"
51 #include "QMinipage.h"
52 #include "QParagraph.h"
53 #include "QPreamble.h"
54 #include "QPrint.h"
55 #include "QRef.h"
56 #include "QSearch.h"
57 #include "QSpellchecker.h"
58 #include "QTabularCreate.h"
59 #include "QTexinfo.h"
60 #include "QThesaurus.h"
61 #include "QURL.h"
62 #include "QVCLog.h"
63
64 #include "QtLyXView.h"
65 #include "Dialogs.h"
66 #include "BufferView.h"
67 #include "buffer.h"
68 #include "Qt2BC.h"
69
70 // xforms stuff
71 #include "xforms/FormBrowser.h"
72 #include "xforms/form_browser.h"
73 #include "xforms/FormDocument.h"
74 #include "xforms/FormERT.h"
75 #include "xforms/form_ert.h"
76 #include "xforms/FormFloat.h"
77 #include "xforms/form_float.h"
78 #include "xforms/FormMathsPanel.h"
79 #include "xforms/FormParagraph.h"
80 #include "xforms/FormPreferences.h"
81 #include "xforms/FormShowFile.h"
82 #include "xforms/FormTabular.h"
83 #include "xforms/FormToc.h"
84 #include "xforms/form_toc.h"
85  
86 #include "GUI.h"
87
88 // this makes no real sense for Qt2
89 SigC::Signal0<void> Dialogs::redrawGUI;
90
91
92 Dialogs::Dialogs(LyXView * lv)
93 {
94         // dialogs that have been converted to new scheme
95         add(new GUICitation<QCitation, Qt2BC>(*lv, *this));
96         add(new GUIAboutlyx<QAbout, Qt2BC>(*lv, *this));
97         add(new GUIBibitem<QBibitem, Qt2BC>(*lv, *this));
98         add(new GUIBibtex<QBibtex, Qt2BC>(*lv, *this));
99         add(new GUICharacter<QCharacter, Qt2BC>(*lv, *this));
100         add(new GUIError<QError, Qt2BC>(*lv, *this));
101         add(new GUIERT<QERT, Qt2BC>(*lv, *this));
102         add(new GUIExternal<QExternal, Qt2BC>(*lv, *this));
103         add(new GUIGraphics<QGraphics, Qt2BC>(*lv, *this));
104         add(new GUIInclude<QInclude, Qt2BC>(*lv, *this));
105         add(new GUIIndex<QIndex, Qt2BC>(*lv, *this));
106         add(new GUILog<QLog, Qt2BC>(*lv, *this));
107         add(new GUIMinipage<QMinipage, Qt2BC>(*lv, *this));
108         add(new GUIPreamble<QPreamble, Qt2BC>(*lv, *this)); 
109         add(new GUIPrint<QPrint, Qt2BC>(*lv, *this));
110         add(new GUIRef<QRef, Qt2BC>(*lv, *this));
111         add(new GUISearch<QSearch, Qt2BC>(*lv, *this)); 
112         add(new GUISpellchecker<QSpellchecker, Qt2BC>(*lv, *this));
113         add(new GUITabularCreate<QTabularCreate, Qt2BC>(*lv, *this));
114         add(new GUITexinfo<QTexinfo, Qt2BC>(*lv, *this));
115         add(new GUIThesaurus<QThesaurus, Qt2BC>(*lv, *this));
116         add(new GUIUrl<QURL, Qt2BC>(*lv, *this));
117         add(new GUIVCLog<QVCLog, Qt2BC>(*lv, *this));
118
119         // dialogs not yet converted
120         add(new GUIERT<FormERT, xformsBC>(*lv, *this));
121         add(new GUIFloat<FormFloat, xformsBC>(*lv, *this));
122         add(new GUIShowFile<FormShowFile, xformsBC>(*lv, *this));
123         add(new GUIToc<FormToc, xformsBC>(*lv, *this));
124
125         // dialogs not yet MVCd
126         add(new FormDocument(lv, this));
127         add(new FormMathsPanel(lv, this));
128         add(new FormParagraph(lv, this));
129         add(new FormPreferences(lv, this));
130         add(new FormTabular(lv, this));
131  
132         // reduce the number of connections needed in
133         // dialogs by a simple connection here.
134         hideAll.connect(hideBufferDependent.slot());
135 }