]> git.lyx.org Git - lyx.git/blob - src/frontends/kde/Dialogs.C
implement getLabelList
[lyx.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 #include <config.h>
11 #include FORMS_H_LOCATION
12
13 #include "ControlBibitem.h"
14 #include "ControlBibtex.h"
15 #include "ControlCharacter.h"
16 #include "ControlCitation.h"
17 #include "ControlCopyright.h"
18 #include "ControlCredits.h"
19 #include "ControlError.h"
20 #include "ControlExternal.h" 
21 #include "ControlGraphics.h"
22 #include "ControlInclude.h"
23 #include "ControlIndex.h"
24 #include "ControlLog.h"
25 #include "ControlMinipage.h"
26 #include "ControlPreamble.h"
27 #include "ControlPrint.h"
28 #include "ControlRef.h"
29 #include "ControlSearch.h"
30 #include "ControlSplash.h"
31 #include "ControlTabularCreate.h"
32 #include "ControlUrl.h"
33 #include "ControlVCLog.h"
34
35 #include "Dialogs.h"
36
37 #include "kdeBC.h"
38  
39 #include "GUI.h"
40  
41 // FIXME: how horrendous. It would help a little if we
42 // could rename ControlButton not to clash with stupid Qt ... Angus ?
43  
44 #include "FormBibitem.h"
45 #include "FormBibtex.h"
46 #include "FormCharacter.h" 
47 #include "FormCitation.h"
48 #include "FormCopyright.h"
49 #include "FormCredits.h"
50 #include "FormDocument.h"
51 #include "FormError.h"
52 #include "FormExternal.h" 
53 #include "FormGraphics.h"
54 #include "FormInclude.h"
55 #include "FormIndex.h"
56 #include "FormLog.h"
57 #include "FormMinipage.h" 
58 #include "FormMathsPanel.h" 
59 #include "FormParagraph.h"
60 #include "FormPreamble.h"
61 #include "FormPreferences.h"
62 #include "FormPrint.h"
63 #include "FormRef.h"
64 #include "FormSearch.h" 
65 #include "FormSplash.h"
66 #include "FormTabular.h"
67 #include "FormTabularCreate.h"
68 //#include "FormToc.h"
69 #include "FormUrl.h"
70 #include "FormVCLog.h"
71
72 // we need all these in order to use scoped_ptr. how ugly ...
73 #include "combox.h"
74 #include "form_bibitem.h"
75 #include "form_bibtex.h"
76 #include "form_browser.h"
77 #include "form_character.h"
78 #include "form_credits.h"
79 #include "form_error.h"
80 #include "form_external.h" 
81 #include "form_graphics.h"
82 #include "form_include.h" 
83 #include "form_minipage.h"
84 #include "form_preamble.h"
85 #include "form_search.h"
86 #include "form_splash.h"
87 // Qt does it again. We can't include the dlg.h files *before*
88 // anything else because "ControlButton" is an enum value,
89 // and we can't include them *after* because it #errors on
90 // a #defined TrueColor ... *sigh* 
91 #undef TrueColor 
92 // FIXME: I don't even know where this one is coming from !
93 #undef Unsorted 
94 #include "citationdlg.h" 
95 #include "copyrightdlg.h"
96 #include "indexdlg.h"
97 #include "logdlg.h"
98 #include "printdlg.h"
99 #include "refdlg.h"
100 #include "tabcreatedlg.h"
101 //#include "tocdlg.h"
102 #include "urldlg.h"
103 #include "vclogdlg.h" 
104
105  
106 #ifdef __GNUG__
107 #pragma implementation
108 #endif
109
110 /* We don't implement this, but it's needed whilst we
111  * still rely on xforms
112  */
113 SigC::Signal0<void> Dialogs::redrawGUI;
114
115 Dialogs::Dialogs(LyXView * lv)
116 {
117         splash_.reset(new GUISplash<FormSplash>(*this));
118
119         add(new GUIBibitem<FormBibitem, xformsBC>(*lv, *this));
120         add(new GUIBibtex<FormBibtex, xformsBC>(*lv, *this));
121         add(new GUICharacter<FormCharacter, xformsBC>(*lv, *this));
122         add(new GUICitation<FormCitation, kdeBC>(*lv, *this));
123         add(new GUICopyright<FormCopyright, kdeBC>(*lv, *this));
124         add(new GUICredits<FormCredits, xformsBC>(*lv, *this));
125         add(new GUIError<FormError, xformsBC>(*lv, *this));
126         add(new GUIExternal<FormExternal, xformsBC>(*lv, *this));
127         add(new GUIGraphics<FormGraphics, xformsBC>(*lv, *this));
128         add(new GUIInclude<FormInclude, kdeBC>(*lv, *this));
129         add(new GUIIndex<FormIndex, kdeBC>(*lv, *this));
130         add(new GUILog<FormLog, kdeBC>(*lv, *this));
131         add(new GUIMinipage<FormMinipage, xformsBC>(*lv, *this));
132         add(new GUIPreamble<FormPreamble, xformsBC>(*lv, *this));
133         add(new GUIPrint<FormPrint, kdeBC>(*lv, *this));
134         add(new GUIRef<FormRef, kdeBC>(*lv, *this));
135         add(new GUISearch<FormSearch, xformsBC>(*lv, *this));
136         add(new GUITabularCreate<FormTabularCreate, kdeBC>(*lv, *this));
137         add(new GUIUrl<FormUrl, kdeBC>(*lv, *this));
138         add(new GUIVCLog<FormVCLog, kdeBC>(*lv, *this));
139
140         add(new FormDocument(lv, this));
141         add(new FormMathsPanel(lv, this));
142         add(new FormParagraph(lv, this));
143         add(new FormPreferences(lv, this));
144         add(new FormTabular(lv, this));
145         //add(new FormToc(lv, this));
146         
147         // reduce the number of connections needed in
148         // dialogs by a simple connection here.
149         hideAll.connect(hideBufferDependent.slot());
150 }