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 "QCitationDialog.h"
|
|
|
|
#include "QAboutDialog.h"
|
|
|
|
|
|
|
|
// the controller interface
|
|
|
|
#include "QAbout.h"
|
|
|
|
#include "QCharacter.h"
|
|
|
|
#include "QCitation.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"
|
|
|
|
#include "QSearch.h"
|
|
|
|
#include "QSplash.h"
|
|
|
|
#include "QTabularCreate.h"
|
|
|
|
|
|
|
|
#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"
|
|
|
|
#include "qt2BC.h"
|
2001-03-16 17:20:06 +00:00
|
|
|
|
2001-08-19 13:25:15 +00:00
|
|
|
// xforms implementations
|
2001-03-26 19:34:45 +00:00
|
|
|
#include "../xforms/FormError.h"
|
|
|
|
#include "../xforms/FormGraphics.h"
|
|
|
|
#include "../xforms/FormPreferences.h"
|
|
|
|
#include "../xforms/FormTabular.h"
|
|
|
|
|
2001-08-19 13:25:15 +00:00
|
|
|
// the controllers
|
|
|
|
#include "controllers/ControlAboutlyx.h"
|
2001-08-21 01:14:54 +00:00
|
|
|
#include "controllers/ControlCitation.h"
|
|
|
|
#include "controllers/ControlIndex.h"
|
2001-08-19 13:25:15 +00:00
|
|
|
#include "controllers/ControlSplash.h"
|
|
|
|
#if 0
|
2001-03-23 22:07:56 +00:00
|
|
|
#include "controllers/ControlCopyright.h"
|
2001-04-02 20:08:43 +00:00
|
|
|
#include "controllers/ControlCredits.h"
|
2001-08-19 13:25:15 +00:00
|
|
|
#include "controllers/ControlBibitem.h"
|
|
|
|
#include "controllers/ControlBibtex.h"
|
|
|
|
#include "controllers/ControlButtons.h"
|
|
|
|
#include "controllers/ControlCharacter.h"
|
|
|
|
#include "controllers/ControlCitation.h"
|
|
|
|
#include "controllers/ControlCommand.h"
|
|
|
|
#include "controllers/ControlERT.h"
|
|
|
|
#include "controllers/ControlError.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/ControlUrl.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-19 13:25:15 +00:00
|
|
|
add(new GUICitation<QCitation, qt2BC>(*lv, *this));
|
|
|
|
add(new GUIAboutlyx<QAbout, qt2BC>(*lv, *this));
|
2001-08-21 01:14:54 +00:00
|
|
|
add(new GUIIndex<QIndex, 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
|
|
|
}
|