]> git.lyx.org Git - lyx.git/commitdiff
The KDE monster patch from John
authorJean-Marc Lasgouttes <lasgouttes@lyx.org>
Tue, 17 Oct 2000 08:27:35 +0000 (08:27 +0000)
committerJean-Marc Lasgouttes <lasgouttes@lyx.org>
Tue, 17 Oct 2000 08:27:35 +0000 (08:27 +0000)
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@1126 a592a061-630c-0410-9148-cb99ea01b6c8

79 files changed:
ChangeLog
src/frontends/kde/FormCitation.C
src/frontends/kde/FormCitation.h
src/frontends/kde/FormCopyright.C
src/frontends/kde/FormCopyright.h
src/frontends/kde/FormIndex.C
src/frontends/kde/FormIndex.h
src/frontends/kde/FormParagraph.C [new file with mode: 0644]
src/frontends/kde/FormParagraph.h [new file with mode: 0644]
src/frontends/kde/FormPrint.C
src/frontends/kde/FormPrint.h
src/frontends/kde/FormRef.C
src/frontends/kde/FormRef.h
src/frontends/kde/FormToc.C
src/frontends/kde/FormToc.h
src/frontends/kde/FormUrl.C
src/frontends/kde/FormUrl.h
src/frontends/kde/Makefile.am
src/frontends/kde/citationdlg.C [new file with mode: 0644]
src/frontends/kde/citationdlg.h [new file with mode: 0644]
src/frontends/kde/copyrightdlg.C [new file with mode: 0644]
src/frontends/kde/copyrightdlg.h [new file with mode: 0644]
src/frontends/kde/copyrightdlgdata.C [new file with mode: 0644]
src/frontends/kde/copyrightdlgdata.h [new file with mode: 0644]
src/frontends/kde/dlg/README
src/frontends/kde/dlg/checkinitorder.pl
src/frontends/kde/dlg/copyright.dlg [new file with mode: 0644]
src/frontends/kde/dlg/formcopyrightdialog.dlg [deleted file]
src/frontends/kde/dlg/formindexdialog.dlg [deleted file]
src/frontends/kde/dlg/formprintdialog.dlg [deleted file]
src/frontends/kde/dlg/index.dlg [new file with mode: 0644]
src/frontends/kde/dlg/paraextra.dlg [new file with mode: 0644]
src/frontends/kde/dlg/parageneral.dlg [new file with mode: 0644]
src/frontends/kde/dlg/print.dlg [new file with mode: 0644]
src/frontends/kde/formcitationdialog.C [deleted file]
src/frontends/kde/formcitationdialog.h [deleted file]
src/frontends/kde/formcopyrightdialog.C [deleted file]
src/frontends/kde/formcopyrightdialog.h [deleted file]
src/frontends/kde/formcopyrightdialogdata.C [deleted file]
src/frontends/kde/formcopyrightdialogdata.h [deleted file]
src/frontends/kde/formindexdialog.C [deleted file]
src/frontends/kde/formindexdialog.h [deleted file]
src/frontends/kde/formindexdialogdata.C [deleted file]
src/frontends/kde/formindexdialogdata.h [deleted file]
src/frontends/kde/formprintdialog.C [deleted file]
src/frontends/kde/formprintdialog.h [deleted file]
src/frontends/kde/formprintdialogdata.C [deleted file]
src/frontends/kde/formprintdialogdata.h [deleted file]
src/frontends/kde/formrefdialog.C [deleted file]
src/frontends/kde/formrefdialog.h [deleted file]
src/frontends/kde/formtocdialog.C [deleted file]
src/frontends/kde/formtocdialog.h [deleted file]
src/frontends/kde/formurldialog.C [deleted file]
src/frontends/kde/formurldialog.h [deleted file]
src/frontends/kde/indexdlg.C [new file with mode: 0644]
src/frontends/kde/indexdlg.h [new file with mode: 0644]
src/frontends/kde/indexdlgdata.C [new file with mode: 0644]
src/frontends/kde/indexdlgdata.h [new file with mode: 0644]
src/frontends/kde/paradlg.C [new file with mode: 0644]
src/frontends/kde/paradlg.h [new file with mode: 0644]
src/frontends/kde/paraextradlg.C [new file with mode: 0644]
src/frontends/kde/paraextradlg.h [new file with mode: 0644]
src/frontends/kde/paraextradlgdata.C [new file with mode: 0644]
src/frontends/kde/paraextradlgdata.h [new file with mode: 0644]
src/frontends/kde/parageneraldlg.C [new file with mode: 0644]
src/frontends/kde/parageneraldlg.h [new file with mode: 0644]
src/frontends/kde/parageneraldlgdata.C [new file with mode: 0644]
src/frontends/kde/parageneraldlgdata.h [new file with mode: 0644]
src/frontends/kde/printdlg.C [new file with mode: 0644]
src/frontends/kde/printdlg.h [new file with mode: 0644]
src/frontends/kde/printdlgdata.C [new file with mode: 0644]
src/frontends/kde/printdlgdata.h [new file with mode: 0644]
src/frontends/kde/refdlg.C [new file with mode: 0644]
src/frontends/kde/refdlg.h [new file with mode: 0644]
src/frontends/kde/tocdlg.C [new file with mode: 0644]
src/frontends/kde/tocdlg.h [new file with mode: 0644]
src/frontends/kde/urldlg.C [new file with mode: 0644]
src/frontends/kde/urldlg.h [new file with mode: 0644]
src/frontends/support/Makefile.am

index a4bb9b1bc79232c9d9e4afde23b0904a0045d250..2bdc896f9ee079b05bf6b9324d6a3faae3cea0e7 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,12 @@
+2000-10-17  Jean-Marc Lasgouttes  <Jean-Marc.Lasgouttes@inria.fr>
+2000-10-16  John Levon  <moz@compsoc.man.ac.uk>
+
+       * src/frontends/kde/<various>: The Great Renaming,
+       add FormParagraph
+
+
+       * src/frontends/support/Makefile.am (EXTRA_DIST): re-fix.
+
 2000-10-16  Jean-Marc Lasgouttes  <Jean-Marc.Lasgouttes@inria.fr>
 
        * src/mathed/math_macro.C (MathMacroTemplate): initialize args to
index 54c22b6f774fba3b4341582abfcda020ab5415e1..9634a2572fa1f4892a5071e428fb86881135bedd 100644 (file)
@@ -23,7 +23,7 @@
 #include "buffer.h"
 #include "LyXView.h"
 #include "lyxfunc.h"
-#include "formcitationdialog.h"
+#include "citationdlg.h"
  
 using std::vector;
 using std::pair;
@@ -196,7 +196,7 @@ void FormCitation::apply()
 void FormCitation::show()
 {
        if (!dialog_)
-               dialog_ = new FormCitationDialog(this, 0, _("LyX: Citation Reference"), false);
+               dialog_ = new CitationDialog(this, 0, _("LyX: Citation Reference"), false);
 
        if (!dialog_->isVisible()) {
                h_ = d_->hideBufferDependent.connect(slot(this, &FormCitation::hide));
index 6d8bd5a34508cd6b922b4e25932971357bcdf81d..5e3a79987f961a5c9be513a80e0f61d218e343be 100644 (file)
@@ -24,7 +24,7 @@
  
 class Dialogs;
 class LyXView;
-class FormCitationDialog;
+class CitationDialog;
 
 class FormCitation : public DialogBase, public noncopyable {
 public: 
@@ -78,7 +78,7 @@ private:
        void selectChosen();
  
        /// Real GUI implementation.
-       FormCitationDialog * dialog_;
+       CitationDialog * dialog_;
 
        /// the LyXView we belong to
        LyXView * lv_;
index 64dd9ef36bcc4e8d543f103f99abe8e85a82a096..40f991da9caeafa7b54826ec41ec406d2fa6bf28 100644 (file)
@@ -19,7 +19,7 @@
 
 #include "Dialogs.h"
 #include "FormCopyright.h"
-#include "formcopyrightdialog.h"
+#include "copyrightdlg.h"
 #include "gettext.h"
 
 FormCopyright::FormCopyright(LyXView *v, Dialogs *d)
@@ -39,7 +39,7 @@ FormCopyright::~FormCopyright()
 void FormCopyright::show()
 {
        if (!dialog_)
-               dialog_ = new FormCopyrightDialog(0, _("LyX: Copyright and Warranty"));
+               dialog_ = new CopyrightDialog(0, _("LyX: Copyright and Warranty"));
 
        if (!dialog_->isVisible())
                h_ = d_->hideAll.connect(slot(this, &FormCopyright::hide));
index 0b3b7a6ce97eb6f1ff54a0e637665b28871e0c0a..5cce61f95331be756fa1fe3e689772e873ac3f26 100644 (file)
@@ -23,7 +23,7 @@
 
 class Dialogs;
 class LyXView;
-class FormCopyrightDialog;
+class CopyrightDialog;
 
 /**
   @author Jürgen Vigna
@@ -42,7 +42,7 @@ private:
        void update(bool) {}
 
        /// Real GUI implementation.
-       FormCopyrightDialog * dialog_;
+       CopyrightDialog * dialog_;
        /** Which LyXFunc do we use?
            We could modify Dialogs to have a visible LyXFunc* instead and
            save a couple of bytes per dialog.
index 835b26fef6e2a28d45319e5244ae913705fb6aaf..30dadef97c684425f05247e6c71cf250af6e498b 100644 (file)
@@ -21,7 +21,7 @@
 #include "buffer.h"
 #include "LyXView.h"
 #include "lyxfunc.h" 
-#include "formindexdialog.h"
+#include "indexdlg.h"
 
 FormIndex::FormIndex(LyXView *v, Dialogs *d)
        : dialog_(0), lv_(v), d_(d), inset_(0), h_(0), u_(0), ih_(0)
@@ -93,7 +93,7 @@ void FormIndex::apply()
 void FormIndex::show()
 {
        if (!dialog_)
-               dialog_ = new FormIndexDialog(this, 0, _("LyX: Index"));
+               dialog_ = new IndexDialog(this, 0, _("LyX: Index"));
  
        if (!dialog_->isVisible()) {
                h_ = d_->hideBufferDependent.connect(slot(this, &FormIndex::hide));
index 3eb277c712a382e9568badec6c2fe3a79e8ebd03..4455fc8708ed53f4f39dd5be80e73d5a3825d13f 100644 (file)
@@ -22,7 +22,7 @@
 
 class Dialogs;
 class LyXView;
-class FormIndexDialog;
+class IndexDialog;
 
 class FormIndex : public DialogBase, public noncopyable {
 public: 
@@ -53,7 +53,7 @@ private:
        void showIndex(InsetCommand * const);
  
        /// Real GUI implementation.
-       FormIndexDialog * dialog_;
+       IndexDialog * dialog_;
 
        /// the LyXView we belong to
        LyXView * lv_;
diff --git a/src/frontends/kde/FormParagraph.C b/src/frontends/kde/FormParagraph.C
new file mode 100644 (file)
index 0000000..d42cc7d
--- /dev/null
@@ -0,0 +1,205 @@
+/*
+ * FormParagraph.C
+ * (C) 2000 LyX Team
+ * John Levon, moz@compsoc.man.ac.uk
+ */
+
+/***************************************************************************
+ *                                                                         *
+ *   This program is free software; you can redistribute it and/or modify  *
+ *   it under the terms of the GNU General Public License as published by  *
+ *   the Free Software Foundation; either version 2 of the License, or     *
+ *   (at your option) any later version.                                   *
+ *                                                                         *
+ ***************************************************************************/
+
+#include <config.h>
+
+#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"
+
+#ifdef CXX_WORKING_NAMESPACES
+using Liason::setMinibuffer;
+#endif
+
+FormParagraph::FormParagraph(LyXView *v, Dialogs *d)
+       : dialog_(0), lv_(v), d_(d), h_(0)
+{
+       // 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->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();
+       
+       LyXText *text = 0;
+
+       if (lv_->view()->theLockingInset())
+               text = lv_->view()->theLockingInset()->getLyXText(lv_->view());
+
+       if (!text)
+               text = lv_->view()->text;
+
+       LyXParagraph *par = text->cursor.par();
+
+       int align = par->GetAlign();
+       
+       if (align==LYX_ALIGN_LAYOUT)
+               align = textclasslist.Style(buf->params.textclass, par->GetLayout()).align;
+
+#ifndef NEW_INSETS
+       LyXParagraph *physpar = par->FirstPhysicalPar();
+#else
+       LyXParagraph *physpar = par;
+#endif
+
+       if (physpar->added_space_top.kind()==VSpace::LENGTH) {
+               // FIXME: ??? this breaks badly if we ever add non glue length vspace to a paragraph
+               // I need some help here ... it is silly anyway !
+               LyXGlueLength above(physpar->added_space_top.length().asString());
+               lyxerr[Debug::GUI] << "Reading above space : \"" << physpar->added_space_top.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->added_space_bottom.kind()==VSpace::LENGTH) {
+               // FIXME: ??? this breaks badly if we ever add non glue length vspace to a paragraph
+               // I need some help here ... it is silly anyway !
+               LyXGlueLength below(physpar->added_space_bottom.length().asString());
+               lyxerr[Debug::GUI] << "Reading below space : \"" << physpar->added_space_bottom.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);
+
+       if (readonly!=buf->isReadonly()) {
+               readonly = buf->isReadonly();
+               dialog_->setReadOnly(readonly);
+       }
+
+       dialog_->setLabelWidth(text->cursor.par()->GetLabelWidthString().c_str());
+       dialog_->setAlign(align);
+       dialog_->setChecks(physpar->line_top, physpar->line_bottom,
+               physpar->pagebreak_top, physpar->pagebreak_bottom, physpar->noindent);
+       dialog_->setSpace(physpar->added_space_top.kind(), physpar->added_space_bottom.kind(),
+               physpar->added_space_top.keep(), physpar->added_space_bottom.keep());
+
+       // now the extras page
+
+       LyXLength extrawidth;
+       float val = 0.0;
+       LyXLength::UNIT unit = LyXLength::CM;
+
+       if (isValidLength(par->pextra_width, &extrawidth)) {
+               lyxerr[Debug::GUI] << "Reading extra width \"" << extrawidth.asString() << "\"" << endl;
+               val = extrawidth.value();
+               unit = extrawidth.unit();
+       }
+
+       lyxerr[Debug::GUI] << "Reading widthp \"" << par->pextra_widthp << "\"" << endl;
+
+       dialog_->setExtra(val, unit, par->pextra_widthp,
+               par->pextra_alignment,
+               par->pextra_hfill,
+               par->pextra_start_minipage,
+               static_cast<LyXParagraph::PEXTRA_TYPE>(par->pextra_type));
+}
+
+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());
+
+       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());
+
+       // extra stuff
+
+       string width("");
+       string widthp("");
+
+       LyXLength extrawidth(dialog_->getExtraWidth());
+       if (extrawidth.unit()==LyXLength::UNIT_NONE) {
+               widthp = dialog_->getExtraWidthPercent();
+       } else
+               width = extrawidth.asString();
+
+       lyxerr[Debug::GUI] << "Setting extrawidth \"" << width << "\"" << endl;
+       lyxerr[Debug::GUI] << "Setting percent extrawidth \"" << widthp << "\"" << endl;
+
+       lv_->view()->text->SetParagraphExtraOpt(lv_->view(),
+               dialog_->getExtraType(), width, widthp,
+               dialog_->getExtraAlign(),
+               dialog_->getHfillBetween(),
+               dialog_->getStartNewMinipage());
+}
+
+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
new file mode 100644 (file)
index 0000000..0d8ae4f
--- /dev/null
@@ -0,0 +1,66 @@
+/* FormParagraph.h
+ * (C) 2000 LyX Team
+ * John Levon, moz@compsoc.man.ac.uk
+ */
+
+/***************************************************************************
+ *                                                                         *
+ *   This program is free software; you can redistribute it and/or modify  *
+ *   it under the terms of the GNU General Public License as published by  *
+ *   the Free Software Foundation; either version 2 of the License, or     *
+ *   (at your option) any later version.                                   *
+ *                                                                         *
+ ***************************************************************************/
+
+#ifndef FORMPARAGRAPH_H
+#define FORMPARAGRAPH_H
+
+#include "DialogBase.h"
+#include "LString.h"
+#include "boost/utility.hpp"
+#include "insets/inseturl.h"
+
+class Dialogs;
+class LyXView;
+class ParaDialog;
+
+class FormParagraph : public DialogBase, public noncopyable {
+public: 
+       /**@name Constructors and Destructors */
+       //@{
+       ///
+       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.
+       Connection h_;
+       
+       /// readonly file or not
+       bool readonly; 
+};
+
+#endif
index fd1bcbd17e5d407c203a416ab39307140ea5901e..b28c77f1f926d5a7162917ca6f62a8c7860a131a 100644 (file)
@@ -15,7 +15,7 @@
 
 #include <config.h>
 
-#include "formprintdialog.h"
+#include "printdlg.h"
 #include "Dialogs.h"
 #include "FormPrint.h"
 #include "gettext.h"
@@ -36,6 +36,7 @@ using SigC::slot;
 #ifdef CXX_WORKING_NAMESPACES
 using Liason::printBuffer;
 using Liason::getPrinterParams;
+using std::max;
 #endif
 
 FormPrint::FormPrint(LyXView *v, Dialogs *d)
@@ -66,7 +67,7 @@ void FormPrint::update(bool)
        dialog_->setWhichPages(pp.which_pages);
         dialog_->setReverse(pp.reverse_order);
        dialog_->setSort(pp.unsorted_copies);
-       dialog_->setCount(tostr(pp.count_copies).c_str());
+       dialog_->setCount(pp.count_copies);
        
                if (!pp.from_page.empty()) {
                dialog_->setFrom(pp.from_page.c_str());
@@ -98,7 +99,7 @@ void FormPrint::print()
        retval = printBuffer(lv_->buffer(), PrinterParams(dialog_->getTarget(),
                string(dialog_->getPrinter()), string(dialog_->getFile()), 
                dialog_->getWhichPages(), from, to, dialog_->getReverse(), 
-               dialog_->getSort(), strToInt(dialog_->getCount())));
+               dialog_->getSort(), max(strToInt(dialog_->getCount()),1)));
 
        if (!retval) {
                // FIXME: should have a utility class for this
@@ -114,7 +115,7 @@ void FormPrint::print()
 void FormPrint::show()
 {
        if (!dialog_)
-               dialog_ = new FormPrintDialog(this, 0, _("LyX: Print"));
+               dialog_ = new PrintDialog(this, 0, _("LyX: Print"));
  
        if (!dialog_->isVisible()) {
                h_ = d_->hideBufferDependent.connect(slot(this, &FormPrint::hide));
index 97856befa4f18ec3981409151c27b748d927ff6a..467626a2a003d6a073d4e7f531bde1af35ab2027 100644 (file)
@@ -20,7 +20,7 @@
 
 class Dialogs;
 class LyXView;
-class FormPrintDialog;
+class PrintDialog;
 
 class FormPrint : public DialogBase, public noncopyable {
 public: 
@@ -46,7 +46,7 @@ private:
        void update(bool = false);
 
        /// Real GUI implementation.
-       FormPrintDialog * dialog_;
+       PrintDialog * dialog_;
 
        /// the LyXView we belong to
        LyXView * lv_;
index ea38d8ad4e0bc48dab199736fc6c41a5930d3965..d816e0ef705a8a06e9a5e2e9c711516befe355da 100644 (file)
@@ -21,7 +21,7 @@
 #include "buffer.h"
 #include "LyXView.h"
 #include "lyxfunc.h"
-#include "formrefdialog.h"
+#include "refdlg.h"
 #include "debug.h"
 
 using std::endl;
@@ -246,7 +246,7 @@ void FormRef::apply()
 void FormRef::show()
 {
        if (!dialog_)
-               dialog_ = new FormRefDialog(this, 0, _("LyX: Cross Reference"), false);
+               dialog_ = new RefDialog(this, 0, _("LyX: Cross Reference"), false);
 
        if (!dialog_->isVisible()) {
                h_ = d_->hideBufferDependent.connect(slot(this, &FormRef::hide));
index 264ba94521ddde0b9344286902acb1f2949cffd9..9d1750ec3648819394348ca22dfcc6245107f924 100644 (file)
@@ -22,7 +22,7 @@
 
 class Dialogs;
 class LyXView;
-class FormRefDialog;
+class RefDialog;
 
 class FormRef : public DialogBase, public noncopyable {
 public: 
@@ -74,7 +74,7 @@ private:
        void updateRefs(void);
  
        /// Real GUI implementation.
-       FormRefDialog * dialog_;
+       RefDialog * dialog_;
 
        /// the LyXView we belong to
        LyXView * lv_;
index b805c3407874b49aae313d12b8873678692cf157..b2bbc197faa2d5523be7623d522947e07d02883c 100644 (file)
@@ -17,7 +17,7 @@
 
 #include <stack>
 
-#include "formtocdialog.h"
+#include "tocdlg.h"
 
 #include "Dialogs.h"
 #include "FormToc.h"
@@ -241,7 +241,7 @@ void FormToc::set_type(Buffer::TocType toctype)
 void FormToc::show()
 {
        if (!dialog_)
-               dialog_ = new FormTocDialog(this, 0, _("LyX: Table of Contents"), false);
+               dialog_ = new TocDialog(this, 0, _("LyX: Table of Contents"), false);
 
        if (!dialog_->isVisible()) {
                h_ = d_->hideBufferDependent.connect(slot(this, &FormToc::hide));
index 04ac8d301a00b51665ab8113831c29dc87c46101..78e6ab123ec2b14ab0745e7d57e53535cbb9b00f 100644 (file)
@@ -22,7 +22,7 @@
 #include "buffer.h"
 
 class Dialogs;
-class FormTocDialog;
+class TocDialog;
 
 class FormToc : public DialogBase, public noncopyable {
 public:
@@ -63,7 +63,7 @@ private:
        void setType(Buffer::TocType);
 
        /// Real GUI implementation.
-       FormTocDialog * dialog_;
+       TocDialog * dialog_;
 
        /// the LyXView we belong to
        LyXView * lv_;
index 5b760311a9e386d6b2e72e81c59855b3b011b6ce..4548df407d4cc57c05d121849fdab30da5d50bea 100644 (file)
@@ -21,7 +21,7 @@
 #include "buffer.h"
 #include "LyXView.h"
 #include "lyxfunc.h" 
-#include "formurldialog.h"
+#include "urldlg.h"
 
 FormUrl::FormUrl(LyXView *v, Dialogs *d)
        : dialog_(0), lv_(v), d_(d), inset_(0), h_(0), u_(0), ih_(0)
@@ -120,7 +120,7 @@ void FormUrl::apply()
 void FormUrl::show()
 {
        if (!dialog_)
-               dialog_ = new FormUrlDialog(this, 0, _("LyX: Url"), false);
+               dialog_ = new UrlDialog(this, 0, _("LyX: Url"), false);
  
        if (!dialog_->isVisible()) {
                h_ = d_->hideBufferDependent.connect(slot(this, &FormUrl::hide));
index ae084ceaaf311f5e6b0b41acca940406ddf355dd..7fd152d34eeff0d112cc7eb48694c62c8590ea73 100644 (file)
@@ -22,7 +22,7 @@
 
 class Dialogs;
 class LyXView;
-class FormUrlDialog;
+class UrlDialog;
 
 class FormUrl : public DialogBase, public noncopyable {
 public: 
@@ -53,7 +53,7 @@ private:
        void showUrl(InsetCommand * const);
  
        /// Real GUI implementation.
-       FormUrlDialog * dialog_;
+       UrlDialog * dialog_;
 
        /// the LyXView we belong to
        LyXView * lv_;
index 09060ffe621a51fa8e221983dc88983831c4c0b2..8b9fe1639a67133e24061175e62334eecf32cda9 100644 (file)
@@ -7,16 +7,34 @@ INCLUDES = -I${top_srcdir}/src/ -I${top_srcdir}/src/frontends/ \
        -I${top_srcdir}/src/frontends/xforms
 
 # just to make sure, automake makes them 
-BUILTSOURCES = formcitationdialog_moc.C \
-               formcopyrightdialog_moc.C \
-               formcopyrightdialogdata_moc.C \
-               formindexdialog_moc.C \
-               formindexdialogdata_moc.C \
-               formprintdialog_moc.C \
-               formprintdialogdata_moc.C \
-               formrefdialog_moc.C \
-               formtocdialog_moc.C \
-               formurldialog_moc.C
+BUILTSOURCES = citationdlg_moc.C \
+               copyrightdlg_moc.C \
+               copyrightdlgdata_moc.C \
+               indexdlg_moc.C \
+               indexdlgdata_moc.C \
+               paradlg_moc.C \
+               parageneraldlg_moc.C \
+               parageneraldlgdata_moc.C \
+               paraextradlg_moc.C \
+               paraextradlgdata_moc.C \
+               printdlg_moc.C \
+               printdlgdata_moc.C \
+               refdlg_moc.C \
+               tocdlg_moc.C \
+               urldlg_moc.C
+
+# generated by qtarch
+
+GENSOURCES =    copyrightdlgdata.C \
+               copyrightdlgdata.h \
+               indexdlgdata.C \
+               indexdlgdata.h \
+               parageneraldlgdata.C \
+               parageneraldlgdata.h \
+               paraextradlgdata.C \
+               paraextradlgdata.h \
+               printdlgdata.C \
+               printdlgdata.h
 
 DISTCLEANFILES = $(BUILTSOURCES) *.orig *.rej *~ *.bak core
 
@@ -29,8 +47,6 @@ libkde_la_OBJADD = \
         ../xforms/FormGraphics.lo \
         ../xforms/form_graphics.lo \
        ../xforms/FormInset.lo \
-       ../xforms/FormParagraph.lo \
-       ../xforms/form_paragraph.lo \
         ../xforms/FormPreferences.lo \
         ../xforms/form_preferences.lo \
         ../xforms/FormTabular.lo \
@@ -54,6 +70,8 @@ libkde_la_SOURCES = \
        FormCopyright.h \
        FormIndex.C \
        FormIndex.h \
+       FormParagraph.C \
+       FormParagraph.h \
        FormPrint.C \
        FormPrint.h \
        FormRef.C \
@@ -62,26 +80,27 @@ libkde_la_SOURCES = \
        FormToc.h \
        FormUrl.C \
        FormUrl.h \
-       formcitationdialog.C \
-       formcitationdialog.h \
-       formcopyrightdialog.C \
-       formcopyrightdialog.h \
-       formcopyrightdialogdata.C \
-       formcopyrightdialogdata.h \
-       formindexdialog.C \
-       formindexdialog.h \
-       formindexdialogdata.C \
-       formindexdialogdata.h \
-       formprintdialog.C \
-       formprintdialog.h \
-       formprintdialogdata.C \
-       formprintdialogdata.h \
-       formrefdialog.C \
-       formrefdialog.h \
-       formtocdialog.C \
-       formtocdialog.h \
-       formurldialog.C \
-       formurldialog.h \
+       citationdlg.C \
+       citationdlg.h \
+       copyrightdlg.C \
+       copyrightdlg.h \
+       indexdlg.C \
+       indexdlg.h \
+       paradlg.C \
+       paradlg.h \
+       parageneraldlg.C \
+       parageneraldlg.h \
+       paraextradlg.C \
+       paraextradlg.h \
+       printdlg.C \
+       printdlg.h \
+       refdlg.C \
+       refdlg.h \
+       tocdlg.C \
+       tocdlg.h \
+       urldlg.C \
+       urldlg.h \
+       $(GENSOURCES) \
        $(BUILTSOURCES)
 
 # These still have to be added. Sooner or later. ARRae-20000129
@@ -107,46 +126,68 @@ dist-hook:
 
 # dialog file dependencies
 
-formcopyrightdialogdata.C formcopyrightdialogdata.h: dlg/formcopyrightdialog.dlg
-       $(QTARCH) -g dlg/formcopyrightdialog.dlg
-formindexdialogdata.C formindexdialogdata.h: dlg/formindexdialog.dlg
-       $(QTARCH) -g dlg/formindexdialog.dlg
-formprintdialogdata.C formprintdialogdata.h: dlg/formprintdialog.dlg
-       $(QTARCH) -g dlg/formprintdialog.dlg
+copyrightdlgdata.C copyrightdlgdata.h: dlg/copyright.dlg
+       $(QTARCH) -g dlg/copyright.dlg
+indexdlgdata.C indexdlgdata.h: dlg/index.dlg
+       $(QTARCH) -g dlg/index.dlg
+printdlgdata.C printdlgdata.h: dlg/print.dlg
+       $(QTARCH) -g dlg/print.dlg
+parageneraldlgdata.C parageneraldlgdata.h: dlg/parageneral.dlg
+       $(QTARCH) -g dlg/parageneral.dlg
+paraextradlgdata.C paraextradlgdata.h: dlg/paraextra.dlg
+       $(QTARCH) -g dlg/paraextra.dlg
+
+dlgdata: $(GENSOURCES) 
 
 # add a dependency for every moc file to be full portable
 # I've added a key binding to emacs for this. 
 
-formcitationdialog.C: formcitationdialog_moc.C
-formcitationdialog_moc.C: formcitationdialog.h
-       $(MOC) formcitationdialog.h -o formcitationdialog_moc.C
-
-formcopyrightdialog.C: formcopyrightdialog_moc.C
-formcopyrightdialog_moc.C: formcopyrightdialog.h
-       $(MOC) formcopyrightdialog.h -o formcopyrightdialog_moc.C
-formcopyrightdialogdata_moc.C: formcopyrightdialogdata.h
-       $(MOC) formcopyrightdialogdata.h -o formcopyrightdialogdata_moc.C
-
-formindexdialog.C: formindexdialog_moc.C
-formindexdialog_moc.C: formindexdialog.h
-       $(MOC) formindexdialog.h -o formindexdialog_moc.C
-formindexdialogdata_moc.C: formindexdialogdata.h
-       $(MOC) formindexdialogdata.h -o formindexdialogdata_moc.C
-
-formprintdialog.C: formprintdialog_moc.C
-formprintdialog_moc.C: formprintdialog.h
-       $(MOC) formprintdialog.h -o formprintdialog_moc.C
-formprintdialogdata_moc.C: formprintdialogdata.h
-       $(MOC) formprintdialogdata.h -o formprintdialogdata_moc.C
-
-formrefdialog.C: formrefdialog_moc.C
-formrefdialog_moc.C: formrefdialog.h
-       $(MOC) formrefdialog.h -o formrefdialog_moc.C
-
-formtocdialog.C: formtocdialog_moc.C
-formtocdialog_moc.C: formtocdialog.h
-       $(MOC) formtocdialog.h -o formtocdialog_moc.C
+citationdlg.C: citationdlg_moc.C
+citationdlg_moc.C: citationdlg.h
+       $(MOC) citationdlg.h -o citationdlg_moc.C
+
+copyrightdlg.C: copyrightdlg_moc.C
+copyrightdlg_moc.C: copyrightdlg.h
+       $(MOC) copyrightdlg.h -o copyrightdlg_moc.C
+copyrightdlgdata_moc.C: copyrightdlgdata.h
+       $(MOC) copyrightdlgdata.h -o copyrightdlgdata_moc.C
+
+indexdlg.C: indexdlg_moc.C
+indexdlg_moc.C: indexdlg.h
+       $(MOC) indexdlg.h -o indexdlg_moc.C
+indexdlgdata_moc.C: indexdlgdata.h
+       $(MOC) indexdlgdata.h -o indexdlgdata_moc.C
+
+paradlg.C: paradlg_moc.C
+paradlg_moc.C: paradlg.h
+       $(MOC) paradlg.h -o paradlg_moc.C
+
+parageneraldlg.C: parageneraldlg_moc.C
+parageneraldlg_moc.C: parageneraldlg.h
+       $(MOC) parageneraldlg.h -o parageneraldlg_moc.C
+parageneraldlgdata_moc.C: parageneraldlgdata.h
+       $(MOC) parageneraldlgdata.h -o parageneraldlgdata_moc.C
+paraextradlg.C: paraextradlg_moc.C
+paraextradlg_moc.C: paraextradlg.h
+       $(MOC) paraextradlg.h -o paraextradlg_moc.C
+paraextradlgdata_moc.C: paraextradlgdata.h
+       $(MOC) paraextradlgdata.h -o paraextradlgdata_moc.C
+printdlg.C: printdlg_moc.C
+printdlg_moc.C: printdlg.h
+       $(MOC) printdlg.h -o printdlg_moc.C
+printdlgdata_moc.C: printdlgdata.h
+       $(MOC) printdlgdata.h -o printdlgdata_moc.C
+
+refdlg.C: refdlg_moc.C
+refdlg_moc.C: refdlg.h
+       $(MOC) refdlg.h -o refdlg_moc.C
+
+tocdlg.C: tocdlg_moc.C
+tocdlg_moc.C: tocdlg.h
+       $(MOC) tocdlg.h -o tocdlg_moc.C
  
-formurldialog.C: formurldialog_moc.C
-formurldialog_moc.C: formurldialog.h
-       $(MOC) formurldialog.h -o formurldialog_moc.C
+urldlg.C: urldlg_moc.C
+urldlg_moc.C: urldlg.h
+       $(MOC) urldlg.h -o urldlg_moc.C
diff --git a/src/frontends/kde/citationdlg.C b/src/frontends/kde/citationdlg.C
new file mode 100644 (file)
index 0000000..d2b0b79
--- /dev/null
@@ -0,0 +1,173 @@
+/*
+ * citationdlg.C
+ * (C) 2000 LyX Team
+ * John Levon, moz@compsoc.man.ac.uk
+ */
+
+/***************************************************************************
+ *                                                                         *
+ *   This program is free software; you can redistribute it and/or modify  *
+ *   it under the terms of the GNU General Public License as published by  *
+ *   the Free Software Foundation; either version 2 of the License, or     *
+ *   (at your option) any later version.                                   *
+ *                                                                         *
+ ***************************************************************************/
+
+#include "citationdlg.h"
+
+CitationDialog::CitationDialog(FormCitation *form, QWidget *parent, const char *name, bool, WFlags)
+       : QDialog(parent,name,false), form_(form)
+{
+       setCaption(name);
+       setMinimumWidth(500);
+
+       // widgets
+
+       labelchosen = new QLabel(this);
+       labelchosen->setText(_("Selected keys"));
+       labelchosen->setMinimumSize(labelchosen->sizeHint());
+       labelchosen->setMaximumSize(labelchosen->sizeHint());
+
+       chosen = new QListBox(this);
+
+       labelkeys = new QLabel(this);
+       labelkeys->setText(_("Available keys"));
+       labelkeys->setMinimumSize(labelkeys->sizeHint());
+       labelkeys->setMaximumSize(labelkeys->sizeHint());
+
+       keys = new QListBox(this);
+
+       labelentry = new QLabel(this);
+       labelentry->setText(_("Reference entry"));
+       labelentry->setMinimumSize(labelentry->sizeHint());
+       labelentry->setMaximumSize(labelentry->sizeHint());
+
+       after = new QLineEdit(this);
+       after->setMinimumSize(after->sizeHint());
+
+       entry = new QMultiLineEdit(this);
+       entry->setReadOnly(true);
+       entry->setFixedVisibleLines(2); 
+
+       labelafter = new QLabel(this);
+       labelafter->setText(_("Text after"));
+       labelafter->setMargin(5);
+       labelafter->setMinimumSize(labelafter->sizeHint());
+       labelafter->setMaximumSize(labelafter->sizeHint());
+
+       /* FIXME: icons */
+       add = new QPushButton(this); 
+       add->setText(_("&Add"));
+       add->setMinimumSize(add->sizeHint());
+       add->setMaximumSize(add->sizeHint());
+       up = new QPushButton(this); 
+       up->setText(_("&Up"));
+       up->setMinimumSize(up->sizeHint());
+       up->setMaximumSize(up->sizeHint());
+       down = new QPushButton(this); 
+       down->setText(_("&Down"));
+       down->setMinimumSize(down->sizeHint());
+       down->setMaximumSize(down->sizeHint());
+       remove = new QPushButton(this); 
+       remove->setText(_("&Remove"));
+       remove->setMinimumSize(remove->sizeHint());
+       remove->setMaximumSize(remove->sizeHint());
+
+       buttonOk = new QPushButton(this);
+       buttonOk->setText(_("&OK"));
+       buttonOk->setDefault(true);
+       buttonOk->setMinimumSize(buttonOk->sizeHint());
+       buttonOk->setMaximumSize(buttonOk->sizeHint());
+
+       buttonCancel = new QPushButton(this);
+       buttonCancel->setText(_("&Cancel"));
+       buttonCancel->setMinimumSize(buttonCancel->sizeHint());
+       buttonCancel->setMaximumSize(buttonCancel->sizeHint());
+
+       // tooltips
+
+       QToolTip::add(chosen,_("Keys currently selected"));
+       QToolTip::add(keys,_("Reference keys available"));
+       QToolTip::add(entry,_("Reference entry text"));
+       QToolTip::add(after,_("Text to place after citation"));
+
+       // layouts
+
+       topLayout = new QHBoxLayout(this,10);
+
+       layout = new QVBoxLayout();
+       topLayout->addLayout(layout);
+       layout->addSpacing(10);
+
+       browserLayout = new QHBoxLayout();
+       layout->addLayout(browserLayout,1);
+
+       chosenLayout = new QVBoxLayout();
+       browserLayout->addLayout(chosenLayout,1); 
+       iconLayout = new QVBoxLayout();
+       browserLayout->addLayout(iconLayout,0);
+       keysLayout = new QVBoxLayout();
+       browserLayout->addLayout(keysLayout,1);
+       chosenLayout->addWidget(labelchosen, 0, AlignLeft);
+       chosenLayout->addWidget(chosen, 1);
+       iconLayout->addStretch(1);
+       iconLayout->addWidget(add,1);
+       iconLayout->addStretch(1);
+       iconLayout->addWidget(up,1);
+       iconLayout->addStretch(1);
+       iconLayout->addWidget(down,1);
+       iconLayout->addStretch(1);
+       iconLayout->addWidget(remove,1);
+       iconLayout->addStretch(1);
+       keysLayout->addWidget(labelkeys, 0, AlignLeft);
+       keysLayout->addWidget(keys, 1);
+
+       entryLayout = new QVBoxLayout();
+       layout->addLayout(entryLayout);
+       entryLayout->addWidget(labelentry, 0, AlignLeft);
+       entryLayout->addWidget(entry, 0);
+
+       afterLayout = new QHBoxLayout();
+       layout->addLayout(afterLayout);
+
+       afterLayout->addWidget(labelafter, 0, AlignLeft);
+       afterLayout->addWidget(after, 1);
+       buttonLayout = new QHBoxLayout();
+       layout->addLayout(buttonLayout);
+       buttonLayout->addStretch(1);
+       buttonLayout->addWidget(buttonOk, 1);
+       buttonLayout->addStretch(2);
+       buttonLayout->addWidget(buttonCancel, 1);
+       buttonLayout->addStretch(1);
+       // connections
+
+       connect(keys, SIGNAL(selected(const char *)), this, SLOT(select_key_adaptor(const char *)));
+       connect(keys, SIGNAL(highlighted(const char *)), this, SLOT(highlight_key_adaptor(const char *)));
+       connect(chosen, SIGNAL(highlighted(const char *)), this, SLOT(highlight_chosen_adaptor(const char *)));
+       connect(add, SIGNAL(clicked()), this, SLOT(add_adaptor()));
+       connect(up, SIGNAL(clicked()), this, SLOT(up_adaptor()));
+       connect(down, SIGNAL(clicked()), this, SLOT(down_adaptor()));   
+       connect(remove, SIGNAL(clicked()), this, SLOT(remove_adaptor()));
+       connect(buttonOk, SIGNAL(clicked()), this, SLOT(apply_adaptor()));
+       connect(buttonCancel, SIGNAL(clicked()), this, SLOT(close_adaptor()));
+}
+
+CitationDialog::~CitationDialog()
+{
+}
+
+void CitationDialog::closeEvent(QCloseEvent *e)
+{
+       form_->close();
+       e->accept();
+}
diff --git a/src/frontends/kde/citationdlg.h b/src/frontends/kde/citationdlg.h
new file mode 100644 (file)
index 0000000..7a5ee35
--- /dev/null
@@ -0,0 +1,118 @@
+/*
+ * citationdlg.h
+ * (C) 2000 LyX Team
+ * John Levon, moz@compsoc.man.ac.uk
+ */
+
+/***************************************************************************
+ *                                                                         *
+ *   This program is free software; you can redistribute it and/or modify  *
+ *   it under the terms of the GNU General Public License as published by  *
+ *   the Free Software Foundation; either version 2 of the License, or     *
+ *   (at your option) any later version.                                   *
+ *                                                                         *
+ ***************************************************************************/
+
+#ifndef CITATIONDLG_H
+#define CITATIONDLG_H
+
+#include <config.h>
+#include <gettext.h>
+
+// to connect apply() and hide()
+#include "FormCitation.h"
+
+#include <qdialog.h>
+#include <qlistbox.h> 
+#include <qlayout.h>
+#include <qlabel.h>
+#include <qtooltip.h>
+#include <qlineedit.h>
+#include <qmultilinedit.h> 
+#include <qpushbutton.h>
+
+class CitationDialog : public QDialog  {
+   Q_OBJECT
+public:
+       CitationDialog(FormCitation *form, QWidget *parent=0, const char *name=0,
+                           bool modal=false, WFlags f=0);
+       ~CitationDialog();
+
+       // widgets
+       QLabel *labelchosen;
+       QListBox *chosen;
+       QLabel *labelkeys;
+       QListBox *keys;
+       QLabel *labelentry;
+       QMultiLineEdit *entry;
+       QLabel *labelafter;
+       QLineEdit *after;
+       QPushButton *add;
+       QPushButton *up;
+       QPushButton *down;
+       QPushButton *remove;
+       QPushButton *buttonOk;
+       QPushButton *buttonCancel;
+protected:
+       void closeEvent(QCloseEvent *e);
+private:
+       FormCitation *form_;
+
+       // layouts
+       QHBoxLayout *topLayout;
+       QVBoxLayout *layout;
+       QHBoxLayout *browserLayout;
+       QVBoxLayout *chosenLayout;
+       QVBoxLayout *iconLayout;
+       QVBoxLayout *keysLayout; 
+       QVBoxLayout *entryLayout; 
+       QHBoxLayout *afterLayout;
+       QHBoxLayout *buttonLayout;
+
+private slots:
+       void apply_adaptor(void) {
+               form_->apply();
+               form_->close();
+               hide();
+       }
+
+       void close_adaptor(void) {
+               form_->close();
+               hide();
+       }
+
+       void add_adaptor(void) {
+               form_->add();
+       }
+
+       void up_adaptor(void) {
+               form_->up();
+       }
+
+       void down_adaptor(void) {
+               form_->down();
+       }
+
+       void remove_adaptor(void) {
+               form_->remove();
+       }
+
+       void select_key_adaptor(const char *key) {
+               form_->select_key(key);
+       }
+       void highlight_key_adaptor(const char *key) {
+               form_->highlight_key(key);
+       }
+
+       void highlight_chosen_adaptor(const char *key) {
+               form_->highlight_chosen(key);
+       }
+};
+
+#endif
diff --git a/src/frontends/kde/copyrightdlg.C b/src/frontends/kde/copyrightdlg.C
new file mode 100644 (file)
index 0000000..59ded80
--- /dev/null
@@ -0,0 +1,33 @@
+/**********************************************************************
+
+       --- Qt Architect generated file ---
+
+       File: copyrightdlg.C
+       Last generated: Thu Oct 12 18:32:40 2000
+
+ *********************************************************************/
+
+#include "copyrightdlg.h"
+
+#define Inherited CopyrightDialogData
+
+CopyrightDialog::CopyrightDialog
+(
+       QWidget* parent,
+       const char* name
+)
+       :
+       Inherited( parent, name )
+{
+       setCaption(name);
+}
+
+
+CopyrightDialog::~CopyrightDialog()
+{
+}
+
+void CopyrightDialog::clickedOK()
+{
+       hide();
+}
diff --git a/src/frontends/kde/copyrightdlg.h b/src/frontends/kde/copyrightdlg.h
new file mode 100644 (file)
index 0000000..449f504
--- /dev/null
@@ -0,0 +1,33 @@
+/**********************************************************************
+
+       --- Qt Architect generated file ---
+
+       File: copyrightdlg.h
+       Last generated: Thu Oct 12 18:32:40 2000
+
+ *********************************************************************/
+
+#ifndef CopyrightDialog_included
+#define CopyrightDialog_included
+
+#include "copyrightdlgdata.h"
+
+class CopyrightDialog : public CopyrightDialogData
+{
+    Q_OBJECT
+
+public:
+
+    CopyrightDialog
+    (
+        QWidget* parent = NULL,
+        const char* name = NULL
+    );
+
+    virtual ~CopyrightDialog();
+
+protected slots:
+
+    virtual void clickedOK();
+};
+#endif // CopyrightDialog_included
diff --git a/src/frontends/kde/copyrightdlgdata.C b/src/frontends/kde/copyrightdlgdata.C
new file mode 100644 (file)
index 0000000..090421a
--- /dev/null
@@ -0,0 +1,140 @@
+/**********************************************************************
+
+       --- Qt Architect generated file ---
+
+       File: copyrightdlgdata.C
+       Last generated: Sat Oct 14 03:43:37 2000
+
+       DO NOT EDIT!!!  This file will be automatically
+       regenerated by qtarch.  All changes will be lost.
+
+ *********************************************************************/
+
+#include <gettext.h>
+#include <qpixmap.h>
+#include <qlayout.h>
+#include "copyrightdlgdata.h"
+
+#define Inherited QWidget
+
+#include <qlabel.h>
+
+CopyrightDialogData::CopyrightDialogData
+(
+       QWidget* parent,
+       const char* name
+)
+       :
+       Inherited( parent, name, 53248 )
+{
+       buttonOk = new QPushButton( this, "PushButton_OK" );
+       buttonOk->setGeometry( 157, 343, 151, 107 );
+       buttonOk->setMinimumSize( 0, 0 );
+       buttonOk->setMaximumSize( 32767, 32767 );
+       connect( buttonOk, SIGNAL(clicked()), SLOT(clickedOK()) );
+       buttonOk->setFocusPolicy( QWidget::TabFocus );
+       buttonOk->setBackgroundMode( QWidget::PaletteBackground );
+       buttonOk->setFontPropagation( QWidget::NoChildren );
+       buttonOk->setPalettePropagation( QWidget::NoChildren );
+       buttonOk->setText( _("&OK") );
+       buttonOk->setAutoRepeat( FALSE );
+       buttonOk->setAutoResize( FALSE );
+       buttonOk->setToggleButton( FALSE );
+       buttonOk->setDefault( FALSE );
+       buttonOk->setAutoDefault( TRUE );
+       buttonOk->setIsMenuButton( FALSE );
+
+       QLabel* qtarch_Label_2;
+       qtarch_Label_2 = new QLabel( this, "Label_2" );
+       qtarch_Label_2->setGeometry( 5, 5, 455, 108 );
+       qtarch_Label_2->setMinimumSize( 0, 0 );
+       qtarch_Label_2->setMaximumSize( 32767, 32767 );
+       qtarch_Label_2->setFocusPolicy( QWidget::NoFocus );
+       qtarch_Label_2->setBackgroundMode( QWidget::PaletteBackground );
+       qtarch_Label_2->setFontPropagation( QWidget::NoChildren );
+       qtarch_Label_2->setPalettePropagation( QWidget::NoChildren );
+       qtarch_Label_2->setFrameStyle( 50 );
+       qtarch_Label_2->setLineWidth( 1 );
+       qtarch_Label_2->setMidLineWidth( 0 );
+       qtarch_Label_2->QFrame::setMargin( 1 );
+       qtarch_Label_2->setText( _("LyX is Copyright (C) 1995 by Matthias Ettrich, \n1995-2000 LyX Team") );
+       qtarch_Label_2->setAlignment( 1316 );
+       qtarch_Label_2->setMargin( -1 );
+
+       QLabel* qtarch_Label_3;
+       qtarch_Label_3 = new QLabel( this, "Label_3" );
+       qtarch_Label_3->setGeometry( 5, 118, 455, 107 );
+       qtarch_Label_3->setMinimumSize( 0, 0 );
+       qtarch_Label_3->setMaximumSize( 32767, 32767 );
+       qtarch_Label_3->setFocusPolicy( QWidget::NoFocus );
+       qtarch_Label_3->setBackgroundMode( QWidget::PaletteBackground );
+       qtarch_Label_3->setFontPropagation( QWidget::NoChildren );
+       qtarch_Label_3->setPalettePropagation( QWidget::NoChildren );
+       qtarch_Label_3->setFrameStyle( 50 );
+       qtarch_Label_3->setLineWidth( 1 );
+       qtarch_Label_3->setMidLineWidth( 0 );
+       qtarch_Label_3->QFrame::setMargin( 1 );
+       qtarch_Label_3->setText( _("This program is free software; you can redistribute it\nand/or modify it under the terms of the GNU General\nPublic License as published by the Free Software\nFoundation; either version 2 of the License, or\n(at your option) any later version.") );
+       qtarch_Label_3->setAlignment( 1316 );
+       qtarch_Label_3->setMargin( -1 );
+
+       QLabel* qtarch_Label_4;
+       qtarch_Label_4 = new QLabel( this, "Label_4" );
+       qtarch_Label_4->setGeometry( 5, 230, 455, 108 );
+       qtarch_Label_4->setMinimumSize( 0, 0 );
+       qtarch_Label_4->setMaximumSize( 32767, 32767 );
+       qtarch_Label_4->setFocusPolicy( QWidget::NoFocus );
+       qtarch_Label_4->setBackgroundMode( QWidget::PaletteBackground );
+       qtarch_Label_4->setFontPropagation( QWidget::NoChildren );
+       qtarch_Label_4->setPalettePropagation( QWidget::NoChildren );
+       qtarch_Label_4->setFrameStyle( 50 );
+       qtarch_Label_4->setLineWidth( 1 );
+       qtarch_Label_4->setMidLineWidth( 0 );
+       qtarch_Label_4->QFrame::setMargin( 1 );
+       qtarch_Label_4->setText( _("LyX is distributed in the hope that it will\nbe useful, but WITHOUT ANY WARRANTY;\nwithout even the implied warranty of MERCHANTABILITY\nor FITNESS FOR A PARTICULAR PURPOSE.\nSee the GNU General Public License for more details.\nYou should have received a copy of\nthe GNU General Public License\nalong with this program; if not, write to\nthe Free Software Foundation, Inc., \n675 Mass Ave, Cambridge, MA 02139, USA.") );
+       qtarch_Label_4->setAlignment( 1316 );
+       qtarch_Label_4->setMargin( -1 );
+
+       if (buttonOk->sizeHint().width()!=-1)
+               buttonOk->setMinimumWidth(buttonOk->sizeHint().width());
+       if (buttonOk->sizeHint().height()!=-1)
+               buttonOk->setMinimumHeight(buttonOk->sizeHint().height());
+       if (buttonOk->sizeHint().width()!=-1)
+               buttonOk->setMaximumWidth(buttonOk->sizeHint().width());
+       if (buttonOk->sizeHint().height()!=-1)
+               buttonOk->setMaximumHeight(buttonOk->sizeHint().height());
+       if (qtarch_Label_2->sizeHint().width()!=-1)
+               qtarch_Label_2->setMinimumWidth(qtarch_Label_2->sizeHint().width());
+       if (qtarch_Label_2->sizeHint().height()!=-1)
+               qtarch_Label_2->setMinimumHeight(qtarch_Label_2->sizeHint().height());
+       if (qtarch_Label_3->sizeHint().width()!=-1)
+               qtarch_Label_3->setMinimumWidth(qtarch_Label_3->sizeHint().width());
+       if (qtarch_Label_3->sizeHint().height()!=-1)
+               qtarch_Label_3->setMinimumHeight(qtarch_Label_3->sizeHint().height());
+       if (qtarch_Label_4->sizeHint().width()!=-1)
+               qtarch_Label_4->setMinimumWidth(qtarch_Label_4->sizeHint().width());
+       if (qtarch_Label_4->sizeHint().height()!=-1)
+               qtarch_Label_4->setMinimumHeight(qtarch_Label_4->sizeHint().height());
+       QBoxLayout* qtarch_layout_1 = new QBoxLayout( this, QBoxLayout::TopToBottom, 5, 5, NULL );
+       qtarch_layout_1->addStrut( 0 );
+       qtarch_layout_1->addWidget( qtarch_Label_2, 1, 36 );
+       qtarch_layout_1->addWidget( qtarch_Label_3, 1, 36 );
+       qtarch_layout_1->addWidget( qtarch_Label_4, 1, 36 );
+       QBoxLayout* qtarch_layout_1_4 = new QBoxLayout( QBoxLayout::LeftToRight, 5, NULL );
+       qtarch_layout_1->addLayout( qtarch_layout_1_4, 1 );
+       qtarch_layout_1_4->addStrut( 0 );
+       qtarch_layout_1_4->addStretch( 1 );
+       qtarch_layout_1_4->addWidget( buttonOk, 1, 36 );
+       qtarch_layout_1_4->addStretch( 1 );
+       resize( 465,455 );
+       setMinimumSize( 200, 65 );
+       setMaximumSize( 32767, 65 );
+}
+
+
+CopyrightDialogData::~CopyrightDialogData()
+{
+}
+void CopyrightDialogData::clickedOK()
+{
+}
diff --git a/src/frontends/kde/copyrightdlgdata.h b/src/frontends/kde/copyrightdlgdata.h
new file mode 100644 (file)
index 0000000..2f5e97c
--- /dev/null
@@ -0,0 +1,45 @@
+/**********************************************************************
+
+       --- Qt Architect generated file ---
+
+       File: copyrightdlgdata.h
+       Last generated: Sat Oct 14 03:43:37 2000
+
+       DO NOT EDIT!!!  This file will be automatically
+       regenerated by qtarch.  All changes will be lost.
+
+ *********************************************************************/
+
+#ifndef CopyrightDialogData_included
+#define CopyrightDialogData_included
+
+#include <qwidget.h>
+#include <qpushbutton.h>
+
+class CopyrightDialogData : public QWidget
+{
+    Q_OBJECT
+
+public:
+
+    CopyrightDialogData
+    (
+        QWidget* parent = NULL,
+        const char* name = NULL
+    );
+
+    virtual ~CopyrightDialogData();
+
+public slots:
+
+
+protected slots:
+
+    virtual void clickedOK();
+
+protected:
+    QPushButton* buttonOk;
+
+};
+
+#endif // CopyrightDialogData_included
index ddefb80c7514be1cdbc03c739bb2ff049a56cb39..dd79b87f60c0c31d29df1f84024ef52e967887f9 100644 (file)
@@ -10,11 +10,17 @@ 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.
 
-Note that the formsomethingdialogdata.* files are automatically
-generated, but the derived class files are *not* (i.e. they have
-been edited by hand). So you should only ever generate the base
-class files, and then propogate any changes into the derived class
-by hand.
+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
 
 Some tips and guidelines for qtarch and the KDE frontend :
 
index 406ace25de7da1f57ed466fc8b4953424824c0de..2055bf03b4375c44437d744f0b1ca4ccff3be951 100644 (file)
@@ -7,9 +7,12 @@
 # usage: dlg/checkinitorder.pl *data.C
 
 $found{"this"} = 1;
+$found{"FALSE"} = 1; 
 while (<>) {
-       if (/new/ && ! /Layout/) {
+       # yes, this is a broken regexp, but the sources are machine generated 
+       if (/= new / && ! /Layout/) {
                ( $varname, $parent) = split('=');
+               # print "$varname: $parent"; 
                $varname =~ s/^\s*//;
                $varname =~ s/\s*$//;
                $found{$varname} = 1;
diff --git a/src/frontends/kde/dlg/copyright.dlg b/src/frontends/kde/dlg/copyright.dlg
new file mode 100644 (file)
index 0000000..6d529ea
--- /dev/null
@@ -0,0 +1,176 @@
+DlgEdit:v1.2:Dialog:
+Dialog {
+       ClassHeader {copyrightdlg.h}
+       ClassSource {copyrightdlg.C}
+       ClassName {CopyrightDialog}
+       DataHeader {copyrightdlgdata.h}
+       DataSource {copyrightdlgdata.C}
+       DataName {CopyrightDialogData}
+       WindowBaseClass {QWidget}
+       UseGetText {TRUE}
+       WindowFlags {53248}
+}
+WidgetLayout {
+InitialPos {-1 -1}
+Size {465 455}
+MinSize {200 65}
+MaxSize {32767 65}
+Grid {5}
+
+PushButton {
+               ToggleButton {FALSE}
+               Default {FALSE}
+               AutoDefault {TRUE}
+               IsMenuButton {FALSE}
+               Text {&OK}
+               AutoRepeat {FALSE}
+               AutoResize {FALSE}
+               Rect {157 343 151 107}
+               Name {PushButton_OK}
+               Variable {buttonOk}
+               Signal {[Protected]  clicked --> clickedOK  ()}
+               MinimumSize {0 0}
+               MaximumSize {32767 32767}
+               BackgroundPixmap {}
+               UseBackgroundPixmap {FALSE}
+               AdjustSize {FALSE}
+               ReadPixmapFromData {FALSE}
+               DataVarName {}
+               DataLenName {}
+               minWidthSizeHint {TRUE}
+               minHeightSizeHint {TRUE}
+               maxWidthSizeHint {TRUE}
+               maxHeightSizeHint {TRUE}
+               FocusPolicy {TabFocus}
+               BackgroundMode {PaletteBackground}
+               FontPropagation {NoChildren}
+               PalettePropagation {NoChildren}
+}
+Label {
+               Text {LyX is Copyright (C) 1995 by Matthias Ettrich, \n1995-2000 LyX Team}
+               Alignment {1316}
+               AutoResize {FALSE}
+               Margin {-1}
+               Style {50}
+               LineWidth {1}
+               MidLineWidth {0}
+               FrameMargin {1}
+               Rect {5 5 455 108}
+               Name {Label_2}
+               MinimumSize {0 0}
+               MaximumSize {32767 32767}
+               BackgroundPixmap {}
+               UseBackgroundPixmap {FALSE}
+               AdjustSize {FALSE}
+               ReadPixmapFromData {FALSE}
+               DataVarName {}
+               DataLenName {}
+               minWidthSizeHint {TRUE}
+               minHeightSizeHint {TRUE}
+               maxWidthSizeHint {FALSE}
+               maxHeightSizeHint {FALSE}
+               FocusPolicy {NoFocus}
+               BackgroundMode {PaletteBackground}
+               FontPropagation {NoChildren}
+               PalettePropagation {NoChildren}
+}
+Label {
+               Text {This program is free software; you can redistribute it\nand/or modify it under the terms of the GNU General\nPublic License as published by the Free Software\nFoundation; either version 2 of the License, or\n(at your option) any later version.}
+               Alignment {1316}
+               AutoResize {FALSE}
+               Margin {-1}
+               Style {50}
+               LineWidth {1}
+               MidLineWidth {0}
+               FrameMargin {1}
+               Rect {5 118 455 107}
+               Name {Label_3}
+               MinimumSize {0 0}
+               MaximumSize {32767 32767}
+               BackgroundPixmap {}
+               UseBackgroundPixmap {FALSE}
+               AdjustSize {FALSE}
+               ReadPixmapFromData {FALSE}
+               DataVarName {}
+               DataLenName {}
+               minWidthSizeHint {TRUE}
+               minHeightSizeHint {TRUE}
+               maxWidthSizeHint {FALSE}
+               maxHeightSizeHint {FALSE}
+               FocusPolicy {NoFocus}
+               BackgroundMode {PaletteBackground}
+               FontPropagation {NoChildren}
+               PalettePropagation {NoChildren}
+}
+Label {
+               Text {LyX is distributed in the hope that it will\nbe useful, but WITHOUT ANY WARRANTY;\nwithout even the implied warranty of MERCHANTABILITY\nor FITNESS FOR A PARTICULAR PURPOSE.\nSee the GNU General Public License for more details.\nYou should have received a copy of\nthe GNU General Public License\nalong with this program; if not, write to\nthe Free Software Foundation, Inc., \n675 Mass Ave, Cambridge, MA 02139, USA.}
+               Alignment {1316}
+               AutoResize {FALSE}
+               Margin {-1}
+               Style {50}
+               LineWidth {1}
+               MidLineWidth {0}
+               FrameMargin {1}
+               Rect {5 230 455 108}
+               Name {Label_4}
+               MinimumSize {0 0}
+               MaximumSize {32767 32767}
+               BackgroundPixmap {}
+               UseBackgroundPixmap {FALSE}
+               AdjustSize {FALSE}
+               ReadPixmapFromData {FALSE}
+               DataVarName {}
+               DataLenName {}
+               minWidthSizeHint {TRUE}
+               minHeightSizeHint {TRUE}
+               maxWidthSizeHint {FALSE}
+               maxHeightSizeHint {FALSE}
+               FocusPolicy {NoFocus}
+               BackgroundMode {PaletteBackground}
+               FontPropagation {NoChildren}
+               PalettePropagation {NoChildren}
+}
+
+Box_Layout-1{
+       Direction {TopToBottom}
+       Border {5}
+       AutoBorder {5}
+       Name {}
+       Strut {0}
+       Stretch {1}
+}
+Layout_Widget-1.1{
+       Widget {Label_2}
+       BoxStretch {1}
+       Alignment {36}
+}
+Layout_Widget-1.2{
+       Widget {Label_3}
+       BoxStretch {1}
+       Alignment {36}
+}
+Layout_Widget-1.3{
+       Widget {Label_4}
+       BoxStretch {1}
+       Alignment {36}
+}
+Box_Layout-1.4{
+       Direction {LeftToRight}
+       Border {5}
+       AutoBorder {5}
+       Name {}
+       Strut {0}
+       Stretch {1}
+}
+Box_Stretch-1.4.1{
+       Stretch {1}
+}
+Layout_Widget-1.4.2{
+       Widget {PushButton_OK}
+       BoxStretch {1}
+       Alignment {36}
+}
+Box_Stretch-1.4.3{
+       Stretch {1}
+}
+}
diff --git a/src/frontends/kde/dlg/formcopyrightdialog.dlg b/src/frontends/kde/dlg/formcopyrightdialog.dlg
deleted file mode 100644 (file)
index 6266d08..0000000
+++ /dev/null
@@ -1,176 +0,0 @@
-DlgEdit:v1.2:Dialog:
-Dialog {
-       ClassHeader {formcopyrightdialog.h}
-       ClassSource {formcopyrightdialog.C}
-       ClassName {FormCopyrightDialog}
-       DataHeader {formcopyrightdialogdata.h}
-       DataSource {formcopyrightdialogdata.C}
-       DataName {FormCopyrightDialogData}
-       WindowBaseClass {QWidget}
-       UseGetText {TRUE}
-       WindowFlags {53248}
-}
-WidgetLayout {
-InitialPos {-1 -1}
-Size {465 455}
-MinSize {200 65}
-MaxSize {32767 65}
-Grid {5}
-
-PushButton {
-               ToggleButton {FALSE}
-               Default {FALSE}
-               AutoDefault {TRUE}
-               IsMenuButton {FALSE}
-               Text {&OK}
-               AutoRepeat {FALSE}
-               AutoResize {FALSE}
-               Rect {157 343 151 107}
-               Name {PushButton_OK}
-               Variable {buttonOk}
-               Signal {[Protected]  clicked --> clickedOK  ()}
-               MinimumSize {0 0}
-               MaximumSize {32767 32767}
-               BackgroundPixmap {}
-               UseBackgroundPixmap {FALSE}
-               AdjustSize {FALSE}
-               ReadPixmapFromData {FALSE}
-               DataVarName {}
-               DataLenName {}
-               minWidthSizeHint {TRUE}
-               minHeightSizeHint {TRUE}
-               maxWidthSizeHint {TRUE}
-               maxHeightSizeHint {TRUE}
-               FocusPolicy {TabFocus}
-               BackgroundMode {PaletteBackground}
-               FontPropagation {NoChildren}
-               PalettePropagation {NoChildren}
-}
-Label {
-               Text {LyX is Copyright (C) 1995 by Matthias Ettrich, \n1995-2000 LyX Team}
-               Alignment {1316}
-               AutoResize {FALSE}
-               Margin {-1}
-               Style {50}
-               LineWidth {1}
-               MidLineWidth {0}
-               FrameMargin {1}
-               Rect {5 5 455 108}
-               Name {Label_2}
-               MinimumSize {0 0}
-               MaximumSize {32767 32767}
-               BackgroundPixmap {}
-               UseBackgroundPixmap {FALSE}
-               AdjustSize {FALSE}
-               ReadPixmapFromData {FALSE}
-               DataVarName {}
-               DataLenName {}
-               minWidthSizeHint {TRUE}
-               minHeightSizeHint {TRUE}
-               maxWidthSizeHint {FALSE}
-               maxHeightSizeHint {FALSE}
-               FocusPolicy {NoFocus}
-               BackgroundMode {PaletteBackground}
-               FontPropagation {NoChildren}
-               PalettePropagation {NoChildren}
-}
-Label {
-               Text {This program is free software; you can redistribute it\nand/or modify it under the terms of the GNU General\nPublic License as published by the Free Software\nFoundation; either version 2 of the License, or\n(at your option) any later version.}
-               Alignment {1316}
-               AutoResize {FALSE}
-               Margin {-1}
-               Style {50}
-               LineWidth {1}
-               MidLineWidth {0}
-               FrameMargin {1}
-               Rect {5 118 455 107}
-               Name {Label_3}
-               MinimumSize {0 0}
-               MaximumSize {32767 32767}
-               BackgroundPixmap {}
-               UseBackgroundPixmap {FALSE}
-               AdjustSize {FALSE}
-               ReadPixmapFromData {FALSE}
-               DataVarName {}
-               DataLenName {}
-               minWidthSizeHint {TRUE}
-               minHeightSizeHint {TRUE}
-               maxWidthSizeHint {FALSE}
-               maxHeightSizeHint {FALSE}
-               FocusPolicy {NoFocus}
-               BackgroundMode {PaletteBackground}
-               FontPropagation {NoChildren}
-               PalettePropagation {NoChildren}
-}
-Label {
-               Text {LyX is distributed in the hope that it will\nbe useful, but WITHOUT ANY WARRANTY;\nwithout even the implied warranty of MERCHANTABILITY\nor FITNESS FOR A PARTICULAR PURPOSE.\nSee the GNU General Public License for more details.\nYou should have received a copy of\nthe GNU General Public License\nalong with this program; if not, write to\nthe Free Software Foundation, Inc., \n675 Mass Ave, Cambridge, MA 02139, USA.}
-               Alignment {1316}
-               AutoResize {FALSE}
-               Margin {-1}
-               Style {50}
-               LineWidth {1}
-               MidLineWidth {0}
-               FrameMargin {1}
-               Rect {5 230 455 108}
-               Name {Label_4}
-               MinimumSize {0 0}
-               MaximumSize {32767 32767}
-               BackgroundPixmap {}
-               UseBackgroundPixmap {FALSE}
-               AdjustSize {FALSE}
-               ReadPixmapFromData {FALSE}
-               DataVarName {}
-               DataLenName {}
-               minWidthSizeHint {TRUE}
-               minHeightSizeHint {TRUE}
-               maxWidthSizeHint {FALSE}
-               maxHeightSizeHint {FALSE}
-               FocusPolicy {NoFocus}
-               BackgroundMode {PaletteBackground}
-               FontPropagation {NoChildren}
-               PalettePropagation {NoChildren}
-}
-
-Box_Layout-1{
-       Direction {TopToBottom}
-       Border {5}
-       AutoBorder {5}
-       Name {}
-       Strut {0}
-       Stretch {1}
-}
-Layout_Widget-1.1{
-       Widget {Label_2}
-       BoxStretch {1}
-       Alignment {36}
-}
-Layout_Widget-1.2{
-       Widget {Label_3}
-       BoxStretch {1}
-       Alignment {36}
-}
-Layout_Widget-1.3{
-       Widget {Label_4}
-       BoxStretch {1}
-       Alignment {36}
-}
-Box_Layout-1.4{
-       Direction {LeftToRight}
-       Border {5}
-       AutoBorder {5}
-       Name {}
-       Strut {0}
-       Stretch {1}
-}
-Box_Stretch-1.4.1{
-       Stretch {1}
-}
-Layout_Widget-1.4.2{
-       Widget {PushButton_OK}
-       BoxStretch {1}
-       Alignment {36}
-}
-Box_Stretch-1.4.3{
-       Stretch {1}
-}
-}
diff --git a/src/frontends/kde/dlg/formindexdialog.dlg b/src/frontends/kde/dlg/formindexdialog.dlg
deleted file mode 100644 (file)
index 130168e..0000000
+++ /dev/null
@@ -1,193 +0,0 @@
-DlgEdit:v1.2:Dialog:
-Dialog {
-       ClassHeader {formindexdialog.h}
-       ClassSource {formindexdialog.C}
-       ClassName {FormIndexDialog}
-       DataHeader {formindexdialogdata.h}
-       DataSource {formindexdialogdata.C}
-       DataName {FormIndexDialogData}
-       WindowBaseClass {QWidget}
-       UseGetText {TRUE}
-       WindowFlags {53248}
-}
-WidgetLayout {
-InitialPos {-1 -1}
-Size {250 105}
-MinSize {200 65}
-MaxSize {32767 65}
-Grid {5}
-
-Label {
-               Text {Keyword:}
-               Alignment {289}
-               AutoResize {FALSE}
-               Margin {-1}
-               Style {0}
-               LineWidth {1}
-               MidLineWidth {0}
-               FrameMargin {0}
-               Rect {5 15 60 25}
-               Name {Label_1}
-               Variable {labelindex}
-               MinimumSize {60 25}
-               MaximumSize {60 25}
-               BackgroundPixmap {}
-               UseBackgroundPixmap {FALSE}
-               AdjustSize {FALSE}
-               ReadPixmapFromData {FALSE}
-               DataVarName {}
-               DataLenName {}
-               minWidthSizeHint {TRUE}
-               minHeightSizeHint {TRUE}
-               maxWidthSizeHint {TRUE}
-               maxHeightSizeHint {TRUE}
-               FocusPolicy {NoFocus}
-               BackgroundMode {PaletteBackground}
-               FontPropagation {NoChildren}
-               PalettePropagation {NoChildren}
-}
-LineEdit {
-               Text {}
-               EchoMode {Normal}
-               MaxLength {32767}
-               FrameShown {TRUE}
-               Rect {70 15 175 25}
-               Name {LineEdit_1}
-               Variable {index}
-               MinimumSize {125 25}
-               MaximumSize {32767 25}
-               BackgroundPixmap {}
-               UseBackgroundPixmap {FALSE}
-               AdjustSize {FALSE}
-               ReadPixmapFromData {FALSE}
-               DataVarName {}
-               DataLenName {}
-               minWidthSizeHint {TRUE}
-               minHeightSizeHint {TRUE}
-               maxWidthSizeHint {FALSE}
-               maxHeightSizeHint {TRUE}
-               FocusPolicy {StrongFocus}
-               BackgroundMode {PaletteBase}
-               FontPropagation {NoChildren}
-               PalettePropagation {NoChildren}
-}
-PushButton {
-               ToggleButton {FALSE}
-               Default {FALSE}
-               AutoDefault {TRUE}
-               IsMenuButton {FALSE}
-               Text {&OK}
-               AutoRepeat {FALSE}
-               AutoResize {FALSE}
-               Rect {24 65 80 25}
-               Name {PushButton_OK}
-               Variable {buttonOk}
-               Signal {[Protected]  clicked --> clickedOK  ()}
-               MinimumSize {80 25}
-               MaximumSize {80 25}
-               BackgroundPixmap {}
-               UseBackgroundPixmap {FALSE}
-               AdjustSize {FALSE}
-               ReadPixmapFromData {FALSE}
-               DataVarName {}
-               DataLenName {}
-               minWidthSizeHint {TRUE}
-               minHeightSizeHint {TRUE}
-               maxWidthSizeHint {TRUE}
-               maxHeightSizeHint {TRUE}
-               FocusPolicy {TabFocus}
-               BackgroundMode {PaletteBackground}
-               FontPropagation {NoChildren}
-               PalettePropagation {NoChildren}
-}
-PushButton {
-               ToggleButton {FALSE}
-               Default {FALSE}
-               AutoDefault {FALSE}
-               IsMenuButton {FALSE}
-               Text {&Cancel}
-               AutoRepeat {FALSE}
-               AutoResize {FALSE}
-               Rect {146 65 80 25}
-               Name {PushButton_Cancel}
-               Variable {buttonCancel}
-               Signal {[Protected]  clicked --> clickedCancel  ()}
-               MinimumSize {80 25}
-               MaximumSize {80 25}
-               BackgroundPixmap {}
-               UseBackgroundPixmap {FALSE}
-               AdjustSize {FALSE}
-               ReadPixmapFromData {FALSE}
-               DataVarName {}
-               DataLenName {}
-               minWidthSizeHint {TRUE}
-               minHeightSizeHint {TRUE}
-               maxWidthSizeHint {TRUE}
-               maxHeightSizeHint {TRUE}
-               FocusPolicy {TabFocus}
-               BackgroundMode {PaletteBackground}
-               FontPropagation {NoChildren}
-               PalettePropagation {NoChildren}
-}
-
-Grid_Layout-1{
-       Border {5}
-       AutoBorder {5}
-       Name {}
-       ColumnInfo {5 1}
-       BoxStretch {1}
-}
-Grid_Row-1.1{
-       Stretch {0}
-       Spacing {0}
-}
-Box_Layout-1.1.1{
-       Direction {LeftToRight}
-       Border {5}
-       AutoBorder {5}
-       Name {}
-       Strut {0}
-       Stretch {1}
-}
-Layout_Widget-1.1.1.1{
-       Widget {Label_1}
-       BoxStretch {0}
-       Alignment {36}
-}
-Layout_Widget-1.1.1.2{
-       Widget {LineEdit_1}
-       BoxStretch {1}
-       Alignment {36}
-}
-Grid_Row-1.2{
-       Stretch {0}
-       Spacing {0}
-}
-Box_Layout-1.2.1{
-       Direction {LeftToRight}
-       Border {5}
-       AutoBorder {5}
-       Name {}
-       Strut {0}
-       Stretch {0}
-}
-Box_Stretch-1.2.1.1{
-       Stretch {1}
-}
-Layout_Widget-1.2.1.2{
-       Widget {PushButton_OK}
-       BoxStretch {1}
-       Alignment {36}
-}
-Box_Stretch-1.2.1.3{
-       Stretch {2}
-}
-Layout_Widget-1.2.1.4{
-       Widget {PushButton_Cancel}
-       BoxStretch {1}
-       Alignment {36}
-}
-Box_Stretch-1.2.1.5{
-       Stretch {1}
-}
-}
diff --git a/src/frontends/kde/dlg/formprintdialog.dlg b/src/frontends/kde/dlg/formprintdialog.dlg
deleted file mode 100644 (file)
index 64d42d4..0000000
+++ /dev/null
@@ -1,943 +0,0 @@
-DlgEdit:v1.2:Dialog:
-Dialog {
-       ClassHeader {formprintdialog.h}
-       ClassSource {formprintdialog.C}
-       ClassName {FormPrintDialog}
-       DataHeader {formprintdialogdata.h}
-       DataSource {formprintdialogdata.C}
-       DataName {FormPrintDialogData}
-       WindowBaseClass {QWidget}
-       UseGetText {TRUE}
-       WindowFlags {0}
-}
-WidgetLayout {
-InitialPos {-1 -1}
-Size {435 255}
-MinSize {0 0}
-MaxSize {32767 32767}
-Grid {5}
-
-GroupBox {
-               Title {Pages}
-               Alignment {Left}
-               Style {49}
-               LineWidth {1}
-               MidLineWidth {0}
-               FrameMargin {0}
-               Rect {5 5 140 208}
-               Name {pagesGroupBox}
-               Variable {pagesGroupBox}
-               MinimumSize {15 47}
-               MaximumSize {32767 32767}
-               BackgroundPixmap {}
-               UseBackgroundPixmap {FALSE}
-               AdjustSize {FALSE}
-               ReadPixmapFromData {FALSE}
-               DataVarName {}
-               DataLenName {}
-               minWidthSizeHint {FALSE}
-               minHeightSizeHint {FALSE}
-               maxWidthSizeHint {FALSE}
-               maxHeightSizeHint {FALSE}
-               FocusPolicy {NoFocus}
-               BackgroundMode {PaletteBackground}
-               FontPropagation {NoChildren}
-               PalettePropagation {NoChildren}
-}
-ButtonGroup {
-               Exclusive {TRUE}
-               Title {}
-               Alignment {Left}
-               Style {0}
-               LineWidth {1}
-               MidLineWidth {0}
-               FrameMargin {0}
-               Rect {10 22 130 106}
-               Name {pagesRadioGroup}
-               Variable {pagesRadioGroup}
-               MinimumSize {10 20}
-               MaximumSize {32767 32767}
-               BackgroundPixmap {}
-               UseBackgroundPixmap {FALSE}
-               AdjustSize {FALSE}
-               ReadPixmapFromData {FALSE}
-               DataVarName {}
-               DataLenName {}
-               minWidthSizeHint {FALSE}
-               minHeightSizeHint {FALSE}
-               maxWidthSizeHint {FALSE}
-               maxHeightSizeHint {FALSE}
-               FocusPolicy {NoFocus}
-               BackgroundMode {PaletteBackground}
-               FontPropagation {NoChildren}
-               PalettePropagation {NoChildren}
-}
-GroupBox {
-               Title {Copies}
-               Alignment {Left}
-               Style {49}
-               LineWidth {1}
-               MidLineWidth {0}
-               FrameMargin {0}
-               Rect {150 5 280 51}
-               Name {copies}
-               Variable {copies}
-               MinimumSize {30 10}
-               MaximumSize {32767 32767}
-               BackgroundPixmap {}
-               UseBackgroundPixmap {FALSE}
-               AdjustSize {FALSE}
-               ReadPixmapFromData {FALSE}
-               DataVarName {}
-               DataLenName {}
-               minWidthSizeHint {FALSE}
-               minHeightSizeHint {FALSE}
-               maxWidthSizeHint {FALSE}
-               maxHeightSizeHint {FALSE}
-               FocusPolicy {NoFocus}
-               BackgroundMode {PaletteBackground}
-               FontPropagation {NoChildren}
-               PalettePropagation {NoChildren}
-}
-GroupBox {
-               Title {Print to}
-               Alignment {Left}
-               Style {49}
-               LineWidth {1}
-               MidLineWidth {0}
-               FrameMargin {0}
-               Rect {150 61 280 152}
-               Name {printToGroupBox}
-               Variable {printToGroupBox}
-               MinimumSize {25 30}
-               MaximumSize {32767 32767}
-               BackgroundPixmap {}
-               UseBackgroundPixmap {FALSE}
-               AdjustSize {FALSE}
-               ReadPixmapFromData {FALSE}
-               DataVarName {}
-               DataLenName {}
-               minWidthSizeHint {FALSE}
-               minHeightSizeHint {FALSE}
-               maxWidthSizeHint {FALSE}
-               maxHeightSizeHint {FALSE}
-               FocusPolicy {NoFocus}
-               BackgroundMode {PaletteBackground}
-               FontPropagation {NoChildren}
-               PalettePropagation {NoChildren}
-}
-ButtonGroup {
-               Exclusive {TRUE}
-               Title {}
-               Alignment {Left}
-               Style {0}
-               LineWidth {1}
-               MidLineWidth {0}
-               FrameMargin {0}
-               Rect {162 94 131 62}
-               Name {printToRadioGroup}
-               Variable {printToRadioGroup}
-               MinimumSize {10 15}
-               MaximumSize {32767 32767}
-               BackgroundPixmap {}
-               UseBackgroundPixmap {FALSE}
-               AdjustSize {FALSE}
-               ReadPixmapFromData {FALSE}
-               DataVarName {}
-               DataLenName {}
-               minWidthSizeHint {FALSE}
-               minHeightSizeHint {FALSE}
-               maxWidthSizeHint {FALSE}
-               maxHeightSizeHint {FALSE}
-               FocusPolicy {NoFocus}
-               BackgroundMode {PaletteBackground}
-               FontPropagation {NoChildren}
-               PalettePropagation {NoChildren}
-}
-PushButton {
-               ToggleButton {FALSE}
-               Default {FALSE}
-               AutoDefault {FALSE}
-               IsMenuButton {FALSE}
-               Text {&Print}
-               AutoRepeat {FALSE}
-               AutoResize {FALSE}
-               Rect {75 218 70 32}
-               Name {print}
-               Variable {print}
-               Signal {[Protected]  clicked --> clickedPrint  ()}
-               MinimumSize {0 0}
-               MaximumSize {32767 32767}
-               BackgroundPixmap {}
-               UseBackgroundPixmap {FALSE}
-               AdjustSize {FALSE}
-               ReadPixmapFromData {FALSE}
-               DataVarName {}
-               DataLenName {}
-               minWidthSizeHint {TRUE}
-               minHeightSizeHint {TRUE}
-               maxWidthSizeHint {TRUE}
-               maxHeightSizeHint {TRUE}
-               FocusPolicy {TabFocus}
-               BackgroundMode {PaletteBackground}
-               FontPropagation {NoChildren}
-               PalettePropagation {NoChildren}
-}
-PushButton {
-               ToggleButton {FALSE}
-               Default {FALSE}
-               AutoDefault {FALSE}
-               IsMenuButton {FALSE}
-               Text {&Cancel}
-               AutoRepeat {FALSE}
-               AutoResize {FALSE}
-               Rect {290 218 70 32}
-               Name {cancel}
-               Variable {cancel}
-               Signal {[Protected]  clicked --> clickedCancel  ()}
-               MinimumSize {0 0}
-               MaximumSize {32767 32767}
-               BackgroundPixmap {}
-               UseBackgroundPixmap {FALSE}
-               AdjustSize {FALSE}
-               ReadPixmapFromData {FALSE}
-               DataVarName {}
-               DataLenName {}
-               minWidthSizeHint {TRUE}
-               minHeightSizeHint {TRUE}
-               maxWidthSizeHint {TRUE}
-               maxHeightSizeHint {TRUE}
-               FocusPolicy {TabFocus}
-               BackgroundMode {PaletteBackground}
-               FontPropagation {NoChildren}
-               PalettePropagation {NoChildren}
-}
-RadioButton {
-               Checked {FALSE}
-               Text {&All pages}
-               AutoRepeat {FALSE}
-               AutoResize {FALSE}
-               Rect {15 36 120 30}
-               Name {allpages}
-               Variable {allpages}
-               MinimumSize {80 20}
-               MaximumSize {32767 32767}
-               BackgroundPixmap {}
-               UseBackgroundPixmap {FALSE}
-               AdjustSize {FALSE}
-               ReadPixmapFromData {FALSE}
-               DataVarName {}
-               DataLenName {}
-               minWidthSizeHint {TRUE}
-               minHeightSizeHint {TRUE}
-               maxWidthSizeHint {TRUE}
-               maxHeightSizeHint {TRUE}
-               FocusPolicy {TabFocus}
-               BackgroundMode {PaletteBackground}
-               FontPropagation {NoChildren}
-               PalettePropagation {NoChildren}
-}
-RadioButton {
-               Checked {FALSE}
-               Text {&Even pages}
-               AutoRepeat {FALSE}
-               AutoResize {FALSE}
-               Rect {15 104 120 10}
-               Name {evenpages}
-               Variable {evenpages}
-               MinimumSize {0 0}
-               MaximumSize {32767 32767}
-               BackgroundPixmap {}
-               UseBackgroundPixmap {FALSE}
-               AdjustSize {FALSE}
-               ReadPixmapFromData {FALSE}
-               DataVarName {}
-               DataLenName {}
-               minWidthSizeHint {TRUE}
-               minHeightSizeHint {TRUE}
-               maxWidthSizeHint {TRUE}
-               maxHeightSizeHint {TRUE}
-               FocusPolicy {TabFocus}
-               BackgroundMode {PaletteBackground}
-               FontPropagation {NoChildren}
-               PalettePropagation {NoChildren}
-}
-KDE::KIntLineEdit {
-               Text {}
-               EchoMode {Normal}
-               MaxLength {32767}
-               FrameShown {TRUE}
-               Rect {98 133 42 22}
-               Name {from}
-               Variable {from}
-               MinimumSize {0 0}
-               MaximumSize {32767 32767}
-               BackgroundPixmap {}
-               UseBackgroundPixmap {FALSE}
-               AdjustSize {FALSE}
-               ReadPixmapFromData {FALSE}
-               DataVarName {}
-               DataLenName {}
-               minWidthSizeHint {TRUE}
-               minHeightSizeHint {TRUE}
-               maxWidthSizeHint {FALSE}
-               maxHeightSizeHint {TRUE}
-               FocusPolicy {StrongFocus}
-               BackgroundMode {PaletteBase}
-               FontPropagation {NoChildren}
-               PalettePropagation {NoChildren}
-}
-Label {
-               Text {From}
-               Alignment {289}
-               AutoResize {FALSE}
-               Margin {-1}
-               Style {0}
-               LineWidth {1}
-               MidLineWidth {0}
-               FrameMargin {0}
-               Rect {10 133 83 22}
-               Name {fromLabel}
-               Variable {fromLabel}
-               MinimumSize {0 0}
-               MaximumSize {32767 32767}
-               BackgroundPixmap {}
-               UseBackgroundPixmap {FALSE}
-               AdjustSize {FALSE}
-               ReadPixmapFromData {FALSE}
-               DataVarName {}
-               DataLenName {}
-               minWidthSizeHint {TRUE}
-               minHeightSizeHint {TRUE}
-               maxWidthSizeHint {TRUE}
-               maxHeightSizeHint {TRUE}
-               FocusPolicy {NoFocus}
-               BackgroundMode {PaletteBackground}
-               FontPropagation {NoChildren}
-               PalettePropagation {NoChildren}
-}
-Label {
-               Text {To}
-               Alignment {289}
-               AutoResize {FALSE}
-               Margin {-1}
-               Style {0}
-               LineWidth {1}
-               MidLineWidth {0}
-               FrameMargin {0}
-               Rect {10 160 83 21}
-               Name {toLabel}
-               Variable {toLabel}
-               MinimumSize {0 0}
-               MaximumSize {32767 32767}
-               BackgroundPixmap {}
-               UseBackgroundPixmap {FALSE}
-               AdjustSize {FALSE}
-               ReadPixmapFromData {FALSE}
-               DataVarName {}
-               DataLenName {}
-               minWidthSizeHint {TRUE}
-               minHeightSizeHint {TRUE}
-               maxWidthSizeHint {TRUE}
-               maxHeightSizeHint {TRUE}
-               FocusPolicy {NoFocus}
-               BackgroundMode {PaletteBackground}
-               FontPropagation {NoChildren}
-               PalettePropagation {NoChildren}
-}
-RadioButton {
-               Checked {FALSE}
-               Text {&Odd pages}
-               AutoRepeat {FALSE}
-               AutoResize {FALSE}
-               Rect {15 80 120 10}
-               Name {oddpages}
-               Variable {oddpages}
-               MinimumSize {0 0}
-               MaximumSize {32767 32767}
-               BackgroundPixmap {}
-               UseBackgroundPixmap {FALSE}
-               AdjustSize {FALSE}
-               ReadPixmapFromData {FALSE}
-               DataVarName {}
-               DataLenName {}
-               minWidthSizeHint {TRUE}
-               minHeightSizeHint {TRUE}
-               maxWidthSizeHint {TRUE}
-               maxHeightSizeHint {TRUE}
-               FocusPolicy {TabFocus}
-               BackgroundMode {PaletteBackground}
-               FontPropagation {NoChildren}
-               PalettePropagation {NoChildren}
-}
-RadioButton {
-               Checked {FALSE}
-               Text {&Printer}
-               AutoRepeat {FALSE}
-               AutoResize {FALSE}
-               Rect {167 99 121 16}
-               Name {toprinter}
-               Variable {toprinter}
-               MinimumSize {0 0}
-               MaximumSize {32767 32767}
-               BackgroundPixmap {}
-               UseBackgroundPixmap {FALSE}
-               AdjustSize {FALSE}
-               ReadPixmapFromData {FALSE}
-               DataVarName {}
-               DataLenName {}
-               minWidthSizeHint {TRUE}
-               minHeightSizeHint {TRUE}
-               maxWidthSizeHint {TRUE}
-               maxHeightSizeHint {TRUE}
-               FocusPolicy {TabFocus}
-               BackgroundMode {PaletteBackground}
-               FontPropagation {NoChildren}
-               PalettePropagation {NoChildren}
-}
-RadioButton {
-               Checked {FALSE}
-               Text {&File}
-               AutoRepeat {FALSE}
-               AutoResize {FALSE}
-               Rect {167 135 121 16}
-               Name {tofile}
-               Variable {tofile}
-               MinimumSize {0 0}
-               MaximumSize {32767 32767}
-               BackgroundPixmap {}
-               UseBackgroundPixmap {FALSE}
-               AdjustSize {FALSE}
-               ReadPixmapFromData {FALSE}
-               DataVarName {}
-               DataLenName {}
-               minWidthSizeHint {TRUE}
-               minHeightSizeHint {TRUE}
-               maxWidthSizeHint {TRUE}
-               maxHeightSizeHint {TRUE}
-               FocusPolicy {TabFocus}
-               BackgroundMode {PaletteBackground}
-               FontPropagation {NoChildren}
-               PalettePropagation {NoChildren}
-}
-LineEdit {
-               Text {}
-               EchoMode {Normal}
-               MaxLength {32767}
-               FrameShown {TRUE}
-               Rect {298 94 120 19}
-               Name {printername}
-               Variable {printername}
-               MinimumSize {0 0}
-               MaximumSize {32767 32767}
-               BackgroundPixmap {}
-               UseBackgroundPixmap {FALSE}
-               AdjustSize {FALSE}
-               ReadPixmapFromData {FALSE}
-               DataVarName {}
-               DataLenName {}
-               minWidthSizeHint {TRUE}
-               minHeightSizeHint {TRUE}
-               maxWidthSizeHint {FALSE}
-               maxHeightSizeHint {TRUE}
-               FocusPolicy {StrongFocus}
-               BackgroundMode {PaletteBase}
-               FontPropagation {NoChildren}
-               PalettePropagation {NoChildren}
-}
-CheckBox {
-               Checked {FALSE}
-               Text {&Reverse order}
-               AutoRepeat {FALSE}
-               AutoResize {TRUE}
-               Rect {10 186 130 22}
-               Name {reverse}
-               Variable {reverse}
-               MinimumSize {0 0}
-               MaximumSize {32767 32767}
-               BackgroundPixmap {}
-               UseBackgroundPixmap {FALSE}
-               AdjustSize {FALSE}
-               ReadPixmapFromData {FALSE}
-               DataVarName {}
-               DataLenName {}
-               minWidthSizeHint {TRUE}
-               minHeightSizeHint {TRUE}
-               maxWidthSizeHint {TRUE}
-               maxHeightSizeHint {TRUE}
-               FocusPolicy {TabFocus}
-               BackgroundMode {PaletteBackground}
-               FontPropagation {NoChildren}
-               PalettePropagation {NoChildren}
-}
-LineEdit {
-               Text {}
-               EchoMode {Normal}
-               MaxLength {32767}
-               FrameShown {TRUE}
-               Rect {298 137 120 19}
-               Name {filename}
-               Variable {filename}
-               MinimumSize {0 0}
-               MaximumSize {32767 32767}
-               BackgroundPixmap {}
-               UseBackgroundPixmap {FALSE}
-               AdjustSize {FALSE}
-               ReadPixmapFromData {FALSE}
-               DataVarName {}
-               DataLenName {}
-               minWidthSizeHint {TRUE}
-               minHeightSizeHint {TRUE}
-               maxWidthSizeHint {FALSE}
-               maxHeightSizeHint {TRUE}
-               FocusPolicy {StrongFocus}
-               BackgroundMode {PaletteBase}
-               FontPropagation {NoChildren}
-               PalettePropagation {NoChildren}
-}
-CheckBox {
-               Checked {FALSE}
-               Text {&Sort}
-               AutoRepeat {FALSE}
-               AutoResize {TRUE}
-               Rect {382 17 43 31}
-               Name {sort}
-               Variable {sort}
-               MinimumSize {0 0}
-               MaximumSize {32767 32767}
-               BackgroundPixmap {}
-               UseBackgroundPixmap {FALSE}
-               AdjustSize {FALSE}
-               ReadPixmapFromData {FALSE}
-               DataVarName {}
-               DataLenName {}
-               minWidthSizeHint {TRUE}
-               minHeightSizeHint {TRUE}
-               maxWidthSizeHint {TRUE}
-               maxHeightSizeHint {TRUE}
-               FocusPolicy {TabFocus}
-               BackgroundMode {PaletteBackground}
-               FontPropagation {NoChildren}
-               PalettePropagation {NoChildren}
-}
-PushButton {
-               ToggleButton {FALSE}
-               Default {FALSE}
-               AutoDefault {FALSE}
-               IsMenuButton {FALSE}
-               Text {&Browse}
-               AutoRepeat {FALSE}
-               AutoResize {FALSE}
-               Rect {287 177 131 15}
-               Name {browse}
-               Variable {browse}
-               Signal {[Protected]  clicked --> clickedBrowse  ()}
-               MinimumSize {0 0}
-               MaximumSize {32767 32767}
-               BackgroundPixmap {}
-               UseBackgroundPixmap {FALSE}
-               AdjustSize {FALSE}
-               ReadPixmapFromData {FALSE}
-               DataVarName {}
-               DataLenName {}
-               minWidthSizeHint {TRUE}
-               minHeightSizeHint {TRUE}
-               maxWidthSizeHint {TRUE}
-               maxHeightSizeHint {TRUE}
-               FocusPolicy {TabFocus}
-               BackgroundMode {PaletteBackground}
-               FontPropagation {NoChildren}
-               PalettePropagation {NoChildren}
-}
-KDE::KIntLineEdit {
-               Text {}
-               EchoMode {Normal}
-               MaxLength {32767}
-               FrameShown {TRUE}
-               Rect {290 17 43 31}
-               Name {count}
-               Variable {count}
-               MinimumSize {0 0}
-               MaximumSize {32767 32767}
-               BackgroundPixmap {}
-               UseBackgroundPixmap {FALSE}
-               AdjustSize {FALSE}
-               ReadPixmapFromData {FALSE}
-               DataVarName {}
-               DataLenName {}
-               minWidthSizeHint {TRUE}
-               minHeightSizeHint {TRUE}
-               maxWidthSizeHint {FALSE}
-               maxHeightSizeHint {TRUE}
-               FocusPolicy {StrongFocus}
-               BackgroundMode {PaletteBase}
-               FontPropagation {NoChildren}
-               PalettePropagation {NoChildren}
-}
-Label {
-               Text {Count}
-               Alignment {289}
-               AutoResize {FALSE}
-               Margin {-1}
-               Style {0}
-               LineWidth {1}
-               MidLineWidth {0}
-               FrameMargin {0}
-               Rect {198 17 44 31}
-               Name {countLabel}
-               Variable {countLabel}
-               MinimumSize {0 0}
-               MaximumSize {32767 32767}
-               BackgroundPixmap {}
-               UseBackgroundPixmap {FALSE}
-               AdjustSize {FALSE}
-               ReadPixmapFromData {FALSE}
-               DataVarName {}
-               DataLenName {}
-               minWidthSizeHint {TRUE}
-               minHeightSizeHint {TRUE}
-               maxWidthSizeHint {TRUE}
-               maxHeightSizeHint {TRUE}
-               FocusPolicy {NoFocus}
-               BackgroundMode {PaletteBackground}
-               FontPropagation {NoChildren}
-               PalettePropagation {NoChildren}
-}
-KDE::KIntLineEdit {
-               Text {}
-               EchoMode {Normal}
-               MaxLength {32767}
-               FrameShown {TRUE}
-               Rect {98 160 42 21}
-               Name {to}
-               Variable {to}
-               MinimumSize {0 0}
-               MaximumSize {32767 32767}
-               BackgroundPixmap {}
-               UseBackgroundPixmap {FALSE}
-               AdjustSize {FALSE}
-               ReadPixmapFromData {FALSE}
-               DataVarName {}
-               DataLenName {}
-               minWidthSizeHint {TRUE}
-               minHeightSizeHint {TRUE}
-               maxWidthSizeHint {FALSE}
-               maxHeightSizeHint {TRUE}
-               FocusPolicy {StrongFocus}
-               BackgroundMode {PaletteBase}
-               FontPropagation {NoChildren}
-               PalettePropagation {NoChildren}
-}
-
-Grid_Layout-1{
-       Border {5}
-       AutoBorder {5}
-       Name {}
-       ColumnInfo {5 1}
-       BoxStretch {1}
-}
-Grid_Row-1.1{
-       Stretch {5}
-       Spacing {0}
-}
-Box_Layout-1.1.1{
-       Direction {LeftToRight}
-       Border {5}
-       AutoBorder {5}
-       Name {}
-       Strut {0}
-       Stretch {1}
-}
-Layout_Widget-1.1.1.1{
-       Widget {pagesGroupBox}
-       BoxStretch {1}
-       Alignment {36}
-}
-Box_Layout-1.1.1.1.1{
-       Direction {TopToBottom}
-       Border {5}
-       AutoBorder {5}
-       Name {}
-       Strut {0}
-       Stretch {1}
-}
-Box_Spacing-1.1.1.1.1.1{
-       Spacing {12}
-}
-Layout_Widget-1.1.1.1.1.2{
-       Widget {pagesRadioGroup}
-       BoxStretch {4}
-       Alignment {33}
-}
-Box_Layout-1.1.1.1.1.2.1{
-       Direction {TopToBottom}
-       Border {5}
-       AutoBorder {5}
-       Name {}
-       Strut {0}
-       Stretch {2}
-}
-Box_Stretch-1.1.1.1.1.2.1.1{
-       Stretch {1}
-}
-Layout_Widget-1.1.1.1.1.2.1.2{
-       Widget {allpages}
-       BoxStretch {1}
-       Alignment {1}
-}
-Box_Stretch-1.1.1.1.1.2.1.3{
-       Stretch {1}
-}
-Layout_Widget-1.1.1.1.1.2.1.4{
-       Widget {oddpages}
-       BoxStretch {1}
-       Alignment {1}
-}
-Box_Stretch-1.1.1.1.1.2.1.5{
-       Stretch {1}
-}
-Layout_Widget-1.1.1.1.1.2.1.6{
-       Widget {evenpages}
-       BoxStretch {1}
-       Alignment {1}
-}
-Box_Stretch-1.1.1.1.1.2.1.7{
-       Stretch {1}
-}
-Box_Layout-1.1.1.1.1.3{
-       Direction {LeftToRight}
-       Border {5}
-       AutoBorder {5}
-       Name {}
-       Strut {0}
-       Stretch {1}
-}
-Layout_Widget-1.1.1.1.1.3.1{
-       Widget {fromLabel}
-       BoxStretch {2}
-       Alignment {36}
-}
-Layout_Widget-1.1.1.1.1.3.2{
-       Widget {from}
-       BoxStretch {1}
-       Alignment {36}
-}
-Box_Layout-1.1.1.1.1.4{
-       Direction {LeftToRight}
-       Border {5}
-       AutoBorder {5}
-       Name {}
-       Strut {0}
-       Stretch {1}
-}
-Layout_Widget-1.1.1.1.1.4.1{
-       Widget {toLabel}
-       BoxStretch {2}
-       Alignment {36}
-}
-Layout_Widget-1.1.1.1.1.4.2{
-       Widget {to}
-       BoxStretch {1}
-       Alignment {36}
-}
-Layout_Widget-1.1.1.1.1.5{
-       Widget {reverse}
-       BoxStretch {1}
-       Alignment {36}
-}
-Box_Layout-1.1.1.2{
-       Direction {TopToBottom}
-       Border {5}
-       AutoBorder {5}
-       Name {}
-       Strut {0}
-       Stretch {2}
-}
-Layout_Widget-1.1.1.2.1{
-       Widget {copies}
-       BoxStretch {1}
-       Alignment {36}
-}
-Box_Layout-1.1.1.2.1.1{
-       Direction {TopToBottom}
-       Border {5}
-       AutoBorder {5}
-       Name {}
-       Strut {0}
-       Stretch {1}
-}
-Box_Spacing-1.1.1.2.1.1.1{
-       Spacing {7}
-}
-Box_Layout-1.1.1.2.1.1.2{
-       Direction {LeftToRight}
-       Border {5}
-       AutoBorder {5}
-       Name {}
-       Strut {0}
-       Stretch {1}
-}
-Box_Stretch-1.1.1.2.1.1.2.1{
-       Stretch {1}
-}
-Layout_Widget-1.1.1.2.1.1.2.2{
-       Widget {countLabel}
-       BoxStretch {1}
-       Alignment {36}
-}
-Box_Stretch-1.1.1.2.1.1.2.3{
-       Stretch {1}
-}
-Layout_Widget-1.1.1.2.1.1.2.4{
-       Widget {count}
-       BoxStretch {1}
-       Alignment {36}
-}
-Box_Stretch-1.1.1.2.1.1.2.5{
-       Stretch {1}
-}
-Layout_Widget-1.1.1.2.1.1.2.6{
-       Widget {sort}
-       BoxStretch {1}
-       Alignment {36}
-}
-Box_Spacing-1.1.1.2.1.1.3{
-       Spacing {3}
-}
-Layout_Widget-1.1.1.2.2{
-       Widget {printToGroupBox}
-       BoxStretch {3}
-       Alignment {36}
-}
-Box_Layout-1.1.1.2.2.1{
-       Direction {TopToBottom}
-       Border {5}
-       AutoBorder {5}
-       Name {}
-       Strut {0}
-       Stretch {1}
-}
-Box_Spacing-1.1.1.2.2.1.1{
-       Spacing {12}
-}
-Box_Stretch-1.1.1.2.2.1.2{
-       Stretch {1}
-}
-Box_Layout-1.1.1.2.2.1.3{
-       Direction {LeftToRight}
-       Border {5}
-       AutoBorder {5}
-       Name {}
-       Strut {0}
-       Stretch {3}
-}
-Box_Spacing-1.1.1.2.2.1.3.1{
-       Spacing {7}
-}
-Layout_Widget-1.1.1.2.2.1.3.2{
-       Widget {printToRadioGroup}
-       BoxStretch {1}
-       Alignment {33}
-}
-Box_Layout-1.1.1.2.2.1.3.2.1{
-       Direction {TopToBottom}
-       Border {5}
-       AutoBorder {5}
-       Name {}
-       Strut {0}
-       Stretch {1}
-}
-Layout_Widget-1.1.1.2.2.1.3.2.1.1{
-       Widget {toprinter}
-       BoxStretch {1}
-       Alignment {1}
-}
-Box_Stretch-1.1.1.2.2.1.3.2.1.2{
-       Stretch {1}
-}
-Layout_Widget-1.1.1.2.2.1.3.2.1.3{
-       Widget {tofile}
-       BoxStretch {1}
-       Alignment {1}
-}
-Box_Layout-1.1.1.2.2.1.3.3{
-       Direction {TopToBottom}
-       Border {5}
-       AutoBorder {5}
-       Name {}
-       Strut {0}
-       Stretch {1}
-}
-Layout_Widget-1.1.1.2.2.1.3.3.1{
-       Widget {printername}
-       BoxStretch {1}
-       Alignment {36}
-}
-Box_Stretch-1.1.1.2.2.1.3.3.2{
-       Stretch {1}
-}
-Layout_Widget-1.1.1.2.2.1.3.3.3{
-       Widget {filename}
-       BoxStretch {1}
-       Alignment {36}
-}
-Box_Spacing-1.1.1.2.2.1.3.4{
-       Spacing {7}
-}
-Box_Stretch-1.1.1.2.2.1.4{
-       Stretch {1}
-}
-Box_Layout-1.1.1.2.2.1.5{
-       Direction {LeftToRight}
-       Border {5}
-       AutoBorder {5}
-       Name {}
-       Strut {0}
-       Stretch {1}
-}
-Box_Stretch-1.1.1.2.2.1.5.1{
-       Stretch {1}
-}
-Layout_Widget-1.1.1.2.2.1.5.2{
-       Widget {browse}
-       BoxStretch {1}
-       Alignment {36}
-}
-Box_Spacing-1.1.1.2.2.1.5.3{
-       Spacing {7}
-}
-Box_Stretch-1.1.1.2.2.1.6{
-       Stretch {1}
-}
-Grid_Row-1.2{
-       Stretch {1}
-       Spacing {0}
-}
-Box_Layout-1.2.1{
-       Direction {LeftToRight}
-       Border {5}
-       AutoBorder {5}
-       Name {}
-       Strut {0}
-       Stretch {1}
-}
-Box_Stretch-1.2.1.1{
-       Stretch {1}
-}
-Layout_Widget-1.2.1.2{
-       Widget {print}
-       BoxStretch {1}
-       Alignment {36}
-}
-Box_Stretch-1.2.1.3{
-       Stretch {2}
-}
-Layout_Widget-1.2.1.4{
-       Widget {cancel}
-       BoxStretch {1}
-       Alignment {36}
-}
-Box_Stretch-1.2.1.5{
-       Stretch {1}
-}
-}
diff --git a/src/frontends/kde/dlg/index.dlg b/src/frontends/kde/dlg/index.dlg
new file mode 100644 (file)
index 0000000..7eeaea2
--- /dev/null
@@ -0,0 +1,193 @@
+DlgEdit:v1.2:Dialog:
+Dialog {
+       ClassHeader {indexdlg.h}
+       ClassSource {indexdlg.C}
+       ClassName {IndexDialog}
+       DataHeader {indexdlgdata.h}
+       DataSource {indexdlgdata.C}
+       DataName {IndexDialogData}
+       WindowBaseClass {QWidget}
+       UseGetText {TRUE}
+       WindowFlags {53248}
+}
+WidgetLayout {
+InitialPos {-1 -1}
+Size {250 105}
+MinSize {200 65}
+MaxSize {32767 65}
+Grid {5}
+
+Label {
+               Text {Keyword:}
+               Alignment {289}
+               AutoResize {FALSE}
+               Margin {-1}
+               Style {0}
+               LineWidth {1}
+               MidLineWidth {0}
+               FrameMargin {0}
+               Rect {5 15 60 25}
+               Name {Label_1}
+               Variable {labelindex}
+               MinimumSize {60 25}
+               MaximumSize {60 25}
+               BackgroundPixmap {}
+               UseBackgroundPixmap {FALSE}
+               AdjustSize {FALSE}
+               ReadPixmapFromData {FALSE}
+               DataVarName {}
+               DataLenName {}
+               minWidthSizeHint {TRUE}
+               minHeightSizeHint {TRUE}
+               maxWidthSizeHint {TRUE}
+               maxHeightSizeHint {TRUE}
+               FocusPolicy {NoFocus}
+               BackgroundMode {PaletteBackground}
+               FontPropagation {NoChildren}
+               PalettePropagation {NoChildren}
+}
+LineEdit {
+               Text {}
+               EchoMode {Normal}
+               MaxLength {32767}
+               FrameShown {TRUE}
+               Rect {70 15 175 25}
+               Name {LineEdit_1}
+               Variable {index}
+               MinimumSize {125 25}
+               MaximumSize {32767 25}
+               BackgroundPixmap {}
+               UseBackgroundPixmap {FALSE}
+               AdjustSize {FALSE}
+               ReadPixmapFromData {FALSE}
+               DataVarName {}
+               DataLenName {}
+               minWidthSizeHint {TRUE}
+               minHeightSizeHint {TRUE}
+               maxWidthSizeHint {FALSE}
+               maxHeightSizeHint {TRUE}
+               FocusPolicy {StrongFocus}
+               BackgroundMode {PaletteBase}
+               FontPropagation {NoChildren}
+               PalettePropagation {NoChildren}
+}
+PushButton {
+               ToggleButton {FALSE}
+               Default {FALSE}
+               AutoDefault {TRUE}
+               IsMenuButton {FALSE}
+               Text {&OK}
+               AutoRepeat {FALSE}
+               AutoResize {FALSE}
+               Rect {24 65 80 25}
+               Name {PushButton_OK}
+               Variable {buttonOk}
+               Signal {[Protected]  clicked --> clickedOK  ()}
+               MinimumSize {80 25}
+               MaximumSize {80 25}
+               BackgroundPixmap {}
+               UseBackgroundPixmap {FALSE}
+               AdjustSize {FALSE}
+               ReadPixmapFromData {FALSE}
+               DataVarName {}
+               DataLenName {}
+               minWidthSizeHint {TRUE}
+               minHeightSizeHint {TRUE}
+               maxWidthSizeHint {TRUE}
+               maxHeightSizeHint {TRUE}
+               FocusPolicy {TabFocus}
+               BackgroundMode {PaletteBackground}
+               FontPropagation {NoChildren}
+               PalettePropagation {NoChildren}
+}
+PushButton {
+               ToggleButton {FALSE}
+               Default {FALSE}
+               AutoDefault {FALSE}
+               IsMenuButton {FALSE}
+               Text {&Cancel}
+               AutoRepeat {FALSE}
+               AutoResize {FALSE}
+               Rect {146 65 80 25}
+               Name {PushButton_Cancel}
+               Variable {buttonCancel}
+               Signal {[Protected]  clicked --> clickedCancel  ()}
+               MinimumSize {80 25}
+               MaximumSize {80 25}
+               BackgroundPixmap {}
+               UseBackgroundPixmap {FALSE}
+               AdjustSize {FALSE}
+               ReadPixmapFromData {FALSE}
+               DataVarName {}
+               DataLenName {}
+               minWidthSizeHint {TRUE}
+               minHeightSizeHint {TRUE}
+               maxWidthSizeHint {TRUE}
+               maxHeightSizeHint {TRUE}
+               FocusPolicy {TabFocus}
+               BackgroundMode {PaletteBackground}
+               FontPropagation {NoChildren}
+               PalettePropagation {NoChildren}
+}
+
+Grid_Layout-1{
+       Border {5}
+       AutoBorder {5}
+       Name {}
+       ColumnInfo {5 1}
+       BoxStretch {1}
+}
+Grid_Row-1.1{
+       Stretch {0}
+       Spacing {0}
+}
+Box_Layout-1.1.1{
+       Direction {LeftToRight}
+       Border {5}
+       AutoBorder {5}
+       Name {}
+       Strut {0}
+       Stretch {1}
+}
+Layout_Widget-1.1.1.1{
+       Widget {Label_1}
+       BoxStretch {0}
+       Alignment {36}
+}
+Layout_Widget-1.1.1.2{
+       Widget {LineEdit_1}
+       BoxStretch {1}
+       Alignment {36}
+}
+Grid_Row-1.2{
+       Stretch {0}
+       Spacing {0}
+}
+Box_Layout-1.2.1{
+       Direction {LeftToRight}
+       Border {5}
+       AutoBorder {5}
+       Name {}
+       Strut {0}
+       Stretch {0}
+}
+Box_Stretch-1.2.1.1{
+       Stretch {1}
+}
+Layout_Widget-1.2.1.2{
+       Widget {PushButton_OK}
+       BoxStretch {1}
+       Alignment {36}
+}
+Box_Stretch-1.2.1.3{
+       Stretch {2}
+}
+Layout_Widget-1.2.1.4{
+       Widget {PushButton_Cancel}
+       BoxStretch {1}
+       Alignment {36}
+}
+Box_Stretch-1.2.1.5{
+       Stretch {1}
+}
+}
diff --git a/src/frontends/kde/dlg/paraextra.dlg b/src/frontends/kde/dlg/paraextra.dlg
new file mode 100644 (file)
index 0000000..91ce124
--- /dev/null
@@ -0,0 +1,443 @@
+DlgEdit:v1.2:Dialog:
+Dialog {
+       ClassHeader {paraextradlg.h}
+       ClassSource {paraextradlg.C}
+       ClassName {ParaExtraDialog}
+       DataHeader {paraextradlgdata.h}
+       DataSource {paraextradlgdata.C}
+       DataName {ParaExtraDialogData}
+       WindowBaseClass {QWidget}
+       UseGetText {TRUE}
+       WindowFlags {0}
+}
+WidgetLayout {
+InitialPos {-1 -1}
+Size {545 460}
+MinSize {0 0}
+MaxSize {32767 32767}
+Grid {5}
+
+ButtonGroup {
+               Exclusive {TRUE}
+               Title {Alignment}
+               Alignment {Left}
+               Style {49}
+               LineWidth {1}
+               MidLineWidth {0}
+               FrameMargin {0}
+               Rect {5 124 265 331}
+               Name {specialalignment}
+               Variable {specialalignment}
+               MinimumSize {0 0}
+               MaximumSize {32767 32767}
+               BackgroundPixmap {}
+               UseBackgroundPixmap {FALSE}
+               AdjustSize {FALSE}
+               ReadPixmapFromData {FALSE}
+               DataVarName {}
+               DataLenName {}
+               minWidthSizeHint {FALSE}
+               minHeightSizeHint {FALSE}
+               maxWidthSizeHint {FALSE}
+               maxHeightSizeHint {FALSE}
+               FocusPolicy {NoFocus}
+               BackgroundMode {PaletteBackground}
+               FontPropagation {NoChildren}
+               PalettePropagation {NoChildren}
+}
+ComboBox {
+               Style {ReadOnly}
+               SizeLimit {10}
+               Policy {AtBottom}
+               AutoResize {FALSE}
+               MaxCount {2147483647}
+               AutoCompletion {FALSE}
+               Rect {5 65 265 54}
+               Name {type}
+               Variable {type}
+               Signal {[Protected]  highlighted --> typeHighlighted  (int)}
+               MinimumSize {0 0}
+               MaximumSize {32767 32767}
+               BackgroundPixmap {}
+               UseBackgroundPixmap {FALSE}
+               AdjustSize {FALSE}
+               ReadPixmapFromData {FALSE}
+               DataVarName {}
+               DataLenName {}
+               minWidthSizeHint {TRUE}
+               minHeightSizeHint {TRUE}
+               maxWidthSizeHint {FALSE}
+               maxHeightSizeHint {TRUE}
+               FocusPolicy {StrongFocus}
+               BackgroundMode {PaletteBackground}
+               FontPropagation {AllChildren}
+               PalettePropagation {AllChildren}
+}
+Label {
+               Text {Type}
+               Alignment {289}
+               AutoResize {FALSE}
+               Margin {-1}
+               Style {0}
+               LineWidth {1}
+               MidLineWidth {0}
+               FrameMargin {0}
+               Rect {5 5 265 55}
+               Name {speciallabel}
+               MinimumSize {0 0}
+               MaximumSize {32767 32767}
+               BackgroundPixmap {}
+               UseBackgroundPixmap {FALSE}
+               AdjustSize {FALSE}
+               ReadPixmapFromData {FALSE}
+               DataVarName {}
+               DataLenName {}
+               minWidthSizeHint {TRUE}
+               minHeightSizeHint {TRUE}
+               maxWidthSizeHint {TRUE}
+               maxHeightSizeHint {TRUE}
+               FocusPolicy {NoFocus}
+               BackgroundMode {PaletteBackground}
+               FontPropagation {NoChildren}
+               PalettePropagation {NoChildren}
+}
+Label {
+               Text {Width}
+               Alignment {289}
+               AutoResize {FALSE}
+               Margin {-1}
+               Style {0}
+               LineWidth {1}
+               MidLineWidth {0}
+               FrameMargin {0}
+               Rect {275 5 265 55}
+               Name {specialwidthlabel}
+               MinimumSize {0 0}
+               MaximumSize {32767 32767}
+               BackgroundPixmap {}
+               UseBackgroundPixmap {FALSE}
+               AdjustSize {FALSE}
+               ReadPixmapFromData {FALSE}
+               DataVarName {}
+               DataLenName {}
+               minWidthSizeHint {TRUE}
+               minHeightSizeHint {TRUE}
+               maxWidthSizeHint {TRUE}
+               maxHeightSizeHint {TRUE}
+               FocusPolicy {NoFocus}
+               BackgroundMode {PaletteBackground}
+               FontPropagation {NoChildren}
+               PalettePropagation {NoChildren}
+}
+ComboBox {
+               Style {ReadOnly}
+               SizeLimit {10}
+               Policy {AtBottom}
+               AutoResize {FALSE}
+               MaxCount {2147483647}
+               AutoCompletion {FALSE}
+               Rect {367 65 173 54}
+               Name {widthvalueunits}
+               Variable {widthvalueunits}
+               MinimumSize {0 0}
+               MaximumSize {32767 32767}
+               BackgroundPixmap {}
+               UseBackgroundPixmap {FALSE}
+               AdjustSize {FALSE}
+               ReadPixmapFromData {FALSE}
+               DataVarName {}
+               DataLenName {}
+               minWidthSizeHint {TRUE}
+               minHeightSizeHint {TRUE}
+               maxWidthSizeHint {FALSE}
+               maxHeightSizeHint {TRUE}
+               FocusPolicy {StrongFocus}
+               BackgroundMode {PaletteBackground}
+               FontPropagation {AllChildren}
+               PalettePropagation {AllChildren}
+}
+CheckBox {
+               Checked {FALSE}
+               Text {&HFill between minipage paragraphs}
+               AutoRepeat {FALSE}
+               AutoResize {FALSE}
+               Rect {275 189 265 65}
+               Name {hfillbetween}
+               Variable {hfillbetween}
+               MinimumSize {0 0}
+               MaximumSize {32767 32767}
+               BackgroundPixmap {}
+               UseBackgroundPixmap {FALSE}
+               AdjustSize {FALSE}
+               ReadPixmapFromData {FALSE}
+               DataVarName {}
+               DataLenName {}
+               minWidthSizeHint {TRUE}
+               minHeightSizeHint {TRUE}
+               maxWidthSizeHint {TRUE}
+               maxHeightSizeHint {TRUE}
+               FocusPolicy {TabFocus}
+               BackgroundMode {PaletteBackground}
+               FontPropagation {NoChildren}
+               PalettePropagation {NoChildren}
+}
+CheckBox {
+               Checked {FALSE}
+               Text {&Start new minipage}
+               AutoRepeat {FALSE}
+               AutoResize {FALSE}
+               Rect {275 325 265 65}
+               Name {startnewminipage}
+               Variable {startnewminipage}
+               MinimumSize {0 0}
+               MaximumSize {32767 32767}
+               BackgroundPixmap {}
+               UseBackgroundPixmap {FALSE}
+               AdjustSize {FALSE}
+               ReadPixmapFromData {FALSE}
+               DataVarName {}
+               DataLenName {}
+               minWidthSizeHint {TRUE}
+               minHeightSizeHint {TRUE}
+               maxWidthSizeHint {TRUE}
+               maxHeightSizeHint {TRUE}
+               FocusPolicy {TabFocus}
+               BackgroundMode {PaletteBackground}
+               FontPropagation {NoChildren}
+               PalettePropagation {NoChildren}
+}
+RadioButton {
+               Checked {FALSE}
+               Text {&Top}
+               AutoRepeat {FALSE}
+               AutoResize {FALSE}
+               Rect {10 173 255 45}
+               Name {top}
+               Variable {top}
+               MinimumSize {0 0}
+               MaximumSize {32767 32767}
+               BackgroundPixmap {}
+               UseBackgroundPixmap {FALSE}
+               AdjustSize {FALSE}
+               ReadPixmapFromData {FALSE}
+               DataVarName {}
+               DataLenName {}
+               minWidthSizeHint {TRUE}
+               minHeightSizeHint {TRUE}
+               maxWidthSizeHint {TRUE}
+               maxHeightSizeHint {TRUE}
+               FocusPolicy {TabFocus}
+               BackgroundMode {PaletteBackground}
+               FontPropagation {NoChildren}
+               PalettePropagation {NoChildren}
+}
+RadioButton {
+               Checked {FALSE}
+               Text {&Middle}
+               AutoRepeat {FALSE}
+               AutoResize {FALSE}
+               Rect {10 267 255 45}
+               Name {middle}
+               Variable {middle}
+               MinimumSize {0 0}
+               MaximumSize {32767 32767}
+               BackgroundPixmap {}
+               UseBackgroundPixmap {FALSE}
+               AdjustSize {FALSE}
+               ReadPixmapFromData {FALSE}
+               DataVarName {}
+               DataLenName {}
+               minWidthSizeHint {TRUE}
+               minHeightSizeHint {TRUE}
+               maxWidthSizeHint {TRUE}
+               maxHeightSizeHint {TRUE}
+               FocusPolicy {TabFocus}
+               BackgroundMode {PaletteBackground}
+               FontPropagation {NoChildren}
+               PalettePropagation {NoChildren}
+}
+RadioButton {
+               Checked {FALSE}
+               Text {&Bottom}
+               AutoRepeat {FALSE}
+               AutoResize {FALSE}
+               Rect {10 361 255 45}
+               Name {bottom}
+               Variable {bottom}
+               MinimumSize {0 0}
+               MaximumSize {32767 32767}
+               BackgroundPixmap {}
+               UseBackgroundPixmap {FALSE}
+               AdjustSize {FALSE}
+               ReadPixmapFromData {FALSE}
+               DataVarName {}
+               DataLenName {}
+               minWidthSizeHint {TRUE}
+               minHeightSizeHint {TRUE}
+               maxWidthSizeHint {TRUE}
+               maxHeightSizeHint {TRUE}
+               FocusPolicy {TabFocus}
+               BackgroundMode {PaletteBackground}
+               FontPropagation {NoChildren}
+               PalettePropagation {NoChildren}
+}
+KDE::KRestrictedLine {
+               ValidChars {0123456789.-,}
+               Text {}
+               EchoMode {Normal}
+               MaxLength {32767}
+               FrameShown {TRUE}
+               Rect {275 65 87 54}
+               Name {widthvalue}
+               Variable {widthvalue}
+               MinimumSize {0 0}
+               MaximumSize {32767 32767}
+               BackgroundPixmap {}
+               UseBackgroundPixmap {FALSE}
+               AdjustSize {FALSE}
+               ReadPixmapFromData {FALSE}
+               DataVarName {}
+               DataLenName {}
+               minWidthSizeHint {TRUE}
+               minHeightSizeHint {TRUE}
+               maxWidthSizeHint {FALSE}
+               maxHeightSizeHint {TRUE}
+               FocusPolicy {StrongFocus}
+               BackgroundMode {PaletteBase}
+               FontPropagation {NoChildren}
+               PalettePropagation {NoChildren}
+}
+
+Grid_Layout-1{
+       Border {5}
+       AutoBorder {5}
+       Name {}
+       ColumnInfo {5 1}
+       ColumnInfo {5 1}
+       BoxStretch {1}
+}
+Grid_Row-1.1{
+       Stretch {1}
+       Spacing {5}
+}
+Box_Layout-1.1.1{
+       Direction {TopToBottom}
+       Border {5}
+       AutoBorder {5}
+       Name {}
+       Strut {5}
+       Stretch {1}
+}
+Layout_Widget-1.1.1.1{
+       Widget {speciallabel}
+       BoxStretch {1}
+       Alignment {1}
+}
+Layout_Widget-1.1.1.2{
+       Widget {type}
+       BoxStretch {1}
+       Alignment {36}
+}
+Box_Layout-1.1.2{
+       Direction {TopToBottom}
+       Border {5}
+       AutoBorder {5}
+       Name {}
+       Strut {5}
+       Stretch {1}
+}
+Layout_Widget-1.1.2.1{
+       Widget {specialwidthlabel}
+       BoxStretch {1}
+       Alignment {1}
+}
+Box_Layout-1.1.2.2{
+       Direction {LeftToRight}
+       Border {5}
+       AutoBorder {5}
+       Name {}
+       Strut {0}
+       Stretch {1}
+}
+Layout_Widget-1.1.2.2.1{
+       Widget {widthvalue}
+       BoxStretch {1}
+       Alignment {36}
+}
+Layout_Widget-1.1.2.2.2{
+       Widget {widthvalueunits}
+       BoxStretch {2}
+       Alignment {36}
+}
+Grid_Row-1.2{
+       Stretch {3}
+       Spacing {5}
+}
+Layout_Widget-1.2.1{
+       Widget {specialalignment}
+       BoxStretch {1}
+       Alignment {33}
+}
+Box_Layout-1.2.1.1{
+       Direction {TopToBottom}
+       Border {5}
+       AutoBorder {5}
+       Name {}
+       Strut {0}
+       Stretch {1}
+}
+Box_Stretch-1.2.1.1.1{
+       Stretch {1}
+}
+Layout_Widget-1.2.1.1.2{
+       Widget {top}
+       BoxStretch {1}
+       Alignment {1}
+}
+Box_Stretch-1.2.1.1.3{
+       Stretch {1}
+}
+Layout_Widget-1.2.1.1.4{
+       Widget {middle}
+       BoxStretch {1}
+       Alignment {1}
+}
+Box_Stretch-1.2.1.1.5{
+       Stretch {1}
+}
+Layout_Widget-1.2.1.1.6{
+       Widget {bottom}
+       BoxStretch {1}
+       Alignment {1}
+}
+Box_Stretch-1.2.1.1.7{
+       Stretch {1}
+}
+Box_Layout-1.2.2{
+       Direction {TopToBottom}
+       Border {5}
+       AutoBorder {5}
+       Name {}
+       Strut {0}
+       Stretch {1}
+}
+Box_Stretch-1.2.2.1{
+       Stretch {1}
+}
+Layout_Widget-1.2.2.2{
+       Widget {hfillbetween}
+       BoxStretch {1}
+       Alignment {1}
+}
+Box_Stretch-1.2.2.3{
+       Stretch {1}
+}
+Layout_Widget-1.2.2.4{
+       Widget {startnewminipage}
+       BoxStretch {1}
+       Alignment {1}
+}
+Box_Stretch-1.2.2.5{
+       Stretch {1}
+}
+}
diff --git a/src/frontends/kde/dlg/parageneral.dlg b/src/frontends/kde/dlg/parageneral.dlg
new file mode 100644 (file)
index 0000000..16f7e5a
--- /dev/null
@@ -0,0 +1,1299 @@
+DlgEdit:v1.2:Dialog:
+Dialog {
+       ClassHeader {parageneraldlg.h}
+       ClassSource {parageneraldlg.C}
+       ClassName {ParaGeneralDialog}
+       DataHeader {parageneraldlgdata.h}
+       DataSource {parageneraldlgdata.C}
+       DataName {ParaGeneralDialogData}
+       WindowBaseClass {QWidget}
+       UseGetText {TRUE}
+       WindowFlags {0}
+}
+WidgetLayout {
+InitialPos {-1 -1}
+Size {530 300}
+MinSize {0 0}
+MaxSize {32767 32767}
+Grid {5}
+
+ButtonGroup {
+               Exclusive {TRUE}
+               Title {Alignment}
+               Alignment {Left}
+               Style {49}
+               LineWidth {1}
+               MidLineWidth {0}
+               FrameMargin {0}
+               Rect {5 5 102 196}
+               Name {alignment}
+               Variable {alignment}
+               MinimumSize {0 0}
+               MaximumSize {32767 32767}
+               BackgroundPixmap {}
+               UseBackgroundPixmap {FALSE}
+               AdjustSize {FALSE}
+               ReadPixmapFromData {FALSE}
+               DataVarName {}
+               DataLenName {}
+               minWidthSizeHint {TRUE}
+               minHeightSizeHint {TRUE}
+               maxWidthSizeHint {FALSE}
+               maxHeightSizeHint {FALSE}
+               FocusPolicy {NoFocus}
+               BackgroundMode {PaletteBackground}
+               FontPropagation {NoChildren}
+               PalettePropagation {NoChildren}
+}
+GroupBox {
+               Title {Spacing Above}
+               Alignment {Left}
+               Style {49}
+               LineWidth {1}
+               MidLineWidth {0}
+               FrameMargin {0}
+               Rect {112 5 204 196}
+               Name {SpacingAboveGroupBox}
+               MinimumSize {0 0}
+               MaximumSize {32767 32767}
+               BackgroundPixmap {}
+               UseBackgroundPixmap {FALSE}
+               AdjustSize {FALSE}
+               ReadPixmapFromData {FALSE}
+               DataVarName {}
+               DataLenName {}
+               minWidthSizeHint {FALSE}
+               minHeightSizeHint {FALSE}
+               maxWidthSizeHint {FALSE}
+               maxHeightSizeHint {FALSE}
+               FocusPolicy {NoFocus}
+               BackgroundMode {PaletteBackground}
+               FontPropagation {NoChildren}
+               PalettePropagation {NoChildren}
+}
+CheckBox {
+               Checked {FALSE}
+               Text {Draw line above paragraph}
+               AutoRepeat {FALSE}
+               AutoResize {FALSE}
+               Rect {5 206 255 26}
+               Name {lineabove}
+               Variable {lineabove}
+               MinimumSize {0 0}
+               MaximumSize {32767 32767}
+               BackgroundPixmap {}
+               UseBackgroundPixmap {FALSE}
+               AdjustSize {FALSE}
+               ReadPixmapFromData {FALSE}
+               DataVarName {}
+               DataLenName {}
+               minWidthSizeHint {TRUE}
+               minHeightSizeHint {TRUE}
+               maxWidthSizeHint {TRUE}
+               maxHeightSizeHint {TRUE}
+               FocusPolicy {TabFocus}
+               BackgroundMode {PaletteBackground}
+               FontPropagation {NoChildren}
+               PalettePropagation {NoChildren}
+}
+CheckBox {
+               Checked {FALSE}
+               Text {Draw line below paragraph}
+               AutoRepeat {FALSE}
+               AutoResize {FALSE}
+               Rect {5 237 255 27}
+               Name {linebelow}
+               Variable {linebelow}
+               MinimumSize {0 0}
+               MaximumSize {32767 32767}
+               BackgroundPixmap {}
+               UseBackgroundPixmap {FALSE}
+               AdjustSize {FALSE}
+               ReadPixmapFromData {FALSE}
+               DataVarName {}
+               DataLenName {}
+               minWidthSizeHint {TRUE}
+               minHeightSizeHint {TRUE}
+               maxWidthSizeHint {TRUE}
+               maxHeightSizeHint {TRUE}
+               FocusPolicy {TabFocus}
+               BackgroundMode {PaletteBackground}
+               FontPropagation {NoChildren}
+               PalettePropagation {NoChildren}
+}
+CheckBox {
+               Checked {FALSE}
+               Text {Page break}
+               AutoRepeat {FALSE}
+               AutoResize {FALSE}
+               Rect {117 25 194 24}
+               Name {pagebreakabove}
+               Variable {pagebreakabove}
+               MinimumSize {0 0}
+               MaximumSize {32767 32767}
+               BackgroundPixmap {}
+               UseBackgroundPixmap {FALSE}
+               AdjustSize {FALSE}
+               ReadPixmapFromData {FALSE}
+               DataVarName {}
+               DataLenName {}
+               minWidthSizeHint {TRUE}
+               minHeightSizeHint {TRUE}
+               maxWidthSizeHint {TRUE}
+               maxHeightSizeHint {TRUE}
+               FocusPolicy {TabFocus}
+               BackgroundMode {PaletteBackground}
+               FontPropagation {NoChildren}
+               PalettePropagation {NoChildren}
+}
+CheckBox {
+               Checked {FALSE}
+               Text {Don't indent paragraph}
+               AutoRepeat {FALSE}
+               AutoResize {FALSE}
+               Rect {5 269 255 26}
+               Name {noindent}
+               Variable {noindent}
+               MinimumSize {0 0}
+               MaximumSize {32767 32767}
+               BackgroundPixmap {}
+               UseBackgroundPixmap {FALSE}
+               AdjustSize {FALSE}
+               ReadPixmapFromData {FALSE}
+               DataVarName {}
+               DataLenName {}
+               minWidthSizeHint {TRUE}
+               minHeightSizeHint {TRUE}
+               maxWidthSizeHint {TRUE}
+               maxHeightSizeHint {TRUE}
+               FocusPolicy {TabFocus}
+               BackgroundMode {PaletteBackground}
+               FontPropagation {NoChildren}
+               PalettePropagation {NoChildren}
+}
+ComboBox {
+               Style {ReadOnly}
+               SizeLimit {10}
+               Policy {AtBottom}
+               AutoResize {FALSE}
+               MaxCount {2147483647}
+               AutoCompletion {FALSE}
+               Rect {117 84 194 24}
+               Name {spaceabove}
+               Variable {spaceabove}
+               Signal {[Protected]  highlighted --> spaceaboveHighlighted  (int)}
+               MinimumSize {0 0}
+               MaximumSize {32767 32767}
+               BackgroundPixmap {}
+               UseBackgroundPixmap {FALSE}
+               AdjustSize {FALSE}
+               ReadPixmapFromData {FALSE}
+               DataVarName {}
+               DataLenName {}
+               minWidthSizeHint {TRUE}
+               minHeightSizeHint {TRUE}
+               maxWidthSizeHint {FALSE}
+               maxHeightSizeHint {TRUE}
+               FocusPolicy {StrongFocus}
+               BackgroundMode {PaletteBackground}
+               FontPropagation {AllChildren}
+               PalettePropagation {AllChildren}
+}
+Label {
+               Text {Extra Space}
+               Alignment {289}
+               AutoResize {FALSE}
+               Margin {-1}
+               Style {0}
+               LineWidth {1}
+               MidLineWidth {0}
+               FrameMargin {0}
+               Rect {117 54 194 25}
+               Name {abovelabel}
+               MinimumSize {0 0}
+               MaximumSize {32767 32767}
+               BackgroundPixmap {}
+               UseBackgroundPixmap {FALSE}
+               AdjustSize {FALSE}
+               ReadPixmapFromData {FALSE}
+               DataVarName {}
+               DataLenName {}
+               minWidthSizeHint {TRUE}
+               minHeightSizeHint {TRUE}
+               maxWidthSizeHint {TRUE}
+               maxHeightSizeHint {TRUE}
+               FocusPolicy {NoFocus}
+               BackgroundMode {PaletteBackground}
+               FontPropagation {NoChildren}
+               PalettePropagation {NoChildren}
+}
+GroupBox {
+               Title {Spacing Below}
+               Alignment {Left}
+               Style {49}
+               LineWidth {1}
+               MidLineWidth {0}
+               FrameMargin {0}
+               Rect {321 5 204 196}
+               Name {SpacingBelowGroupBox}
+               MinimumSize {0 0}
+               MaximumSize {32767 32767}
+               BackgroundPixmap {}
+               UseBackgroundPixmap {FALSE}
+               AdjustSize {FALSE}
+               ReadPixmapFromData {FALSE}
+               DataVarName {}
+               DataLenName {}
+               minWidthSizeHint {FALSE}
+               minHeightSizeHint {FALSE}
+               maxWidthSizeHint {FALSE}
+               maxHeightSizeHint {FALSE}
+               FocusPolicy {NoFocus}
+               BackgroundMode {PaletteBackground}
+               FontPropagation {NoChildren}
+               PalettePropagation {NoChildren}
+}
+CheckBox {
+               Checked {FALSE}
+               Text {Page break}
+               AutoRepeat {FALSE}
+               AutoResize {FALSE}
+               Rect {326 25 194 24}
+               Name {pagebreakbelow}
+               Variable {pagebreakbelow}
+               MinimumSize {0 0}
+               MaximumSize {32767 32767}
+               BackgroundPixmap {}
+               UseBackgroundPixmap {FALSE}
+               AdjustSize {FALSE}
+               ReadPixmapFromData {FALSE}
+               DataVarName {}
+               DataLenName {}
+               minWidthSizeHint {TRUE}
+               minHeightSizeHint {TRUE}
+               maxWidthSizeHint {TRUE}
+               maxHeightSizeHint {TRUE}
+               FocusPolicy {TabFocus}
+               BackgroundMode {PaletteBackground}
+               FontPropagation {NoChildren}
+               PalettePropagation {NoChildren}
+}
+Label {
+               Text {Extra Space}
+               Alignment {289}
+               AutoResize {FALSE}
+               Margin {-1}
+               Style {0}
+               LineWidth {1}
+               MidLineWidth {0}
+               FrameMargin {0}
+               Rect {326 54 194 25}
+               Name {belowlabel}
+               MinimumSize {0 0}
+               MaximumSize {32767 32767}
+               BackgroundPixmap {}
+               UseBackgroundPixmap {FALSE}
+               AdjustSize {FALSE}
+               ReadPixmapFromData {FALSE}
+               DataVarName {}
+               DataLenName {}
+               minWidthSizeHint {TRUE}
+               minHeightSizeHint {TRUE}
+               maxWidthSizeHint {TRUE}
+               maxHeightSizeHint {TRUE}
+               FocusPolicy {NoFocus}
+               BackgroundMode {PaletteBackground}
+               FontPropagation {NoChildren}
+               PalettePropagation {NoChildren}
+}
+ComboBox {
+               Style {ReadOnly}
+               SizeLimit {10}
+               Policy {AtBottom}
+               AutoResize {FALSE}
+               MaxCount {2147483647}
+               AutoCompletion {FALSE}
+               Rect {326 84 194 24}
+               Name {spacebelow}
+               Variable {spacebelow}
+               Signal {[Protected]  highlighted --> spacebelowHighlighted  (int)}
+               MinimumSize {0 0}
+               MaximumSize {32767 32767}
+               BackgroundPixmap {}
+               UseBackgroundPixmap {FALSE}
+               AdjustSize {FALSE}
+               ReadPixmapFromData {FALSE}
+               DataVarName {}
+               DataLenName {}
+               minWidthSizeHint {TRUE}
+               minHeightSizeHint {TRUE}
+               maxWidthSizeHint {FALSE}
+               maxHeightSizeHint {TRUE}
+               FocusPolicy {StrongFocus}
+               BackgroundMode {PaletteBackground}
+               FontPropagation {AllChildren}
+               PalettePropagation {AllChildren}
+}
+RadioButton {
+               Checked {FALSE}
+               Text {Block}
+               AutoRepeat {FALSE}
+               AutoResize {FALSE}
+               Rect {10 42 92 18}
+               Name {block}
+               Variable {block}
+               MinimumSize {0 0}
+               MaximumSize {32767 32767}
+               BackgroundPixmap {}
+               UseBackgroundPixmap {FALSE}
+               AdjustSize {FALSE}
+               ReadPixmapFromData {FALSE}
+               DataVarName {}
+               DataLenName {}
+               minWidthSizeHint {TRUE}
+               minHeightSizeHint {TRUE}
+               maxWidthSizeHint {TRUE}
+               maxHeightSizeHint {TRUE}
+               FocusPolicy {TabFocus}
+               BackgroundMode {PaletteBackground}
+               FontPropagation {NoChildren}
+               PalettePropagation {NoChildren}
+}
+RadioButton {
+               Checked {FALSE}
+               Text {Center}
+               AutoRepeat {FALSE}
+               AutoResize {FALSE}
+               Rect {10 82 92 17}
+               Name {center}
+               Variable {center}
+               MinimumSize {0 0}
+               MaximumSize {32767 32767}
+               BackgroundPixmap {}
+               UseBackgroundPixmap {FALSE}
+               AdjustSize {FALSE}
+               ReadPixmapFromData {FALSE}
+               DataVarName {}
+               DataLenName {}
+               minWidthSizeHint {TRUE}
+               minHeightSizeHint {TRUE}
+               maxWidthSizeHint {TRUE}
+               maxHeightSizeHint {TRUE}
+               FocusPolicy {TabFocus}
+               BackgroundMode {PaletteBackground}
+               FontPropagation {NoChildren}
+               PalettePropagation {NoChildren}
+}
+RadioButton {
+               Checked {FALSE}
+               Text {Left}
+               AutoRepeat {FALSE}
+               AutoResize {FALSE}
+               Rect {10 122 92 17}
+               Name {left}
+               Variable {left}
+               MinimumSize {0 0}
+               MaximumSize {32767 32767}
+               BackgroundPixmap {}
+               UseBackgroundPixmap {FALSE}
+               AdjustSize {FALSE}
+               ReadPixmapFromData {FALSE}
+               DataVarName {}
+               DataLenName {}
+               minWidthSizeHint {TRUE}
+               minHeightSizeHint {TRUE}
+               maxWidthSizeHint {TRUE}
+               maxHeightSizeHint {TRUE}
+               FocusPolicy {TabFocus}
+               BackgroundMode {PaletteBackground}
+               FontPropagation {NoChildren}
+               PalettePropagation {NoChildren}
+}
+RadioButton {
+               Checked {FALSE}
+               Text {Right}
+               AutoRepeat {FALSE}
+               AutoResize {FALSE}
+               Rect {10 161 92 18}
+               Name {right}
+               Variable {right}
+               MinimumSize {0 0}
+               MaximumSize {32767 32767}
+               BackgroundPixmap {}
+               UseBackgroundPixmap {FALSE}
+               AdjustSize {FALSE}
+               ReadPixmapFromData {FALSE}
+               DataVarName {}
+               DataLenName {}
+               minWidthSizeHint {TRUE}
+               minHeightSizeHint {TRUE}
+               maxWidthSizeHint {TRUE}
+               maxHeightSizeHint {TRUE}
+               FocusPolicy {TabFocus}
+               BackgroundMode {PaletteBackground}
+               FontPropagation {NoChildren}
+               PalettePropagation {NoChildren}
+}
+Label {
+               Text {Label width}
+               Alignment {289}
+               AutoResize {FALSE}
+               Margin {-1}
+               Style {0}
+               LineWidth {1}
+               MidLineWidth {0}
+               FrameMargin {0}
+               Rect {265 206 128 89}
+               Name {labelwidthlabel}
+               MinimumSize {0 0}
+               MaximumSize {32767 32767}
+               BackgroundPixmap {}
+               UseBackgroundPixmap {FALSE}
+               AdjustSize {FALSE}
+               ReadPixmapFromData {FALSE}
+               DataVarName {}
+               DataLenName {}
+               minWidthSizeHint {TRUE}
+               minHeightSizeHint {TRUE}
+               maxWidthSizeHint {TRUE}
+               maxHeightSizeHint {TRUE}
+               FocusPolicy {NoFocus}
+               BackgroundMode {PaletteBackground}
+               FontPropagation {NoChildren}
+               PalettePropagation {NoChildren}
+}
+LineEdit {
+               Text {}
+               EchoMode {Normal}
+               MaxLength {32767}
+               FrameShown {TRUE}
+               Rect {398 206 127 89}
+               Name {labelwidth}
+               Variable {labelwidth}
+               MinimumSize {0 0}
+               MaximumSize {32767 32767}
+               BackgroundPixmap {}
+               UseBackgroundPixmap {FALSE}
+               AdjustSize {FALSE}
+               ReadPixmapFromData {FALSE}
+               DataVarName {}
+               DataLenName {}
+               minWidthSizeHint {TRUE}
+               minHeightSizeHint {TRUE}
+               maxWidthSizeHint {FALSE}
+               maxHeightSizeHint {TRUE}
+               FocusPolicy {StrongFocus}
+               BackgroundMode {PaletteBase}
+               FontPropagation {NoChildren}
+               PalettePropagation {NoChildren}
+}
+KDE::KRestrictedLine {
+               ValidChars {0123456789.-,}
+               Text {}
+               EchoMode {Normal}
+               MaxLength {32767}
+               FrameShown {TRUE}
+               Rect {148 113 53 24}
+               Name {spaceabovevalue}
+               Variable {spaceabovevalue}
+               Signal {[Protected]  textChanged --> spaceabovevalueChanged  (const char*)}
+               MinimumSize {0 0}
+               MaximumSize {32767 32767}
+               BackgroundPixmap {}
+               UseBackgroundPixmap {FALSE}
+               AdjustSize {FALSE}
+               ReadPixmapFromData {FALSE}
+               DataVarName {}
+               DataLenName {}
+               minWidthSizeHint {TRUE}
+               minHeightSizeHint {TRUE}
+               maxWidthSizeHint {FALSE}
+               maxHeightSizeHint {TRUE}
+               FocusPolicy {StrongFocus}
+               BackgroundMode {PaletteBase}
+               FontPropagation {NoChildren}
+               PalettePropagation {NoChildren}
+}
+Label {
+               Text {Value}
+               Alignment {289}
+               AutoResize {FALSE}
+               Margin {-1}
+               Style {0}
+               LineWidth {1}
+               MidLineWidth {0}
+               FrameMargin {0}
+               Rect {117 113 26 24}
+               Name {ValueLabel}
+               MinimumSize {0 0}
+               MaximumSize {32767 32767}
+               BackgroundPixmap {}
+               UseBackgroundPixmap {FALSE}
+               AdjustSize {FALSE}
+               ReadPixmapFromData {FALSE}
+               DataVarName {}
+               DataLenName {}
+               minWidthSizeHint {TRUE}
+               minHeightSizeHint {TRUE}
+               maxWidthSizeHint {FALSE}
+               maxHeightSizeHint {FALSE}
+               FocusPolicy {NoFocus}
+               BackgroundMode {PaletteBackground}
+               FontPropagation {NoChildren}
+               PalettePropagation {NoChildren}
+}
+ComboBox {
+               Style {ReadOnly}
+               SizeLimit {10}
+               Policy {AtBottom}
+               AutoResize {FALSE}
+               MaxCount {2147483647}
+               AutoCompletion {FALSE}
+               Rect {206 113 105 24}
+               Name {spaceabovevalueunits}
+               Variable {spaceabovevalueunits}
+               MinimumSize {0 0}
+               MaximumSize {32767 32767}
+               BackgroundPixmap {}
+               UseBackgroundPixmap {FALSE}
+               AdjustSize {FALSE}
+               ReadPixmapFromData {FALSE}
+               DataVarName {}
+               DataLenName {}
+               minWidthSizeHint {TRUE}
+               minHeightSizeHint {TRUE}
+               maxWidthSizeHint {FALSE}
+               maxHeightSizeHint {TRUE}
+               FocusPolicy {StrongFocus}
+               BackgroundMode {PaletteBackground}
+               FontPropagation {AllChildren}
+               PalettePropagation {AllChildren}
+}
+Label {
+               Text {Minus}
+               Alignment {289}
+               AutoResize {FALSE}
+               Margin {-1}
+               Style {0}
+               LineWidth {1}
+               MidLineWidth {0}
+               FrameMargin {0}
+               Rect {117 172 26 24}
+               Name {aboveminuslabel}
+               MinimumSize {0 0}
+               MaximumSize {32767 32767}
+               BackgroundPixmap {}
+               UseBackgroundPixmap {FALSE}
+               AdjustSize {FALSE}
+               ReadPixmapFromData {FALSE}
+               DataVarName {}
+               DataLenName {}
+               minWidthSizeHint {TRUE}
+               minHeightSizeHint {TRUE}
+               maxWidthSizeHint {FALSE}
+               maxHeightSizeHint {FALSE}
+               FocusPolicy {NoFocus}
+               BackgroundMode {PaletteBackground}
+               FontPropagation {NoChildren}
+               PalettePropagation {NoChildren}
+}
+KDE::KRestrictedLine {
+               ValidChars {0123456789.-,}
+               Text {}
+               EchoMode {Normal}
+               MaxLength {32767}
+               FrameShown {TRUE}
+               Rect {148 172 53 24}
+               Name {spaceaboveminus}
+               Variable {spaceaboveminus}
+               Signal {[Protected]  textChanged --> spaceaboveminusChanged  (const char*)}
+               MinimumSize {0 0}
+               MaximumSize {32767 32767}
+               BackgroundPixmap {}
+               UseBackgroundPixmap {FALSE}
+               AdjustSize {FALSE}
+               ReadPixmapFromData {FALSE}
+               DataVarName {}
+               DataLenName {}
+               minWidthSizeHint {TRUE}
+               minHeightSizeHint {TRUE}
+               maxWidthSizeHint {FALSE}
+               maxHeightSizeHint {TRUE}
+               FocusPolicy {StrongFocus}
+               BackgroundMode {PaletteBase}
+               FontPropagation {NoChildren}
+               PalettePropagation {NoChildren}
+}
+ComboBox {
+               Style {ReadOnly}
+               SizeLimit {10}
+               Policy {AtBottom}
+               AutoResize {FALSE}
+               MaxCount {2147483647}
+               AutoCompletion {FALSE}
+               Rect {206 172 105 24}
+               Name {spaceaboveminusunits}
+               Variable {spaceaboveminusunits}
+               MinimumSize {0 0}
+               MaximumSize {32767 32767}
+               BackgroundPixmap {}
+               UseBackgroundPixmap {FALSE}
+               AdjustSize {FALSE}
+               ReadPixmapFromData {FALSE}
+               DataVarName {}
+               DataLenName {}
+               minWidthSizeHint {TRUE}
+               minHeightSizeHint {TRUE}
+               maxWidthSizeHint {FALSE}
+               maxHeightSizeHint {TRUE}
+               FocusPolicy {StrongFocus}
+               BackgroundMode {PaletteBackground}
+               FontPropagation {AllChildren}
+               PalettePropagation {AllChildren}
+}
+Label {
+               Text {Plus}
+               Alignment {289}
+               AutoResize {FALSE}
+               Margin {-1}
+               Style {0}
+               LineWidth {1}
+               MidLineWidth {0}
+               FrameMargin {0}
+               Rect {117 142 26 25}
+               Name {abovepluslabel }
+               MinimumSize {0 0}
+               MaximumSize {32767 32767}
+               BackgroundPixmap {}
+               UseBackgroundPixmap {FALSE}
+               AdjustSize {FALSE}
+               ReadPixmapFromData {FALSE}
+               DataVarName {}
+               DataLenName {}
+               minWidthSizeHint {TRUE}
+               minHeightSizeHint {TRUE}
+               maxWidthSizeHint {FALSE}
+               maxHeightSizeHint {FALSE}
+               FocusPolicy {NoFocus}
+               BackgroundMode {PaletteBackground}
+               FontPropagation {NoChildren}
+               PalettePropagation {NoChildren}
+}
+KDE::KRestrictedLine {
+               ValidChars {0123456789.-,}
+               Text {}
+               EchoMode {Normal}
+               MaxLength {32767}
+               FrameShown {TRUE}
+               Rect {148 142 53 25}
+               Name {spaceaboveplus}
+               Variable {spaceaboveplus}
+               Signal {[Protected]  textChanged --> spaceaboveplusChanged  (const char*)}
+               MinimumSize {0 0}
+               MaximumSize {32767 32767}
+               BackgroundPixmap {}
+               UseBackgroundPixmap {FALSE}
+               AdjustSize {FALSE}
+               ReadPixmapFromData {FALSE}
+               DataVarName {}
+               DataLenName {}
+               minWidthSizeHint {TRUE}
+               minHeightSizeHint {TRUE}
+               maxWidthSizeHint {FALSE}
+               maxHeightSizeHint {TRUE}
+               FocusPolicy {StrongFocus}
+               BackgroundMode {PaletteBase}
+               FontPropagation {NoChildren}
+               PalettePropagation {NoChildren}
+}
+ComboBox {
+               Style {ReadOnly}
+               SizeLimit {10}
+               Policy {AtBottom}
+               AutoResize {FALSE}
+               MaxCount {2147483647}
+               AutoCompletion {FALSE}
+               Rect {206 142 105 25}
+               Name {spaceaboveplusunits}
+               Variable {spaceaboveplusunits}
+               MinimumSize {0 0}
+               MaximumSize {32767 32767}
+               BackgroundPixmap {}
+               UseBackgroundPixmap {FALSE}
+               AdjustSize {FALSE}
+               ReadPixmapFromData {FALSE}
+               DataVarName {}
+               DataLenName {}
+               minWidthSizeHint {TRUE}
+               minHeightSizeHint {TRUE}
+               maxWidthSizeHint {FALSE}
+               maxHeightSizeHint {TRUE}
+               FocusPolicy {StrongFocus}
+               BackgroundMode {PaletteBackground}
+               FontPropagation {AllChildren}
+               PalettePropagation {AllChildren}
+}
+Label {
+               Text {Value}
+               Alignment {289}
+               AutoResize {FALSE}
+               Margin {-1}
+               Style {0}
+               LineWidth {1}
+               MidLineWidth {0}
+               FrameMargin {0}
+               Rect {326 113 26 24}
+               Name {valuebelowlabel}
+               MinimumSize {0 0}
+               MaximumSize {32767 32767}
+               BackgroundPixmap {}
+               UseBackgroundPixmap {FALSE}
+               AdjustSize {FALSE}
+               ReadPixmapFromData {FALSE}
+               DataVarName {}
+               DataLenName {}
+               minWidthSizeHint {TRUE}
+               minHeightSizeHint {TRUE}
+               maxWidthSizeHint {FALSE}
+               maxHeightSizeHint {FALSE}
+               FocusPolicy {NoFocus}
+               BackgroundMode {PaletteBackground}
+               FontPropagation {NoChildren}
+               PalettePropagation {NoChildren}
+}
+Label {
+               Text {Plus}
+               Alignment {289}
+               AutoResize {FALSE}
+               Margin {-1}
+               Style {0}
+               LineWidth {1}
+               MidLineWidth {0}
+               FrameMargin {0}
+               Rect {326 142 26 25}
+               Name {plusbelowlabel}
+               MinimumSize {0 0}
+               MaximumSize {32767 32767}
+               BackgroundPixmap {}
+               UseBackgroundPixmap {FALSE}
+               AdjustSize {FALSE}
+               ReadPixmapFromData {FALSE}
+               DataVarName {}
+               DataLenName {}
+               minWidthSizeHint {TRUE}
+               minHeightSizeHint {TRUE}
+               maxWidthSizeHint {FALSE}
+               maxHeightSizeHint {FALSE}
+               FocusPolicy {NoFocus}
+               BackgroundMode {PaletteBackground}
+               FontPropagation {NoChildren}
+               PalettePropagation {NoChildren}
+}
+Label {
+               Text {Minus}
+               Alignment {289}
+               AutoResize {FALSE}
+               Margin {-1}
+               Style {0}
+               LineWidth {1}
+               MidLineWidth {0}
+               FrameMargin {0}
+               Rect {326 172 26 24}
+               Name {minusbelowlabel}
+               MinimumSize {0 0}
+               MaximumSize {32767 32767}
+               BackgroundPixmap {}
+               UseBackgroundPixmap {FALSE}
+               AdjustSize {FALSE}
+               ReadPixmapFromData {FALSE}
+               DataVarName {}
+               DataLenName {}
+               minWidthSizeHint {TRUE}
+               minHeightSizeHint {TRUE}
+               maxWidthSizeHint {FALSE}
+               maxHeightSizeHint {FALSE}
+               FocusPolicy {NoFocus}
+               BackgroundMode {PaletteBackground}
+               FontPropagation {NoChildren}
+               PalettePropagation {NoChildren}
+}
+KDE::KRestrictedLine {
+               ValidChars {0123456789.-,}
+               Text {}
+               EchoMode {Normal}
+               MaxLength {32767}
+               FrameShown {TRUE}
+               Rect {357 172 53 24}
+               Name {spacebelowminus}
+               Variable {spacebelowminus}
+               Signal {[Protected]  textChanged --> spacebelowminusChanged  (const char*)}
+               MinimumSize {0 0}
+               MaximumSize {32767 32767}
+               BackgroundPixmap {}
+               UseBackgroundPixmap {FALSE}
+               AdjustSize {FALSE}
+               ReadPixmapFromData {FALSE}
+               DataVarName {}
+               DataLenName {}
+               minWidthSizeHint {TRUE}
+               minHeightSizeHint {TRUE}
+               maxWidthSizeHint {FALSE}
+               maxHeightSizeHint {TRUE}
+               FocusPolicy {StrongFocus}
+               BackgroundMode {PaletteBase}
+               FontPropagation {NoChildren}
+               PalettePropagation {NoChildren}
+}
+KDE::KRestrictedLine {
+               ValidChars {0123456789.-,}
+               Text {}
+               EchoMode {Normal}
+               MaxLength {32767}
+               FrameShown {TRUE}
+               Rect {357 142 53 25}
+               Name {spacebelowplus}
+               Variable {spacebelowplus}
+               Signal {[Protected]  textChanged --> spacebelowplusChanged  (const char*)}
+               MinimumSize {0 0}
+               MaximumSize {32767 32767}
+               BackgroundPixmap {}
+               UseBackgroundPixmap {FALSE}
+               AdjustSize {FALSE}
+               ReadPixmapFromData {FALSE}
+               DataVarName {}
+               DataLenName {}
+               minWidthSizeHint {TRUE}
+               minHeightSizeHint {TRUE}
+               maxWidthSizeHint {FALSE}
+               maxHeightSizeHint {TRUE}
+               FocusPolicy {StrongFocus}
+               BackgroundMode {PaletteBase}
+               FontPropagation {NoChildren}
+               PalettePropagation {NoChildren}
+}
+KDE::KRestrictedLine {
+               ValidChars {0123456789.-,}
+               Text {}
+               EchoMode {Normal}
+               MaxLength {32767}
+               FrameShown {TRUE}
+               Rect {357 113 53 24}
+               Name {spacebelowvalue}
+               Variable {spacebelowvalue}
+               Signal {[Protected]  textChanged --> spacebelowvalueChanged  (const char*)}
+               MinimumSize {0 0}
+               MaximumSize {32767 32767}
+               BackgroundPixmap {}
+               UseBackgroundPixmap {FALSE}
+               AdjustSize {FALSE}
+               ReadPixmapFromData {FALSE}
+               DataVarName {}
+               DataLenName {}
+               minWidthSizeHint {TRUE}
+               minHeightSizeHint {TRUE}
+               maxWidthSizeHint {FALSE}
+               maxHeightSizeHint {TRUE}
+               FocusPolicy {StrongFocus}
+               BackgroundMode {PaletteBase}
+               FontPropagation {NoChildren}
+               PalettePropagation {NoChildren}
+}
+ComboBox {
+               Style {ReadOnly}
+               SizeLimit {10}
+               Policy {AtBottom}
+               AutoResize {FALSE}
+               MaxCount {2147483647}
+               AutoCompletion {FALSE}
+               Rect {415 113 105 24}
+               Name {spacebelowvalueunits}
+               Variable {spacebelowvalueunits}
+               MinimumSize {0 0}
+               MaximumSize {32767 32767}
+               BackgroundPixmap {}
+               UseBackgroundPixmap {FALSE}
+               AdjustSize {FALSE}
+               ReadPixmapFromData {FALSE}
+               DataVarName {}
+               DataLenName {}
+               minWidthSizeHint {TRUE}
+               minHeightSizeHint {TRUE}
+               maxWidthSizeHint {FALSE}
+               maxHeightSizeHint {TRUE}
+               FocusPolicy {StrongFocus}
+               BackgroundMode {PaletteBackground}
+               FontPropagation {AllChildren}
+               PalettePropagation {AllChildren}
+}
+ComboBox {
+               Style {ReadOnly}
+               SizeLimit {10}
+               Policy {AtBottom}
+               AutoResize {FALSE}
+               MaxCount {2147483647}
+               AutoCompletion {FALSE}
+               Rect {415 142 105 25}
+               Name {spacebelowplusunits}
+               Variable {spacebelowplusunits}
+               MinimumSize {0 0}
+               MaximumSize {32767 32767}
+               BackgroundPixmap {}
+               UseBackgroundPixmap {FALSE}
+               AdjustSize {FALSE}
+               ReadPixmapFromData {FALSE}
+               DataVarName {}
+               DataLenName {}
+               minWidthSizeHint {TRUE}
+               minHeightSizeHint {TRUE}
+               maxWidthSizeHint {FALSE}
+               maxHeightSizeHint {TRUE}
+               FocusPolicy {StrongFocus}
+               BackgroundMode {PaletteBackground}
+               FontPropagation {AllChildren}
+               PalettePropagation {AllChildren}
+}
+ComboBox {
+               Style {ReadOnly}
+               SizeLimit {10}
+               Policy {AtBottom}
+               AutoResize {FALSE}
+               MaxCount {2147483647}
+               AutoCompletion {FALSE}
+               Rect {415 172 105 24}
+               Name {spacebelowminusunits}
+               Variable {spacebelowminusunits}
+               MinimumSize {0 0}
+               MaximumSize {32767 32767}
+               BackgroundPixmap {}
+               UseBackgroundPixmap {FALSE}
+               AdjustSize {FALSE}
+               ReadPixmapFromData {FALSE}
+               DataVarName {}
+               DataLenName {}
+               minWidthSizeHint {TRUE}
+               minHeightSizeHint {TRUE}
+               maxWidthSizeHint {FALSE}
+               maxHeightSizeHint {TRUE}
+               FocusPolicy {StrongFocus}
+               BackgroundMode {PaletteBackground}
+               FontPropagation {AllChildren}
+               PalettePropagation {AllChildren}
+}
+
+Box_Layout-1{
+       Direction {TopToBottom}
+       Border {5}
+       AutoBorder {5}
+       Name {}
+       Strut {0}
+       Stretch {1}
+}
+Box_Layout-1.1{
+       Direction {LeftToRight}
+       Border {5}
+       AutoBorder {5}
+       Name {}
+       Strut {0}
+       Stretch {5}
+}
+Layout_Widget-1.1.1{
+       Widget {alignment}
+       BoxStretch {1}
+       Alignment {33}
+}
+Box_Layout-1.1.1.1{
+       Direction {TopToBottom}
+       Border {5}
+       AutoBorder {5}
+       Name {}
+       Strut {0}
+       Stretch {1}
+}
+Box_Spacing-1.1.1.1.1{
+       Spacing {15}
+}
+Box_Stretch-1.1.1.1.2{
+       Stretch {1}
+}
+Layout_Widget-1.1.1.1.3{
+       Widget {block}
+       BoxStretch {1}
+       Alignment {1}
+}
+Box_Stretch-1.1.1.1.4{
+       Stretch {1}
+}
+Layout_Widget-1.1.1.1.5{
+       Widget {center}
+       BoxStretch {1}
+       Alignment {1}
+}
+Box_Stretch-1.1.1.1.6{
+       Stretch {1}
+}
+Layout_Widget-1.1.1.1.7{
+       Widget {left}
+       BoxStretch {1}
+       Alignment {1}
+}
+Box_Stretch-1.1.1.1.8{
+       Stretch {1}
+}
+Layout_Widget-1.1.1.1.9{
+       Widget {right}
+       BoxStretch {1}
+       Alignment {1}
+}
+Box_Stretch-1.1.1.1.10{
+       Stretch {1}
+}
+Layout_Widget-1.1.2{
+       Widget {SpacingAboveGroupBox}
+       BoxStretch {2}
+       Alignment {36}
+}
+Box_Layout-1.1.2.1{
+       Direction {TopToBottom}
+       Border {5}
+       AutoBorder {5}
+       Name {}
+       Strut {0}
+       Stretch {1}
+}
+Box_Spacing-1.1.2.1.1{
+       Spacing {15}
+}
+Layout_Widget-1.1.2.1.2{
+       Widget {pagebreakabove}
+       BoxStretch {1}
+       Alignment {1}
+}
+Layout_Widget-1.1.2.1.3{
+       Widget {abovelabel}
+       BoxStretch {1}
+       Alignment {1}
+}
+Layout_Widget-1.1.2.1.4{
+       Widget {spaceabove}
+       BoxStretch {1}
+       Alignment {1}
+}
+Box_Layout-1.1.2.1.5{
+       Direction {LeftToRight}
+       Border {5}
+       AutoBorder {5}
+       Name {}
+       Strut {0}
+       Stretch {1}
+}
+Layout_Widget-1.1.2.1.5.1{
+       Widget {ValueLabel}
+       BoxStretch {1}
+       Alignment {36}
+}
+Layout_Widget-1.1.2.1.5.2{
+       Widget {spaceabovevalue}
+       BoxStretch {2}
+       Alignment {36}
+}
+Layout_Widget-1.1.2.1.5.3{
+       Widget {spaceabovevalueunits}
+       BoxStretch {4}
+       Alignment {36}
+}
+Box_Layout-1.1.2.1.6{
+       Direction {LeftToRight}
+       Border {5}
+       AutoBorder {5}
+       Name {}
+       Strut {0}
+       Stretch {1}
+}
+Layout_Widget-1.1.2.1.6.1{
+       Widget {abovepluslabel }
+       BoxStretch {1}
+       Alignment {36}
+}
+Layout_Widget-1.1.2.1.6.2{
+       Widget {spaceaboveplus}
+       BoxStretch {2}
+       Alignment {36}
+}
+Layout_Widget-1.1.2.1.6.3{
+       Widget {spaceaboveplusunits}
+       BoxStretch {4}
+       Alignment {36}
+}
+Box_Layout-1.1.2.1.7{
+       Direction {LeftToRight}
+       Border {5}
+       AutoBorder {5}
+       Name {}
+       Strut {0}
+       Stretch {1}
+}
+Layout_Widget-1.1.2.1.7.1{
+       Widget {aboveminuslabel}
+       BoxStretch {1}
+       Alignment {36}
+}
+Layout_Widget-1.1.2.1.7.2{
+       Widget {spaceaboveminus}
+       BoxStretch {2}
+       Alignment {36}
+}
+Layout_Widget-1.1.2.1.7.3{
+       Widget {spaceaboveminusunits}
+       BoxStretch {4}
+       Alignment {36}
+}
+Layout_Widget-1.1.3{
+       Widget {SpacingBelowGroupBox}
+       BoxStretch {2}
+       Alignment {36}
+}
+Box_Layout-1.1.3.1{
+       Direction {TopToBottom}
+       Border {5}
+       AutoBorder {5}
+       Name {}
+       Strut {0}
+       Stretch {1}
+}
+Box_Spacing-1.1.3.1.1{
+       Spacing {15}
+}
+Layout_Widget-1.1.3.1.2{
+       Widget {pagebreakbelow}
+       BoxStretch {1}
+       Alignment {1}
+}
+Layout_Widget-1.1.3.1.3{
+       Widget {belowlabel}
+       BoxStretch {1}
+       Alignment {1}
+}
+Layout_Widget-1.1.3.1.4{
+       Widget {spacebelow}
+       BoxStretch {1}
+       Alignment {1}
+}
+Box_Layout-1.1.3.1.5{
+       Direction {LeftToRight}
+       Border {5}
+       AutoBorder {5}
+       Name {}
+       Strut {0}
+       Stretch {1}
+}
+Layout_Widget-1.1.3.1.5.1{
+       Widget {valuebelowlabel}
+       BoxStretch {1}
+       Alignment {36}
+}
+Layout_Widget-1.1.3.1.5.2{
+       Widget {spacebelowvalue}
+       BoxStretch {2}
+       Alignment {36}
+}
+Layout_Widget-1.1.3.1.5.3{
+       Widget {spacebelowvalueunits}
+       BoxStretch {4}
+       Alignment {36}
+}
+Box_Layout-1.1.3.1.6{
+       Direction {LeftToRight}
+       Border {5}
+       AutoBorder {5}
+       Name {}
+       Strut {0}
+       Stretch {1}
+}
+Layout_Widget-1.1.3.1.6.1{
+       Widget {plusbelowlabel}
+       BoxStretch {1}
+       Alignment {36}
+}
+Layout_Widget-1.1.3.1.6.2{
+       Widget {spacebelowplus}
+       BoxStretch {2}
+       Alignment {36}
+}
+Layout_Widget-1.1.3.1.6.3{
+       Widget {spacebelowplusunits}
+       BoxStretch {4}
+       Alignment {36}
+}
+Box_Layout-1.1.3.1.7{
+       Direction {LeftToRight}
+       Border {5}
+       AutoBorder {5}
+       Name {}
+       Strut {0}
+       Stretch {1}
+}
+Layout_Widget-1.1.3.1.7.1{
+       Widget {minusbelowlabel}
+       BoxStretch {1}
+       Alignment {36}
+}
+Layout_Widget-1.1.3.1.7.2{
+       Widget {spacebelowminus}
+       BoxStretch {2}
+       Alignment {36}
+}
+Layout_Widget-1.1.3.1.7.3{
+       Widget {spacebelowminusunits}
+       BoxStretch {4}
+       Alignment {36}
+}
+Box_Layout-1.2{
+       Direction {LeftToRight}
+       Border {5}
+       AutoBorder {5}
+       Name {}
+       Strut {0}
+       Stretch {2}
+}
+Box_Layout-1.2.1{
+       Direction {TopToBottom}
+       Border {5}
+       AutoBorder {5}
+       Name {}
+       Strut {0}
+       Stretch {1}
+}
+Layout_Widget-1.2.1.1{
+       Widget {lineabove}
+       BoxStretch {1}
+       Alignment {1}
+}
+Layout_Widget-1.2.1.2{
+       Widget {linebelow}
+       BoxStretch {1}
+       Alignment {1}
+}
+Layout_Widget-1.2.1.3{
+       Widget {noindent}
+       BoxStretch {1}
+       Alignment {1}
+}
+Box_Layout-1.2.2{
+       Direction {LeftToRight}
+       Border {5}
+       AutoBorder {5}
+       Name {}
+       Strut {0}
+       Stretch {1}
+}
+Layout_Widget-1.2.2.1{
+       Widget {labelwidthlabel}
+       BoxStretch {1}
+       Alignment {36}
+}
+Layout_Widget-1.2.2.2{
+       Widget {labelwidth}
+       BoxStretch {1}
+       Alignment {36}
+}
+}
diff --git a/src/frontends/kde/dlg/print.dlg b/src/frontends/kde/dlg/print.dlg
new file mode 100644 (file)
index 0000000..281b7f9
--- /dev/null
@@ -0,0 +1,944 @@
+DlgEdit:v1.2:Dialog:
+Dialog {
+       ClassHeader {printdlg.h}
+       ClassSource {printdlg.C}
+       ClassName {PrintDialog}
+       DataHeader {printdlgdata.h}
+       DataSource {printdlgdata.C}
+       DataName {PrintDialogData}
+       WindowBaseClass {QWidget}
+       UseGetText {TRUE}
+       WindowFlags {0}
+}
+WidgetLayout {
+InitialPos {-1 -1}
+Size {500 330}
+MinSize {0 0}
+MaxSize {32767 32767}
+Grid {5}
+
+GroupBox {
+               Title {Pages}
+               Alignment {Left}
+               Style {49}
+               LineWidth {1}
+               MidLineWidth {0}
+               FrameMargin {0}
+               Rect {5 5 162 270}
+               Name {pagesGroupBox}
+               Variable {pagesGroupBox}
+               MinimumSize {15 47}
+               MaximumSize {32767 32767}
+               BackgroundPixmap {}
+               UseBackgroundPixmap {FALSE}
+               AdjustSize {FALSE}
+               ReadPixmapFromData {FALSE}
+               DataVarName {}
+               DataLenName {}
+               minWidthSizeHint {FALSE}
+               minHeightSizeHint {FALSE}
+               maxWidthSizeHint {FALSE}
+               maxHeightSizeHint {FALSE}
+               FocusPolicy {NoFocus}
+               BackgroundMode {PaletteBackground}
+               FontPropagation {NoChildren}
+               PalettePropagation {NoChildren}
+}
+ButtonGroup {
+               Exclusive {TRUE}
+               Title {}
+               Alignment {Left}
+               Style {0}
+               LineWidth {1}
+               MidLineWidth {0}
+               FrameMargin {0}
+               Rect {10 22 152 142}
+               Name {pagesRadioGroup}
+               Variable {pagesRadioGroup}
+               MinimumSize {10 20}
+               MaximumSize {32767 32767}
+               BackgroundPixmap {}
+               UseBackgroundPixmap {FALSE}
+               AdjustSize {FALSE}
+               ReadPixmapFromData {FALSE}
+               DataVarName {}
+               DataLenName {}
+               minWidthSizeHint {FALSE}
+               minHeightSizeHint {FALSE}
+               maxWidthSizeHint {FALSE}
+               maxHeightSizeHint {FALSE}
+               FocusPolicy {NoFocus}
+               BackgroundMode {PaletteBackground}
+               FontPropagation {NoChildren}
+               PalettePropagation {NoChildren}
+}
+GroupBox {
+               Title {Copies}
+               Alignment {Left}
+               Style {49}
+               LineWidth {1}
+               MidLineWidth {0}
+               FrameMargin {0}
+               Rect {172 5 323 66}
+               Name {copies}
+               Variable {copies}
+               MinimumSize {30 10}
+               MaximumSize {32767 32767}
+               BackgroundPixmap {}
+               UseBackgroundPixmap {FALSE}
+               AdjustSize {FALSE}
+               ReadPixmapFromData {FALSE}
+               DataVarName {}
+               DataLenName {}
+               minWidthSizeHint {FALSE}
+               minHeightSizeHint {FALSE}
+               maxWidthSizeHint {FALSE}
+               maxHeightSizeHint {FALSE}
+               FocusPolicy {NoFocus}
+               BackgroundMode {PaletteBackground}
+               FontPropagation {NoChildren}
+               PalettePropagation {NoChildren}
+}
+GroupBox {
+               Title {Print to}
+               Alignment {Left}
+               Style {49}
+               LineWidth {1}
+               MidLineWidth {0}
+               FrameMargin {0}
+               Rect {172 76 323 199}
+               Name {printToGroupBox}
+               Variable {printToGroupBox}
+               MinimumSize {25 30}
+               MaximumSize {32767 32767}
+               BackgroundPixmap {}
+               UseBackgroundPixmap {FALSE}
+               AdjustSize {FALSE}
+               ReadPixmapFromData {FALSE}
+               DataVarName {}
+               DataLenName {}
+               minWidthSizeHint {FALSE}
+               minHeightSizeHint {FALSE}
+               maxWidthSizeHint {FALSE}
+               maxHeightSizeHint {FALSE}
+               FocusPolicy {NoFocus}
+               BackgroundMode {PaletteBackground}
+               FontPropagation {NoChildren}
+               PalettePropagation {NoChildren}
+}
+ButtonGroup {
+               Exclusive {TRUE}
+               Title {}
+               Alignment {Left}
+               Style {0}
+               LineWidth {1}
+               MidLineWidth {0}
+               FrameMargin {0}
+               Rect {184 115 152 83}
+               Name {printToRadioGroup}
+               Variable {printToRadioGroup}
+               MinimumSize {10 15}
+               MaximumSize {32767 32767}
+               BackgroundPixmap {}
+               UseBackgroundPixmap {FALSE}
+               AdjustSize {FALSE}
+               ReadPixmapFromData {FALSE}
+               DataVarName {}
+               DataLenName {}
+               minWidthSizeHint {FALSE}
+               minHeightSizeHint {FALSE}
+               maxWidthSizeHint {FALSE}
+               maxHeightSizeHint {FALSE}
+               FocusPolicy {NoFocus}
+               BackgroundMode {PaletteBackground}
+               FontPropagation {NoChildren}
+               PalettePropagation {NoChildren}
+}
+PushButton {
+               ToggleButton {FALSE}
+               Default {FALSE}
+               AutoDefault {FALSE}
+               IsMenuButton {FALSE}
+               Text {&Print}
+               AutoRepeat {FALSE}
+               AutoResize {FALSE}
+               Rect {86 280 81 45}
+               Name {print}
+               Variable {print}
+               Signal {[Protected]  clicked --> clickedPrint  ()}
+               MinimumSize {0 0}
+               MaximumSize {32767 32767}
+               BackgroundPixmap {}
+               UseBackgroundPixmap {FALSE}
+               AdjustSize {FALSE}
+               ReadPixmapFromData {FALSE}
+               DataVarName {}
+               DataLenName {}
+               minWidthSizeHint {TRUE}
+               minHeightSizeHint {TRUE}
+               maxWidthSizeHint {TRUE}
+               maxHeightSizeHint {TRUE}
+               FocusPolicy {TabFocus}
+               BackgroundMode {PaletteBackground}
+               FontPropagation {NoChildren}
+               PalettePropagation {NoChildren}
+}
+PushButton {
+               ToggleButton {FALSE}
+               Default {FALSE}
+               AutoDefault {FALSE}
+               IsMenuButton {FALSE}
+               Text {&Cancel}
+               AutoRepeat {FALSE}
+               AutoResize {FALSE}
+               Rect {333 280 81 45}
+               Name {cancel}
+               Variable {cancel}
+               Signal {[Protected]  clicked --> clickedCancel  ()}
+               MinimumSize {0 0}
+               MaximumSize {32767 32767}
+               BackgroundPixmap {}
+               UseBackgroundPixmap {FALSE}
+               AdjustSize {FALSE}
+               ReadPixmapFromData {FALSE}
+               DataVarName {}
+               DataLenName {}
+               minWidthSizeHint {TRUE}
+               minHeightSizeHint {TRUE}
+               maxWidthSizeHint {TRUE}
+               maxHeightSizeHint {TRUE}
+               FocusPolicy {TabFocus}
+               BackgroundMode {PaletteBackground}
+               FontPropagation {NoChildren}
+               PalettePropagation {NoChildren}
+}
+RadioButton {
+               Checked {FALSE}
+               Text {&All pages}
+               AutoRepeat {FALSE}
+               AutoResize {FALSE}
+               Rect {15 42 142 34}
+               Name {allpages}
+               Variable {allpages}
+               MinimumSize {80 20}
+               MaximumSize {32767 32767}
+               BackgroundPixmap {}
+               UseBackgroundPixmap {FALSE}
+               AdjustSize {FALSE}
+               ReadPixmapFromData {FALSE}
+               DataVarName {}
+               DataLenName {}
+               minWidthSizeHint {TRUE}
+               minHeightSizeHint {TRUE}
+               maxWidthSizeHint {TRUE}
+               maxHeightSizeHint {TRUE}
+               FocusPolicy {TabFocus}
+               BackgroundMode {PaletteBackground}
+               FontPropagation {NoChildren}
+               PalettePropagation {NoChildren}
+}
+RadioButton {
+               Checked {FALSE}
+               Text {&Even pages}
+               AutoRepeat {FALSE}
+               AutoResize {FALSE}
+               Rect {15 130 142 14}
+               Name {evenpages}
+               Variable {evenpages}
+               MinimumSize {0 0}
+               MaximumSize {32767 32767}
+               BackgroundPixmap {}
+               UseBackgroundPixmap {FALSE}
+               AdjustSize {FALSE}
+               ReadPixmapFromData {FALSE}
+               DataVarName {}
+               DataLenName {}
+               minWidthSizeHint {TRUE}
+               minHeightSizeHint {TRUE}
+               maxWidthSizeHint {TRUE}
+               maxHeightSizeHint {TRUE}
+               FocusPolicy {TabFocus}
+               BackgroundMode {PaletteBackground}
+               FontPropagation {NoChildren}
+               PalettePropagation {NoChildren}
+}
+KDE::KIntLineEdit {
+               Text {}
+               EchoMode {Normal}
+               MaxLength {32767}
+               FrameShown {TRUE}
+               Rect {113 169 49 30}
+               Name {from}
+               Variable {from}
+               MinimumSize {0 0}
+               MaximumSize {32767 32767}
+               BackgroundPixmap {}
+               UseBackgroundPixmap {FALSE}
+               AdjustSize {FALSE}
+               ReadPixmapFromData {FALSE}
+               DataVarName {}
+               DataLenName {}
+               minWidthSizeHint {TRUE}
+               minHeightSizeHint {TRUE}
+               maxWidthSizeHint {FALSE}
+               maxHeightSizeHint {TRUE}
+               FocusPolicy {StrongFocus}
+               BackgroundMode {PaletteBase}
+               FontPropagation {NoChildren}
+               PalettePropagation {NoChildren}
+}
+Label {
+               Text {From}
+               Alignment {289}
+               AutoResize {FALSE}
+               Margin {-1}
+               Style {0}
+               LineWidth {1}
+               MidLineWidth {0}
+               FrameMargin {0}
+               Rect {10 169 98 30}
+               Name {fromLabel}
+               Variable {fromLabel}
+               MinimumSize {0 0}
+               MaximumSize {32767 32767}
+               BackgroundPixmap {}
+               UseBackgroundPixmap {FALSE}
+               AdjustSize {FALSE}
+               ReadPixmapFromData {FALSE}
+               DataVarName {}
+               DataLenName {}
+               minWidthSizeHint {TRUE}
+               minHeightSizeHint {TRUE}
+               maxWidthSizeHint {TRUE}
+               maxHeightSizeHint {TRUE}
+               FocusPolicy {NoFocus}
+               BackgroundMode {PaletteBackground}
+               FontPropagation {NoChildren}
+               PalettePropagation {NoChildren}
+}
+Label {
+               Text {To}
+               Alignment {289}
+               AutoResize {FALSE}
+               Margin {-1}
+               Style {0}
+               LineWidth {1}
+               MidLineWidth {0}
+               FrameMargin {0}
+               Rect {10 204 98 31}
+               Name {toLabel}
+               Variable {toLabel}
+               MinimumSize {0 0}
+               MaximumSize {32767 32767}
+               BackgroundPixmap {}
+               UseBackgroundPixmap {FALSE}
+               AdjustSize {FALSE}
+               ReadPixmapFromData {FALSE}
+               DataVarName {}
+               DataLenName {}
+               minWidthSizeHint {TRUE}
+               minHeightSizeHint {TRUE}
+               maxWidthSizeHint {TRUE}
+               maxHeightSizeHint {TRUE}
+               FocusPolicy {NoFocus}
+               BackgroundMode {PaletteBackground}
+               FontPropagation {NoChildren}
+               PalettePropagation {NoChildren}
+}
+RadioButton {
+               Checked {FALSE}
+               Text {&Odd pages}
+               AutoRepeat {FALSE}
+               AutoResize {FALSE}
+               Rect {15 96 142 14}
+               Name {oddpages}
+               Variable {oddpages}
+               MinimumSize {0 0}
+               MaximumSize {32767 32767}
+               BackgroundPixmap {}
+               UseBackgroundPixmap {FALSE}
+               AdjustSize {FALSE}
+               ReadPixmapFromData {FALSE}
+               DataVarName {}
+               DataLenName {}
+               minWidthSizeHint {TRUE}
+               minHeightSizeHint {TRUE}
+               maxWidthSizeHint {TRUE}
+               maxHeightSizeHint {TRUE}
+               FocusPolicy {TabFocus}
+               BackgroundMode {PaletteBackground}
+               FontPropagation {NoChildren}
+               PalettePropagation {NoChildren}
+}
+RadioButton {
+               Checked {FALSE}
+               Text {&Printer}
+               AutoRepeat {FALSE}
+               AutoResize {FALSE}
+               Rect {189 120 142 23}
+               Name {toprinter}
+               Variable {toprinter}
+               MinimumSize {0 0}
+               MaximumSize {32767 32767}
+               BackgroundPixmap {}
+               UseBackgroundPixmap {FALSE}
+               AdjustSize {FALSE}
+               ReadPixmapFromData {FALSE}
+               DataVarName {}
+               DataLenName {}
+               minWidthSizeHint {TRUE}
+               minHeightSizeHint {TRUE}
+               maxWidthSizeHint {TRUE}
+               maxHeightSizeHint {TRUE}
+               FocusPolicy {TabFocus}
+               BackgroundMode {PaletteBackground}
+               FontPropagation {NoChildren}
+               PalettePropagation {NoChildren}
+}
+RadioButton {
+               Checked {FALSE}
+               Text {&File}
+               AutoRepeat {FALSE}
+               AutoResize {FALSE}
+               Rect {189 170 142 23}
+               Name {tofile}
+               Variable {tofile}
+               MinimumSize {0 0}
+               MaximumSize {32767 32767}
+               BackgroundPixmap {}
+               UseBackgroundPixmap {FALSE}
+               AdjustSize {FALSE}
+               ReadPixmapFromData {FALSE}
+               DataVarName {}
+               DataLenName {}
+               minWidthSizeHint {TRUE}
+               minHeightSizeHint {TRUE}
+               maxWidthSizeHint {TRUE}
+               maxHeightSizeHint {TRUE}
+               FocusPolicy {TabFocus}
+               BackgroundMode {PaletteBackground}
+               FontPropagation {NoChildren}
+               PalettePropagation {NoChildren}
+}
+LineEdit {
+               Text {}
+               EchoMode {Normal}
+               MaxLength {32767}
+               FrameShown {TRUE}
+               Rect {341 115 142 26}
+               Name {printername}
+               Variable {printername}
+               MinimumSize {0 0}
+               MaximumSize {32767 32767}
+               BackgroundPixmap {}
+               UseBackgroundPixmap {FALSE}
+               AdjustSize {FALSE}
+               ReadPixmapFromData {FALSE}
+               DataVarName {}
+               DataLenName {}
+               minWidthSizeHint {TRUE}
+               minHeightSizeHint {TRUE}
+               maxWidthSizeHint {FALSE}
+               maxHeightSizeHint {TRUE}
+               FocusPolicy {StrongFocus}
+               BackgroundMode {PaletteBase}
+               FontPropagation {NoChildren}
+               PalettePropagation {NoChildren}
+}
+CheckBox {
+               Checked {FALSE}
+               Text {&Reverse order}
+               AutoRepeat {FALSE}
+               AutoResize {TRUE}
+               Rect {10 240 152 30}
+               Name {reverse}
+               Variable {reverse}
+               MinimumSize {0 0}
+               MaximumSize {32767 32767}
+               BackgroundPixmap {}
+               UseBackgroundPixmap {FALSE}
+               AdjustSize {FALSE}
+               ReadPixmapFromData {FALSE}
+               DataVarName {}
+               DataLenName {}
+               minWidthSizeHint {TRUE}
+               minHeightSizeHint {TRUE}
+               maxWidthSizeHint {TRUE}
+               maxHeightSizeHint {TRUE}
+               FocusPolicy {TabFocus}
+               BackgroundMode {PaletteBackground}
+               FontPropagation {NoChildren}
+               PalettePropagation {NoChildren}
+}
+LineEdit {
+               Text {}
+               EchoMode {Normal}
+               MaxLength {32767}
+               FrameShown {TRUE}
+               Rect {341 172 142 26}
+               Name {filename}
+               Variable {filename}
+               MinimumSize {0 0}
+               MaximumSize {32767 32767}
+               BackgroundPixmap {}
+               UseBackgroundPixmap {FALSE}
+               AdjustSize {FALSE}
+               ReadPixmapFromData {FALSE}
+               DataVarName {}
+               DataLenName {}
+               minWidthSizeHint {TRUE}
+               minHeightSizeHint {TRUE}
+               maxWidthSizeHint {FALSE}
+               maxHeightSizeHint {TRUE}
+               FocusPolicy {StrongFocus}
+               BackgroundMode {PaletteBase}
+               FontPropagation {NoChildren}
+               PalettePropagation {NoChildren}
+}
+CheckBox {
+               Checked {FALSE}
+               Text {Co&llate}
+               AutoRepeat {FALSE}
+               AutoResize {TRUE}
+               Rect {440 17 50 46}
+               Name {sort}
+               Variable {sort}
+               MinimumSize {0 0}
+               MaximumSize {32767 32767}
+               BackgroundPixmap {}
+               UseBackgroundPixmap {FALSE}
+               AdjustSize {FALSE}
+               ReadPixmapFromData {FALSE}
+               DataVarName {}
+               DataLenName {}
+               minWidthSizeHint {TRUE}
+               minHeightSizeHint {TRUE}
+               maxWidthSizeHint {TRUE}
+               maxHeightSizeHint {TRUE}
+               FocusPolicy {TabFocus}
+               BackgroundMode {PaletteBackground}
+               FontPropagation {NoChildren}
+               PalettePropagation {NoChildren}
+}
+PushButton {
+               ToggleButton {FALSE}
+               Default {FALSE}
+               AutoDefault {FALSE}
+               IsMenuButton {FALSE}
+               Text {&Browse}
+               AutoRepeat {FALSE}
+               AutoResize {FALSE}
+               Rect {330 225 153 23}
+               Name {browse}
+               Variable {browse}
+               Signal {[Protected]  clicked --> clickedBrowse  ()}
+               MinimumSize {0 0}
+               MaximumSize {32767 32767}
+               BackgroundPixmap {}
+               UseBackgroundPixmap {FALSE}
+               AdjustSize {FALSE}
+               ReadPixmapFromData {FALSE}
+               DataVarName {}
+               DataLenName {}
+               minWidthSizeHint {TRUE}
+               minHeightSizeHint {TRUE}
+               maxWidthSizeHint {TRUE}
+               maxHeightSizeHint {TRUE}
+               FocusPolicy {TabFocus}
+               BackgroundMode {PaletteBackground}
+               FontPropagation {NoChildren}
+               PalettePropagation {NoChildren}
+}
+KDE::KIntLineEdit {
+               Text {}
+               EchoMode {Normal}
+               MaxLength {32767}
+               FrameShown {TRUE}
+               Rect {334 17 50 46}
+               Name {count}
+               Variable {count}
+               Signal {[Protected]  textChanged --> changedCount  (const char*)}
+               MinimumSize {0 0}
+               MaximumSize {32767 32767}
+               BackgroundPixmap {}
+               UseBackgroundPixmap {FALSE}
+               AdjustSize {FALSE}
+               ReadPixmapFromData {FALSE}
+               DataVarName {}
+               DataLenName {}
+               minWidthSizeHint {TRUE}
+               minHeightSizeHint {TRUE}
+               maxWidthSizeHint {FALSE}
+               maxHeightSizeHint {TRUE}
+               FocusPolicy {StrongFocus}
+               BackgroundMode {PaletteBase}
+               FontPropagation {NoChildren}
+               PalettePropagation {NoChildren}
+}
+Label {
+               Text {Count}
+               Alignment {289}
+               AutoResize {FALSE}
+               Margin {-1}
+               Style {0}
+               LineWidth {1}
+               MidLineWidth {0}
+               FrameMargin {0}
+               Rect {228 17 50 46}
+               Name {countLabel}
+               Variable {countLabel}
+               MinimumSize {0 0}
+               MaximumSize {32767 32767}
+               BackgroundPixmap {}
+               UseBackgroundPixmap {FALSE}
+               AdjustSize {FALSE}
+               ReadPixmapFromData {FALSE}
+               DataVarName {}
+               DataLenName {}
+               minWidthSizeHint {TRUE}
+               minHeightSizeHint {TRUE}
+               maxWidthSizeHint {TRUE}
+               maxHeightSizeHint {TRUE}
+               FocusPolicy {NoFocus}
+               BackgroundMode {PaletteBackground}
+               FontPropagation {NoChildren}
+               PalettePropagation {NoChildren}
+}
+KDE::KIntLineEdit {
+               Text {}
+               EchoMode {Normal}
+               MaxLength {32767}
+               FrameShown {TRUE}
+               Rect {113 204 49 31}
+               Name {to}
+               Variable {to}
+               MinimumSize {0 0}
+               MaximumSize {32767 32767}
+               BackgroundPixmap {}
+               UseBackgroundPixmap {FALSE}
+               AdjustSize {FALSE}
+               ReadPixmapFromData {FALSE}
+               DataVarName {}
+               DataLenName {}
+               minWidthSizeHint {TRUE}
+               minHeightSizeHint {TRUE}
+               maxWidthSizeHint {FALSE}
+               maxHeightSizeHint {TRUE}
+               FocusPolicy {StrongFocus}
+               BackgroundMode {PaletteBase}
+               FontPropagation {NoChildren}
+               PalettePropagation {NoChildren}
+}
+
+Grid_Layout-1{
+       Border {5}
+       AutoBorder {5}
+       Name {}
+       ColumnInfo {5 1}
+       BoxStretch {1}
+}
+Grid_Row-1.1{
+       Stretch {5}
+       Spacing {0}
+}
+Box_Layout-1.1.1{
+       Direction {LeftToRight}
+       Border {5}
+       AutoBorder {5}
+       Name {}
+       Strut {0}
+       Stretch {1}
+}
+Layout_Widget-1.1.1.1{
+       Widget {pagesGroupBox}
+       BoxStretch {1}
+       Alignment {36}
+}
+Box_Layout-1.1.1.1.1{
+       Direction {TopToBottom}
+       Border {5}
+       AutoBorder {5}
+       Name {}
+       Strut {0}
+       Stretch {1}
+}
+Box_Spacing-1.1.1.1.1.1{
+       Spacing {12}
+}
+Layout_Widget-1.1.1.1.1.2{
+       Widget {pagesRadioGroup}
+       BoxStretch {4}
+       Alignment {33}
+}
+Box_Layout-1.1.1.1.1.2.1{
+       Direction {TopToBottom}
+       Border {5}
+       AutoBorder {5}
+       Name {}
+       Strut {0}
+       Stretch {2}
+}
+Box_Stretch-1.1.1.1.1.2.1.1{
+       Stretch {1}
+}
+Layout_Widget-1.1.1.1.1.2.1.2{
+       Widget {allpages}
+       BoxStretch {1}
+       Alignment {1}
+}
+Box_Stretch-1.1.1.1.1.2.1.3{
+       Stretch {1}
+}
+Layout_Widget-1.1.1.1.1.2.1.4{
+       Widget {oddpages}
+       BoxStretch {1}
+       Alignment {1}
+}
+Box_Stretch-1.1.1.1.1.2.1.5{
+       Stretch {1}
+}
+Layout_Widget-1.1.1.1.1.2.1.6{
+       Widget {evenpages}
+       BoxStretch {1}
+       Alignment {1}
+}
+Box_Stretch-1.1.1.1.1.2.1.7{
+       Stretch {1}
+}
+Box_Layout-1.1.1.1.1.3{
+       Direction {LeftToRight}
+       Border {5}
+       AutoBorder {5}
+       Name {}
+       Strut {0}
+       Stretch {1}
+}
+Layout_Widget-1.1.1.1.1.3.1{
+       Widget {fromLabel}
+       BoxStretch {2}
+       Alignment {36}
+}
+Layout_Widget-1.1.1.1.1.3.2{
+       Widget {from}
+       BoxStretch {1}
+       Alignment {36}
+}
+Box_Layout-1.1.1.1.1.4{
+       Direction {LeftToRight}
+       Border {5}
+       AutoBorder {5}
+       Name {}
+       Strut {0}
+       Stretch {1}
+}
+Layout_Widget-1.1.1.1.1.4.1{
+       Widget {toLabel}
+       BoxStretch {2}
+       Alignment {36}
+}
+Layout_Widget-1.1.1.1.1.4.2{
+       Widget {to}
+       BoxStretch {1}
+       Alignment {36}
+}
+Layout_Widget-1.1.1.1.1.5{
+       Widget {reverse}
+       BoxStretch {1}
+       Alignment {36}
+}
+Box_Layout-1.1.1.2{
+       Direction {TopToBottom}
+       Border {5}
+       AutoBorder {5}
+       Name {}
+       Strut {0}
+       Stretch {2}
+}
+Layout_Widget-1.1.1.2.1{
+       Widget {copies}
+       BoxStretch {1}
+       Alignment {36}
+}
+Box_Layout-1.1.1.2.1.1{
+       Direction {TopToBottom}
+       Border {5}
+       AutoBorder {5}
+       Name {}
+       Strut {0}
+       Stretch {1}
+}
+Box_Spacing-1.1.1.2.1.1.1{
+       Spacing {7}
+}
+Box_Layout-1.1.1.2.1.1.2{
+       Direction {LeftToRight}
+       Border {5}
+       AutoBorder {5}
+       Name {}
+       Strut {0}
+       Stretch {1}
+}
+Box_Stretch-1.1.1.2.1.1.2.1{
+       Stretch {1}
+}
+Layout_Widget-1.1.1.2.1.1.2.2{
+       Widget {countLabel}
+       BoxStretch {1}
+       Alignment {36}
+}
+Box_Stretch-1.1.1.2.1.1.2.3{
+       Stretch {1}
+}
+Layout_Widget-1.1.1.2.1.1.2.4{
+       Widget {count}
+       BoxStretch {1}
+       Alignment {36}
+}
+Box_Stretch-1.1.1.2.1.1.2.5{
+       Stretch {1}
+}
+Layout_Widget-1.1.1.2.1.1.2.6{
+       Widget {sort}
+       BoxStretch {1}
+       Alignment {36}
+}
+Box_Spacing-1.1.1.2.1.1.3{
+       Spacing {3}
+}
+Layout_Widget-1.1.1.2.2{
+       Widget {printToGroupBox}
+       BoxStretch {3}
+       Alignment {36}
+}
+Box_Layout-1.1.1.2.2.1{
+       Direction {TopToBottom}
+       Border {5}
+       AutoBorder {5}
+       Name {}
+       Strut {0}
+       Stretch {1}
+}
+Box_Spacing-1.1.1.2.2.1.1{
+       Spacing {12}
+}
+Box_Stretch-1.1.1.2.2.1.2{
+       Stretch {1}
+}
+Box_Layout-1.1.1.2.2.1.3{
+       Direction {LeftToRight}
+       Border {5}
+       AutoBorder {5}
+       Name {}
+       Strut {0}
+       Stretch {3}
+}
+Box_Spacing-1.1.1.2.2.1.3.1{
+       Spacing {7}
+}
+Layout_Widget-1.1.1.2.2.1.3.2{
+       Widget {printToRadioGroup}
+       BoxStretch {1}
+       Alignment {33}
+}
+Box_Layout-1.1.1.2.2.1.3.2.1{
+       Direction {TopToBottom}
+       Border {5}
+       AutoBorder {5}
+       Name {}
+       Strut {0}
+       Stretch {1}
+}
+Layout_Widget-1.1.1.2.2.1.3.2.1.1{
+       Widget {toprinter}
+       BoxStretch {1}
+       Alignment {1}
+}
+Box_Stretch-1.1.1.2.2.1.3.2.1.2{
+       Stretch {1}
+}
+Layout_Widget-1.1.1.2.2.1.3.2.1.3{
+       Widget {tofile}
+       BoxStretch {1}
+       Alignment {1}
+}
+Box_Layout-1.1.1.2.2.1.3.3{
+       Direction {TopToBottom}
+       Border {5}
+       AutoBorder {5}
+       Name {}
+       Strut {0}
+       Stretch {1}
+}
+Layout_Widget-1.1.1.2.2.1.3.3.1{
+       Widget {printername}
+       BoxStretch {1}
+       Alignment {36}
+}
+Box_Stretch-1.1.1.2.2.1.3.3.2{
+       Stretch {1}
+}
+Layout_Widget-1.1.1.2.2.1.3.3.3{
+       Widget {filename}
+       BoxStretch {1}
+       Alignment {36}
+}
+Box_Spacing-1.1.1.2.2.1.3.4{
+       Spacing {7}
+}
+Box_Stretch-1.1.1.2.2.1.4{
+       Stretch {1}
+}
+Box_Layout-1.1.1.2.2.1.5{
+       Direction {LeftToRight}
+       Border {5}
+       AutoBorder {5}
+       Name {}
+       Strut {0}
+       Stretch {1}
+}
+Box_Stretch-1.1.1.2.2.1.5.1{
+       Stretch {1}
+}
+Layout_Widget-1.1.1.2.2.1.5.2{
+       Widget {browse}
+       BoxStretch {1}
+       Alignment {36}
+}
+Box_Spacing-1.1.1.2.2.1.5.3{
+       Spacing {7}
+}
+Box_Stretch-1.1.1.2.2.1.6{
+       Stretch {1}
+}
+Grid_Row-1.2{
+       Stretch {1}
+       Spacing {0}
+}
+Box_Layout-1.2.1{
+       Direction {LeftToRight}
+       Border {5}
+       AutoBorder {5}
+       Name {}
+       Strut {0}
+       Stretch {1}
+}
+Box_Stretch-1.2.1.1{
+       Stretch {1}
+}
+Layout_Widget-1.2.1.2{
+       Widget {print}
+       BoxStretch {1}
+       Alignment {36}
+}
+Box_Stretch-1.2.1.3{
+       Stretch {2}
+}
+Layout_Widget-1.2.1.4{
+       Widget {cancel}
+       BoxStretch {1}
+       Alignment {36}
+}
+Box_Stretch-1.2.1.5{
+       Stretch {1}
+}
+}
diff --git a/src/frontends/kde/formcitationdialog.C b/src/frontends/kde/formcitationdialog.C
deleted file mode 100644 (file)
index 5002b09..0000000
+++ /dev/null
@@ -1,173 +0,0 @@
-/*
- * formcitationdialog.C
- * (C) 2000 LyX Team
- * John Levon, moz@compsoc.man.ac.uk
- */
-
-/***************************************************************************
- *                                                                         *
- *   This program is free software; you can redistribute it and/or modify  *
- *   it under the terms of the GNU General Public License as published by  *
- *   the Free Software Foundation; either version 2 of the License, or     *
- *   (at your option) any later version.                                   *
- *                                                                         *
- ***************************************************************************/
-
-#include "formcitationdialog.h"
-
-FormCitationDialog::FormCitationDialog(FormCitation *form, QWidget *parent, const char *name, bool, WFlags)
-       : QDialog(parent,name,false), form_(form)
-{
-       setCaption(name);
-       setMinimumWidth(500);
-
-       // widgets
-
-       labelchosen = new QLabel(this);
-       labelchosen->setText(_("Selected keys"));
-       labelchosen->setMinimumSize(labelchosen->sizeHint());
-       labelchosen->setMaximumSize(labelchosen->sizeHint());
-
-       chosen = new QListBox(this);
-
-       labelkeys = new QLabel(this);
-       labelkeys->setText(_("Available keys"));
-       labelkeys->setMinimumSize(labelkeys->sizeHint());
-       labelkeys->setMaximumSize(labelkeys->sizeHint());
-
-       keys = new QListBox(this);
-
-       labelentry = new QLabel(this);
-       labelentry->setText(_("Reference entry"));
-       labelentry->setMinimumSize(labelentry->sizeHint());
-       labelentry->setMaximumSize(labelentry->sizeHint());
-
-       after = new QLineEdit(this);
-       after->setMinimumSize(after->sizeHint());
-
-       entry = new QMultiLineEdit(this);
-       entry->setReadOnly(true);
-       entry->setFixedVisibleLines(2); 
-
-       labelafter = new QLabel(this);
-       labelafter->setText(_("Text after"));
-       labelafter->setMargin(5);
-       labelafter->setMinimumSize(labelafter->sizeHint());
-       labelafter->setMaximumSize(labelafter->sizeHint());
-
-       /* FIXME: icons */
-       add = new QPushButton(this); 
-       add->setText(_("&Add"));
-       add->setMinimumSize(add->sizeHint());
-       add->setMaximumSize(add->sizeHint());
-       up = new QPushButton(this); 
-       up->setText(_("&Up"));
-       up->setMinimumSize(up->sizeHint());
-       up->setMaximumSize(up->sizeHint());
-       down = new QPushButton(this); 
-       down->setText(_("&Down"));
-       down->setMinimumSize(down->sizeHint());
-       down->setMaximumSize(down->sizeHint());
-       remove = new QPushButton(this); 
-       remove->setText(_("&Remove"));
-       remove->setMinimumSize(remove->sizeHint());
-       remove->setMaximumSize(remove->sizeHint());
-
-       buttonOk = new QPushButton(this);
-       buttonOk->setText(_("&OK"));
-       buttonOk->setDefault(true);
-       buttonOk->setMinimumSize(buttonOk->sizeHint());
-       buttonOk->setMaximumSize(buttonOk->sizeHint());
-
-       buttonCancel = new QPushButton(this);
-       buttonCancel->setText(_("&Cancel"));
-       buttonCancel->setMinimumSize(buttonCancel->sizeHint());
-       buttonCancel->setMaximumSize(buttonCancel->sizeHint());
-
-       // tooltips
-
-       QToolTip::add(chosen,_("Keys currently selected"));
-       QToolTip::add(keys,_("Reference keys available"));
-       QToolTip::add(entry,_("Reference entry text"));
-       QToolTip::add(after,_("Text to place after citation"));
-
-       // layouts
-
-       topLayout = new QHBoxLayout(this,10);
-
-       layout = new QVBoxLayout();
-       topLayout->addLayout(layout);
-       layout->addSpacing(10);
-
-       browserLayout = new QHBoxLayout();
-       layout->addLayout(browserLayout,1);
-
-       chosenLayout = new QVBoxLayout();
-       browserLayout->addLayout(chosenLayout,1); 
-       iconLayout = new QVBoxLayout();
-       browserLayout->addLayout(iconLayout,0);
-       keysLayout = new QVBoxLayout();
-       browserLayout->addLayout(keysLayout,1);
-       chosenLayout->addWidget(labelchosen, 0, AlignLeft);
-       chosenLayout->addWidget(chosen, 1);
-       iconLayout->addStretch(1);
-       iconLayout->addWidget(add,1);
-       iconLayout->addStretch(1);
-       iconLayout->addWidget(up,1);
-       iconLayout->addStretch(1);
-       iconLayout->addWidget(down,1);
-       iconLayout->addStretch(1);
-       iconLayout->addWidget(remove,1);
-       iconLayout->addStretch(1);
-       keysLayout->addWidget(labelkeys, 0, AlignLeft);
-       keysLayout->addWidget(keys, 1);
-
-       entryLayout = new QVBoxLayout();
-       layout->addLayout(entryLayout);
-       entryLayout->addWidget(labelentry, 0, AlignLeft);
-       entryLayout->addWidget(entry, 0);
-
-       afterLayout = new QHBoxLayout();
-       layout->addLayout(afterLayout);
-
-       afterLayout->addWidget(labelafter, 0, AlignLeft);
-       afterLayout->addWidget(after, 1);
-       buttonLayout = new QHBoxLayout();
-       layout->addLayout(buttonLayout);
-       buttonLayout->addStretch(1);
-       buttonLayout->addWidget(buttonOk, 1);
-       buttonLayout->addStretch(2);
-       buttonLayout->addWidget(buttonCancel, 1);
-       buttonLayout->addStretch(1);
-       // connections
-
-       connect(keys, SIGNAL(selected(const char *)), this, SLOT(select_key_adaptor(const char *)));
-       connect(keys, SIGNAL(highlighted(const char *)), this, SLOT(highlight_key_adaptor(const char *)));
-       connect(chosen, SIGNAL(highlighted(const char *)), this, SLOT(highlight_chosen_adaptor(const char *)));
-       connect(add, SIGNAL(clicked()), this, SLOT(add_adaptor()));
-       connect(up, SIGNAL(clicked()), this, SLOT(up_adaptor()));
-       connect(down, SIGNAL(clicked()), this, SLOT(down_adaptor()));   
-       connect(remove, SIGNAL(clicked()), this, SLOT(remove_adaptor()));
-       connect(buttonOk, SIGNAL(clicked()), this, SLOT(apply_adaptor()));
-       connect(buttonCancel, SIGNAL(clicked()), this, SLOT(close_adaptor()));
-}
-
-void FormCitationDialog::closeEvent(QCloseEvent *e)
-{
-       form_->close();
-       e->accept();
-}
-
-FormCitationDialog::~FormCitationDialog()
-{
-}
diff --git a/src/frontends/kde/formcitationdialog.h b/src/frontends/kde/formcitationdialog.h
deleted file mode 100644 (file)
index 0d1150a..0000000
+++ /dev/null
@@ -1,118 +0,0 @@
-/*
- * formcitationdialog.h
- * (C) 2000 LyX Team
- * John Levon, moz@compsoc.man.ac.uk
- */
-
-/***************************************************************************
- *                                                                         *
- *   This program is free software; you can redistribute it and/or modify  *
- *   it under the terms of the GNU General Public License as published by  *
- *   the Free Software Foundation; either version 2 of the License, or     *
- *   (at your option) any later version.                                   *
- *                                                                         *
- ***************************************************************************/
-
-#ifndef FORMCITATIONDIALOG_H
-#define FORMCITATIONDIALOG_H
-
-#include <config.h>
-#include <gettext.h>
-
-// to connect apply() and hide()
-#include "FormCitation.h"
-
-#include <qdialog.h>
-#include <qlistbox.h> 
-#include <qlayout.h>
-#include <qlabel.h>
-#include <qtooltip.h>
-#include <qlineedit.h>
-#include <qmultilinedit.h> 
-#include <qpushbutton.h>
-
-class FormCitationDialog : public QDialog  {
-   Q_OBJECT
-public:
-       FormCitationDialog(FormCitation *form, QWidget *parent=0, const char *name=0,
-                           bool modal=false, WFlags f=0);
-       ~FormCitationDialog();
-
-       // widgets
-       QLabel *labelchosen;
-       QListBox *chosen;
-       QLabel *labelkeys;
-       QListBox *keys;
-       QLabel *labelentry;
-       QMultiLineEdit *entry;
-       QLabel *labelafter;
-       QLineEdit *after;
-       QPushButton *add;
-       QPushButton *up;
-       QPushButton *down;
-       QPushButton *remove;
-       QPushButton *buttonOk;
-       QPushButton *buttonCancel;
-protected:
-       void closeEvent(QCloseEvent *e);
-private:
-       FormCitation *form_;
-
-       // layouts
-       QHBoxLayout *topLayout;
-       QVBoxLayout *layout;
-       QHBoxLayout *browserLayout;
-       QVBoxLayout *chosenLayout;
-       QVBoxLayout *iconLayout;
-       QVBoxLayout *keysLayout; 
-       QVBoxLayout *entryLayout; 
-       QHBoxLayout *afterLayout;
-       QHBoxLayout *buttonLayout;
-
-private slots:
-       void apply_adaptor(void) {
-               form_->apply();
-               form_->close();
-               hide();
-       }
-
-       void close_adaptor(void) {
-               form_->close();
-               hide();
-       }
-
-       void add_adaptor(void) {
-               form_->add();
-       }
-
-       void up_adaptor(void) {
-               form_->up();
-       }
-
-       void down_adaptor(void) {
-               form_->down();
-       }
-
-       void remove_adaptor(void) {
-               form_->remove();
-       }
-
-       void select_key_adaptor(const char *key) {
-               form_->select_key(key);
-       }
-       void highlight_key_adaptor(const char *key) {
-               form_->highlight_key(key);
-       }
-
-       void highlight_chosen_adaptor(const char *key) {
-               form_->highlight_chosen(key);
-       }
-};
-
-#endif
diff --git a/src/frontends/kde/formcopyrightdialog.C b/src/frontends/kde/formcopyrightdialog.C
deleted file mode 100644 (file)
index 52bc3a8..0000000
+++ /dev/null
@@ -1,33 +0,0 @@
-/**********************************************************************
-
-       --- Qt Architect generated file ---
-
-       File: formcopyrightdialog.C
-       Last generated: Thu Oct 12 18:32:40 2000
-
- *********************************************************************/
-
-#include "formcopyrightdialog.h"
-
-#define Inherited FormCopyrightDialogData
-
-FormCopyrightDialog::FormCopyrightDialog
-(
-       QWidget* parent,
-       const char* name
-)
-       :
-       Inherited( parent, name )
-{
-       setCaption(name);
-}
-
-
-FormCopyrightDialog::~FormCopyrightDialog()
-{
-}
-
-void FormCopyrightDialog::clickedOK()
-{
-       hide();
-}
diff --git a/src/frontends/kde/formcopyrightdialog.h b/src/frontends/kde/formcopyrightdialog.h
deleted file mode 100644 (file)
index 576c090..0000000
+++ /dev/null
@@ -1,33 +0,0 @@
-/**********************************************************************
-
-       --- Qt Architect generated file ---
-
-       File: formcopyrightdialog.h
-       Last generated: Thu Oct 12 18:32:40 2000
-
- *********************************************************************/
-
-#ifndef FormCopyrightDialog_included
-#define FormCopyrightDialog_included
-
-#include "formcopyrightdialogdata.h"
-
-class FormCopyrightDialog : public FormCopyrightDialogData
-{
-    Q_OBJECT
-
-public:
-
-    FormCopyrightDialog
-    (
-        QWidget* parent = NULL,
-        const char* name = NULL
-    );
-
-    virtual ~FormCopyrightDialog();
-
-protected slots:
-
-    virtual void clickedOK();
-};
-#endif // FormCopyrightDialog_included
diff --git a/src/frontends/kde/formcopyrightdialogdata.C b/src/frontends/kde/formcopyrightdialogdata.C
deleted file mode 100644 (file)
index 75cc709..0000000
+++ /dev/null
@@ -1,141 +0,0 @@
-/**********************************************************************
-
-       --- Qt Architect generated file ---
-
-       File: formcopyrightdialogdata.C
-       Last generated: Thu Oct 12 19:15:16 2000
-
-       DO NOT EDIT!!!  This file will be automatically
-       regenerated by qtarch.  All changes will be lost.
-
- *********************************************************************/
-
-#include <gettext.h>
-
-#include <qpixmap.h>
-#include <qlayout.h>
-#include "formcopyrightdialogdata.h"
-
-#define Inherited QWidget
-
-#include <qlabel.h>
-
-FormCopyrightDialogData::FormCopyrightDialogData
-(
-       QWidget* parent,
-       const char* name
-)
-       :
-       Inherited( parent, name, 53248 )
-{
-       buttonOk = new QPushButton( this, "PushButton_OK" );
-       buttonOk->setGeometry( 157, 343, 151, 107 );
-       buttonOk->setMinimumSize( 0, 0 );
-       buttonOk->setMaximumSize( 32767, 32767 );
-       connect( buttonOk, SIGNAL(clicked()), SLOT(clickedOK()) );
-       buttonOk->setFocusPolicy( QWidget::TabFocus );
-       buttonOk->setBackgroundMode( QWidget::PaletteBackground );
-       buttonOk->setFontPropagation( QWidget::NoChildren );
-       buttonOk->setPalettePropagation( QWidget::NoChildren );
-       buttonOk->setText( _("&OK") );
-       buttonOk->setAutoRepeat( FALSE );
-       buttonOk->setAutoResize( FALSE );
-       buttonOk->setToggleButton( FALSE );
-       buttonOk->setDefault( FALSE );
-       buttonOk->setAutoDefault( TRUE );
-       buttonOk->setIsMenuButton( FALSE );
-
-       QLabel* qtarch_Label_2;
-       qtarch_Label_2 = new QLabel( this, "Label_2" );
-       qtarch_Label_2->setGeometry( 5, 5, 455, 108 );
-       qtarch_Label_2->setMinimumSize( 0, 0 );
-       qtarch_Label_2->setMaximumSize( 32767, 32767 );
-       qtarch_Label_2->setFocusPolicy( QWidget::NoFocus );
-       qtarch_Label_2->setBackgroundMode( QWidget::PaletteBackground );
-       qtarch_Label_2->setFontPropagation( QWidget::NoChildren );
-       qtarch_Label_2->setPalettePropagation( QWidget::NoChildren );
-       qtarch_Label_2->setFrameStyle( 50 );
-       qtarch_Label_2->setLineWidth( 1 );
-       qtarch_Label_2->setMidLineWidth( 0 );
-       qtarch_Label_2->QFrame::setMargin( 1 );
-       qtarch_Label_2->setText( _("LyX is Copyright (C) 1995 by Matthias Ettrich, \n1995-2000 LyX Team") );
-       qtarch_Label_2->setAlignment( 1316 );
-       qtarch_Label_2->setMargin( -1 );
-
-       QLabel* qtarch_Label_3;
-       qtarch_Label_3 = new QLabel( this, "Label_3" );
-       qtarch_Label_3->setGeometry( 5, 118, 455, 107 );
-       qtarch_Label_3->setMinimumSize( 0, 0 );
-       qtarch_Label_3->setMaximumSize( 32767, 32767 );
-       qtarch_Label_3->setFocusPolicy( QWidget::NoFocus );
-       qtarch_Label_3->setBackgroundMode( QWidget::PaletteBackground );
-       qtarch_Label_3->setFontPropagation( QWidget::NoChildren );
-       qtarch_Label_3->setPalettePropagation( QWidget::NoChildren );
-       qtarch_Label_3->setFrameStyle( 50 );
-       qtarch_Label_3->setLineWidth( 1 );
-       qtarch_Label_3->setMidLineWidth( 0 );
-       qtarch_Label_3->QFrame::setMargin( 1 );
-       qtarch_Label_3->setText( _("This program is free software; you can redistribute it\nand/or modify it under the terms of the GNU General\nPublic License as published by the Free Software\nFoundation; either version 2 of the License, or\n(at your option) any later version.") );
-       qtarch_Label_3->setAlignment( 1316 );
-       qtarch_Label_3->setMargin( -1 );
-
-       QLabel* qtarch_Label_4;
-       qtarch_Label_4 = new QLabel( this, "Label_4" );
-       qtarch_Label_4->setGeometry( 5, 230, 455, 108 );
-       qtarch_Label_4->setMinimumSize( 0, 0 );
-       qtarch_Label_4->setMaximumSize( 32767, 32767 );
-       qtarch_Label_4->setFocusPolicy( QWidget::NoFocus );
-       qtarch_Label_4->setBackgroundMode( QWidget::PaletteBackground );
-       qtarch_Label_4->setFontPropagation( QWidget::NoChildren );
-       qtarch_Label_4->setPalettePropagation( QWidget::NoChildren );
-       qtarch_Label_4->setFrameStyle( 50 );
-       qtarch_Label_4->setLineWidth( 1 );
-       qtarch_Label_4->setMidLineWidth( 0 );
-       qtarch_Label_4->QFrame::setMargin( 1 );
-       qtarch_Label_4->setText( _("LyX is distributed in the hope that it will\nbe useful, but WITHOUT ANY WARRANTY;\nwithout even the implied warranty of MERCHANTABILITY\nor FITNESS FOR A PARTICULAR PURPOSE.\nSee the GNU General Public License for more details.\nYou should have received a copy of\nthe GNU General Public License\nalong with this program; if not, write to\nthe Free Software Foundation, Inc., \n675 Mass Ave, Cambridge, MA 02139, USA.") );
-       qtarch_Label_4->setAlignment( 1316 );
-       qtarch_Label_4->setMargin( -1 );
-
-       if (buttonOk->sizeHint().width()!=-1)
-               buttonOk->setMinimumWidth(buttonOk->sizeHint().width());
-       if (buttonOk->sizeHint().height()!=-1)
-               buttonOk->setMinimumHeight(buttonOk->sizeHint().height());
-       if (buttonOk->sizeHint().width()!=-1)
-               buttonOk->setMaximumWidth(buttonOk->sizeHint().width());
-       if (buttonOk->sizeHint().height()!=-1)
-               buttonOk->setMaximumHeight(buttonOk->sizeHint().height());
-       if (qtarch_Label_2->sizeHint().width()!=-1)
-               qtarch_Label_2->setMinimumWidth(qtarch_Label_2->sizeHint().width());
-       if (qtarch_Label_2->sizeHint().height()!=-1)
-               qtarch_Label_2->setMinimumHeight(qtarch_Label_2->sizeHint().height());
-       if (qtarch_Label_3->sizeHint().width()!=-1)
-               qtarch_Label_3->setMinimumWidth(qtarch_Label_3->sizeHint().width());
-       if (qtarch_Label_3->sizeHint().height()!=-1)
-               qtarch_Label_3->setMinimumHeight(qtarch_Label_3->sizeHint().height());
-       if (qtarch_Label_4->sizeHint().width()!=-1)
-               qtarch_Label_4->setMinimumWidth(qtarch_Label_4->sizeHint().width());
-       if (qtarch_Label_4->sizeHint().height()!=-1)
-               qtarch_Label_4->setMinimumHeight(qtarch_Label_4->sizeHint().height());
-       QBoxLayout* qtarch_layout_1 = new QBoxLayout( this, QBoxLayout::TopToBottom, 5, 5, NULL );
-       qtarch_layout_1->addStrut( 0 );
-       qtarch_layout_1->addWidget( qtarch_Label_2, 1, 36 );
-       qtarch_layout_1->addWidget( qtarch_Label_3, 1, 36 );
-       qtarch_layout_1->addWidget( qtarch_Label_4, 1, 36 );
-       QBoxLayout* qtarch_layout_1_4 = new QBoxLayout( QBoxLayout::LeftToRight, 5, NULL );
-       qtarch_layout_1->addLayout( qtarch_layout_1_4, 1 );
-       qtarch_layout_1_4->addStrut( 0 );
-       qtarch_layout_1_4->addStretch( 1 );
-       qtarch_layout_1_4->addWidget( buttonOk, 1, 36 );
-       qtarch_layout_1_4->addStretch( 1 );
-       resize( 465,455 );
-       setMinimumSize( 200, 65 );
-       setMaximumSize( 32767, 65 );
-}
-
-
-FormCopyrightDialogData::~FormCopyrightDialogData()
-{
-}
-void FormCopyrightDialogData::clickedOK()
-{
-}
diff --git a/src/frontends/kde/formcopyrightdialogdata.h b/src/frontends/kde/formcopyrightdialogdata.h
deleted file mode 100644 (file)
index 62e7642..0000000
+++ /dev/null
@@ -1,45 +0,0 @@
-/**********************************************************************
-
-       --- Qt Architect generated file ---
-
-       File: formcopyrightdialogdata.h
-       Last generated: Thu Oct 12 19:15:16 2000
-
-       DO NOT EDIT!!!  This file will be automatically
-       regenerated by qtarch.  All changes will be lost.
-
- *********************************************************************/
-
-#ifndef FormCopyrightDialogData_included
-#define FormCopyrightDialogData_included
-
-#include <qwidget.h>
-#include <qpushbutton.h>
-
-class FormCopyrightDialogData : public QWidget
-{
-    Q_OBJECT
-
-public:
-
-    FormCopyrightDialogData
-    (
-        QWidget* parent = NULL,
-        const char* name = NULL
-    );
-
-    virtual ~FormCopyrightDialogData();
-
-public slots:
-
-
-protected slots:
-
-    virtual void clickedOK();
-
-protected:
-    QPushButton* buttonOk;
-
-};
-
-#endif // FormCopyrightDialogData_included
diff --git a/src/frontends/kde/formindexdialog.C b/src/frontends/kde/formindexdialog.C
deleted file mode 100644 (file)
index a7f665d..0000000
+++ /dev/null
@@ -1,67 +0,0 @@
-/**********************************************************************
-
-       --- Qt Architect generated file ---
-
-       File: formindexdialog.C
-       Last generated: Thu Sep 14 12:08:37 2000
-
- *********************************************************************/
-
-#include <config.h>
-#include <gettext.h>
-
-#include "formindexdialog.h"
-#include "FormIndex.h"
-
-#include <qtooltip.h>
-
-#define Inherited FormIndexDialogData
-
-FormIndexDialog::FormIndexDialog(FormIndex * f, QWidget *p, const char* name)
-       : Inherited( p, name ), form_(f)
-{
-       setCaption(name);
-
-       // tooltips
-
-       QToolTip::add(labelindex,_("Index entry"));
-       QToolTip::add(index,_("Index entry"));
-
-       setMinimumSize( 200, 65 );
-       setMaximumSize( 32767, 65 );
-}
-
-
-FormIndexDialog::~FormIndexDialog()
-{
-}
-
-
-void FormIndexDialog::clickedOK()
-{
-    form_->apply();
-    form_->close();
-    hide();
-}
-
-
-void FormIndexDialog::clickedCancel()
-{
-    form_->close();
-    hide();
-}
-
-
-void FormIndexDialog::setReadOnly(bool readonly)
-{
-    if (readonly) {
-       index->setFocusPolicy(QWidget::NoFocus);
-       buttonOk->setEnabled(false);
-       buttonCancel->setText(_("&Close"));
-    } else {
-       index->setFocusPolicy(QWidget::StrongFocus);
-       index->setFocus();
-       buttonOk->setEnabled(true);
-       buttonCancel->setText(_("&Cancel"));
-    }
-}
diff --git a/src/frontends/kde/formindexdialog.h b/src/frontends/kde/formindexdialog.h
deleted file mode 100644 (file)
index 2b459ea..0000000
+++ /dev/null
@@ -1,43 +0,0 @@
-/**********************************************************************
-
-       --- Qt Architect generated file ---
-
-       File: formindexdialog.h
-       Last generated: Thu Sep 14 12:08:37 2000
-
- *********************************************************************/
-
-#ifndef FormIndexDialog_included
-#define FormIndexDialog_included
-
-#include "formindexdialogdata.h"
-
-class FormIndex;
-
-class FormIndexDialog : public FormIndexDialogData
-{
-    Q_OBJECT
-
-public:
-
-    FormIndexDialog
-    (
-        FormIndex *, QWidget* parent = NULL,
-        const char* name = NULL
-    );
-
-    virtual ~FormIndexDialog();
-
-    void setIndexText(const char * str) { index->setText(str); }
-    const char * getIndexText() { return index->text(); }
-    void setReadOnly(bool);
-
-private slots:
-    void clickedOK();
-    void clickedCancel();
-
-private:
-    FormIndex *form_;
-
-};
-#endif // FormIndexDialog_included
diff --git a/src/frontends/kde/formindexdialogdata.C b/src/frontends/kde/formindexdialogdata.C
deleted file mode 100644 (file)
index f8f8b8a..0000000
+++ /dev/null
@@ -1,125 +0,0 @@
-/**********************************************************************
-
-       --- Qt Architect generated file ---
-
-       File: formindexdialogdata.C
-       Last generated: Fri Oct 6 13:10:23 2000
-
-       DO NOT EDIT!!!  This file will be automatically
-       regenerated by qtarch.  All changes will be lost.
-
- *********************************************************************/
-
-#include <qpixmap.h>
-#include <qlayout.h>
-#include "formindexdialogdata.h"
-
-#define Inherited QWidget
-
-
-FormIndexDialogData::FormIndexDialogData
-(
-       QWidget* parent,
-       const char* name
-)
-       :
-       Inherited( parent, name, 53248 )
-{
-       labelindex = new QLabel( this, "Label_1" );
-       labelindex->setGeometry( 5, 15, 60, 25 );
-       labelindex->setMinimumSize( 60, 25 );
-       labelindex->setMaximumSize( 60, 25 );
-       labelindex->setFocusPolicy( QWidget::NoFocus );
-       labelindex->setBackgroundMode( QWidget::PaletteBackground );
-       labelindex->setFontPropagation( QWidget::NoChildren );
-       labelindex->setPalettePropagation( QWidget::NoChildren );
-       labelindex->setFrameStyle( 0 );
-       labelindex->setLineWidth( 1 );
-       labelindex->setMidLineWidth( 0 );
-       labelindex->QFrame::setMargin( 0 );
-       labelindex->setText( "Keyword:" );
-       labelindex->setAlignment( 289 );
-       labelindex->setMargin( -1 );
-
-       index = new QLineEdit( this, "LineEdit_1" );
-       index->setGeometry( 70, 15, 175, 25 );
-       index->setMinimumSize( 125, 25 );
-       index->setMaximumSize( 32767, 25 );
-       index->setFocusPolicy( QWidget::StrongFocus );
-       index->setBackgroundMode( QWidget::PaletteBase );
-       index->setFontPropagation( QWidget::NoChildren );
-       index->setPalettePropagation( QWidget::NoChildren );
-       index->setText( "" );
-       index->setMaxLength( 32767 );
-       index->setFrame( QLineEdit::Normal );
-       index->setFrame( TRUE );
-
-       buttonOk = new QPushButton( this, "PushButton_OK" );
-       buttonOk->setGeometry( 24, 65, 80, 25 );
-       buttonOk->setMinimumSize( 80, 25 );
-       buttonOk->setMaximumSize( 80, 25 );
-       connect( buttonOk, SIGNAL(clicked()), SLOT(clickedOK()) );
-       buttonOk->setFocusPolicy( QWidget::TabFocus );
-       buttonOk->setBackgroundMode( QWidget::PaletteBackground );
-       buttonOk->setFontPropagation( QWidget::NoChildren );
-       buttonOk->setPalettePropagation( QWidget::NoChildren );
-       buttonOk->setText( "&OK" );
-       buttonOk->setAutoRepeat( FALSE );
-       buttonOk->setAutoResize( FALSE );
-       buttonOk->setToggleButton( FALSE );
-       buttonOk->setDefault( FALSE );
-       buttonOk->setAutoDefault( TRUE );
-       buttonOk->setIsMenuButton( FALSE );
-
-       buttonCancel = new QPushButton( this, "PushButton_Cancel" );
-       buttonCancel->setGeometry( 146, 65, 80, 25 );
-       buttonCancel->setMinimumSize( 80, 25 );
-       buttonCancel->setMaximumSize( 80, 25 );
-       connect( buttonCancel, SIGNAL(clicked()), SLOT(clickedCancel()) );
-       buttonCancel->setFocusPolicy( QWidget::TabFocus );
-       buttonCancel->setBackgroundMode( QWidget::PaletteBackground );
-       buttonCancel->setFontPropagation( QWidget::NoChildren );
-       buttonCancel->setPalettePropagation( QWidget::NoChildren );
-       buttonCancel->setText( "&Cancel" );
-       buttonCancel->setAutoRepeat( FALSE );
-       buttonCancel->setAutoResize( FALSE );
-       buttonCancel->setToggleButton( FALSE );
-       buttonCancel->setDefault( FALSE );
-       buttonCancel->setAutoDefault( FALSE );
-       buttonCancel->setIsMenuButton( FALSE );
-
-       QGridLayout* qtarch_layout_1 = new QGridLayout( this, 2, 1, 5, 5, NULL );
-       qtarch_layout_1->addColSpacing( 0, 5 );
-       qtarch_layout_1->setColStretch( 0, 1 );
-       qtarch_layout_1->addRowSpacing( 0, 0 );
-       qtarch_layout_1->setRowStretch( 0, 0 );
-       QBoxLayout* qtarch_layout_1_1_1 = new QBoxLayout( QBoxLayout::LeftToRight, 5, NULL );
-       qtarch_layout_1->addLayout( qtarch_layout_1_1_1, 0, 0 );
-       qtarch_layout_1_1_1->addStrut( 0 );
-       qtarch_layout_1_1_1->addWidget( labelindex, 0, 36 );
-       qtarch_layout_1_1_1->addWidget( index, 1, 36 );
-       qtarch_layout_1->addRowSpacing( 1, 0 );
-       qtarch_layout_1->setRowStretch( 1, 0 );
-       QBoxLayout* qtarch_layout_1_2_1 = new QBoxLayout( QBoxLayout::LeftToRight, 5, NULL );
-       qtarch_layout_1->addLayout( qtarch_layout_1_2_1, 1, 0 );
-       qtarch_layout_1_2_1->addStrut( 0 );
-       qtarch_layout_1_2_1->addStretch( 1 );
-       qtarch_layout_1_2_1->addWidget( buttonOk, 1, 36 );
-       qtarch_layout_1_2_1->addStretch( 2 );
-       qtarch_layout_1_2_1->addWidget( buttonCancel, 1, 36 );
-       qtarch_layout_1_2_1->addStretch( 1 );
-       resize( 250,105 );
-       setMinimumSize( 200, 65 );
-       setMaximumSize( 32767, 65 );
-}
-
-
-FormIndexDialogData::~FormIndexDialogData()
-{
-}
-void FormIndexDialogData::clickedOK()
-{
-}
-void FormIndexDialogData::clickedCancel()
-{
-}
diff --git a/src/frontends/kde/formindexdialogdata.h b/src/frontends/kde/formindexdialogdata.h
deleted file mode 100644 (file)
index e0b918b..0000000
+++ /dev/null
@@ -1,51 +0,0 @@
-/**********************************************************************
-
-       --- Qt Architect generated file ---
-
-       File: formindexdialogdata.h
-       Last generated: Fri Oct 6 13:10:23 2000
-
-       DO NOT EDIT!!!  This file will be automatically
-       regenerated by qtarch.  All changes will be lost.
-
- *********************************************************************/
-
-#ifndef FormIndexDialogData_included
-#define FormIndexDialogData_included
-
-#include <qwidget.h>
-#include <qlabel.h>
-#include <qpushbutton.h>
-#include <qlineedit.h>
-
-class FormIndexDialogData : public QWidget
-{
-    Q_OBJECT
-
-public:
-
-    FormIndexDialogData
-    (
-        QWidget* parent = NULL,
-        const char* name = NULL
-    );
-
-    virtual ~FormIndexDialogData();
-
-public slots:
-
-
-protected slots:
-
-    virtual void clickedCancel();
-    virtual void clickedOK();
-
-protected:
-    QLabel* labelindex;
-    QLineEdit* index;
-    QPushButton* buttonOk;
-    QPushButton* buttonCancel;
-
-};
-
-#endif // FormIndexDialogData_included
diff --git a/src/frontends/kde/formprintdialog.C b/src/frontends/kde/formprintdialog.C
deleted file mode 100644 (file)
index 6650b11..0000000
+++ /dev/null
@@ -1,36 +0,0 @@
-/*
- * formprintdialog.C
- * (C) 2000, LyX Team
- * John Levon, moz@compsoc.man.ac.uk
- */
-
-#include "formprintdialogdata.h"
-#include "formprintdialog.h"
-#include "support/lstrings.h"
-#include "support/filetools.h"
-
-#include <kfiledialog.h>
-#include <gettext.h>
-#include <cstring>
-
-#define Inherited FormPrintDialogData
-
-FormPrintDialog::FormPrintDialog(FormPrint *f, QWidget* parent, const char * name)
-       : FormPrintDialogData(parent, name), form_(f)
-{
-       setCaption(name); 
-}
-
-FormPrintDialog::~FormPrintDialog()
-{
-}
-
-void FormPrintDialog::clickedBrowse()
-{
-       // FIXME: move into utility class later, accept URLs etc.
-
-       KFileDialog filedlg(OnlyPath(filename->text()).c_str(), "*.ps|PostScript Files (*.ps)", this, 0, true, false);
-
-       if (filedlg.exec() == QDialog::Accepted)
-               filename->setText(filedlg.selectedFile().data());
-}
diff --git a/src/frontends/kde/formprintdialog.h b/src/frontends/kde/formprintdialog.h
deleted file mode 100644 (file)
index f3d06e6..0000000
+++ /dev/null
@@ -1,131 +0,0 @@
-/*
- * formprintdialog.h
- * (C) 2000 LyX Team
- * John Levon, moz@compsoc.man.ac.uk
- */ 
-#ifndef FORMPRINTDIALOG_H
-#define FORMPRINTDIALOG_H
-
-#include "formprintdialogdata.h"
-#include "lyxrc.h" 
-#include "PrinterParams.h"
-#include "FormPrint.h"
-
-class FormPrintDialog : public FormPrintDialogData
-{
-       Q_OBJECT
-public:
-
-       FormPrintDialog(FormPrint *f, QWidget* parent = NULL, const char* name = NULL);
-       virtual ~FormPrintDialog();
-       
-       const char *getFrom() {
-               return from->text();
-       }
-
-       const char *getTo() {
-               return to->text();
-       }
-
-       PrinterParams::Target getTarget() {
-               if (toprinter->isChecked())
-                       return PrinterParams::PRINTER;
-               else
-                       return PrinterParams::FILE;
-       }
-
-       const char *getPrinter() {
-               return printername->text();
-       }
-
-       const char *getFile() {
-               return filename->text();
-       }
-       
-       PrinterParams::WhichPages getWhichPages() {
-               if (oddpages->isChecked())
-                       return PrinterParams::ODD;
-               else if (evenpages->isChecked())
-                       return PrinterParams::EVEN;
-               else
-                       return PrinterParams::ALL;
-       }
-
-       bool getReverse() {
-               return reverse->isChecked();
-       }
-
-       bool getSort() {
-               return sort->isChecked();
-       }
-
-       const char *getCount() {
-               return count->text();
-       }
-
-       void setTarget(PrinterParams::Target t) {
-               toprinter->setChecked(t==PrinterParams::PRINTER);
-               tofile->setChecked(t!=PrinterParams::PRINTER);
-       }
-        
-               void setPrinter(const char *name) {
-               printername->setText(name);
-       } 
-       void setFile(const char *name) {
-               filename->setText(name);
-       }        
-       void setWhichPages(PrinterParams::WhichPages wp) {
-               switch (wp) {
-                       case PrinterParams::ALL:
-                               allpages->setChecked(true);
-                               break;
-                       case PrinterParams::EVEN:
-                               evenpages->setChecked(true);
-                               break;
-                       case PrinterParams::ODD:
-                               oddpages->setChecked(true);
-                               break;
-               }
-       }
-       void setReverse(bool on) {
-               reverse->setChecked(on);
-       }
-       void setSort(bool on) {
-               sort->setChecked(on);
-       }
-        
-       void setCount(const char *num) {
-               count->setText(num);
-       }
-
-       void setFrom(const char *text) {
-               from->setText(text);
-       }
-
-       void setTo(const char *text) {
-               to->setText(text);
-       }
-
-protected slots:
-       void clickedCancel() {
-               form_->close();
-               hide();
-       }
-       void clickedPrint() {
-               form_->print(); 
-               form_->close();
-               hide();
-       }
-
-       void clickedBrowse();
-private:
-       FormPrint *form_;
-};
-#endif // FORMPRINTDIALOG_H
diff --git a/src/frontends/kde/formprintdialogdata.C b/src/frontends/kde/formprintdialogdata.C
deleted file mode 100644 (file)
index ea5c055..0000000
+++ /dev/null
@@ -1,610 +0,0 @@
-/**********************************************************************
-
-       --- Qt Architect generated file ---
-
-       File: formprintdialogdata.C
-       Last generated: Fri Oct 13 16:07:46 2000
-
-       DO NOT EDIT!!!  This file will be automatically
-       regenerated by qtarch.  All changes will be lost.
-
- *********************************************************************/
-
-#include <gettext.h>
-
-#include <qpixmap.h>
-#include <qlayout.h>
-#include "formprintdialogdata.h"
-
-#define Inherited QWidget
-
-
-FormPrintDialogData::FormPrintDialogData
-(
-       QWidget* parent,
-       const char* name
-)
-       :
-       Inherited( parent, name, 0 )
-{
-       pagesGroupBox = new QGroupBox( this, "pagesGroupBox" );
-       pagesGroupBox->setGeometry( 5, 5, 140, 208 );
-       pagesGroupBox->setMinimumSize( 15, 47 );
-       pagesGroupBox->setMaximumSize( 32767, 32767 );
-       pagesGroupBox->setFocusPolicy( QWidget::NoFocus );
-       pagesGroupBox->setBackgroundMode( QWidget::PaletteBackground );
-       pagesGroupBox->setFontPropagation( QWidget::NoChildren );
-       pagesGroupBox->setPalettePropagation( QWidget::NoChildren );
-       pagesGroupBox->setFrameStyle( 49 );
-       pagesGroupBox->setLineWidth( 1 );
-       pagesGroupBox->setMidLineWidth( 0 );
-       pagesGroupBox->QFrame::setMargin( 0 );
-       pagesGroupBox->setTitle( _("Pages") );
-       pagesGroupBox->setAlignment( 1 );
-
-       pagesRadioGroup = new QButtonGroup( pagesGroupBox, "pagesRadioGroup" );
-       pagesRadioGroup->setGeometry( 5, 17, 130, 106 );
-       pagesRadioGroup->setMinimumSize( 10, 20 );
-       pagesRadioGroup->setMaximumSize( 32767, 32767 );
-       pagesRadioGroup->setFocusPolicy( QWidget::NoFocus );
-       pagesRadioGroup->setBackgroundMode( QWidget::PaletteBackground );
-       pagesRadioGroup->setFontPropagation( QWidget::NoChildren );
-       pagesRadioGroup->setPalettePropagation( QWidget::NoChildren );
-       pagesRadioGroup->setFrameStyle( 0 );
-       pagesRadioGroup->setLineWidth( 1 );
-       pagesRadioGroup->setMidLineWidth( 0 );
-       pagesRadioGroup->QFrame::setMargin( 0 );
-       pagesRadioGroup->setTitle( _("") );
-       pagesRadioGroup->setAlignment( 1 );
-       pagesRadioGroup->setExclusive( TRUE );
-
-       copies = new QGroupBox( this, "copies" );
-       copies->setGeometry( 150, 5, 280, 51 );
-       copies->setMinimumSize( 30, 10 );
-       copies->setMaximumSize( 32767, 32767 );
-       copies->setFocusPolicy( QWidget::NoFocus );
-       copies->setBackgroundMode( QWidget::PaletteBackground );
-       copies->setFontPropagation( QWidget::NoChildren );
-       copies->setPalettePropagation( QWidget::NoChildren );
-       copies->setFrameStyle( 49 );
-       copies->setLineWidth( 1 );
-       copies->setMidLineWidth( 0 );
-       copies->QFrame::setMargin( 0 );
-       copies->setTitle( _("Copies") );
-       copies->setAlignment( 1 );
-
-       printToGroupBox = new QGroupBox( this, "printToGroupBox" );
-       printToGroupBox->setGeometry( 150, 61, 280, 152 );
-       printToGroupBox->setMinimumSize( 25, 30 );
-       printToGroupBox->setMaximumSize( 32767, 32767 );
-       printToGroupBox->setFocusPolicy( QWidget::NoFocus );
-       printToGroupBox->setBackgroundMode( QWidget::PaletteBackground );
-       printToGroupBox->setFontPropagation( QWidget::NoChildren );
-       printToGroupBox->setPalettePropagation( QWidget::NoChildren );
-       printToGroupBox->setFrameStyle( 49 );
-       printToGroupBox->setLineWidth( 1 );
-       printToGroupBox->setMidLineWidth( 0 );
-       printToGroupBox->QFrame::setMargin( 0 );
-       printToGroupBox->setTitle( _("Print to") );
-       printToGroupBox->setAlignment( 1 );
-
-       printToRadioGroup = new QButtonGroup( printToGroupBox, "printToRadioGroup" );
-       printToRadioGroup->setGeometry( 12, 33, 131, 62 );
-       printToRadioGroup->setMinimumSize( 10, 15 );
-       printToRadioGroup->setMaximumSize( 32767, 32767 );
-       printToRadioGroup->setFocusPolicy( QWidget::NoFocus );
-       printToRadioGroup->setBackgroundMode( QWidget::PaletteBackground );
-       printToRadioGroup->setFontPropagation( QWidget::NoChildren );
-       printToRadioGroup->setPalettePropagation( QWidget::NoChildren );
-       printToRadioGroup->setFrameStyle( 0 );
-       printToRadioGroup->setLineWidth( 1 );
-       printToRadioGroup->setMidLineWidth( 0 );
-       printToRadioGroup->QFrame::setMargin( 0 );
-       printToRadioGroup->setTitle( _("") );
-       printToRadioGroup->setAlignment( 1 );
-       printToRadioGroup->setExclusive( TRUE );
-
-       print = new QPushButton( this, "print" );
-       print->setGeometry( 75, 218, 70, 32 );
-       print->setMinimumSize( 0, 0 );
-       print->setMaximumSize( 32767, 32767 );
-       connect( print, SIGNAL(clicked()), SLOT(clickedPrint()) );
-       print->setFocusPolicy( QWidget::TabFocus );
-       print->setBackgroundMode( QWidget::PaletteBackground );
-       print->setFontPropagation( QWidget::NoChildren );
-       print->setPalettePropagation( QWidget::NoChildren );
-       print->setText( _("&Print") );
-       print->setAutoRepeat( FALSE );
-       print->setAutoResize( FALSE );
-       print->setToggleButton( FALSE );
-       print->setDefault( FALSE );
-       print->setAutoDefault( FALSE );
-       print->setIsMenuButton( FALSE );
-
-       cancel = new QPushButton( this, "cancel" );
-       cancel->setGeometry( 290, 218, 70, 32 );
-       cancel->setMinimumSize( 0, 0 );
-       cancel->setMaximumSize( 32767, 32767 );
-       connect( cancel, SIGNAL(clicked()), SLOT(clickedCancel()) );
-       cancel->setFocusPolicy( QWidget::TabFocus );
-       cancel->setBackgroundMode( QWidget::PaletteBackground );
-       cancel->setFontPropagation( QWidget::NoChildren );
-       cancel->setPalettePropagation( QWidget::NoChildren );
-       cancel->setText( _("&Cancel") );
-       cancel->setAutoRepeat( FALSE );
-       cancel->setAutoResize( FALSE );
-       cancel->setToggleButton( FALSE );
-       cancel->setDefault( FALSE );
-       cancel->setAutoDefault( FALSE );
-       cancel->setIsMenuButton( FALSE );
-
-       allpages = new QRadioButton( pagesRadioGroup, "allpages" );
-       allpages->setGeometry( 5, 14, 120, 30 );
-       allpages->setMinimumSize( 80, 20 );
-       allpages->setMaximumSize( 32767, 32767 );
-       allpages->setFocusPolicy( QWidget::TabFocus );
-       allpages->setBackgroundMode( QWidget::PaletteBackground );
-       allpages->setFontPropagation( QWidget::NoChildren );
-       allpages->setPalettePropagation( QWidget::NoChildren );
-       allpages->setText( _("&All pages") );
-       allpages->setAutoRepeat( FALSE );
-       allpages->setAutoResize( FALSE );
-       allpages->setChecked( FALSE );
-
-       evenpages = new QRadioButton( pagesRadioGroup, "evenpages" );
-       evenpages->setGeometry( 5, 82, 120, 10 );
-       evenpages->setMinimumSize( 0, 0 );
-       evenpages->setMaximumSize( 32767, 32767 );
-       evenpages->setFocusPolicy( QWidget::TabFocus );
-       evenpages->setBackgroundMode( QWidget::PaletteBackground );
-       evenpages->setFontPropagation( QWidget::NoChildren );
-       evenpages->setPalettePropagation( QWidget::NoChildren );
-       evenpages->setText( _("&Even pages") );
-       evenpages->setAutoRepeat( FALSE );
-       evenpages->setAutoResize( FALSE );
-       evenpages->setChecked( FALSE );
-
-       from = new KIntLineEdit( pagesGroupBox, "from" );
-       from->setGeometry( 93, 128, 42, 22 );
-       from->setMinimumSize( 0, 0 );
-       from->setMaximumSize( 32767, 32767 );
-       from->setFocusPolicy( QWidget::StrongFocus );
-       from->setBackgroundMode( QWidget::PaletteBase );
-       from->setFontPropagation( QWidget::NoChildren );
-       from->setPalettePropagation( QWidget::NoChildren );
-       from->setText( _("") );
-       from->setMaxLength( 32767 );
-       from->setFrame( QLineEdit::Normal );
-       from->setFrame( TRUE );
-
-       fromLabel = new QLabel( pagesGroupBox, "fromLabel" );
-       fromLabel->setGeometry( 5, 128, 83, 22 );
-       fromLabel->setMinimumSize( 0, 0 );
-       fromLabel->setMaximumSize( 32767, 32767 );
-       fromLabel->setFocusPolicy( QWidget::NoFocus );
-       fromLabel->setBackgroundMode( QWidget::PaletteBackground );
-       fromLabel->setFontPropagation( QWidget::NoChildren );
-       fromLabel->setPalettePropagation( QWidget::NoChildren );
-       fromLabel->setFrameStyle( 0 );
-       fromLabel->setLineWidth( 1 );
-       fromLabel->setMidLineWidth( 0 );
-       fromLabel->QFrame::setMargin( 0 );
-       fromLabel->setText( _("From") );
-       fromLabel->setAlignment( 289 );
-       fromLabel->setMargin( -1 );
-
-       toLabel = new QLabel( pagesGroupBox, "toLabel" );
-       toLabel->setGeometry( 5, 155, 83, 21 );
-       toLabel->setMinimumSize( 0, 0 );
-       toLabel->setMaximumSize( 32767, 32767 );
-       toLabel->setFocusPolicy( QWidget::NoFocus );
-       toLabel->setBackgroundMode( QWidget::PaletteBackground );
-       toLabel->setFontPropagation( QWidget::NoChildren );
-       toLabel->setPalettePropagation( QWidget::NoChildren );
-       toLabel->setFrameStyle( 0 );
-       toLabel->setLineWidth( 1 );
-       toLabel->setMidLineWidth( 0 );
-       toLabel->QFrame::setMargin( 0 );
-       toLabel->setText( _("To") );
-       toLabel->setAlignment( 289 );
-       toLabel->setMargin( -1 );
-
-       oddpages = new QRadioButton( pagesRadioGroup, "oddpages" );
-       oddpages->setGeometry( 5, 58, 120, 10 );
-       oddpages->setMinimumSize( 0, 0 );
-       oddpages->setMaximumSize( 32767, 32767 );
-       oddpages->setFocusPolicy( QWidget::TabFocus );
-       oddpages->setBackgroundMode( QWidget::PaletteBackground );
-       oddpages->setFontPropagation( QWidget::NoChildren );
-       oddpages->setPalettePropagation( QWidget::NoChildren );
-       oddpages->setText( _("&Odd pages") );
-       oddpages->setAutoRepeat( FALSE );
-       oddpages->setAutoResize( FALSE );
-       oddpages->setChecked( FALSE );
-
-       toprinter = new QRadioButton( printToRadioGroup, "toprinter" );
-       toprinter->setGeometry( 5, 5, 121, 16 );
-       toprinter->setMinimumSize( 0, 0 );
-       toprinter->setMaximumSize( 32767, 32767 );
-       toprinter->setFocusPolicy( QWidget::TabFocus );
-       toprinter->setBackgroundMode( QWidget::PaletteBackground );
-       toprinter->setFontPropagation( QWidget::NoChildren );
-       toprinter->setPalettePropagation( QWidget::NoChildren );
-       toprinter->setText( _("&Printer") );
-       toprinter->setAutoRepeat( FALSE );
-       toprinter->setAutoResize( FALSE );
-       toprinter->setChecked( FALSE );
-
-       tofile = new QRadioButton( printToRadioGroup, "tofile" );
-       tofile->setGeometry( 5, 41, 121, 16 );
-       tofile->setMinimumSize( 0, 0 );
-       tofile->setMaximumSize( 32767, 32767 );
-       tofile->setFocusPolicy( QWidget::TabFocus );
-       tofile->setBackgroundMode( QWidget::PaletteBackground );
-       tofile->setFontPropagation( QWidget::NoChildren );
-       tofile->setPalettePropagation( QWidget::NoChildren );
-       tofile->setText( _("&File") );
-       tofile->setAutoRepeat( FALSE );
-       tofile->setAutoResize( FALSE );
-       tofile->setChecked( FALSE );
-
-       printername = new QLineEdit( printToGroupBox, "printername" );
-       printername->setGeometry( 148, 33, 120, 19 );
-       printername->setMinimumSize( 0, 0 );
-       printername->setMaximumSize( 32767, 32767 );
-       printername->setFocusPolicy( QWidget::StrongFocus );
-       printername->setBackgroundMode( QWidget::PaletteBase );
-       printername->setFontPropagation( QWidget::NoChildren );
-       printername->setPalettePropagation( QWidget::NoChildren );
-       printername->setText( _("") );
-       printername->setMaxLength( 32767 );
-       printername->setFrame( QLineEdit::Normal );
-       printername->setFrame( TRUE );
-
-       reverse = new QCheckBox( pagesGroupBox, "reverse" );
-       reverse->setGeometry( 5, 181, 130, 22 );
-       reverse->setMinimumSize( 0, 0 );
-       reverse->setMaximumSize( 32767, 32767 );
-       reverse->setFocusPolicy( QWidget::TabFocus );
-       reverse->setBackgroundMode( QWidget::PaletteBackground );
-       reverse->setFontPropagation( QWidget::NoChildren );
-       reverse->setPalettePropagation( QWidget::NoChildren );
-       reverse->setText( _("&Reverse order") );
-       reverse->setAutoRepeat( FALSE );
-       reverse->setAutoResize( TRUE );
-       reverse->setChecked( FALSE );
-
-       filename = new QLineEdit( printToGroupBox, "filename" );
-       filename->setGeometry( 148, 76, 120, 19 );
-       filename->setMinimumSize( 0, 0 );
-       filename->setMaximumSize( 32767, 32767 );
-       filename->setFocusPolicy( QWidget::StrongFocus );
-       filename->setBackgroundMode( QWidget::PaletteBase );
-       filename->setFontPropagation( QWidget::NoChildren );
-       filename->setPalettePropagation( QWidget::NoChildren );
-       filename->setText( _("") );
-       filename->setMaxLength( 32767 );
-       filename->setFrame( QLineEdit::Normal );
-       filename->setFrame( TRUE );
-
-       sort = new QCheckBox( copies, "sort" );
-       sort->setGeometry( 232, 12, 43, 31 );
-       sort->setMinimumSize( 0, 0 );
-       sort->setMaximumSize( 32767, 32767 );
-       sort->setFocusPolicy( QWidget::TabFocus );
-       sort->setBackgroundMode( QWidget::PaletteBackground );
-       sort->setFontPropagation( QWidget::NoChildren );
-       sort->setPalettePropagation( QWidget::NoChildren );
-       sort->setText( _("&Sort") );
-       sort->setAutoRepeat( FALSE );
-       sort->setAutoResize( TRUE );
-       sort->setChecked( FALSE );
-
-       browse = new QPushButton( printToGroupBox, "browse" );
-       browse->setGeometry( 137, 116, 131, 15 );
-       browse->setMinimumSize( 0, 0 );
-       browse->setMaximumSize( 32767, 32767 );
-       connect( browse, SIGNAL(clicked()), SLOT(clickedBrowse()) );
-       browse->setFocusPolicy( QWidget::TabFocus );
-       browse->setBackgroundMode( QWidget::PaletteBackground );
-       browse->setFontPropagation( QWidget::NoChildren );
-       browse->setPalettePropagation( QWidget::NoChildren );
-       browse->setText( _("&Browse") );
-       browse->setAutoRepeat( FALSE );
-       browse->setAutoResize( FALSE );
-       browse->setToggleButton( FALSE );
-       browse->setDefault( FALSE );
-       browse->setAutoDefault( FALSE );
-       browse->setIsMenuButton( FALSE );
-
-       count = new KIntLineEdit( copies, "count" );
-       count->setGeometry( 140, 12, 43, 31 );
-       count->setMinimumSize( 0, 0 );
-       count->setMaximumSize( 32767, 32767 );
-       count->setFocusPolicy( QWidget::StrongFocus );
-       count->setBackgroundMode( QWidget::PaletteBase );
-       count->setFontPropagation( QWidget::NoChildren );
-       count->setPalettePropagation( QWidget::NoChildren );
-       count->setText( _("") );
-       count->setMaxLength( 32767 );
-       count->setFrame( QLineEdit::Normal );
-       count->setFrame( TRUE );
-
-       countLabel = new QLabel( copies, "countLabel" );
-       countLabel->setGeometry( 48, 12, 44, 31 );
-       countLabel->setMinimumSize( 0, 0 );
-       countLabel->setMaximumSize( 32767, 32767 );
-       countLabel->setFocusPolicy( QWidget::NoFocus );
-       countLabel->setBackgroundMode( QWidget::PaletteBackground );
-       countLabel->setFontPropagation( QWidget::NoChildren );
-       countLabel->setPalettePropagation( QWidget::NoChildren );
-       countLabel->setFrameStyle( 0 );
-       countLabel->setLineWidth( 1 );
-       countLabel->setMidLineWidth( 0 );
-       countLabel->QFrame::setMargin( 0 );
-       countLabel->setText( _("Count") );
-       countLabel->setAlignment( 289 );
-       countLabel->setMargin( -1 );
-
-       to = new KIntLineEdit( pagesGroupBox, "to" );
-       to->setGeometry( 93, 155, 42, 21 );
-       to->setMinimumSize( 0, 0 );
-       to->setMaximumSize( 32767, 32767 );
-       to->setFocusPolicy( QWidget::StrongFocus );
-       to->setBackgroundMode( QWidget::PaletteBase );
-       to->setFontPropagation( QWidget::NoChildren );
-       to->setPalettePropagation( QWidget::NoChildren );
-       to->setText( _("") );
-       to->setMaxLength( 32767 );
-       to->setFrame( QLineEdit::Normal );
-       to->setFrame( TRUE );
-
-       pagesRadioGroup->insert( allpages );
-       pagesRadioGroup->insert( evenpages );
-       pagesRadioGroup->insert( oddpages );
-
-       printToRadioGroup->insert( toprinter );
-       printToRadioGroup->insert( tofile );
-
-       if (print->sizeHint().width()!=-1)
-               print->setMinimumWidth(print->sizeHint().width());
-       if (print->sizeHint().height()!=-1)
-               print->setMinimumHeight(print->sizeHint().height());
-       if (print->sizeHint().width()!=-1)
-               print->setMaximumWidth(print->sizeHint().width());
-       if (print->sizeHint().height()!=-1)
-               print->setMaximumHeight(print->sizeHint().height());
-       if (cancel->sizeHint().width()!=-1)
-               cancel->setMinimumWidth(cancel->sizeHint().width());
-       if (cancel->sizeHint().height()!=-1)
-               cancel->setMinimumHeight(cancel->sizeHint().height());
-       if (cancel->sizeHint().width()!=-1)
-               cancel->setMaximumWidth(cancel->sizeHint().width());
-       if (cancel->sizeHint().height()!=-1)
-               cancel->setMaximumHeight(cancel->sizeHint().height());
-       if (allpages->sizeHint().width()!=-1)
-               allpages->setMinimumWidth(allpages->sizeHint().width());
-       if (allpages->sizeHint().height()!=-1)
-               allpages->setMinimumHeight(allpages->sizeHint().height());
-       if (allpages->sizeHint().width()!=-1)
-               allpages->setMaximumWidth(allpages->sizeHint().width());
-       if (allpages->sizeHint().height()!=-1)
-               allpages->setMaximumHeight(allpages->sizeHint().height());
-       if (evenpages->sizeHint().width()!=-1)
-               evenpages->setMinimumWidth(evenpages->sizeHint().width());
-       if (evenpages->sizeHint().height()!=-1)
-               evenpages->setMinimumHeight(evenpages->sizeHint().height());
-       if (evenpages->sizeHint().width()!=-1)
-               evenpages->setMaximumWidth(evenpages->sizeHint().width());
-       if (evenpages->sizeHint().height()!=-1)
-               evenpages->setMaximumHeight(evenpages->sizeHint().height());
-       if (from->sizeHint().width()!=-1)
-               from->setMinimumWidth(from->sizeHint().width());
-       if (from->sizeHint().height()!=-1)
-               from->setMinimumHeight(from->sizeHint().height());
-       if (from->sizeHint().height()!=-1)
-               from->setMaximumHeight(from->sizeHint().height());
-       if (fromLabel->sizeHint().width()!=-1)
-               fromLabel->setMinimumWidth(fromLabel->sizeHint().width());
-       if (fromLabel->sizeHint().height()!=-1)
-               fromLabel->setMinimumHeight(fromLabel->sizeHint().height());
-       if (fromLabel->sizeHint().width()!=-1)
-               fromLabel->setMaximumWidth(fromLabel->sizeHint().width());
-       if (fromLabel->sizeHint().height()!=-1)
-               fromLabel->setMaximumHeight(fromLabel->sizeHint().height());
-       if (toLabel->sizeHint().width()!=-1)
-               toLabel->setMinimumWidth(toLabel->sizeHint().width());
-       if (toLabel->sizeHint().height()!=-1)
-               toLabel->setMinimumHeight(toLabel->sizeHint().height());
-       if (toLabel->sizeHint().width()!=-1)
-               toLabel->setMaximumWidth(toLabel->sizeHint().width());
-       if (toLabel->sizeHint().height()!=-1)
-               toLabel->setMaximumHeight(toLabel->sizeHint().height());
-       if (oddpages->sizeHint().width()!=-1)
-               oddpages->setMinimumWidth(oddpages->sizeHint().width());
-       if (oddpages->sizeHint().height()!=-1)
-               oddpages->setMinimumHeight(oddpages->sizeHint().height());
-       if (oddpages->sizeHint().width()!=-1)
-               oddpages->setMaximumWidth(oddpages->sizeHint().width());
-       if (oddpages->sizeHint().height()!=-1)
-               oddpages->setMaximumHeight(oddpages->sizeHint().height());
-       if (toprinter->sizeHint().width()!=-1)
-               toprinter->setMinimumWidth(toprinter->sizeHint().width());
-       if (toprinter->sizeHint().height()!=-1)
-               toprinter->setMinimumHeight(toprinter->sizeHint().height());
-       if (toprinter->sizeHint().width()!=-1)
-               toprinter->setMaximumWidth(toprinter->sizeHint().width());
-       if (toprinter->sizeHint().height()!=-1)
-               toprinter->setMaximumHeight(toprinter->sizeHint().height());
-       if (tofile->sizeHint().width()!=-1)
-               tofile->setMinimumWidth(tofile->sizeHint().width());
-       if (tofile->sizeHint().height()!=-1)
-               tofile->setMinimumHeight(tofile->sizeHint().height());
-       if (tofile->sizeHint().width()!=-1)
-               tofile->setMaximumWidth(tofile->sizeHint().width());
-       if (tofile->sizeHint().height()!=-1)
-               tofile->setMaximumHeight(tofile->sizeHint().height());
-       if (printername->sizeHint().width()!=-1)
-               printername->setMinimumWidth(printername->sizeHint().width());
-       if (printername->sizeHint().height()!=-1)
-               printername->setMinimumHeight(printername->sizeHint().height());
-       if (printername->sizeHint().height()!=-1)
-               printername->setMaximumHeight(printername->sizeHint().height());
-       if (reverse->sizeHint().width()!=-1)
-               reverse->setMinimumWidth(reverse->sizeHint().width());
-       if (reverse->sizeHint().height()!=-1)
-               reverse->setMinimumHeight(reverse->sizeHint().height());
-       if (reverse->sizeHint().width()!=-1)
-               reverse->setMaximumWidth(reverse->sizeHint().width());
-       if (reverse->sizeHint().height()!=-1)
-               reverse->setMaximumHeight(reverse->sizeHint().height());
-       if (filename->sizeHint().width()!=-1)
-               filename->setMinimumWidth(filename->sizeHint().width());
-       if (filename->sizeHint().height()!=-1)
-               filename->setMinimumHeight(filename->sizeHint().height());
-       if (filename->sizeHint().height()!=-1)
-               filename->setMaximumHeight(filename->sizeHint().height());
-       if (sort->sizeHint().width()!=-1)
-               sort->setMinimumWidth(sort->sizeHint().width());
-       if (sort->sizeHint().height()!=-1)
-               sort->setMinimumHeight(sort->sizeHint().height());
-       if (sort->sizeHint().width()!=-1)
-               sort->setMaximumWidth(sort->sizeHint().width());
-       if (sort->sizeHint().height()!=-1)
-               sort->setMaximumHeight(sort->sizeHint().height());
-       if (browse->sizeHint().width()!=-1)
-               browse->setMinimumWidth(browse->sizeHint().width());
-       if (browse->sizeHint().height()!=-1)
-               browse->setMinimumHeight(browse->sizeHint().height());
-       if (browse->sizeHint().width()!=-1)
-               browse->setMaximumWidth(browse->sizeHint().width());
-       if (browse->sizeHint().height()!=-1)
-               browse->setMaximumHeight(browse->sizeHint().height());
-       if (count->sizeHint().width()!=-1)
-               count->setMinimumWidth(count->sizeHint().width());
-       if (count->sizeHint().height()!=-1)
-               count->setMinimumHeight(count->sizeHint().height());
-       if (count->sizeHint().height()!=-1)
-               count->setMaximumHeight(count->sizeHint().height());
-       if (countLabel->sizeHint().width()!=-1)
-               countLabel->setMinimumWidth(countLabel->sizeHint().width());
-       if (countLabel->sizeHint().height()!=-1)
-               countLabel->setMinimumHeight(countLabel->sizeHint().height());
-       if (countLabel->sizeHint().width()!=-1)
-               countLabel->setMaximumWidth(countLabel->sizeHint().width());
-       if (countLabel->sizeHint().height()!=-1)
-               countLabel->setMaximumHeight(countLabel->sizeHint().height());
-       if (to->sizeHint().width()!=-1)
-               to->setMinimumWidth(to->sizeHint().width());
-       if (to->sizeHint().height()!=-1)
-               to->setMinimumHeight(to->sizeHint().height());
-       if (to->sizeHint().height()!=-1)
-               to->setMaximumHeight(to->sizeHint().height());
-       QGridLayout* qtarch_layout_1 = new QGridLayout( this, 2, 1, 5, 5, NULL );
-       qtarch_layout_1->addColSpacing( 0, 5 );
-       qtarch_layout_1->setColStretch( 0, 1 );
-       qtarch_layout_1->addRowSpacing( 0, 0 );
-       qtarch_layout_1->setRowStretch( 0, 5 );
-       QBoxLayout* qtarch_layout_1_1_1 = new QBoxLayout( QBoxLayout::LeftToRight, 5, NULL );
-       qtarch_layout_1->addLayout( qtarch_layout_1_1_1, 0, 0 );
-       qtarch_layout_1_1_1->addStrut( 0 );
-       qtarch_layout_1_1_1->addWidget( pagesGroupBox, 1, 36 );
-       QBoxLayout* qtarch_layout_1_1_1_1 = new QBoxLayout( pagesGroupBox, QBoxLayout::TopToBottom, 5, 5, NULL );
-       qtarch_layout_1_1_1_1->addStrut( 0 );
-       qtarch_layout_1_1_1_1->addSpacing( 12 );
-       qtarch_layout_1_1_1_1->addWidget( pagesRadioGroup, 4, 33 );
-       QBoxLayout* qtarch_layout_1_1_1_1_2 = new QBoxLayout( pagesRadioGroup, QBoxLayout::TopToBottom, 5, 5, NULL );
-       qtarch_layout_1_1_1_1_2->addStrut( 0 );
-       qtarch_layout_1_1_1_1_2->addStretch( 1 );
-       qtarch_layout_1_1_1_1_2->addWidget( allpages, 1, 1 );
-       qtarch_layout_1_1_1_1_2->addStretch( 1 );
-       qtarch_layout_1_1_1_1_2->addWidget( oddpages, 1, 1 );
-       qtarch_layout_1_1_1_1_2->addStretch( 1 );
-       qtarch_layout_1_1_1_1_2->addWidget( evenpages, 1, 1 );
-       qtarch_layout_1_1_1_1_2->addStretch( 1 );
-       QBoxLayout* qtarch_layout_1_1_1_1_3 = new QBoxLayout( QBoxLayout::LeftToRight, 5, NULL );
-       qtarch_layout_1_1_1_1->addLayout( qtarch_layout_1_1_1_1_3, 1 );
-       qtarch_layout_1_1_1_1_3->addStrut( 0 );
-       qtarch_layout_1_1_1_1_3->addWidget( fromLabel, 2, 36 );
-       qtarch_layout_1_1_1_1_3->addWidget( from, 1, 36 );
-       QBoxLayout* qtarch_layout_1_1_1_1_4 = new QBoxLayout( QBoxLayout::LeftToRight, 5, NULL );
-       qtarch_layout_1_1_1_1->addLayout( qtarch_layout_1_1_1_1_4, 1 );
-       qtarch_layout_1_1_1_1_4->addStrut( 0 );
-       qtarch_layout_1_1_1_1_4->addWidget( toLabel, 2, 36 );
-       qtarch_layout_1_1_1_1_4->addWidget( to, 1, 36 );
-       qtarch_layout_1_1_1_1->addWidget( reverse, 1, 36 );
-       QBoxLayout* qtarch_layout_1_1_1_2 = new QBoxLayout( QBoxLayout::TopToBottom, 5, NULL );
-       qtarch_layout_1_1_1->addLayout( qtarch_layout_1_1_1_2, 2 );
-       qtarch_layout_1_1_1_2->addStrut( 0 );
-       qtarch_layout_1_1_1_2->addWidget( copies, 1, 36 );
-       QBoxLayout* qtarch_layout_1_1_1_2_1 = new QBoxLayout( copies, QBoxLayout::TopToBottom, 5, 5, NULL );
-       qtarch_layout_1_1_1_2_1->addStrut( 0 );
-       qtarch_layout_1_1_1_2_1->addSpacing( 7 );
-       QBoxLayout* qtarch_layout_1_1_1_2_1_2 = new QBoxLayout( QBoxLayout::LeftToRight, 5, NULL );
-       qtarch_layout_1_1_1_2_1->addLayout( qtarch_layout_1_1_1_2_1_2, 1 );
-       qtarch_layout_1_1_1_2_1_2->addStrut( 0 );
-       qtarch_layout_1_1_1_2_1_2->addStretch( 1 );
-       qtarch_layout_1_1_1_2_1_2->addWidget( countLabel, 1, 36 );
-       qtarch_layout_1_1_1_2_1_2->addStretch( 1 );
-       qtarch_layout_1_1_1_2_1_2->addWidget( count, 1, 36 );
-       qtarch_layout_1_1_1_2_1_2->addStretch( 1 );
-       qtarch_layout_1_1_1_2_1_2->addWidget( sort, 1, 36 );
-       qtarch_layout_1_1_1_2_1->addSpacing( 3 );
-       qtarch_layout_1_1_1_2->addWidget( printToGroupBox, 3, 36 );
-       QBoxLayout* qtarch_layout_1_1_1_2_2 = new QBoxLayout( printToGroupBox, QBoxLayout::TopToBottom, 5, 5, NULL );
-       qtarch_layout_1_1_1_2_2->addStrut( 0 );
-       qtarch_layout_1_1_1_2_2->addSpacing( 12 );
-       qtarch_layout_1_1_1_2_2->addStretch( 1 );
-       QBoxLayout* qtarch_layout_1_1_1_2_2_3 = new QBoxLayout( QBoxLayout::LeftToRight, 5, NULL );
-       qtarch_layout_1_1_1_2_2->addLayout( qtarch_layout_1_1_1_2_2_3, 3 );
-       qtarch_layout_1_1_1_2_2_3->addStrut( 0 );
-       qtarch_layout_1_1_1_2_2_3->addSpacing( 7 );
-       qtarch_layout_1_1_1_2_2_3->addWidget( printToRadioGroup, 1, 33 );
-       QBoxLayout* qtarch_layout_1_1_1_2_2_3_2 = new QBoxLayout( printToRadioGroup, QBoxLayout::TopToBottom, 5, 5, NULL );
-       qtarch_layout_1_1_1_2_2_3_2->addStrut( 0 );
-       qtarch_layout_1_1_1_2_2_3_2->addWidget( toprinter, 1, 1 );
-       qtarch_layout_1_1_1_2_2_3_2->addStretch( 1 );
-       qtarch_layout_1_1_1_2_2_3_2->addWidget( tofile, 1, 1 );
-       QBoxLayout* qtarch_layout_1_1_1_2_2_3_3 = new QBoxLayout( QBoxLayout::TopToBottom, 5, NULL );
-       qtarch_layout_1_1_1_2_2_3->addLayout( qtarch_layout_1_1_1_2_2_3_3, 1 );
-       qtarch_layout_1_1_1_2_2_3_3->addStrut( 0 );
-       qtarch_layout_1_1_1_2_2_3_3->addWidget( printername, 1, 36 );
-       qtarch_layout_1_1_1_2_2_3_3->addStretch( 1 );
-       qtarch_layout_1_1_1_2_2_3_3->addWidget( filename, 1, 36 );
-       qtarch_layout_1_1_1_2_2_3->addSpacing( 7 );
-       qtarch_layout_1_1_1_2_2->addStretch( 1 );
-       QBoxLayout* qtarch_layout_1_1_1_2_2_5 = new QBoxLayout( QBoxLayout::LeftToRight, 5, NULL );
-       qtarch_layout_1_1_1_2_2->addLayout( qtarch_layout_1_1_1_2_2_5, 1 );
-       qtarch_layout_1_1_1_2_2_5->addStrut( 0 );
-       qtarch_layout_1_1_1_2_2_5->addStretch( 1 );
-       qtarch_layout_1_1_1_2_2_5->addWidget( browse, 1, 36 );
-       qtarch_layout_1_1_1_2_2_5->addSpacing( 7 );
-       qtarch_layout_1_1_1_2_2->addStretch( 1 );
-       qtarch_layout_1->addRowSpacing( 1, 0 );
-       qtarch_layout_1->setRowStretch( 1, 1 );
-       QBoxLayout* qtarch_layout_1_2_1 = new QBoxLayout( QBoxLayout::LeftToRight, 5, NULL );
-       qtarch_layout_1->addLayout( qtarch_layout_1_2_1, 1, 0 );
-       qtarch_layout_1_2_1->addStrut( 0 );
-       qtarch_layout_1_2_1->addStretch( 1 );
-       qtarch_layout_1_2_1->addWidget( print, 1, 36 );
-       qtarch_layout_1_2_1->addStretch( 2 );
-       qtarch_layout_1_2_1->addWidget( cancel, 1, 36 );
-       qtarch_layout_1_2_1->addStretch( 1 );
-       resize( 435,255 );
-       setMinimumSize( 0, 0 );
-       setMaximumSize( 32767, 32767 );
-}
-
-
-FormPrintDialogData::~FormPrintDialogData()
-{
-}
-void FormPrintDialogData::clickedPrint()
-{
-}
-void FormPrintDialogData::clickedCancel()
-{
-}
-void FormPrintDialogData::clickedBrowse()
-{
-}
diff --git a/src/frontends/kde/formprintdialogdata.h b/src/frontends/kde/formprintdialogdata.h
deleted file mode 100644 (file)
index b3d08ba..0000000
+++ /dev/null
@@ -1,76 +0,0 @@
-/**********************************************************************
-
-       --- Qt Architect generated file ---
-
-       File: formprintdialogdata.h
-       Last generated: Fri Oct 13 16:07:46 2000
-
-       DO NOT EDIT!!!  This file will be automatically
-       regenerated by qtarch.  All changes will be lost.
-
- *********************************************************************/
-
-#ifndef FormPrintDialogData_included
-#define FormPrintDialogData_included
-
-#include <qwidget.h>
-#include <qlabel.h>
-#include <qradiobutton.h>
-#include <qcheckbox.h>
-#include <qpushbutton.h>
-#include <qgroupbox.h>
-#include <keditcl.h>
-#include <qlineedit.h>
-#include <qbuttongroup.h>
-
-class FormPrintDialogData : public QWidget
-{
-    Q_OBJECT
-
-public:
-
-    FormPrintDialogData
-    (
-        QWidget* parent = NULL,
-        const char* name = NULL
-    );
-
-    virtual ~FormPrintDialogData();
-
-public slots:
-
-
-protected slots:
-
-    virtual void clickedCancel();
-    virtual void clickedBrowse();
-    virtual void clickedPrint();
-
-protected:
-    QGroupBox* pagesGroupBox;
-    QButtonGroup* pagesRadioGroup;
-    QGroupBox* copies;
-    QGroupBox* printToGroupBox;
-    QButtonGroup* printToRadioGroup;
-    QPushButton* print;
-    QPushButton* cancel;
-    QRadioButton* allpages;
-    QRadioButton* evenpages;
-    KIntLineEdit* from;
-    QLabel* fromLabel;
-    QLabel* toLabel;
-    QRadioButton* oddpages;
-    QRadioButton* toprinter;
-    QRadioButton* tofile;
-    QLineEdit* printername;
-    QCheckBox* reverse;
-    QLineEdit* filename;
-    QCheckBox* sort;
-    QPushButton* browse;
-    KIntLineEdit* count;
-    QLabel* countLabel;
-    KIntLineEdit* to;
-
-};
-
-#endif // FormPrintDialogData_included
diff --git a/src/frontends/kde/formrefdialog.C b/src/frontends/kde/formrefdialog.C
deleted file mode 100644 (file)
index ce15413..0000000
+++ /dev/null
@@ -1,175 +0,0 @@
-/*
- * formrefdialog.C
- * (C) 2000 LyX Team
- * John Levon, moz@compsoc.man.ac.uk
- */
-
-/***************************************************************************
- *                                                                         *
- *   This program is free software; you can redistribute it and/or modify  *
- *   it under the terms of the GNU General Public License as published by  *
- *   the Free Software Foundation; either version 2 of the License, or     *
- *   (at your option) any later version.                                   *
- *                                                                         *
- ***************************************************************************/
-
-#include "formrefdialog.h"
-
-FormRefDialog::FormRefDialog(FormRef *form, QWidget *parent, const char *name, bool, WFlags)
-       : QDialog(parent,name,false), form_(form)
-{
-       setCaption(name);
-
-       // widgets
-
-       refs = new QListBox(this);
-       refs->setMinimumSize(200,200);
-       labelrefs = new QLabel(this);
-       labelrefs->setText(_("Available References"));
-       labelrefs->setMargin(5);
-       labelrefs->setMinimumSize(labelrefs->sizeHint());
-       labelrefs->setMaximumSize(labelrefs->sizeHint());
-
-       refname = new QLineEdit(this);
-       refname->setMinimumSize(refname->sizeHint());
-       // FIXME: should user be able to edit this ? what's it for ? - jbl 
-       refname->setFocusPolicy(QWidget::NoFocus);
-       reference = new QLineEdit(this); 
-       reference->setMinimumSize(reference->sizeHint());
-       reference->setFocusPolicy(QWidget::NoFocus);
-
-       labelrefname = new QLabel(this);
-       labelrefname->setText(_("Name :"));
-       labelrefname->setMargin(5);
-       labelrefname->setMinimumSize(labelrefname->sizeHint());
-       labelrefname->setMaximumSize(labelrefname->sizeHint());
-
-       labelreference = new QLabel(this);
-       labelreference->setText(_("Reference :"));
-       labelreference->setMargin(5);
-       labelreference->setMinimumSize(labelreference->sizeHint());
-       labelreference->setMaximumSize(labelreference->sizeHint());
-
-       sort = new QCheckBox(this); 
-       sort->setText(_("Sort"));
-       sort->setMinimumSize(sort->sizeHint());
-       sort->setMaximumSize(sort->sizeHint());
-       type = new QComboBox(this);
-       type->insertItem(_("Reference"));
-       type->insertItem(_("Page number"));
-       type->insertItem(_("Ref on page xxx"));
-       type->insertItem(_("on page xxx"));
-       type->insertItem(_("Pretty reference"));
-       type->setMinimumSize(type->sizeHint());
-        
-       labeltype = new QLabel(this); 
-       labeltype->setText(_("Reference Type"));
-       labeltype->setMargin(5);
-       labeltype->setMinimumSize(labeltype->sizeHint());
-       labeltype->setMaximumSize(labeltype->sizeHint());
-       buttonGoto = new QPushButton(this);
-       buttonGoto->setText(_("&Goto reference"));
-       buttonGoto->setMinimumSize(buttonGoto->sizeHint());
-       buttonGoto->setMaximumSize(buttonGoto->sizeHint());
-
-       buttonUpdate = new QPushButton(this);
-       buttonUpdate->setText(_("&Update"));
-       buttonUpdate->setMinimumSize(buttonUpdate->sizeHint());
-       buttonUpdate->setMaximumSize(buttonUpdate->sizeHint());
-
-       buttonOk = new QPushButton(this);
-       buttonOk->setText(_("&OK"));
-       buttonOk->setMinimumSize(buttonOk->sizeHint());
-       buttonOk->setMaximumSize(buttonOk->sizeHint());
-       buttonOk->setDefault(true);
-
-       buttonCancel = new QPushButton(this);
-       buttonCancel->setText(_("&Cancel"));
-       buttonCancel->setMinimumSize(buttonCancel->sizeHint());
-       buttonCancel->setMaximumSize(buttonCancel->sizeHint());
-
-       // tooltips
-
-       QToolTip::add(type,_("Reference as it appears in output"));
-       QToolTip::add(sort,_("Sort references in alphabetical order ?"));
-
-       // layouts
-
-       topLayout = new QHBoxLayout(this,10);
-
-       layout = new QVBoxLayout();
-       topLayout->addLayout(layout);
-       layout->addSpacing(10);
-
-       upperLayout = new QHBoxLayout();
-       layout->addLayout(upperLayout, 1);
-
-       browserLayout = new QVBoxLayout();
-       upperLayout->addLayout(browserLayout, 1);
-
-       browserLayout->addWidget(labelrefs, 0);
-       browserLayout->addWidget(refs, 1);
-
-       rightLayout = new QVBoxLayout();
-       upperLayout->addLayout(rightLayout, 1);
-
-       nameLayout = new QHBoxLayout();
-       rightLayout->addLayout(nameLayout, 0);
-
-       nameLayout->addWidget(labelrefname, 0);
-       nameLayout->addWidget(refname, 1);
-
-       rightLayout->addStretch(1);
-       referenceLayout = new QHBoxLayout();
-       rightLayout->addLayout(referenceLayout, 0);
-
-       referenceLayout->addWidget(labelreference, 0);
-       referenceLayout->addWidget(reference, 1);
-       rightLayout->addStretch(1);
-       rightLayout->addWidget(labeltype, 0);
-       rightLayout->addWidget(type, 0);
-       rightLayout->addStretch(1);
-       rightLayout->addWidget(buttonGoto, 1);
-
-       rightLayout->addStretch(1);
-       buttonLayout = new QHBoxLayout(); 
-       layout->addLayout(buttonLayout);
-       buttonLayout->addWidget(sort, 1);
-       buttonLayout->addStretch(1);
-       buttonLayout->addWidget(buttonUpdate, 1);
-       buttonLayout->addStretch(1);
-       buttonLayout->addWidget(buttonOk, 1);
-       buttonLayout->addStretch(2);
-       buttonLayout->addWidget(buttonCancel, 1);
-       buttonLayout->addStretch(1);
-       // connections
-
-       connect(refs, SIGNAL(highlighted(const char *)), this, SLOT(highlight_adaptor(const char *))); 
-       connect(refs, SIGNAL(selected(const char *)), this, SLOT(select_adaptor(const char *)));
-       connect(sort, SIGNAL(toggled(bool)), this, SLOT(sort_adaptor(bool))); 
-       connect(buttonOk, SIGNAL(clicked()), this, SLOT(apply_adaptor()));
-       connect(buttonUpdate, SIGNAL(clicked()), this, SLOT(update_adaptor()));
-       connect(buttonGoto, SIGNAL(clicked()), this, SLOT(goto_adaptor())); 
-       connect(buttonCancel, SIGNAL(clicked()), this, SLOT(close_adaptor()));
-}
-
-void FormRefDialog::closeEvent(QCloseEvent *e)
-{
-       form_->close();
-       e->accept();
-}
-
-FormRefDialog::~FormRefDialog()
-{
-}
diff --git a/src/frontends/kde/formrefdialog.h b/src/frontends/kde/formrefdialog.h
deleted file mode 100644 (file)
index 7dac239..0000000
+++ /dev/null
@@ -1,114 +0,0 @@
-/*
- * formrefdialog.h
- * (C) 2000 LyX Team
- * John Levon, moz@compsoc.man.ac.uk
- */
-
-/***************************************************************************
- *                                                                         *
- *   This program is free software; you can redistribute it and/or modify  *
- *   it under the terms of the GNU General Public License as published by  *
- *   the Free Software Foundation; either version 2 of the License, or     *
- *   (at your option) any later version.                                   *
- *                                                                         *
- ***************************************************************************/
-
-#ifndef FORMREFDIALOG_H
-#define FORMREFDIALOG_H
-
-#include <config.h>
-#include <gettext.h>
-
-#include "FormRef.h"
-
-#include <qdialog.h>
-#include <qlayout.h>
-#include <qcombobox.h> 
-#include <qcheckbox.h>
-#include <qlistbox.h>
-#include <qlabel.h>
-#include <qtooltip.h>
-#include <qlineedit.h>
-#include <qpushbutton.h>
-
-class FormRefDialog : public QDialog  {
-   Q_OBJECT
-public:
-       FormRefDialog(FormRef *form, QWidget *parent=0, const char *name=0,
-                           bool modal=false, WFlags f=0);
-       ~FormRefDialog();
-
-       // widgets
-       QListBox *refs;
-       QLabel *labelrefs;
-       QLineEdit *refname;
-       QLineEdit *reference;
-       QLabel *labelrefname;
-       QLabel *labelreference;
-       QCheckBox *sort;
-       QComboBox *type; 
-       QLabel *labeltype; 
-       QPushButton *buttonGoto;
-       QPushButton *buttonUpdate;
-       QPushButton *buttonOk;
-       QPushButton *buttonCancel;
-protected:
-       void closeEvent(QCloseEvent *e);
-private:
-       FormRef *form_;
-
-       // layouts
-       QHBoxLayout *topLayout;
-       QVBoxLayout *layout;
-       QHBoxLayout *upperLayout;
-       QVBoxLayout *browserLayout;
-       QVBoxLayout *rightLayout;
-       QHBoxLayout *nameLayout;
-       QHBoxLayout *referenceLayout; 
-       QHBoxLayout *buttonLayout;
-
-private slots:
-       /// adaptor to FormRef::select
-       void select_adaptor(const char *sel) {
-               form_->select(sel);
-       }
-
-       /// adaptor to FormRef::highlight
-       void highlight_adaptor(const char *sel) {
-               form_->highlight(sel); 
-       }
-
-       /// adaptor to FormRef::set_sort
-       void sort_adaptor(bool sort) {
-               form_->set_sort(sort);
-       } 
-
-       /// adaptor to FormRef::gotoRef
-       void goto_adaptor(void) {
-               form_->goto_ref();
-       }
-       /// adaptor to FormRef::update
-       void update_adaptor(void) {
-               form_->do_ref_update();
-       }
-       /// adaptor to FormRef::apply
-       void apply_adaptor(void) {
-               form_->apply();
-               form_->close();
-               hide();
-       }
-
-       /// adaptor to FormRef::close
-       void close_adaptor(void) {
-               form_->close();
-               hide();
-       }
-};
-
-#endif
diff --git a/src/frontends/kde/formtocdialog.C b/src/frontends/kde/formtocdialog.C
deleted file mode 100644 (file)
index 5d671cb..0000000
+++ /dev/null
@@ -1,99 +0,0 @@
-/*
- * formtocdialog.C
- * (C) 2000 LyX Team
- * John Levon, moz@compsoc.man.ac.uk
- */
-
-/***************************************************************************
- *                                                                         *
- *   This program is free software; you can redistribute it and/or modify  *
- *   it under the terms of the GNU General Public License as published by  *
- *   the Free Software Foundation; either version 2 of the License, or     *
- *   (at your option) any later version.                                   *
- *                                                                         *
- ***************************************************************************/
-
-#include "formtocdialog.h"
-
-FormTocDialog::FormTocDialog(FormToc *form, QWidget *parent, const char *name, bool, WFlags)
-       : QDialog(parent,name,false), form_(form)
-{
-       setCaption(name);
-       setMinimumWidth(350);
-
-       // widgets
-
-       menu = new QComboBox(this);
-       menu->insertItem(_("Table of Contents"));
-       menu->insertItem(_("List of Figures"));
-       menu->insertItem(_("List of Tables"));
-       menu->insertItem(_("List of Algorithms"));
-       menu->setMinimumSize(menu->sizeHint());
-
-       tree = new QListView(this);
-       tree->setMinimumHeight(200);
-       tree->setRootIsDecorated(true);
-       tree->setSorting(-1);
-       tree->addColumn("Table of Contents");
-
-        buttonUpdate = new QPushButton(this);
-        buttonUpdate->setMinimumSize(buttonUpdate->sizeHint());
-        buttonUpdate->setMaximumSize(buttonUpdate->sizeHint());
-        buttonUpdate->setText(_("&Update"));
-
-        buttonClose = new QPushButton(this);
-        buttonClose->setMinimumSize(buttonClose->sizeHint());
-        buttonClose->setMaximumSize(buttonClose->sizeHint());
-        buttonClose->setText(_("&Close"));
-        buttonClose->setDefault(true);
-
-       depth = new QSlider(0, 5, 1, 1, QSlider::Horizontal, this);
-       depth->setMinimumSize(depth->sizeHint());
-       depth->setTickInterval(1);
-       depth->setTracking(true);
-
-       depthlabel = new QLabel(this);
-       depthlabel->setText(_("Depth"));
-       depthlabel->setMinimumSize(depthlabel->sizeHint()); 
-       depthlabel->setMaximumSize(depthlabel->sizeHint()); 
-       // layouts
-
-        topLayout = new QHBoxLayout(this,10);
-
-        layout = new QVBoxLayout();
-        topLayout->addLayout(layout);
-        layout->addSpacing(10);
-
-       layout->addWidget(menu,0);
-       layout->addWidget(tree,1);
-       layout->addWidget(depthlabel,0,AlignLeft);
-       layout->addWidget(depth,0);
-
-        buttonLayout = new QHBoxLayout();
-
-        layout->addLayout(buttonLayout);
-        buttonLayout->addStretch(1);
-       buttonLayout->addWidget(buttonUpdate, 1);
-       buttonLayout->addStretch(2);
-        buttonLayout->addWidget(buttonClose, 1);
-        buttonLayout->addStretch(1);
-
-       // connections
-
-       connect(tree, SIGNAL(selectionChanged(QListViewItem *)), this, SLOT(select_adaptor(QListViewItem *)));
-       connect(menu, SIGNAL(activated(int)), this, SLOT(activate_adaptor(int)));
-       connect(buttonUpdate, SIGNAL(clicked()), this, SLOT(update_adaptor()));
-       connect(buttonClose, SIGNAL(clicked()), this, SLOT(close_adaptor()));
-       connect(depth, SIGNAL(valueChanged(int)), this, SLOT(depth_adaptor(int)));
-}
-
-void FormTocDialog::closeEvent(QCloseEvent *e)
-{
-       form_->close();
-       e->accept();
-}
-
-FormTocDialog::~FormTocDialog()
-{
-}
diff --git a/src/frontends/kde/formtocdialog.h b/src/frontends/kde/formtocdialog.h
deleted file mode 100644 (file)
index 5ce697a..0000000
+++ /dev/null
@@ -1,105 +0,0 @@
-/*
- * formtocdialog.h
- * (C) 2000 LyX Team
- * John Levon, moz@compsoc.man.ac.uk
- */
-
-/***************************************************************************
- *                                                                         *
- *   This program is free software; you can redistribute it and/or modify  *
- *   it under the terms of the GNU General Public License as published by  *
- *   the Free Software Foundation; either version 2 of the License, or     *
- *   (at your option) any later version.                                   *
- *                                                                         *
- ***************************************************************************/
-
-#ifndef FORMTOCDIALOG_H
-#define FORMTOCDIALOG_H
-
-#include <config.h>
-#include <gettext.h>
-
-#include <debug.h>
-#include <qlabel.h> 
-#include <qdialog.h>
-#include <qlayout.h>
-#include <qpushbutton.h>
-#include <qcombobox.h>
-#include <qlistview.h>
-#include <qslider.h>
-
-#include "FormToc.h"
-
-class FormTocDialog : public QDialog  {
-   Q_OBJECT
-public:
-       FormTocDialog(FormToc *form, QWidget *parent=0, const char *name=0,
-                           bool modal=false, WFlags f=0);
-       ~FormTocDialog();
-
-       // widgets
-
-       QComboBox *menu;
-       QListView *tree;
-       QPushButton *buttonUpdate;
-       QPushButton *buttonClose;
-       QSlider *depth;
-       QLabel *depthlabel; 
-
-protected:
-       void closeEvent(QCloseEvent *e);
-
-private:
-       FormToc *form_;
-
-       // layouts 
-
-       QHBoxLayout *topLayout;
-       QVBoxLayout *layout;
-       QHBoxLayout *buttonLayout;
-
-private slots:
-       /// adaptor to FormToc::select
-       void select_adaptor(QListViewItem *item) {
-               form_->select(item->text(0));
-       }
-
-       /// adaptor to FormToc::set_depth
-       void depth_adaptor(int depth) {
-               form_->set_depth(depth);
-       }
-
-       /// adaptor to FormToc::update
-       void update_adaptor(void) {
-               form_->update();
-       }
-
-       // adaptors to FormToc::set_type
-       void activate_adaptor(int index) {
-               switch (index) {
-                       case 0:
-                               form_->set_type(Buffer::TOC_TOC);
-                               break;
-                       case 1:
-                               form_->set_type(Buffer::TOC_LOF);
-                               break;
-                       case 2:
-                               form_->set_type(Buffer::TOC_LOT);
-                               break;
-                       case 3:
-                               form_->set_type(Buffer::TOC_LOA);
-                               break;
-                       default:
-                               lyxerr[Debug::GUI] << "Unknown TOC combo selection." << std::endl;
-                               break;
-               }
-       }
-
-       /// adaptor to FormToc::close
-       void close_adaptor(void) {
-               form_->close();
-               hide();
-       }
-};
-
-#endif
diff --git a/src/frontends/kde/formurldialog.C b/src/frontends/kde/formurldialog.C
deleted file mode 100644 (file)
index 609d2b2..0000000
+++ /dev/null
@@ -1,114 +0,0 @@
-/*
- * formurldialog.C
- * (C) 2000 LyX Team
- * John Levon, moz@compsoc.man.ac.uk
- */
-
-/***************************************************************************
- *                                                                         *
- *   This program is free software; you can redistribute it and/or modify  *
- *   it under the terms of the GNU General Public License as published by  *
- *   the Free Software Foundation; either version 2 of the License, or     *
- *   (at your option) any later version.                                   *
- *                                                                         *
- ***************************************************************************/
-
-#include "formurldialog.h"
-
-FormUrlDialog::FormUrlDialog(FormUrl *form, QWidget *parent, const char *name, bool, WFlags)
-       : QDialog(parent,name,false), form_(form)
-{
-       setCaption(name);
-
-       // widgets
-
-       url = new QLineEdit(this);
-       url->setMinimumSize(url->sizeHint());
-
-       urlname = new QLineEdit(this);
-       urlname->setMinimumSize(urlname->sizeHint());
-
-       labelurl = new QLabel(this);
-       labelurl->setText(_("Url :"));
-       labelurl->setMargin(5);
-       labelurl->setMinimumSize(labelurl->sizeHint());
-       labelurl->setMaximumSize(labelurl->sizeHint());
-
-       labelurlname = new QLabel(this);
-       labelurlname->setText(_("Name :"));
-       labelurlname->setMargin(5);
-       labelurlname->setMinimumSize(labelurlname->sizeHint());
-       labelurlname->setMaximumSize(labelurlname->sizeHint());
-
-       htmlurl = new QCheckBox(this);
-       htmlurl->setText(_("Generate hyperlink"));
-       htmlurl->setMinimumSize(htmlurl->sizeHint());
-       htmlurl->setMaximumSize(htmlurl->sizeHint());
-
-       buttonOk = new QPushButton(this);
-       buttonOk->setMinimumSize(buttonOk->sizeHint());
-       buttonOk->setMaximumSize(buttonOk->sizeHint());
-       buttonOk->setText(_("&OK"));
-       buttonOk->setDefault(true);
-
-       buttonCancel = new QPushButton(this);
-       buttonCancel->setMinimumSize(buttonCancel->sizeHint());
-       buttonCancel->setMaximumSize(buttonCancel->sizeHint());
-       buttonCancel->setText(_("&Cancel"));
-
-       // tooltips
-
-       QToolTip::add(labelurl,_("URL"));
-       QToolTip::add(url,_("URL"));
-       QToolTip::add(labelurlname,_("Name associated with the URL"));
-       QToolTip::add(urlname,_("Name associated with the URL"));
-       QToolTip::add(htmlurl,_("Output as a hyperlink ?"));
-
-       // layouts
-
-       topLayout = new QHBoxLayout(this,10);
-
-       layout = new QVBoxLayout();
-       topLayout->addLayout(layout);
-       layout->addSpacing(10);
-       
-       urlLayout = new QHBoxLayout();
-       layout->addLayout(urlLayout);
-       urlLayout->addWidget(labelurl, 0);
-       urlLayout->addWidget(url, 1);
-
-       urlnameLayout = new QHBoxLayout();
-       layout->addLayout(urlnameLayout);
-       urlnameLayout->addWidget(labelurlname, 0);
-       urlnameLayout->addWidget(urlname, 1);
-
-       htmlurlLayout = new QHBoxLayout();
-       layout->addStretch(1);
-       layout->addLayout(htmlurlLayout);
-       layout->addStretch(1);
-       htmlurlLayout->addWidget(htmlurl);
-       htmlurlLayout->addStretch(1);
-
-       buttonLayout = new QHBoxLayout();
-       layout->addLayout(buttonLayout);
-       buttonLayout->addStretch(1);
-       buttonLayout->addWidget(buttonOk, 1);
-       buttonLayout->addStretch(2);
-       buttonLayout->addWidget(buttonCancel, 1);
-       buttonLayout->addStretch(1);
-
-       // connections
-
-       connect(buttonOk, SIGNAL(clicked()), this, SLOT(apply_adaptor()));
-       connect(buttonCancel, SIGNAL(clicked()), this, SLOT(close_adaptor()));
-}
-
-void FormUrlDialog::closeEvent(QCloseEvent *e)
-{
-       form_->close();
-       e->accept();
-}
-
-FormUrlDialog::~FormUrlDialog()
-{
-}
diff --git a/src/frontends/kde/formurldialog.h b/src/frontends/kde/formurldialog.h
deleted file mode 100644 (file)
index e67321b..0000000
+++ /dev/null
@@ -1,80 +0,0 @@
-/*
- * formurldialog.h
- * (C) 2000 LyX Team
- * John Levon, moz@compsoc.man.ac.uk
- */
-
-/***************************************************************************
- *                                                                         *
- *   This program is free software; you can redistribute it and/or modify  *
- *   it under the terms of the GNU General Public License as published by  *
- *   the Free Software Foundation; either version 2 of the License, or     *
- *   (at your option) any later version.                                   *
- *                                                                         *
- ***************************************************************************/
-
-#ifndef FORMURLDIALOG_H
-#define FORMURLDIALOG_H
-
-#include <config.h>
-#include <gettext.h>
-
-// to connect apply() and hide()
-#include "FormUrl.h"
-
-#include <qdialog.h>
-#include <qlayout.h>
-#include <qlabel.h>
-#include <qtooltip.h>
-#include <qcheckbox.h>
-#include <qlineedit.h>
-#include <qpushbutton.h>
-
-class FormUrlDialog : public QDialog  {
-   Q_OBJECT
-public:
-       FormUrlDialog(FormUrl *form, QWidget *parent=0, const char *name=0,
-                           bool modal=false, WFlags f=0);
-       ~FormUrlDialog();
-
-       // widgets
-       QLabel *labelurl;
-       QLabel *labelurlname;
-       QLineEdit *url;
-       QLineEdit *urlname;
-       QCheckBox *htmlurl;
-       QPushButton *buttonOk;
-       QPushButton *buttonCancel;
-
-protected:
-       void closeEvent(QCloseEvent *e);
-private:
-       FormUrl *form_;
-
-       // layouts
-       QHBoxLayout *topLayout;
-       QVBoxLayout *layout;
-       QHBoxLayout *urlLayout;
-       QBoxLayout *urlnameLayout;
-       QBoxLayout *htmlurlLayout;
-       QHBoxLayout *buttonLayout;
-
-private slots:
-       /// adaptor to FormUrl::apply
-       void apply_adaptor(void) {
-               form_->apply();
-               form_->close();
-               hide();
-       }
-
-       /// adaptor to FormUrl::close
-       void close_adaptor(void) {
-               form_->close();
-               hide();
-       }
-};
-
-#endif
diff --git a/src/frontends/kde/indexdlg.C b/src/frontends/kde/indexdlg.C
new file mode 100644 (file)
index 0000000..41b4a8d
--- /dev/null
@@ -0,0 +1,67 @@
+/**********************************************************************
+
+       --- Qt Architect generated file ---
+
+       File: indexdlg.C
+       Last generated: Thu Sep 14 12:08:37 2000
+
+ *********************************************************************/
+
+#include <config.h>
+#include <gettext.h>
+
+#include "indexdlg.h"
+#include "FormIndex.h"
+
+#include <qtooltip.h>
+
+#define Inherited IndexDialogData
+
+IndexDialog::IndexDialog(FormIndex * f, QWidget *p, const char* name)
+       : Inherited( p, name ), form_(f)
+{
+       setCaption(name);
+
+       // tooltips
+
+       QToolTip::add(labelindex,_("Index entry"));
+       QToolTip::add(index,_("Index entry"));
+
+       setMinimumSize( 200, 65 );
+       setMaximumSize( 32767, 65 );
+}
+
+
+IndexDialog::~IndexDialog()
+{
+}
+
+
+void IndexDialog::clickedOK()
+{
+    form_->apply();
+    form_->close();
+    hide();
+}
+
+
+void IndexDialog::clickedCancel()
+{
+    form_->close();
+    hide();
+}
+
+
+void IndexDialog::setReadOnly(bool readonly)
+{
+    if (readonly) {
+       index->setFocusPolicy(QWidget::NoFocus);
+       buttonOk->setEnabled(false);
+       buttonCancel->setText(_("&Close"));
+    } else {
+       index->setFocusPolicy(QWidget::StrongFocus);
+       index->setFocus();
+       buttonOk->setEnabled(true);
+       buttonCancel->setText(_("&Cancel"));
+    }
+}
diff --git a/src/frontends/kde/indexdlg.h b/src/frontends/kde/indexdlg.h
new file mode 100644 (file)
index 0000000..7c18974
--- /dev/null
@@ -0,0 +1,43 @@
+/**********************************************************************
+
+       --- Qt Architect generated file ---
+
+       File: indexdlg.h
+       Last generated: Thu Sep 14 12:08:37 2000
+
+ *********************************************************************/
+
+#ifndef IndexDialog_included
+#define IndexDialog_included
+
+#include "indexdlgdata.h"
+
+class FormIndex;
+
+class IndexDialog : public IndexDialogData
+{
+    Q_OBJECT
+
+public:
+
+    IndexDialog
+    (
+        FormIndex *, QWidget* parent = NULL,
+        const char* name = NULL
+    );
+
+    virtual ~IndexDialog();
+
+    void setIndexText(const char * str) { index->setText(str); }
+    const char * getIndexText() { return index->text(); }
+    void setReadOnly(bool);
+
+private slots:
+    void clickedOK();
+    void clickedCancel();
+
+private:
+    FormIndex *form_;
+
+};
+#endif // IndexDialog_included
diff --git a/src/frontends/kde/indexdlgdata.C b/src/frontends/kde/indexdlgdata.C
new file mode 100644 (file)
index 0000000..c949e54
--- /dev/null
@@ -0,0 +1,156 @@
+/**********************************************************************
+
+       --- Qt Architect generated file ---
+
+       File: indexdlgdata.C
+       Last generated: Sat Oct 14 03:43:39 2000
+
+       DO NOT EDIT!!!  This file will be automatically
+       regenerated by qtarch.  All changes will be lost.
+
+ *********************************************************************/
+
+#include <gettext.h>
+#include <qpixmap.h>
+#include <qlayout.h>
+#include "indexdlgdata.h"
+
+#define Inherited QWidget
+
+
+IndexDialogData::IndexDialogData
+(
+       QWidget* parent,
+       const char* name
+)
+       :
+       Inherited( parent, name, 53248 )
+{
+       labelindex = new QLabel( this, "Label_1" );
+       labelindex->setGeometry( 5, 15, 60, 25 );
+       labelindex->setMinimumSize( 60, 25 );
+       labelindex->setMaximumSize( 60, 25 );
+       labelindex->setFocusPolicy( QWidget::NoFocus );
+       labelindex->setBackgroundMode( QWidget::PaletteBackground );
+       labelindex->setFontPropagation( QWidget::NoChildren );
+       labelindex->setPalettePropagation( QWidget::NoChildren );
+       labelindex->setFrameStyle( 0 );
+       labelindex->setLineWidth( 1 );
+       labelindex->setMidLineWidth( 0 );
+       labelindex->QFrame::setMargin( 0 );
+       labelindex->setText( _("Keyword:") );
+       labelindex->setAlignment( 289 );
+       labelindex->setMargin( -1 );
+
+       index = new QLineEdit( this, "LineEdit_1" );
+       index->setGeometry( 70, 15, 175, 25 );
+       index->setMinimumSize( 125, 25 );
+       index->setMaximumSize( 32767, 25 );
+       index->setFocusPolicy( QWidget::StrongFocus );
+       index->setBackgroundMode( QWidget::PaletteBase );
+       index->setFontPropagation( QWidget::NoChildren );
+       index->setPalettePropagation( QWidget::NoChildren );
+       index->setText( _("") );
+       index->setMaxLength( 32767 );
+       index->setFrame( QLineEdit::Normal );
+       index->setFrame( TRUE );
+
+       buttonOk = new QPushButton( this, "PushButton_OK" );
+       buttonOk->setGeometry( 24, 65, 80, 25 );
+       buttonOk->setMinimumSize( 80, 25 );
+       buttonOk->setMaximumSize( 80, 25 );
+       connect( buttonOk, SIGNAL(clicked()), SLOT(clickedOK()) );
+       buttonOk->setFocusPolicy( QWidget::TabFocus );
+       buttonOk->setBackgroundMode( QWidget::PaletteBackground );
+       buttonOk->setFontPropagation( QWidget::NoChildren );
+       buttonOk->setPalettePropagation( QWidget::NoChildren );
+       buttonOk->setText( _("&OK") );
+       buttonOk->setAutoRepeat( FALSE );
+       buttonOk->setAutoResize( FALSE );
+       buttonOk->setToggleButton( FALSE );
+       buttonOk->setDefault( FALSE );
+       buttonOk->setAutoDefault( TRUE );
+       buttonOk->setIsMenuButton( FALSE );
+
+       buttonCancel = new QPushButton( this, "PushButton_Cancel" );
+       buttonCancel->setGeometry( 146, 65, 80, 25 );
+       buttonCancel->setMinimumSize( 80, 25 );
+       buttonCancel->setMaximumSize( 80, 25 );
+       connect( buttonCancel, SIGNAL(clicked()), SLOT(clickedCancel()) );
+       buttonCancel->setFocusPolicy( QWidget::TabFocus );
+       buttonCancel->setBackgroundMode( QWidget::PaletteBackground );
+       buttonCancel->setFontPropagation( QWidget::NoChildren );
+       buttonCancel->setPalettePropagation( QWidget::NoChildren );
+       buttonCancel->setText( _("&Cancel") );
+       buttonCancel->setAutoRepeat( FALSE );
+       buttonCancel->setAutoResize( FALSE );
+       buttonCancel->setToggleButton( FALSE );
+       buttonCancel->setDefault( FALSE );
+       buttonCancel->setAutoDefault( FALSE );
+       buttonCancel->setIsMenuButton( FALSE );
+
+       if (labelindex->sizeHint().width()!=-1)
+               labelindex->setMinimumWidth(labelindex->sizeHint().width());
+       if (labelindex->sizeHint().height()!=-1)
+               labelindex->setMinimumHeight(labelindex->sizeHint().height());
+       if (labelindex->sizeHint().width()!=-1)
+               labelindex->setMaximumWidth(labelindex->sizeHint().width());
+       if (labelindex->sizeHint().height()!=-1)
+               labelindex->setMaximumHeight(labelindex->sizeHint().height());
+       if (index->sizeHint().width()!=-1)
+               index->setMinimumWidth(index->sizeHint().width());
+       if (index->sizeHint().height()!=-1)
+               index->setMinimumHeight(index->sizeHint().height());
+       if (index->sizeHint().height()!=-1)
+               index->setMaximumHeight(index->sizeHint().height());
+       if (buttonOk->sizeHint().width()!=-1)
+               buttonOk->setMinimumWidth(buttonOk->sizeHint().width());
+       if (buttonOk->sizeHint().height()!=-1)
+               buttonOk->setMinimumHeight(buttonOk->sizeHint().height());
+       if (buttonOk->sizeHint().width()!=-1)
+               buttonOk->setMaximumWidth(buttonOk->sizeHint().width());
+       if (buttonOk->sizeHint().height()!=-1)
+               buttonOk->setMaximumHeight(buttonOk->sizeHint().height());
+       if (buttonCancel->sizeHint().width()!=-1)
+               buttonCancel->setMinimumWidth(buttonCancel->sizeHint().width());
+       if (buttonCancel->sizeHint().height()!=-1)
+               buttonCancel->setMinimumHeight(buttonCancel->sizeHint().height());
+       if (buttonCancel->sizeHint().width()!=-1)
+               buttonCancel->setMaximumWidth(buttonCancel->sizeHint().width());
+       if (buttonCancel->sizeHint().height()!=-1)
+               buttonCancel->setMaximumHeight(buttonCancel->sizeHint().height());
+       QGridLayout* qtarch_layout_1 = new QGridLayout( this, 2, 1, 5, 5, NULL );
+       qtarch_layout_1->addColSpacing( 0, 5 );
+       qtarch_layout_1->setColStretch( 0, 1 );
+       qtarch_layout_1->addRowSpacing( 0, 0 );
+       qtarch_layout_1->setRowStretch( 0, 0 );
+       QBoxLayout* qtarch_layout_1_1_1 = new QBoxLayout( QBoxLayout::LeftToRight, 5, NULL );
+       qtarch_layout_1->addLayout( qtarch_layout_1_1_1, 0, 0 );
+       qtarch_layout_1_1_1->addStrut( 0 );
+       qtarch_layout_1_1_1->addWidget( labelindex, 0, 36 );
+       qtarch_layout_1_1_1->addWidget( index, 1, 36 );
+       qtarch_layout_1->addRowSpacing( 1, 0 );
+       qtarch_layout_1->setRowStretch( 1, 0 );
+       QBoxLayout* qtarch_layout_1_2_1 = new QBoxLayout( QBoxLayout::LeftToRight, 5, NULL );
+       qtarch_layout_1->addLayout( qtarch_layout_1_2_1, 1, 0 );
+       qtarch_layout_1_2_1->addStrut( 0 );
+       qtarch_layout_1_2_1->addStretch( 1 );
+       qtarch_layout_1_2_1->addWidget( buttonOk, 1, 36 );
+       qtarch_layout_1_2_1->addStretch( 2 );
+       qtarch_layout_1_2_1->addWidget( buttonCancel, 1, 36 );
+       qtarch_layout_1_2_1->addStretch( 1 );
+       resize( 250,105 );
+       setMinimumSize( 200, 65 );
+       setMaximumSize( 32767, 65 );
+}
+
+
+IndexDialogData::~IndexDialogData()
+{
+}
+void IndexDialogData::clickedOK()
+{
+}
+void IndexDialogData::clickedCancel()
+{
+}
diff --git a/src/frontends/kde/indexdlgdata.h b/src/frontends/kde/indexdlgdata.h
new file mode 100644 (file)
index 0000000..ccb6737
--- /dev/null
@@ -0,0 +1,51 @@
+/**********************************************************************
+
+       --- Qt Architect generated file ---
+
+       File: indexdlgdata.h
+       Last generated: Sat Oct 14 03:43:39 2000
+
+       DO NOT EDIT!!!  This file will be automatically
+       regenerated by qtarch.  All changes will be lost.
+
+ *********************************************************************/
+
+#ifndef IndexDialogData_included
+#define IndexDialogData_included
+
+#include <qwidget.h>
+#include <qlabel.h>
+#include <qpushbutton.h>
+#include <qlineedit.h>
+
+class IndexDialogData : public QWidget
+{
+    Q_OBJECT
+
+public:
+
+    IndexDialogData
+    (
+        QWidget* parent = NULL,
+        const char* name = NULL
+    );
+
+    virtual ~IndexDialogData();
+
+public slots:
+
+
+protected slots:
+
+    virtual void clickedCancel();
+    virtual void clickedOK();
+
+protected:
+    QLabel* labelindex;
+    QLineEdit* index;
+    QPushButton* buttonOk;
+    QPushButton* buttonCancel;
+
+};
+
+#endif // IndexDialogData_included
diff --git a/src/frontends/kde/paradlg.C b/src/frontends/kde/paradlg.C
new file mode 100644 (file)
index 0000000..629a124
--- /dev/null
@@ -0,0 +1,407 @@
+/*
+ * paradlg.C
+ * (C) 2000 LyX Team
+ * John Levon, moz@compsoc.man.ac.uk
+ */
+
+/***************************************************************************
+ *                                                                         *
+ *   This program is free software; you can redistribute it and/or modify  *
+ *   it under the terms of the GNU General Public License as published by  *
+ *   the Free Software Foundation; either version 2 of the License, or     *
+ *   (at your option) any later version.                                   *
+ *                                                                         *
+ ***************************************************************************/
+
+#include "support/lstrings.h" 
+
+#include "paradlg.h"
+
+#include "gettext.h"
+#include "debug.h"
+
+/*
+ * This is the top-level dialog which contains the buttons, and the tab bar for adding
+ * the qtarch-designed child widget dialogs.
+ *
+ * FIXME: QTabDialog is not good for three reasons - 
+ * 1) OK/Apply don't emit different signals. Why didn't the Qt people consider we might
+ *    care about things other than visibility of the dialog *sigh*
+ * 2) the default button placement goes against the style used in the other dialogs
+ * 3) we don't seem to be able to disable the OK/Apply buttons
+ *
+ * So this must go
+ *
+ * In fact I'm not at all sure that this design is a good one from the user's point of view, but I
+ * don't really have a better solution at the moment :/
+ */
+
+ParaDialog::ParaDialog(FormParagraph *form, QWidget *parent, const char *name, bool, WFlags)
+       : QTabDialog(parent,name,false), form_(form)
+{
+       setCaption(name);
+
+       generalpage = new ParaGeneralDialog(this, "generalpage");
+       extrapage = new ParaExtraDialog(this, "extrapage");
+       
+       addTab(generalpage, _("&General"));
+       addTab(extrapage, _("&Extra"));
+
+       setOKButton(_("&OK"));
+       setApplyButton(_("&Apply"));
+       setDefaultButton(_("&Restore"));
+       setCancelButton(_("&Cancel")); 
+
+       connect(this, SIGNAL(applyButtonPressed()), SLOT(apply_adaptor()));
+       connect(this, SIGNAL(defaultButtonPressed()), SLOT(restore()));
+       connect(this, SIGNAL(cancelButtonPressed()), SLOT(close_adaptor()));
+}
+
+ParaDialog::~ParaDialog()
+{
+}
+
+void ParaDialog::restore()
+{
+       // this will restore to the settings of the paragraph
+       form_->update();
+}
+
+void ParaDialog::closeEvent(QCloseEvent *e)
+{
+       form_->close();
+       e->accept();
+}
+
+void ParaDialog::setReadOnly(bool readonly)
+{
+       generalpage->alignment->setEnabled(!readonly);
+       generalpage->lineabove->setEnabled(!readonly);
+       generalpage->linebelow->setEnabled(!readonly);
+       generalpage->pagebreakabove->setEnabled(!readonly);
+       generalpage->pagebreakbelow->setEnabled(!readonly);
+       generalpage->noindent->setEnabled(!readonly);
+       generalpage->spaceabove->setEnabled(!readonly);
+       generalpage->spacebelow->setEnabled(!readonly);
+       generalpage->spaceabovevalue->setEnabled(!readonly);
+       generalpage->spacebelowvalue->setEnabled(!readonly);
+       generalpage->spaceabovevalueunits->setEnabled(!readonly);
+       generalpage->spacebelowvalueunits->setEnabled(!readonly);
+       generalpage->spaceaboveplus->setEnabled(!readonly);
+       generalpage->spacebelowplus->setEnabled(!readonly);
+       generalpage->spaceaboveplusunits->setEnabled(!readonly);
+       generalpage->spacebelowplusunits->setEnabled(!readonly);
+       generalpage->spaceaboveminus->setEnabled(!readonly);
+       generalpage->spacebelowminus->setEnabled(!readonly);
+       generalpage->spaceaboveminusunits->setEnabled(!readonly);
+       generalpage->spacebelowminusunits->setEnabled(!readonly);
+       generalpage->block->setEnabled(!readonly);
+       generalpage->left->setEnabled(!readonly);
+       generalpage->right->setEnabled(!readonly);
+       generalpage->center->setEnabled(!readonly);
+       generalpage->labelwidth->setEnabled(!readonly);
+       extrapage->specialalignment->setEnabled(!readonly);
+       extrapage->type->setEnabled(!readonly);
+       extrapage->widthvalue->setEnabled(!readonly);
+       extrapage->widthvalueunits->setEnabled(!readonly);
+       extrapage->hfillbetween->setEnabled(!readonly);
+       extrapage->startnewminipage->setEnabled(!readonly);
+       extrapage->top->setEnabled(!readonly);
+       extrapage->middle->setEnabled(!readonly);
+       extrapage->bottom->setEnabled(!readonly);
+       // FIXME: can't set buttons readonly
+}
+
+void ParaDialog::setLabelWidth(const char *text)
+{
+       // FIXME: should be cleverer here
+       if (!strcmp(_("Senseless with this layout!"),text)) {
+               generalpage->labelwidth->setText("");
+               generalpage->labelwidth->setEnabled(false);
+       } else {
+               generalpage->labelwidth->setText(text);
+               generalpage->labelwidth->setEnabled(true);
+       }
+}
+
+void ParaDialog::setAlign(int type)
+{
+       switch (type) {
+               case LYX_ALIGN_RIGHT:
+                       generalpage->right->setChecked(true);
+                       break;
+               case LYX_ALIGN_LEFT:
+                       generalpage->left->setChecked(true);
+                       break;
+               case LYX_ALIGN_CENTER:
+                       generalpage->center->setChecked(true);
+                       break;
+               default: // ewww
+                       generalpage->block->setChecked(true);
+                       break;
+       }
+}
+
+void ParaDialog::setChecks(bool labove, bool lbelow, bool pabove, bool pbelow, bool noindent)
+{
+       generalpage->lineabove->setChecked(labove);
+       generalpage->linebelow->setChecked(lbelow);
+       generalpage->pagebreakabove->setChecked(pabove); 
+       generalpage->pagebreakbelow->setChecked(pbelow); 
+       generalpage->noindent->setChecked(noindent); 
+}
+
+void ParaDialog::setSpace(VSpace::vspace_kind kindabove, VSpace::vspace_kind kindbelow, bool keepabove, bool keepbelow)
+{
+       switch (kindabove) {
+               case VSpace::NONE:
+                       generalpage->spaceabove->setCurrentItem(0);
+                       break;
+               case VSpace::DEFSKIP:
+                       generalpage->spaceabove->setCurrentItem(1);
+                       break;
+               case VSpace::SMALLSKIP:
+                       generalpage->spaceabove->setCurrentItem(2);
+                       break;
+               case VSpace::MEDSKIP:
+                       generalpage->spaceabove->setCurrentItem(3);
+                       break;
+               case VSpace::BIGSKIP:
+                       generalpage->spaceabove->setCurrentItem(4);
+                       break;
+               case VSpace::VFILL:
+                       generalpage->spaceabove->setCurrentItem(5);
+                       break;
+               case VSpace::LENGTH:
+                       generalpage->spaceabove->setCurrentItem(6);
+                       break;
+       }
+       switch (kindbelow) {
+               case VSpace::NONE:
+                       generalpage->spacebelow->setCurrentItem(0);
+                       break;
+               case VSpace::DEFSKIP:
+                       generalpage->spacebelow->setCurrentItem(1);
+                       break;
+               case VSpace::SMALLSKIP:
+                       generalpage->spacebelow->setCurrentItem(2);
+                       break;
+               case VSpace::MEDSKIP:
+                       generalpage->spacebelow->setCurrentItem(3);
+                       break;
+               case VSpace::BIGSKIP:
+                       generalpage->spacebelow->setCurrentItem(4);
+                       break;
+               case VSpace::VFILL:
+                       generalpage->spacebelow->setCurrentItem(5);
+                       break;
+               case VSpace::LENGTH:
+                       generalpage->spacebelow->setCurrentItem(6);
+                       break;
+       }
+
+       generalpage->spaceabovevalue->setEnabled(kindabove == VSpace::LENGTH);
+       generalpage->spaceabovevalueunits->setEnabled(kindabove == VSpace::LENGTH);
+       generalpage->spaceaboveplus->setEnabled(kindabove == VSpace::LENGTH);
+       generalpage->spaceaboveplusunits->setEnabled(kindabove == VSpace::LENGTH);
+       generalpage->spaceaboveminus->setEnabled(kindabove == VSpace::LENGTH);
+       generalpage->spaceaboveminusunits->setEnabled(kindabove == VSpace::LENGTH);
+       generalpage->spacebelowvalue->setEnabled(kindbelow == VSpace::LENGTH);
+       generalpage->spacebelowvalueunits->setEnabled(kindbelow == VSpace::LENGTH);
+       generalpage->spacebelowplus->setEnabled(kindbelow == VSpace::LENGTH);
+       generalpage->spacebelowplusunits->setEnabled(kindbelow == VSpace::LENGTH);
+       generalpage->spacebelowminus->setEnabled(kindbelow == VSpace::LENGTH);
+       generalpage->spacebelowminusunits->setEnabled(kindbelow == VSpace::LENGTH);
+
+       // FIXME: I admit I don't know what keep does, or what is best to do with it ...
+}
+
+void ParaDialog::setUnits(QComboBox *box, LyXLength::UNIT unit)
+{
+       switch (unit) {
+               case LyXLength::CM: box->setCurrentItem(0); break;
+               case LyXLength::IN: box->setCurrentItem(1); break;
+               case LyXLength::PT: box->setCurrentItem(2); break;
+               case LyXLength::MM: box->setCurrentItem(3); break;
+               case LyXLength::PC: box->setCurrentItem(4); break;
+               case LyXLength::EX: box->setCurrentItem(5); break;
+               case LyXLength::EM: box->setCurrentItem(6); break;
+               case LyXLength::SP: box->setCurrentItem(7); break;
+               case LyXLength::BP: box->setCurrentItem(8); break;
+               case LyXLength::DD: box->setCurrentItem(9); break;
+               case LyXLength::CC: box->setCurrentItem(10); break;
+               case LyXLength::MU: box->setCurrentItem(11); break;
+               case LyXLength::UNIT_NONE: box->setCurrentItem(0); break;
+               default:
+                       lyxerr[Debug::GUI] << "Unknown unit " << long(unit) << endl;
+       }
+}
+
+void ParaDialog::setAboveLength(float val, float plus, float minus, 
+       LyXLength::UNIT vunit, LyXLength::UNIT punit, LyXLength::UNIT munit)
+{
+       if (vunit==LyXLength::UNIT_NONE) {
+               generalpage->spaceabovevalue->setText(""); 
+               generalpage->spaceaboveplus->setText(""); 
+               generalpage->spaceaboveminus->setText(""); 
+               setUnits(generalpage->spaceabovevalueunits, LyXLength::CM);
+               setUnits(generalpage->spaceaboveplusunits, LyXLength::CM);
+               setUnits(generalpage->spaceaboveminusunits, LyXLength::CM);
+               return;
+       }
+
+       generalpage->spaceabovevalue->setText(tostr(val).c_str());
+       generalpage->spaceaboveplus->setText(tostr(plus).c_str());
+       generalpage->spaceaboveminus->setText(tostr(minus).c_str());
+       setUnits(generalpage->spaceabovevalueunits, vunit);
+       setUnits(generalpage->spaceaboveplusunits, punit);
+       setUnits(generalpage->spaceaboveminusunits, munit);
+}
+
+void ParaDialog::setBelowLength(float val, float plus, float minus, 
+       LyXLength::UNIT vunit, LyXLength::UNIT punit, LyXLength::UNIT munit)
+{
+       if (vunit==LyXLength::UNIT_NONE) {
+               generalpage->spacebelowvalue->setText(""); 
+               generalpage->spacebelowplus->setText(""); 
+               generalpage->spacebelowminus->setText(""); 
+               setUnits(generalpage->spacebelowvalueunits, LyXLength::CM);
+               setUnits(generalpage->spacebelowplusunits, LyXLength::CM);
+               setUnits(generalpage->spacebelowminusunits, LyXLength::CM);
+               return;
+       }
+
+       generalpage->spacebelowvalue->setText(tostr(val).c_str());
+       generalpage->spacebelowplus->setText(tostr(plus).c_str());
+       generalpage->spacebelowminus->setText(tostr(minus).c_str());
+       setUnits(generalpage->spacebelowvalueunits, vunit); 
+       setUnits(generalpage->spacebelowplusunits, punit); 
+       setUnits(generalpage->spacebelowminusunits, munit); 
+}
+
+void ParaDialog::setExtra(float widthval, LyXLength::UNIT units, const string percent, int align, 
+       bool hfill, bool startminipage, LyXParagraph::PEXTRA_TYPE type)
+{
+
+       if (type!=LyXParagraph::PEXTRA_NONE) {
+               lyxerr[Debug::GUI] << "percent : $" << percent << "$ widthval " << widthval << " unit " << long(units) << endl;
+               if (percent!="") {
+                       extrapage->widthvalue->setText(percent.c_str());
+                       extrapage->widthvalueunits->setCurrentItem(12);
+               } else {
+                       extrapage->widthvalue->setText(tostr(widthval).c_str());
+                       setUnits(extrapage->widthvalueunits,units);
+               }
+       } else
+               extrapage->widthvalue->setText("");
+
+       switch (align) {
+               case LyXParagraph::MINIPAGE_ALIGN_TOP:
+                       extrapage->top->setChecked(true);
+                       break;
+               case LyXParagraph::MINIPAGE_ALIGN_MIDDLE:
+                       extrapage->middle->setChecked(true);
+                       break;
+               case LyXParagraph::MINIPAGE_ALIGN_BOTTOM:
+                       extrapage->bottom->setChecked(true);
+                       break;
+       }
+       
+       extrapage->hfillbetween->setChecked(hfill);
+       extrapage->startnewminipage->setChecked(startminipage);
+
+       extrapage->specialalignment->setEnabled(type==LyXParagraph::PEXTRA_MINIPAGE);
+       extrapage->top->setEnabled(type==LyXParagraph::PEXTRA_MINIPAGE);
+       extrapage->middle->setEnabled(type==LyXParagraph::PEXTRA_MINIPAGE);
+       extrapage->bottom->setEnabled(type==LyXParagraph::PEXTRA_MINIPAGE);
+       extrapage->widthvalue->setEnabled(type!=LyXParagraph::PEXTRA_NONE);
+       extrapage->widthvalueunits->setEnabled(type!=LyXParagraph::PEXTRA_NONE);
+       extrapage->hfillbetween->setEnabled(type==LyXParagraph::PEXTRA_MINIPAGE);
+       extrapage->startnewminipage->setEnabled(type==LyXParagraph::PEXTRA_MINIPAGE);
+
+       switch (type) {
+               case LyXParagraph::PEXTRA_NONE:
+                       extrapage->type->setCurrentItem(0); 
+                       break;
+               case LyXParagraph::PEXTRA_INDENT:
+                       extrapage->type->setCurrentItem(1); 
+                       break;
+               case LyXParagraph::PEXTRA_MINIPAGE:
+                       extrapage->type->setCurrentItem(2); 
+                       break;
+               case LyXParagraph::PEXTRA_FLOATFLT:
+                       extrapage->type->setCurrentItem(3); 
+                       break;
+       }
+}
+
+LyXLength::UNIT ParaDialog::getUnits(QComboBox *box) const
+{
+       switch (box->currentItem()) {
+               case 0: return LyXLength::CM;
+               case 1: return LyXLength::IN;
+               case 2: return LyXLength::PT;
+               case 3: return LyXLength::MM;
+               case 4: return LyXLength::PC;
+               case 5: return LyXLength::EX;
+               case 6: return LyXLength::EM;
+               case 7: return LyXLength::SP;
+               case 8: return LyXLength::BP;
+               case 9: return LyXLength::DD;
+               case 10: return LyXLength::CC;
+               case 11: return LyXLength::MU;
+               default:
+                       lyxerr[Debug::GUI] << "Unknown combo choice " << box->currentItem() << endl;
+       }
+       return LyXLength::UNIT_NONE;
+}
+
+LyXGlueLength ParaDialog::getAboveLength() const
+{
+       LyXGlueLength len(
+               strToDbl(generalpage->spaceabovevalue->text()),
+               getUnits(generalpage->spaceabovevalueunits),
+               strToDbl(generalpage->spaceaboveplus->text()),
+               getUnits(generalpage->spaceaboveplusunits),
+               strToDbl(generalpage->spaceaboveminus->text()),
+               getUnits(generalpage->spaceaboveminusunits)
+               );
+       
+       return len;
+}
+
+LyXGlueLength ParaDialog::getBelowLength() const
+{
+       LyXGlueLength len(
+               strToDbl(generalpage->spacebelowvalue->text()),
+               getUnits(generalpage->spacebelowvalueunits),
+               strToDbl(generalpage->spacebelowplus->text()),
+               getUnits(generalpage->spacebelowplusunits),
+               strToDbl(generalpage->spacebelowminus->text()),
+               getUnits(generalpage->spacebelowminusunits)
+               );
+       
+       return len;
+}
+
+LyXLength ParaDialog::getExtraWidth() const
+{
+
+       if (extrapage->widthvalueunits->currentItem()!=12) {
+               LyXLength len(strToDbl(extrapage->widthvalue->text()), getUnits(extrapage->widthvalueunits));
+               return len;
+       } else {
+               LyXLength len(0.0, LyXLength::UNIT_NONE);
+               return len;
+       }
+}
+
+string ParaDialog::getExtraWidthPercent() const
+{
+       double val = strToDbl(extrapage->widthvalue->text()); 
+       if (val > 100.0) 
+               val = 100.0;
+       if (val < 0.0)
+               val = 0.0;
+       return tostr(val);
+}
diff --git a/src/frontends/kde/paradlg.h b/src/frontends/kde/paradlg.h
new file mode 100644 (file)
index 0000000..7f3d728
--- /dev/null
@@ -0,0 +1,183 @@
+/*
+ * paradlg.h
+ * (C) 2000 LyX Team
+ * John Levon, moz@compsoc.man.ac.uk
+ */
+
+/***************************************************************************
+ *                                                                         *
+ *   This program is free software; you can redistribute it and/or modify  *
+ *   it under the terms of the GNU General Public License as published by  *
+ *   the Free Software Foundation; either version 2 of the License, or     *
+ *   (at your option) any later version.                                   *
+ *                                                                         *
+ ***************************************************************************/
+
+#ifndef PARADLG_H
+#define PARADLG_H
+
+#include <config.h>
+#include <gettext.h>
+#include <string>
+
+#include  "parageneraldlg.h"
+#include  "paraextradlg.h"
+#include <qtabdialog.h>
+#include "vspace.h" 
+#include "lyxparagraph.h"
+#include "debug.h" 
+
+// to connect apply() and close()
+#include "FormParagraph.h"
+
+class ParaDialog : public QTabDialog  {
+   Q_OBJECT
+public:
+       ParaDialog(FormParagraph *form, QWidget *parent=0, const char *name=0,
+                           bool modal=false, WFlags f=0);
+       ~ParaDialog();
+
+       void setReadOnly(bool);
+       void setLabelWidth(const char *);
+       void setAlign(int);
+       void setChecks(bool, bool, bool, bool, bool);
+       void setSpace(VSpace::vspace_kind, VSpace::vspace_kind, bool, bool);
+       void setAboveLength(float, float, float, LyXGlueLength::UNIT, LyXGlueLength::UNIT, LyXGlueLength::UNIT);
+       void setBelowLength(float, float, float, LyXGlueLength::UNIT, LyXGlueLength::UNIT, LyXGlueLength::UNIT);
+       void setExtra(float, LyXGlueLength::UNIT, const string, int, bool, bool, LyXParagraph::PEXTRA_TYPE);
+
+       const char *getLabelWidth() const {
+               return generalpage->labelwidth->text();
+       }
+
+       LyXAlignment getAlign() const {
+               if (generalpage->right->isChecked())
+                       return LYX_ALIGN_RIGHT;
+               else if (generalpage->left->isChecked())
+                       return LYX_ALIGN_LEFT;
+               else if (generalpage->center->isChecked())
+                       return LYX_ALIGN_CENTER;
+               else
+                       return LYX_ALIGN_BLOCK;
+       }
+
+       bool getLineAbove() const {
+               return generalpage->lineabove->isChecked();
+       }
+       bool getLineBelow() const {
+               return generalpage->linebelow->isChecked();
+       }
+
+       bool getPagebreakAbove() const {
+               return generalpage->pagebreakabove->isChecked();
+       }
+
+       bool getPagebreakBelow() const {
+               return generalpage->pagebreakbelow->isChecked();
+       }
+
+       bool getNoIndent() const {
+               return generalpage->noindent->isChecked();
+       }
+
+       VSpace::vspace_kind getSpaceAboveKind() const {
+               return getSpaceKind(generalpage->spaceabove->currentItem());
+       }
+       
+       VSpace::vspace_kind getSpaceBelowKind() const {
+               return getSpaceKind(generalpage->spacebelow->currentItem());
+       }
+       
+       bool getSpaceAboveKeep() const {
+               // FIXME
+               return true;
+       }
+
+       bool getSpaceBelowKeep() const {
+               // FIXME
+               return true;
+       }
+
+       LyXGlueLength getAboveLength() const;
+
+       LyXGlueLength getBelowLength() const;
+
+       LyXLength getExtraWidth() const;
+
+       string getExtraWidthPercent() const;
+
+       LyXParagraph::PEXTRA_TYPE getExtraType() const {
+               switch (extrapage->type->currentItem()) {
+                       case 0: return LyXParagraph::PEXTRA_NONE;
+                       case 1: return LyXParagraph::PEXTRA_INDENT;
+                       case 2: return LyXParagraph::PEXTRA_MINIPAGE;
+                       case 3: return LyXParagraph::PEXTRA_FLOATFLT;
+               }
+               return LyXParagraph::PEXTRA_NONE;
+       }
+
+       LyXParagraph::MINIPAGE_ALIGNMENT getExtraAlign() const {
+               if (extrapage->top->isChecked())
+                       return LyXParagraph::MINIPAGE_ALIGN_TOP;
+               if (extrapage->middle->isChecked())
+                       return LyXParagraph::MINIPAGE_ALIGN_MIDDLE;
+               return LyXParagraph::MINIPAGE_ALIGN_BOTTOM;
+       }
+
+       bool getHfillBetween() const {
+               return extrapage->hfillbetween->isChecked();
+       }
+
+       bool getStartNewMinipage() const {
+               return extrapage->startnewminipage->isChecked();
+       }
+
+protected:
+       void closeEvent(QCloseEvent *e);
+private:
+       FormParagraph *form_;
+
+       /// the general tab page
+       ParaGeneralDialog *generalpage;
+       /// the extra options tab page
+       ParaExtraDialog *extrapage;
+
+       VSpace::vspace_kind getSpaceKind(int val) const {
+               switch (val) {
+                       case 0: return VSpace::NONE;
+                       case 1: return VSpace::DEFSKIP;
+                       case 2: return VSpace::SMALLSKIP;
+                       case 3: return VSpace::MEDSKIP;
+                       case 4: return VSpace::BIGSKIP;
+                       case 5: return VSpace::VFILL;
+                       case 6: return VSpace::LENGTH;
+                       default:
+                               lyxerr[Debug::GUI] << "Unknown kind combo entry " << val << endl;
+               }
+               return VSpace::NONE;
+       }
+
+       void setUnits(QComboBox *box, LyXGlueLength::UNIT unit);
+
+       LyXLength::UNIT getUnits(QComboBox *box) const;
+
+private slots:
+       void apply_adaptor(void) {
+               form_->apply();
+               form_->close();
+               hide();
+       }
+
+       void close_adaptor(void) {
+               form_->close();
+               hide();
+       }
+
+       void restore(void);
+};
+
+#endif
diff --git a/src/frontends/kde/paraextradlg.C b/src/frontends/kde/paraextradlg.C
new file mode 100644 (file)
index 0000000..07cd696
--- /dev/null
@@ -0,0 +1,59 @@
+/**********************************************************************
+
+       --- Qt Architect generated file ---
+
+       File: paraextradlg.C
+       Last generated: Sat Oct 14 00:27:49 2000
+
+ *********************************************************************/
+
+#include "paraextradlg.h"
+
+#include <gettext.h>
+
+#define Inherited ParaExtraDialogData
+
+ParaExtraDialog::ParaExtraDialog
+(
+       QWidget* parent,
+       const char* name
+)
+       :
+       Inherited( parent, name )
+{
+       type->insertItem(_("Normal"));
+       type->insertItem(_("Indented paragraph"));
+       type->insertItem(_("Minipage"));
+       type->insertItem(_("Wrap text around floats (floatflt)"));
+       
+       widthvalueunits->insertItem(_("Centimetres"));
+       widthvalueunits->insertItem(_("Inches"));
+       widthvalueunits->insertItem(_("Points (1/72.27 inch)"));
+       widthvalueunits->insertItem(_("Millimetres"));
+       widthvalueunits->insertItem(_("Picas"));
+       widthvalueunits->insertItem(_("ex units"));
+       widthvalueunits->insertItem(_("em units"));
+       widthvalueunits->insertItem(_("Scaled points (1/65536 pt)"));
+       widthvalueunits->insertItem(_("Big/PS points (1/72 inch)"));
+       widthvalueunits->insertItem(_("Didot points"));
+       widthvalueunits->insertItem(_("Cicero points"));
+       widthvalueunits->insertItem(_("Math units"));
+       widthvalueunits->insertItem(_("Percent of column"));
+}
+
+
+ParaExtraDialog::~ParaExtraDialog()
+{
+}
+
+void ParaExtraDialog::typeHighlighted(int val)
+{
+       specialalignment->setEnabled(val==2);
+       top->setEnabled(val==2);
+       middle->setEnabled(val==2);
+       bottom->setEnabled(val==2);
+       widthvalue->setEnabled(val!=0);
+       widthvalueunits->setEnabled(val!=0);
+       hfillbetween->setEnabled(val==2); 
+       startnewminipage->setEnabled(val==2); 
+}
diff --git a/src/frontends/kde/paraextradlg.h b/src/frontends/kde/paraextradlg.h
new file mode 100644 (file)
index 0000000..77e4750
--- /dev/null
@@ -0,0 +1,38 @@
+/**********************************************************************
+
+       --- Qt Architect generated file ---
+
+       File: paraextradialog.h
+       Last generated: Sat Oct 14 00:27:49 2000
+
+ *********************************************************************/
+
+#ifndef ParaExtraDialog_included
+#define ParaExtraDialog_included
+
+#include "paraextradlgdata.h"
+
+class ParaDialog;
+
+class ParaExtraDialog : public ParaExtraDialogData
+{
+    Q_OBJECT
+
+public:
+
+    ParaExtraDialog
+    (
+        QWidget* parent = NULL,
+        const char* name = NULL
+    );
+
+    virtual ~ParaExtraDialog();
+
+    friend class ParaDialog;
+
+protected slots:
+
+    void typeHighlighted(int);
+
+};
+#endif // ParaExtraDialog_included
diff --git a/src/frontends/kde/paraextradlgdata.C b/src/frontends/kde/paraextradlgdata.C
new file mode 100644 (file)
index 0000000..bb242dd
--- /dev/null
@@ -0,0 +1,316 @@
+/**********************************************************************
+
+       --- Qt Architect generated file ---
+
+       File: paraextradlgdata.C
+       Last generated: Sun Oct 15 05:49:46 2000
+
+       DO NOT EDIT!!!  This file will be automatically
+       regenerated by qtarch.  All changes will be lost.
+
+ *********************************************************************/
+
+#include <gettext.h>
+#include <qpixmap.h>
+#include <qlayout.h>
+#include "paraextradlgdata.h"
+
+#define Inherited QWidget
+
+#include <qlabel.h>
+
+ParaExtraDialogData::ParaExtraDialogData
+(
+       QWidget* parent,
+       const char* name
+)
+       :
+       Inherited( parent, name, 0 )
+{
+       specialalignment = new QButtonGroup( this, "specialalignment" );
+       specialalignment->setGeometry( 5, 124, 265, 331 );
+       specialalignment->setMinimumSize( 0, 0 );
+       specialalignment->setMaximumSize( 32767, 32767 );
+       specialalignment->setFocusPolicy( QWidget::NoFocus );
+       specialalignment->setBackgroundMode( QWidget::PaletteBackground );
+       specialalignment->setFontPropagation( QWidget::NoChildren );
+       specialalignment->setPalettePropagation( QWidget::NoChildren );
+       specialalignment->setFrameStyle( 49 );
+       specialalignment->setLineWidth( 1 );
+       specialalignment->setMidLineWidth( 0 );
+       specialalignment->QFrame::setMargin( 0 );
+       specialalignment->setTitle( _("Alignment") );
+       specialalignment->setAlignment( 1 );
+       specialalignment->setExclusive( TRUE );
+
+       type = new QComboBox( FALSE, this, "type" );
+       type->setGeometry( 5, 65, 265, 54 );
+       type->setMinimumSize( 0, 0 );
+       type->setMaximumSize( 32767, 32767 );
+       connect( type, SIGNAL(highlighted(int)), SLOT(typeHighlighted(int)) );
+       type->setFocusPolicy( QWidget::StrongFocus );
+       type->setBackgroundMode( QWidget::PaletteBackground );
+       type->setFontPropagation( QWidget::AllChildren );
+       type->setPalettePropagation( QWidget::AllChildren );
+       type->setSizeLimit( 10 );
+       type->setAutoResize( FALSE );
+       type->setMaxCount( 2147483647 );
+       type->setAutoCompletion( FALSE );
+
+       QLabel* qtarch_speciallabel;
+       qtarch_speciallabel = new QLabel( this, "speciallabel" );
+       qtarch_speciallabel->setGeometry( 5, 5, 265, 55 );
+       qtarch_speciallabel->setMinimumSize( 0, 0 );
+       qtarch_speciallabel->setMaximumSize( 32767, 32767 );
+       qtarch_speciallabel->setFocusPolicy( QWidget::NoFocus );
+       qtarch_speciallabel->setBackgroundMode( QWidget::PaletteBackground );
+       qtarch_speciallabel->setFontPropagation( QWidget::NoChildren );
+       qtarch_speciallabel->setPalettePropagation( QWidget::NoChildren );
+       qtarch_speciallabel->setFrameStyle( 0 );
+       qtarch_speciallabel->setLineWidth( 1 );
+       qtarch_speciallabel->setMidLineWidth( 0 );
+       qtarch_speciallabel->QFrame::setMargin( 0 );
+       qtarch_speciallabel->setText( _("Type") );
+       qtarch_speciallabel->setAlignment( 289 );
+       qtarch_speciallabel->setMargin( -1 );
+
+       QLabel* qtarch_specialwidthlabel;
+       qtarch_specialwidthlabel = new QLabel( this, "specialwidthlabel" );
+       qtarch_specialwidthlabel->setGeometry( 275, 5, 265, 55 );
+       qtarch_specialwidthlabel->setMinimumSize( 0, 0 );
+       qtarch_specialwidthlabel->setMaximumSize( 32767, 32767 );
+       qtarch_specialwidthlabel->setFocusPolicy( QWidget::NoFocus );
+       qtarch_specialwidthlabel->setBackgroundMode( QWidget::PaletteBackground );
+       qtarch_specialwidthlabel->setFontPropagation( QWidget::NoChildren );
+       qtarch_specialwidthlabel->setPalettePropagation( QWidget::NoChildren );
+       qtarch_specialwidthlabel->setFrameStyle( 0 );
+       qtarch_specialwidthlabel->setLineWidth( 1 );
+       qtarch_specialwidthlabel->setMidLineWidth( 0 );
+       qtarch_specialwidthlabel->QFrame::setMargin( 0 );
+       qtarch_specialwidthlabel->setText( _("Width") );
+       qtarch_specialwidthlabel->setAlignment( 289 );
+       qtarch_specialwidthlabel->setMargin( -1 );
+
+       widthvalueunits = new QComboBox( FALSE, this, "widthvalueunits" );
+       widthvalueunits->setGeometry( 367, 65, 173, 54 );
+       widthvalueunits->setMinimumSize( 0, 0 );
+       widthvalueunits->setMaximumSize( 32767, 32767 );
+       widthvalueunits->setFocusPolicy( QWidget::StrongFocus );
+       widthvalueunits->setBackgroundMode( QWidget::PaletteBackground );
+       widthvalueunits->setFontPropagation( QWidget::AllChildren );
+       widthvalueunits->setPalettePropagation( QWidget::AllChildren );
+       widthvalueunits->setSizeLimit( 10 );
+       widthvalueunits->setAutoResize( FALSE );
+       widthvalueunits->setMaxCount( 2147483647 );
+       widthvalueunits->setAutoCompletion( FALSE );
+
+       hfillbetween = new QCheckBox( this, "hfillbetween" );
+       hfillbetween->setGeometry( 275, 189, 265, 65 );
+       hfillbetween->setMinimumSize( 0, 0 );
+       hfillbetween->setMaximumSize( 32767, 32767 );
+       hfillbetween->setFocusPolicy( QWidget::TabFocus );
+       hfillbetween->setBackgroundMode( QWidget::PaletteBackground );
+       hfillbetween->setFontPropagation( QWidget::NoChildren );
+       hfillbetween->setPalettePropagation( QWidget::NoChildren );
+       hfillbetween->setText( _("&HFill between minipage paragraphs") );
+       hfillbetween->setAutoRepeat( FALSE );
+       hfillbetween->setAutoResize( FALSE );
+       hfillbetween->setChecked( FALSE );
+
+       startnewminipage = new QCheckBox( this, "startnewminipage" );
+       startnewminipage->setGeometry( 275, 325, 265, 65 );
+       startnewminipage->setMinimumSize( 0, 0 );
+       startnewminipage->setMaximumSize( 32767, 32767 );
+       startnewminipage->setFocusPolicy( QWidget::TabFocus );
+       startnewminipage->setBackgroundMode( QWidget::PaletteBackground );
+       startnewminipage->setFontPropagation( QWidget::NoChildren );
+       startnewminipage->setPalettePropagation( QWidget::NoChildren );
+       startnewminipage->setText( _("&Start new minipage") );
+       startnewminipage->setAutoRepeat( FALSE );
+       startnewminipage->setAutoResize( FALSE );
+       startnewminipage->setChecked( FALSE );
+
+       top = new QRadioButton( specialalignment, "top" );
+       top->setGeometry( 5, 49, 255, 45 );
+       top->setMinimumSize( 0, 0 );
+       top->setMaximumSize( 32767, 32767 );
+       top->setFocusPolicy( QWidget::TabFocus );
+       top->setBackgroundMode( QWidget::PaletteBackground );
+       top->setFontPropagation( QWidget::NoChildren );
+       top->setPalettePropagation( QWidget::NoChildren );
+       top->setText( _("&Top") );
+       top->setAutoRepeat( FALSE );
+       top->setAutoResize( FALSE );
+       top->setChecked( FALSE );
+
+       middle = new QRadioButton( specialalignment, "middle" );
+       middle->setGeometry( 5, 143, 255, 45 );
+       middle->setMinimumSize( 0, 0 );
+       middle->setMaximumSize( 32767, 32767 );
+       middle->setFocusPolicy( QWidget::TabFocus );
+       middle->setBackgroundMode( QWidget::PaletteBackground );
+       middle->setFontPropagation( QWidget::NoChildren );
+       middle->setPalettePropagation( QWidget::NoChildren );
+       middle->setText( _("&Middle") );
+       middle->setAutoRepeat( FALSE );
+       middle->setAutoResize( FALSE );
+       middle->setChecked( FALSE );
+
+       bottom = new QRadioButton( specialalignment, "bottom" );
+       bottom->setGeometry( 5, 237, 255, 45 );
+       bottom->setMinimumSize( 0, 0 );
+       bottom->setMaximumSize( 32767, 32767 );
+       bottom->setFocusPolicy( QWidget::TabFocus );
+       bottom->setBackgroundMode( QWidget::PaletteBackground );
+       bottom->setFontPropagation( QWidget::NoChildren );
+       bottom->setPalettePropagation( QWidget::NoChildren );
+       bottom->setText( _("&Bottom") );
+       bottom->setAutoRepeat( FALSE );
+       bottom->setAutoResize( FALSE );
+       bottom->setChecked( FALSE );
+
+       widthvalue = new KRestrictedLine( this, "widthvalue" );
+       widthvalue->setGeometry( 275, 65, 87, 54 );
+       widthvalue->setMinimumSize( 0, 0 );
+       widthvalue->setMaximumSize( 32767, 32767 );
+       widthvalue->setFocusPolicy( QWidget::StrongFocus );
+       widthvalue->setBackgroundMode( QWidget::PaletteBase );
+       widthvalue->setFontPropagation( QWidget::NoChildren );
+       widthvalue->setPalettePropagation( QWidget::NoChildren );
+       widthvalue->setText( _("") );
+       widthvalue->setMaxLength( 32767 );
+       widthvalue->setFrame( QLineEdit::Normal );
+       widthvalue->setFrame( TRUE );
+       widthvalue->setValidChars( "0123456789.-," );
+
+       specialalignment->insert( top );
+       specialalignment->insert( middle );
+       specialalignment->insert( bottom );
+
+       if (type->sizeHint().width()!=-1)
+               type->setMinimumWidth(type->sizeHint().width());
+       if (type->sizeHint().height()!=-1)
+               type->setMinimumHeight(type->sizeHint().height());
+       if (type->sizeHint().height()!=-1)
+               type->setMaximumHeight(type->sizeHint().height());
+       if (qtarch_speciallabel->sizeHint().width()!=-1)
+               qtarch_speciallabel->setMinimumWidth(qtarch_speciallabel->sizeHint().width());
+       if (qtarch_speciallabel->sizeHint().height()!=-1)
+               qtarch_speciallabel->setMinimumHeight(qtarch_speciallabel->sizeHint().height());
+       if (qtarch_speciallabel->sizeHint().width()!=-1)
+               qtarch_speciallabel->setMaximumWidth(qtarch_speciallabel->sizeHint().width());
+       if (qtarch_speciallabel->sizeHint().height()!=-1)
+               qtarch_speciallabel->setMaximumHeight(qtarch_speciallabel->sizeHint().height());
+       if (qtarch_specialwidthlabel->sizeHint().width()!=-1)
+               qtarch_specialwidthlabel->setMinimumWidth(qtarch_specialwidthlabel->sizeHint().width());
+       if (qtarch_specialwidthlabel->sizeHint().height()!=-1)
+               qtarch_specialwidthlabel->setMinimumHeight(qtarch_specialwidthlabel->sizeHint().height());
+       if (qtarch_specialwidthlabel->sizeHint().width()!=-1)
+               qtarch_specialwidthlabel->setMaximumWidth(qtarch_specialwidthlabel->sizeHint().width());
+       if (qtarch_specialwidthlabel->sizeHint().height()!=-1)
+               qtarch_specialwidthlabel->setMaximumHeight(qtarch_specialwidthlabel->sizeHint().height());
+       if (widthvalueunits->sizeHint().width()!=-1)
+               widthvalueunits->setMinimumWidth(widthvalueunits->sizeHint().width());
+       if (widthvalueunits->sizeHint().height()!=-1)
+               widthvalueunits->setMinimumHeight(widthvalueunits->sizeHint().height());
+       if (widthvalueunits->sizeHint().height()!=-1)
+               widthvalueunits->setMaximumHeight(widthvalueunits->sizeHint().height());
+       if (hfillbetween->sizeHint().width()!=-1)
+               hfillbetween->setMinimumWidth(hfillbetween->sizeHint().width());
+       if (hfillbetween->sizeHint().height()!=-1)
+               hfillbetween->setMinimumHeight(hfillbetween->sizeHint().height());
+       if (hfillbetween->sizeHint().width()!=-1)
+               hfillbetween->setMaximumWidth(hfillbetween->sizeHint().width());
+       if (hfillbetween->sizeHint().height()!=-1)
+               hfillbetween->setMaximumHeight(hfillbetween->sizeHint().height());
+       if (startnewminipage->sizeHint().width()!=-1)
+               startnewminipage->setMinimumWidth(startnewminipage->sizeHint().width());
+       if (startnewminipage->sizeHint().height()!=-1)
+               startnewminipage->setMinimumHeight(startnewminipage->sizeHint().height());
+       if (startnewminipage->sizeHint().width()!=-1)
+               startnewminipage->setMaximumWidth(startnewminipage->sizeHint().width());
+       if (startnewminipage->sizeHint().height()!=-1)
+               startnewminipage->setMaximumHeight(startnewminipage->sizeHint().height());
+       if (top->sizeHint().width()!=-1)
+               top->setMinimumWidth(top->sizeHint().width());
+       if (top->sizeHint().height()!=-1)
+               top->setMinimumHeight(top->sizeHint().height());
+       if (top->sizeHint().width()!=-1)
+               top->setMaximumWidth(top->sizeHint().width());
+       if (top->sizeHint().height()!=-1)
+               top->setMaximumHeight(top->sizeHint().height());
+       if (middle->sizeHint().width()!=-1)
+               middle->setMinimumWidth(middle->sizeHint().width());
+       if (middle->sizeHint().height()!=-1)
+               middle->setMinimumHeight(middle->sizeHint().height());
+       if (middle->sizeHint().width()!=-1)
+               middle->setMaximumWidth(middle->sizeHint().width());
+       if (middle->sizeHint().height()!=-1)
+               middle->setMaximumHeight(middle->sizeHint().height());
+       if (bottom->sizeHint().width()!=-1)
+               bottom->setMinimumWidth(bottom->sizeHint().width());
+       if (bottom->sizeHint().height()!=-1)
+               bottom->setMinimumHeight(bottom->sizeHint().height());
+       if (bottom->sizeHint().width()!=-1)
+               bottom->setMaximumWidth(bottom->sizeHint().width());
+       if (bottom->sizeHint().height()!=-1)
+               bottom->setMaximumHeight(bottom->sizeHint().height());
+       if (widthvalue->sizeHint().width()!=-1)
+               widthvalue->setMinimumWidth(widthvalue->sizeHint().width());
+       if (widthvalue->sizeHint().height()!=-1)
+               widthvalue->setMinimumHeight(widthvalue->sizeHint().height());
+       if (widthvalue->sizeHint().height()!=-1)
+               widthvalue->setMaximumHeight(widthvalue->sizeHint().height());
+       QGridLayout* qtarch_layout_1 = new QGridLayout( this, 2, 2, 5, 5, NULL );
+       qtarch_layout_1->addColSpacing( 0, 5 );
+       qtarch_layout_1->setColStretch( 0, 1 );
+       qtarch_layout_1->addColSpacing( 1, 5 );
+       qtarch_layout_1->setColStretch( 1, 1 );
+       qtarch_layout_1->addRowSpacing( 0, 5 );
+       qtarch_layout_1->setRowStretch( 0, 1 );
+       QBoxLayout* qtarch_layout_1_1_1 = new QBoxLayout( QBoxLayout::TopToBottom, 5, NULL );
+       qtarch_layout_1->addLayout( qtarch_layout_1_1_1, 0, 0 );
+       qtarch_layout_1_1_1->addStrut( 5 );
+       qtarch_layout_1_1_1->addWidget( qtarch_speciallabel, 1, 1 );
+       qtarch_layout_1_1_1->addWidget( type, 1, 36 );
+       QBoxLayout* qtarch_layout_1_1_2 = new QBoxLayout( QBoxLayout::TopToBottom, 5, NULL );
+       qtarch_layout_1->addLayout( qtarch_layout_1_1_2, 0, 1 );
+       qtarch_layout_1_1_2->addStrut( 5 );
+       qtarch_layout_1_1_2->addWidget( qtarch_specialwidthlabel, 1, 1 );
+       QBoxLayout* qtarch_layout_1_1_2_2 = new QBoxLayout( QBoxLayout::LeftToRight, 5, NULL );
+       qtarch_layout_1_1_2->addLayout( qtarch_layout_1_1_2_2, 1 );
+       qtarch_layout_1_1_2_2->addStrut( 0 );
+       qtarch_layout_1_1_2_2->addWidget( widthvalue, 1, 36 );
+       qtarch_layout_1_1_2_2->addWidget( widthvalueunits, 2, 36 );
+       qtarch_layout_1->addRowSpacing( 1, 5 );
+       qtarch_layout_1->setRowStretch( 1, 3 );
+       qtarch_layout_1->addWidget( specialalignment, 1, 0, 33 );
+       QBoxLayout* qtarch_layout_1_2_1 = new QBoxLayout( specialalignment, QBoxLayout::TopToBottom, 5, 5, NULL );
+       qtarch_layout_1_2_1->addStrut( 0 );
+       qtarch_layout_1_2_1->addStretch( 1 );
+       qtarch_layout_1_2_1->addWidget( top, 1, 1 );
+       qtarch_layout_1_2_1->addStretch( 1 );
+       qtarch_layout_1_2_1->addWidget( middle, 1, 1 );
+       qtarch_layout_1_2_1->addStretch( 1 );
+       qtarch_layout_1_2_1->addWidget( bottom, 1, 1 );
+       qtarch_layout_1_2_1->addStretch( 1 );
+       QBoxLayout* qtarch_layout_1_2_2 = new QBoxLayout( QBoxLayout::TopToBottom, 5, NULL );
+       qtarch_layout_1->addLayout( qtarch_layout_1_2_2, 1, 1 );
+       qtarch_layout_1_2_2->addStrut( 0 );
+       qtarch_layout_1_2_2->addStretch( 1 );
+       qtarch_layout_1_2_2->addWidget( hfillbetween, 1, 1 );
+       qtarch_layout_1_2_2->addStretch( 1 );
+       qtarch_layout_1_2_2->addWidget( startnewminipage, 1, 1 );
+       qtarch_layout_1_2_2->addStretch( 1 );
+       resize( 545,460 );
+       setMinimumSize( 0, 0 );
+       setMaximumSize( 32767, 32767 );
+}
+
+
+ParaExtraDialogData::~ParaExtraDialogData()
+{
+}
+void ParaExtraDialogData::typeHighlighted(int)
+{
+}
diff --git a/src/frontends/kde/paraextradlgdata.h b/src/frontends/kde/paraextradlgdata.h
new file mode 100644 (file)
index 0000000..28562f9
--- /dev/null
@@ -0,0 +1,57 @@
+/**********************************************************************
+
+       --- Qt Architect generated file ---
+
+       File: paraextradlgdata.h
+       Last generated: Sun Oct 15 05:49:46 2000
+
+       DO NOT EDIT!!!  This file will be automatically
+       regenerated by qtarch.  All changes will be lost.
+
+ *********************************************************************/
+
+#ifndef ParaExtraDialogData_included
+#define ParaExtraDialogData_included
+
+#include <qwidget.h>
+#include <qradiobutton.h>
+#include <qcheckbox.h>
+#include <qcombobox.h>
+#include <qbuttongroup.h>
+#include <krestrictedline.h>
+
+class ParaExtraDialogData : public QWidget
+{
+    Q_OBJECT
+
+public:
+
+    ParaExtraDialogData
+    (
+        QWidget* parent = NULL,
+        const char* name = NULL
+    );
+
+    virtual ~ParaExtraDialogData();
+
+public slots:
+
+
+protected slots:
+
+    virtual void typeHighlighted(int);
+
+protected:
+    QButtonGroup* specialalignment;
+    QComboBox* type;
+    QComboBox* widthvalueunits;
+    QCheckBox* hfillbetween;
+    QCheckBox* startnewminipage;
+    QRadioButton* top;
+    QRadioButton* middle;
+    QRadioButton* bottom;
+    KRestrictedLine* widthvalue;
+
+};
+
+#endif // ParaExtraDialogData_included
diff --git a/src/frontends/kde/parageneraldlg.C b/src/frontends/kde/parageneraldlg.C
new file mode 100644 (file)
index 0000000..8e71959
--- /dev/null
@@ -0,0 +1,118 @@
+/**********************************************************************
+
+       --- Qt Architect generated file ---
+
+       File: parageneraldlg.C
+       Last generated: Sat Oct 14 00:27:47 2000
+
+ *********************************************************************/
+
+#include "parageneraldlg.h"
+
+#include <gettext.h>
+
+#define Inherited ParaGeneralDialogData
+
+ParaGeneralDialog::ParaGeneralDialog
+(
+       QWidget* parent,
+       const char* name
+)
+       :
+       Inherited( parent, name )
+{
+
+       spaceabove->insertItem(_("None"));
+       spaceabove->insertItem(_("Defskip"));
+       spaceabove->insertItem(_("Small skip"));
+       spaceabove->insertItem(_("Medium skip"));
+       spaceabove->insertItem(_("Big skip"));
+       spaceabove->insertItem(_("VFill"));
+       spaceabove->insertItem(_("Length"));
+       spacebelow->insertItem(_("None"));
+       spacebelow->insertItem(_("Defskip"));
+       spacebelow->insertItem(_("Small skip"));
+       spacebelow->insertItem(_("Medium skip"));
+       spacebelow->insertItem(_("Big skip"));
+       spacebelow->insertItem(_("VFill"));
+       spacebelow->insertItem(_("Length"));
+       createUnits(spaceabovevalueunits);
+       createUnits(spaceaboveplusunits);
+       createUnits(spaceaboveminusunits);
+       createUnits(spacebelowvalueunits);
+       createUnits(spacebelowplusunits);
+       createUnits(spacebelowminusunits);
+}
+
+void ParaGeneralDialog::createUnits(QComboBox *box)
+{
+       // if you change this, remember to change ParaDialog::get/setUnits()
+       box->insertItem(_("Centimetres"));
+       box->insertItem(_("Inches"));
+       box->insertItem(_("Points (1/72.27 inch)"));
+       box->insertItem(_("Millimetres"));
+       box->insertItem(_("Picas"));
+       box->insertItem(_("ex units"));
+       box->insertItem(_("em units"));
+       box->insertItem(_("Scaled points (1/65536 pt)"));
+       box->insertItem(_("Big/PS points (1/72 inch)"));
+       box->insertItem(_("Didot points"));
+       box->insertItem(_("Cicero points"));
+       box->insertItem(_("Math units"));
+}
+
+ParaGeneralDialog::~ParaGeneralDialog()
+{
+}
+
+void ParaGeneralDialog::spaceaboveHighlighted(int val)
+{
+       spaceabovevalue->setEnabled(val == 6);
+       spaceabovevalueunits->setEnabled(val == 6);
+       spaceaboveplus->setEnabled(val == 6);
+       spaceaboveplusunits->setEnabled(val == 6);
+       spaceaboveminus->setEnabled(val == 6);
+       spaceaboveminusunits->setEnabled(val == 6);
+}
+
+void ParaGeneralDialog::spaceabovevalueChanged(const char *text)
+{
+       // FIXME: the problem here is not validation, but what to do
+       // if it is not a valid double value ...
+}
+
+void ParaGeneralDialog::spaceaboveplusChanged(const char *text)
+{
+       // FIXME
+}
+
+void ParaGeneralDialog::spaceaboveminusChanged(const char *text)
+{
+       // FIXME
+}
+
+void ParaGeneralDialog::spacebelowHighlighted(int val)
+{
+       spacebelowvalue->setEnabled(val == 6);
+       spacebelowvalueunits->setEnabled(val == 6);
+       spacebelowplus->setEnabled(val == 6);
+       spacebelowplusunits->setEnabled(val == 6);
+       spacebelowminus->setEnabled(val == 6);
+       spacebelowminusunits->setEnabled(val == 6);
+}
+
+void ParaGeneralDialog::spacebelowvalueChanged(const char *text)
+{
+       // FIXME
+}
+
+void ParaGeneralDialog::spacebelowplusChanged(const char *text)
+{
+       // FIXME
+}
+
+void ParaGeneralDialog::spacebelowminusChanged(const char *text)
+{
+       // FIXME
+}
diff --git a/src/frontends/kde/parageneraldlg.h b/src/frontends/kde/parageneraldlg.h
new file mode 100644 (file)
index 0000000..f608b34
--- /dev/null
@@ -0,0 +1,48 @@
+/**********************************************************************
+
+       --- Qt Architect generated file ---
+
+       File: parageneraldlg.h
+       Last generated: Sat Oct 14 00:27:47 2000
+
+ *********************************************************************/
+
+#ifndef ParaGeneralDialog_included
+#define ParaGeneralDialog_included
+
+#include "parageneraldlgdata.h"
+
+class ParaDialog;
+
+class ParaGeneralDialog : public ParaGeneralDialogData
+{
+    Q_OBJECT
+
+public:
+
+    ParaGeneralDialog
+    (
+        QWidget* parent = NULL,
+        const char* name = NULL
+    );
+
+    virtual ~ParaGeneralDialog();
+
+    friend class ParaDialog;
+
+protected slots:
+
+    void spaceaboveHighlighted(int);
+    void spacebelowHighlighted(int);
+    void spaceabovevalueChanged(const char *text);
+    void spaceaboveplusChanged(const char *text);
+    void spaceaboveminusChanged(const char *text);
+    void spacebelowvalueChanged(const char *text);
+    void spacebelowplusChanged(const char *text);
+    void spacebelowminusChanged(const char *text);
+
+private:
+
+       void createUnits(QComboBox *box);
+};
+#endif // ParaGeneralDialog_included
diff --git a/src/frontends/kde/parageneraldlgdata.C b/src/frontends/kde/parageneraldlgdata.C
new file mode 100644 (file)
index 0000000..35b410b
--- /dev/null
@@ -0,0 +1,891 @@
+/**********************************************************************
+
+       --- Qt Architect generated file ---
+
+       File: parageneraldlgdata.C
+       Last generated: Sun Oct 15 16:00:50 2000
+
+       DO NOT EDIT!!!  This file will be automatically
+       regenerated by qtarch.  All changes will be lost.
+
+ *********************************************************************/
+
+#include <gettext.h>
+#include <qpixmap.h>
+#include <qlayout.h>
+#include "parageneraldlgdata.h"
+
+#define Inherited QWidget
+
+#include <qlabel.h>
+#include <qgroupbox.h>
+
+ParaGeneralDialogData::ParaGeneralDialogData
+(
+       QWidget* parent,
+       const char* name
+)
+       :
+       Inherited( parent, name, 0 )
+{
+       alignment = new QButtonGroup( this, "alignment" );
+       alignment->setGeometry( 5, 5, 102, 196 );
+       alignment->setMinimumSize( 0, 0 );
+       alignment->setMaximumSize( 32767, 32767 );
+       alignment->setFocusPolicy( QWidget::NoFocus );
+       alignment->setBackgroundMode( QWidget::PaletteBackground );
+       alignment->setFontPropagation( QWidget::NoChildren );
+       alignment->setPalettePropagation( QWidget::NoChildren );
+       alignment->setFrameStyle( 49 );
+       alignment->setLineWidth( 1 );
+       alignment->setMidLineWidth( 0 );
+       alignment->QFrame::setMargin( 0 );
+       alignment->setTitle( _("Alignment") );
+       alignment->setAlignment( 1 );
+       alignment->setExclusive( TRUE );
+
+       QGroupBox* qtarch_SpacingAboveGroupBox;
+       qtarch_SpacingAboveGroupBox = new QGroupBox( this, "SpacingAboveGroupBox" );
+       qtarch_SpacingAboveGroupBox->setGeometry( 112, 5, 204, 196 );
+       qtarch_SpacingAboveGroupBox->setMinimumSize( 0, 0 );
+       qtarch_SpacingAboveGroupBox->setMaximumSize( 32767, 32767 );
+       qtarch_SpacingAboveGroupBox->setFocusPolicy( QWidget::NoFocus );
+       qtarch_SpacingAboveGroupBox->setBackgroundMode( QWidget::PaletteBackground );
+       qtarch_SpacingAboveGroupBox->setFontPropagation( QWidget::NoChildren );
+       qtarch_SpacingAboveGroupBox->setPalettePropagation( QWidget::NoChildren );
+       qtarch_SpacingAboveGroupBox->setFrameStyle( 49 );
+       qtarch_SpacingAboveGroupBox->setLineWidth( 1 );
+       qtarch_SpacingAboveGroupBox->setMidLineWidth( 0 );
+       qtarch_SpacingAboveGroupBox->QFrame::setMargin( 0 );
+       qtarch_SpacingAboveGroupBox->setTitle( _("Spacing Above") );
+       qtarch_SpacingAboveGroupBox->setAlignment( 1 );
+
+       lineabove = new QCheckBox( this, "lineabove" );
+       lineabove->setGeometry( 5, 206, 255, 26 );
+       lineabove->setMinimumSize( 0, 0 );
+       lineabove->setMaximumSize( 32767, 32767 );
+       lineabove->setFocusPolicy( QWidget::TabFocus );
+       lineabove->setBackgroundMode( QWidget::PaletteBackground );
+       lineabove->setFontPropagation( QWidget::NoChildren );
+       lineabove->setPalettePropagation( QWidget::NoChildren );
+       lineabove->setText( _("Draw line above paragraph") );
+       lineabove->setAutoRepeat( FALSE );
+       lineabove->setAutoResize( FALSE );
+       lineabove->setChecked( FALSE );
+
+       linebelow = new QCheckBox( this, "linebelow" );
+       linebelow->setGeometry( 5, 237, 255, 27 );
+       linebelow->setMinimumSize( 0, 0 );
+       linebelow->setMaximumSize( 32767, 32767 );
+       linebelow->setFocusPolicy( QWidget::TabFocus );
+       linebelow->setBackgroundMode( QWidget::PaletteBackground );
+       linebelow->setFontPropagation( QWidget::NoChildren );
+       linebelow->setPalettePropagation( QWidget::NoChildren );
+       linebelow->setText( _("Draw line below paragraph") );
+       linebelow->setAutoRepeat( FALSE );
+       linebelow->setAutoResize( FALSE );
+       linebelow->setChecked( FALSE );
+
+       pagebreakabove = new QCheckBox( qtarch_SpacingAboveGroupBox, "pagebreakabove" );
+       pagebreakabove->setGeometry( 5, 20, 194, 24 );
+       pagebreakabove->setMinimumSize( 0, 0 );
+       pagebreakabove->setMaximumSize( 32767, 32767 );
+       pagebreakabove->setFocusPolicy( QWidget::TabFocus );
+       pagebreakabove->setBackgroundMode( QWidget::PaletteBackground );
+       pagebreakabove->setFontPropagation( QWidget::NoChildren );
+       pagebreakabove->setPalettePropagation( QWidget::NoChildren );
+       pagebreakabove->setText( _("Page break") );
+       pagebreakabove->setAutoRepeat( FALSE );
+       pagebreakabove->setAutoResize( FALSE );
+       pagebreakabove->setChecked( FALSE );
+
+       noindent = new QCheckBox( this, "noindent" );
+       noindent->setGeometry( 5, 269, 255, 26 );
+       noindent->setMinimumSize( 0, 0 );
+       noindent->setMaximumSize( 32767, 32767 );
+       noindent->setFocusPolicy( QWidget::TabFocus );
+       noindent->setBackgroundMode( QWidget::PaletteBackground );
+       noindent->setFontPropagation( QWidget::NoChildren );
+       noindent->setPalettePropagation( QWidget::NoChildren );
+       noindent->setText( _("Don't indent paragraph") );
+       noindent->setAutoRepeat( FALSE );
+       noindent->setAutoResize( FALSE );
+       noindent->setChecked( FALSE );
+
+       spaceabove = new QComboBox( FALSE, qtarch_SpacingAboveGroupBox, "spaceabove" );
+       spaceabove->setGeometry( 5, 79, 194, 24 );
+       spaceabove->setMinimumSize( 0, 0 );
+       spaceabove->setMaximumSize( 32767, 32767 );
+       connect( spaceabove, SIGNAL(highlighted(int)), SLOT(spaceaboveHighlighted(int)) );
+       spaceabove->setFocusPolicy( QWidget::StrongFocus );
+       spaceabove->setBackgroundMode( QWidget::PaletteBackground );
+       spaceabove->setFontPropagation( QWidget::AllChildren );
+       spaceabove->setPalettePropagation( QWidget::AllChildren );
+       spaceabove->setSizeLimit( 10 );
+       spaceabove->setAutoResize( FALSE );
+       spaceabove->setMaxCount( 2147483647 );
+       spaceabove->setAutoCompletion( FALSE );
+
+       QLabel* qtarch_abovelabel;
+       qtarch_abovelabel = new QLabel( qtarch_SpacingAboveGroupBox, "abovelabel" );
+       qtarch_abovelabel->setGeometry( 5, 49, 194, 25 );
+       qtarch_abovelabel->setMinimumSize( 0, 0 );
+       qtarch_abovelabel->setMaximumSize( 32767, 32767 );
+       qtarch_abovelabel->setFocusPolicy( QWidget::NoFocus );
+       qtarch_abovelabel->setBackgroundMode( QWidget::PaletteBackground );
+       qtarch_abovelabel->setFontPropagation( QWidget::NoChildren );
+       qtarch_abovelabel->setPalettePropagation( QWidget::NoChildren );
+       qtarch_abovelabel->setFrameStyle( 0 );
+       qtarch_abovelabel->setLineWidth( 1 );
+       qtarch_abovelabel->setMidLineWidth( 0 );
+       qtarch_abovelabel->QFrame::setMargin( 0 );
+       qtarch_abovelabel->setText( _("Extra Space") );
+       qtarch_abovelabel->setAlignment( 289 );
+       qtarch_abovelabel->setMargin( -1 );
+
+       QGroupBox* qtarch_SpacingBelowGroupBox;
+       qtarch_SpacingBelowGroupBox = new QGroupBox( this, "SpacingBelowGroupBox" );
+       qtarch_SpacingBelowGroupBox->setGeometry( 321, 5, 204, 196 );
+       qtarch_SpacingBelowGroupBox->setMinimumSize( 0, 0 );
+       qtarch_SpacingBelowGroupBox->setMaximumSize( 32767, 32767 );
+       qtarch_SpacingBelowGroupBox->setFocusPolicy( QWidget::NoFocus );
+       qtarch_SpacingBelowGroupBox->setBackgroundMode( QWidget::PaletteBackground );
+       qtarch_SpacingBelowGroupBox->setFontPropagation( QWidget::NoChildren );
+       qtarch_SpacingBelowGroupBox->setPalettePropagation( QWidget::NoChildren );
+       qtarch_SpacingBelowGroupBox->setFrameStyle( 49 );
+       qtarch_SpacingBelowGroupBox->setLineWidth( 1 );
+       qtarch_SpacingBelowGroupBox->setMidLineWidth( 0 );
+       qtarch_SpacingBelowGroupBox->QFrame::setMargin( 0 );
+       qtarch_SpacingBelowGroupBox->setTitle( _("Spacing Below") );
+       qtarch_SpacingBelowGroupBox->setAlignment( 1 );
+
+       pagebreakbelow = new QCheckBox( qtarch_SpacingBelowGroupBox, "pagebreakbelow" );
+       pagebreakbelow->setGeometry( 5, 20, 194, 24 );
+       pagebreakbelow->setMinimumSize( 0, 0 );
+       pagebreakbelow->setMaximumSize( 32767, 32767 );
+       pagebreakbelow->setFocusPolicy( QWidget::TabFocus );
+       pagebreakbelow->setBackgroundMode( QWidget::PaletteBackground );
+       pagebreakbelow->setFontPropagation( QWidget::NoChildren );
+       pagebreakbelow->setPalettePropagation( QWidget::NoChildren );
+       pagebreakbelow->setText( _("Page break") );
+       pagebreakbelow->setAutoRepeat( FALSE );
+       pagebreakbelow->setAutoResize( FALSE );
+       pagebreakbelow->setChecked( FALSE );
+
+       QLabel* qtarch_belowlabel;
+       qtarch_belowlabel = new QLabel( qtarch_SpacingBelowGroupBox, "belowlabel" );
+       qtarch_belowlabel->setGeometry( 5, 49, 194, 25 );
+       qtarch_belowlabel->setMinimumSize( 0, 0 );
+       qtarch_belowlabel->setMaximumSize( 32767, 32767 );
+       qtarch_belowlabel->setFocusPolicy( QWidget::NoFocus );
+       qtarch_belowlabel->setBackgroundMode( QWidget::PaletteBackground );
+       qtarch_belowlabel->setFontPropagation( QWidget::NoChildren );
+       qtarch_belowlabel->setPalettePropagation( QWidget::NoChildren );
+       qtarch_belowlabel->setFrameStyle( 0 );
+       qtarch_belowlabel->setLineWidth( 1 );
+       qtarch_belowlabel->setMidLineWidth( 0 );
+       qtarch_belowlabel->QFrame::setMargin( 0 );
+       qtarch_belowlabel->setText( _("Extra Space") );
+       qtarch_belowlabel->setAlignment( 289 );
+       qtarch_belowlabel->setMargin( -1 );
+
+       spacebelow = new QComboBox( FALSE, qtarch_SpacingBelowGroupBox, "spacebelow" );
+       spacebelow->setGeometry( 5, 79, 194, 24 );
+       spacebelow->setMinimumSize( 0, 0 );
+       spacebelow->setMaximumSize( 32767, 32767 );
+       connect( spacebelow, SIGNAL(highlighted(int)), SLOT(spacebelowHighlighted(int)) );
+       spacebelow->setFocusPolicy( QWidget::StrongFocus );
+       spacebelow->setBackgroundMode( QWidget::PaletteBackground );
+       spacebelow->setFontPropagation( QWidget::AllChildren );
+       spacebelow->setPalettePropagation( QWidget::AllChildren );
+       spacebelow->setSizeLimit( 10 );
+       spacebelow->setAutoResize( FALSE );
+       spacebelow->setMaxCount( 2147483647 );
+       spacebelow->setAutoCompletion( FALSE );
+
+       block = new QRadioButton( alignment, "block" );
+       block->setGeometry( 5, 37, 92, 18 );
+       block->setMinimumSize( 0, 0 );
+       block->setMaximumSize( 32767, 32767 );
+       block->setFocusPolicy( QWidget::TabFocus );
+       block->setBackgroundMode( QWidget::PaletteBackground );
+       block->setFontPropagation( QWidget::NoChildren );
+       block->setPalettePropagation( QWidget::NoChildren );
+       block->setText( _("Block") );
+       block->setAutoRepeat( FALSE );
+       block->setAutoResize( FALSE );
+       block->setChecked( FALSE );
+
+       center = new QRadioButton( alignment, "center" );
+       center->setGeometry( 5, 77, 92, 17 );
+       center->setMinimumSize( 0, 0 );
+       center->setMaximumSize( 32767, 32767 );
+       center->setFocusPolicy( QWidget::TabFocus );
+       center->setBackgroundMode( QWidget::PaletteBackground );
+       center->setFontPropagation( QWidget::NoChildren );
+       center->setPalettePropagation( QWidget::NoChildren );
+       center->setText( _("Center") );
+       center->setAutoRepeat( FALSE );
+       center->setAutoResize( FALSE );
+       center->setChecked( FALSE );
+
+       left = new QRadioButton( alignment, "left" );
+       left->setGeometry( 5, 117, 92, 17 );
+       left->setMinimumSize( 0, 0 );
+       left->setMaximumSize( 32767, 32767 );
+       left->setFocusPolicy( QWidget::TabFocus );
+       left->setBackgroundMode( QWidget::PaletteBackground );
+       left->setFontPropagation( QWidget::NoChildren );
+       left->setPalettePropagation( QWidget::NoChildren );
+       left->setText( _("Left") );
+       left->setAutoRepeat( FALSE );
+       left->setAutoResize( FALSE );
+       left->setChecked( FALSE );
+
+       right = new QRadioButton( alignment, "right" );
+       right->setGeometry( 5, 156, 92, 18 );
+       right->setMinimumSize( 0, 0 );
+       right->setMaximumSize( 32767, 32767 );
+       right->setFocusPolicy( QWidget::TabFocus );
+       right->setBackgroundMode( QWidget::PaletteBackground );
+       right->setFontPropagation( QWidget::NoChildren );
+       right->setPalettePropagation( QWidget::NoChildren );
+       right->setText( _("Right") );
+       right->setAutoRepeat( FALSE );
+       right->setAutoResize( FALSE );
+       right->setChecked( FALSE );
+
+       QLabel* qtarch_labelwidthlabel;
+       qtarch_labelwidthlabel = new QLabel( this, "labelwidthlabel" );
+       qtarch_labelwidthlabel->setGeometry( 265, 206, 128, 89 );
+       qtarch_labelwidthlabel->setMinimumSize( 0, 0 );
+       qtarch_labelwidthlabel->setMaximumSize( 32767, 32767 );
+       qtarch_labelwidthlabel->setFocusPolicy( QWidget::NoFocus );
+       qtarch_labelwidthlabel->setBackgroundMode( QWidget::PaletteBackground );
+       qtarch_labelwidthlabel->setFontPropagation( QWidget::NoChildren );
+       qtarch_labelwidthlabel->setPalettePropagation( QWidget::NoChildren );
+       qtarch_labelwidthlabel->setFrameStyle( 0 );
+       qtarch_labelwidthlabel->setLineWidth( 1 );
+       qtarch_labelwidthlabel->setMidLineWidth( 0 );
+       qtarch_labelwidthlabel->QFrame::setMargin( 0 );
+       qtarch_labelwidthlabel->setText( _("Label width") );
+       qtarch_labelwidthlabel->setAlignment( 289 );
+       qtarch_labelwidthlabel->setMargin( -1 );
+
+       labelwidth = new QLineEdit( this, "labelwidth" );
+       labelwidth->setGeometry( 398, 206, 127, 89 );
+       labelwidth->setMinimumSize( 0, 0 );
+       labelwidth->setMaximumSize( 32767, 32767 );
+       labelwidth->setFocusPolicy( QWidget::StrongFocus );
+       labelwidth->setBackgroundMode( QWidget::PaletteBase );
+       labelwidth->setFontPropagation( QWidget::NoChildren );
+       labelwidth->setPalettePropagation( QWidget::NoChildren );
+       labelwidth->setText( _("") );
+       labelwidth->setMaxLength( 32767 );
+       labelwidth->setFrame( QLineEdit::Normal );
+       labelwidth->setFrame( TRUE );
+
+       spaceabovevalue = new KRestrictedLine( qtarch_SpacingAboveGroupBox, "spaceabovevalue" );
+       spaceabovevalue->setGeometry( 36, 108, 53, 24 );
+       spaceabovevalue->setMinimumSize( 0, 0 );
+       spaceabovevalue->setMaximumSize( 32767, 32767 );
+       connect( spaceabovevalue, SIGNAL(textChanged(const char*)), SLOT(spaceabovevalueChanged(const char*)) );
+       spaceabovevalue->setFocusPolicy( QWidget::StrongFocus );
+       spaceabovevalue->setBackgroundMode( QWidget::PaletteBase );
+       spaceabovevalue->setFontPropagation( QWidget::NoChildren );
+       spaceabovevalue->setPalettePropagation( QWidget::NoChildren );
+       spaceabovevalue->setText( _("") );
+       spaceabovevalue->setMaxLength( 32767 );
+       spaceabovevalue->setFrame( QLineEdit::Normal );
+       spaceabovevalue->setFrame( TRUE );
+       spaceabovevalue->setValidChars( "0123456789.-," );
+
+       QLabel* qtarch_ValueLabel;
+       qtarch_ValueLabel = new QLabel( qtarch_SpacingAboveGroupBox, "ValueLabel" );
+       qtarch_ValueLabel->setGeometry( 5, 108, 26, 24 );
+       qtarch_ValueLabel->setMinimumSize( 0, 0 );
+       qtarch_ValueLabel->setMaximumSize( 32767, 32767 );
+       qtarch_ValueLabel->setFocusPolicy( QWidget::NoFocus );
+       qtarch_ValueLabel->setBackgroundMode( QWidget::PaletteBackground );
+       qtarch_ValueLabel->setFontPropagation( QWidget::NoChildren );
+       qtarch_ValueLabel->setPalettePropagation( QWidget::NoChildren );
+       qtarch_ValueLabel->setFrameStyle( 0 );
+       qtarch_ValueLabel->setLineWidth( 1 );
+       qtarch_ValueLabel->setMidLineWidth( 0 );
+       qtarch_ValueLabel->QFrame::setMargin( 0 );
+       qtarch_ValueLabel->setText( _("Value") );
+       qtarch_ValueLabel->setAlignment( 289 );
+       qtarch_ValueLabel->setMargin( -1 );
+
+       spaceabovevalueunits = new QComboBox( FALSE, qtarch_SpacingAboveGroupBox, "spaceabovevalueunits" );
+       spaceabovevalueunits->setGeometry( 94, 108, 105, 24 );
+       spaceabovevalueunits->setMinimumSize( 0, 0 );
+       spaceabovevalueunits->setMaximumSize( 32767, 32767 );
+       spaceabovevalueunits->setFocusPolicy( QWidget::StrongFocus );
+       spaceabovevalueunits->setBackgroundMode( QWidget::PaletteBackground );
+       spaceabovevalueunits->setFontPropagation( QWidget::AllChildren );
+       spaceabovevalueunits->setPalettePropagation( QWidget::AllChildren );
+       spaceabovevalueunits->setSizeLimit( 10 );
+       spaceabovevalueunits->setAutoResize( FALSE );
+       spaceabovevalueunits->setMaxCount( 2147483647 );
+       spaceabovevalueunits->setAutoCompletion( FALSE );
+
+       QLabel* qtarch_aboveminuslabel;
+       qtarch_aboveminuslabel = new QLabel( qtarch_SpacingAboveGroupBox, "aboveminuslabel" );
+       qtarch_aboveminuslabel->setGeometry( 5, 167, 26, 24 );
+       qtarch_aboveminuslabel->setMinimumSize( 0, 0 );
+       qtarch_aboveminuslabel->setMaximumSize( 32767, 32767 );
+       qtarch_aboveminuslabel->setFocusPolicy( QWidget::NoFocus );
+       qtarch_aboveminuslabel->setBackgroundMode( QWidget::PaletteBackground );
+       qtarch_aboveminuslabel->setFontPropagation( QWidget::NoChildren );
+       qtarch_aboveminuslabel->setPalettePropagation( QWidget::NoChildren );
+       qtarch_aboveminuslabel->setFrameStyle( 0 );
+       qtarch_aboveminuslabel->setLineWidth( 1 );
+       qtarch_aboveminuslabel->setMidLineWidth( 0 );
+       qtarch_aboveminuslabel->QFrame::setMargin( 0 );
+       qtarch_aboveminuslabel->setText( _("Minus") );
+       qtarch_aboveminuslabel->setAlignment( 289 );
+       qtarch_aboveminuslabel->setMargin( -1 );
+
+       spaceaboveminus = new KRestrictedLine( qtarch_SpacingAboveGroupBox, "spaceaboveminus" );
+       spaceaboveminus->setGeometry( 36, 167, 53, 24 );
+       spaceaboveminus->setMinimumSize( 0, 0 );
+       spaceaboveminus->setMaximumSize( 32767, 32767 );
+       connect( spaceaboveminus, SIGNAL(textChanged(const char*)), SLOT(spaceaboveminusChanged(const char*)) );
+       spaceaboveminus->setFocusPolicy( QWidget::StrongFocus );
+       spaceaboveminus->setBackgroundMode( QWidget::PaletteBase );
+       spaceaboveminus->setFontPropagation( QWidget::NoChildren );
+       spaceaboveminus->setPalettePropagation( QWidget::NoChildren );
+       spaceaboveminus->setText( _("") );
+       spaceaboveminus->setMaxLength( 32767 );
+       spaceaboveminus->setFrame( QLineEdit::Normal );
+       spaceaboveminus->setFrame( TRUE );
+       spaceaboveminus->setValidChars( "0123456789.-," );
+
+       spaceaboveminusunits = new QComboBox( FALSE, qtarch_SpacingAboveGroupBox, "spaceaboveminusunits" );
+       spaceaboveminusunits->setGeometry( 94, 167, 105, 24 );
+       spaceaboveminusunits->setMinimumSize( 0, 0 );
+       spaceaboveminusunits->setMaximumSize( 32767, 32767 );
+       spaceaboveminusunits->setFocusPolicy( QWidget::StrongFocus );
+       spaceaboveminusunits->setBackgroundMode( QWidget::PaletteBackground );
+       spaceaboveminusunits->setFontPropagation( QWidget::AllChildren );
+       spaceaboveminusunits->setPalettePropagation( QWidget::AllChildren );
+       spaceaboveminusunits->setSizeLimit( 10 );
+       spaceaboveminusunits->setAutoResize( FALSE );
+       spaceaboveminusunits->setMaxCount( 2147483647 );
+       spaceaboveminusunits->setAutoCompletion( FALSE );
+
+       QLabel* qtarch_abovepluslabel ;
+       qtarch_abovepluslabel  = new QLabel( qtarch_SpacingAboveGroupBox, "abovepluslabel " );
+       qtarch_abovepluslabel ->setGeometry( 5, 137, 26, 25 );
+       qtarch_abovepluslabel ->setMinimumSize( 0, 0 );
+       qtarch_abovepluslabel ->setMaximumSize( 32767, 32767 );
+       qtarch_abovepluslabel ->setFocusPolicy( QWidget::NoFocus );
+       qtarch_abovepluslabel ->setBackgroundMode( QWidget::PaletteBackground );
+       qtarch_abovepluslabel ->setFontPropagation( QWidget::NoChildren );
+       qtarch_abovepluslabel ->setPalettePropagation( QWidget::NoChildren );
+       qtarch_abovepluslabel ->setFrameStyle( 0 );
+       qtarch_abovepluslabel ->setLineWidth( 1 );
+       qtarch_abovepluslabel ->setMidLineWidth( 0 );
+       qtarch_abovepluslabel ->QFrame::setMargin( 0 );
+       qtarch_abovepluslabel ->setText( _("Plus") );
+       qtarch_abovepluslabel ->setAlignment( 289 );
+       qtarch_abovepluslabel ->setMargin( -1 );
+
+       spaceaboveplus = new KRestrictedLine( qtarch_SpacingAboveGroupBox, "spaceaboveplus" );
+       spaceaboveplus->setGeometry( 36, 137, 53, 25 );
+       spaceaboveplus->setMinimumSize( 0, 0 );
+       spaceaboveplus->setMaximumSize( 32767, 32767 );
+       connect( spaceaboveplus, SIGNAL(textChanged(const char*)), SLOT(spaceaboveplusChanged(const char*)) );
+       spaceaboveplus->setFocusPolicy( QWidget::StrongFocus );
+       spaceaboveplus->setBackgroundMode( QWidget::PaletteBase );
+       spaceaboveplus->setFontPropagation( QWidget::NoChildren );
+       spaceaboveplus->setPalettePropagation( QWidget::NoChildren );
+       spaceaboveplus->setText( _("") );
+       spaceaboveplus->setMaxLength( 32767 );
+       spaceaboveplus->setFrame( QLineEdit::Normal );
+       spaceaboveplus->setFrame( TRUE );
+       spaceaboveplus->setValidChars( "0123456789.-," );
+
+       spaceaboveplusunits = new QComboBox( FALSE, qtarch_SpacingAboveGroupBox, "spaceaboveplusunits" );
+       spaceaboveplusunits->setGeometry( 94, 137, 105, 25 );
+       spaceaboveplusunits->setMinimumSize( 0, 0 );
+       spaceaboveplusunits->setMaximumSize( 32767, 32767 );
+       spaceaboveplusunits->setFocusPolicy( QWidget::StrongFocus );
+       spaceaboveplusunits->setBackgroundMode( QWidget::PaletteBackground );
+       spaceaboveplusunits->setFontPropagation( QWidget::AllChildren );
+       spaceaboveplusunits->setPalettePropagation( QWidget::AllChildren );
+       spaceaboveplusunits->setSizeLimit( 10 );
+       spaceaboveplusunits->setAutoResize( FALSE );
+       spaceaboveplusunits->setMaxCount( 2147483647 );
+       spaceaboveplusunits->setAutoCompletion( FALSE );
+
+       QLabel* qtarch_valuebelowlabel;
+       qtarch_valuebelowlabel = new QLabel( qtarch_SpacingBelowGroupBox, "valuebelowlabel" );
+       qtarch_valuebelowlabel->setGeometry( 5, 108, 26, 24 );
+       qtarch_valuebelowlabel->setMinimumSize( 0, 0 );
+       qtarch_valuebelowlabel->setMaximumSize( 32767, 32767 );
+       qtarch_valuebelowlabel->setFocusPolicy( QWidget::NoFocus );
+       qtarch_valuebelowlabel->setBackgroundMode( QWidget::PaletteBackground );
+       qtarch_valuebelowlabel->setFontPropagation( QWidget::NoChildren );
+       qtarch_valuebelowlabel->setPalettePropagation( QWidget::NoChildren );
+       qtarch_valuebelowlabel->setFrameStyle( 0 );
+       qtarch_valuebelowlabel->setLineWidth( 1 );
+       qtarch_valuebelowlabel->setMidLineWidth( 0 );
+       qtarch_valuebelowlabel->QFrame::setMargin( 0 );
+       qtarch_valuebelowlabel->setText( _("Value") );
+       qtarch_valuebelowlabel->setAlignment( 289 );
+       qtarch_valuebelowlabel->setMargin( -1 );
+
+       QLabel* qtarch_plusbelowlabel;
+       qtarch_plusbelowlabel = new QLabel( qtarch_SpacingBelowGroupBox, "plusbelowlabel" );
+       qtarch_plusbelowlabel->setGeometry( 5, 137, 26, 25 );
+       qtarch_plusbelowlabel->setMinimumSize( 0, 0 );
+       qtarch_plusbelowlabel->setMaximumSize( 32767, 32767 );
+       qtarch_plusbelowlabel->setFocusPolicy( QWidget::NoFocus );
+       qtarch_plusbelowlabel->setBackgroundMode( QWidget::PaletteBackground );
+       qtarch_plusbelowlabel->setFontPropagation( QWidget::NoChildren );
+       qtarch_plusbelowlabel->setPalettePropagation( QWidget::NoChildren );
+       qtarch_plusbelowlabel->setFrameStyle( 0 );
+       qtarch_plusbelowlabel->setLineWidth( 1 );
+       qtarch_plusbelowlabel->setMidLineWidth( 0 );
+       qtarch_plusbelowlabel->QFrame::setMargin( 0 );
+       qtarch_plusbelowlabel->setText( _("Plus") );
+       qtarch_plusbelowlabel->setAlignment( 289 );
+       qtarch_plusbelowlabel->setMargin( -1 );
+
+       QLabel* qtarch_minusbelowlabel;
+       qtarch_minusbelowlabel = new QLabel( qtarch_SpacingBelowGroupBox, "minusbelowlabel" );
+       qtarch_minusbelowlabel->setGeometry( 5, 167, 26, 24 );
+       qtarch_minusbelowlabel->setMinimumSize( 0, 0 );
+       qtarch_minusbelowlabel->setMaximumSize( 32767, 32767 );
+       qtarch_minusbelowlabel->setFocusPolicy( QWidget::NoFocus );
+       qtarch_minusbelowlabel->setBackgroundMode( QWidget::PaletteBackground );
+       qtarch_minusbelowlabel->setFontPropagation( QWidget::NoChildren );
+       qtarch_minusbelowlabel->setPalettePropagation( QWidget::NoChildren );
+       qtarch_minusbelowlabel->setFrameStyle( 0 );
+       qtarch_minusbelowlabel->setLineWidth( 1 );
+       qtarch_minusbelowlabel->setMidLineWidth( 0 );
+       qtarch_minusbelowlabel->QFrame::setMargin( 0 );
+       qtarch_minusbelowlabel->setText( _("Minus") );
+       qtarch_minusbelowlabel->setAlignment( 289 );
+       qtarch_minusbelowlabel->setMargin( -1 );
+
+       spacebelowminus = new KRestrictedLine( qtarch_SpacingBelowGroupBox, "spacebelowminus" );
+       spacebelowminus->setGeometry( 36, 167, 53, 24 );
+       spacebelowminus->setMinimumSize( 0, 0 );
+       spacebelowminus->setMaximumSize( 32767, 32767 );
+       connect( spacebelowminus, SIGNAL(textChanged(const char*)), SLOT(spacebelowminusChanged(const char*)) );
+       spacebelowminus->setFocusPolicy( QWidget::StrongFocus );
+       spacebelowminus->setBackgroundMode( QWidget::PaletteBase );
+       spacebelowminus->setFontPropagation( QWidget::NoChildren );
+       spacebelowminus->setPalettePropagation( QWidget::NoChildren );
+       spacebelowminus->setText( _("") );
+       spacebelowminus->setMaxLength( 32767 );
+       spacebelowminus->setFrame( QLineEdit::Normal );
+       spacebelowminus->setFrame( TRUE );
+       spacebelowminus->setValidChars( "0123456789.-," );
+
+       spacebelowplus = new KRestrictedLine( qtarch_SpacingBelowGroupBox, "spacebelowplus" );
+       spacebelowplus->setGeometry( 36, 137, 53, 25 );
+       spacebelowplus->setMinimumSize( 0, 0 );
+       spacebelowplus->setMaximumSize( 32767, 32767 );
+       connect( spacebelowplus, SIGNAL(textChanged(const char*)), SLOT(spacebelowplusChanged(const char*)) );
+       spacebelowplus->setFocusPolicy( QWidget::StrongFocus );
+       spacebelowplus->setBackgroundMode( QWidget::PaletteBase );
+       spacebelowplus->setFontPropagation( QWidget::NoChildren );
+       spacebelowplus->setPalettePropagation( QWidget::NoChildren );
+       spacebelowplus->setText( _("") );
+       spacebelowplus->setMaxLength( 32767 );
+       spacebelowplus->setFrame( QLineEdit::Normal );
+       spacebelowplus->setFrame( TRUE );
+       spacebelowplus->setValidChars( "0123456789.-," );
+
+       spacebelowvalue = new KRestrictedLine( qtarch_SpacingBelowGroupBox, "spacebelowvalue" );
+       spacebelowvalue->setGeometry( 36, 108, 53, 24 );
+       spacebelowvalue->setMinimumSize( 0, 0 );
+       spacebelowvalue->setMaximumSize( 32767, 32767 );
+       connect( spacebelowvalue, SIGNAL(textChanged(const char*)), SLOT(spacebelowvalueChanged(const char*)) );
+       spacebelowvalue->setFocusPolicy( QWidget::StrongFocus );
+       spacebelowvalue->setBackgroundMode( QWidget::PaletteBase );
+       spacebelowvalue->setFontPropagation( QWidget::NoChildren );
+       spacebelowvalue->setPalettePropagation( QWidget::NoChildren );
+       spacebelowvalue->setText( _("") );
+       spacebelowvalue->setMaxLength( 32767 );
+       spacebelowvalue->setFrame( QLineEdit::Normal );
+       spacebelowvalue->setFrame( TRUE );
+       spacebelowvalue->setValidChars( "0123456789.-," );
+
+       spacebelowvalueunits = new QComboBox( FALSE, qtarch_SpacingBelowGroupBox, "spacebelowvalueunits" );
+       spacebelowvalueunits->setGeometry( 94, 108, 105, 24 );
+       spacebelowvalueunits->setMinimumSize( 0, 0 );
+       spacebelowvalueunits->setMaximumSize( 32767, 32767 );
+       spacebelowvalueunits->setFocusPolicy( QWidget::StrongFocus );
+       spacebelowvalueunits->setBackgroundMode( QWidget::PaletteBackground );
+       spacebelowvalueunits->setFontPropagation( QWidget::AllChildren );
+       spacebelowvalueunits->setPalettePropagation( QWidget::AllChildren );
+       spacebelowvalueunits->setSizeLimit( 10 );
+       spacebelowvalueunits->setAutoResize( FALSE );
+       spacebelowvalueunits->setMaxCount( 2147483647 );
+       spacebelowvalueunits->setAutoCompletion( FALSE );
+
+       spacebelowplusunits = new QComboBox( FALSE, qtarch_SpacingBelowGroupBox, "spacebelowplusunits" );
+       spacebelowplusunits->setGeometry( 94, 137, 105, 25 );
+       spacebelowplusunits->setMinimumSize( 0, 0 );
+       spacebelowplusunits->setMaximumSize( 32767, 32767 );
+       spacebelowplusunits->setFocusPolicy( QWidget::StrongFocus );
+       spacebelowplusunits->setBackgroundMode( QWidget::PaletteBackground );
+       spacebelowplusunits->setFontPropagation( QWidget::AllChildren );
+       spacebelowplusunits->setPalettePropagation( QWidget::AllChildren );
+       spacebelowplusunits->setSizeLimit( 10 );
+       spacebelowplusunits->setAutoResize( FALSE );
+       spacebelowplusunits->setMaxCount( 2147483647 );
+       spacebelowplusunits->setAutoCompletion( FALSE );
+
+       spacebelowminusunits = new QComboBox( FALSE, qtarch_SpacingBelowGroupBox, "spacebelowminusunits" );
+       spacebelowminusunits->setGeometry( 94, 167, 105, 24 );
+       spacebelowminusunits->setMinimumSize( 0, 0 );
+       spacebelowminusunits->setMaximumSize( 32767, 32767 );
+       spacebelowminusunits->setFocusPolicy( QWidget::StrongFocus );
+       spacebelowminusunits->setBackgroundMode( QWidget::PaletteBackground );
+       spacebelowminusunits->setFontPropagation( QWidget::AllChildren );
+       spacebelowminusunits->setPalettePropagation( QWidget::AllChildren );
+       spacebelowminusunits->setSizeLimit( 10 );
+       spacebelowminusunits->setAutoResize( FALSE );
+       spacebelowminusunits->setMaxCount( 2147483647 );
+       spacebelowminusunits->setAutoCompletion( FALSE );
+
+       if (alignment->sizeHint().width()!=-1)
+               alignment->setMinimumWidth(alignment->sizeHint().width());
+       if (alignment->sizeHint().height()!=-1)
+               alignment->setMinimumHeight(alignment->sizeHint().height());
+       alignment->insert( block );
+       alignment->insert( center );
+       alignment->insert( left );
+       alignment->insert( right );
+
+       if (lineabove->sizeHint().width()!=-1)
+               lineabove->setMinimumWidth(lineabove->sizeHint().width());
+       if (lineabove->sizeHint().height()!=-1)
+               lineabove->setMinimumHeight(lineabove->sizeHint().height());
+       if (lineabove->sizeHint().width()!=-1)
+               lineabove->setMaximumWidth(lineabove->sizeHint().width());
+       if (lineabove->sizeHint().height()!=-1)
+               lineabove->setMaximumHeight(lineabove->sizeHint().height());
+       if (linebelow->sizeHint().width()!=-1)
+               linebelow->setMinimumWidth(linebelow->sizeHint().width());
+       if (linebelow->sizeHint().height()!=-1)
+               linebelow->setMinimumHeight(linebelow->sizeHint().height());
+       if (linebelow->sizeHint().width()!=-1)
+               linebelow->setMaximumWidth(linebelow->sizeHint().width());
+       if (linebelow->sizeHint().height()!=-1)
+               linebelow->setMaximumHeight(linebelow->sizeHint().height());
+       if (pagebreakabove->sizeHint().width()!=-1)
+               pagebreakabove->setMinimumWidth(pagebreakabove->sizeHint().width());
+       if (pagebreakabove->sizeHint().height()!=-1)
+               pagebreakabove->setMinimumHeight(pagebreakabove->sizeHint().height());
+       if (pagebreakabove->sizeHint().width()!=-1)
+               pagebreakabove->setMaximumWidth(pagebreakabove->sizeHint().width());
+       if (pagebreakabove->sizeHint().height()!=-1)
+               pagebreakabove->setMaximumHeight(pagebreakabove->sizeHint().height());
+       if (noindent->sizeHint().width()!=-1)
+               noindent->setMinimumWidth(noindent->sizeHint().width());
+       if (noindent->sizeHint().height()!=-1)
+               noindent->setMinimumHeight(noindent->sizeHint().height());
+       if (noindent->sizeHint().width()!=-1)
+               noindent->setMaximumWidth(noindent->sizeHint().width());
+       if (noindent->sizeHint().height()!=-1)
+               noindent->setMaximumHeight(noindent->sizeHint().height());
+       if (spaceabove->sizeHint().width()!=-1)
+               spaceabove->setMinimumWidth(spaceabove->sizeHint().width());
+       if (spaceabove->sizeHint().height()!=-1)
+               spaceabove->setMinimumHeight(spaceabove->sizeHint().height());
+       if (spaceabove->sizeHint().height()!=-1)
+               spaceabove->setMaximumHeight(spaceabove->sizeHint().height());
+       if (qtarch_abovelabel->sizeHint().width()!=-1)
+               qtarch_abovelabel->setMinimumWidth(qtarch_abovelabel->sizeHint().width());
+       if (qtarch_abovelabel->sizeHint().height()!=-1)
+               qtarch_abovelabel->setMinimumHeight(qtarch_abovelabel->sizeHint().height());
+       if (qtarch_abovelabel->sizeHint().width()!=-1)
+               qtarch_abovelabel->setMaximumWidth(qtarch_abovelabel->sizeHint().width());
+       if (qtarch_abovelabel->sizeHint().height()!=-1)
+               qtarch_abovelabel->setMaximumHeight(qtarch_abovelabel->sizeHint().height());
+       if (pagebreakbelow->sizeHint().width()!=-1)
+               pagebreakbelow->setMinimumWidth(pagebreakbelow->sizeHint().width());
+       if (pagebreakbelow->sizeHint().height()!=-1)
+               pagebreakbelow->setMinimumHeight(pagebreakbelow->sizeHint().height());
+       if (pagebreakbelow->sizeHint().width()!=-1)
+               pagebreakbelow->setMaximumWidth(pagebreakbelow->sizeHint().width());
+       if (pagebreakbelow->sizeHint().height()!=-1)
+               pagebreakbelow->setMaximumHeight(pagebreakbelow->sizeHint().height());
+       if (qtarch_belowlabel->sizeHint().width()!=-1)
+               qtarch_belowlabel->setMinimumWidth(qtarch_belowlabel->sizeHint().width());
+       if (qtarch_belowlabel->sizeHint().height()!=-1)
+               qtarch_belowlabel->setMinimumHeight(qtarch_belowlabel->sizeHint().height());
+       if (qtarch_belowlabel->sizeHint().width()!=-1)
+               qtarch_belowlabel->setMaximumWidth(qtarch_belowlabel->sizeHint().width());
+       if (qtarch_belowlabel->sizeHint().height()!=-1)
+               qtarch_belowlabel->setMaximumHeight(qtarch_belowlabel->sizeHint().height());
+       if (spacebelow->sizeHint().width()!=-1)
+               spacebelow->setMinimumWidth(spacebelow->sizeHint().width());
+       if (spacebelow->sizeHint().height()!=-1)
+               spacebelow->setMinimumHeight(spacebelow->sizeHint().height());
+       if (spacebelow->sizeHint().height()!=-1)
+               spacebelow->setMaximumHeight(spacebelow->sizeHint().height());
+       if (block->sizeHint().width()!=-1)
+               block->setMinimumWidth(block->sizeHint().width());
+       if (block->sizeHint().height()!=-1)
+               block->setMinimumHeight(block->sizeHint().height());
+       if (block->sizeHint().width()!=-1)
+               block->setMaximumWidth(block->sizeHint().width());
+       if (block->sizeHint().height()!=-1)
+               block->setMaximumHeight(block->sizeHint().height());
+       if (center->sizeHint().width()!=-1)
+               center->setMinimumWidth(center->sizeHint().width());
+       if (center->sizeHint().height()!=-1)
+               center->setMinimumHeight(center->sizeHint().height());
+       if (center->sizeHint().width()!=-1)
+               center->setMaximumWidth(center->sizeHint().width());
+       if (center->sizeHint().height()!=-1)
+               center->setMaximumHeight(center->sizeHint().height());
+       if (left->sizeHint().width()!=-1)
+               left->setMinimumWidth(left->sizeHint().width());
+       if (left->sizeHint().height()!=-1)
+               left->setMinimumHeight(left->sizeHint().height());
+       if (left->sizeHint().width()!=-1)
+               left->setMaximumWidth(left->sizeHint().width());
+       if (left->sizeHint().height()!=-1)
+               left->setMaximumHeight(left->sizeHint().height());
+       if (right->sizeHint().width()!=-1)
+               right->setMinimumWidth(right->sizeHint().width());
+       if (right->sizeHint().height()!=-1)
+               right->setMinimumHeight(right->sizeHint().height());
+       if (right->sizeHint().width()!=-1)
+               right->setMaximumWidth(right->sizeHint().width());
+       if (right->sizeHint().height()!=-1)
+               right->setMaximumHeight(right->sizeHint().height());
+       if (qtarch_labelwidthlabel->sizeHint().width()!=-1)
+               qtarch_labelwidthlabel->setMinimumWidth(qtarch_labelwidthlabel->sizeHint().width());
+       if (qtarch_labelwidthlabel->sizeHint().height()!=-1)
+               qtarch_labelwidthlabel->setMinimumHeight(qtarch_labelwidthlabel->sizeHint().height());
+       if (qtarch_labelwidthlabel->sizeHint().width()!=-1)
+               qtarch_labelwidthlabel->setMaximumWidth(qtarch_labelwidthlabel->sizeHint().width());
+       if (qtarch_labelwidthlabel->sizeHint().height()!=-1)
+               qtarch_labelwidthlabel->setMaximumHeight(qtarch_labelwidthlabel->sizeHint().height());
+       if (labelwidth->sizeHint().width()!=-1)
+               labelwidth->setMinimumWidth(labelwidth->sizeHint().width());
+       if (labelwidth->sizeHint().height()!=-1)
+               labelwidth->setMinimumHeight(labelwidth->sizeHint().height());
+       if (labelwidth->sizeHint().height()!=-1)
+               labelwidth->setMaximumHeight(labelwidth->sizeHint().height());
+       if (spaceabovevalue->sizeHint().width()!=-1)
+               spaceabovevalue->setMinimumWidth(spaceabovevalue->sizeHint().width());
+       if (spaceabovevalue->sizeHint().height()!=-1)
+               spaceabovevalue->setMinimumHeight(spaceabovevalue->sizeHint().height());
+       if (spaceabovevalue->sizeHint().height()!=-1)
+               spaceabovevalue->setMaximumHeight(spaceabovevalue->sizeHint().height());
+       if (qtarch_ValueLabel->sizeHint().width()!=-1)
+               qtarch_ValueLabel->setMinimumWidth(qtarch_ValueLabel->sizeHint().width());
+       if (qtarch_ValueLabel->sizeHint().height()!=-1)
+               qtarch_ValueLabel->setMinimumHeight(qtarch_ValueLabel->sizeHint().height());
+       if (spaceabovevalueunits->sizeHint().width()!=-1)
+               spaceabovevalueunits->setMinimumWidth(spaceabovevalueunits->sizeHint().width());
+       if (spaceabovevalueunits->sizeHint().height()!=-1)
+               spaceabovevalueunits->setMinimumHeight(spaceabovevalueunits->sizeHint().height());
+       if (spaceabovevalueunits->sizeHint().height()!=-1)
+               spaceabovevalueunits->setMaximumHeight(spaceabovevalueunits->sizeHint().height());
+       if (qtarch_aboveminuslabel->sizeHint().width()!=-1)
+               qtarch_aboveminuslabel->setMinimumWidth(qtarch_aboveminuslabel->sizeHint().width());
+       if (qtarch_aboveminuslabel->sizeHint().height()!=-1)
+               qtarch_aboveminuslabel->setMinimumHeight(qtarch_aboveminuslabel->sizeHint().height());
+       if (spaceaboveminus->sizeHint().width()!=-1)
+               spaceaboveminus->setMinimumWidth(spaceaboveminus->sizeHint().width());
+       if (spaceaboveminus->sizeHint().height()!=-1)
+               spaceaboveminus->setMinimumHeight(spaceaboveminus->sizeHint().height());
+       if (spaceaboveminus->sizeHint().height()!=-1)
+               spaceaboveminus->setMaximumHeight(spaceaboveminus->sizeHint().height());
+       if (spaceaboveminusunits->sizeHint().width()!=-1)
+               spaceaboveminusunits->setMinimumWidth(spaceaboveminusunits->sizeHint().width());
+       if (spaceaboveminusunits->sizeHint().height()!=-1)
+               spaceaboveminusunits->setMinimumHeight(spaceaboveminusunits->sizeHint().height());
+       if (spaceaboveminusunits->sizeHint().height()!=-1)
+               spaceaboveminusunits->setMaximumHeight(spaceaboveminusunits->sizeHint().height());
+       if (qtarch_abovepluslabel ->sizeHint().width()!=-1)
+               qtarch_abovepluslabel ->setMinimumWidth(qtarch_abovepluslabel ->sizeHint().width());
+       if (qtarch_abovepluslabel ->sizeHint().height()!=-1)
+               qtarch_abovepluslabel ->setMinimumHeight(qtarch_abovepluslabel ->sizeHint().height());
+       if (spaceaboveplus->sizeHint().width()!=-1)
+               spaceaboveplus->setMinimumWidth(spaceaboveplus->sizeHint().width());
+       if (spaceaboveplus->sizeHint().height()!=-1)
+               spaceaboveplus->setMinimumHeight(spaceaboveplus->sizeHint().height());
+       if (spaceaboveplus->sizeHint().height()!=-1)
+               spaceaboveplus->setMaximumHeight(spaceaboveplus->sizeHint().height());
+       if (spaceaboveplusunits->sizeHint().width()!=-1)
+               spaceaboveplusunits->setMinimumWidth(spaceaboveplusunits->sizeHint().width());
+       if (spaceaboveplusunits->sizeHint().height()!=-1)
+               spaceaboveplusunits->setMinimumHeight(spaceaboveplusunits->sizeHint().height());
+       if (spaceaboveplusunits->sizeHint().height()!=-1)
+               spaceaboveplusunits->setMaximumHeight(spaceaboveplusunits->sizeHint().height());
+       if (qtarch_valuebelowlabel->sizeHint().width()!=-1)
+               qtarch_valuebelowlabel->setMinimumWidth(qtarch_valuebelowlabel->sizeHint().width());
+       if (qtarch_valuebelowlabel->sizeHint().height()!=-1)
+               qtarch_valuebelowlabel->setMinimumHeight(qtarch_valuebelowlabel->sizeHint().height());
+       if (qtarch_plusbelowlabel->sizeHint().width()!=-1)
+               qtarch_plusbelowlabel->setMinimumWidth(qtarch_plusbelowlabel->sizeHint().width());
+       if (qtarch_plusbelowlabel->sizeHint().height()!=-1)
+               qtarch_plusbelowlabel->setMinimumHeight(qtarch_plusbelowlabel->sizeHint().height());
+       if (qtarch_minusbelowlabel->sizeHint().width()!=-1)
+               qtarch_minusbelowlabel->setMinimumWidth(qtarch_minusbelowlabel->sizeHint().width());
+       if (qtarch_minusbelowlabel->sizeHint().height()!=-1)
+               qtarch_minusbelowlabel->setMinimumHeight(qtarch_minusbelowlabel->sizeHint().height());
+       if (spacebelowminus->sizeHint().width()!=-1)
+               spacebelowminus->setMinimumWidth(spacebelowminus->sizeHint().width());
+       if (spacebelowminus->sizeHint().height()!=-1)
+               spacebelowminus->setMinimumHeight(spacebelowminus->sizeHint().height());
+       if (spacebelowminus->sizeHint().height()!=-1)
+               spacebelowminus->setMaximumHeight(spacebelowminus->sizeHint().height());
+       if (spacebelowplus->sizeHint().width()!=-1)
+               spacebelowplus->setMinimumWidth(spacebelowplus->sizeHint().width());
+       if (spacebelowplus->sizeHint().height()!=-1)
+               spacebelowplus->setMinimumHeight(spacebelowplus->sizeHint().height());
+       if (spacebelowplus->sizeHint().height()!=-1)
+               spacebelowplus->setMaximumHeight(spacebelowplus->sizeHint().height());
+       if (spacebelowvalue->sizeHint().width()!=-1)
+               spacebelowvalue->setMinimumWidth(spacebelowvalue->sizeHint().width());
+       if (spacebelowvalue->sizeHint().height()!=-1)
+               spacebelowvalue->setMinimumHeight(spacebelowvalue->sizeHint().height());
+       if (spacebelowvalue->sizeHint().height()!=-1)
+               spacebelowvalue->setMaximumHeight(spacebelowvalue->sizeHint().height());
+       if (spacebelowvalueunits->sizeHint().width()!=-1)
+               spacebelowvalueunits->setMinimumWidth(spacebelowvalueunits->sizeHint().width());
+       if (spacebelowvalueunits->sizeHint().height()!=-1)
+               spacebelowvalueunits->setMinimumHeight(spacebelowvalueunits->sizeHint().height());
+       if (spacebelowvalueunits->sizeHint().height()!=-1)
+               spacebelowvalueunits->setMaximumHeight(spacebelowvalueunits->sizeHint().height());
+       if (spacebelowplusunits->sizeHint().width()!=-1)
+               spacebelowplusunits->setMinimumWidth(spacebelowplusunits->sizeHint().width());
+       if (spacebelowplusunits->sizeHint().height()!=-1)
+               spacebelowplusunits->setMinimumHeight(spacebelowplusunits->sizeHint().height());
+       if (spacebelowplusunits->sizeHint().height()!=-1)
+               spacebelowplusunits->setMaximumHeight(spacebelowplusunits->sizeHint().height());
+       if (spacebelowminusunits->sizeHint().width()!=-1)
+               spacebelowminusunits->setMinimumWidth(spacebelowminusunits->sizeHint().width());
+       if (spacebelowminusunits->sizeHint().height()!=-1)
+               spacebelowminusunits->setMinimumHeight(spacebelowminusunits->sizeHint().height());
+       if (spacebelowminusunits->sizeHint().height()!=-1)
+               spacebelowminusunits->setMaximumHeight(spacebelowminusunits->sizeHint().height());
+       QBoxLayout* qtarch_layout_1 = new QBoxLayout( this, QBoxLayout::TopToBottom, 5, 5, NULL );
+       qtarch_layout_1->addStrut( 0 );
+       QBoxLayout* qtarch_layout_1_1 = new QBoxLayout( QBoxLayout::LeftToRight, 5, NULL );
+       qtarch_layout_1->addLayout( qtarch_layout_1_1, 5 );
+       qtarch_layout_1_1->addStrut( 0 );
+       qtarch_layout_1_1->addWidget( alignment, 1, 33 );
+       QBoxLayout* qtarch_layout_1_1_1 = new QBoxLayout( alignment, QBoxLayout::TopToBottom, 5, 5, NULL );
+       qtarch_layout_1_1_1->addStrut( 0 );
+       qtarch_layout_1_1_1->addSpacing( 15 );
+       qtarch_layout_1_1_1->addStretch( 1 );
+       qtarch_layout_1_1_1->addWidget( block, 1, 1 );
+       qtarch_layout_1_1_1->addStretch( 1 );
+       qtarch_layout_1_1_1->addWidget( center, 1, 1 );
+       qtarch_layout_1_1_1->addStretch( 1 );
+       qtarch_layout_1_1_1->addWidget( left, 1, 1 );
+       qtarch_layout_1_1_1->addStretch( 1 );
+       qtarch_layout_1_1_1->addWidget( right, 1, 1 );
+       qtarch_layout_1_1_1->addStretch( 1 );
+       qtarch_layout_1_1->addWidget( qtarch_SpacingAboveGroupBox, 2, 36 );
+       QBoxLayout* qtarch_layout_1_1_2 = new QBoxLayout( qtarch_SpacingAboveGroupBox, QBoxLayout::TopToBottom, 5, 5, NULL );
+       qtarch_layout_1_1_2->addStrut( 0 );
+       qtarch_layout_1_1_2->addSpacing( 15 );
+       qtarch_layout_1_1_2->addWidget( pagebreakabove, 1, 1 );
+       qtarch_layout_1_1_2->addWidget( qtarch_abovelabel, 1, 1 );
+       qtarch_layout_1_1_2->addWidget( spaceabove, 1, 1 );
+       QBoxLayout* qtarch_layout_1_1_2_5 = new QBoxLayout( QBoxLayout::LeftToRight, 5, NULL );
+       qtarch_layout_1_1_2->addLayout( qtarch_layout_1_1_2_5, 1 );
+       qtarch_layout_1_1_2_5->addStrut( 0 );
+       qtarch_layout_1_1_2_5->addWidget( qtarch_ValueLabel, 1, 36 );
+       qtarch_layout_1_1_2_5->addWidget( spaceabovevalue, 2, 36 );
+       qtarch_layout_1_1_2_5->addWidget( spaceabovevalueunits, 4, 36 );
+       QBoxLayout* qtarch_layout_1_1_2_6 = new QBoxLayout( QBoxLayout::LeftToRight, 5, NULL );
+       qtarch_layout_1_1_2->addLayout( qtarch_layout_1_1_2_6, 1 );
+       qtarch_layout_1_1_2_6->addStrut( 0 );
+       qtarch_layout_1_1_2_6->addWidget( qtarch_abovepluslabel , 1, 36 );
+       qtarch_layout_1_1_2_6->addWidget( spaceaboveplus, 2, 36 );
+       qtarch_layout_1_1_2_6->addWidget( spaceaboveplusunits, 4, 36 );
+       QBoxLayout* qtarch_layout_1_1_2_7 = new QBoxLayout( QBoxLayout::LeftToRight, 5, NULL );
+       qtarch_layout_1_1_2->addLayout( qtarch_layout_1_1_2_7, 1 );
+       qtarch_layout_1_1_2_7->addStrut( 0 );
+       qtarch_layout_1_1_2_7->addWidget( qtarch_aboveminuslabel, 1, 36 );
+       qtarch_layout_1_1_2_7->addWidget( spaceaboveminus, 2, 36 );
+       qtarch_layout_1_1_2_7->addWidget( spaceaboveminusunits, 4, 36 );
+       qtarch_layout_1_1->addWidget( qtarch_SpacingBelowGroupBox, 2, 36 );
+       QBoxLayout* qtarch_layout_1_1_3 = new QBoxLayout( qtarch_SpacingBelowGroupBox, QBoxLayout::TopToBottom, 5, 5, NULL );
+       qtarch_layout_1_1_3->addStrut( 0 );
+       qtarch_layout_1_1_3->addSpacing( 15 );
+       qtarch_layout_1_1_3->addWidget( pagebreakbelow, 1, 1 );
+       qtarch_layout_1_1_3->addWidget( qtarch_belowlabel, 1, 1 );
+       qtarch_layout_1_1_3->addWidget( spacebelow, 1, 1 );
+       QBoxLayout* qtarch_layout_1_1_3_5 = new QBoxLayout( QBoxLayout::LeftToRight, 5, NULL );
+       qtarch_layout_1_1_3->addLayout( qtarch_layout_1_1_3_5, 1 );
+       qtarch_layout_1_1_3_5->addStrut( 0 );
+       qtarch_layout_1_1_3_5->addWidget( qtarch_valuebelowlabel, 1, 36 );
+       qtarch_layout_1_1_3_5->addWidget( spacebelowvalue, 2, 36 );
+       qtarch_layout_1_1_3_5->addWidget( spacebelowvalueunits, 4, 36 );
+       QBoxLayout* qtarch_layout_1_1_3_6 = new QBoxLayout( QBoxLayout::LeftToRight, 5, NULL );
+       qtarch_layout_1_1_3->addLayout( qtarch_layout_1_1_3_6, 1 );
+       qtarch_layout_1_1_3_6->addStrut( 0 );
+       qtarch_layout_1_1_3_6->addWidget( qtarch_plusbelowlabel, 1, 36 );
+       qtarch_layout_1_1_3_6->addWidget( spacebelowplus, 2, 36 );
+       qtarch_layout_1_1_3_6->addWidget( spacebelowplusunits, 4, 36 );
+       QBoxLayout* qtarch_layout_1_1_3_7 = new QBoxLayout( QBoxLayout::LeftToRight, 5, NULL );
+       qtarch_layout_1_1_3->addLayout( qtarch_layout_1_1_3_7, 1 );
+       qtarch_layout_1_1_3_7->addStrut( 0 );
+       qtarch_layout_1_1_3_7->addWidget( qtarch_minusbelowlabel, 1, 36 );
+       qtarch_layout_1_1_3_7->addWidget( spacebelowminus, 2, 36 );
+       qtarch_layout_1_1_3_7->addWidget( spacebelowminusunits, 4, 36 );
+       QBoxLayout* qtarch_layout_1_2 = new QBoxLayout( QBoxLayout::LeftToRight, 5, NULL );
+       qtarch_layout_1->addLayout( qtarch_layout_1_2, 2 );
+       qtarch_layout_1_2->addStrut( 0 );
+       QBoxLayout* qtarch_layout_1_2_1 = new QBoxLayout( QBoxLayout::TopToBottom, 5, NULL );
+       qtarch_layout_1_2->addLayout( qtarch_layout_1_2_1, 1 );
+       qtarch_layout_1_2_1->addStrut( 0 );
+       qtarch_layout_1_2_1->addWidget( lineabove, 1, 1 );
+       qtarch_layout_1_2_1->addWidget( linebelow, 1, 1 );
+       qtarch_layout_1_2_1->addWidget( noindent, 1, 1 );
+       QBoxLayout* qtarch_layout_1_2_2 = new QBoxLayout( QBoxLayout::LeftToRight, 5, NULL );
+       qtarch_layout_1_2->addLayout( qtarch_layout_1_2_2, 1 );
+       qtarch_layout_1_2_2->addStrut( 0 );
+       qtarch_layout_1_2_2->addWidget( qtarch_labelwidthlabel, 1, 36 );
+       qtarch_layout_1_2_2->addWidget( labelwidth, 1, 36 );
+       resize( 530,300 );
+       setMinimumSize( 0, 0 );
+       setMaximumSize( 32767, 32767 );
+}
+
+
+ParaGeneralDialogData::~ParaGeneralDialogData()
+{
+}
+void ParaGeneralDialogData::spaceaboveHighlighted(int)
+{
+}
+void ParaGeneralDialogData::spacebelowHighlighted(int)
+{
+}
+void ParaGeneralDialogData::spaceabovevalueChanged(const char*)
+{
+}
+void ParaGeneralDialogData::spaceaboveminusChanged(const char*)
+{
+}
+void ParaGeneralDialogData::spaceaboveplusChanged(const char*)
+{
+}
+void ParaGeneralDialogData::spacebelowminusChanged(const char*)
+{
+}
+void ParaGeneralDialogData::spacebelowplusChanged(const char*)
+{
+}
+void ParaGeneralDialogData::spacebelowvalueChanged(const char*)
+{
+}
diff --git a/src/frontends/kde/parageneraldlgdata.h b/src/frontends/kde/parageneraldlgdata.h
new file mode 100644 (file)
index 0000000..96715ec
--- /dev/null
@@ -0,0 +1,81 @@
+/**********************************************************************
+
+       --- Qt Architect generated file ---
+
+       File: parageneraldlgdata.h
+       Last generated: Sun Oct 15 16:00:50 2000
+
+       DO NOT EDIT!!!  This file will be automatically
+       regenerated by qtarch.  All changes will be lost.
+
+ *********************************************************************/
+
+#ifndef ParaGeneralDialogData_included
+#define ParaGeneralDialogData_included
+
+#include <qwidget.h>
+#include <qradiobutton.h>
+#include <qcheckbox.h>
+#include <qcombobox.h>
+#include <qlineedit.h>
+#include <qbuttongroup.h>
+#include <krestrictedline.h>
+
+class ParaGeneralDialogData : public QWidget
+{
+    Q_OBJECT
+
+public:
+
+    ParaGeneralDialogData
+    (
+        QWidget* parent = NULL,
+        const char* name = NULL
+    );
+
+    virtual ~ParaGeneralDialogData();
+
+public slots:
+
+
+protected slots:
+
+    virtual void spaceaboveplusChanged(const char*);
+    virtual void spacebelowplusChanged(const char*);
+    virtual void spacebelowminusChanged(const char*);
+    virtual void spacebelowvalueChanged(const char*);
+    virtual void spaceaboveminusChanged(const char*);
+    virtual void spaceaboveHighlighted(int);
+    virtual void spacebelowHighlighted(int);
+    virtual void spaceabovevalueChanged(const char*);
+
+protected:
+    QButtonGroup* alignment;
+    QCheckBox* lineabove;
+    QCheckBox* linebelow;
+    QCheckBox* pagebreakabove;
+    QCheckBox* noindent;
+    QComboBox* spaceabove;
+    QCheckBox* pagebreakbelow;
+    QComboBox* spacebelow;
+    QRadioButton* block;
+    QRadioButton* center;
+    QRadioButton* left;
+    QRadioButton* right;
+    QLineEdit* labelwidth;
+    KRestrictedLine* spaceabovevalue;
+    QComboBox* spaceabovevalueunits;
+    KRestrictedLine* spaceaboveminus;
+    QComboBox* spaceaboveminusunits;
+    KRestrictedLine* spaceaboveplus;
+    QComboBox* spaceaboveplusunits;
+    KRestrictedLine* spacebelowminus;
+    KRestrictedLine* spacebelowplus;
+    KRestrictedLine* spacebelowvalue;
+    QComboBox* spacebelowvalueunits;
+    QComboBox* spacebelowplusunits;
+    QComboBox* spacebelowminusunits;
+
+};
+
+#endif // ParaGeneralDialogData_included
diff --git a/src/frontends/kde/printdlg.C b/src/frontends/kde/printdlg.C
new file mode 100644 (file)
index 0000000..eb981b5
--- /dev/null
@@ -0,0 +1,59 @@
+/*
+ * printdlg.C
+ * (C) 2000, LyX Team
+ * John Levon, moz@compsoc.man.ac.uk
+ */
+
+#include "printdlgdata.h"
+#include "printdlg.h"
+#include "support/lstrings.h"
+#include "support/filetools.h"
+
+#include <qtooltip.h>
+#include <kfiledialog.h>
+
+#include <gettext.h>
+#include <cstring>
+
+#define Inherited PrintDialogData
+
+PrintDialog::PrintDialog(FormPrint *f, QWidget* parent, const char * name)
+       : PrintDialogData(parent, name), form_(f)
+{
+       setCaption(name); 
+       QToolTip::add(allpages, _("Print every page"));
+       QToolTip::add(oddpages, _("Print odd-numbered pages only"));
+       QToolTip::add(evenpages, _("Print even-numbered pages only"));
+       QToolTip::add(from, _("Print from page number")); 
+       QToolTip::add(to, _("Print to page number")); 
+       QToolTip::add(reverse, _("Print in reverse order (last page first)"));
+       QToolTip::add(count, _("Number of copies to print"));
+       QToolTip::add(sort, _("Collate multiple copies"));
+       QToolTip::add(printername, _("Printer name"));
+       QToolTip::add(filename, _("Output filename"));
+       QToolTip::add(browse, _("Select output filename"));
+}
+
+PrintDialog::~PrintDialog()
+{
+}
+
+void PrintDialog::clickedBrowse()
+{
+       // FIXME: move into utility class later, accept URLs etc.
+
+       KFileDialog filedlg(OnlyPath(filename->text()).c_str(), "*.ps|PostScript Files (*.ps)", this, 0, true, false);
+
+       if (filedlg.exec() == QDialog::Accepted)
+               filename->setText(filedlg.selectedFile().data());
+}
+
+void PrintDialog::changedCount(const char *text)
+{
+       if (strcmp("",text) && strToInt(text) == 0) {
+               count->setText("1");
+               return;
+       }
+
+       sort->setEnabled(strToInt(text) > 1);
+}
diff --git a/src/frontends/kde/printdlg.h b/src/frontends/kde/printdlg.h
new file mode 100644 (file)
index 0000000..df0bea7
--- /dev/null
@@ -0,0 +1,138 @@
+/*
+ * printdlg.h
+ * (C) 2000 LyX Team
+ * John Levon, moz@compsoc.man.ac.uk
+ */ 
+#ifndef PRINTDLG_H
+#define PRINTDLG_H
+
+
+#include "printdlgdata.h"
+#include "support/lstrings.h"
+#include "lyxrc.h" 
+#include "PrinterParams.h"
+#include "FormPrint.h"
+
+class PrintDialog : public PrintDialogData
+{
+       Q_OBJECT
+public:
+
+       PrintDialog(FormPrint *f, QWidget* parent = NULL, const char* name = NULL);
+       virtual ~PrintDialog();
+       
+       const char *getFrom() {
+               return from->text();
+       }
+
+       const char *getTo() {
+               return to->text();
+       }
+
+       PrinterParams::Target getTarget() {
+               if (toprinter->isChecked())
+                       return PrinterParams::PRINTER;
+               else
+                       return PrinterParams::FILE;
+       }
+
+       const char *getPrinter() {
+               return printername->text();
+       }
+
+       const char *getFile() {
+               return filename->text();
+       }
+       
+       PrinterParams::WhichPages getWhichPages() {
+               if (oddpages->isChecked())
+                       return PrinterParams::ODD;
+               else if (evenpages->isChecked())
+                       return PrinterParams::EVEN;
+               else
+                       return PrinterParams::ALL;
+       }
+
+       bool getReverse() {
+               return reverse->isChecked();
+       }
+
+       bool getSort() {
+               return sort->isChecked();
+       }
+
+       const char *getCount() {
+               return count->text();
+       }
+
+       void setTarget(PrinterParams::Target t) {
+               toprinter->setChecked(t==PrinterParams::PRINTER);
+               tofile->setChecked(t!=PrinterParams::PRINTER);
+       }
+        
+               void setPrinter(const char *name) {
+               printername->setText(name);
+       } 
+       void setFile(const char *name) {
+               filename->setText(name);
+       }        
+       void setWhichPages(PrinterParams::WhichPages wp) {
+               switch (wp) {
+                       case PrinterParams::ALL:
+                               allpages->setChecked(true);
+                               break;
+                       case PrinterParams::EVEN:
+                               evenpages->setChecked(true);
+                               break;
+                       case PrinterParams::ODD:
+                               oddpages->setChecked(true);
+                               break;
+               }
+       }
+       void setReverse(bool on) {
+               reverse->setChecked(on);
+       }
+       void setSort(bool on) {
+               sort->setChecked(on);
+       }
+        
+       void setCount(int num) {
+               count->setText(tostr(num).c_str());
+               sort->setEnabled(num > 1);
+       }
+
+       void setFrom(const char *text) {
+               from->setText(text);
+       }
+
+       void setTo(const char *text) {
+               to->setText(text);
+       }
+
+protected slots:
+       void clickedCancel() {
+               form_->close();
+               hide();
+       }
+       void clickedPrint() {
+               form_->print(); 
+               form_->close();
+               hide();
+       }
+
+       /// open up the browser to select ps file 
+       void clickedBrowse();
+       
+       /// validate and change collate status
+       void changedCount(const char *text);
+private:
+       FormPrint *form_;
+};
+#endif // PRINTDLG_H
diff --git a/src/frontends/kde/printdlgdata.C b/src/frontends/kde/printdlgdata.C
new file mode 100644 (file)
index 0000000..ee62d40
--- /dev/null
@@ -0,0 +1,613 @@
+/**********************************************************************
+
+       --- Qt Architect generated file ---
+
+       File: printdlgdata.C
+       Last generated: Sat Oct 14 03:43:43 2000
+
+       DO NOT EDIT!!!  This file will be automatically
+       regenerated by qtarch.  All changes will be lost.
+
+ *********************************************************************/
+
+#include <gettext.h>
+#include <qpixmap.h>
+#include <qlayout.h>
+#include "printdlgdata.h"
+
+#define Inherited QWidget
+
+
+PrintDialogData::PrintDialogData
+(
+       QWidget* parent,
+       const char* name
+)
+       :
+       Inherited( parent, name, 0 )
+{
+       pagesGroupBox = new QGroupBox( this, "pagesGroupBox" );
+       pagesGroupBox->setGeometry( 5, 5, 162, 270 );
+       pagesGroupBox->setMinimumSize( 15, 47 );
+       pagesGroupBox->setMaximumSize( 32767, 32767 );
+       pagesGroupBox->setFocusPolicy( QWidget::NoFocus );
+       pagesGroupBox->setBackgroundMode( QWidget::PaletteBackground );
+       pagesGroupBox->setFontPropagation( QWidget::NoChildren );
+       pagesGroupBox->setPalettePropagation( QWidget::NoChildren );
+       pagesGroupBox->setFrameStyle( 49 );
+       pagesGroupBox->setLineWidth( 1 );
+       pagesGroupBox->setMidLineWidth( 0 );
+       pagesGroupBox->QFrame::setMargin( 0 );
+       pagesGroupBox->setTitle( _("Pages") );
+       pagesGroupBox->setAlignment( 1 );
+
+       pagesRadioGroup = new QButtonGroup( pagesGroupBox, "pagesRadioGroup" );
+       pagesRadioGroup->setGeometry( 5, 17, 152, 142 );
+       pagesRadioGroup->setMinimumSize( 10, 20 );
+       pagesRadioGroup->setMaximumSize( 32767, 32767 );
+       pagesRadioGroup->setFocusPolicy( QWidget::NoFocus );
+       pagesRadioGroup->setBackgroundMode( QWidget::PaletteBackground );
+       pagesRadioGroup->setFontPropagation( QWidget::NoChildren );
+       pagesRadioGroup->setPalettePropagation( QWidget::NoChildren );
+       pagesRadioGroup->setFrameStyle( 0 );
+       pagesRadioGroup->setLineWidth( 1 );
+       pagesRadioGroup->setMidLineWidth( 0 );
+       pagesRadioGroup->QFrame::setMargin( 0 );
+       pagesRadioGroup->setTitle( _("") );
+       pagesRadioGroup->setAlignment( 1 );
+       pagesRadioGroup->setExclusive( TRUE );
+
+       copies = new QGroupBox( this, "copies" );
+       copies->setGeometry( 172, 5, 323, 66 );
+       copies->setMinimumSize( 30, 10 );
+       copies->setMaximumSize( 32767, 32767 );
+       copies->setFocusPolicy( QWidget::NoFocus );
+       copies->setBackgroundMode( QWidget::PaletteBackground );
+       copies->setFontPropagation( QWidget::NoChildren );
+       copies->setPalettePropagation( QWidget::NoChildren );
+       copies->setFrameStyle( 49 );
+       copies->setLineWidth( 1 );
+       copies->setMidLineWidth( 0 );
+       copies->QFrame::setMargin( 0 );
+       copies->setTitle( _("Copies") );
+       copies->setAlignment( 1 );
+
+       printToGroupBox = new QGroupBox( this, "printToGroupBox" );
+       printToGroupBox->setGeometry( 172, 76, 323, 199 );
+       printToGroupBox->setMinimumSize( 25, 30 );
+       printToGroupBox->setMaximumSize( 32767, 32767 );
+       printToGroupBox->setFocusPolicy( QWidget::NoFocus );
+       printToGroupBox->setBackgroundMode( QWidget::PaletteBackground );
+       printToGroupBox->setFontPropagation( QWidget::NoChildren );
+       printToGroupBox->setPalettePropagation( QWidget::NoChildren );
+       printToGroupBox->setFrameStyle( 49 );
+       printToGroupBox->setLineWidth( 1 );
+       printToGroupBox->setMidLineWidth( 0 );
+       printToGroupBox->QFrame::setMargin( 0 );
+       printToGroupBox->setTitle( _("Print to") );
+       printToGroupBox->setAlignment( 1 );
+
+       printToRadioGroup = new QButtonGroup( printToGroupBox, "printToRadioGroup" );
+       printToRadioGroup->setGeometry( 12, 39, 152, 83 );
+       printToRadioGroup->setMinimumSize( 10, 15 );
+       printToRadioGroup->setMaximumSize( 32767, 32767 );
+       printToRadioGroup->setFocusPolicy( QWidget::NoFocus );
+       printToRadioGroup->setBackgroundMode( QWidget::PaletteBackground );
+       printToRadioGroup->setFontPropagation( QWidget::NoChildren );
+       printToRadioGroup->setPalettePropagation( QWidget::NoChildren );
+       printToRadioGroup->setFrameStyle( 0 );
+       printToRadioGroup->setLineWidth( 1 );
+       printToRadioGroup->setMidLineWidth( 0 );
+       printToRadioGroup->QFrame::setMargin( 0 );
+       printToRadioGroup->setTitle( _("") );
+       printToRadioGroup->setAlignment( 1 );
+       printToRadioGroup->setExclusive( TRUE );
+
+       print = new QPushButton( this, "print" );
+       print->setGeometry( 86, 280, 81, 45 );
+       print->setMinimumSize( 0, 0 );
+       print->setMaximumSize( 32767, 32767 );
+       connect( print, SIGNAL(clicked()), SLOT(clickedPrint()) );
+       print->setFocusPolicy( QWidget::TabFocus );
+       print->setBackgroundMode( QWidget::PaletteBackground );
+       print->setFontPropagation( QWidget::NoChildren );
+       print->setPalettePropagation( QWidget::NoChildren );
+       print->setText( _("&Print") );
+       print->setAutoRepeat( FALSE );
+       print->setAutoResize( FALSE );
+       print->setToggleButton( FALSE );
+       print->setDefault( FALSE );
+       print->setAutoDefault( FALSE );
+       print->setIsMenuButton( FALSE );
+
+       cancel = new QPushButton( this, "cancel" );
+       cancel->setGeometry( 333, 280, 81, 45 );
+       cancel->setMinimumSize( 0, 0 );
+       cancel->setMaximumSize( 32767, 32767 );
+       connect( cancel, SIGNAL(clicked()), SLOT(clickedCancel()) );
+       cancel->setFocusPolicy( QWidget::TabFocus );
+       cancel->setBackgroundMode( QWidget::PaletteBackground );
+       cancel->setFontPropagation( QWidget::NoChildren );
+       cancel->setPalettePropagation( QWidget::NoChildren );
+       cancel->setText( _("&Cancel") );
+       cancel->setAutoRepeat( FALSE );
+       cancel->setAutoResize( FALSE );
+       cancel->setToggleButton( FALSE );
+       cancel->setDefault( FALSE );
+       cancel->setAutoDefault( FALSE );
+       cancel->setIsMenuButton( FALSE );
+
+       allpages = new QRadioButton( pagesRadioGroup, "allpages" );
+       allpages->setGeometry( 5, 20, 142, 34 );
+       allpages->setMinimumSize( 80, 20 );
+       allpages->setMaximumSize( 32767, 32767 );
+       allpages->setFocusPolicy( QWidget::TabFocus );
+       allpages->setBackgroundMode( QWidget::PaletteBackground );
+       allpages->setFontPropagation( QWidget::NoChildren );
+       allpages->setPalettePropagation( QWidget::NoChildren );
+       allpages->setText( _("&All pages") );
+       allpages->setAutoRepeat( FALSE );
+       allpages->setAutoResize( FALSE );
+       allpages->setChecked( FALSE );
+
+       evenpages = new QRadioButton( pagesRadioGroup, "evenpages" );
+       evenpages->setGeometry( 5, 108, 142, 14 );
+       evenpages->setMinimumSize( 0, 0 );
+       evenpages->setMaximumSize( 32767, 32767 );
+       evenpages->setFocusPolicy( QWidget::TabFocus );
+       evenpages->setBackgroundMode( QWidget::PaletteBackground );
+       evenpages->setFontPropagation( QWidget::NoChildren );
+       evenpages->setPalettePropagation( QWidget::NoChildren );
+       evenpages->setText( _("&Even pages") );
+       evenpages->setAutoRepeat( FALSE );
+       evenpages->setAutoResize( FALSE );
+       evenpages->setChecked( FALSE );
+
+       from = new KIntLineEdit( pagesGroupBox, "from" );
+       from->setGeometry( 108, 164, 49, 30 );
+       from->setMinimumSize( 0, 0 );
+       from->setMaximumSize( 32767, 32767 );
+       from->setFocusPolicy( QWidget::StrongFocus );
+       from->setBackgroundMode( QWidget::PaletteBase );
+       from->setFontPropagation( QWidget::NoChildren );
+       from->setPalettePropagation( QWidget::NoChildren );
+       from->setText( _("") );
+       from->setMaxLength( 32767 );
+       from->setFrame( QLineEdit::Normal );
+       from->setFrame( TRUE );
+
+       fromLabel = new QLabel( pagesGroupBox, "fromLabel" );
+       fromLabel->setGeometry( 5, 164, 98, 30 );
+       fromLabel->setMinimumSize( 0, 0 );
+       fromLabel->setMaximumSize( 32767, 32767 );
+       fromLabel->setFocusPolicy( QWidget::NoFocus );
+       fromLabel->setBackgroundMode( QWidget::PaletteBackground );
+       fromLabel->setFontPropagation( QWidget::NoChildren );
+       fromLabel->setPalettePropagation( QWidget::NoChildren );
+       fromLabel->setFrameStyle( 0 );
+       fromLabel->setLineWidth( 1 );
+       fromLabel->setMidLineWidth( 0 );
+       fromLabel->QFrame::setMargin( 0 );
+       fromLabel->setText( _("From") );
+       fromLabel->setAlignment( 289 );
+       fromLabel->setMargin( -1 );
+
+       toLabel = new QLabel( pagesGroupBox, "toLabel" );
+       toLabel->setGeometry( 5, 199, 98, 31 );
+       toLabel->setMinimumSize( 0, 0 );
+       toLabel->setMaximumSize( 32767, 32767 );
+       toLabel->setFocusPolicy( QWidget::NoFocus );
+       toLabel->setBackgroundMode( QWidget::PaletteBackground );
+       toLabel->setFontPropagation( QWidget::NoChildren );
+       toLabel->setPalettePropagation( QWidget::NoChildren );
+       toLabel->setFrameStyle( 0 );
+       toLabel->setLineWidth( 1 );
+       toLabel->setMidLineWidth( 0 );
+       toLabel->QFrame::setMargin( 0 );
+       toLabel->setText( _("To") );
+       toLabel->setAlignment( 289 );
+       toLabel->setMargin( -1 );
+
+       oddpages = new QRadioButton( pagesRadioGroup, "oddpages" );
+       oddpages->setGeometry( 5, 74, 142, 14 );
+       oddpages->setMinimumSize( 0, 0 );
+       oddpages->setMaximumSize( 32767, 32767 );
+       oddpages->setFocusPolicy( QWidget::TabFocus );
+       oddpages->setBackgroundMode( QWidget::PaletteBackground );
+       oddpages->setFontPropagation( QWidget::NoChildren );
+       oddpages->setPalettePropagation( QWidget::NoChildren );
+       oddpages->setText( _("&Odd pages") );
+       oddpages->setAutoRepeat( FALSE );
+       oddpages->setAutoResize( FALSE );
+       oddpages->setChecked( FALSE );
+
+       toprinter = new QRadioButton( printToRadioGroup, "toprinter" );
+       toprinter->setGeometry( 5, 5, 142, 23 );
+       toprinter->setMinimumSize( 0, 0 );
+       toprinter->setMaximumSize( 32767, 32767 );
+       toprinter->setFocusPolicy( QWidget::TabFocus );
+       toprinter->setBackgroundMode( QWidget::PaletteBackground );
+       toprinter->setFontPropagation( QWidget::NoChildren );
+       toprinter->setPalettePropagation( QWidget::NoChildren );
+       toprinter->setText( _("&Printer") );
+       toprinter->setAutoRepeat( FALSE );
+       toprinter->setAutoResize( FALSE );
+       toprinter->setChecked( FALSE );
+
+       tofile = new QRadioButton( printToRadioGroup, "tofile" );
+       tofile->setGeometry( 5, 55, 142, 23 );
+       tofile->setMinimumSize( 0, 0 );
+       tofile->setMaximumSize( 32767, 32767 );
+       tofile->setFocusPolicy( QWidget::TabFocus );
+       tofile->setBackgroundMode( QWidget::PaletteBackground );
+       tofile->setFontPropagation( QWidget::NoChildren );
+       tofile->setPalettePropagation( QWidget::NoChildren );
+       tofile->setText( _("&File") );
+       tofile->setAutoRepeat( FALSE );
+       tofile->setAutoResize( FALSE );
+       tofile->setChecked( FALSE );
+
+       printername = new QLineEdit( printToGroupBox, "printername" );
+       printername->setGeometry( 169, 39, 142, 26 );
+       printername->setMinimumSize( 0, 0 );
+       printername->setMaximumSize( 32767, 32767 );
+       printername->setFocusPolicy( QWidget::StrongFocus );
+       printername->setBackgroundMode( QWidget::PaletteBase );
+       printername->setFontPropagation( QWidget::NoChildren );
+       printername->setPalettePropagation( QWidget::NoChildren );
+       printername->setText( _("") );
+       printername->setMaxLength( 32767 );
+       printername->setFrame( QLineEdit::Normal );
+       printername->setFrame( TRUE );
+
+       reverse = new QCheckBox( pagesGroupBox, "reverse" );
+       reverse->setGeometry( 5, 235, 152, 30 );
+       reverse->setMinimumSize( 0, 0 );
+       reverse->setMaximumSize( 32767, 32767 );
+       reverse->setFocusPolicy( QWidget::TabFocus );
+       reverse->setBackgroundMode( QWidget::PaletteBackground );
+       reverse->setFontPropagation( QWidget::NoChildren );
+       reverse->setPalettePropagation( QWidget::NoChildren );
+       reverse->setText( _("&Reverse order") );
+       reverse->setAutoRepeat( FALSE );
+       reverse->setAutoResize( TRUE );
+       reverse->setChecked( FALSE );
+
+       filename = new QLineEdit( printToGroupBox, "filename" );
+       filename->setGeometry( 169, 96, 142, 26 );
+       filename->setMinimumSize( 0, 0 );
+       filename->setMaximumSize( 32767, 32767 );
+       filename->setFocusPolicy( QWidget::StrongFocus );
+       filename->setBackgroundMode( QWidget::PaletteBase );
+       filename->setFontPropagation( QWidget::NoChildren );
+       filename->setPalettePropagation( QWidget::NoChildren );
+       filename->setText( _("") );
+       filename->setMaxLength( 32767 );
+       filename->setFrame( QLineEdit::Normal );
+       filename->setFrame( TRUE );
+
+       sort = new QCheckBox( copies, "sort" );
+       sort->setGeometry( 268, 12, 50, 46 );
+       sort->setMinimumSize( 0, 0 );
+       sort->setMaximumSize( 32767, 32767 );
+       sort->setFocusPolicy( QWidget::TabFocus );
+       sort->setBackgroundMode( QWidget::PaletteBackground );
+       sort->setFontPropagation( QWidget::NoChildren );
+       sort->setPalettePropagation( QWidget::NoChildren );
+       sort->setText( _("Co&llate") );
+       sort->setAutoRepeat( FALSE );
+       sort->setAutoResize( TRUE );
+       sort->setChecked( FALSE );
+
+       browse = new QPushButton( printToGroupBox, "browse" );
+       browse->setGeometry( 158, 149, 153, 23 );
+       browse->setMinimumSize( 0, 0 );
+       browse->setMaximumSize( 32767, 32767 );
+       connect( browse, SIGNAL(clicked()), SLOT(clickedBrowse()) );
+       browse->setFocusPolicy( QWidget::TabFocus );
+       browse->setBackgroundMode( QWidget::PaletteBackground );
+       browse->setFontPropagation( QWidget::NoChildren );
+       browse->setPalettePropagation( QWidget::NoChildren );
+       browse->setText( _("&Browse") );
+       browse->setAutoRepeat( FALSE );
+       browse->setAutoResize( FALSE );
+       browse->setToggleButton( FALSE );
+       browse->setDefault( FALSE );
+       browse->setAutoDefault( FALSE );
+       browse->setIsMenuButton( FALSE );
+
+       count = new KIntLineEdit( copies, "count" );
+       count->setGeometry( 162, 12, 50, 46 );
+       count->setMinimumSize( 0, 0 );
+       count->setMaximumSize( 32767, 32767 );
+       connect( count, SIGNAL(textChanged(const char*)), SLOT(changedCount(const char*)) );
+       count->setFocusPolicy( QWidget::StrongFocus );
+       count->setBackgroundMode( QWidget::PaletteBase );
+       count->setFontPropagation( QWidget::NoChildren );
+       count->setPalettePropagation( QWidget::NoChildren );
+       count->setText( _("") );
+       count->setMaxLength( 32767 );
+       count->setFrame( QLineEdit::Normal );
+       count->setFrame( TRUE );
+
+       countLabel = new QLabel( copies, "countLabel" );
+       countLabel->setGeometry( 56, 12, 50, 46 );
+       countLabel->setMinimumSize( 0, 0 );
+       countLabel->setMaximumSize( 32767, 32767 );
+       countLabel->setFocusPolicy( QWidget::NoFocus );
+       countLabel->setBackgroundMode( QWidget::PaletteBackground );
+       countLabel->setFontPropagation( QWidget::NoChildren );
+       countLabel->setPalettePropagation( QWidget::NoChildren );
+       countLabel->setFrameStyle( 0 );
+       countLabel->setLineWidth( 1 );
+       countLabel->setMidLineWidth( 0 );
+       countLabel->QFrame::setMargin( 0 );
+       countLabel->setText( _("Count") );
+       countLabel->setAlignment( 289 );
+       countLabel->setMargin( -1 );
+
+       to = new KIntLineEdit( pagesGroupBox, "to" );
+       to->setGeometry( 108, 199, 49, 31 );
+       to->setMinimumSize( 0, 0 );
+       to->setMaximumSize( 32767, 32767 );
+       to->setFocusPolicy( QWidget::StrongFocus );
+       to->setBackgroundMode( QWidget::PaletteBase );
+       to->setFontPropagation( QWidget::NoChildren );
+       to->setPalettePropagation( QWidget::NoChildren );
+       to->setText( _("") );
+       to->setMaxLength( 32767 );
+       to->setFrame( QLineEdit::Normal );
+       to->setFrame( TRUE );
+
+       pagesRadioGroup->insert( allpages );
+       pagesRadioGroup->insert( evenpages );
+       pagesRadioGroup->insert( oddpages );
+
+       printToRadioGroup->insert( toprinter );
+       printToRadioGroup->insert( tofile );
+
+       if (print->sizeHint().width()!=-1)
+               print->setMinimumWidth(print->sizeHint().width());
+       if (print->sizeHint().height()!=-1)
+               print->setMinimumHeight(print->sizeHint().height());
+       if (print->sizeHint().width()!=-1)
+               print->setMaximumWidth(print->sizeHint().width());
+       if (print->sizeHint().height()!=-1)
+               print->setMaximumHeight(print->sizeHint().height());
+       if (cancel->sizeHint().width()!=-1)
+               cancel->setMinimumWidth(cancel->sizeHint().width());
+       if (cancel->sizeHint().height()!=-1)
+               cancel->setMinimumHeight(cancel->sizeHint().height());
+       if (cancel->sizeHint().width()!=-1)
+               cancel->setMaximumWidth(cancel->sizeHint().width());
+       if (cancel->sizeHint().height()!=-1)
+               cancel->setMaximumHeight(cancel->sizeHint().height());
+       if (allpages->sizeHint().width()!=-1)
+               allpages->setMinimumWidth(allpages->sizeHint().width());
+       if (allpages->sizeHint().height()!=-1)
+               allpages->setMinimumHeight(allpages->sizeHint().height());
+       if (allpages->sizeHint().width()!=-1)
+               allpages->setMaximumWidth(allpages->sizeHint().width());
+       if (allpages->sizeHint().height()!=-1)
+               allpages->setMaximumHeight(allpages->sizeHint().height());
+       if (evenpages->sizeHint().width()!=-1)
+               evenpages->setMinimumWidth(evenpages->sizeHint().width());
+       if (evenpages->sizeHint().height()!=-1)
+               evenpages->setMinimumHeight(evenpages->sizeHint().height());
+       if (evenpages->sizeHint().width()!=-1)
+               evenpages->setMaximumWidth(evenpages->sizeHint().width());
+       if (evenpages->sizeHint().height()!=-1)
+               evenpages->setMaximumHeight(evenpages->sizeHint().height());
+       if (from->sizeHint().width()!=-1)
+               from->setMinimumWidth(from->sizeHint().width());
+       if (from->sizeHint().height()!=-1)
+               from->setMinimumHeight(from->sizeHint().height());
+       if (from->sizeHint().height()!=-1)
+               from->setMaximumHeight(from->sizeHint().height());
+       if (fromLabel->sizeHint().width()!=-1)
+               fromLabel->setMinimumWidth(fromLabel->sizeHint().width());
+       if (fromLabel->sizeHint().height()!=-1)
+               fromLabel->setMinimumHeight(fromLabel->sizeHint().height());
+       if (fromLabel->sizeHint().width()!=-1)
+               fromLabel->setMaximumWidth(fromLabel->sizeHint().width());
+       if (fromLabel->sizeHint().height()!=-1)
+               fromLabel->setMaximumHeight(fromLabel->sizeHint().height());
+       if (toLabel->sizeHint().width()!=-1)
+               toLabel->setMinimumWidth(toLabel->sizeHint().width());
+       if (toLabel->sizeHint().height()!=-1)
+               toLabel->setMinimumHeight(toLabel->sizeHint().height());
+       if (toLabel->sizeHint().width()!=-1)
+               toLabel->setMaximumWidth(toLabel->sizeHint().width());
+       if (toLabel->sizeHint().height()!=-1)
+               toLabel->setMaximumHeight(toLabel->sizeHint().height());
+       if (oddpages->sizeHint().width()!=-1)
+               oddpages->setMinimumWidth(oddpages->sizeHint().width());
+       if (oddpages->sizeHint().height()!=-1)
+               oddpages->setMinimumHeight(oddpages->sizeHint().height());
+       if (oddpages->sizeHint().width()!=-1)
+               oddpages->setMaximumWidth(oddpages->sizeHint().width());
+       if (oddpages->sizeHint().height()!=-1)
+               oddpages->setMaximumHeight(oddpages->sizeHint().height());
+       if (toprinter->sizeHint().width()!=-1)
+               toprinter->setMinimumWidth(toprinter->sizeHint().width());
+       if (toprinter->sizeHint().height()!=-1)
+               toprinter->setMinimumHeight(toprinter->sizeHint().height());
+       if (toprinter->sizeHint().width()!=-1)
+               toprinter->setMaximumWidth(toprinter->sizeHint().width());
+       if (toprinter->sizeHint().height()!=-1)
+               toprinter->setMaximumHeight(toprinter->sizeHint().height());
+       if (tofile->sizeHint().width()!=-1)
+               tofile->setMinimumWidth(tofile->sizeHint().width());
+       if (tofile->sizeHint().height()!=-1)
+               tofile->setMinimumHeight(tofile->sizeHint().height());
+       if (tofile->sizeHint().width()!=-1)
+               tofile->setMaximumWidth(tofile->sizeHint().width());
+       if (tofile->sizeHint().height()!=-1)
+               tofile->setMaximumHeight(tofile->sizeHint().height());
+       if (printername->sizeHint().width()!=-1)
+               printername->setMinimumWidth(printername->sizeHint().width());
+       if (printername->sizeHint().height()!=-1)
+               printername->setMinimumHeight(printername->sizeHint().height());
+       if (printername->sizeHint().height()!=-1)
+               printername->setMaximumHeight(printername->sizeHint().height());
+       if (reverse->sizeHint().width()!=-1)
+               reverse->setMinimumWidth(reverse->sizeHint().width());
+       if (reverse->sizeHint().height()!=-1)
+               reverse->setMinimumHeight(reverse->sizeHint().height());
+       if (reverse->sizeHint().width()!=-1)
+               reverse->setMaximumWidth(reverse->sizeHint().width());
+       if (reverse->sizeHint().height()!=-1)
+               reverse->setMaximumHeight(reverse->sizeHint().height());
+       if (filename->sizeHint().width()!=-1)
+               filename->setMinimumWidth(filename->sizeHint().width());
+       if (filename->sizeHint().height()!=-1)
+               filename->setMinimumHeight(filename->sizeHint().height());
+       if (filename->sizeHint().height()!=-1)
+               filename->setMaximumHeight(filename->sizeHint().height());
+       if (sort->sizeHint().width()!=-1)
+               sort->setMinimumWidth(sort->sizeHint().width());
+       if (sort->sizeHint().height()!=-1)
+               sort->setMinimumHeight(sort->sizeHint().height());
+       if (sort->sizeHint().width()!=-1)
+               sort->setMaximumWidth(sort->sizeHint().width());
+       if (sort->sizeHint().height()!=-1)
+               sort->setMaximumHeight(sort->sizeHint().height());
+       if (browse->sizeHint().width()!=-1)
+               browse->setMinimumWidth(browse->sizeHint().width());
+       if (browse->sizeHint().height()!=-1)
+               browse->setMinimumHeight(browse->sizeHint().height());
+       if (browse->sizeHint().width()!=-1)
+               browse->setMaximumWidth(browse->sizeHint().width());
+       if (browse->sizeHint().height()!=-1)
+               browse->setMaximumHeight(browse->sizeHint().height());
+       if (count->sizeHint().width()!=-1)
+               count->setMinimumWidth(count->sizeHint().width());
+       if (count->sizeHint().height()!=-1)
+               count->setMinimumHeight(count->sizeHint().height());
+       if (count->sizeHint().height()!=-1)
+               count->setMaximumHeight(count->sizeHint().height());
+       if (countLabel->sizeHint().width()!=-1)
+               countLabel->setMinimumWidth(countLabel->sizeHint().width());
+       if (countLabel->sizeHint().height()!=-1)
+               countLabel->setMinimumHeight(countLabel->sizeHint().height());
+       if (countLabel->sizeHint().width()!=-1)
+               countLabel->setMaximumWidth(countLabel->sizeHint().width());
+       if (countLabel->sizeHint().height()!=-1)
+               countLabel->setMaximumHeight(countLabel->sizeHint().height());
+       if (to->sizeHint().width()!=-1)
+               to->setMinimumWidth(to->sizeHint().width());
+       if (to->sizeHint().height()!=-1)
+               to->setMinimumHeight(to->sizeHint().height());
+       if (to->sizeHint().height()!=-1)
+               to->setMaximumHeight(to->sizeHint().height());
+       QGridLayout* qtarch_layout_1 = new QGridLayout( this, 2, 1, 5, 5, NULL );
+       qtarch_layout_1->addColSpacing( 0, 5 );
+       qtarch_layout_1->setColStretch( 0, 1 );
+       qtarch_layout_1->addRowSpacing( 0, 0 );
+       qtarch_layout_1->setRowStretch( 0, 5 );
+       QBoxLayout* qtarch_layout_1_1_1 = new QBoxLayout( QBoxLayout::LeftToRight, 5, NULL );
+       qtarch_layout_1->addLayout( qtarch_layout_1_1_1, 0, 0 );
+       qtarch_layout_1_1_1->addStrut( 0 );
+       qtarch_layout_1_1_1->addWidget( pagesGroupBox, 1, 36 );
+       QBoxLayout* qtarch_layout_1_1_1_1 = new QBoxLayout( pagesGroupBox, QBoxLayout::TopToBottom, 5, 5, NULL );
+       qtarch_layout_1_1_1_1->addStrut( 0 );
+       qtarch_layout_1_1_1_1->addSpacing( 12 );
+       qtarch_layout_1_1_1_1->addWidget( pagesRadioGroup, 4, 33 );
+       QBoxLayout* qtarch_layout_1_1_1_1_2 = new QBoxLayout( pagesRadioGroup, QBoxLayout::TopToBottom, 5, 5, NULL );
+       qtarch_layout_1_1_1_1_2->addStrut( 0 );
+       qtarch_layout_1_1_1_1_2->addStretch( 1 );
+       qtarch_layout_1_1_1_1_2->addWidget( allpages, 1, 1 );
+       qtarch_layout_1_1_1_1_2->addStretch( 1 );
+       qtarch_layout_1_1_1_1_2->addWidget( oddpages, 1, 1 );
+       qtarch_layout_1_1_1_1_2->addStretch( 1 );
+       qtarch_layout_1_1_1_1_2->addWidget( evenpages, 1, 1 );
+       qtarch_layout_1_1_1_1_2->addStretch( 1 );
+       QBoxLayout* qtarch_layout_1_1_1_1_3 = new QBoxLayout( QBoxLayout::LeftToRight, 5, NULL );
+       qtarch_layout_1_1_1_1->addLayout( qtarch_layout_1_1_1_1_3, 1 );
+       qtarch_layout_1_1_1_1_3->addStrut( 0 );
+       qtarch_layout_1_1_1_1_3->addWidget( fromLabel, 2, 36 );
+       qtarch_layout_1_1_1_1_3->addWidget( from, 1, 36 );
+       QBoxLayout* qtarch_layout_1_1_1_1_4 = new QBoxLayout( QBoxLayout::LeftToRight, 5, NULL );
+       qtarch_layout_1_1_1_1->addLayout( qtarch_layout_1_1_1_1_4, 1 );
+       qtarch_layout_1_1_1_1_4->addStrut( 0 );
+       qtarch_layout_1_1_1_1_4->addWidget( toLabel, 2, 36 );
+       qtarch_layout_1_1_1_1_4->addWidget( to, 1, 36 );
+       qtarch_layout_1_1_1_1->addWidget( reverse, 1, 36 );
+       QBoxLayout* qtarch_layout_1_1_1_2 = new QBoxLayout( QBoxLayout::TopToBottom, 5, NULL );
+       qtarch_layout_1_1_1->addLayout( qtarch_layout_1_1_1_2, 2 );
+       qtarch_layout_1_1_1_2->addStrut( 0 );
+       qtarch_layout_1_1_1_2->addWidget( copies, 1, 36 );
+       QBoxLayout* qtarch_layout_1_1_1_2_1 = new QBoxLayout( copies, QBoxLayout::TopToBottom, 5, 5, NULL );
+       qtarch_layout_1_1_1_2_1->addStrut( 0 );
+       qtarch_layout_1_1_1_2_1->addSpacing( 7 );
+       QBoxLayout* qtarch_layout_1_1_1_2_1_2 = new QBoxLayout( QBoxLayout::LeftToRight, 5, NULL );
+       qtarch_layout_1_1_1_2_1->addLayout( qtarch_layout_1_1_1_2_1_2, 1 );
+       qtarch_layout_1_1_1_2_1_2->addStrut( 0 );
+       qtarch_layout_1_1_1_2_1_2->addStretch( 1 );
+       qtarch_layout_1_1_1_2_1_2->addWidget( countLabel, 1, 36 );
+       qtarch_layout_1_1_1_2_1_2->addStretch( 1 );
+       qtarch_layout_1_1_1_2_1_2->addWidget( count, 1, 36 );
+       qtarch_layout_1_1_1_2_1_2->addStretch( 1 );
+       qtarch_layout_1_1_1_2_1_2->addWidget( sort, 1, 36 );
+       qtarch_layout_1_1_1_2_1->addSpacing( 3 );
+       qtarch_layout_1_1_1_2->addWidget( printToGroupBox, 3, 36 );
+       QBoxLayout* qtarch_layout_1_1_1_2_2 = new QBoxLayout( printToGroupBox, QBoxLayout::TopToBottom, 5, 5, NULL );
+       qtarch_layout_1_1_1_2_2->addStrut( 0 );
+       qtarch_layout_1_1_1_2_2->addSpacing( 12 );
+       qtarch_layout_1_1_1_2_2->addStretch( 1 );
+       QBoxLayout* qtarch_layout_1_1_1_2_2_3 = new QBoxLayout( QBoxLayout::LeftToRight, 5, NULL );
+       qtarch_layout_1_1_1_2_2->addLayout( qtarch_layout_1_1_1_2_2_3, 3 );
+       qtarch_layout_1_1_1_2_2_3->addStrut( 0 );
+       qtarch_layout_1_1_1_2_2_3->addSpacing( 7 );
+       qtarch_layout_1_1_1_2_2_3->addWidget( printToRadioGroup, 1, 33 );
+       QBoxLayout* qtarch_layout_1_1_1_2_2_3_2 = new QBoxLayout( printToRadioGroup, QBoxLayout::TopToBottom, 5, 5, NULL );
+       qtarch_layout_1_1_1_2_2_3_2->addStrut( 0 );
+       qtarch_layout_1_1_1_2_2_3_2->addWidget( toprinter, 1, 1 );
+       qtarch_layout_1_1_1_2_2_3_2->addStretch( 1 );
+       qtarch_layout_1_1_1_2_2_3_2->addWidget( tofile, 1, 1 );
+       QBoxLayout* qtarch_layout_1_1_1_2_2_3_3 = new QBoxLayout( QBoxLayout::TopToBottom, 5, NULL );
+       qtarch_layout_1_1_1_2_2_3->addLayout( qtarch_layout_1_1_1_2_2_3_3, 1 );
+       qtarch_layout_1_1_1_2_2_3_3->addStrut( 0 );
+       qtarch_layout_1_1_1_2_2_3_3->addWidget( printername, 1, 36 );
+       qtarch_layout_1_1_1_2_2_3_3->addStretch( 1 );
+       qtarch_layout_1_1_1_2_2_3_3->addWidget( filename, 1, 36 );
+       qtarch_layout_1_1_1_2_2_3->addSpacing( 7 );
+       qtarch_layout_1_1_1_2_2->addStretch( 1 );
+       QBoxLayout* qtarch_layout_1_1_1_2_2_5 = new QBoxLayout( QBoxLayout::LeftToRight, 5, NULL );
+       qtarch_layout_1_1_1_2_2->addLayout( qtarch_layout_1_1_1_2_2_5, 1 );
+       qtarch_layout_1_1_1_2_2_5->addStrut( 0 );
+       qtarch_layout_1_1_1_2_2_5->addStretch( 1 );
+       qtarch_layout_1_1_1_2_2_5->addWidget( browse, 1, 36 );
+       qtarch_layout_1_1_1_2_2_5->addSpacing( 7 );
+       qtarch_layout_1_1_1_2_2->addStretch( 1 );
+       qtarch_layout_1->addRowSpacing( 1, 0 );
+       qtarch_layout_1->setRowStretch( 1, 1 );
+       QBoxLayout* qtarch_layout_1_2_1 = new QBoxLayout( QBoxLayout::LeftToRight, 5, NULL );
+       qtarch_layout_1->addLayout( qtarch_layout_1_2_1, 1, 0 );
+       qtarch_layout_1_2_1->addStrut( 0 );
+       qtarch_layout_1_2_1->addStretch( 1 );
+       qtarch_layout_1_2_1->addWidget( print, 1, 36 );
+       qtarch_layout_1_2_1->addStretch( 2 );
+       qtarch_layout_1_2_1->addWidget( cancel, 1, 36 );
+       qtarch_layout_1_2_1->addStretch( 1 );
+       resize( 500,330 );
+       setMinimumSize( 0, 0 );
+       setMaximumSize( 32767, 32767 );
+}
+
+
+PrintDialogData::~PrintDialogData()
+{
+}
+void PrintDialogData::clickedPrint()
+{
+}
+void PrintDialogData::clickedCancel()
+{
+}
+void PrintDialogData::clickedBrowse()
+{
+}
+void PrintDialogData::changedCount(const char*)
+{
+}
diff --git a/src/frontends/kde/printdlgdata.h b/src/frontends/kde/printdlgdata.h
new file mode 100644 (file)
index 0000000..3e9b84e
--- /dev/null
@@ -0,0 +1,77 @@
+/**********************************************************************
+
+       --- Qt Architect generated file ---
+
+       File: printdlgdata.h
+       Last generated: Sat Oct 14 03:43:43 2000
+
+       DO NOT EDIT!!!  This file will be automatically
+       regenerated by qtarch.  All changes will be lost.
+
+ *********************************************************************/
+
+#ifndef PrintDialogData_included
+#define PrintDialogData_included
+
+#include <qwidget.h>
+#include <qlabel.h>
+#include <qradiobutton.h>
+#include <qcheckbox.h>
+#include <qpushbutton.h>
+#include <qgroupbox.h>
+#include <keditcl.h>
+#include <qlineedit.h>
+#include <qbuttongroup.h>
+
+class PrintDialogData : public QWidget
+{
+    Q_OBJECT
+
+public:
+
+    PrintDialogData
+    (
+        QWidget* parent = NULL,
+        const char* name = NULL
+    );
+
+    virtual ~PrintDialogData();
+
+public slots:
+
+
+protected slots:
+
+    virtual void clickedCancel();
+    virtual void clickedBrowse();
+    virtual void changedCount(const char*);
+    virtual void clickedPrint();
+
+protected:
+    QGroupBox* pagesGroupBox;
+    QButtonGroup* pagesRadioGroup;
+    QGroupBox* copies;
+    QGroupBox* printToGroupBox;
+    QButtonGroup* printToRadioGroup;
+    QPushButton* print;
+    QPushButton* cancel;
+    QRadioButton* allpages;
+    QRadioButton* evenpages;
+    KIntLineEdit* from;
+    QLabel* fromLabel;
+    QLabel* toLabel;
+    QRadioButton* oddpages;
+    QRadioButton* toprinter;
+    QRadioButton* tofile;
+    QLineEdit* printername;
+    QCheckBox* reverse;
+    QLineEdit* filename;
+    QCheckBox* sort;
+    QPushButton* browse;
+    KIntLineEdit* count;
+    QLabel* countLabel;
+    KIntLineEdit* to;
+
+};
+
+#endif // PrintDialogData_included
diff --git a/src/frontends/kde/refdlg.C b/src/frontends/kde/refdlg.C
new file mode 100644 (file)
index 0000000..5db39f2
--- /dev/null
@@ -0,0 +1,175 @@
+/*
+ * refdlg.C
+ * (C) 2000 LyX Team
+ * John Levon, moz@compsoc.man.ac.uk
+ */
+
+/***************************************************************************
+ *                                                                         *
+ *   This program is free software; you can redistribute it and/or modify  *
+ *   it under the terms of the GNU General Public License as published by  *
+ *   the Free Software Foundation; either version 2 of the License, or     *
+ *   (at your option) any later version.                                   *
+ *                                                                         *
+ ***************************************************************************/
+
+#include "refdlg.h"
+
+RefDialog::RefDialog(FormRef *form, QWidget *parent, const char *name, bool, WFlags)
+       : QDialog(parent,name,false), form_(form)
+{
+       setCaption(name);
+
+       // widgets
+
+       refs = new QListBox(this);
+       refs->setMinimumSize(200,200);
+       labelrefs = new QLabel(this);
+       labelrefs->setText(_("Available References"));
+       labelrefs->setMargin(5);
+       labelrefs->setMinimumSize(labelrefs->sizeHint());
+       labelrefs->setMaximumSize(labelrefs->sizeHint());
+
+       refname = new QLineEdit(this);
+       refname->setMinimumSize(refname->sizeHint());
+       // FIXME: should user be able to edit this ? what's it for ? - jbl 
+       refname->setFocusPolicy(QWidget::NoFocus);
+       reference = new QLineEdit(this); 
+       reference->setMinimumSize(reference->sizeHint());
+       reference->setFocusPolicy(QWidget::NoFocus);
+
+       labelrefname = new QLabel(this);
+       labelrefname->setText(_("Name :"));
+       labelrefname->setMargin(5);
+       labelrefname->setMinimumSize(labelrefname->sizeHint());
+       labelrefname->setMaximumSize(labelrefname->sizeHint());
+
+       labelreference = new QLabel(this);
+       labelreference->setText(_("Reference :"));
+       labelreference->setMargin(5);
+       labelreference->setMinimumSize(labelreference->sizeHint());
+       labelreference->setMaximumSize(labelreference->sizeHint());
+
+       sort = new QCheckBox(this); 
+       sort->setText(_("Sort"));
+       sort->setMinimumSize(sort->sizeHint());
+       sort->setMaximumSize(sort->sizeHint());
+       type = new QComboBox(this);
+       type->insertItem(_("Reference"));
+       type->insertItem(_("Page number"));
+       type->insertItem(_("Ref on page xxx"));
+       type->insertItem(_("on page xxx"));
+       type->insertItem(_("Pretty reference"));
+       type->setMinimumSize(type->sizeHint());
+        
+       labeltype = new QLabel(this); 
+       labeltype->setText(_("Reference Type"));
+       labeltype->setMargin(5);
+       labeltype->setMinimumSize(labeltype->sizeHint());
+       labeltype->setMaximumSize(labeltype->sizeHint());
+       buttonGoto = new QPushButton(this);
+       buttonGoto->setText(_("&Goto reference"));
+       buttonGoto->setMinimumSize(buttonGoto->sizeHint());
+       buttonGoto->setMaximumSize(buttonGoto->sizeHint());
+
+       buttonUpdate = new QPushButton(this);
+       buttonUpdate->setText(_("&Update"));
+       buttonUpdate->setMinimumSize(buttonUpdate->sizeHint());
+       buttonUpdate->setMaximumSize(buttonUpdate->sizeHint());
+
+       buttonOk = new QPushButton(this);
+       buttonOk->setText(_("&OK"));
+       buttonOk->setMinimumSize(buttonOk->sizeHint());
+       buttonOk->setMaximumSize(buttonOk->sizeHint());
+       buttonOk->setDefault(true);
+
+       buttonCancel = new QPushButton(this);
+       buttonCancel->setText(_("&Cancel"));
+       buttonCancel->setMinimumSize(buttonCancel->sizeHint());
+       buttonCancel->setMaximumSize(buttonCancel->sizeHint());
+
+       // tooltips
+
+       QToolTip::add(type,_("Reference as it appears in output"));
+       QToolTip::add(sort,_("Sort references in alphabetical order ?"));
+
+       // layouts
+
+       topLayout = new QHBoxLayout(this,10);
+
+       layout = new QVBoxLayout();
+       topLayout->addLayout(layout);
+       layout->addSpacing(10);
+
+       upperLayout = new QHBoxLayout();
+       layout->addLayout(upperLayout, 1);
+
+       browserLayout = new QVBoxLayout();
+       upperLayout->addLayout(browserLayout, 1);
+
+       browserLayout->addWidget(labelrefs, 0);
+       browserLayout->addWidget(refs, 1);
+
+       rightLayout = new QVBoxLayout();
+       upperLayout->addLayout(rightLayout, 1);
+
+       nameLayout = new QHBoxLayout();
+       rightLayout->addLayout(nameLayout, 0);
+
+       nameLayout->addWidget(labelrefname, 0);
+       nameLayout->addWidget(refname, 1);
+
+       rightLayout->addStretch(1);
+       referenceLayout = new QHBoxLayout();
+       rightLayout->addLayout(referenceLayout, 0);
+
+       referenceLayout->addWidget(labelreference, 0);
+       referenceLayout->addWidget(reference, 1);
+       rightLayout->addStretch(1);
+       rightLayout->addWidget(labeltype, 0);
+       rightLayout->addWidget(type, 0);
+       rightLayout->addStretch(1);
+       rightLayout->addWidget(buttonGoto, 1);
+
+       rightLayout->addStretch(1);
+       buttonLayout = new QHBoxLayout(); 
+       layout->addLayout(buttonLayout);
+       buttonLayout->addWidget(sort, 1);
+       buttonLayout->addStretch(1);
+       buttonLayout->addWidget(buttonUpdate, 1);
+       buttonLayout->addStretch(1);
+       buttonLayout->addWidget(buttonOk, 1);
+       buttonLayout->addStretch(2);
+       buttonLayout->addWidget(buttonCancel, 1);
+       buttonLayout->addStretch(1);
+       // connections
+
+       connect(refs, SIGNAL(highlighted(const char *)), this, SLOT(highlight_adaptor(const char *))); 
+       connect(refs, SIGNAL(selected(const char *)), this, SLOT(select_adaptor(const char *)));
+       connect(sort, SIGNAL(toggled(bool)), this, SLOT(sort_adaptor(bool))); 
+       connect(buttonOk, SIGNAL(clicked()), this, SLOT(apply_adaptor()));
+       connect(buttonUpdate, SIGNAL(clicked()), this, SLOT(update_adaptor()));
+       connect(buttonGoto, SIGNAL(clicked()), this, SLOT(goto_adaptor())); 
+       connect(buttonCancel, SIGNAL(clicked()), this, SLOT(close_adaptor()));
+}
+
+RefDialog::~RefDialog()
+{
+}
+
+void RefDialog::closeEvent(QCloseEvent *e)
+{
+       form_->close();
+       e->accept();
+}
diff --git a/src/frontends/kde/refdlg.h b/src/frontends/kde/refdlg.h
new file mode 100644 (file)
index 0000000..679307e
--- /dev/null
@@ -0,0 +1,114 @@
+/*
+ * refdlg.h
+ * (C) 2000 LyX Team
+ * John Levon, moz@compsoc.man.ac.uk
+ */
+
+/***************************************************************************
+ *                                                                         *
+ *   This program is free software; you can redistribute it and/or modify  *
+ *   it under the terms of the GNU General Public License as published by  *
+ *   the Free Software Foundation; either version 2 of the License, or     *
+ *   (at your option) any later version.                                   *
+ *                                                                         *
+ ***************************************************************************/
+
+#ifndef REFDLG_H
+#define REFDLG_H
+
+#include <config.h>
+#include <gettext.h>
+
+#include "FormRef.h"
+
+#include <qdialog.h>
+#include <qlayout.h>
+#include <qcombobox.h> 
+#include <qcheckbox.h>
+#include <qlistbox.h>
+#include <qlabel.h>
+#include <qtooltip.h>
+#include <qlineedit.h>
+#include <qpushbutton.h>
+
+class RefDialog : public QDialog  {
+   Q_OBJECT
+public:
+       RefDialog(FormRef *form, QWidget *parent=0, const char *name=0,
+                           bool modal=false, WFlags f=0);
+       ~RefDialog();
+
+       // widgets
+       QListBox *refs;
+       QLabel *labelrefs;
+       QLineEdit *refname;
+       QLineEdit *reference;
+       QLabel *labelrefname;
+       QLabel *labelreference;
+       QCheckBox *sort;
+       QComboBox *type; 
+       QLabel *labeltype; 
+       QPushButton *buttonGoto;
+       QPushButton *buttonUpdate;
+       QPushButton *buttonOk;
+       QPushButton *buttonCancel;
+protected:
+       void closeEvent(QCloseEvent *e);
+private:
+       FormRef *form_;
+
+       // layouts
+       QHBoxLayout *topLayout;
+       QVBoxLayout *layout;
+       QHBoxLayout *upperLayout;
+       QVBoxLayout *browserLayout;
+       QVBoxLayout *rightLayout;
+       QHBoxLayout *nameLayout;
+       QHBoxLayout *referenceLayout; 
+       QHBoxLayout *buttonLayout;
+
+private slots:
+       /// adaptor to FormRef::select
+       void select_adaptor(const char *sel) {
+               form_->select(sel);
+       }
+
+       /// adaptor to FormRef::highlight
+       void highlight_adaptor(const char *sel) {
+               form_->highlight(sel); 
+       }
+
+       /// adaptor to FormRef::set_sort
+       void sort_adaptor(bool sort) {
+               form_->set_sort(sort);
+       } 
+
+       /// adaptor to FormRef::gotoRef
+       void goto_adaptor(void) {
+               form_->goto_ref();
+       }
+       /// adaptor to FormRef::update
+       void update_adaptor(void) {
+               form_->do_ref_update();
+       }
+       /// adaptor to FormRef::apply
+       void apply_adaptor(void) {
+               form_->apply();
+               form_->close();
+               hide();
+       }
+
+       /// adaptor to FormRef::close
+       void close_adaptor(void) {
+               form_->close();
+               hide();
+       }
+};
+
+#endif
diff --git a/src/frontends/kde/tocdlg.C b/src/frontends/kde/tocdlg.C
new file mode 100644 (file)
index 0000000..b3551bf
--- /dev/null
@@ -0,0 +1,99 @@
+/*
+ * tocdlg.C
+ * (C) 2000 LyX Team
+ * John Levon, moz@compsoc.man.ac.uk
+ */
+
+/***************************************************************************
+ *                                                                         *
+ *   This program is free software; you can redistribute it and/or modify  *
+ *   it under the terms of the GNU General Public License as published by  *
+ *   the Free Software Foundation; either version 2 of the License, or     *
+ *   (at your option) any later version.                                   *
+ *                                                                         *
+ ***************************************************************************/
+
+#include "tocdlg.h"
+
+TocDialog::TocDialog(FormToc *form, QWidget *parent, const char *name, bool, WFlags)
+       : QDialog(parent,name,false), form_(form)
+{
+       setCaption(name);
+       setMinimumWidth(350);
+
+       // widgets
+
+       menu = new QComboBox(this);
+       menu->insertItem(_("Table of Contents"));
+       menu->insertItem(_("List of Figures"));
+       menu->insertItem(_("List of Tables"));
+       menu->insertItem(_("List of Algorithms"));
+       menu->setMinimumSize(menu->sizeHint());
+
+       tree = new QListView(this);
+       tree->setMinimumHeight(200);
+       tree->setRootIsDecorated(true);
+       tree->setSorting(-1);
+       tree->addColumn("Table of Contents");
+
+        buttonUpdate = new QPushButton(this);
+        buttonUpdate->setMinimumSize(buttonUpdate->sizeHint());
+        buttonUpdate->setMaximumSize(buttonUpdate->sizeHint());
+        buttonUpdate->setText(_("&Update"));
+
+        buttonClose = new QPushButton(this);
+        buttonClose->setMinimumSize(buttonClose->sizeHint());
+        buttonClose->setMaximumSize(buttonClose->sizeHint());
+        buttonClose->setText(_("&Close"));
+        buttonClose->setDefault(true);
+
+       depth = new QSlider(0, 5, 1, 1, QSlider::Horizontal, this);
+       depth->setMinimumSize(depth->sizeHint());
+       depth->setTickInterval(1);
+       depth->setTracking(true);
+
+       depthlabel = new QLabel(this);
+       depthlabel->setText(_("Depth"));
+       depthlabel->setMinimumSize(depthlabel->sizeHint()); 
+       depthlabel->setMaximumSize(depthlabel->sizeHint()); 
+       // layouts
+
+        topLayout = new QHBoxLayout(this,10);
+
+        layout = new QVBoxLayout();
+        topLayout->addLayout(layout);
+        layout->addSpacing(10);
+
+       layout->addWidget(menu,0);
+       layout->addWidget(tree,1);
+       layout->addWidget(depthlabel,0,AlignLeft);
+       layout->addWidget(depth,0);
+
+        buttonLayout = new QHBoxLayout();
+
+        layout->addLayout(buttonLayout);
+        buttonLayout->addStretch(1);
+       buttonLayout->addWidget(buttonUpdate, 1);
+       buttonLayout->addStretch(2);
+        buttonLayout->addWidget(buttonClose, 1);
+        buttonLayout->addStretch(1);
+
+       // connections
+
+       connect(tree, SIGNAL(selectionChanged(QListViewItem *)), this, SLOT(select_adaptor(QListViewItem *)));
+       connect(menu, SIGNAL(activated(int)), this, SLOT(activate_adaptor(int)));
+       connect(buttonUpdate, SIGNAL(clicked()), this, SLOT(update_adaptor()));
+       connect(buttonClose, SIGNAL(clicked()), this, SLOT(close_adaptor()));
+       connect(depth, SIGNAL(valueChanged(int)), this, SLOT(depth_adaptor(int)));
+}
+
+void TocDialog::closeEvent(QCloseEvent *e)
+{
+       form_->close();
+       e->accept();
+}
+
+TocDialog::~TocDialog()
+{
+}
diff --git a/src/frontends/kde/tocdlg.h b/src/frontends/kde/tocdlg.h
new file mode 100644 (file)
index 0000000..7545e90
--- /dev/null
@@ -0,0 +1,105 @@
+/*
+ * tocdlg.h
+ * (C) 2000 LyX Team
+ * John Levon, moz@compsoc.man.ac.uk
+ */
+
+/***************************************************************************
+ *                                                                         *
+ *   This program is free software; you can redistribute it and/or modify  *
+ *   it under the terms of the GNU General Public License as published by  *
+ *   the Free Software Foundation; either version 2 of the License, or     *
+ *   (at your option) any later version.                                   *
+ *                                                                         *
+ ***************************************************************************/
+
+#ifndef TOCDLG_H
+#define TOCDLG_H
+
+#include <config.h>
+#include <gettext.h>
+
+#include <debug.h>
+#include <qlabel.h> 
+#include <qdialog.h>
+#include <qlayout.h>
+#include <qpushbutton.h>
+#include <qcombobox.h>
+#include <qlistview.h>
+#include <qslider.h>
+
+#include "FormToc.h"
+
+class TocDialog : public QDialog  {
+   Q_OBJECT
+public:
+       TocDialog(FormToc *form, QWidget *parent=0, const char *name=0,
+                           bool modal=false, WFlags f=0);
+       ~TocDialog();
+
+       // widgets
+
+       QComboBox *menu;
+       QListView *tree;
+       QPushButton *buttonUpdate;
+       QPushButton *buttonClose;
+       QSlider *depth;
+       QLabel *depthlabel; 
+
+protected:
+       void closeEvent(QCloseEvent *e);
+
+private:
+       FormToc *form_;
+
+       // layouts 
+
+       QHBoxLayout *topLayout;
+       QVBoxLayout *layout;
+       QHBoxLayout *buttonLayout;
+
+private slots:
+       /// adaptor to FormToc::select
+       void select_adaptor(QListViewItem *item) {
+               form_->select(item->text(0));
+       }
+
+       /// adaptor to FormToc::set_depth
+       void depth_adaptor(int depth) {
+               form_->set_depth(depth);
+       }
+
+       /// adaptor to FormToc::update
+       void update_adaptor(void) {
+               form_->update();
+       }
+
+       // adaptors to FormToc::set_type
+       void activate_adaptor(int index) {
+               switch (index) {
+                       case 0:
+                               form_->set_type(Buffer::TOC_TOC);
+                               break;
+                       case 1:
+                               form_->set_type(Buffer::TOC_LOF);
+                               break;
+                       case 2:
+                               form_->set_type(Buffer::TOC_LOT);
+                               break;
+                       case 3:
+                               form_->set_type(Buffer::TOC_LOA);
+                               break;
+                       default:
+                               lyxerr[Debug::GUI] << "Unknown TOC combo selection." << std::endl;
+                               break;
+               }
+       }
+
+       /// adaptor to FormToc::close
+       void close_adaptor(void) {
+               form_->close();
+               hide();
+       }
+};
+
+#endif
diff --git a/src/frontends/kde/urldlg.C b/src/frontends/kde/urldlg.C
new file mode 100644 (file)
index 0000000..cf03667
--- /dev/null
@@ -0,0 +1,114 @@
+/*
+ * urldlg.C
+ * (C) 2000 LyX Team
+ * John Levon, moz@compsoc.man.ac.uk
+ */
+
+/***************************************************************************
+ *                                                                         *
+ *   This program is free software; you can redistribute it and/or modify  *
+ *   it under the terms of the GNU General Public License as published by  *
+ *   the Free Software Foundation; either version 2 of the License, or     *
+ *   (at your option) any later version.                                   *
+ *                                                                         *
+ ***************************************************************************/
+
+#include "urldlg.h"
+
+UrlDialog::UrlDialog(FormUrl *form, QWidget *parent, const char *name, bool, WFlags)
+       : QDialog(parent,name,false), form_(form)
+{
+       setCaption(name);
+
+       // widgets
+
+       url = new QLineEdit(this);
+       url->setMinimumSize(url->sizeHint());
+
+       urlname = new QLineEdit(this);
+       urlname->setMinimumSize(urlname->sizeHint());
+
+       labelurl = new QLabel(this);
+       labelurl->setText(_("Url :"));
+       labelurl->setMargin(5);
+       labelurl->setMinimumSize(labelurl->sizeHint());
+       labelurl->setMaximumSize(labelurl->sizeHint());
+
+       labelurlname = new QLabel(this);
+       labelurlname->setText(_("Name :"));
+       labelurlname->setMargin(5);
+       labelurlname->setMinimumSize(labelurlname->sizeHint());
+       labelurlname->setMaximumSize(labelurlname->sizeHint());
+
+       htmlurl = new QCheckBox(this);
+       htmlurl->setText(_("Generate hyperlink"));
+       htmlurl->setMinimumSize(htmlurl->sizeHint());
+       htmlurl->setMaximumSize(htmlurl->sizeHint());
+
+       buttonOk = new QPushButton(this);
+       buttonOk->setMinimumSize(buttonOk->sizeHint());
+       buttonOk->setMaximumSize(buttonOk->sizeHint());
+       buttonOk->setText(_("&OK"));
+       buttonOk->setDefault(true);
+
+       buttonCancel = new QPushButton(this);
+       buttonCancel->setMinimumSize(buttonCancel->sizeHint());
+       buttonCancel->setMaximumSize(buttonCancel->sizeHint());
+       buttonCancel->setText(_("&Cancel"));
+
+       // tooltips
+
+       QToolTip::add(labelurl,_("URL"));
+       QToolTip::add(url,_("URL"));
+       QToolTip::add(labelurlname,_("Name associated with the URL"));
+       QToolTip::add(urlname,_("Name associated with the URL"));
+       QToolTip::add(htmlurl,_("Output as a hyperlink ?"));
+
+       // layouts
+
+       topLayout = new QHBoxLayout(this,10);
+
+       layout = new QVBoxLayout();
+       topLayout->addLayout(layout);
+       layout->addSpacing(10);
+       
+       urlLayout = new QHBoxLayout();
+       layout->addLayout(urlLayout);
+       urlLayout->addWidget(labelurl, 0);
+       urlLayout->addWidget(url, 1);
+
+       urlnameLayout = new QHBoxLayout();
+       layout->addLayout(urlnameLayout);
+       urlnameLayout->addWidget(labelurlname, 0);
+       urlnameLayout->addWidget(urlname, 1);
+
+       htmlurlLayout = new QHBoxLayout();
+       layout->addStretch(1);
+       layout->addLayout(htmlurlLayout);
+       layout->addStretch(1);
+       htmlurlLayout->addWidget(htmlurl);
+       htmlurlLayout->addStretch(1);
+
+       buttonLayout = new QHBoxLayout();
+       layout->addLayout(buttonLayout);
+       buttonLayout->addStretch(1);
+       buttonLayout->addWidget(buttonOk, 1);
+       buttonLayout->addStretch(2);
+       buttonLayout->addWidget(buttonCancel, 1);
+       buttonLayout->addStretch(1);
+
+       // connections
+
+       connect(buttonOk, SIGNAL(clicked()), this, SLOT(apply_adaptor()));
+       connect(buttonCancel, SIGNAL(clicked()), this, SLOT(close_adaptor()));
+}
+
+UrlDialog::~UrlDialog()
+{
+}
+
+void UrlDialog::closeEvent(QCloseEvent *e)
+{
+       form_->close();
+       e->accept();
+}
diff --git a/src/frontends/kde/urldlg.h b/src/frontends/kde/urldlg.h
new file mode 100644 (file)
index 0000000..39d5bbe
--- /dev/null
@@ -0,0 +1,80 @@
+/*
+ * urldlg.h
+ * (C) 2000 LyX Team
+ * John Levon, moz@compsoc.man.ac.uk
+ */
+
+/***************************************************************************
+ *                                                                         *
+ *   This program is free software; you can redistribute it and/or modify  *
+ *   it under the terms of the GNU General Public License as published by  *
+ *   the Free Software Foundation; either version 2 of the License, or     *
+ *   (at your option) any later version.                                   *
+ *                                                                         *
+ ***************************************************************************/
+
+#ifndef URLDLG_H
+#define URLDLG_H
+
+#include <config.h>
+#include <gettext.h>
+
+// to connect apply() and hide()
+#include "FormUrl.h"
+
+#include <qdialog.h>
+#include <qlayout.h>
+#include <qlabel.h>
+#include <qtooltip.h>
+#include <qcheckbox.h>
+#include <qlineedit.h>
+#include <qpushbutton.h>
+
+class UrlDialog : public QDialog  {
+   Q_OBJECT
+public:
+       UrlDialog(FormUrl *form, QWidget *parent=0, const char *name=0,
+                           bool modal=false, WFlags f=0);
+       ~UrlDialog();
+
+       // widgets
+       QLabel *labelurl;
+       QLabel *labelurlname;
+       QLineEdit *url;
+       QLineEdit *urlname;
+       QCheckBox *htmlurl;
+       QPushButton *buttonOk;
+       QPushButton *buttonCancel;
+
+protected:
+       void closeEvent(QCloseEvent *e);
+private:
+       FormUrl *form_;
+
+       // layouts
+       QHBoxLayout *topLayout;
+       QVBoxLayout *layout;
+       QHBoxLayout *urlLayout;
+       QBoxLayout *urlnameLayout;
+       QBoxLayout *htmlurlLayout;
+       QHBoxLayout *buttonLayout;
+
+private slots:
+       /// adaptor to FormUrl::apply
+       void apply_adaptor(void) {
+               form_->apply();
+               form_->close();
+               hide();
+       }
+
+       /// adaptor to FormUrl::close
+       void close_adaptor(void) {
+               form_->close();
+               hide();
+       }
+};
+
+#endif
index 3da878292099bc91d4f59fb31fa555d2c78f64d4..661c59a82627cbf70a7ca6876d0cfef853543387 100644 (file)
@@ -10,6 +10,6 @@ libfrontendsupport_la_SOURCES = \
        LyXImage.h \
        LyXImage.C
 
-libfrontendsupport_la_EXTRA_DIST = \
+EXTRA_DIST = \
        LyXImage_X.h \
        LyXImage_X.C