2002-09-25 14:26:13 +00:00
|
|
|
/**
|
2002-09-26 08:57:43 +00:00
|
|
|
* \file gnome/Dialogs.C
|
2002-09-25 14:26:13 +00:00
|
|
|
* This file is part of LyX, the document processor.
|
|
|
|
* Licence details can be found in the file COPYING.
|
2001-03-28 11:14:05 +00:00
|
|
|
*
|
2002-09-25 14:26:13 +00:00
|
|
|
* \author Angus Leeming
|
2001-03-28 11:14:05 +00:00
|
|
|
*
|
2002-09-25 14:26:13 +00:00
|
|
|
* Full author contact details are available in file CREDITS
|
2001-03-28 11:14:05 +00:00
|
|
|
*/
|
|
|
|
|
2000-07-24 22:42:35 +00:00
|
|
|
#include <config.h>
|
2001-03-28 11:14:05 +00:00
|
|
|
|
|
|
|
#ifdef __GNUG__
|
|
|
|
#pragma implementation
|
|
|
|
#endif
|
2000-08-14 09:44:53 +00:00
|
|
|
|
2001-03-28 11:14:05 +00:00
|
|
|
|
2001-04-29 10:47:13 +00:00
|
|
|
#include "Dialogs.h"
|
2002-06-02 04:15:33 +00:00
|
|
|
|
2001-03-28 11:14:05 +00:00
|
|
|
#include "GUI.h"
|
2002-06-02 04:15:33 +00:00
|
|
|
#include "gnomeBC.h"
|
|
|
|
|
|
|
|
#include "frontends/LyXView.h"
|
2001-03-28 11:14:05 +00:00
|
|
|
|
2002-06-15 09:22:03 +00:00
|
|
|
#include "GAbout.h"
|
2002-03-27 10:07:57 +00:00
|
|
|
#include "GError.h"
|
|
|
|
#include "GERT.h"
|
2002-06-15 09:22:03 +00:00
|
|
|
#include "GFloat.h"
|
2002-06-03 03:38:30 +00:00
|
|
|
#include "GLog.h"
|
2002-03-31 23:17:11 +00:00
|
|
|
#include "GPreamble.h"
|
2002-06-02 04:15:33 +00:00
|
|
|
#include "GTabularCreate.h"
|
|
|
|
#include "GUrl.h"
|
|
|
|
|
|
|
|
#include "Tooltips.h"
|
2001-03-28 11:14:05 +00:00
|
|
|
|
2002-03-16 12:55:22 +00:00
|
|
|
bool Dialogs::tooltipsEnabled()
|
|
|
|
{
|
|
|
|
return Tooltips::enabled();
|
|
|
|
}
|
2000-07-24 22:42:35 +00:00
|
|
|
Dialogs::Dialogs(LyXView * lv)
|
|
|
|
{
|
2002-06-02 04:15:33 +00:00
|
|
|
|
|
|
|
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));
|
2002-06-03 03:38:30 +00:00
|
|
|
add(new GUI<ControlLog, GLog,
|
2002-06-15 09:22:03 +00:00
|
|
|
OkCancelPolicy, gnomeBC>(*lv, *this));
|
|
|
|
add(new GUI<ControlAboutlyx, GAbout,
|
|
|
|
OkCancelPolicy, gnomeBC>(*lv, *this));
|
|
|
|
add(new GUI<ControlFloat, GFloat,
|
|
|
|
NoRepeatedApplyReadOnlyPolicy, gnomeBC>(*lv, *this));
|
2000-07-24 22:42:35 +00:00
|
|
|
// reduce the number of connections needed in
|
|
|
|
// dialogs by a simple connection here.
|
2002-06-02 04:15:33 +00:00
|
|
|
hideAll.connect(hideBufferDependent);
|
2000-07-24 22:42:35 +00:00
|
|
|
}
|