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"
|
2001-03-15 13:37:04 +00:00
|
|
|
|
2001-03-22 11:24:36 +00:00
|
|
|
#include "GUI.h"
|
2002-01-16 14:47:58 +00:00
|
|
|
#include "xformsBC.h"
|
2001-03-22 11:24:36 +00:00
|
|
|
|
|
|
|
#include "combox.h" // needed for clean destruction of boost::scoped_ptr
|
2002-06-13 13:43:51 +00:00
|
|
|
#include "forms/form_aboutlyx.h"
|
|
|
|
#include "forms/form_bibitem.h"
|
|
|
|
#include "forms/form_bibtex.h"
|
|
|
|
#include "forms/form_browser.h"
|
|
|
|
#include "forms/form_character.h"
|
|
|
|
#include "forms/form_citation.h"
|
|
|
|
#include "forms/form_error.h"
|
|
|
|
#include "forms/form_ert.h"
|
|
|
|
#include "forms/form_external.h"
|
|
|
|
#include "forms/form_float.h"
|
|
|
|
#include "forms/form_forks.h"
|
|
|
|
#include "forms/form_graphics.h"
|
|
|
|
#include "forms/form_include.h"
|
|
|
|
#include "forms/form_index.h"
|
|
|
|
#include "forms/form_minipage.h"
|
|
|
|
#include "forms/form_paragraph.h"
|
|
|
|
#include "forms/form_preamble.h"
|
|
|
|
#include "forms/form_print.h"
|
|
|
|
#include "forms/form_ref.h"
|
|
|
|
#include "forms/form_search.h"
|
|
|
|
#include "forms/form_sendto.h"
|
|
|
|
#include "forms/form_spellchecker.h"
|
|
|
|
#include "forms/form_tabular_create.h"
|
|
|
|
#include "forms/form_texinfo.h"
|
|
|
|
#include "forms/form_thesaurus.h"
|
|
|
|
#include "forms/form_toc.h"
|
|
|
|
#include "forms/form_url.h"
|
2001-03-20 10:14:03 +00:00
|
|
|
|
2001-07-13 14:03:48 +00:00
|
|
|
#include "FormAboutlyx.h"
|
2001-02-12 14:09:09 +00:00
|
|
|
#include "FormBibitem.h"
|
|
|
|
#include "FormBibtex.h"
|
2001-03-21 13:27:03 +00:00
|
|
|
#include "FormCharacter.h"
|
2000-08-03 12:56:25 +00:00
|
|
|
#include "FormCitation.h"
|
2001-03-23 17:09:34 +00:00
|
|
|
#include "FormError.h"
|
2001-08-06 14:55:02 +00:00
|
|
|
#include "FormERT.h"
|
2001-07-30 11:56:00 +00:00
|
|
|
#include "FormExternal.h"
|
|
|
|
#include "FormFloat.h"
|
2002-02-27 09:59:52 +00:00
|
|
|
#include "FormForks.h"
|
2001-03-28 13:11:08 +00:00
|
|
|
#include "FormGraphics.h"
|
2001-03-23 17:09:34 +00:00
|
|
|
#include "FormInclude.h"
|
2001-03-28 13:11:08 +00:00
|
|
|
#include "FormIndex.h"
|
2001-03-20 10:14:03 +00:00
|
|
|
#include "FormLog.h"
|
2001-03-27 16:03:28 +00:00
|
|
|
#include "FormMinipage.h"
|
2002-06-11 16:40:18 +00:00
|
|
|
#include "FormParagraph.h"
|
2001-03-27 16:03:28 +00:00
|
|
|
#include "FormPreamble.h"
|
2001-03-27 10:43:10 +00:00
|
|
|
#include "FormPrint.h"
|
2001-03-26 13:16:57 +00:00
|
|
|
#include "FormRef.h"
|
2001-03-26 15:25:37 +00:00
|
|
|
#include "FormSearch.h"
|
2002-03-07 15:06:57 +00:00
|
|
|
#include "FormSendto.h"
|
2001-10-09 15:20:10 +00:00
|
|
|
#include "FormShowFile.h"
|
2001-07-13 11:50:39 +00:00
|
|
|
#include "FormSpellchecker.h"
|
2001-03-26 14:33:58 +00:00
|
|
|
#include "FormTabularCreate.h"
|
2002-03-21 21:21:28 +00:00
|
|
|
#include "FormTexinfo.h"
|
|
|
|
#include "FormThesaurus.h"
|
2001-03-30 19:24:28 +00:00
|
|
|
#include "FormToc.h"
|
2001-03-23 18:46:11 +00:00
|
|
|
#include "FormUrl.h"
|
2001-03-20 10:14:03 +00:00
|
|
|
#include "FormVCLog.h"
|
|
|
|
|
2000-08-11 14:42:20 +00:00
|
|
|
#include "FormDocument.h"
|
2001-03-19 15:38:22 +00:00
|
|
|
#include "FormMathsPanel.h"
|
2000-08-03 12:56:25 +00:00
|
|
|
#include "FormPreferences.h"
|
2000-07-11 15:08:54 +00:00
|
|
|
#include "FormTabular.h"
|
2000-06-12 11:55:12 +00:00
|
|
|
|
2002-03-11 09:54:42 +00:00
|
|
|
#include "Tooltips.h"
|
|
|
|
|
|
|
|
/// 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-05-29 15:21:23 +00:00
|
|
|
add(new GUI<ControlAboutlyx, FormAboutlyx,
|
|
|
|
OkCancelPolicy, xformsBC>(*lv, *this));
|
|
|
|
add(new GUI<ControlBibitem, FormBibitem,
|
|
|
|
OkCancelReadOnlyPolicy, xformsBC>(*lv, *this));
|
|
|
|
add(new GUI<ControlBibtex, FormBibtex,
|
|
|
|
OkCancelReadOnlyPolicy, xformsBC>(*lv, *this));
|
|
|
|
add(new GUI<ControlCharacter, FormCharacter,
|
|
|
|
OkApplyCancelReadOnlyPolicy, xformsBC>(*lv, *this));
|
|
|
|
add(new GUI<ControlCitation, FormCitation,
|
|
|
|
NoRepeatedApplyReadOnlyPolicy, xformsBC>(*lv, *this));
|
|
|
|
add(new GUI<ControlError, FormError,
|
|
|
|
OkCancelPolicy, xformsBC>(*lv, *this));
|
|
|
|
add(new GUI<ControlERT, FormERT,
|
|
|
|
NoRepeatedApplyReadOnlyPolicy, xformsBC>(*lv, *this));
|
|
|
|
add(new GUI<ControlExternal, FormExternal,
|
|
|
|
OkApplyCancelReadOnlyPolicy, xformsBC>(*lv, *this));
|
|
|
|
add(new GUI<ControlForks, FormForks,
|
|
|
|
OkApplyCancelPolicy, xformsBC>(*lv, *this));
|
|
|
|
add(new GUI<ControlGraphics, FormGraphics,
|
|
|
|
NoRepeatedApplyReadOnlyPolicy, xformsBC>(*lv, *this));
|
|
|
|
add(new GUI<ControlInclude, FormInclude,
|
|
|
|
OkCancelReadOnlyPolicy, xformsBC>(*lv, *this));
|
|
|
|
add(new GUI<ControlIndex, FormIndex,
|
|
|
|
NoRepeatedApplyReadOnlyPolicy, xformsBC>(*lv, *this));
|
|
|
|
add(new GUI<ControlLog, FormLog,
|
|
|
|
OkCancelPolicy, xformsBC>(*lv, *this));
|
|
|
|
add(new GUI<ControlMinipage, FormMinipage,
|
|
|
|
NoRepeatedApplyReadOnlyPolicy, xformsBC>(*lv, *this));
|
|
|
|
add(new GUI<ControlFloat, FormFloat,
|
|
|
|
NoRepeatedApplyReadOnlyPolicy, xformsBC>(*lv, *this));
|
2002-06-11 16:40:18 +00:00
|
|
|
add(new GUI<ControlParagraph, FormParagraph,
|
|
|
|
OkApplyCancelReadOnlyPolicy, xformsBC>(*lv, *this));
|
2002-05-29 15:21:23 +00:00
|
|
|
add(new GUI<ControlPreamble, FormPreamble,
|
|
|
|
NoRepeatedApplyReadOnlyPolicy, xformsBC>(*lv, *this));
|
|
|
|
add(new GUI<ControlPrint, FormPrint,
|
|
|
|
OkApplyCancelPolicy, xformsBC>(*lv, *this));
|
|
|
|
add(new GUI<ControlRef, FormRef,
|
|
|
|
NoRepeatedApplyReadOnlyPolicy, xformsBC>(*lv, *this));
|
|
|
|
add(new GUI<ControlSearch, FormSearch,
|
|
|
|
NoRepeatedApplyReadOnlyPolicy, xformsBC>(*lv, *this));
|
|
|
|
add(new GUI<ControlSendto, FormSendto,
|
|
|
|
OkApplyCancelPolicy, xformsBC>(*lv, *this));
|
|
|
|
add(new GUI<ControlShowFile, FormShowFile,
|
|
|
|
OkCancelPolicy, xformsBC>(*lv, *this));
|
|
|
|
add(new GUI<ControlSpellchecker, FormSpellchecker,
|
|
|
|
NoRepeatedApplyReadOnlyPolicy, xformsBC>(*lv, *this));
|
|
|
|
add(new GUI<ControlTabularCreate, FormTabularCreate,
|
|
|
|
OkApplyCancelReadOnlyPolicy, xformsBC>(*lv, *this));
|
2001-07-29 10:42:11 +00:00
|
|
|
#ifdef HAVE_LIBAIKSAURUS
|
2002-05-29 15:21:23 +00:00
|
|
|
add(new GUI<ControlThesaurus, FormThesaurus,
|
|
|
|
OkApplyCancelReadOnlyPolicy, xformsBC>(*lv, *this));
|
2001-07-29 10:42:11 +00:00
|
|
|
#endif
|
2002-05-29 15:21:23 +00:00
|
|
|
add(new GUI<ControlTexinfo, FormTexinfo,
|
|
|
|
OkCancelPolicy, xformsBC>(*lv, *this));
|
|
|
|
add(new GUI<ControlToc, FormToc,
|
|
|
|
OkCancelPolicy, xformsBC>(*lv, *this));
|
|
|
|
add(new GUI<ControlUrl, FormUrl,
|
|
|
|
NoRepeatedApplyReadOnlyPolicy, xformsBC>(*lv, *this));
|
|
|
|
add(new GUI<ControlVCLog, FormVCLog,
|
|
|
|
OkCancelPolicy, xformsBC>(*lv, *this));
|
2000-06-12 11:55:12 +00:00
|
|
|
|
2001-03-15 13:37:04 +00:00
|
|
|
add(new FormDocument(lv, this));
|
2002-03-21 21:21:28 +00:00
|
|
|
add(new FormMathsPanel(lv, this));
|
2001-03-15 13:37:04 +00:00
|
|
|
add(new FormPreferences(lv, this));
|
|
|
|
add(new FormTabular(lv, this));
|
2002-03-21 21:21:28 +00:00
|
|
|
|
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
|
|
|
}
|