]> git.lyx.org Git - lyx.git/blobdiff - src/frontends/qt2/Dialogs.C
Some string(widget->text()) fixes. Weirdness
[lyx.git] / src / frontends / qt2 / Dialogs.C
index 72e71ea02d0d6d7a5c5e03db9071a7934650df9e..d37054af231cd603f89d225446a70e2bc1e8b505 100644 (file)
@@ -1,12 +1,13 @@
-/* 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 <config.h>
 #pragma implementation
 #endif
 
-#include "Dialogs.h"
-
-#include "FormCopyrightDialogImpl.h"
-#undef emit
-
-#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 "FormSplash.h"
-#include "FormTabular.h"
-#include "FormTabularCreate.h"
-//#include "FormToc.h"
-//#include "FormUrl.h"
-
-#include "BufferView.h"
-
-#include "controllers/ControlCopyright.h"
-
-#include "qt2BC.h"
-
-// Signal enabling all visible popups to be redrawn if so desired.
-// E.g., when the GUI colours have been remapped.
-SigC::Signal0<void> Dialogs::redrawGUI;
+#include "Dialogs_impl.h"
 
 
-Dialogs::Dialogs(LyXView * lv)
+Dialogs::Dialogs(LyXView & lv)
+       : pimpl_(new Impl(lv, *this))
 {
-    splash_.reset( new FormSplash(lv, this) );
-
-    // dialogs that have been converted to new scheme
-    add( new GUICopyright<FormCopyright, qt2BC>( *lv, *this ) );
-
-
-    // ------------------------------------------
+       // reduce the number of connections needed in
+       // dialogs by a simple connection here.
+       hideAll.connect(hideBufferDependent);
+}
 
-    // dialogs that are still old-style
-    add( new FormCharacter(lv, this));
-    add( new FormCitation(lv, this));
-    // add(new FormCopyright(lv, this));
 
-    // REMOVED THIS UNTIL CHANGED TO NEW SCHEME -- Kalle, 2001-03-22
-    //    add( new FormCredits(lv, this));
+Dialogs::~Dialogs()
+{}
 
-    // add(new FormDocument(lv, this));
 
+void Dialogs::toggleTooltips()
+{}
 
-    // REMOVED THIS UNTIL CHANGED TO NEW SCHEME -- Kalle, 2001-03-23
-    // add(new FormError(lv, this));
 
-    add(new FormGraphics(lv, this));
-    // add(new FormIndex(lv, this));
-    add(new FormParagraph(lv, this));
-    add(new FormPreferences(lv, this));
-    add(new FormPrint(lv, this));
-    // add(new FormRef(lv, this));
-    add(new FormSearch(lv, this));
-    add(new FormTabular(lv, this));
-    add(new FormTabularCreate(lv, this));
-    // add(new FormToc(lv, this));
-    // add(new FormUrl(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),
+         preamble(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)
+{}