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.
6 * \author Angus Leeming
8 * Full author contact details are available in file CREDITS
14 #pragma implementation
23 #include "frontends/LyXView.h"
30 #include "GPreamble.h"
31 #include "GTabularCreate.h"
36 bool Dialogs::tooltipsEnabled()
38 return Tooltips::enabled();
40 Dialogs::Dialogs(LyXView * lv)
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);