]> git.lyx.org Git - lyx.git/blob - src/frontends/gnome/Dialogs.C
the string -> char patch
[lyx.git] / src / frontends / gnome / Dialogs.C
1 /**
2  * \file gnome/Dialogs.C
3  * This file is part of LyX, the document processor.
4  * Licence details can be found in the file COPYING.
5  *
6  * \author Angus Leeming
7  *
8  * Full author contact details are available in file CREDITS
9  */
10
11 #include <config.h>
12
13 #ifdef __GNUG__
14 #pragma implementation
15 #endif
16
17
18 #include "Dialogs.h"
19
20 #include "GUI.h"
21 #include "gnomeBC.h"
22
23 #include "frontends/LyXView.h"
24
25 #include "GAbout.h"
26 #include "GError.h"
27 #include "GERT.h"
28 #include "GFloat.h"
29 #include "GLog.h"
30 #include "GPreamble.h"
31 #include "GTabularCreate.h"
32 #include "GUrl.h"
33
34 #include "Tooltips.h"
35
36 bool Dialogs::tooltipsEnabled()
37 {
38         return Tooltips::enabled();
39 }
40 Dialogs::Dialogs(LyXView * lv)
41 {
42
43         add(new GUI<ControlError,GErrorDialog, 
44             OkCancelPolicy, gnomeBC>(*lv, *this));
45         add(new GUI<ControlERT, GERT,
46             NoRepeatedApplyReadOnlyPolicy, gnomeBC>(*lv, *this));
47         add(new GUI<ControlUrl, GUrl,
48             NoRepeatedApplyReadOnlyPolicy, gnomeBC>(*lv,*this));
49         add(new GUI<ControlPreamble, GPreamble,
50             NoRepeatedApplyReadOnlyPolicy, gnomeBC>(*lv, *this));
51         add(new GUI<ControlTabularCreate, GTabularCreate,
52             OkApplyCancelReadOnlyPolicy, gnomeBC>(*lv, *this));
53         add(new GUI<ControlLog, GLog,
54             OkCancelPolicy, gnomeBC>(*lv, *this));
55         add(new GUI<ControlAboutlyx, GAbout,
56             OkCancelPolicy, gnomeBC>(*lv, *this));
57         add(new GUI<ControlFloat, GFloat,
58             NoRepeatedApplyReadOnlyPolicy, gnomeBC>(*lv, *this));
59         // reduce the number of connections needed in
60         // dialogs by a simple connection here.
61         hideAll.connect(hideBufferDependent);
62 }