3 * Copyright 1995 Matthias Ettrich
4 * This file is part of LyX, the document processor.
5 * Licence details can be found in the file COPYING.
8 * \author Angus Leeming
10 * Full author contact details are available in file CREDITS
16 #include "controllers/GUI.h"
17 #include "ButtonController.h"
19 #include "ControlDocument.h"
20 #include "ControlForks.h"
21 #include "ControlPrefs.h"
22 #include "ControlPrint.h"
23 #include "ControlSearch.h"
24 #include "ControlSendto.h"
25 #include "ControlSpellchecker.h"
26 #include "ControlTexinfo.h"
28 #include "QCharacter.h"
29 #include "QCharacterDialog.h"
30 #include "QDocument.h"
31 #include "QDocumentDialog.h"
33 // Here would be an appropriate point to lecture on the evils
34 // of the Qt headers, those most fucked up of disgusting ratholes.
38 #include "QPrefsDialog.h"
40 #include "QLPrintDialog.h"
42 #include "QSearchDialog.h"
44 #include "QSendtoDialog.h"
45 #include "QSpellchecker.h"
46 #include "QSpellcheckerDialog.h"
48 #include "QTexinfoDialog.h"
54 typedef GUI<ControlDocument, QDocument, NoRepeatedApplyReadOnlyPolicy, Qt2BC>
57 typedef GUI<ControlPrefs, QPrefs, OkApplyCancelPolicy, Qt2BC>
60 typedef GUI<ControlPrint, QPrint, OkApplyCancelPolicy, Qt2BC>
63 typedef GUI<ControlSearch, QSearch, NoRepeatedApplyReadOnlyPolicy, Qt2BC>
66 typedef GUI<ControlSendto, QSendto, OkApplyCancelPolicy, Qt2BC>
69 typedef GUI<ControlSpellchecker, QSpellchecker, NoRepeatedApplyReadOnlyPolicy, Qt2BC>
72 typedef GUI<ControlTexinfo, QTexinfo, OkCancelPolicy, Qt2BC>
75 struct Dialogs::Impl {
76 Impl(LyXView & lv, Dialogs & d);
78 DocumentDialog document;
83 SpellcheckerDialog spellchecker;
84 TexinfoDialog texinfo;
88 Dialogs::Impl::Impl(LyXView & lv, Dialogs & d)
99 void Dialogs::init_pimpl()
101 pimpl_ = new Impl(lyxview_, *this);
111 void Dialogs::showDocument()
113 pimpl_->document.controller().show();
117 void Dialogs::showForks()
121 void Dialogs::showMathPanel()
124 extern void createMathPanel();
130 void Dialogs::showPreamble()
132 pimpl_->document.controller().show();
133 // Oh Angus, won't you help a poor child ?
134 //pimpl_->document.view()->showPreamble();
138 void Dialogs::showPreferences()
140 pimpl_->prefs.controller().show();
144 void Dialogs::showPrint()
146 pimpl_->print.controller().show();
150 void Dialogs::showSearch()
152 pimpl_->search.controller().show();
156 void Dialogs::showSendto()
158 pimpl_->sendto.controller().show();
162 void Dialogs::showSpellchecker()
164 pimpl_->spellchecker.controller().show();
168 void Dialogs::showTexinfo()
170 pimpl_->texinfo.controller().show();