X-Git-Url: https://git.lyx.org/gitweb/?a=blobdiff_plain;f=src%2Ffrontends%2Fqt2%2FDialogs.C;h=943ba109c489602f24c9943d6b48410db79efa25;hb=c53189af58f4a84547be6b5e4725b2f06132a4b2;hp=dc5928e6d14782cdfe2f21662bd3e3ba9ae0c396;hpb=20f2690c6dd6e0851c0a23840e5eb4ef7f761f65;p=lyx.git diff --git a/src/frontends/qt2/Dialogs.C b/src/frontends/qt2/Dialogs.C index dc5928e6d1..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,91 +16,67 @@ #pragma implementation #endif -// the dialog definitions -#include "QAboutDialog.h" -#include "QCitationDialog.h" -#include "QIndexDialog.h" -#include "QRefDialog.h" -#include "QURLDialog.h" - -#include "QAbout.h" -#include "QCharacter.h" -#include "QCitation.h" -#include "QIndex.h" -#include "QParagraph.h" -#include "QPrint.h" -#include "QRef.h" -#include "QSearch.h" -#include "QSplash.h" -#include "QTabularCreate.h" -#include "QURL.h" +#include "Dialogs_impl.h" -#include "QtLyXView.h" -#include "Dialogs.h" -#include "BufferView.h" -#include "buffer.h" -#include "Qt2BC.h" -// xforms implementations -#include "../xforms/FormError.h" -#include "../xforms/FormGraphics.h" -#include "../xforms/FormPreferences.h" -#include "../xforms/FormTabular.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); +} -// the controllers -#include "controllers/ControlAboutlyx.h" -#include "controllers/ControlCitation.h" -#include "controllers/ControlIndex.h" -#include "controllers/ControlRef.h" -#include "controllers/ControlSplash.h" -#include "controllers/ControlUrl.h" -#if 0 -#include "controllers/ControlCopyright.h" -#include "controllers/ControlCredits.h" -#include "controllers/ControlBibitem.h" -#include "controllers/ControlBibtex.h" -#include "controllers/ControlButtons.h" -#include "controllers/ControlCharacter.h" -#include "controllers/ControlCitation.h" -#include "controllers/ControlCommand.h" -#include "controllers/ControlERT.h" -#include "controllers/ControlError.h" -#include "controllers/ControlExternal.h" -#include "controllers/ControlFloat.h" -#include "controllers/ControlGraphics.h" -#include "controllers/ControlInclude.h" -#include "controllers/ControlLabel.h" -#include "controllers/ControlLog.h" -#include "controllers/ControlMinipage.h" -#include "controllers/ControlPreamble.h" -#include "controllers/ControlPrint.h" -#include "controllers/ControlRef.h" -#include "controllers/ControlSearch.h" -#include "controllers/ControlSpellchecker.h" -#include "controllers/ControlTabularCreate.h" -#include "controllers/ControlThesaurus.h" -#include "controllers/ControlToc.h" -#include "controllers/ControlVCLog.h" -#endif -#include "GUI.h" - -// this makes no real sense for Qt2 -SigC::Signal0 Dialogs::redrawGUI; +Dialogs::~Dialogs() +{} -Dialogs::Dialogs(LyXView * lv) -{ - splash_.reset(new QSplash(lv, this)); +void Dialogs::toggleTooltips() +{} - // dialogs that have been converted to new scheme - add(new GUICitation(*lv, *this)); - add(new GUIAboutlyx(*lv, *this)); - add(new GUIIndex(*lv, *this)); - add(new GUIRef(*lv, *this)); - add(new GUIUrl(*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) +{}