]> git.lyx.org Git - lyx.git/blobdiff - src/frontends/qt2/Dialogs.C
remove preamble dialog from the qt frontend
[lyx.git] / src / frontends / qt2 / Dialogs.C
index 84615efeee83d4479b258e6806f96e2affe4170c..943ba109c489602f24c9943d6b48410db79efa25 100644 (file)
@@ -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 <config.h>
 #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 "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 "QSplash.h"
-#include "QTabularCreate.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);
+}
 
-// the controllers
-#include "controllers/ControlAboutlyx.h"
-#include "controllers/ControlBibitem.h"
-#include "controllers/ControlBibtex.h"
-#include "controllers/ControlCharacter.h"
-#include "controllers/ControlCitation.h"
-#include "controllers/ControlError.h"
-#include "controllers/ControlERT.h"
-#include "controllers/ControlExternal.h"
-#include "controllers/ControlGraphics.h"
-#include "controllers/ControlInclude.h"
-#include "controllers/ControlIndex.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/ControlSplash.h"
-#include "controllers/ControlTabularCreate.h"
-#include "controllers/ControlThesaurus.h"
-#include "controllers/ControlUrl.h"
-#include "controllers/ControlVCLog.h"
-#if 0
-#include "controllers/ControlCitation.h"
-#include "controllers/ControlFloat.h"
-#include "controllers/ControlRef.h"
-#include "controllers/ControlToc.h"
-#endif
 
-#include "GUI.h"
+Dialogs::~Dialogs()
+{}
+
 
-// this makes no real sense for Qt2
-SigC::Signal0<void> Dialogs::redrawGUI;
+void Dialogs::toggleTooltips()
+{}
 
 
-Dialogs::Dialogs(LyXView * lv)
+/// Are the tooltips on or off?
+bool Dialogs::tooltipsEnabled()
 {
-       splash_.reset(new QSplash(lv, this));
+       return false;
+}
 
-       // dialogs that have been converted to new scheme
-       add(new GUICitation<QCitation, Qt2BC>(*lv, *this));
-       add(new GUIAboutlyx<QAbout, Qt2BC>(*lv, *this));
-       add(new GUIBibitem<QBibitem, Qt2BC>(*lv, *this));
-       add(new GUIBibtex<QBibtex, Qt2BC>(*lv, *this));
-       add(new GUICharacter<QCharacter, Qt2BC>(*lv, *this));
-       add(new GUIError<QError, Qt2BC>(*lv, *this));
-       add(new GUIERT<QERT, Qt2BC>(*lv, *this));
-       add(new GUIExternal<QExternal, Qt2BC>(*lv, *this));
-       add(new GUIGraphics<QGraphics, Qt2BC>(*lv, *this));
-       add(new GUIInclude<QInclude, Qt2BC>(*lv, *this));
-       add(new GUIIndex<QIndex, Qt2BC>(*lv, *this));
-       add(new GUILog<QLog, Qt2BC>(*lv, *this));
-       add(new GUIMinipage<QMinipage, Qt2BC>(*lv, *this));
-       add(new GUIPreamble<QPreamble, Qt2BC>(*lv, *this)); 
-       add(new GUIPrint<QPrint, Qt2BC>(*lv, *this));
-       add(new GUIRef<QRef, Qt2BC>(*lv, *this));
-       add(new GUISearch<QSearch, Qt2BC>(*lv, *this)); 
-       add(new GUISpellchecker<QSpellchecker, Qt2BC>(*lv, *this));
-       add(new GUITabularCreate<QTabularCreate, Qt2BC>(*lv, *this));
-       add(new GUIThesaurus<QThesaurus, Qt2BC>(*lv, *this));
-       add(new GUIUrl<QURL, Qt2BC>(*lv, *this));
-       add(new GUIVCLog<QVCLog, Qt2BC>(*lv, *this));
 
-       // reduce the number of connections needed in
-       // dialogs by a simple connection here.
-       hideAll.connect(hideBufferDependent.slot());
-}
+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)
+{}