2001-08-19 13:25:15 +00:00
|
|
|
/**
|
|
|
|
* \file Dialogs.C
|
|
|
|
* Copyright 2001 the LyX Team
|
|
|
|
* Read the file COPYING
|
2001-01-26 10:16:05 +00:00
|
|
|
*
|
|
|
|
*/
|
|
|
|
|
|
|
|
#include <config.h>
|
|
|
|
|
2001-03-16 17:20:06 +00:00
|
|
|
#ifdef __GNUG__
|
|
|
|
#pragma implementation
|
|
|
|
#endif
|
|
|
|
|
2001-08-19 13:25:15 +00:00
|
|
|
// the dialog definitions
|
|
|
|
#include "QAboutDialog.h"
|
2001-08-26 15:34:36 +00:00
|
|
|
#include "QBibitemDialog.h"
|
2001-08-26 03:20:52 +00:00
|
|
|
#include "QBibtexDialog.h"
|
2001-08-26 17:49:42 +00:00
|
|
|
#include "QCharacterDialog.h"
|
2001-08-25 03:00:19 +00:00
|
|
|
#include "QCitationDialog.h"
|
2001-08-26 18:49:33 +00:00
|
|
|
#include "QErrorDialog.h"
|
2001-08-26 19:18:45 +00:00
|
|
|
#include "QERTDialog.h"
|
2001-08-27 01:19:32 +00:00
|
|
|
#include "QExternalDialog.h"
|
2002-01-25 17:46:18 +00:00
|
|
|
#include "QFloatDialog.h"
|
2001-08-28 03:35:17 +00:00
|
|
|
#include "QGraphicsDialog.h"
|
2001-08-29 02:08:04 +00:00
|
|
|
#include "QIncludeDialog.h"
|
2001-08-25 03:00:19 +00:00
|
|
|
#include "QIndexDialog.h"
|
2001-08-29 00:37:04 +00:00
|
|
|
#include "QLogDialog.h"
|
2001-08-29 02:08:04 +00:00
|
|
|
#include "QMinipageDialog.h"
|
2001-08-29 03:35:45 +00:00
|
|
|
#include "QPreambleDialog.h"
|
2001-08-29 21:11:30 +00:00
|
|
|
#include "QPrintDialog.h"
|
2001-08-26 00:29:39 +00:00
|
|
|
#include "QRefDialog.h"
|
2001-08-31 02:34:10 +00:00
|
|
|
#include "QSearchDialog.h"
|
2002-01-29 10:05:09 +00:00
|
|
|
#include "QShowFileDialog.h"
|
2001-09-01 03:52:21 +00:00
|
|
|
#include "QSpellcheckerDialog.h"
|
2001-08-28 04:17:49 +00:00
|
|
|
#include "QTabularCreateDialog.h"
|
2002-01-19 13:48:05 +00:00
|
|
|
#include "QTexinfoDialog.h"
|
2001-08-27 02:54:27 +00:00
|
|
|
#include "QThesaurusDialog.h"
|
2002-01-20 18:38:52 +00:00
|
|
|
#include "QTocDialog.h"
|
2001-08-25 20:04:15 +00:00
|
|
|
#include "QURLDialog.h"
|
2001-08-29 00:37:04 +00:00
|
|
|
#include "QVCLogDialog.h"
|
2001-08-29 02:08:04 +00:00
|
|
|
|
2001-08-19 13:25:15 +00:00
|
|
|
#include "QAbout.h"
|
2001-08-26 15:34:36 +00:00
|
|
|
#include "QBibitem.h"
|
2001-08-26 03:20:52 +00:00
|
|
|
#include "QBibtex.h"
|
2001-08-19 13:25:15 +00:00
|
|
|
#include "QCharacter.h"
|
|
|
|
#include "QCitation.h"
|
2001-08-26 18:49:33 +00:00
|
|
|
#include "QError.h"
|
2001-08-26 19:18:45 +00:00
|
|
|
#include "QERT.h"
|
2001-08-27 01:19:32 +00:00
|
|
|
#include "QExternal.h"
|
2002-01-25 17:46:18 +00:00
|
|
|
#include "QFloat.h"
|
2001-08-28 03:35:17 +00:00
|
|
|
#include "QGraphics.h"
|
2001-08-28 01:27:35 +00:00
|
|
|
#include "QInclude.h"
|
2001-08-21 01:14:54 +00:00
|
|
|
#include "QIndex.h"
|
2001-08-29 00:37:04 +00:00
|
|
|
#include "QLog.h"
|
2001-08-29 02:08:04 +00:00
|
|
|
#include "QMinipage.h"
|
2001-08-29 03:35:45 +00:00
|
|
|
#include "QPreamble.h"
|
2001-08-19 13:25:15 +00:00
|
|
|
#include "QPrint.h"
|
2001-08-26 00:29:39 +00:00
|
|
|
#include "QRef.h"
|
2001-08-19 13:25:15 +00:00
|
|
|
#include "QSearch.h"
|
2002-01-29 10:05:09 +00:00
|
|
|
#include "QShowFile.h"
|
2001-09-01 03:52:21 +00:00
|
|
|
#include "QSpellchecker.h"
|
2001-08-19 13:25:15 +00:00
|
|
|
#include "QTabularCreate.h"
|
2002-01-19 13:48:05 +00:00
|
|
|
#include "QTexinfo.h"
|
2002-01-20 18:38:52 +00:00
|
|
|
#include "QToc.h"
|
2001-08-27 02:54:27 +00:00
|
|
|
#include "QThesaurus.h"
|
2001-08-25 20:04:15 +00:00
|
|
|
#include "QURL.h"
|
2001-08-29 00:37:04 +00:00
|
|
|
#include "QVCLog.h"
|
2001-08-19 13:25:15 +00:00
|
|
|
|
2001-08-29 02:08:04 +00:00
|
|
|
#include "QtLyXView.h"
|
2001-01-26 10:16:05 +00:00
|
|
|
#include "Dialogs.h"
|
2001-08-19 13:25:15 +00:00
|
|
|
#include "BufferView.h"
|
|
|
|
#include "buffer.h"
|
2001-08-23 21:21:50 +00:00
|
|
|
#include "Qt2BC.h"
|
2001-03-16 17:20:06 +00:00
|
|
|
|
2001-12-08 02:31:42 +00:00
|
|
|
// xforms stuff
|
2002-01-29 10:05:09 +00:00
|
|
|
//#include "xforms/FormDocument.h"
|
2001-12-08 02:31:42 +00:00
|
|
|
#include "xforms/FormMathsPanel.h"
|
2002-01-29 10:05:09 +00:00
|
|
|
//#include "xforms/FormParagraph.h"
|
2001-12-08 02:31:42 +00:00
|
|
|
#include "xforms/FormPreferences.h"
|
|
|
|
#include "xforms/FormShowFile.h"
|
|
|
|
#include "xforms/FormTabular.h"
|
|
|
|
|
2001-03-29 15:02:19 +00:00
|
|
|
#include "GUI.h"
|
2001-08-29 02:08:04 +00:00
|
|
|
|
2001-08-19 13:25:15 +00:00
|
|
|
// this makes no real sense for Qt2
|
2001-03-16 17:20:06 +00:00
|
|
|
SigC::Signal0<void> Dialogs::redrawGUI;
|
2001-01-26 10:16:05 +00:00
|
|
|
|
|
|
|
|
|
|
|
Dialogs::Dialogs(LyXView * lv)
|
|
|
|
{
|
2001-06-05 17:05:51 +00:00
|
|
|
// dialogs that have been converted to new scheme
|
2001-08-23 21:21:50 +00:00
|
|
|
add(new GUICitation<QCitation, Qt2BC>(*lv, *this));
|
|
|
|
add(new GUIAboutlyx<QAbout, Qt2BC>(*lv, *this));
|
2001-08-26 15:34:36 +00:00
|
|
|
add(new GUIBibitem<QBibitem, Qt2BC>(*lv, *this));
|
2001-08-26 03:20:52 +00:00
|
|
|
add(new GUIBibtex<QBibtex, Qt2BC>(*lv, *this));
|
2001-08-26 17:49:42 +00:00
|
|
|
add(new GUICharacter<QCharacter, Qt2BC>(*lv, *this));
|
2001-08-29 02:08:04 +00:00
|
|
|
add(new GUIError<QError, Qt2BC>(*lv, *this));
|
|
|
|
add(new GUIERT<QERT, Qt2BC>(*lv, *this));
|
|
|
|
add(new GUIExternal<QExternal, Qt2BC>(*lv, *this));
|
2002-01-25 17:46:18 +00:00
|
|
|
add(new GUIFloat<QFloat, Qt2BC>(*lv, *this));
|
2001-08-28 03:35:17 +00:00
|
|
|
add(new GUIGraphics<QGraphics, Qt2BC>(*lv, *this));
|
2001-08-29 02:08:04 +00:00
|
|
|
add(new GUIInclude<QInclude, Qt2BC>(*lv, *this));
|
2001-08-23 21:21:50 +00:00
|
|
|
add(new GUIIndex<QIndex, Qt2BC>(*lv, *this));
|
2001-08-29 02:08:04 +00:00
|
|
|
add(new GUILog<QLog, Qt2BC>(*lv, *this));
|
|
|
|
add(new GUIMinipage<QMinipage, Qt2BC>(*lv, *this));
|
2001-08-29 03:35:45 +00:00
|
|
|
add(new GUIPreamble<QPreamble, Qt2BC>(*lv, *this));
|
2001-08-29 21:11:30 +00:00
|
|
|
add(new GUIPrint<QPrint, Qt2BC>(*lv, *this));
|
2001-08-26 00:29:39 +00:00
|
|
|
add(new GUIRef<QRef, Qt2BC>(*lv, *this));
|
2001-08-31 02:34:10 +00:00
|
|
|
add(new GUISearch<QSearch, Qt2BC>(*lv, *this));
|
2002-01-29 10:05:09 +00:00
|
|
|
add(new GUIShowFile<QShowFile, Qt2BC>(*lv, *this));
|
2001-09-01 03:52:21 +00:00
|
|
|
add(new GUISpellchecker<QSpellchecker, Qt2BC>(*lv, *this));
|
2001-08-28 04:17:49 +00:00
|
|
|
add(new GUITabularCreate<QTabularCreate, Qt2BC>(*lv, *this));
|
2002-01-19 13:48:05 +00:00
|
|
|
add(new GUITexinfo<QTexinfo, Qt2BC>(*lv, *this));
|
2001-08-29 02:08:04 +00:00
|
|
|
add(new GUIThesaurus<QThesaurus, Qt2BC>(*lv, *this));
|
2002-01-20 18:38:52 +00:00
|
|
|
add(new GUIToc<QToc, Qt2BC>(*lv, *this));
|
2001-08-25 20:04:15 +00:00
|
|
|
add(new GUIUrl<QURL, Qt2BC>(*lv, *this));
|
2001-08-29 00:37:04 +00:00
|
|
|
add(new GUIVCLog<QVCLog, Qt2BC>(*lv, *this));
|
2001-03-29 15:02:19 +00:00
|
|
|
|
2001-12-08 02:31:42 +00:00
|
|
|
// dialogs not yet MVCd
|
2002-01-29 10:05:09 +00:00
|
|
|
// add(new FormDocument(lv, this));
|
2001-12-08 02:31:42 +00:00
|
|
|
add(new FormMathsPanel(lv, this));
|
2002-01-29 10:05:09 +00:00
|
|
|
// add(new FormParagraph(lv, this));
|
2001-12-08 02:31:42 +00:00
|
|
|
add(new FormPreferences(lv, this));
|
|
|
|
add(new FormTabular(lv, this));
|
|
|
|
|
2001-06-05 17:05:51 +00:00
|
|
|
// reduce the number of connections needed in
|
|
|
|
// dialogs by a simple connection here.
|
|
|
|
hideAll.connect(hideBufferDependent.slot());
|
2001-03-15 16:34:44 +00:00
|
|
|
}
|