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 "QFloatDialog.h"
24 #include "QGraphicsDialog.h"
25 #include "QIncludeDialog.h"
26 #include "QIndexDialog.h"
27 #include "QLogDialog.h"
28 #include "QMinipageDialog.h"
29 #include "QPreambleDialog.h"
30 #include "QPrintDialog.h"
31 #include "QRefDialog.h"
32 #include "QSearchDialog.h"
33 #include "QShowFileDialog.h"
34 #include "QSpellcheckerDialog.h"
35 #include "QTabularCreateDialog.h"
36 #include "QTexinfoDialog.h"
37 #include "QThesaurusDialog.h"
38 #include "QTocDialog.h"
39 #include "QURLDialog.h"
40 #include "QVCLogDialog.h"
45 #include "QCharacter.h"
46 #include "QCitation.h"
49 #include "QExternal.h"
51 #include "QGraphics.h"
55 #include "QMinipage.h"
56 #include "QPreamble.h"
60 #include "QShowFile.h"
61 #include "QSpellchecker.h"
62 #include "QTabularCreate.h"
65 #include "QThesaurus.h"
69 #include "QtLyXView.h"
71 #include "BufferView.h"
76 //#include "xforms/FormDocument.h"
77 #include "xforms/FormMathsPanel.h"
78 //#include "xforms/FormParagraph.h"
79 #include "xforms/FormPreferences.h"
80 #include "xforms/FormShowFile.h"
81 #include "xforms/FormTabular.h"
85 // this makes no real sense for Qt2
86 SigC::Signal0<void> Dialogs::redrawGUI;
89 Dialogs::Dialogs(LyXView * lv)
91 // dialogs that have been converted to new scheme
92 add(new GUICitation<QCitation, Qt2BC>(*lv, *this));
93 add(new GUIAboutlyx<QAbout, Qt2BC>(*lv, *this));
94 add(new GUIBibitem<QBibitem, Qt2BC>(*lv, *this));
95 add(new GUIBibtex<QBibtex, Qt2BC>(*lv, *this));
96 add(new GUICharacter<QCharacter, Qt2BC>(*lv, *this));
97 add(new GUIError<QError, Qt2BC>(*lv, *this));
98 add(new GUIERT<QERT, Qt2BC>(*lv, *this));
99 add(new GUIExternal<QExternal, Qt2BC>(*lv, *this));
100 add(new GUIFloat<QFloat, Qt2BC>(*lv, *this));
101 add(new GUIGraphics<QGraphics, Qt2BC>(*lv, *this));
102 add(new GUIInclude<QInclude, Qt2BC>(*lv, *this));
103 add(new GUIIndex<QIndex, Qt2BC>(*lv, *this));
104 add(new GUILog<QLog, Qt2BC>(*lv, *this));
105 add(new GUIMinipage<QMinipage, Qt2BC>(*lv, *this));
106 add(new GUIPreamble<QPreamble, Qt2BC>(*lv, *this));
107 add(new GUIPrint<QPrint, Qt2BC>(*lv, *this));
108 add(new GUIRef<QRef, Qt2BC>(*lv, *this));
109 add(new GUISearch<QSearch, Qt2BC>(*lv, *this));
110 add(new GUIShowFile<QShowFile, Qt2BC>(*lv, *this));
111 add(new GUISpellchecker<QSpellchecker, Qt2BC>(*lv, *this));
112 add(new GUITabularCreate<QTabularCreate, Qt2BC>(*lv, *this));
113 add(new GUITexinfo<QTexinfo, Qt2BC>(*lv, *this));
114 add(new GUIThesaurus<QThesaurus, Qt2BC>(*lv, *this));
115 add(new GUIToc<QToc, Qt2BC>(*lv, *this));
116 add(new GUIUrl<QURL, Qt2BC>(*lv, *this));
117 add(new GUIVCLog<QVCLog, Qt2BC>(*lv, *this));
119 // dialogs not yet MVCd
120 // add(new FormDocument(lv, this));
121 add(new FormMathsPanel(lv, this));
122 // add(new FormParagraph(lv, this));
123 add(new FormPreferences(lv, this));
124 add(new FormTabular(lv, this));
126 // reduce the number of connections needed in
127 // dialogs by a simple connection here.
128 hideAll.connect(hideBufferDependent.slot());