]> git.lyx.org Git - lyx.git/blob - src/frontends/qt2/Dialogs.C
implement getLabelList
[lyx.git] / src / frontends / qt2 / Dialogs.C
1 /* This file is part of
2  * ======================================================
3  *
4  *           LyX, The Document Processor
5  *
6  *           Copyright 1995 Matthias Ettrich
7  *           Copyright 1995-2000 The LyX Team.
8  *
9  * ======================================================
10  */
11
12 #include <config.h>
13
14 #ifdef __GNUG__
15 #pragma implementation
16 #endif
17
18 #include "Dialogs.h"
19
20 #include "FormCitationDialogImpl.h"
21 #include "FormCopyrightDialogImpl.h"
22 #include "FormCreditsDialogImpl.h"
23 #undef emit
24
25 #include "../xforms/FormError.h"
26 #include "../xforms/FormGraphics.h"
27 #include "../xforms/FormPreferences.h"
28 #include "../xforms/FormTabular.h"
29
30 #include "FormCharacter.h"
31 #include "FormCitation.h"
32 #include "FormCopyright.h"
33 #include "FormCredits.h"
34 //#include "FormDocument.h"
35 //#include "FormIndex.h"
36 #include "FormParagraph.h"
37 #include "FormPrint.h"
38 //#include "FormRef.h"
39 #include "FormSearch.h"
40 #include "FormSplash.h"
41 #include "FormTabularCreate.h"
42 //#include "FormToc.h"
43 //#include "FormUrl.h"
44
45 #include "BufferView.h"
46 #include "buffer.h"
47
48 #include "controllers/ControlCitation.h"
49 #include "controllers/ControlCopyright.h"
50 #include "controllers/ControlCredits.h"
51
52 #include "GUI.h"
53
54 #include "qt2BC.h"
55
56 // Signal enabling all visible dialogs to be redrawn if so desired.
57 // E.g., when the GUI colours have been remapped.
58 SigC::Signal0<void> Dialogs::redrawGUI;
59
60
61 Dialogs::Dialogs(LyXView * lv)
62 {
63     splash_.reset( new FormSplash(lv, this) );
64
65     // dialogs that have been converted to new scheme
66     add( new GUICitation<FormCitation, qt2BC>( *lv, *this ) );
67     add( new GUICopyright<FormCopyright, qt2BC>( *lv, *this ) );
68     add( new GUICredits<FormCredits, qt2BC>( *lv, *this ) );
69
70     // ------------------------------------------
71
72     // dialogs that are still old-style
73     add( new FormCharacter(lv, this));
74
75     //  add(new FormDocument(lv, this));
76
77
78     // REMOVED THIS UNTIL CHANGED TO NEW SCHEME -- Kalle, 2001-03-23
79     // add(new FormError(lv, this));
80
81     // REMOVED THIS UNTIL CHANGED TO NEW SCHEME -- Kalle, 2001-03-28
82     //    add(new FormGraphics(lv, this));
83     //  add(new FormIndex(lv, this));
84     add(new FormParagraph(lv, this));
85     add(new FormPreferences(lv, this));
86     add(new FormPrint(lv, this));
87     //  add(new FormRef(lv, this));
88     add(new FormSearch(lv, this));
89     add(new FormTabular(lv, this));
90     add(new FormTabularCreate(lv, this));
91     //  add(new FormToc(lv, this));
92     //  add(new FormUrl(lv, this));
93
94     // reduce the number of connections needed in
95     // dialogs by a simple connection here.
96     hideAll.connect(hideBufferDependent.slot());
97 }
98
99