]> git.lyx.org Git - lyx.git/blob - src/frontends/qt2/Dialogs.C
various fixes
[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 "QCitationDialog.h"
17 #include "QIndexDialog.h"
18 #include "QURLDialog.h"
19  
20 // the controller interface
21 #include "QAbout.h"
22 #include "QCharacter.h"
23 #include "QCitation.h"
24 #include "QIndex.h"
25 #include "QParagraph.h"
26 #include "QPrint.h"
27 #include "QSearch.h"
28 #include "QSplash.h"
29 #include "QTabularCreate.h"
30 #include "QURL.h"
31
32 #include "QtLyXView.h" 
33 #include "Dialogs.h"
34 #include "BufferView.h"
35 #include "buffer.h"
36 #include "Qt2BC.h"
37
38 // xforms implementations
39 #include "../xforms/FormError.h"
40 #include "../xforms/FormGraphics.h"
41 #include "../xforms/FormPreferences.h"
42 #include "../xforms/FormTabular.h"
43
44 // the controllers
45 #include "controllers/ControlAboutlyx.h"
46 #include "controllers/ControlCitation.h"
47 #include "controllers/ControlIndex.h"
48 #include "controllers/ControlSplash.h"
49 #include "controllers/ControlUrl.h" 
50 #if 0
51 #include "controllers/ControlCopyright.h"
52 #include "controllers/ControlCredits.h"
53 #include "controllers/ControlBibitem.h"
54 #include "controllers/ControlBibtex.h"
55 #include "controllers/ControlButtons.h"
56 #include "controllers/ControlCharacter.h"
57 #include "controllers/ControlCitation.h"
58 #include "controllers/ControlCommand.h"
59 #include "controllers/ControlERT.h"
60 #include "controllers/ControlError.h"
61 #include "controllers/ControlExternal.h"
62 #include "controllers/ControlFloat.h"
63 #include "controllers/ControlGraphics.h"
64 #include "controllers/ControlInclude.h"
65 #include "controllers/ControlLabel.h"
66 #include "controllers/ControlLog.h"
67 #include "controllers/ControlMinipage.h"
68 #include "controllers/ControlPreamble.h"
69 #include "controllers/ControlPrint.h"
70 #include "controllers/ControlRef.h"
71 #include "controllers/ControlSearch.h"
72 #include "controllers/ControlSpellchecker.h"
73 #include "controllers/ControlTabularCreate.h"
74 #include "controllers/ControlThesaurus.h"
75 #include "controllers/ControlToc.h"
76 #include "controllers/ControlVCLog.h"
77 #endif
78
79 #include "GUI.h"
80  
81 // this makes no real sense for Qt2
82 SigC::Signal0<void> Dialogs::redrawGUI;
83
84
85 Dialogs::Dialogs(LyXView * lv)
86 {
87         splash_.reset(new QSplash(lv, this));
88
89         // dialogs that have been converted to new scheme
90         add(new GUICitation<QCitation, Qt2BC>(*lv, *this));
91         add(new GUIAboutlyx<QAbout, Qt2BC>(*lv, *this));
92         add(new GUIIndex<QIndex, Qt2BC>(*lv, *this));
93         add(new GUIUrl<QURL, Qt2BC>(*lv, *this));
94
95         // reduce the number of connections needed in
96         // dialogs by a simple connection here.
97         hideAll.connect(hideBufferDependent.slot());
98 }