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