3 * Copyright 2001 the LyX Team
4 * Read the file COPYING
11 #pragma implementation
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 "QThesaurusDialog.h"
35 #include "QURLDialog.h"
36 #include "QVCLogDialog.h"
41 #include "QCharacter.h"
42 #include "QCitation.h"
45 #include "QExternal.h"
46 #include "QGraphics.h"
50 #include "QMinipage.h"
51 #include "QParagraph.h"
52 #include "QPreamble.h"
56 #include "QSpellchecker.h"
57 #include "QTabularCreate.h"
58 #include "QThesaurus.h"
62 #include "QtLyXView.h"
64 #include "BufferView.h"
69 #include "controllers/ControlAboutlyx.h"
70 #include "controllers/ControlBibitem.h"
71 #include "controllers/ControlBibtex.h"
72 #include "controllers/ControlCharacter.h"
73 #include "controllers/ControlCitation.h"
74 #include "controllers/ControlError.h"
75 #include "controllers/ControlERT.h"
76 #include "controllers/ControlExternal.h"
77 #include "controllers/ControlGraphics.h"
78 #include "controllers/ControlInclude.h"
79 #include "controllers/ControlIndex.h"
80 #include "controllers/ControlLog.h"
81 #include "controllers/ControlMinipage.h"
82 #include "controllers/ControlPreamble.h"
83 #include "controllers/ControlPrint.h"
84 #include "controllers/ControlRef.h"
85 #include "controllers/ControlSearch.h"
86 #include "controllers/ControlSpellchecker.h"
87 #include "controllers/ControlTabularCreate.h"
88 #include "controllers/ControlThesaurus.h"
89 #include "controllers/ControlUrl.h"
90 #include "controllers/ControlVCLog.h"
92 #include "controllers/ControlToc.h"
96 #include "controllers/ControlERT.h"
97 #include "controllers/ControlFloat.h"
98 #include "controllers/ControlShowFile.h"
99 #include "controllers/ControlToc.h"
100 #include "xforms/FormBrowser.h"
101 #include "xforms/form_browser.h"
102 #include "xforms/FormDocument.h"
103 #include "xforms/FormERT.h"
104 #include "xforms/form_ert.h"
105 #include "xforms/FormFloat.h"
106 #include "xforms/form_float.h"
107 #include "xforms/FormMathsPanel.h"
108 #include "xforms/FormParagraph.h"
109 #include "xforms/FormPreferences.h"
110 #include "xforms/FormShowFile.h"
111 #include "xforms/FormTabular.h"
112 #include "xforms/FormToc.h"
113 #include "xforms/form_toc.h"
117 // this makes no real sense for Qt2
118 SigC::Signal0<void> Dialogs::redrawGUI;
121 Dialogs::Dialogs(LyXView * lv)
123 // dialogs that have been converted to new scheme
124 add(new GUICitation<QCitation, Qt2BC>(*lv, *this));
125 add(new GUIAboutlyx<QAbout, Qt2BC>(*lv, *this));
126 add(new GUIBibitem<QBibitem, Qt2BC>(*lv, *this));
127 add(new GUIBibtex<QBibtex, Qt2BC>(*lv, *this));
128 add(new GUICharacter<QCharacter, Qt2BC>(*lv, *this));
129 add(new GUIError<QError, Qt2BC>(*lv, *this));
130 add(new GUIERT<QERT, Qt2BC>(*lv, *this));
131 add(new GUIExternal<QExternal, Qt2BC>(*lv, *this));
132 add(new GUIGraphics<QGraphics, Qt2BC>(*lv, *this));
133 add(new GUIInclude<QInclude, Qt2BC>(*lv, *this));
134 add(new GUIIndex<QIndex, Qt2BC>(*lv, *this));
135 add(new GUILog<QLog, Qt2BC>(*lv, *this));
136 add(new GUIMinipage<QMinipage, Qt2BC>(*lv, *this));
137 add(new GUIPreamble<QPreamble, Qt2BC>(*lv, *this));
138 add(new GUIPrint<QPrint, Qt2BC>(*lv, *this));
139 add(new GUIRef<QRef, Qt2BC>(*lv, *this));
140 add(new GUISearch<QSearch, Qt2BC>(*lv, *this));
141 add(new GUISpellchecker<QSpellchecker, Qt2BC>(*lv, *this));
142 add(new GUITabularCreate<QTabularCreate, Qt2BC>(*lv, *this));
143 add(new GUIThesaurus<QThesaurus, Qt2BC>(*lv, *this));
144 add(new GUIUrl<QURL, Qt2BC>(*lv, *this));
145 add(new GUIVCLog<QVCLog, Qt2BC>(*lv, *this));
147 // dialogs not yet converted
148 add(new GUIERT<FormERT, xformsBC>(*lv, *this));
149 add(new GUIFloat<FormFloat, xformsBC>(*lv, *this));
150 add(new GUIShowFile<FormShowFile, xformsBC>(*lv, *this));
151 add(new GUIToc<FormToc, xformsBC>(*lv, *this));
153 // dialogs not yet MVCd
154 add(new FormDocument(lv, this));
155 add(new FormMathsPanel(lv, this));
156 add(new FormParagraph(lv, this));
157 add(new FormPreferences(lv, this));
158 add(new FormTabular(lv, this));
160 // reduce the number of connections needed in
161 // dialogs by a simple connection here.
162 hideAll.connect(hideBufferDependent.slot());