/** * \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 #ifdef __GNUG__ #pragma implementation #endif #include "Dialogs.h" #include "GUI.h" #include "xformsBC.h" #include "combox.h" // needed for clean destruction of boost::scoped_ptr #include "form_aboutlyx.h" #include "form_bibitem.h" #include "form_bibtex.h" #include "form_browser.h" #include "form_character.h" #include "form_citation.h" #include "form_error.h" #include "form_ert.h" #include "form_external.h" #include "form_float.h" #include "form_forks.h" #include "form_graphics.h" #include "form_include.h" #include "form_index.h" #include "form_minipage.h" #include "form_preamble.h" #include "form_print.h" #include "form_ref.h" #include "form_search.h" #include "form_sendto.h" #include "form_spellchecker.h" #include "form_tabular_create.h" #include "form_texinfo.h" #include "form_thesaurus.h" #include "form_toc.h" #include "form_url.h" #include "FormAboutlyx.h" #include "FormBibitem.h" #include "FormBibtex.h" #include "FormCharacter.h" #include "FormCitation.h" #include "FormError.h" #include "FormERT.h" #include "FormExternal.h" #include "FormFloat.h" #include "FormForks.h" #include "FormGraphics.h" #include "FormInclude.h" #include "FormIndex.h" #include "FormLog.h" #include "FormMinipage.h" #include "FormPreamble.h" #include "FormPrint.h" #include "FormRef.h" #include "FormSearch.h" #include "FormSendto.h" #include "FormShowFile.h" #include "FormSpellchecker.h" #include "FormTabularCreate.h" #include "FormTexinfo.h" #include "FormThesaurus.h" #include "FormToc.h" #include "FormUrl.h" #include "FormVCLog.h" #include "FormDocument.h" #include "FormMathsPanel.h" #include "FormParagraph.h" #include "FormPreferences.h" #include "FormTabular.h" #include "Tooltips.h" /// Are the tooltips on or off? bool Dialogs::tooltipsEnabled() { return Tooltips::enabled(); } Dialogs::Dialogs(LyXView * lv) { add(new GUIAboutlyx(*lv, *this)); add(new GUIBibitem(*lv, *this)); add(new GUIBibtex(*lv, *this)); add(new GUICharacter(*lv, *this)); add(new GUICitation(*lv, *this)); add(new GUIError(*lv, *this)); add(new GUIERT(*lv, *this)); add(new GUIExternal(*lv, *this)); add(new GUIForks(*lv, *this)); add(new GUIGraphics(*lv, *this)); add(new GUIInclude(*lv, *this)); add(new GUIIndex(*lv, *this)); add(new GUILog(*lv, *this)); add(new GUIMinipage(*lv, *this)); add(new GUIFloat(*lv, *this)); add(new GUIPreamble(*lv, *this)); add(new GUIPrint(*lv, *this)); add(new GUIRef(*lv, *this)); add(new GUISearch(*lv, *this)); add(new GUISendto(*lv, *this)); add(new GUIShowFile(*lv, *this)); add(new GUISpellchecker(*lv, *this)); add(new GUITabularCreate(*lv, *this)); #ifdef HAVE_LIBAIKSAURUS add(new GUIThesaurus(*lv, *this)); #endif add(new GUITexinfo(*lv, *this)); add(new GUIToc(*lv, *this)); add(new GUIUrl(*lv, *this)); add(new GUIVCLog(*lv, *this)); add(new FormDocument(lv, this)); add(new FormMathsPanel(lv, this)); add(new FormParagraph(lv, this)); add(new FormPreferences(lv, this)); add(new FormTabular(lv, this)); // reduce the number of connections needed in // dialogs by a simple connection here. hideAll.connect(hideBufferDependent.slot()); }