X-Git-Url: https://git.lyx.org/gitweb/?a=blobdiff_plain;f=src%2Ffrontends%2Fqt2%2FDialogs.C;h=943ba109c489602f24c9943d6b48410db79efa25;hb=c53189af58f4a84547be6b5e4725b2f06132a4b2;hp=50baf9a9184419ee22e1302924b67903ecfa0d27;hpb=cd7ee54cb125b45cba52ac8408b3b4597c894b1a;p=lyx.git diff --git a/src/frontends/qt2/Dialogs.C b/src/frontends/qt2/Dialogs.C index 50baf9a918..943ba109c4 100644 --- a/src/frontends/qt2/Dialogs.C +++ b/src/frontends/qt2/Dialogs.C @@ -1,8 +1,13 @@ /** - * \file Dialogs.C - * Copyright 2001 the LyX Team - * Read the file COPYING + * \file qt2/Dialogs.C + * Copyright 1995 Matthias Ettrich + * This file is part of LyX, the document processor. + * Licence details can be found in the file COPYING. * + * \author Allan Rae + * \author Angus Leeming + * + * Full author contact details are available in file CREDITS */ #include @@ -11,125 +16,67 @@ #pragma implementation #endif -// the dialog definitions -#include "QAboutDialog.h" -#include "QBibitemDialog.h" -#include "QBibtexDialog.h" -#include "QCharacterDialog.h" -#include "QCitationDialog.h" -#include "QErrorDialog.h" -#include "QERTDialog.h" -#include "QExternalDialog.h" -#include "QGraphicsDialog.h" -#include "QIncludeDialog.h" -#include "QIndexDialog.h" -#include "QLogDialog.h" -#include "QMinipageDialog.h" -#include "QPreambleDialog.h" -#include "QPrintDialog.h" -#include "QRefDialog.h" -#include "QSearchDialog.h" -#include "QSpellcheckerDialog.h" -#include "QTabularCreateDialog.h" -#include "QTexinfoDialog.h" -#include "QThesaurusDialog.h" -#include "QURLDialog.h" -#include "QVCLogDialog.h" +#include "Dialogs_impl.h" -#include "QAbout.h" -#include "QBibitem.h" -#include "QBibtex.h" -#include "QCharacter.h" -#include "QCitation.h" -#include "QError.h" -#include "QERT.h" -#include "QExternal.h" -#include "QGraphics.h" -#include "QInclude.h" -#include "QIndex.h" -#include "QLog.h" -#include "QMinipage.h" -#include "QParagraph.h" -#include "QPreamble.h" -#include "QPrint.h" -#include "QRef.h" -#include "QSearch.h" -#include "QSpellchecker.h" -#include "QTabularCreate.h" -#include "QTexinfo.h" -#include "QThesaurus.h" -#include "QURL.h" -#include "QVCLog.h" -#include "QtLyXView.h" -#include "Dialogs.h" -#include "BufferView.h" -#include "buffer.h" -#include "Qt2BC.h" +Dialogs::Dialogs(LyXView & lv) + : pimpl_(new Impl(lv, *this)) +{ + // reduce the number of connections needed in + // dialogs by a simple connection here. + hideAll.connect(hideBufferDependent); +} -// xforms stuff -#include "xforms/FormBrowser.h" -#include "xforms/form_browser.h" -#include "xforms/FormDocument.h" -#include "xforms/FormERT.h" -#include "xforms/form_ert.h" -#include "xforms/FormFloat.h" -#include "xforms/form_float.h" -#include "xforms/FormMathsPanel.h" -#include "xforms/FormParagraph.h" -#include "xforms/FormPreferences.h" -#include "xforms/FormShowFile.h" -#include "xforms/FormTabular.h" -#include "xforms/FormToc.h" -#include "xforms/form_toc.h" - -#include "GUI.h" -// this makes no real sense for Qt2 -SigC::Signal0 Dialogs::redrawGUI; +Dialogs::~Dialogs() +{} -Dialogs::Dialogs(LyXView * lv) -{ - // dialogs that have been converted to new scheme - add(new GUICitation(*lv, *this)); - add(new GUIAboutlyx(*lv, *this)); - add(new GUIBibitem(*lv, *this)); - add(new GUIBibtex(*lv, *this)); - add(new GUICharacter(*lv, *this)); - add(new GUIError(*lv, *this)); - add(new GUIERT(*lv, *this)); - add(new GUIExternal(*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 GUIPreamble(*lv, *this)); - add(new GUIPrint(*lv, *this)); - add(new GUIRef(*lv, *this)); - add(new GUISearch(*lv, *this)); - add(new GUISpellchecker(*lv, *this)); - add(new GUITabularCreate(*lv, *this)); - add(new GUITexinfo(*lv, *this)); - add(new GUIThesaurus(*lv, *this)); - add(new GUIUrl(*lv, *this)); - add(new GUIVCLog(*lv, *this)); +void Dialogs::toggleTooltips() +{} - // dialogs not yet converted - add(new GUIERT(*lv, *this)); - add(new GUIFloat(*lv, *this)); - add(new GUIShowFile(*lv, *this)); - add(new GUIToc(*lv, *this)); - // dialogs not yet MVCd - 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()); +/// Are the tooltips on or off? +bool Dialogs::tooltipsEnabled() +{ + return false; } + + +Dialogs::Impl::Impl(LyXView & lv, Dialogs & d) + : aboutlyx(lv, d), + bibitem(lv, d), + bibtex(lv, d), + character(lv, d), + citation(lv, d), + document(lv, d), + error(lv, d), + ert(lv, d), + external(lv, d), + file(lv, d), + floats(lv, d), + graphics(lv, d), + include(lv, d), + index(lv, d), + logfile(lv, d), + minipage(lv, d), + paragraph(lv, d), + prefs(lv, d), + print(lv, d), + ref(lv, d), + search(lv, d), + sendto(lv, d), + spellchecker(lv, d), + tabularcreate(lv, d), + tabular(lv, d), + texinfo(lv, d), + +#ifdef HAVE_LIBAIKSAURUS + thesaurus(lv, d), +#endif + + toc(lv, d), + url(lv, d), + vclogfile(lv, d), + wrap(lv, d) +{}