X-Git-Url: https://git.lyx.org/gitweb/?a=blobdiff_plain;f=src%2Ffrontends%2Fqt2%2FDialogs.C;h=943ba109c489602f24c9943d6b48410db79efa25;hb=c53189af58f4a84547be6b5e4725b2f06132a4b2;hp=562bb2f3d463601abc928d7e6a044dcb3d627337;hpb=6a6bb5a017e041e5fe3a1fbf7053a2d0d4357ae3;p=lyx.git diff --git a/src/frontends/qt2/Dialogs.C b/src/frontends/qt2/Dialogs.C index 562bb2f3d4..943ba109c4 100644 --- a/src/frontends/qt2/Dialogs.C +++ b/src/frontends/qt2/Dialogs.C @@ -1,77 +1,82 @@ -/* This file is part of - * ====================================================== +/** + * \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. * - * LyX, The Document Processor + * \author Allan Rae + * \author Angus Leeming * - * Copyright 1995 Matthias Ettrich - * Copyright 1995-2000 The LyX Team. - * - * ====================================================== + * Full author contact details are available in file CREDITS */ #include -#include "Dialogs.h" -#include "FormCharacter.h" -#include "FormCitation.h" -#include "FormCredits.h" -#include "FormCopyright.h" -#include "FormDocument.h" -#include "FormError.h" -#include "FormGraphics.h" -#include "FormIndex.h" -#include "FormParagraph.h" -#include "FormPreferences.h" -#include "FormPrint.h" -#include "FormRef.h" -#include "FormSearch.h" -#include "FormTabular.h" -#include "FormTabularCreate.h" -#include "FormToc.h" -#include "FormUrl.h" - #ifdef __GNUG__ #pragma implementation #endif -using std::endl; +#include "Dialogs_impl.h" -// Signal enabling all visible popups to be redrawn if so desired. -// E.g., when the GUI colours have been remapped. -Signal0 Dialogs::redrawGUI; - -Dialogs::Dialogs(LyXView * lv) +Dialogs::Dialogs(LyXView & lv) + : pimpl_(new Impl(lv, *this)) { - dialogs_.push_back(new FormCharacter(lv, this)); - dialogs_.push_back(new FormCitation(lv, this)); - dialogs_.push_back(new FormCopyright(lv, this)); - dialogs_.push_back(new FormCredits(lv, this)); - dialogs_.push_back(new FormDocument(lv, this)); - dialogs_.push_back(new FormError(lv, this)); - dialogs_.push_back(new FormGraphics(lv, this)); - dialogs_.push_back(new FormIndex(lv, this)); - dialogs_.push_back(new FormParagraph(lv, this)); - dialogs_.push_back(new FormPreferences(lv, this)); - dialogs_.push_back(new FormPrint(lv, this)); - dialogs_.push_back(new FormRef(lv, this)); - dialogs_.push_back(new FormSearch(lv, this)); - dialogs_.push_back(new FormTabular(lv, this)); - dialogs_.push_back(new FormTabularCreate(lv, this)); - dialogs_.push_back(new FormToc(lv, this)); - dialogs_.push_back(new FormUrl(lv, this)); - // reduce the number of connections needed in // dialogs by a simple connection here. - hideAll.connect(hideBufferDependent.slot()); + hideAll.connect(hideBufferDependent); } Dialogs::~Dialogs() +{} + + +void Dialogs::toggleTooltips() +{} + + +/// Are the tooltips on or off? +bool Dialogs::tooltipsEnabled() { - for (vector::iterator iter = dialogs_.begin(); - iter != dialogs_.end(); - ++iter) { - delete *iter; - } + 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) +{}