]> git.lyx.org Git - lyx.git/blob - src/frontends/xforms/Dialogs.C
No longer pass Controller & or Dialogs & to the View c-tors.
[lyx.git] / src / frontends / xforms / Dialogs.C
1 /**
2  * \file xforms/Dialogs.C
3  * Copyright 1995 Matthias Ettrich
4  * Copyright 1995-2001 The LyX Team.
5  * See the file COPYING.
6  *
7  * \author Allan Rae, rae@lyx.org
8  */
9
10 #include <config.h>
11
12 #ifdef __GNUG__
13 #pragma implementation
14 #endif
15
16 #include "Dialogs.h"
17 #include "Tooltips.h"
18
19 #include <boost/bind.hpp>
20
21 LyXView * dialogs_lyxview;
22
23
24 /// Are the tooltips on or off?
25 bool Dialogs::tooltipsEnabled()
26 {
27         return Tooltips::enabled();
28 }
29
30
31 Dialogs::Dialogs(LyXView * lv)
32 {
33 #if 1
34         dialogs_lyxview = lv;
35 #endif
36         toggleTooltips.connect(boost::bind(&Tooltips::toggleEnabled));
37         // reduce the number of connections needed in
38         // dialogs by a simple connection here.
39         hideAll.connect(hideBufferDependent);
40 }