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"
27 #include "QCharacter.h"
28 #include "QCharacterDialog.h"
29 #include "QDocument.h"
30 #include "QDocumentDialog.h"
32 // Here would be an appropriate point to lecture on the evils
33 // of the Qt headers, those most fucked up of disgusting ratholes.
37 #include "QPrefsDialog.h"
39 #include "QLPrintDialog.h"
41 #include "QSearchDialog.h"
43 #include "QSendtoDialog.h"
44 #include "QSpellchecker.h"
45 #include "QSpellcheckerDialog.h"
51 typedef GUI<ControlDocument, QDocument, NoRepeatedApplyReadOnlyPolicy, Qt2BC>
54 typedef GUI<ControlPrefs, QPrefs, OkApplyCancelPolicy, Qt2BC>
57 typedef GUI<ControlPrint, QPrint, OkApplyCancelPolicy, Qt2BC>
60 typedef GUI<ControlSearch, QSearch, NoRepeatedApplyReadOnlyPolicy, Qt2BC>
63 typedef GUI<ControlSendto, QSendto, OkApplyCancelPolicy, Qt2BC>
66 typedef GUI<ControlSpellchecker, QSpellchecker, NoRepeatedApplyReadOnlyPolicy, Qt2BC>
69 struct Dialogs::Impl {
70 Impl(LyXView & lv, Dialogs & d);
72 DocumentDialog document;
77 SpellcheckerDialog spellchecker;
81 Dialogs::Impl::Impl(LyXView & lv, Dialogs & d)
91 void Dialogs::init_pimpl()
93 pimpl_ = new Impl(lyxview_, *this);
103 void Dialogs::showDocument()
105 pimpl_->document.controller().show();
109 void Dialogs::showForks()
113 void Dialogs::showPreamble()
115 pimpl_->document.controller().show();
116 // Oh Angus, won't you help a poor child ?
117 //pimpl_->document.view()->showPreamble();
121 void Dialogs::showPreferences()
123 pimpl_->prefs.controller().show();
127 void Dialogs::showPrint()
129 pimpl_->print.controller().show();
133 void Dialogs::showSearch()
135 pimpl_->search.controller().show();
139 void Dialogs::showSendto()
141 pimpl_->sendto.controller().show();
145 void Dialogs::showSpellchecker()
147 pimpl_->spellchecker.controller().show();