2002-03-11 17:00:41 +00:00
|
|
|
/**
|
2002-03-11 22:47:41 +00:00
|
|
|
* \file xforms/Dialogs.C
|
2002-03-11 17:00:41 +00:00
|
|
|
* Copyright 1995 Matthias Ettrich
|
|
|
|
* Copyright 1995-2001 The LyX Team.
|
|
|
|
* See the file COPYING.
|
2000-11-13 10:35:02 +00:00
|
|
|
*
|
2002-03-11 17:00:41 +00:00
|
|
|
* \author Allan Rae, rae@lyx.org
|
2000-11-13 10:35:02 +00:00
|
|
|
*/
|
|
|
|
|
2000-06-12 11:55:12 +00:00
|
|
|
#include <config.h>
|
2001-03-15 13:37:04 +00:00
|
|
|
|
|
|
|
#ifdef __GNUG__
|
|
|
|
#pragma implementation
|
|
|
|
#endif
|
2000-06-12 11:55:12 +00:00
|
|
|
|
|
|
|
#include "Dialogs.h"
|
2002-06-18 15:44:30 +00:00
|
|
|
#include "Tooltips.h"
|
2001-03-15 13:37:04 +00:00
|
|
|
|
2002-08-12 14:28:43 +00:00
|
|
|
#include <boost/bind.hpp>
|
|
|
|
|
2002-06-18 15:44:30 +00:00
|
|
|
LyXView * dialogs_lyxview;
|
2001-03-20 10:14:03 +00:00
|
|
|
|
2002-03-11 09:54:42 +00:00
|
|
|
|
|
|
|
/// Are the tooltips on or off?
|
|
|
|
bool Dialogs::tooltipsEnabled()
|
|
|
|
{
|
|
|
|
return Tooltips::enabled();
|
|
|
|
}
|
|
|
|
|
2000-11-10 17:29:47 +00:00
|
|
|
|
2000-06-12 11:55:12 +00:00
|
|
|
Dialogs::Dialogs(LyXView * lv)
|
|
|
|
{
|
2002-06-18 15:44:30 +00:00
|
|
|
#if 1
|
|
|
|
dialogs_lyxview = lv;
|
2001-07-29 10:42:11 +00:00
|
|
|
#endif
|
2002-08-12 14:28:43 +00:00
|
|
|
toggleTooltips.connect(boost::bind(&Tooltips::toggleEnabled));
|
2000-06-12 11:55:12 +00:00
|
|
|
// reduce the number of connections needed in
|
|
|
|
// dialogs by a simple connection here.
|
2002-05-29 16:21:03 +00:00
|
|
|
hideAll.connect(hideBufferDependent);
|
2000-06-12 11:55:12 +00:00
|
|
|
}
|