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-25 03:00:19 +00:00
|
|
|
#include "QIndexDialog.h"
|
2001-08-26 00:29:39 +00:00
|
|
|
#include "QRefDialog.h"
|
2001-08-25 20:04:15 +00:00
|
|
|
#include "QURLDialog.h"
|
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-21 01:14:54 +00:00
|
|
|
#include "QIndex.h"
|
2001-08-19 13:25:15 +00:00
|
|
|
#include "QParagraph.h"
|
|
|
|
#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-25 20:04:15 +00:00
|
|
|
#include "QURL.h"
|
2001-08-19 13:25:15 +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-21 01:14:54 +00:00
|
|
|
#include "controllers/ControlIndex.h"
|
2001-08-26 00:29:39 +00:00
|
|
|
#include "controllers/ControlRef.h"
|
2001-08-19 13:25:15 +00:00
|
|
|
#include "controllers/ControlSplash.h"
|
2001-08-25 20:04:15 +00:00
|
|
|
#include "controllers/ControlUrl.h"
|
2001-08-19 13:25:15 +00:00
|
|
|
#if 0
|
|
|
|
#include "controllers/ControlButtons.h"
|
|
|
|
#include "controllers/ControlCitation.h"
|
|
|
|
#include "controllers/ControlERT.h"
|
|
|
|
#include "controllers/ControlExternal.h"
|
|
|
|
#include "controllers/ControlFloat.h"
|
|
|
|
#include "controllers/ControlGraphics.h"
|
|
|
|
#include "controllers/ControlInclude.h"
|
|
|
|
#include "controllers/ControlLabel.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/ControlTabularCreate.h"
|
|
|
|
#include "controllers/ControlThesaurus.h"
|
|
|
|
#include "controllers/ControlToc.h"
|
|
|
|
#include "controllers/ControlVCLog.h"
|
|
|
|
#endif
|
2001-03-29 18:58:47 +00:00
|
|
|
|
2001-03-29 15:02:19 +00:00
|
|
|
#include "GUI.h"
|
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-26 18:49:33 +00:00
|
|
|
add(new GUIError<QError, Qt2BC>(*lv, *this));
|
2001-08-23 21:21:50 +00:00
|
|
|
add(new GUIIndex<QIndex, Qt2BC>(*lv, *this));
|
2001-08-26 00:29:39 +00:00
|
|
|
add(new GUIRef<QRef, Qt2BC>(*lv, *this));
|
2001-08-25 20:04:15 +00:00
|
|
|
add(new GUIUrl<QURL, 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
|
|
|
}
|