lyx_mirror/src/frontends/gnome/Dialogs.C
Angus Leeming 02e9472374 doxygen fixes.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@5347 a592a061-630c-0410-9148-cb99ea01b6c8
2002-09-26 08:57:43 +00:00

63 lines
1.5 KiB
C

/**
* \file gnome/Dialogs.C
* This file is part of LyX, the document processor.
* Licence details can be found in the file COPYING.
*
* \author Angus Leeming
*
* Full author contact details are available in file CREDITS
*/
#include <config.h>
#ifdef __GNUG__
#pragma implementation
#endif
#include "Dialogs.h"
#include "GUI.h"
#include "gnomeBC.h"
#include "frontends/LyXView.h"
#include "GAbout.h"
#include "GError.h"
#include "GERT.h"
#include "GFloat.h"
#include "GLog.h"
#include "GPreamble.h"
#include "GTabularCreate.h"
#include "GUrl.h"
#include "Tooltips.h"
bool Dialogs::tooltipsEnabled()
{
return Tooltips::enabled();
}
Dialogs::Dialogs(LyXView * lv)
{
add(new GUI<ControlError,GErrorDialog,
OkCancelPolicy, gnomeBC>(*lv, *this));
add(new GUI<ControlERT, GERT,
NoRepeatedApplyReadOnlyPolicy, gnomeBC>(*lv, *this));
add(new GUI<ControlUrl, GUrl,
NoRepeatedApplyReadOnlyPolicy, gnomeBC>(*lv,*this));
add(new GUI<ControlPreamble, GPreamble,
NoRepeatedApplyReadOnlyPolicy, gnomeBC>(*lv, *this));
add(new GUI<ControlTabularCreate, GTabularCreate,
OkApplyCancelReadOnlyPolicy, gnomeBC>(*lv, *this));
add(new GUI<ControlLog, GLog,
OkCancelPolicy, gnomeBC>(*lv, *this));
add(new GUI<ControlAboutlyx, GAbout,
OkCancelPolicy, gnomeBC>(*lv, *this));
add(new GUI<ControlFloat, GFloat,
NoRepeatedApplyReadOnlyPolicy, gnomeBC>(*lv, *this));
// reduce the number of connections needed in
// dialogs by a simple connection here.
hideAll.connect(hideBufferDependent);
}