From 5d4b945e12fee776310530cf5baa5b3a5fa204e1 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Lars=20Gullik=20Bj=C3=B8nnes?= Date: Sun, 16 Dec 2001 09:03:31 +0000 Subject: [PATCH] remove all kde files git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@3221 a592a061-630c-0410-9148-cb99ea01b6c8 --- src/frontends/kde/.cvsignore | 7 - src/frontends/kde/ChangeLog | 262 ---- src/frontends/kde/Dialogs.C | 144 --- src/frontends/kde/FileDialog.C | 80 -- src/frontends/kde/FileDialog_private.C | 39 - src/frontends/kde/FileDialog_private.h | 38 - src/frontends/kde/FormCitation.C | 293 ----- src/frontends/kde/FormCitation.h | 79 -- src/frontends/kde/FormCopyright.C | 35 - src/frontends/kde/FormCopyright.h | 31 - src/frontends/kde/FormDocument.C | 121 -- src/frontends/kde/FormDocument.h | 62 - src/frontends/kde/FormIndex.C | 46 - src/frontends/kde/FormIndex.h | 30 - src/frontends/kde/FormLog.C | 61 - src/frontends/kde/FormLog.h | 31 - src/frontends/kde/FormParagraph.C | 226 ---- src/frontends/kde/FormParagraph.h | 55 - src/frontends/kde/FormPrint.C | 77 -- src/frontends/kde/FormPrint.h | 32 - src/frontends/kde/FormRef.C | 180 --- src/frontends/kde/FormRef.h | 57 - src/frontends/kde/FormTabularCreate.C | 38 - src/frontends/kde/FormTabularCreate.h | 32 - src/frontends/kde/FormToc.C | 277 ---- src/frontends/kde/FormToc.h | 86 -- src/frontends/kde/FormUrl.C | 54 - src/frontends/kde/FormUrl.h | 30 - src/frontends/kde/FormVCLog.C | 59 - src/frontends/kde/FormVCLog.h | 31 - src/frontends/kde/GUIRunTime.C | 102 -- src/frontends/kde/KFormBase.C | 46 - src/frontends/kde/KFormBase.h | 74 -- src/frontends/kde/Makefile.am | 158 --- src/frontends/kde/QtLyXView.h | 13 - src/frontends/kde/Timeout_pimpl.C | 51 - src/frontends/kde/Timeout_pimpl.h | 50 - src/frontends/kde/citationdlg.C | 50 - src/frontends/kde/citationdlg.h | 76 -- src/frontends/kde/copyrightdlg.C | 36 - src/frontends/kde/copyrightdlg.h | 34 - src/frontends/kde/dlg/.cvsignore | 7 - src/frontends/kde/dlg/Makefile.am | 79 -- src/frontends/kde/dlg/README | 99 -- src/frontends/kde/dlg/checkinitorder.pl | 27 - src/frontends/kde/dlg/citationdlgdata.C | 473 ------- src/frontends/kde/dlg/citationdlgdata.h | 72 -- src/frontends/kde/dlg/copyrightdlgdata.C | 137 -- src/frontends/kde/dlg/copyrightdlgdata.h | 49 - src/frontends/kde/dlg/dialogs/citation.dlg | 600 --------- src/frontends/kde/dlg/dialogs/copyright.dlg | 179 --- src/frontends/kde/dlg/dialogs/doc.dlg | 224 ---- src/frontends/kde/dlg/dialogs/docbullets.dlg | 21 - src/frontends/kde/dlg/dialogs/docextra.dlg | 681 ---------- src/frontends/kde/dlg/dialogs/docgeometry.dlg | 1144 ----------------- src/frontends/kde/dlg/dialogs/doclanguage.dlg | 250 ---- src/frontends/kde/dlg/dialogs/docsettings.dlg | 966 -------------- src/frontends/kde/dlg/dialogs/index.dlg | 193 --- src/frontends/kde/dlg/dialogs/log.dlg | 157 --- src/frontends/kde/dlg/dialogs/para.dlg | 224 ---- src/frontends/kde/dlg/dialogs/paraabove.dlg | 415 ------ src/frontends/kde/dlg/dialogs/parabelow.dlg | 415 ------ src/frontends/kde/dlg/dialogs/paraextra.dlg | 443 ------- src/frontends/kde/dlg/dialogs/parageneral.dlg | 318 ----- src/frontends/kde/dlg/dialogs/print.dlg | 944 -------------- src/frontends/kde/dlg/dialogs/tabcreate.dlg | 299 ----- src/frontends/kde/dlg/docbulletsdlgdata.C | 38 - src/frontends/kde/dlg/docbulletsdlgdata.h | 42 - src/frontends/kde/dlg/docdlgdata.C | 181 --- src/frontends/kde/dlg/docdlgdata.h | 53 - src/frontends/kde/dlg/docextradlgdata.C | 482 ------- src/frontends/kde/dlg/docextradlgdata.h | 54 - src/frontends/kde/dlg/docgeometrydlgdata.C | 728 ----------- src/frontends/kde/dlg/docgeometrydlgdata.h | 60 - src/frontends/kde/dlg/doclanguagedlgdata.C | 192 --- src/frontends/kde/dlg/doclanguagedlgdata.h | 46 - src/frontends/kde/dlg/docsettingsdlgdata.C | 667 ---------- src/frontends/kde/dlg/docsettingsdlgdata.h | 64 - src/frontends/kde/dlg/emptytable.C | 81 -- src/frontends/kde/dlg/emptytable.h | 60 - src/frontends/kde/dlg/helpers.C | 36 - src/frontends/kde/dlg/helpers.h | 46 - src/frontends/kde/dlg/indexdlgdata.C | 157 --- src/frontends/kde/dlg/indexdlgdata.h | 51 - src/frontends/kde/dlg/lengthentry.C | 198 --- src/frontends/kde/dlg/lengthentry.h | 77 -- src/frontends/kde/dlg/logdlgdata.C | 129 -- src/frontends/kde/dlg/logdlgdata.h | 49 - src/frontends/kde/dlg/moc/.cvsignore | 7 - src/frontends/kde/dlg/moc/Makefile.am | 74 -- src/frontends/kde/dlg/paraabovedlgdata.C | 274 ---- src/frontends/kde/dlg/paraabovedlgdata.h | 52 - src/frontends/kde/dlg/parabelowdlgdata.C | 274 ---- src/frontends/kde/dlg/parabelowdlgdata.h | 52 - src/frontends/kde/dlg/paradlgdata.C | 181 --- src/frontends/kde/dlg/paradlgdata.h | 53 - src/frontends/kde/dlg/paraextradlgdata.C | 317 ----- src/frontends/kde/dlg/paraextradlgdata.h | 57 - src/frontends/kde/dlg/parageneraldlgdata.C | 229 ---- src/frontends/kde/dlg/parageneraldlgdata.h | 52 - src/frontends/kde/dlg/printdlgdata.C | 614 --------- src/frontends/kde/dlg/printdlgdata.h | 77 -- src/frontends/kde/dlg/tabcreatedlgdata.C | 217 ---- src/frontends/kde/dlg/tabcreatedlgdata.h | 52 - src/frontends/kde/dlg/tabstack.C | 128 -- src/frontends/kde/dlg/tabstack.h | 70 - src/frontends/kde/docdlg.C | 615 --------- src/frontends/kde/docdlg.h | 117 -- src/frontends/kde/indexdlg.C | 36 - src/frontends/kde/indexdlg.h | 34 - src/frontends/kde/kdeBC.C | 38 - src/frontends/kde/kdeBC.h | 39 - src/frontends/kde/logdlg.C | 49 - src/frontends/kde/logdlg.h | 36 - src/frontends/kde/moc/.cvsignore | 7 - src/frontends/kde/moc/Makefile.am | 65 - src/frontends/kde/paradlg.C | 226 ---- src/frontends/kde/paradlg.h | 143 --- src/frontends/kde/paraextradlg.C | 63 - src/frontends/kde/paraextradlg.h | 32 - src/frontends/kde/parageneraldlg.C | 93 -- src/frontends/kde/parageneraldlg.h | 40 - src/frontends/kde/printdlg.C | 73 -- src/frontends/kde/printdlg.h | 142 -- src/frontends/kde/refdlg.C | 178 --- src/frontends/kde/refdlg.h | 104 -- src/frontends/kde/tabcreatedlg.C | 66 - src/frontends/kde/tabcreatedlg.h | 32 - src/frontends/kde/tocdlg.C | 101 -- src/frontends/kde/tocdlg.h | 98 -- src/frontends/kde/urldlg.C | 116 -- src/frontends/kde/urldlg.h | 70 - src/frontends/kde/vclogdlg.C | 50 - src/frontends/kde/vclogdlg.h | 38 - 134 files changed, 20671 deletions(-) delete mode 100644 src/frontends/kde/.cvsignore delete mode 100644 src/frontends/kde/ChangeLog delete mode 100644 src/frontends/kde/Dialogs.C delete mode 100644 src/frontends/kde/FileDialog.C delete mode 100644 src/frontends/kde/FileDialog_private.C delete mode 100644 src/frontends/kde/FileDialog_private.h delete mode 100644 src/frontends/kde/FormCitation.C delete mode 100644 src/frontends/kde/FormCitation.h delete mode 100644 src/frontends/kde/FormCopyright.C delete mode 100644 src/frontends/kde/FormCopyright.h delete mode 100644 src/frontends/kde/FormDocument.C delete mode 100644 src/frontends/kde/FormDocument.h delete mode 100644 src/frontends/kde/FormIndex.C delete mode 100644 src/frontends/kde/FormIndex.h delete mode 100644 src/frontends/kde/FormLog.C delete mode 100644 src/frontends/kde/FormLog.h delete mode 100644 src/frontends/kde/FormParagraph.C delete mode 100644 src/frontends/kde/FormParagraph.h delete mode 100644 src/frontends/kde/FormPrint.C delete mode 100644 src/frontends/kde/FormPrint.h delete mode 100644 src/frontends/kde/FormRef.C delete mode 100644 src/frontends/kde/FormRef.h delete mode 100644 src/frontends/kde/FormTabularCreate.C delete mode 100644 src/frontends/kde/FormTabularCreate.h delete mode 100644 src/frontends/kde/FormToc.C delete mode 100644 src/frontends/kde/FormToc.h delete mode 100644 src/frontends/kde/FormUrl.C delete mode 100644 src/frontends/kde/FormUrl.h delete mode 100644 src/frontends/kde/FormVCLog.C delete mode 100644 src/frontends/kde/FormVCLog.h delete mode 100644 src/frontends/kde/GUIRunTime.C delete mode 100644 src/frontends/kde/KFormBase.C delete mode 100644 src/frontends/kde/KFormBase.h delete mode 100644 src/frontends/kde/Makefile.am delete mode 100644 src/frontends/kde/QtLyXView.h delete mode 100644 src/frontends/kde/Timeout_pimpl.C delete mode 100644 src/frontends/kde/Timeout_pimpl.h delete mode 100644 src/frontends/kde/citationdlg.C delete mode 100644 src/frontends/kde/citationdlg.h delete mode 100644 src/frontends/kde/copyrightdlg.C delete mode 100644 src/frontends/kde/copyrightdlg.h delete mode 100644 src/frontends/kde/dlg/.cvsignore delete mode 100644 src/frontends/kde/dlg/Makefile.am delete mode 100644 src/frontends/kde/dlg/README delete mode 100644 src/frontends/kde/dlg/checkinitorder.pl delete mode 100644 src/frontends/kde/dlg/citationdlgdata.C delete mode 100644 src/frontends/kde/dlg/citationdlgdata.h delete mode 100644 src/frontends/kde/dlg/copyrightdlgdata.C delete mode 100644 src/frontends/kde/dlg/copyrightdlgdata.h delete mode 100644 src/frontends/kde/dlg/dialogs/citation.dlg delete mode 100644 src/frontends/kde/dlg/dialogs/copyright.dlg delete mode 100644 src/frontends/kde/dlg/dialogs/doc.dlg delete mode 100644 src/frontends/kde/dlg/dialogs/docbullets.dlg delete mode 100644 src/frontends/kde/dlg/dialogs/docextra.dlg delete mode 100644 src/frontends/kde/dlg/dialogs/docgeometry.dlg delete mode 100644 src/frontends/kde/dlg/dialogs/doclanguage.dlg delete mode 100644 src/frontends/kde/dlg/dialogs/docsettings.dlg delete mode 100644 src/frontends/kde/dlg/dialogs/index.dlg delete mode 100644 src/frontends/kde/dlg/dialogs/log.dlg delete mode 100644 src/frontends/kde/dlg/dialogs/para.dlg delete mode 100644 src/frontends/kde/dlg/dialogs/paraabove.dlg delete mode 100644 src/frontends/kde/dlg/dialogs/parabelow.dlg delete mode 100644 src/frontends/kde/dlg/dialogs/paraextra.dlg delete mode 100644 src/frontends/kde/dlg/dialogs/parageneral.dlg delete mode 100644 src/frontends/kde/dlg/dialogs/print.dlg delete mode 100644 src/frontends/kde/dlg/dialogs/tabcreate.dlg delete mode 100644 src/frontends/kde/dlg/docbulletsdlgdata.C delete mode 100644 src/frontends/kde/dlg/docbulletsdlgdata.h delete mode 100644 src/frontends/kde/dlg/docdlgdata.C delete mode 100644 src/frontends/kde/dlg/docdlgdata.h delete mode 100644 src/frontends/kde/dlg/docextradlgdata.C delete mode 100644 src/frontends/kde/dlg/docextradlgdata.h delete mode 100644 src/frontends/kde/dlg/docgeometrydlgdata.C delete mode 100644 src/frontends/kde/dlg/docgeometrydlgdata.h delete mode 100644 src/frontends/kde/dlg/doclanguagedlgdata.C delete mode 100644 src/frontends/kde/dlg/doclanguagedlgdata.h delete mode 100644 src/frontends/kde/dlg/docsettingsdlgdata.C delete mode 100644 src/frontends/kde/dlg/docsettingsdlgdata.h delete mode 100644 src/frontends/kde/dlg/emptytable.C delete mode 100644 src/frontends/kde/dlg/emptytable.h delete mode 100644 src/frontends/kde/dlg/helpers.C delete mode 100644 src/frontends/kde/dlg/helpers.h delete mode 100644 src/frontends/kde/dlg/indexdlgdata.C delete mode 100644 src/frontends/kde/dlg/indexdlgdata.h delete mode 100644 src/frontends/kde/dlg/lengthentry.C delete mode 100644 src/frontends/kde/dlg/lengthentry.h delete mode 100644 src/frontends/kde/dlg/logdlgdata.C delete mode 100644 src/frontends/kde/dlg/logdlgdata.h delete mode 100644 src/frontends/kde/dlg/moc/.cvsignore delete mode 100644 src/frontends/kde/dlg/moc/Makefile.am delete mode 100644 src/frontends/kde/dlg/paraabovedlgdata.C delete mode 100644 src/frontends/kde/dlg/paraabovedlgdata.h delete mode 100644 src/frontends/kde/dlg/parabelowdlgdata.C delete mode 100644 src/frontends/kde/dlg/parabelowdlgdata.h delete mode 100644 src/frontends/kde/dlg/paradlgdata.C delete mode 100644 src/frontends/kde/dlg/paradlgdata.h delete mode 100644 src/frontends/kde/dlg/paraextradlgdata.C delete mode 100644 src/frontends/kde/dlg/paraextradlgdata.h delete mode 100644 src/frontends/kde/dlg/parageneraldlgdata.C delete mode 100644 src/frontends/kde/dlg/parageneraldlgdata.h delete mode 100644 src/frontends/kde/dlg/printdlgdata.C delete mode 100644 src/frontends/kde/dlg/printdlgdata.h delete mode 100644 src/frontends/kde/dlg/tabcreatedlgdata.C delete mode 100644 src/frontends/kde/dlg/tabcreatedlgdata.h delete mode 100644 src/frontends/kde/dlg/tabstack.C delete mode 100644 src/frontends/kde/dlg/tabstack.h delete mode 100644 src/frontends/kde/docdlg.C delete mode 100644 src/frontends/kde/docdlg.h delete mode 100644 src/frontends/kde/indexdlg.C delete mode 100644 src/frontends/kde/indexdlg.h delete mode 100644 src/frontends/kde/kdeBC.C delete mode 100644 src/frontends/kde/kdeBC.h delete mode 100644 src/frontends/kde/logdlg.C delete mode 100644 src/frontends/kde/logdlg.h delete mode 100644 src/frontends/kde/moc/.cvsignore delete mode 100644 src/frontends/kde/moc/Makefile.am delete mode 100644 src/frontends/kde/paradlg.C delete mode 100644 src/frontends/kde/paradlg.h delete mode 100644 src/frontends/kde/paraextradlg.C delete mode 100644 src/frontends/kde/paraextradlg.h delete mode 100644 src/frontends/kde/parageneraldlg.C delete mode 100644 src/frontends/kde/parageneraldlg.h delete mode 100644 src/frontends/kde/printdlg.C delete mode 100644 src/frontends/kde/printdlg.h delete mode 100644 src/frontends/kde/refdlg.C delete mode 100644 src/frontends/kde/refdlg.h delete mode 100644 src/frontends/kde/tabcreatedlg.C delete mode 100644 src/frontends/kde/tabcreatedlg.h delete mode 100644 src/frontends/kde/tocdlg.C delete mode 100644 src/frontends/kde/tocdlg.h delete mode 100644 src/frontends/kde/urldlg.C delete mode 100644 src/frontends/kde/urldlg.h delete mode 100644 src/frontends/kde/vclogdlg.C delete mode 100644 src/frontends/kde/vclogdlg.h diff --git a/src/frontends/kde/.cvsignore b/src/frontends/kde/.cvsignore deleted file mode 100644 index 1e006fafea..0000000000 --- a/src/frontends/kde/.cvsignore +++ /dev/null @@ -1,7 +0,0 @@ -Makefile.in -Makefile -*.deps -*.lo -.libs -libkde.la -*moc.C diff --git a/src/frontends/kde/ChangeLog b/src/frontends/kde/ChangeLog deleted file mode 100644 index 1f44e5f4c5..0000000000 --- a/src/frontends/kde/ChangeLog +++ /dev/null @@ -1,262 +0,0 @@ -2001-05-22 Adrien Rebollo - - * docdlg.C (DocDialog): add iso8859-15 support - -2001-05-09 Lars Gullik Bjønnes - - * FormParagraph.C: remove !NEW_INSETS and !NO_PEXTRA cruft - * paradlg.[Ch]: ditto - -2001-04-17 Lars Gullik Bjønnes - - * dlg/emptytable.h: C++ mode, inhrit privately from noncopyable - * dlg/tabstack.h: ditto - * dlg/lengthentry.h: ditto - -2001-04-03 John Levon - - * Form*.C: - * Dialogs.C: s/UndoAll/Restore/, s/ControlButton/ControlButtons/, - add closeEvents where necessary - - * FormCitation.h: - * FormCitation.C: - * citationdlg.C: - * citationdlg.h: - * dlg/citationdlgdata.C: - * dlg/citationdlgdata.h: - * dlg/dialogs/citation.dlg: update to work with MVC properly, - move to qtarch-generated dialog file; still need search dialog - - * paradlg.h: - * paradlg.C: - * FormParagraph.C: only include extra code ifndef NO_PEXTRA - - * docdlg.C: include language.h - -2001-04-02 John Levon - - * Dialogs.C: update for MVC - - * KFormBase.C: - * KFormBase.h: new template class which all Forms are derived from. - - * everything: update for MVC, KFormBase. Ref, Citation, and Toc not - functional at all currently though, and various fixes are needed, - but at least it compiles. - - * dlg/everything: make widget names consistent - -2001-03-29 Baruch Even - - * kdeBC.[Ch]: Changed to use the new GuiBC template. - -2001-03-15 Lars Gullik Bjønnes - - * several files: remove CXX_WORKING_NAMESPACES - -2001-03-14 Angus Leeming - - * Merging changes from BRANCH_MVC back into HEAD. - -2001-03-12 Angus Leeming - - * Dialogs.C (c-tor): Changes associated with storing a vector of - boost::shared_ptrs. - -2001-03-08 Angus Leeming - - * Makefile.am: added ../xforms/FormCredits.lo and - ../xforms/form_credits.lo - - * Dialogs.C: added FormCredits and removed ShowCredits. - -2001-03-07 Angus Leeming - - * FormCitation.[Ch]: cull large chunks of code, making more use of - ControlCitation and associated helper funcs. Also use boost::scoped_ptr - for dialog_. - -2001-03-05 Angus Leeming - - * FormCitation.[Ch]: use ButtonController::input() rather than - ButtonController::valid() to check state of input. The buttons are - now controlled correctly. - -2001-03-02 Angus Leeming - - * kdeBC.[Ch]: Changes associated with the changes to - controllers/ButtonController.[Ch]. Ie, the class is now derived from - ButtonControllerBase and the ButtonPolicy is accessed through a method - bp() rather than the instance bp_. - -2001-02-23 Angus Leeming - - * kdeBC.[Ch]: new files. A ButtonController for KDE. - - * FormCitation.[Ch]: - * citationdlg.[Ch]: A KDE-specific implementation of the - Citation dialog, controlled by the GUI-I ControlCitation. - - * Dialogs.C: Use the controlled Citation dialog. - -2001-03-15 Angus Leeming - - * FormParagraph.C: changes associated with Lars' creation of a - params struct, needed to get the class to compile once again. - -2001-02-26 John Levon - - * : remove noncopyable (now inherited from DialogBase) - - * Makefile.am: - * FileDialog.C: - * FileDialog_private.C: - * moc/Makefile.am: - * FileDialog_private.h: add File Dialog - - * docdlg.C: remove DEFAULT_LANGUAGE stuff - -2001-02-26 Dekel Tsur - - * FormRef.C (apply): Update bookmark #0 after inserting a reference. - -2001-02-22 Angus Leeming - - * : small changes to enable compilation once again. - -2001-02-12 John Levon - - * : move to house style - - * Dialogs.C: add bib, splash, include, logs - - * dlg/README: update - - * Makefile.am: - * FormLog.C: - * FormLog.h: - * FormVCLog.C: - * FormVCLog.h: - * logdlg.C: - * logdlg.h: - * dlg/logdlgdata.C: - * dlg/logdlgdata.h: - * dlg/dialogs/log.dlg: new Log and VCLog dialogs - - * dlg/dialogs/para*.dlg: fix tab order - - * docdlg.C: - * docdlg.h: - * dlg/dialogs/doc*.dlg: tab order, UI improvements - -2001-02-07 John Levon - - * Timeout_pimpl.h: - * Timeout_pimpl.C: - * Makefile.am: add Timeout_pimpl - -2001-01-26 Dekel Tsur - - * dlg/lengthentry.C: Move the '#include ' to the top - (fix compilation with lyxstring). - - * FormPrint.h: Fix for namespace-less compilers. - - * refdlg.C (RefDialog): Use InsetRef::types. - - * FormRef.C (update, apply): Use InsetRef::getName and - InsetRef::getType. - -2000-01-24 John Levon - - * FormParagraph.C: update readonly in correct - place - - * FormParagraph.h: remove bogus include - - * FormRef.C: add tooltip for Goto Ref/Back - - * Makefile.am: add library dependencies - add FormDocument - - * citationdlg.h: - * citationdlg.C: use setSizeHint(). Derive from QWidget - - * dlg/helpers.C: - * dlg/helpers.h: useful widget manipulators - - * dlg/lengthentry.C: - * dlg/lengthentry.h: widget for manipulating LyXLengths - - * dlg/Makefile.am: - * dlg/moc/Makefile.am: - * moc/Makefile.am: - * dlg/copyrightdlgdata.C: - * dlg/copyrightdlgdata.h: - * dlg/docbulletsdlgdata.C: - * dlg/docbulletsdlgdata.h: - * dlg/docdlgdata.C: - * dlg/docdlgdata.h: - * dlg/docextradlgdata.C: - * dlg/docextradlgdata.h: - * dlg/docgeometrydlgdata.C: - * dlg/docgeometrydlgdata.h: - * dlg/doclanguagedlgdata.C: - * dlg/doclanguagedlgdata.h: - * dlg/docsettingsdlgdata.C: - * dlg/docsettingsdlgdata.h: - * dlg/dialogs/doc.dlg: - * dlg/dialogs/docbullets.dlg: - * dlg/dialogs/docextra.dlg: - * dlg/dialogs/docgeometry.dlg: - * dlg/dialogs/doclanguage.dlg: - * dlg/dialogs/docsettings.dlg: - * dlg/dialogs/paraabove.dlg: - * dlg/dialogs/parabelow.dlg: - * FormDocument.C: - * FormDocument.h: - * docdlg.h: - * docdlg.C: - new FormDocument (incomplete) - - * dlg/paraabovedlgdata.C: - * dlg/paraabovedlgdata.h: - * dlg/parabelowdlgdata.C: - * dlg/parabelowdlgdata.h: - * dlg/paradlgdata.C: - * paradlg.h: - * paradlg.C: - * parageneraldlg.C: - * parageneraldlg.h: - * paraextradlg.C: use setSizeHint(). Add tooltips. - use LengthEntry widget. - - * tabstack.C: - * tabstack.h: fix drawing problems - - * printdlg.C: small fix to tooltip - - * refdlg.h: - * refdlg.C: use setSizeHint(). Derive from QWidget. Add - tooltips. - - * tabcreatedlg.C: add tooltip - - * tocdlg.h: - * tocdlg.C: derive from QWidget. Use setSizeHint() - - * urldlg.h: - * urldlg.C: derive from QWidget. Use setSizeHint() - -2000-01-12 John Levon - - * FormTabularCreate.C: use LFUN_INSET_TABULAR Dispatch - instead of creating by hand - - * FormUrl.C: add accelerators for Close and Cancel - - * paradlg.C: add accelerators for Close and Cancel, - clean the code up a little - - * printdlg.C: add FIXME for later diff --git a/src/frontends/kde/Dialogs.C b/src/frontends/kde/Dialogs.C deleted file mode 100644 index 6cebe332a8..0000000000 --- a/src/frontends/kde/Dialogs.C +++ /dev/null @@ -1,144 +0,0 @@ -/** - * \file Dialogs.C - * Copyright 2001 the LyX Team - * Read the file COPYING - * - * \author Jürgen Vigna - * \author John Levon - */ - -// real GUI implementations. Have to go at the top -// because Qt is stupid. -#include "citationdlg.h" -#include "copyrightdlg.h" -#include "indexdlg.h" -#include "logdlg.h" -#include "printdlg.h" -#include "refdlg.h" -#include "tabcreatedlg.h" -//#include "tocdlg.h" -#include "urldlg.h" -#include "vclogdlg.h" - -#include -#include FORMS_H_LOCATION - -#include "QtLyXView.h" - -#include "combox.h" -#include "form_bibitem.h" -#include "form_bibtex.h" -#include "form_browser.h" -#include "form_character.h" -#include "form_credits.h" -#include "form_error.h" -#include "form_external.h" -#include "form_graphics.h" -#include "form_include.h" -#include "form_minipage.h" -#include "form_preamble.h" -#include "form_search.h" -#include "form_splash.h" - -#include "Dialogs.h" -#include "kdeBC.h" -#include "GUI.h" - -// controllers -#include "ControlBibitem.h" -#include "ControlBibtex.h" -#include "ControlCharacter.h" -#include "ControlCitation.h" -#include "ControlCopyright.h" -#include "ControlCredits.h" -#include "ControlError.h" -#include "ControlExternal.h" -#include "ControlGraphics.h" -#include "ControlInclude.h" -#include "ControlIndex.h" -#include "ControlLog.h" -#include "ControlMinipage.h" -#include "ControlPreamble.h" -#include "ControlPrint.h" -#include "ControlRef.h" -#include "ControlSearch.h" -#include "ControlSplash.h" -#include "ControlTabularCreate.h" -#include "ControlUrl.h" -#include "ControlVCLog.h" - -// dialogs -#include "FormBibitem.h" -#include "FormBibtex.h" -#include "FormCharacter.h" -#include "FormCitation.h" -#include "FormCopyright.h" -#include "FormCredits.h" -#include "FormDocument.h" -#include "FormError.h" -#include "FormExternal.h" -#include "FormGraphics.h" -#include "FormInclude.h" -#include "FormIndex.h" -#include "FormLog.h" -#include "FormMinipage.h" -#include "FormMathsPanel.h" -#include "FormParagraph.h" -#include "FormPreamble.h" -#include "FormPreferences.h" -#include "FormPrint.h" -#include "FormRef.h" -#include "FormSearch.h" -#include "FormSplash.h" -#include "FormTabular.h" -#include "FormTabularCreate.h" -//#include "FormToc.h" -#include "FormUrl.h" -#include "FormVCLog.h" - - -#ifdef __GNUG__ -#pragma implementation -#endif - -/* We don't implement this, but it's needed whilst we - * still rely on xforms - */ -SigC::Signal0 Dialogs::redrawGUI; - -Dialogs::Dialogs(LyXView * lv) -{ - splash_.reset(new GUISplash(*this)); - - add(new GUIBibitem(*lv, *this)); - add(new GUIBibtex(*lv, *this)); - add(new GUICharacter(*lv, *this)); - add(new GUICitation(*lv, *this)); - add(new GUICopyright(*lv, *this)); - add(new GUICredits(*lv, *this)); - add(new GUIError(*lv, *this)); - add(new GUIExternal(*lv, *this)); - add(new GUIGraphics(*lv, *this)); - add(new GUIInclude(*lv, *this)); - add(new GUIIndex(*lv, *this)); - add(new GUILog(*lv, *this)); - add(new GUIMinipage(*lv, *this)); - add(new GUIPreamble(*lv, *this)); - add(new GUIPrint(*lv, *this)); - add(new GUIRef(*lv, *this)); - add(new GUISearch(*lv, *this)); - add(new GUITabularCreate(*lv, *this)); - add(new GUIUrl(*lv, *this)); - add(new GUIVCLog(*lv, *this)); - //add(new GUIToc(*lv, *this)); - - add(new FormDocument(lv, this)); - add(new FormMathsPanel(lv, this)); - add(new FormParagraph(lv, this)); - add(new FormPreferences(lv, this)); - add(new FormTabular(lv, this)); - - // reduce the number of connections needed in - // dialogs by a simple connection here. - hideAll.connect(hideBufferDependent.slot()); -} diff --git a/src/frontends/kde/FileDialog.C b/src/frontends/kde/FileDialog.C deleted file mode 100644 index dd2b60de41..0000000000 --- a/src/frontends/kde/FileDialog.C +++ /dev/null @@ -1,80 +0,0 @@ -/** - * \file FileDialog.C - * Copyright 2001 the LyX Team - * Read the file COPYING - * - * \author John Levon - */ - -#ifdef __GNUG__ -#pragma implementation -#endif - -#include -#include -#include - -#include "commandtags.h" - -#include "LString.h" - -#include "frontends/FileDialog.h" - -#include "FileDialog_private.h" - -#include "debug.h" - -using std::make_pair; -using std::pair; -using std::endl; - -FileDialog::FileDialog(LyXView *lv, string const &t, kb_action s, Button b1, Button b2) - : private_(0), lv_(lv), title_(t), success_(s) -{ - // FIXME - to get the icon menu working sensibly we need MVCise the operations - // so we can get told which icons to use ... -} - - -FileDialog::~FileDialog() -{ -} - - -FileDialog::Result const FileDialog::Select(string const & path, string const & mask, string const & suggested) -{ - string filter = mask; - - if (mask.empty()) - filter = _("*|All files"); - - LyXKFileDialog * dlg = new LyXKFileDialog(lv_, success_, path, filter, title_); - - lyxerr[Debug::GUI] << "Select with path \"" << path << "\", mask \"" << filter << "\", suggested \"" << suggested << endl; - - if (!suggested.empty()) - dlg->setSelection(suggested.c_str()); - - if (success_ == LFUN_SELECT_FILE_SYNC) { - FileDialog::Result result; - - lyxerr[Debug::GUI] << "Synchronous FileDialog : " << endl; - - result.first = FileDialog::Chosen; - - int res = dlg->exec(); - - lyxerr[Debug::GUI] << "result " << res << endl; - - if (res == QDialog::Accepted) - result.second = string(dlg->selectedFile().data()); - - delete dlg; - - return result; - } - - dlg->show(); - - return make_pair(FileDialog::Later, string()); -} diff --git a/src/frontends/kde/FileDialog_private.C b/src/frontends/kde/FileDialog_private.C deleted file mode 100644 index 8fec50f9a4..0000000000 --- a/src/frontends/kde/FileDialog_private.C +++ /dev/null @@ -1,39 +0,0 @@ -/** - * \file FileDialog_private.C - * Copyright 2001 the LyX Team - * Read the file COPYING - * - * \author John Levon - */ - -#include - -#include "LString.h" - -#include -#include - -#include "QtLyXView.h" -#include "debug.h" - -#include "FileDialog_private.h" - -LyXKFileDialog::LyXKFileDialog(LyXView * lv, kb_action a, string const & p, string const & m, string const & t) - : KFileDialog(p.c_str(), m.c_str(), KApplication::getKApplication()->topWidget(), t.c_str(), a == LFUN_SELECT_FILE_SYNC, false), - lv_(lv), action_(a) -{ - setCaption(t.c_str()); -} - - -void LyXKFileDialog::done(int what) -{ - lyxerr[Debug::GUI] << "Done FileDialog, value " << what << endl; - - if (action_ == LFUN_SELECT_FILE_SYNC) { - QDialog::done(what); - return; - } else if (what == QDialog::Accepted) - lv_->getLyXFunc()->Dispatch(action_, selectedFile().data()); - delete this; -} diff --git a/src/frontends/kde/FileDialog_private.h b/src/frontends/kde/FileDialog_private.h deleted file mode 100644 index b055981315..0000000000 --- a/src/frontends/kde/FileDialog_private.h +++ /dev/null @@ -1,38 +0,0 @@ -/** - * \file FileDialog_private.h - * Copyright 2001 the LyX Team - * Read the file COPYING - * - * \author John Levon - */ - -#ifndef FILEDIALOG_PRIVATE_H -#define FILEDIALOG_PRIVATE_H - -#include - -#include - -#include "LString.h" -#include "lyxfunc.h" - -#include "frontends/FileDialog.h" - -class LyXView; - -class LyXKFileDialog : public KFileDialog -{ -public: - LyXKFileDialog(LyXView * lv, kb_action a, string const & p, string const & m, string const & t); - - friend class FileDialog; - -protected: - virtual void done(int); - -private: - LyXView * lv_; - int action_; -}; - -#endif // FILEDIALOG_PRIVATE_H diff --git a/src/frontends/kde/FormCitation.C b/src/frontends/kde/FormCitation.C deleted file mode 100644 index d297c6f92b..0000000000 --- a/src/frontends/kde/FormCitation.C +++ /dev/null @@ -1,293 +0,0 @@ -/** - * \file FormCitation.C - * Copyright 2001 the LyX Team - * Read the file COPYING - * - * \author John Levon - * \author Angus Leeming - */ - -#include - -#include - -#include "FormCitation.h" -#include "ControlCitation.h" -#include "citationdlg.h" -#include "gettext.h" -#include "biblio.h" -#include "support/lstrings.h" -#include "helper_funcs.h" - -using std::vector; -using std::pair; -using std::find; - -FormCitation::FormCitation(ControlCitation & c) - : KFormBase(c), - keys(0), chosenkeys(0) -{ -} - - -void FormCitation::apply() -{ - controller().params().setCmdName("cite"); - controller().params().setContents(getStringFromVector(chosenkeys)); - controller().params().setOptions(dialog_->line_after->text()); -} - - -void FormCitation::hide() -{ - chosenkeys.clear(); - selectedKey.erase(); - selectedChosenKey.erase(); - - KFormBase::hide(); -} - - -void FormCitation::build() -{ - dialog_.reset(new CitationDialog(this, 0, _("Citation"))); - - // Manage the ok, apply, restore and cancel/close buttons - bc().setOK(dialog_->button_ok); - bc().setApply(dialog_->button_apply); - bc().setRestore(dialog_->button_restore); - bc().setCancel(dialog_->button_cancel); - - bc().addReadOnly(dialog_->list_available); - bc().addReadOnly(dialog_->list_chosen); - bc().addReadOnly(dialog_->line_after); - bc().addReadOnly(dialog_->button_add); - bc().addReadOnly(dialog_->button_remove); - bc().addReadOnly(dialog_->button_up); - bc().addReadOnly(dialog_->button_down); - //bc().addReadOnly(dialog_->style); -} - - -void FormCitation::update() -{ - keys = biblio::getKeys(controller().bibkeysInfo()); - - updateAvailableList(); - selectedKey.erase(); - - chosenkeys = getVectorFromString(controller().params().getContents()); - updateChosenList(); - selectedChosenKey.erase(); - - dialog_->line_details->setText(""); - dialog_->line_after->setText(controller().params().getOptions().c_str()); - - if (!controller().isReadonly()) - updateButtons(); -} - - -void FormCitation::updateButtons() -{ - bool ischosenkey = !selectedChosenKey.empty(); - - vector::const_iterator iter = - find(chosenkeys.begin(), chosenkeys.end(), selectedKey); - - dialog_->button_add->setEnabled(!selectedKey.empty() && iter == chosenkeys.end()); - dialog_->button_remove->setEnabled(ischosenkey); - dialog_->button_up->setEnabled(ischosenkey); - dialog_->button_down->setEnabled(ischosenkey); -} - - -void FormCitation::updateChosenList() -{ - updateList(dialog_->list_chosen, chosenkeys); -} - - -void FormCitation::updateAvailableList() -{ - updateList(dialog_->list_available, keys); -} - - -void FormCitation::updateList(QListBox * lb, vector const & keys) -{ - lb->setAutoUpdate(false); - lb->clear(); - - for (vector::const_iterator iter = keys.begin(); - iter != keys.end(); ++iter) { - if (!iter->empty()) - lb->insertItem(iter->c_str()); - } - lb->setAutoUpdate(true); - lb->update(); -} - - -void FormCitation::selectChosen() -{ - for (unsigned int i=0; i < dialog_->list_chosen->count(); ++i) { - if (dialog_->list_chosen->text(i)==selectedChosenKey) { - dialog_->list_chosen->setSelected(i,true); - dialog_->list_chosen->setTopItem(i); - break; - } - } -} - - -ButtonPolicy::SMInput FormCitation::add() -{ - if (selectedKey.empty()) - return ButtonPolicy::SMI_NOOP; - - for (vector::const_iterator iter = keys.begin(); - iter != keys.end(); ++iter) { - if (*iter == selectedKey) { - chosenkeys.push_back(*iter); - break; - } - } - - selectedChosenKey.erase(); - updateChosenList(); - updateButtons(); - return ButtonPolicy::SMI_VALID; -} - - -ButtonPolicy::SMInput FormCitation::remove() -{ - if (selectedChosenKey.empty()) - return ButtonPolicy::SMI_NOOP; - - for (vector< string >::iterator iter = chosenkeys.begin(); - iter != chosenkeys.end(); ++iter) { - if (*iter==selectedChosenKey) { - chosenkeys.erase(iter); - break; - } - } - selectedChosenKey.erase(); - updateChosenList(); - updateButtons(); - return ButtonPolicy::SMI_VALID; -} - - -ButtonPolicy::SMInput FormCitation::up() -{ - if (selectedChosenKey.empty()) - return ButtonPolicy::SMI_NOOP; - - // Qt will select the first one on redo, so we need this - string tmp = selectedChosenKey; - - vector< string >::iterator iter = chosenkeys.begin(); - - for (; iter != chosenkeys.end(); ++iter) { - if (*iter==selectedChosenKey && iter!=chosenkeys.begin()) { - string tmp = *iter; - chosenkeys.erase(iter); - chosenkeys.insert(iter-1,tmp); - break; - } - } - if (iter==chosenkeys.end()) - return ButtonPolicy::SMI_NOOP; - - updateChosenList(); - selectedChosenKey=tmp; - selectChosen(); - return ButtonPolicy::SMI_VALID; -} - - -ButtonPolicy::SMInput FormCitation::down() -{ - if (selectedChosenKey.empty()) - return ButtonPolicy::SMI_NOOP; - - // Qt will select the first one on redo, so we need this - string tmp = selectedChosenKey; - - vector< string >::iterator iter = chosenkeys.begin(); - - for (; iter != chosenkeys.end(); ++iter) { - if (*iter == selectedChosenKey && (iter+1)!=chosenkeys.end()) { - string tmp = *iter; - chosenkeys.erase(iter); - chosenkeys.insert(iter+1, tmp); - break; - } - } - if (iter == chosenkeys.end()) - return ButtonPolicy::SMI_NOOP; - - updateChosenList(); - selectedChosenKey=tmp; - selectChosen(); - return ButtonPolicy::SMI_VALID; -} - - -ButtonPolicy::SMInput FormCitation::select_key(char const * key) -{ - if (controller().isReadonly()) - return ButtonPolicy::SMI_INVALID; - - vector::const_iterator iter = - find(chosenkeys.begin(), chosenkeys.end(), key); - - if (iter != chosenkeys.end()) - return ButtonPolicy::SMI_NOOP; - - selectedKey.erase(); - selectedKey = key; - - add(); - return ButtonPolicy::SMI_VALID; -} - - -void FormCitation::highlight_key(char const * key) -{ - highlight(key, dialog_->list_chosen, selectedKey, selectedChosenKey); -} - - -void FormCitation::highlight_chosen(char const * key) -{ - highlight(key, dialog_->list_available, selectedChosenKey, selectedKey); -} - - -void FormCitation::highlight(char const * key, QListBox * lb, - string & selected1, string & selected2) -{ - selected1.erase(); - selected1 = key; - - unsigned int i; - - for (i=0; i < keys.size(); ++i) { - if (keys[i] == key) { - string const tmp = biblio::getInfo(controller().bibkeysInfo(), key); - dialog_->line_details->setText(tmp.c_str()); - lb->clearFocus(); - lb->clearSelection(); - selected2.erase(); - break; - } - } - - if (i == keys.size()) - dialog_->line_details->setText(_("Key not found.")); - - updateButtons(); -} diff --git a/src/frontends/kde/FormCitation.h b/src/frontends/kde/FormCitation.h deleted file mode 100644 index 1dacfbc3a7..0000000000 --- a/src/frontends/kde/FormCitation.h +++ /dev/null @@ -1,79 +0,0 @@ -/** - * \file FormCitation.h - * Copyright 2001 the LyX Team - * Read the file COPYING - * - * \author John Levon - * \author Angus Leeming - */ - -#ifndef FORMCITATION_H -#define FORMCITATION_H - -#include - -#include "KFormBase.h" - -class QListBox; -class ControlCitation; -class CitationDialog; - -class FormCitation : public KFormBase { -public: - FormCitation(ControlCitation &); - - // Functions accessible to the Controller - - /// set the Params variable for the Controller - virtual void apply(); - /// set the Params variable for the Controller - virtual void build(); - /// update dialog before/whilst showing it - virtual void update(); - /// hide the dialog - virtual void hide(); - - /// add a key - ButtonPolicy::SMInput add(); - /// remove a key - ButtonPolicy::SMInput remove(); - /// move a key up - ButtonPolicy::SMInput up(); - /// move a key down - ButtonPolicy::SMInput down(); - /// a key has been highlighted - void highlight_key(char const * key); - /// a chosen key has been highlighted - void highlight_chosen(char const * key); - /// a key has been double-clicked - ButtonPolicy::SMInput select_key(char const * key); - - friend class CitationDialog; - -private: - /// update add,remove,up,down - void updateButtons(); - /// update the available keys list - void updateAvailableList(); - /// update the chosen keys list - void updateChosenList(); - /// select the currently chosen key - void selectChosen(); - /// does the dirty work for highlight_key(), highlight_chosen() - void highlight(char const *, QListBox *, string &, string &); - /// does the dirty work for updateAvailableList(), updateChosenList() - void updateList(QListBox *, std::vector const &); - - /// available citation keys - std::vector keys; - /// chosen citation keys - std::vector chosenkeys; - - /// currently selected key - string selectedKey; - - /// currently selected chosen key - string selectedChosenKey; -}; - -#endif // FORMCITATION_H diff --git a/src/frontends/kde/FormCopyright.C b/src/frontends/kde/FormCopyright.C deleted file mode 100644 index bf7f045ab8..0000000000 --- a/src/frontends/kde/FormCopyright.C +++ /dev/null @@ -1,35 +0,0 @@ -/** - * \file FormCopyright.C - * Copyright 2001 the LyX Team - * Read the file COPYING - * - * \author Jürgen Vigna - * \author John Levon - */ - -#include - -#include "FormCopyright.h" -#include "ControlCopyright.h" -#include "copyrightdlg.h" -#include "gettext.h" -#include "dlg/helpers.h" - -FormCopyright::FormCopyright(ControlCopyright & c) - : KFormBase(c) -{ -} - - -void FormCopyright::build() -{ - dialog_.reset(new CopyrightDialog(this, 0, _("LyX: Copyright and Warranty"))); - - // FIXME: Qt is really badly dumb in resizing these strings if we - // use minimum size hint :/ - dialog_->label_copyright->setText(controller().getCopyright().c_str()); - dialog_->label_licence->setText(controller().getLicence().c_str()); - dialog_->label_disclaimer->setText(controller().getDisclaimer().c_str()); - - bc().setCancel(dialog_->button_cancel); -} diff --git a/src/frontends/kde/FormCopyright.h b/src/frontends/kde/FormCopyright.h deleted file mode 100644 index 8cea3600f8..0000000000 --- a/src/frontends/kde/FormCopyright.h +++ /dev/null @@ -1,31 +0,0 @@ -/** - * \file FormCopyright.h - * Copyright 2001 the LyX Team - * Read the file COPYING - * - * \author Jürgen Vigna - * \author John Levon - */ -#ifndef FORMCOPYRIGHT_H -#define FORMCOPYRIGHT_H - -#include "KFormBase.h" - -class ControlCopyright; -class CopyrightDialog; - -class FormCopyright : public KFormBase { -public: - /// - FormCopyright(ControlCopyright & c); - -private: - /// build the dialog - virtual void build(); - /// not used - virtual void apply() {} - /// not used - void update() {} -}; - -#endif // FORMCOPYRIGHT_H diff --git a/src/frontends/kde/FormDocument.C b/src/frontends/kde/FormDocument.C deleted file mode 100644 index f69367ab31..0000000000 --- a/src/frontends/kde/FormDocument.C +++ /dev/null @@ -1,121 +0,0 @@ -/** - * \file FormDocument.C - * Copyright 2001 the LyX Team - * Read the file COPYING - * - * \author John Levon - */ - -#include - -#include "docdlg.h" - -#include "Dialogs.h" -#include "FormDocument.h" - -#include "CutAndPaste.h" -#include "buffer.h" -#include "Liason.h" - -#include "QtLyXView.h" -#include "debug.h" - -using Liason::setMinibuffer; - -FormDocument::FormDocument(LyXView *v, Dialogs *d) - : dialog_(0), lv_(v), d_(d), h_(0) -{ - d->showLayoutDocument.connect(slot(this, &FormDocument::show)); -} - - -FormDocument::~FormDocument() -{ - delete dialog_; -} - - -void FormDocument::update(bool) -{ - if (!lv_->view()->available()) - return; - - Buffer *buf = lv_->buffer(); - - if (readonly!=buf->isReadonly()) { - readonly = buf->isReadonly(); - dialog_->setReadOnly(readonly); - } - - dialog_->setFromParams(buf->params); -} - - -void FormDocument::apply() -{ - if (readonly) - return; - - if (!lv_->view()->available()) - return; - - BufferParams & params = lv_->buffer()->params; - - if (dialog_->updateParams(params)) - lv_->view()->redoCurrentBuffer(); - - lv_->buffer()->markDirty(); - setMinibuffer(lv_, _("Document layout set")); -} - - -void FormDocument::show() -{ - if (!dialog_) - dialog_ = new DocDialog(this, 0, _("LyX: Document Options"), false); - - if (!dialog_->isVisible()) - h_ = d_->hideBufferDependent.connect(slot(this, &FormDocument::hide)); - - - dialog_->raise(); - dialog_->setActiveWindow(); - update(); - - dialog_->show(); -} - - -bool FormDocument::changeClass(BufferParams & params, int new_class) -{ - if (textclasslist.Load(new_class)) { - // successfully loaded - setMinibuffer(lv_, _("Converting document to new document class...")); - - CutAndPaste cap; - int ret = cap.SwitchLayoutsBetweenClasses( - params.textclass, new_class, - lv_->buffer()->paragraph); - if (ret) { - /* FIXME: error message */ - } - - params.textclass = new_class; - } else - return false; - - return true; -} - - -void FormDocument::close() -{ - h_.disconnect(); -} - - -void FormDocument::hide() -{ - dialog_->hide(); - close(); -} diff --git a/src/frontends/kde/FormDocument.h b/src/frontends/kde/FormDocument.h deleted file mode 100644 index ad21a28cb8..0000000000 --- a/src/frontends/kde/FormDocument.h +++ /dev/null @@ -1,62 +0,0 @@ -/** - * \file FormDocument.h - * Copyright 2001 the LyX Team - * Read the file COPYING - * - * \author John Levon - */ -#ifndef FORMDOCUMENT_H -#define FORMDOCUMENT_H - -#include - -#include "DialogBase.h" -#include "LString.h" -#include "boost/utility.hpp" - -class Dialogs; -class LyXView; -class DocDialog; -class BufferParams; - -/** - * \brief the LyXian side of the complex Document dialog - */ -class FormDocument : public DialogBase { -public: - FormDocument(LyXView *, Dialogs *); - - ~FormDocument(); - - /// Apply changes - void apply(); - /// Update the dialog. - void update(bool switched = false); - /// close the connections - void close(); - /// change the doc class - bool changeClass(BufferParams & params, int new_class); - -private: - /// Create the dialog if necessary, update it and display it. - void show(); - /// Hide the dialog. - void hide(); - - /// Real GUI implementation. - DocDialog * dialog_; - - /// the LyXView we belong to - LyXView * lv_; - - /// Used so we can get at the signals we have to connect to. - Dialogs * d_; - - /// Hide connection. - SigC::Connection h_; - - /// is the buffer readonly ? - bool readonly; -}; - -#endif // FORMDOCUMENT_H diff --git a/src/frontends/kde/FormIndex.C b/src/frontends/kde/FormIndex.C deleted file mode 100644 index d36636b48e..0000000000 --- a/src/frontends/kde/FormIndex.C +++ /dev/null @@ -1,46 +0,0 @@ -/** - * \file FormIndex.C - * Copyright 2001 the LyX Team - * Read the file COPYING - * - * \author John Levon - */ - -#include - -#include "QtLyXView.h" -#include "FormIndex.h" -#include "indexdlg.h" -#include "ControlIndex.h" -#include "gettext.h" - -FormIndex::FormIndex(ControlIndex & c) - : KFormBase(c) -{ -} - - -void FormIndex::build() -{ - dialog_.reset(new IndexDialog(this, 0, _("LyX: Index"))); - - // FIXME - - //bc().setRestore(dialog_->buttonRestore); - bc().setOK(dialog_->button_ok); - //bc().setApply(dialog_->buttonApply); - bc().setCancel(dialog_->button_cancel); - bc().addReadOnly(dialog_->line_index); -} - - -void FormIndex::update() -{ - dialog_->setIndexText(controller().params().getContents().c_str()); -} - - -void FormIndex::apply() -{ - controller().params().setContents(dialog_->getIndexText()); -} diff --git a/src/frontends/kde/FormIndex.h b/src/frontends/kde/FormIndex.h deleted file mode 100644 index b990935147..0000000000 --- a/src/frontends/kde/FormIndex.h +++ /dev/null @@ -1,30 +0,0 @@ -/** - * \file FormIndex.h - * Copyright 2001 the LyX Team - * Read the file COPYING - * - * \author John Levon - */ - -#ifndef FORMINDEX_H -#define FORMINDEX_H - -#include "KFormBase.h" - -class ControlIndex; -class IndexDialog; - -class FormIndex : public KFormBase { -public: - FormIndex(ControlIndex & c); - -private: - /// apply changes - virtual void apply(); - /// build the dialog - virtual void build(); - /// update the dialog - virtual void update(); -}; - -#endif // FORMINDEX_H diff --git a/src/frontends/kde/FormLog.C b/src/frontends/kde/FormLog.C deleted file mode 100644 index f32462d424..0000000000 --- a/src/frontends/kde/FormLog.C +++ /dev/null @@ -1,61 +0,0 @@ -/** - * \file FormLog.C - * Copyright 2001 the LyX Team - * Read the file COPYING - * - * \author John Levon - */ - -#include -#include - -#include "FormLog.h" -#include "ControlLog.h" -#include "logdlg.h" -#include "gettext.h" - -using std::ifstream; -using std::getline; - -FormLog::FormLog(ControlLog & c) - : KFormBase(c) -{ -} - - -void FormLog::update() -{ - std::pair const logfile = controller().logfile(); - - if (logfile.first == Buffer::buildlog) - dialog_->setCaption(_("Build log")); - else - dialog_->setCaption(_("LaTeX log")); - - dialog_->setLogText(""); - - ifstream ifstr(logfile.second.c_str()); - if (!ifstr) { - if (logfile.first == Buffer::buildlog) - dialog_->setLogText(_("No build log file found")); - else - dialog_->setLogText(_("No LaTeX log file found")); - return; - } - - string text; - string line; - - while (getline(ifstr, line)) - text += line + "\n"; - - dialog_->setLogText(text); -} - - -void FormLog::build() -{ - dialog_.reset(new LogDialog(this, 0, _("LyX: LaTeX Log"))); - - bc().setCancel(dialog_->button_cancel); -} diff --git a/src/frontends/kde/FormLog.h b/src/frontends/kde/FormLog.h deleted file mode 100644 index 2fc79ac0b7..0000000000 --- a/src/frontends/kde/FormLog.h +++ /dev/null @@ -1,31 +0,0 @@ -/** - * \file FormLog.h - * Copyright 2001 the LyX Team - * Read the file COPYING - * - * \author John Levon - */ - -#ifndef FORMLOG_H -#define FORMLOG_H - -#include "KFormBase.h" - -class ControlLog; -class LogDialog; - -class FormLog : public KFormBase { -public: - FormLog(ControlLog & c); - - /// update the dialog - virtual void update(); - - /// apply - virtual void apply() {}; - - /// build dialog - virtual void build(); -}; - -#endif // FORMLOG_H diff --git a/src/frontends/kde/FormParagraph.C b/src/frontends/kde/FormParagraph.C deleted file mode 100644 index 17c334d43d..0000000000 --- a/src/frontends/kde/FormParagraph.C +++ /dev/null @@ -1,226 +0,0 @@ -/** - * \file FormParagraph.C - * Copyright 2001 the LyX Team - * Read the file COPYING - * - * \author John Levon - */ - -#include - -#include "paradlg.h" - -#include "Dialogs.h" -#include "FormParagraph.h" -#include "Liason.h" -#include "gettext.h" -#include "buffer.h" -#include "QtLyXView.h" -#include "lyxtext.h" -#include "debug.h" - -using Liason::setMinibuffer; -using std::endl; - -FormParagraph::FormParagraph(LyXView *v, Dialogs *d) - : dialog_(0), lv_(v), d_(d), h_(0) -{ - d->showLayoutParagraph.connect(slot(this, &FormParagraph::show)); -} - - -FormParagraph::~FormParagraph() -{ - delete dialog_; -} - - -void FormParagraph::update(bool switched) -{ - if (switched) { - hide(); - return; - } - - if (!lv_->view()->available()) - return; - - Buffer *buf = lv_->view()->buffer(); - - if (readonly != buf->isReadonly()) { - readonly = buf->isReadonly(); - dialog_->setReadOnly(readonly); - } - - LyXText * text = 0; - - if (lv_->view()->theLockingInset()) - text = lv_->view()->theLockingInset()->getLyXText(lv_->view()); - - if (!text) - text = lv_->view()->text; - - Paragraph const * par = text->cursor.par(); - - int align = par->GetAlign(); - - if (align==LYX_ALIGN_LAYOUT) - align = textclasslist.Style(buf->params.textclass, par->GetLayout()).align; - -#if 0 - // Just remove this and change physpar to par - Paragraph const * physpar = par; - - if (physpar->params.spaceTop().kind() == VSpace::LENGTH) { - LyXGlueLength above = physpar->params.spaceTop().length(); - lyxerr[Debug::GUI] << "Reading above space : \"" - << physpar->params.spaceTop().length().asString() << "\"" << endl; - - dialog_->setAboveLength(above.value(), above.plusValue(), above.minusValue(), - above.unit(), above.plusUnit(), above.minusUnit()); - } else - dialog_->setAboveLength(0.0, 0.0, 0.0, LyXLength::UNIT_NONE, LyXLength::UNIT_NONE, LyXLength::UNIT_NONE); - - if (physpar->params.spaceBottom().kind() == VSpace::LENGTH) { - LyXGlueLength below = physpar->params.spaceBottom().length(); - lyxerr[Debug::GUI] << "Reading below space : \"" - << physpar->params.spaceBottom().length().asString() << "\"" << endl; - - dialog_->setBelowLength(below.value(), below.plusValue(), below.minusValue(), - below.unit(), below.plusUnit(), below.minusUnit()); - } else - dialog_->setBelowLength(0.0, 0.0, 0.0, LyXLength::UNIT_NONE, LyXLength::UNIT_NONE, LyXLength::UNIT_NONE); - - dialog_->setLabelWidth(text->cursor.par()->GetLabelWidthString().c_str()); - dialog_->setAlign(align); - - dialog_->setChecks(physpar->params.lineTop(), - physpar->params.lineBottom(), - physpar->params.pagebreakTop(), - physpar->params.pagebreakBottom(), - physpar->params.noindent()); - - dialog_->setSpace(physpar->params.spaceTop().kind(), - physpar->params.spaceBottom().kind(), - physpar->params.spaceTop().keep(), - physpar->params.spaceBottom().keep()); -#else - if (par->params.spaceTop().kind() == VSpace::LENGTH) { - LyXGlueLength above = par->params.spaceTop().length(); - lyxerr[Debug::GUI] << "Reading above space : \"" - << par->params.spaceTop().length().asString() << "\"" << endl; - - dialog_->setAboveLength(above.value(), above.plusValue(), - above.minusValue(), - above.unit(), above.plusUnit(), - above.minusUnit()); - } else - dialog_->setAboveLength(0.0, 0.0, 0.0, - LyXLength::UNIT_NONE, - LyXLength::UNIT_NONE, - LyXLength::UNIT_NONE); - - if (par->params.spaceBottom().kind() == VSpace::LENGTH) { - LyXGlueLength below = par->params.spaceBottom().length(); - lyxerr[Debug::GUI] << "Reading below space : \"" - << below.asString() << "\"" << endl; - - dialog_->setBelowLength(below.value(), - below.plusValue(), - below.minusValue(), - below.unit(), - below.plusUnit(), - below.minusUnit()); - } else - dialog_->setBelowLength(0.0, 0.0, 0.0, - LyXLength::UNIT_NONE, - LyXLength::UNIT_NONE, - LyXLength::UNIT_NONE); - - dialog_->setLabelWidth(text->cursor.par()->GetLabelWidthString()); - dialog_->setAlign(align); - - dialog_->setChecks(par->params.lineTop(), - par->params.lineBottom(), - par->params.pagebreakTop(), - par->params.pagebreakBottom(), - par->params.noindent()); - - dialog_->setSpace(par->params.spaceTop().kind(), - par->params.spaceBottom().kind(), - par->params.spaceTop().keep(), - par->params.spaceBottom().keep()); -#endif -} - - -void FormParagraph::apply() -{ - if (readonly) - return; - - VSpace spaceabove; - VSpace spacebelow; - - if (dialog_->getSpaceAboveKind() == VSpace::LENGTH) - spaceabove = VSpace(dialog_->getAboveLength()); - else - spaceabove = VSpace(dialog_->getSpaceAboveKind()); - - if (dialog_->getSpaceBelowKind() == VSpace::LENGTH) - spacebelow = VSpace(dialog_->getBelowLength()); - else - spacebelow = VSpace(dialog_->getSpaceBelowKind()); - - spaceabove.setKeep(dialog_->getAboveKeep()); - spacebelow.setKeep(dialog_->getBelowKeep()); - - lyxerr[Debug::GUI] << "Setting above space \"" - << LyXGlueLength(spaceabove.length().asString()).asString() << "\"" << endl; - lyxerr[Debug::GUI] << "Setting below space \"" - << LyXGlueLength(spacebelow.length().asString()).asString() << "\"" << endl; - - lv_->view()->text->SetParagraph(lv_->view(), - dialog_->getLineAbove(), dialog_->getLineBelow(), - dialog_->getPagebreakAbove(), dialog_->getPagebreakBelow(), - spaceabove, spacebelow, dialog_->getAlign(), - dialog_->getLabelWidth(), dialog_->getNoIndent()); - - lv_->view()->update(lv_->view()->text, - BufferView::SELECT | - BufferView::FITCUR | - BufferView::CHANGE); - lv_->buffer()->markDirty(); - setMinibuffer(lv_, _("Paragraph layout set")); -} - - -void FormParagraph::show() -{ - if (!dialog_) - dialog_ = new ParaDialog(this, 0, - _("LyX: Paragraph Options"), false); - - if (!dialog_->isVisible()) - h_ = d_->hideBufferDependent - .connect(slot(this, &FormParagraph::hide)); - - dialog_->raise(); - dialog_->setActiveWindow(); - update(); - - dialog_->show(); -} - - -void FormParagraph::close() -{ - h_.disconnect(); -} - - -void FormParagraph::hide() -{ - dialog_->hide(); - close(); -} diff --git a/src/frontends/kde/FormParagraph.h b/src/frontends/kde/FormParagraph.h deleted file mode 100644 index 7dfdeadaf3..0000000000 --- a/src/frontends/kde/FormParagraph.h +++ /dev/null @@ -1,55 +0,0 @@ -/** - * \file FormParagraph.h - * Copyright 2001 the LyX Team - * Read the file COPYING - * - * \author John Levon - */ - -#ifndef FORMPARAGRAPH_H -#define FORMPARAGRAPH_H - -#include "DialogBase.h" -#include "LString.h" -#include "boost/utility.hpp" - -class Dialogs; -class LyXView; -class ParaDialog; - -class FormParagraph : public DialogBase { -public: - FormParagraph(LyXView *, Dialogs *); - - ~FormParagraph(); - - /// Apply changes - void apply(); - /// Update the dialog. - void update(bool switched = false); - /// close the connections - void close(); - -private: - /// Create the dialog if necessary, update it and display it. - void show(); - /// Hide the dialog. - void hide(); - - /// Real GUI implementation. - ParaDialog * dialog_; - - /// the LyXView we belong to - LyXView * lv_; - - /// Used so we can get at the signals we have to connect to. - Dialogs * d_; - - /// Hide connection. - SigC::Connection h_; - - /// readonly file or not - bool readonly; -}; - -#endif // FORMPARAGRAPH_H diff --git a/src/frontends/kde/FormPrint.C b/src/frontends/kde/FormPrint.C deleted file mode 100644 index 81a6591896..0000000000 --- a/src/frontends/kde/FormPrint.C +++ /dev/null @@ -1,77 +0,0 @@ -/** - * \file FormPrint.C - * Copyright 2001 the LyX Team - * Read the file COPYING - * - * \author John Levon - */ - -#include - -#include "printdlg.h" -#include "QtLyXView.h" -#include "PrinterParams.h" -#include "gettext.h" -#include "support/lstrings.h" - -#include "FormPrint.h" -#include "ControlPrint.h" - -using std::max; - -FormPrint::FormPrint(ControlPrint & c) - : KFormBase(c) -{ -} - - -void FormPrint::build() -{ - dialog_.reset(new PrintDialog(this, 0, _("LyX: Print"))); - - bc().setOK(dialog_->button_ok); - bc().setCancel(dialog_->button_cancel); -} - - -void FormPrint::apply() -{ - string from; - int to(0); - - if (strlen(dialog_->getFrom())) { - from = dialog_->getFrom(); - if (strlen(dialog_->getTo())) - to = strToInt(dialog_->getTo()); - } - - controller().params() = PrinterParams(dialog_->getTarget(), - dialog_->getPrinter(), dialog_->getFile(), - dialog_->getWhichPages(), from, to, dialog_->getReverse(), - dialog_->getSort(), max(strToInt(dialog_->getCount()), 1)); -} - - -void FormPrint::update() -{ - PrinterParams & pp(controller().params()); - - dialog_->setTarget(pp.target); - dialog_->setPrinter(pp.printer_name.c_str()); - dialog_->setFile(pp.file_name.c_str()); - dialog_->setWhichPages(pp.which_pages); - dialog_->setReverse(pp.reverse_order); - dialog_->setSort(pp.unsorted_copies); - dialog_->setCount(pp.count_copies); - - if (!pp.from_page.empty()) { - dialog_->setFrom(pp.from_page.c_str()); - if (pp.to_page) - dialog_->setTo(tostr(pp.to_page).c_str()); - else - dialog_->setTo(""); - } else { - dialog_->setFrom(""); - dialog_->setTo(""); - } -} diff --git a/src/frontends/kde/FormPrint.h b/src/frontends/kde/FormPrint.h deleted file mode 100644 index 9b70e9bad5..0000000000 --- a/src/frontends/kde/FormPrint.h +++ /dev/null @@ -1,32 +0,0 @@ -/** - * \file FormPrint.h - * Copyright 2001 the LyX Team - * Read the file COPYING - * - * \author John Levon - */ - -#ifndef FORMPRINT_H -#define FORMPRINT_H - -#include "KFormBase.h" - -class ControlPrint; -class PrintDialog; - -/// -class FormPrint : public KFormBase { -public: - /// - FormPrint(ControlPrint & c); - -private: - /// apply dialog - virtual void apply(); - /// build dialog - virtual void build(); - /// update dialog - virtual void update(); -}; - -#endif // FORMPRINT_H diff --git a/src/frontends/kde/FormRef.C b/src/frontends/kde/FormRef.C deleted file mode 100644 index 63a2da4a6d..0000000000 --- a/src/frontends/kde/FormRef.C +++ /dev/null @@ -1,180 +0,0 @@ -/** - * \file FormRef.C - * Copyright 2001 the LyX Team - * Read the file COPYING - * - * \author John Levon - */ - -#include - -#include "support/lstrings.h" - -#include "FormRef.h" -#include "ControlRef.h" -#include "gettext.h" -#include "refdlg.h" -#include "insets/insetref.h" - -#include - -using std::endl; - -FormRef::FormRef(ControlRef & c) - : KFormBase(c), - sort_(0), gotowhere_(GOTOREF), refs_(0) -{ -} - - -void FormRef::build() -{ - dialog_.reset(new RefDialog(this, 0, _("LyX: Cross Reference"), false)); - - //bc().setRestore(dialog_->buttonRestore); - bc().setOK(dialog_->buttonOk); - //bc().setApply(dialog_->buttonApply); - bc().setCancel(dialog_->buttonCancel); - // FIXME -} - - -void FormRef::update() -{ - dialog_->reference->setText(controller().params().getContents().c_str()); - dialog_->refname->setText(controller().params().getOptions().c_str()); - - dialog_->type->setCurrentItem(InsetRef::getType(controller().params().getCmdName())); - - // Name is irrelevant to LaTeX/Literate documents - dialog_->refname->setEnabled(controller().docType() != ControlRef::LATEX && - controller().docType() != ControlRef::LITERATE); - - // type is irrelevant to LinuxDoc/DocBook. - if (controller().docType() == ControlRef::LINUXDOC || - controller().docType() == ControlRef::DOCBOOK) { - dialog_->type->setCurrentItem(0); - dialog_->type->setEnabled(false); - } else - dialog_->type->setEnabled(true); - - dialog_->buttonGoto->setText(_("&Goto reference")); - QToolTip::remove(dialog_->buttonGoto); - QToolTip::add(dialog_->buttonGoto,_("Jump to selected reference")); - - gotowhere_ = GOTOREF; - - dialog_->sort->setChecked(sort_); - - do_ref_update(); - - //dialog_->buttonGoto->setEnabled(params.getContents()!=""); - //dialog_->buttonOk->setEnabled(params.getContents()!=""); -} - - -void FormRef::apply() -{ - controller().params().setCmdName(InsetRef::getName(dialog_->type->currentItem())); - controller().params().setContents(dialog_->reference->text()); - controller().params().setOptions(dialog_->refname->text()); -} - - -void FormRef::select(char const * text) -{ - highlight(text); - goto_ref(); -} - - -void FormRef::highlight(char const * text) -{ - // FIXME - if (gotowhere_==GOTOBACK) - goto_ref(); - - dialog_->buttonGoto->setEnabled(true); -} - - -void FormRef::set_sort(bool on) -{ - if (on != sort_) { - sort_=on; - dialog_->refs->clear(); - updateRefs(); - } -} - - -void FormRef::goto_ref() -{ - /* FIXME - switch (gotowhere_) { - case GOTOREF: - lv_->getLyXFunc()->Dispatch(LFUN_REF_GOTO, dialog_->reference->text()); - gotowhere=GOTOBACK; - dialog_->buttonGoto->setText(_("&Go back")); - QToolTip::remove(dialog_->buttonGoto); - QToolTip::add(dialog_->buttonGoto,_("Jump back to original position")); - break; - case GOTOBACK: - lv_->getLyXFunc()->Dispatch(LFUN_BOOKMARK_GOTO, "0"); - gotowhere=GOTOREF; - dialog_->buttonGoto->setText(_("&Goto reference")); - QToolTip::remove(dialog_->buttonGoto); - QToolTip::add(dialog_->buttonGoto,_("Jump to selected reference")); - break; - } - */ -} - - -void FormRef::updateRefs() -{ - // list will be re-done, should go back if necessary - /* FIXME if (gotowhere == GOTOBACK) { - lv_->getLyXFunc()->Dispatch(LFUN_BOOKMARK_GOTO, "0"); - gotowhere = GOTOREF; - dialog_->buttonGoto->setText(_("&Goto reference")); - QToolTip::remove(dialog_->buttonGoto); - QToolTip::add(dialog_->buttonGoto,_("Jump to selected reference")); - }*/ - - dialog_->refs->setAutoUpdate(false); - - // need this because Qt will send a highlight() here for - // the first item inserted - string tmp(dialog_->reference->text()); - - for (vector::const_iterator iter = refs_.begin(); - iter != refs_.end(); ++iter) { - if (sort_) - dialog_->refs->inSort(iter->c_str()); - else - dialog_->refs->insertItem(iter->c_str()); - } - - dialog_->reference->setText(tmp.c_str()); - - for (unsigned int i=0; i < dialog_->refs->count(); ++i) { - if (!compare(dialog_->reference->text(), - dialog_->refs->text(i))) - dialog_->refs->setCurrentItem(i); - } - - dialog_->refs->setAutoUpdate(true); - dialog_->refs->update(); -} - - -void FormRef::do_ref_update() -{ - refs_.clear(); - dialog_->refs->clear(); - refs_ = controller().getLabelList(); - if (!refs_.empty()) - dialog_->sort->setEnabled(true); - updateRefs(); -} diff --git a/src/frontends/kde/FormRef.h b/src/frontends/kde/FormRef.h deleted file mode 100644 index 590f7108ab..0000000000 --- a/src/frontends/kde/FormRef.h +++ /dev/null @@ -1,57 +0,0 @@ -/** - * \file FormRef.h - * Copyright 2001 the LyX Team - * Read the file COPYING - * - * \author John Levon - */ - -#ifndef FORMREF_H -#define FORMREF_H - -#include "KFormBase.h" - -class ControlRef; -class RefDialog; - -class FormRef : public KFormBase { -public: - FormRef(ControlRef & c); - - /// double-click a ref - void select(char const *); - /// highlight a ref - void highlight(char const *); - /// set sort - void set_sort(bool); - /// goto a ref (or back) - void goto_ref(); - /// update just the refs - void do_ref_update(); - -private: - enum GotoType { - GOTOREF, GOTOBACK - }; - - /// apply changes - virtual void apply(); - /// build dialog - virtual void build(); - /// update dialog - virtual void update(); - - /// update the keys list - void updateRefs(void); - - /// to sort or not to sort - bool sort_; - - /// where to go - GotoType gotowhere_; - - /// available references - std::vector refs_; -}; - -#endif // FORMREF_H diff --git a/src/frontends/kde/FormTabularCreate.C b/src/frontends/kde/FormTabularCreate.C deleted file mode 100644 index 8d8676f618..0000000000 --- a/src/frontends/kde/FormTabularCreate.C +++ /dev/null @@ -1,38 +0,0 @@ -/** - * \file FormTabularCreate.C - * Copyright 2001 the LyX Team - * Read the file COPYING - * - * \author John Levon - */ - -#include - -#include "gettext.h" -#include "support/lstrings.h" - -#include "FormTabularCreate.h" -#include "ControlTabularCreate.h" -#include "tabcreatedlg.h" - -FormTabularCreate::FormTabularCreate(ControlTabularCreate & c) - : KFormBase(c) -{ -} - - -void FormTabularCreate::build() -{ - dialog_.reset(new TabularCreateDialog(this, 0, _("LyX: Insert Table"))); - - bc().setOK(dialog_->button_ok); - bc().setCancel(dialog_->button_cancel); -} - - -void FormTabularCreate::apply() -{ - // FIXME: angus, what's with this ? Why should the dialogs know about - // how LFUN represents the row, column ... this should be params(uint, uint) - controller().params() = tostr(dialog_->spin_rows->value()) + " " + tostr(dialog_->spin_cols->value()); -} diff --git a/src/frontends/kde/FormTabularCreate.h b/src/frontends/kde/FormTabularCreate.h deleted file mode 100644 index 82a3e4370a..0000000000 --- a/src/frontends/kde/FormTabularCreate.h +++ /dev/null @@ -1,32 +0,0 @@ -/** - * \file FormTabularCreate.h - * Copyright 2001 the LyX Team - * Read the file COPYING - * - * \author John Levon - */ - -#ifndef FORMTABULARCREATE_H -#define FORMTABULARCREATE_H - -#include "KFormBase.h" - -class ControlTabularCreate; -class TabularCreateDialog; - -/// -class FormTabularCreate : public KFormBase { -public: - /// - FormTabularCreate(ControlTabularCreate & c); - -private: - /// apply dialog - virtual void apply(); - /// build dialog - virtual void build(); - /// not used - virtual void update() {}; -}; - -#endif // FORMTABULARCREATE_H diff --git a/src/frontends/kde/FormToc.C b/src/frontends/kde/FormToc.C deleted file mode 100644 index adadb1a13f..0000000000 --- a/src/frontends/kde/FormToc.C +++ /dev/null @@ -1,277 +0,0 @@ -/** - * \file FormToc.C - * Copyright 2001 the LyX Team - * Read the file COPYING - * - * \author John Levon - */ - -#include - -#include - -#include "tocdlg.h" - -#include "Dialogs.h" -#include "FormToc.h" -#include "gettext.h" -#include "buffer.h" -#include "support/lstrings.h" -#include "QtLyXView.h" -#include "lyxfunc.h" -#include "debug.h" - -using std::vector; -using std::pair; -using std::stack; -using std::endl; - -// FIXME: we should be able to move sections around like klyx1 can - -FormToc::FormToc(LyXView *v, Dialogs *d) - : dialog_(0), lv_(v), d_(d), inset_(0), h_(0), u_(0), ih_(0), - toclist(0), type(Buffer::TOC_TOC), depth(1) -{ - // let the dialog be shown - // This is a permanent connection so we won't bother - // storing a copy because we won't be disconnecting. - d->showTOC.connect(slot(this, &FormToc::showTOC)); - d->createTOC.connect(slot(this, &FormToc::createTOC)); -} - - -FormToc::~FormToc() -{ - delete dialog_; -} - - -void FormToc::showTOC(InsetCommand * const inset) -{ - // FIXME: when could inset be 0 here ? - if (inset == 0) - return; - - inset_ = inset; - ih_ = inset_->hideDialog.connect(slot(this,&FormToc::hide)); - params = inset->params(); - - show(); -} - - -void FormToc::createTOC(string const & arg) -{ - if (inset_) - close(); - - params.setFromString(arg); - show(); -} - - -void FormToc::updateToc(int newdepth) -{ - if (!lv_->view()->available()) { - toclist.clear(); - dialog_->tree->clear(); - return; - } - - vector< vector > tmp = - lv_->view()->buffer()->getTocList(); - - // Check if all elements are the same. - if (newdepth == depth && toclist.size() == tmp[type].size()) { - unsigned int i = 0; - for (; i < toclist.size(); ++i) { - if (toclist[i] != tmp[type][i]) - break; - } - if (i >= toclist.size()) - return; - } - - depth=newdepth; - - toclist = tmp[type]; - - dialog_->tree->clear(); - if (toclist.empty()) - return; - - dialog_->tree->setUpdatesEnabled(false); - - int curdepth = 0; - stack< pair< QListViewItem *, QListViewItem *> > istack; - QListViewItem * last = 0; - QListViewItem * parent = 0; - QListViewItem * item; - - // Yes, it is this ugly. Two reasons - root items must have a QListView parent, - // rather than QListViewItem; and the TOC can move in and out an arbitrary number - // of levels - - for (vector< Buffer::TocItem >::const_iterator iter = toclist.begin(); - iter != toclist.end(); ++iter) { - if (iter->depth == curdepth) { - // insert it after the last one we processed - if (!parent) - item = (last) ? (new QListViewItem(dialog_->tree,last)) : (new QListViewItem(dialog_->tree)); - else - item = (last) ? (new QListViewItem(parent,last)) : (new QListViewItem(parent)); - } else if (iter->depth > curdepth) { - int diff = iter->depth - curdepth; - // first save old parent and last - while (diff--) - istack.push(pair< QListViewItem *, QListViewItem * >(parent,last)); - item = (last) ? (new QListViewItem(last)) : (new QListViewItem(dialog_->tree)); - parent = last; - } else { - int diff = curdepth - iter->depth; - pair< QListViewItem *, QListViewItem * > top; - // restore context - while (diff--) { - top = istack.top(); - istack.pop(); - } - parent = top.first; - last = top.second; - // insert it after the last one we processed - if (!parent) - item = (last) ? (new QListViewItem(dialog_->tree,last)) : (new QListViewItem(dialog_->tree)); - else - item = (last) ? (new QListViewItem(parent,last)) : (new QListViewItem(parent)); - } - lyxerr[Debug::GUI] << "Table of contents" << endl << "Added item " << iter->str.c_str() - << " at depth " << iter->depth << ", previous sibling \"" << (last ? last->text(0) : "0") - << "\", parent \"" << (parent ? parent->text(0) : "0") << "\"" << endl; - item->setText(0,iter->str.c_str()); - item->setOpen(iter->depth < depth); - curdepth = iter->depth; - last = item; - } - - dialog_->tree->setUpdatesEnabled(true); - dialog_->tree->update(); -} - - -void FormToc::setType(Buffer::TocType toctype) -{ - type = toctype; - switch (type) { - case Buffer::TOC_TOC: - dialog_->setCaption(_("Table of Contents")); - dialog_->tree->setColumnText(0,_("Table of Contents")); - dialog_->depth->setEnabled(true); - break; - case Buffer::TOC_LOF: - dialog_->setCaption(_("List of Figures")); - dialog_->tree->setColumnText(0,_("List of Figures")); - dialog_->depth->setEnabled(false); - break; - case Buffer::TOC_LOT: - dialog_->setCaption(_("List of Tables")); - dialog_->tree->setColumnText(0,_("List of Tables")); - dialog_->depth->setEnabled(false); - break; - case Buffer::TOC_LOA: - dialog_->setCaption(_("List of Algorithms")); - dialog_->tree->setColumnText(0,_("List of Algorithms")); - dialog_->depth->setEnabled(false); - break; - } -} - - -void FormToc::set_depth(int newdepth) -{ - if (newdepth != depth) - updateToc(newdepth); -} - - -// we can safely ignore the parameter because we can always update -void FormToc::update(bool) -{ - if (params.getCmdName() == "tableofcontents") { - setType(Buffer::TOC_TOC); - dialog_->menu->setCurrentItem(0); - } else if (params.getCmdName() == "listoffigures") { - setType(Buffer::TOC_LOF); - dialog_->menu->setCurrentItem(1); - } else if (params.getCmdName() == "listoftables") { - setType(Buffer::TOC_LOT); - dialog_->menu->setCurrentItem(2); - } else { - setType(Buffer::TOC_LOA); - dialog_->menu->setCurrentItem(3); - } - - updateToc(depth); -} - - -void FormToc::select(char const * text) -{ - if (!lv_->view()->available()) - return; - - vector ::const_iterator iter = toclist.begin(); - for (; iter != toclist.end(); ++iter) { - if (iter->str == text) - break; - } - - if (iter == toclist.end()) { - lyxerr[Debug::GUI] << "Couldn't find highlighted TOC entry : " << text << endl; - return; - } - - lv_->getLyXFunc()->Dispatch(LFUN_GOTO_PARAGRAPH, tostr(iter->par->id()).c_str()); -} - - -void FormToc::set_type(Buffer::TocType toctype) -{ - if (toctype == type) - return; - - setType(toctype); - updateToc(depth); -} - - -void FormToc::show() -{ - if (!dialog_) - dialog_ = new TocDialog(this, 0, _("LyX: Table of Contents"), false); - - if (!dialog_->isVisible()) { - h_ = d_->hideBufferDependent.connect(slot(this, &FormToc::hide)); - u_ = d_->updateBufferDependent.connect(slot(this, &FormToc::update)); - } - - dialog_->raise(); - dialog_->setActiveWindow(); - - update(); - dialog_->show(); -} - - -void FormToc::close() -{ - h_.disconnect(); - u_.disconnect(); - ih_.disconnect(); - inset_ = 0; -} - - -void FormToc::hide() -{ - dialog_->hide(); - close(); -} diff --git a/src/frontends/kde/FormToc.h b/src/frontends/kde/FormToc.h deleted file mode 100644 index d2c71837fb..0000000000 --- a/src/frontends/kde/FormToc.h +++ /dev/null @@ -1,86 +0,0 @@ -/** - * \file FormToc.h - * Copyright 2001 the LyX Team - * Read the file COPYING - * - * \author John Levon - */ - -#ifndef FORMTOC_H -#define FORMTOC_H - -#include "DialogBase.h" -#include "LString.h" -#include "boost/utility.hpp" -#include "insets/insetcommand.h" -#include "buffer.h" - -class Dialogs; -class TocDialog; - -class FormToc : public DialogBase { -public: - FormToc(LyXView *, Dialogs *); - - ~FormToc(); - - /// Selected a tree item - void select(char const *); - /// Choose which type - void set_type(Buffer::TocType); - /// Update the dialog. - void update(bool = false); - /// change the depth shown - void set_depth(int); - /// close the connections - void close(); - -private: - /// Create the dialog if necessary, update it and display it. - void show(); - /// Hide the dialog. - void hide(); - - /// create a Toc inset - void createTOC(string const &); - /// view a Toc inset - void showTOC(InsetCommand * const); - - /// update the Toc - void updateToc(int); - - /// set the type - void setType(Buffer::TocType); - - /// Real GUI implementation. - TocDialog * dialog_; - - /// the LyXView we belong to - LyXView * lv_; - - /// Dialogs object - Dialogs * d_; - - /// pointer to the inset if any - InsetCommand * inset_; - /// insets params - InsetCommandParams params; - - /// Hide connection. - SigC::Connection h_; - /// Update connection. - SigC::Connection u_; - /// Inset hide connection. - SigC::Connection ih_; - - /// the toc list - std::vector toclist; - - /// type currently being shown - Buffer::TocType type; - - /// depth of list shown - int depth; -}; - -#endif // FORMTOC_H diff --git a/src/frontends/kde/FormUrl.C b/src/frontends/kde/FormUrl.C deleted file mode 100644 index 952db9f4f4..0000000000 --- a/src/frontends/kde/FormUrl.C +++ /dev/null @@ -1,54 +0,0 @@ -/** - * \file FormUrl.C - * Copyright 2001 the LyX Team - * Read the file COPYING - * - * \author John Levon - */ - -#include - -#include "ControlUrl.h" -#include "FormUrl.h" -#include "gettext.h" -#include "urldlg.h" - -FormUrl::FormUrl(ControlUrl & c) - : KFormBase(c) -{ -} - - -void FormUrl::update() -{ - dialog_->url->setText(controller().params().getContents().c_str()); - dialog_->urlname->setText(controller().params().getOptions().c_str()); - - dialog_->htmlurl->setChecked(controller().params().getCmdName() != "url"); -} - - -void FormUrl::apply() -{ - controller().params().setContents(dialog_->url->text()); - controller().params().setOptions(dialog_->urlname->text()); - - if (dialog_->htmlurl->isChecked()) - controller().params().setCmdName("htmlurl"); - else - controller().params().setCmdName("url"); -} - - -void FormUrl::build() -{ - dialog_.reset(new UrlDialog(this, 0, _("LyX: Url"), false)); - - bc().setOK(dialog_->buttonOk); - bc().setCancel(dialog_->buttonCancel); - - bc().addReadOnly(dialog_->urlname); - bc().addReadOnly(dialog_->url); - bc().addReadOnly(dialog_->htmlurl); - -} diff --git a/src/frontends/kde/FormUrl.h b/src/frontends/kde/FormUrl.h deleted file mode 100644 index a298d06865..0000000000 --- a/src/frontends/kde/FormUrl.h +++ /dev/null @@ -1,30 +0,0 @@ -/** - * \file FormUrl.h - * Copyright 2001 the LyX Team - * Read the file COPYING - * - * \author John Levon - */ - -#ifndef FORMURL_H -#define FORMURL_H - -#include "KFormBase.h" - -class ControlUrl; -class UrlDialog; - -class FormUrl : public KFormBase { -public: - FormUrl(ControlUrl & c); - -private: - /// apply dialog - virtual void apply(); - /// build dialog - virtual void build(); - /// update dialog - virtual void update(); -}; - -#endif // FORMURL_H diff --git a/src/frontends/kde/FormVCLog.C b/src/frontends/kde/FormVCLog.C deleted file mode 100644 index 4854f3b875..0000000000 --- a/src/frontends/kde/FormVCLog.C +++ /dev/null @@ -1,59 +0,0 @@ -/** - * \file FormVCLog.C - * Copyright 2001 the LyX Team - * Read the file COPYING - * - * \author John Levon - */ - -#include -#include - -#include "FormVCLog.h" -#include "ControlVCLog.h" -#include "vclogdlg.h" -#include "gettext.h" - -using std::ifstream; -using std::getline; - -FormVCLog::FormVCLog(ControlVCLog & c) - : KFormBase(c) -{ -} - - -void FormVCLog::update() -{ - const string logfile = controller().logfile(); - - // FIXME - //dialog_->setCaption(string(_("Version control log for ") + controller().filename()).c_str()); - - dialog_->setLogText(""); - - ifstream ifstr(logfile.c_str()); - if (!ifstr) { - dialog_->setLogText(_("No version control log file found")); - // lyx::unlink(logfile); - return; - } - - string text; - string line; - - while (getline(ifstr, line)) - text += line + "\n"; - - dialog_->setLogText(text); - - //lyx::unlink(logfile); -} - - -void FormVCLog::build() -{ - dialog_.reset(new VCLogDialog(this, 0, _("LyX: Version Control Log"))); - - bc().setCancel(dialog_->button_cancel); -} diff --git a/src/frontends/kde/FormVCLog.h b/src/frontends/kde/FormVCLog.h deleted file mode 100644 index 4d5060de9b..0000000000 --- a/src/frontends/kde/FormVCLog.h +++ /dev/null @@ -1,31 +0,0 @@ -/** - * \file FormVCLog.h - * Copyright 2001 the LyX Team - * Read the file COPYING - * - * \author John Levon - */ - -#ifndef FORMVCLOG_H -#define FORMVCLOG_H - -#include "KFormBase.h" - -class ControlVCLog; -class VCLogDialog; - -class FormVCLog : public KFormBase { -public: - FormVCLog(ControlVCLog & c); - - /// update the dialog - virtual void update(); - - /// apply - virtual void apply() {}; - - /// build dialog - virtual void build(); -}; - -#endif // FORMVCLOG_H diff --git a/src/frontends/kde/GUIRunTime.C b/src/frontends/kde/GUIRunTime.C deleted file mode 100644 index ca0dc2909b..0000000000 --- a/src/frontends/kde/GUIRunTime.C +++ /dev/null @@ -1,102 +0,0 @@ -/** - * \file GUIRunTime.C - * Copyright 2001 the LyX Team - * Read the file COPYING - * - * \author Jürgen Vigna - */ - -#include - -#ifdef __GNUG__ -#pragma implementation -#endif - -#include "GUIRunTime.h" -#include "debug.h" - -#include - -#include FORMS_H_LOCATION - -using std::endl; - -// tell me again why this test is cluttering up the source rather than -// being in lyxinclude.m4 ? - jbl -#if !defined(FL_REVISION) || FL_REVISION < 88 || FL_VERSION != 0 -#error LyX will not compile with this version of XForms.\ - Please get version 0.89.\ - If you want to try to compile anyway, delete this test in src/frontends/kde/GUIRunTime.C. -#endif - -extern bool finished; - -namespace { - -int const xforms_include_version = FL_INCLUDE_VERSION; - -} // namespace anon - - -int GUIRunTime::initApplication(int argc, char * argv[]) -{ - // same here, this is clearly a configure-time test - jbl - int xforms_lib_version = fl_library_version(0, 0); - if (xforms_include_version != xforms_lib_version) { - lyxerr << "You are either running LyX with wrong " - "version of a dynamic XForms library\n" - "or you have build LyX with conflicting header " - "and library (different\n" - "versions of XForms. Sorry but there is no point " - "in continuing executing LyX!" << endl; - return 1; - } - - // I belive this is done in the wrong place, imo this should - // be done in lyx_gui.C similar to how/where xforms does it (Lgb) - static KApplication a(argc, argv); - - return 0; -} - - -void GUIRunTime::processEvents() -{ - kapp->processEvents(); -} - - -void GUIRunTime::runTime() -{ - // We still use xforms event handler as the main one... - XEvent ev; - while (!finished) { - processEvents(); - if (fl_check_forms() == FL_EVENT) { - lyxerr << "LyX: This shouldn't happen..." << endl; - fl_XNextEvent(&ev); - } - } -} - - -void GUIRunTime::setDefaults() -{ - FL_IOPT cntl; - cntl.buttonFontSize = FL_NORMAL_SIZE; - cntl.browserFontSize = FL_NORMAL_SIZE; - cntl.labelFontSize = FL_NORMAL_SIZE; - cntl.choiceFontSize = FL_NORMAL_SIZE; - cntl.inputFontSize = FL_NORMAL_SIZE; - cntl.menuFontSize = FL_NORMAL_SIZE; - cntl.borderWidth = -1; - cntl.vclass = FL_DefaultVisual; - fl_set_defaults(FL_PDVisual - | FL_PDButtonFontSize - | FL_PDBrowserFontSize - | FL_PDLabelFontSize - | FL_PDChoiceFontSize - | FL_PDInputFontSize - | FL_PDMenuFontSize - | FL_PDBorderWidth, &cntl); -} diff --git a/src/frontends/kde/KFormBase.C b/src/frontends/kde/KFormBase.C deleted file mode 100644 index 77d53c5438..0000000000 --- a/src/frontends/kde/KFormBase.C +++ /dev/null @@ -1,46 +0,0 @@ -/** - * \file KDEFormBase.C - * Copyright 2001 the LyX Team - * Read the file COPYING - * - * \author John Levon - */ - -#include - -#ifdef __GNUG__ -#pragma implementation -#endif - -#include "Dialogs.h" -#include "KFormBase.h" -#include "ControlButtons.h" - -#include - -KFormDialogBase::KFormDialogBase(ControlButtons & c) - : ViewBC(c) -{ -} - - -void KFormDialogBase::show() -{ - if (!dialog()) - build(); - - bc().refresh(); - - update(); - - dialog()->raise(); - dialog()->setActiveWindow(); - dialog()->show(); -} - - -void KFormDialogBase::hide() -{ - if (dialog()->isVisible()) - dialog()->hide(); -} diff --git a/src/frontends/kde/KFormBase.h b/src/frontends/kde/KFormBase.h deleted file mode 100644 index b00a4b0626..0000000000 --- a/src/frontends/kde/KFormBase.h +++ /dev/null @@ -1,74 +0,0 @@ -/** - * \file KDEFormBase.h - * Copyright 2001 the LyX Team - * Read the file COPYING - * - * \author John Levon - */ - -#ifndef KDEFORMBASE_H -#define KDEFORMBASE_H - -#ifdef __GNUG__ -#pragma interface -#endif - -#include "boost/smart_ptr.hpp" - -#include "ViewBase.h" -#include "ButtonPolicies.h" -#include "kdeBC.h" - -class QWidget; - -class KFormDialogBase : public ViewBC { -public: - /// - KFormDialogBase(ControlButtons & c); - - // Functions accessible to the Controller - - /// build dialog - virtual void build() = 0; - /// create dialog if necessary, update and display - void show(); - /// hide dialog - virtual void hide(); - -private: - /// get dialog - virtual QWidget * dialog() const = 0; -}; - -template - class KFormBase : public KFormDialogBase { -public: - /// - KFormBase(ControlButtons & c); - -protected: - /// parent controller - Controller & controller() const; - - /// get dialog - virtual QWidget * dialog() const { return dialog_.get(); }; - - /// dialog implemenation - boost::scoped_ptr dialog_; -}; - -template - KFormBase::KFormBase(ControlButtons & c) - : KFormDialogBase(c) -{ -} - - -template - Controller & KFormBase::controller() const -{ - return static_cast(controller_); -} - - -#endif // KDEFORMBASE_H diff --git a/src/frontends/kde/Makefile.am b/src/frontends/kde/Makefile.am deleted file mode 100644 index 3dc6fa83dc..0000000000 --- a/src/frontends/kde/Makefile.am +++ /dev/null @@ -1,158 +0,0 @@ -AUTOMAKE_OPTIONS = foreign 1.4 -MAINTAINERCLEANFILES = $(srcdir)/Makefile.in -noinst_LTLIBRARIES = libkde.la -BOOST_INCLUDES = -I$(top_srcdir)/boost -SUBDIRS = dlg moc -INCLUDES = -I${top_srcdir}/src/ \ - -I${top_srcdir}/src/frontends/ \ - -I${top_srcdir}/src/frontends/controllers \ - ${SIGC_CFLAGS} ${FRONTEND_INCLUDES} $(BOOST_INCLUDES) \ - -I${top_srcdir}/src/frontends/xforms - -DISTCLEANFILES = $(BUILTSOURCES) *.orig *.rej *~ *.bak core - -libkde_la_DEPENDENCIES = moc/libkdemoc.la dlg/libkdedlg.la dlg/moc/libkdedlgmoc.la - -libkde_la_OBJADD = \ - moc/libkdemoc.la \ - dlg/libkdedlg.la \ - dlg/moc/libkdedlgmoc.la \ - ../xforms/FormBaseDeprecated.lo \ - ../xforms/FormBase.lo \ - ../xforms/FormBibitem.lo \ - ../xforms/form_bibitem.lo \ - ../xforms/FormBibtex.lo \ - ../xforms/form_bibtex.lo \ - ../xforms/FormCharacter.lo \ - ../xforms/form_character.lo \ - ../xforms/FormCredits.lo \ - ../xforms/form_credits.lo \ - ../xforms/FormError.lo \ - ../xforms/form_error.lo \ - ../xforms/FormExternal.lo \ - ../xforms/form_external.lo \ - ../xforms/FormGraphics.lo \ - ../xforms/form_graphics.lo \ - ../xforms/FormInclude.lo \ - ../xforms/form_include.lo \ - ../xforms/FormInset.lo \ - ../xforms/FormMathsBitmap.lo \ - ../xforms/FormMathsDeco.lo \ - ../xforms/form_maths_deco.lo \ - ../xforms/FormMathsDelim.lo \ - ../xforms/form_maths_delim.lo \ - ../xforms/FormMathsMatrix.lo \ - ../xforms/form_maths_matrix.lo \ - ../xforms/FormMathsPanel.lo \ - ../xforms/form_maths_panel.lo \ - ../xforms/FormMathsSpace.lo \ - ../xforms/form_maths_space.lo \ - ../xforms/FormMinipage.lo \ - ../xforms/form_minipage.lo \ - ../xforms/FormPreamble.lo \ - ../xforms/form_preamble.lo \ - ../xforms/FormPreferences.lo \ - ../xforms/form_preferences.lo \ - ../xforms/FormSearch.lo \ - ../xforms/form_search.lo \ - ../xforms/FormSplash.lo \ - ../xforms/form_splash.lo \ - ../xforms/FormTabular.lo \ - ../xforms/form_tabular.lo \ - ../xforms/MathsSymbols.lo \ - ../xforms/xformsBC.lo \ - ../xforms/bmtable.lo \ - ../xforms/Color.lo \ - ../xforms/combox.lo \ - ../xforms/xforms_helpers.lo \ - ../xforms/input_validators.lo \ - ../xforms/RadioButtonGroup.lo \ - ../xforms/Toolbar_pimpl.lo \ - ../xforms/Menubar_pimpl.lo - -LIBS= -LDFLAGS= $(libkde_la_OBJADD) -ETAGS_ARGS = --lang=c++ -libkde_la_SOURCES = \ - Dialogs.C \ - FileDialog.C \ - FileDialog_private.C \ - FileDialog_private.h \ - GUIRunTime.C \ - QtLyXView.h \ - Timeout_pimpl.C \ - Timeout_pimpl.h \ - kdeBC.C \ - kdeBC.h \ - KFormBase.C \ - KFormBase.h \ - FormCitation.C \ - FormCitation.h \ - FormCopyright.C \ - FormCopyright.h \ - FormDocument.C \ - FormDocument.h \ - FormIndex.C \ - FormIndex.h \ - FormLog.C \ - FormLog.h \ - FormParagraph.C \ - FormParagraph.h \ - FormPrint.C \ - FormPrint.h \ - FormRef.C \ - FormRef.h \ - FormTabularCreate.C \ - FormTabularCreate.h \ - FormUrl.C \ - FormUrl.h \ - FormVCLog.C \ - FormVCLog.h \ - citationdlg.C \ - citationdlg.h \ - copyrightdlg.C \ - copyrightdlg.h \ - docdlg.C \ - docdlg.h \ - indexdlg.C \ - indexdlg.h \ - logdlg.C \ - logdlg.h \ - paradlg.C \ - paradlg.h \ - parageneraldlg.C \ - parageneraldlg.h \ - paraextradlg.C \ - paraextradlg.h \ - printdlg.C \ - printdlg.h \ - refdlg.C \ - refdlg.h \ - tabcreatedlg.C \ - tabcreatedlg.h \ - urldlg.C \ - urldlg.h \ - vclogdlg.C \ - vclogdlg.h - -# FIXME -# FormToc.C \ -# FormToc.h \ -# tocdlg.C \ -# tocdlg.h \ - -moc/FileDialog_private_moc.C: FileDialog_private.C FileDialog_private.h -moc/citationdlg_moc.C: citationdlg.C citationdlg.h -moc/copyrightdlg_moc.C: copyrightdlg.C copyrightdlg.h -moc/docdlg_moc.C: docdlg.C docdlg.h -moc/logdlg_moc.C: logdlg.C logdlg.h -moc/indexdlg_moc.C: indexdlg.C indexdlg.h -moc/paradlg_moc.C: paradlg.C paradlg.h -moc/parageneraldlg_moc.C: parageneraldlg.C parageneraldlg.h -moc/paraextradlg_moc.C: paraextradlg.C paraextradlg.h -moc/printdlg_moc.C: printdlg.C printdlg.h -moc/refdlg_moc.C: refdlg.C refdlg.h -moc/tabcreatedlg_moc.C: tabcreatedlg.C tabcreatedlg.h -moc/tocdlg_moc.C: tocdlg.C tocdlg.h -moc/urldlg_moc.C: urldlg.C urldlg.h -moc/vclogdlg_moc.C: vclogdlg.C vclogdlg.h diff --git a/src/frontends/kde/QtLyXView.h b/src/frontends/kde/QtLyXView.h deleted file mode 100644 index 6bba75ccdb..0000000000 --- a/src/frontends/kde/QtLyXView.h +++ /dev/null @@ -1,13 +0,0 @@ -/** - * \file QtLyXView.h - * Copyright 2001 the LyX Team - * Read the file COPYING - * - * \author John Levon - */ - -/* Qt has a messy namespace which conflicts with 'emit' in - * Timeout. Yep, they #define emit to nothing. - */ -#undef emit -#include "LyXView.h" diff --git a/src/frontends/kde/Timeout_pimpl.C b/src/frontends/kde/Timeout_pimpl.C deleted file mode 100644 index d3a7de5114..0000000000 --- a/src/frontends/kde/Timeout_pimpl.C +++ /dev/null @@ -1,51 +0,0 @@ -/** - * \file Timeout_pimpl.C - * Copyright 2001 LyX Team - * Read COPYING - * - * \author John Levon - */ - -#ifdef __GNUG__ -#pragma implementation -#endif - -#include - -#include "Timeout_pimpl.h" -#include "debug.h" - -using std::endl; - -Timeout::Pimpl::Pimpl(Timeout * owner) - : owner_(owner), timeout_id(-1) -{ -} - - -void Timeout::Pimpl::timerEvent(QTimerEvent *) -{ - owner_->emit(); -} - - -void Timeout::Pimpl::reset() -{ - killTimers(); - timeout_id = -1; -} - - -void Timeout::Pimpl::start() -{ - if (timeout_id != -1) - lyxerr << "Timeout::start: already running!" << endl; - timeout_id = startTimer(owner_->timeout_ms); -} - - -void Timeout::Pimpl::stop() -{ - if (timeout_id != -1) - reset(); -} diff --git a/src/frontends/kde/Timeout_pimpl.h b/src/frontends/kde/Timeout_pimpl.h deleted file mode 100644 index 3f3261d79f..0000000000 --- a/src/frontends/kde/Timeout_pimpl.h +++ /dev/null @@ -1,50 +0,0 @@ -/** - * \file Timeout_pimpl.h - * Copyright 2001 LyX Team - * Read COPYING - * - * \author John Levon - */ -#ifndef TIMEOUTPIMPL_H -#define TIMEOUTPIMPL_H - -#include - -#ifdef __GNUG__ -#pragma interface -#endif - -#include "frontends/Timeout.h" - -#include - -#include -// stupid Qt -#undef emit - -/** - * This class executes the callback when the timeout expires - * using Qt mechanisms - */ -struct Timeout::Pimpl : QObject { -public: - /// - Pimpl(Timeout *owner_); - /// start the timer - void start(); - /// stop the timer - void stop(); - /// reset - void reset(); - -protected: - /// slot - virtual void timerEvent(QTimerEvent *); -private: - /// the owning timer - Timeout * owner_; - /// xforms id - int timeout_id; -}; - -#endif diff --git a/src/frontends/kde/citationdlg.C b/src/frontends/kde/citationdlg.C deleted file mode 100644 index 5b36b251d2..0000000000 --- a/src/frontends/kde/citationdlg.C +++ /dev/null @@ -1,50 +0,0 @@ -/** - * \file citationdlg.C - * Copyright 2001 the LyX Team - * Read the file COPYING - * - * \author John Levon - */ - -#include -#include - -#include "FormCitation.h" -#include "citationdlg.h" - -#include - -CitationDialog::CitationDialog(FormCitation * f, QWidget * p, char const * name) - : CitationDialogData(p, name), form_(f) -{ - setCaption(name); - - // tooltips - - QToolTip::add(button_add, _("Add reference to current citation")); - QToolTip::add(button_remove, _("Remove reference from current citation")); - QToolTip::add(button_up, _("Move reference before")); - QToolTip::add(button_down, _("Move reference after")); - QToolTip::add(line_after, _("Text to add after references")); - QToolTip::add(line_details, _("Reference details")); - QToolTip::add(button_search, _("Search through references")); - QToolTip::add(list_available, _("Available references")); - QToolTip::add(list_chosen, _("Current chosen references")); - - line_details->setMinimumHeight(30); - - setMinimumSize(200, 65); -} - - -void CitationDialog::clicked_search() -{ - // FIXME -} - - -void CitationDialog::closeEvent(QCloseEvent * e) -{ - form_->CancelButton(); - e->accept(); -} diff --git a/src/frontends/kde/citationdlg.h b/src/frontends/kde/citationdlg.h deleted file mode 100644 index b2ba2def88..0000000000 --- a/src/frontends/kde/citationdlg.h +++ /dev/null @@ -1,76 +0,0 @@ -/** - * \file citationdlg.h - * Copyright 2001 the LyX Team - * Read the file COPYING - * - * \author John Levon - */ - -#ifndef CITATIONDIALOG_H -#define CITATIONDIALOG_H - -#include "FormCitation.h" -#include "dlg/citationdlgdata.h" -#include "controllers/ButtonPolicies.h" - -class CitationDialog : public CitationDialogData -{ - Q_OBJECT - -public: - CitationDialog(FormCitation * form, QWidget * parent = 0, char const * name = 0); - -private slots: - virtual void clicked_ok() { form_->OKButton(); }; - virtual void clicked_apply() { form_->ApplyButton(); }; - virtual void clicked_restore() { form_->RestoreButton(); form_->updateButtons(); }; - virtual void clicked_cancel() { form_->CancelButton(); }; - - virtual void clicked_add() { - form_->bc().input(form_->add()); - form_->updateButtons(); - } - - virtual void clicked_up() { - form_->bc().input(form_->up()); - form_->updateButtons(); - } - - virtual void clicked_down() { - form_->bc().input(form_->down()); - form_->updateButtons(); - } - - virtual void clicked_remove() { - form_->bc().input(form_->remove()); - form_->updateButtons(); - } - - virtual void clicked_search(); - - virtual void select_available_adaptor(const char * key) { - form_->bc().input(form_->select_key(key)); - form_->updateButtons(); - } - - virtual void highlight_available_adaptor(const char * key) { - form_->highlight_key(key); - } - - virtual void highlight_chosen_adaptor(const char * key) { - form_->highlight_chosen(key); - } - - virtual void after_changed(const char *) { - form_->bc().valid(true); - form_->updateButtons(); - } - -protected slots: - virtual void closeEvent(QCloseEvent *e); - -private: - FormCitation * form_; - -}; -#endif // CITATIONDIALOG_H diff --git a/src/frontends/kde/copyrightdlg.C b/src/frontends/kde/copyrightdlg.C deleted file mode 100644 index 6e21b14b4b..0000000000 --- a/src/frontends/kde/copyrightdlg.C +++ /dev/null @@ -1,36 +0,0 @@ -/** - * \file copyrightdlg.C - * Copyright 2001 the LyX Team - * Read the file COPYING - * - * \author John Levon - */ - -#include - -#include "FormCopyright.h" -#include "copyrightdlg.h" - -CopyrightDialog::CopyrightDialog(FormCopyright * f, QWidget * parent, char const * name) - : CopyrightDialogData(parent, name), form_(f) -{ - setCaption(name); -} - - -CopyrightDialog::~CopyrightDialog() -{ -} - - -void CopyrightDialog::clickedOK() -{ - form_->OKButton(); -} - - -void CopyrightDialog::closeEvent(QCloseEvent * e) -{ - form_->CancelButton(); - e->accept(); -} diff --git a/src/frontends/kde/copyrightdlg.h b/src/frontends/kde/copyrightdlg.h deleted file mode 100644 index 8f212ff0f3..0000000000 --- a/src/frontends/kde/copyrightdlg.h +++ /dev/null @@ -1,34 +0,0 @@ -/** - * \file copyrightdlg.h - * Copyright 2001 the LyX Team - * Read the file COPYING - * - * \author John Levon - */ - -#ifndef COPYRIGHTDIALOG_H -#define COPYRIGHTDIALOG_H - -#include "dlg/copyrightdlgdata.h" - -class FormCopyright; - -class CopyrightDialog : public CopyrightDialogData -{ - Q_OBJECT - -public: - CopyrightDialog (FormCopyright * f, QWidget * parent = NULL, char const * name = NULL); - - virtual ~CopyrightDialog(); - -protected slots: - - virtual void clickedOK(); - virtual void closeEvent(QCloseEvent * e); - -private: - FormCopyright * form_; -}; - -#endif // COPYRIGHTDIALOG_H diff --git a/src/frontends/kde/dlg/.cvsignore b/src/frontends/kde/dlg/.cvsignore deleted file mode 100644 index 4b27e295da..0000000000 --- a/src/frontends/kde/dlg/.cvsignore +++ /dev/null @@ -1,7 +0,0 @@ -Makefile.in -Makefile -*.deps -*.lo -.libs -libkdedlg.la -*moc.C diff --git a/src/frontends/kde/dlg/Makefile.am b/src/frontends/kde/dlg/Makefile.am deleted file mode 100644 index 6535ded6f8..0000000000 --- a/src/frontends/kde/dlg/Makefile.am +++ /dev/null @@ -1,79 +0,0 @@ -AUTOMAKE_OPTIONS = foreign 1.4 -MAINTAINERCLEANFILES = $(srcdir)/Makefile.in -noinst_LTLIBRARIES = libkdedlg.la -BOOST_INCLUDES = -I$(top_srcdir)/boost -SUBDIRS = moc -INCLUDES = -I${top_srcdir}/src/ -I${top_srcdir}/src/frontends/ \ - ${FRONTEND_INCLUDES} $(BOOST_INCLUDES) - -# generated by qtarch -GENSOURCES = citationdlgdata.C \ - citationdlgdata.h \ - copyrightdlgdata.C \ - copyrightdlgdata.h \ - docdlgdata.C \ - docdlgdata.h \ - docsettingsdlgdata.C \ - docsettingsdlgdata.h \ - docgeometrydlgdata.C \ - docgeometrydlgdata.h \ - doclanguagedlgdata.C \ - doclanguagedlgdata.h \ - docextradlgdata.C \ - docextradlgdata.h \ - docbulletsdlgdata.C \ - docbulletsdlgadat.h \ - indexdlgdata.C \ - indexdlgdata.h \ - logdlgdata.C \ - logdlgdata.h \ - paradlgdata.C \ - paradlgdata.h \ - parageneraldlgdata.C \ - parageneraldlgdata.h \ - paraabovedlgdata.C \ - paraabovedlgdata.h \ - parabelowdlgdata.C \ - parabelowdlgdata.h \ - paraextradlgdata.C \ - paraextradlgdata.h \ - printdlgdata.C \ - printdlgdata.h \ - tabcreatedlgdata.C \ - tabcreatedlgdata.h - -DISTCLEANFILES = *.orig *.rej *~ *.bak core - -LIBS= -ETAGS_ARGS = --lang=c++ -libkdedlg_la_SOURCES = \ - emptytable.C \ - emptytable.h \ - tabstack.C \ - tabstack.h \ - lengthentry.C \ - lengthentry.h \ - helpers.h \ - helpers.C \ - $(GENSOURCES) - -moc/citationdlgdata_moc.C: citationdlgdata.C citationdlgdata.h -moc/copyrightdlgdata_moc.C: copyrightdlgdata.C copyrightdlgdata.h -moc/docdlgdata_moc.C: docdlgdata.C docdlgdata.h -moc/docsettingsdlgdata_moc.C: docsettingsdlgdata.C docsettingsdlgdata.h -moc/docgeometrydlgdata_moc.C: docgeometrydlgdata.C docgeometrydlgdata.h -moc/doclanguagedlgdata_moc.C: doclanguagedlgdata.C doclanguagedlgdata.h -moc/docextradlgdata_moc.C: docextradlgdata.C docextradlgdata.h -moc/docbulletsdlgdata_moc.C: docbulletsdlgdata.C docbulletsdlgdata.h -moc/emptytable_moc.C: emptytable.C emptytable.h -moc/indexdlgdata_moc.C: indexdlgdata.C indexdlgdata.h -moc/logdlgdata_moc.C: logdlgdata.C logdlgdata.h -moc/paradlgdata_moc.C: paradlgdata.C paradlgdata.h -moc/parageneraldlgdata_moc.C: parageneraldlgdata.C parageneraldlgdata.h -moc/paraabovedlgdata_moc.C: paraabovedlgdata.C paraabovedlgdata.h -moc/parabelowdlgdata_moc.C: parabelowdlgdata.C parabelowdlgdata.h -moc/paraextradlgdata_moc.C: paraextradlgdata.C paraextradlgdata.h -moc/printdlgdata_moc.C: printdlgdata.C printdlgdata.h -moc/tabcreatedlgdata_moc.C: tabcreatedlgdata.C tabcreatedlgdata.h -moc/tabstack_moc.C: tabstack.C tabstack.h -moc/lengthentry_moc.C: lengthentry.C lengthentry.h diff --git a/src/frontends/kde/dlg/README b/src/frontends/kde/dlg/README deleted file mode 100644 index 74ffca9de0..0000000000 --- a/src/frontends/kde/dlg/README +++ /dev/null @@ -1,99 +0,0 @@ -These files are generated with qtarch-1.4-5 which can be downloaded -from - -http://qtarch.sourceforge.net/ - -Currently you also need this patch : -http://www.movement.uklinux.net/patches/lyx/qtarch-1.4.6.diff - -Eventually the intent is to fold this patch into the official qtarch and -release a qtarch-1.4-6 tarball. - -Note this is *not* the latest version, as they only support Qt 2. - -You should compile in the KDE module when you compile qtarch-1.4. -For me this was just a case of a make in the module/kde/ directory, -and then you can add the .so library file in the qtarch GUI. - -The files in this and the kde/ directory have the following naming -scheme : - -random.dlg - the dlg file for qtarch -FormRandom.[Ch] - LyX's notion of the dialog, real implementation modified - via functions only -randomdlg.[Ch] - Derived Qt class, edited by hand. The interface between widgets - and LyX FormRandom file -randomdlgdata.[Ch] - qtarch-generated files, not to be touched by human hands - -The class names are FormRandom, RandomDialog, and RandomDialogData - -Note that the .dlg files have no entries for the derived class header and source -filenames. This is because these files have to be edited by hand and should only -be generated once (and they belong in the parent directory, not dlg/). The -className field, though, has a special meaning. If it is blank, then qtarch -will assume there is no derived class defined at all. Currently this has the effect -of making mapped variables public access. If there is a name, then it assumes that -a derived class exists, and leaves mapped variables protected. It's done like -this to avoid the rat's nest of friend declarations and un-necessary derived classes, -and because the new MVC architecture needs direct access to buttons etc. - -There is a naming scheme for any variabled widgets, similar to the xforms frontend : - -buttons - button_ -spinboxen - spin_ -tabstack - tabstack -comboboxen - combo_ -checkboxen - check_ -lengthentry - length_ -radio buttons - radio_ -line edits - line_ -emptytable - table -list box - list_ - -Some tips and guidelines for qtarch and the KDE frontend : - -o the default button should be the one that causes least harm, unless - the action can be undone. So Print should default to cancel, whereas - insert index entry can be undone, so should default to OK - -o the dialog should derive from QWidget (set in Properties) - -o the dialog should always have the gettext option set - -o give every widget a name - useful for the geometry layouts later - -o don't bother setting min/max sizes for anything, but do set the size Hint - stuff appropriately. e.g. QLineEdit's should have a max height specified by - size Hint, but variable width - -o if you map a variable make it the same as the widget name - -o radio groups are done automagically based on positioning - -o grid units are 5 pixels - -o set alignment before placing a widget inside a layout, it doesn't seem to - update properly. Alternatively you can just edit the .dlg file directly - -o push buttons are arranged symmetrically across the dialog e.g. - <1 stretch>