]> git.lyx.org Git - features.git/blob - src/frontends/qt2/Dialogs.C
78b10a82989f923674025fbb1bb7971ae25b98df
[features.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 "QThesaurusDialog.h"
35 #include "QURLDialog.h"
36 #include "QVCLogDialog.h"
37
38 #include "QAbout.h"
39 #include "QBibitem.h"
40 #include "QBibtex.h"
41 #include "QCharacter.h"
42 #include "QCitation.h"
43 #include "QError.h"
44 #include "QERT.h"
45 #include "QExternal.h"
46 #include "QGraphics.h"
47 #include "QInclude.h"
48 #include "QIndex.h"
49 #include "QLog.h"
50 #include "QMinipage.h"
51 #include "QParagraph.h"
52 #include "QPreamble.h"
53 #include "QPrint.h"
54 #include "QRef.h"
55 #include "QSearch.h"
56 #include "QSpellchecker.h"
57 #include "QTabularCreate.h"
58 #include "QThesaurus.h"
59 #include "QURL.h"
60 #include "QVCLog.h"
61
62 #include "QtLyXView.h"
63 #include "Dialogs.h"
64 #include "BufferView.h"
65 #include "buffer.h"
66 #include "Qt2BC.h"
67
68 // the controllers
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"
91 #if 0
92 #include "controllers/ControlCitation.h"
93 #include "controllers/ControlFloat.h"
94 #include "controllers/ControlRef.h"
95 #include "controllers/ControlToc.h"
96 #endif
97
98 #include "GUI.h"
99
100 // this makes no real sense for Qt2
101 SigC::Signal0<void> Dialogs::redrawGUI;
102
103
104 Dialogs::Dialogs(LyXView * lv)
105 {
106         // dialogs that have been converted to new scheme
107         add(new GUICitation<QCitation, Qt2BC>(*lv, *this));
108         add(new GUIAboutlyx<QAbout, Qt2BC>(*lv, *this));
109         add(new GUIBibitem<QBibitem, Qt2BC>(*lv, *this));
110         add(new GUIBibtex<QBibtex, Qt2BC>(*lv, *this));
111         add(new GUICharacter<QCharacter, Qt2BC>(*lv, *this));
112         add(new GUIError<QError, Qt2BC>(*lv, *this));
113         add(new GUIERT<QERT, Qt2BC>(*lv, *this));
114         add(new GUIExternal<QExternal, Qt2BC>(*lv, *this));
115         add(new GUIGraphics<QGraphics, Qt2BC>(*lv, *this));
116         add(new GUIInclude<QInclude, Qt2BC>(*lv, *this));
117         add(new GUIIndex<QIndex, Qt2BC>(*lv, *this));
118         add(new GUILog<QLog, Qt2BC>(*lv, *this));
119         add(new GUIMinipage<QMinipage, Qt2BC>(*lv, *this));
120         add(new GUIPreamble<QPreamble, Qt2BC>(*lv, *this)); 
121         add(new GUIPrint<QPrint, Qt2BC>(*lv, *this));
122         add(new GUIRef<QRef, Qt2BC>(*lv, *this));
123         add(new GUISearch<QSearch, Qt2BC>(*lv, *this)); 
124         add(new GUISpellchecker<QSpellchecker, Qt2BC>(*lv, *this));
125         add(new GUITabularCreate<QTabularCreate, Qt2BC>(*lv, *this));
126         add(new GUIThesaurus<QThesaurus, Qt2BC>(*lv, *this));
127         add(new GUIUrl<QURL, Qt2BC>(*lv, *this));
128         add(new GUIVCLog<QVCLog, Qt2BC>(*lv, *this));
129
130         // reduce the number of connections needed in
131         // dialogs by a simple connection here.
132         hideAll.connect(hideBufferDependent.slot());
133 }