lyx_mirror/src/frontends/xforms/Dialogs.C

41 lines
698 B
C++
Raw Normal View History

/**
* \file xforms/Dialogs.C
* Copyright 1995 Matthias Ettrich
* Copyright 1995-2001 The LyX Team.
* See the file COPYING.
*
* \author Allan Rae, rae@lyx.org
*/
#include <config.h>
#ifdef __GNUG__
#pragma implementation
#endif
#include "Dialogs.h"
#include "Tooltips.h"
#include <boost/bind.hpp>
LyXView * dialogs_lyxview;
/// Are the tooltips on or off?
bool Dialogs::tooltipsEnabled()
{
return Tooltips::enabled();
}
Dialogs::Dialogs(LyXView * lv)
{
#if 1
dialogs_lyxview = lv;
#endif
toggleTooltips.connect(boost::bind(&Tooltips::toggleEnabled));
// reduce the number of connections needed in
// dialogs by a simple connection here.
hideAll.connect(hideBufferDependent);
}