]> git.lyx.org Git - features.git/blob - src/frontends/kde/Dialogs.C
renaming, fix citation (still no search though)
[features.git] / src / frontends / kde / Dialogs.C
1 /**
2  * \file Dialogs.C
3  * Copyright 2001 the LyX Team
4  * Read the file COPYING
5  *
6  * \author Jürgen Vigna
7  * \author John Levon
8  */
9
10 // real GUI implementations. Have to go at the top
11 // because Qt is stupid.
12 #include "citationdlg.h" 
13 #include "copyrightdlg.h"
14 #include "indexdlg.h"
15 #include "logdlg.h"
16 #include "printdlg.h"
17 #include "refdlg.h"
18 #include "tabcreatedlg.h"
19 //#include "tocdlg.h"
20 #include "urldlg.h"
21 #include "vclogdlg.h" 
22  
23 #include <config.h>
24 #include FORMS_H_LOCATION
25
26 #include "QtLyXView.h"
27  
28 #include "combox.h"
29 #include "form_bibitem.h"
30 #include "form_bibtex.h"
31 #include "form_browser.h"
32 #include "form_character.h"
33 #include "form_credits.h"
34 #include "form_error.h"
35 #include "form_external.h" 
36 #include "form_graphics.h"
37 #include "form_include.h" 
38 #include "form_minipage.h"
39 #include "form_preamble.h"
40 #include "form_search.h"
41 #include "form_splash.h"
42  
43 #include "Dialogs.h"
44 #include "kdeBC.h"
45 #include "GUI.h"
46  
47 // controllers
48 #include "ControlBibitem.h"
49 #include "ControlBibtex.h"
50 #include "ControlCharacter.h"
51 #include "ControlCitation.h"
52 #include "ControlCopyright.h"
53 #include "ControlCredits.h"
54 #include "ControlError.h"
55 #include "ControlExternal.h" 
56 #include "ControlGraphics.h"
57 #include "ControlInclude.h"
58 #include "ControlIndex.h"
59 #include "ControlLog.h"
60 #include "ControlMinipage.h"
61 #include "ControlPreamble.h"
62 #include "ControlPrint.h"
63 #include "ControlRef.h"
64 #include "ControlSearch.h"
65 #include "ControlSplash.h"
66 #include "ControlTabularCreate.h"
67 #include "ControlUrl.h"
68 #include "ControlVCLog.h"
69
70 // dialogs
71 #include "FormBibitem.h"
72 #include "FormBibtex.h"
73 #include "FormCharacter.h" 
74 #include "FormCitation.h"
75 #include "FormCopyright.h"
76 #include "FormCredits.h"
77 #include "FormDocument.h"
78 #include "FormError.h"
79 #include "FormExternal.h" 
80 #include "FormGraphics.h"
81 #include "FormInclude.h"
82 #include "FormIndex.h"
83 #include "FormLog.h"
84 #include "FormMinipage.h" 
85 #include "FormMathsPanel.h" 
86 #include "FormParagraph.h"
87 #include "FormPreamble.h"
88 #include "FormPreferences.h"
89 #include "FormPrint.h"
90 #include "FormRef.h"
91 #include "FormSearch.h" 
92 #include "FormSplash.h"
93 #include "FormTabular.h"
94 #include "FormTabularCreate.h"
95 //#include "FormToc.h"
96 #include "FormUrl.h"
97 #include "FormVCLog.h"
98
99
100 #ifdef __GNUG__
101 #pragma implementation
102 #endif
103
104 /* We don't implement this, but it's needed whilst we
105  * still rely on xforms
106  */
107 SigC::Signal0<void> Dialogs::redrawGUI;
108
109 Dialogs::Dialogs(LyXView * lv)
110 {
111         splash_.reset(new GUISplash<FormSplash>(*this));
112
113         add(new GUIBibitem<FormBibitem, xformsBC>(*lv, *this));
114         add(new GUIBibtex<FormBibtex, xformsBC>(*lv, *this));
115         add(new GUICharacter<FormCharacter, xformsBC>(*lv, *this));
116         add(new GUICitation<FormCitation, kdeBC>(*lv, *this));
117         add(new GUICopyright<FormCopyright, kdeBC>(*lv, *this));
118         add(new GUICredits<FormCredits, xformsBC>(*lv, *this));
119         add(new GUIError<FormError, xformsBC>(*lv, *this));
120         add(new GUIExternal<FormExternal, xformsBC>(*lv, *this));
121         add(new GUIGraphics<FormGraphics, xformsBC>(*lv, *this));
122         add(new GUIInclude<FormInclude, kdeBC>(*lv, *this));
123         add(new GUIIndex<FormIndex, kdeBC>(*lv, *this));
124         add(new GUILog<FormLog, kdeBC>(*lv, *this));
125         add(new GUIMinipage<FormMinipage, xformsBC>(*lv, *this));
126         add(new GUIPreamble<FormPreamble, xformsBC>(*lv, *this));
127         add(new GUIPrint<FormPrint, kdeBC>(*lv, *this));
128         add(new GUIRef<FormRef, kdeBC>(*lv, *this));
129         add(new GUISearch<FormSearch, xformsBC>(*lv, *this));
130         add(new GUITabularCreate<FormTabularCreate, kdeBC>(*lv, *this));
131         add(new GUIUrl<FormUrl, kdeBC>(*lv, *this));
132         add(new GUIVCLog<FormVCLog, kdeBC>(*lv, *this));
133         //add(new GUIToc<FormToc, kdeBC>(*lv, *this));
134
135         add(new FormDocument(lv, this));
136         add(new FormMathsPanel(lv, this));
137         add(new FormParagraph(lv, this));
138         add(new FormPreferences(lv, this));
139         add(new FormTabular(lv, this));
140         
141         // reduce the number of connections needed in
142         // dialogs by a simple connection here.
143         hideAll.connect(hideBufferDependent.slot());
144 }