]> git.lyx.org Git - lyx.git/blob - src/frontends/qt2/Dialogs.C
First attempt at converting copyright dialog to MVC architecture
[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 "FormCopyrightDialogImpl.h"
21 #undef emit
22
23 #include "FormCharacter.h"
24 #include "FormCitation.h"
25 #include "FormCredits.h"
26 #include "FormCopyright.h"
27 //#include "FormDocument.h"
28 #include "FormError.h"
29 #include "FormGraphics.h"
30 //#include "FormIndex.h"
31 #include "FormParagraph.h"
32 #include "FormPreferences.h"
33 #include "FormPrint.h"
34 //#include "FormRef.h"
35 #include "FormSearch.h"
36 #include "FormSplash.h"
37 #include "FormTabular.h"
38 #include "FormTabularCreate.h"
39 //#include "FormToc.h"
40 //#include "FormUrl.h"
41
42 #include "BufferView.h"
43
44 #include "controllers/ControlCopyright.h"
45
46 #include "qt2BC.h"
47
48 // Signal enabling all visible popups to be redrawn if so desired.
49 // E.g., when the GUI colours have been remapped.
50 SigC::Signal0<void> Dialogs::redrawGUI;
51
52
53 Dialogs::Dialogs(LyXView * lv)
54 {
55     splash_.reset( new FormSplash(lv, this) );
56
57     // dialogs that have been converted to new scheme
58     add( new GUICopyright<FormCopyright, qt2BC>( *lv, *this ) );
59
60
61     // ------------------------------------------
62
63     // dialogs that are still old-style
64     add( new FormCharacter(lv, this));
65     add( new FormCitation(lv, this));
66     //  add(new FormCopyright(lv, this));
67
68     // REMOVED THIS UNTIL CHANGED TO NEW SCHEME -- Kalle, 2001-03-22
69     //    add( new FormCredits(lv, this));
70
71     //  add(new FormDocument(lv, this));
72
73
74     // REMOVED THIS UNTIL CHANGED TO NEW SCHEME -- Kalle, 2001-03-23
75     // add(new FormError(lv, this));
76
77     add(new FormGraphics(lv, this));
78     //  add(new FormIndex(lv, this));
79     add(new FormParagraph(lv, this));
80     add(new FormPreferences(lv, this));
81     add(new FormPrint(lv, this));
82     //  add(new FormRef(lv, this));
83     add(new FormSearch(lv, this));
84     add(new FormTabular(lv, this));
85     add(new FormTabularCreate(lv, this));
86     //  add(new FormToc(lv, this));
87     //  add(new FormUrl(lv, this));
88     
89     // reduce the number of connections needed in
90     // dialogs by a simple connection here.
91     hideAll.connect(hideBufferDependent.slot());
92 }
93
94