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"
|
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"
|
2001-08-28 04:17:49 +00:00
|
|
|
#include "QTabularCreateDialog.h"
|
2001-08-27 02:54:27 +00:00
|
|
|
#include "QThesaurusDialog.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"
|
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-19 13:25:15 +00:00
|
|
|
#include "QParagraph.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"
|
|
|
|
#include "QSplash.h"
|
|
|
|
#include "QTabularCreate.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-08-19 13:25:15 +00:00
|
|
|
// the controllers
|
|
|
|
#include "controllers/ControlAboutlyx.h"
|
2001-08-26 15:34:36 +00:00
|
|
|
#include "controllers/ControlBibitem.h"
|
2001-08-26 03:20:52 +00:00
|
|
|
#include "controllers/ControlBibtex.h"
|
2001-08-26 17:49:42 +00:00
|
|
|
#include "controllers/ControlCharacter.h"
|
2001-08-21 01:14:54 +00:00
|
|
|
#include "controllers/ControlCitation.h"
|
2001-08-26 18:49:33 +00:00
|
|
|
#include "controllers/ControlError.h"
|
2001-08-26 19:18:45 +00:00
|
|
|
#include "controllers/ControlERT.h"
|
2001-08-27 01:19:32 +00:00
|
|
|
#include "controllers/ControlExternal.h"
|
2001-08-28 03:35:17 +00:00
|
|
|
#include "controllers/ControlGraphics.h"
|
2001-08-28 01:27:35 +00:00
|
|
|
#include "controllers/ControlInclude.h"
|
2001-08-21 01:14:54 +00:00
|
|
|
#include "controllers/ControlIndex.h"
|
2001-08-29 00:37:04 +00:00
|
|
|
#include "controllers/ControlLog.h"
|
2001-08-29 02:08:04 +00:00
|
|
|
#include "controllers/ControlMinipage.h"
|
2001-08-29 03:35:45 +00:00
|
|
|
#include "controllers/ControlPreamble.h"
|
2001-08-29 21:11:30 +00:00
|
|
|
#include "controllers/ControlPrint.h"
|
2001-08-26 00:29:39 +00:00
|
|
|
#include "controllers/ControlRef.h"
|
2001-08-31 02:34:10 +00:00
|
|
|
#include "controllers/ControlSearch.h"
|
2001-08-19 13:25:15 +00:00
|
|
|
#include "controllers/ControlSplash.h"
|
2001-08-28 04:17:49 +00:00
|
|
|
#include "controllers/ControlTabularCreate.h"
|
2001-08-27 02:54:27 +00:00
|
|
|
#include "controllers/ControlThesaurus.h"
|
2001-08-29 02:08:04 +00:00
|
|
|
#include "controllers/ControlUrl.h"
|
2001-08-29 00:37:04 +00:00
|
|
|
#include "controllers/ControlVCLog.h"
|
2001-08-19 13:25:15 +00:00
|
|
|
#if 0
|
|
|
|
#include "controllers/ControlButtons.h"
|
|
|
|
#include "controllers/ControlCitation.h"
|
|
|
|
#include "controllers/ControlFloat.h"
|
|
|
|
#include "controllers/ControlLabel.h"
|
|
|
|
#include "controllers/ControlRef.h"
|
|
|
|
#include "controllers/ControlSpellchecker.h"
|
|
|
|
#include "controllers/ControlToc.h"
|
|
|
|
#endif
|
2001-03-29 18:58:47 +00:00
|
|
|
|
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-08-19 13:25:15 +00:00
|
|
|
splash_.reset(new QSplash(lv, this));
|
2001-03-23 22:07:56 +00:00
|
|
|
|
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));
|
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));
|
2001-08-28 04:17:49 +00:00
|
|
|
add(new GUITabularCreate<QTabularCreate, Qt2BC>(*lv, *this));
|
2001-08-29 02:08:04 +00:00
|
|
|
add(new GUIThesaurus<QThesaurus, 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-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
|
|
|
}
|