From f3faff0d31ad36bb6c57e3e2fbe156edfbcd1a8d Mon Sep 17 00:00:00 2001 From: Jean-Marc Lasgouttes Date: Tue, 17 Oct 2000 08:27:35 +0000 Subject: [PATCH] The KDE monster patch from John git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@1126 a592a061-630c-0410-9148-cb99ea01b6c8 --- ChangeLog | 9 + src/frontends/kde/FormCitation.C | 4 +- src/frontends/kde/FormCitation.h | 4 +- src/frontends/kde/FormCopyright.C | 4 +- src/frontends/kde/FormCopyright.h | 4 +- src/frontends/kde/FormIndex.C | 4 +- src/frontends/kde/FormIndex.h | 4 +- src/frontends/kde/FormParagraph.C | 205 +++ src/frontends/kde/FormParagraph.h | 66 + src/frontends/kde/FormPrint.C | 9 +- src/frontends/kde/FormPrint.h | 4 +- src/frontends/kde/FormRef.C | 4 +- src/frontends/kde/FormRef.h | 4 +- src/frontends/kde/FormToc.C | 4 +- src/frontends/kde/FormToc.h | 4 +- src/frontends/kde/FormUrl.C | 4 +- src/frontends/kde/FormUrl.h | 4 +- src/frontends/kde/Makefile.am | 181 ++- .../{formcitationdialog.C => citationdlg.C} | 14 +- .../{formcitationdialog.h => citationdlg.h} | 12 +- .../{formcopyrightdialog.C => copyrightdlg.C} | 12 +- .../{formcopyrightdialog.h => copyrightdlg.h} | 16 +- ...pyrightdialogdata.C => copyrightdlgdata.C} | 13 +- ...pyrightdialogdata.h => copyrightdlgdata.h} | 16 +- src/frontends/kde/dlg/README | 16 +- src/frontends/kde/dlg/checkinitorder.pl | 5 +- ...{formcopyrightdialog.dlg => copyright.dlg} | 12 +- .../dlg/{formindexdialog.dlg => index.dlg} | 12 +- src/frontends/kde/dlg/paraextra.dlg | 443 ++++++ src/frontends/kde/dlg/parageneral.dlg | 1299 +++++++++++++++++ .../dlg/{formprintdialog.dlg => print.dlg} | 63 +- src/frontends/kde/formprintdialog.C | 36 - .../kde/{formindexdialog.C => indexdlg.C} | 16 +- .../kde/{formindexdialog.h => indexdlg.h} | 16 +- .../{formindexdialogdata.C => indexdlgdata.C} | 53 +- .../{formindexdialogdata.h => indexdlgdata.h} | 16 +- src/frontends/kde/paradlg.C | 407 ++++++ src/frontends/kde/paradlg.h | 183 +++ src/frontends/kde/paraextradlg.C | 59 + src/frontends/kde/paraextradlg.h | 38 + src/frontends/kde/paraextradlgdata.C | 316 ++++ src/frontends/kde/paraextradlgdata.h | 57 + src/frontends/kde/parageneraldlg.C | 118 ++ src/frontends/kde/parageneraldlg.h | 48 + src/frontends/kde/parageneraldlgdata.C | 891 +++++++++++ src/frontends/kde/parageneraldlgdata.h | 81 + src/frontends/kde/printdlg.C | 59 + .../kde/{formprintdialog.h => printdlg.h} | 27 +- .../{formprintdialogdata.C => printdlgdata.C} | 71 +- .../{formprintdialogdata.h => printdlgdata.h} | 17 +- .../kde/{formrefdialog.C => refdlg.C} | 14 +- .../kde/{formrefdialog.h => refdlg.h} | 12 +- .../kde/{formtocdialog.C => tocdlg.C} | 10 +- .../kde/{formtocdialog.h => tocdlg.h} | 12 +- .../kde/{formurldialog.C => urldlg.C} | 14 +- .../kde/{formurldialog.h => urldlg.h} | 12 +- src/frontends/support/Makefile.am | 2 +- 57 files changed, 4688 insertions(+), 352 deletions(-) create mode 100644 src/frontends/kde/FormParagraph.C create mode 100644 src/frontends/kde/FormParagraph.h rename src/frontends/kde/{formcitationdialog.C => citationdlg.C} (95%) rename src/frontends/kde/{formcitationdialog.h => citationdlg.h} (90%) rename src/frontends/kde/{formcopyrightdialog.C => copyrightdlg.C} (60%) rename src/frontends/kde/{formcopyrightdialog.h => copyrightdlg.h} (56%) rename src/frontends/kde/{formcopyrightdialogdata.C => copyrightdlgdata.C} (95%) rename src/frontends/kde/{formcopyrightdialogdata.h => copyrightdlgdata.h} (63%) rename src/frontends/kde/dlg/{formcopyrightdialog.dlg => copyright.dlg} (94%) rename src/frontends/kde/dlg/{formindexdialog.dlg => index.dlg} (94%) create mode 100644 src/frontends/kde/dlg/paraextra.dlg create mode 100644 src/frontends/kde/dlg/parageneral.dlg rename src/frontends/kde/dlg/{formprintdialog.dlg => print.dlg} (95%) delete mode 100644 src/frontends/kde/formprintdialog.C rename src/frontends/kde/{formindexdialog.C => indexdlg.C} (73%) rename src/frontends/kde/{formindexdialog.h => indexdlg.h} (70%) rename src/frontends/kde/{formindexdialogdata.C => indexdlgdata.C} (67%) rename src/frontends/kde/{formindexdialogdata.h => indexdlgdata.h} (70%) create mode 100644 src/frontends/kde/paradlg.C create mode 100644 src/frontends/kde/paradlg.h create mode 100644 src/frontends/kde/paraextradlg.C create mode 100644 src/frontends/kde/paraextradlg.h create mode 100644 src/frontends/kde/paraextradlgdata.C create mode 100644 src/frontends/kde/paraextradlgdata.h create mode 100644 src/frontends/kde/parageneraldlg.C create mode 100644 src/frontends/kde/parageneraldlg.h create mode 100644 src/frontends/kde/parageneraldlgdata.C create mode 100644 src/frontends/kde/parageneraldlgdata.h create mode 100644 src/frontends/kde/printdlg.C rename src/frontends/kde/{formprintdialog.h => printdlg.h} (79%) rename src/frontends/kde/{formprintdialogdata.C => printdlgdata.C} (94%) rename src/frontends/kde/{formprintdialogdata.h => printdlgdata.h} (81%) rename src/frontends/kde/{formrefdialog.C => refdlg.C} (96%) rename src/frontends/kde/{formrefdialog.h => refdlg.h} (92%) rename src/frontends/kde/{formtocdialog.C => tocdlg.C} (93%) rename src/frontends/kde/{formtocdialog.h => tocdlg.h} (91%) rename src/frontends/kde/{formurldialog.C => urldlg.C} (93%) rename src/frontends/kde/{formurldialog.h => urldlg.h} (89%) diff --git a/ChangeLog b/ChangeLog index a4bb9b1bc7..2bdc896f9e 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,12 @@ +2000-10-17 Jean-Marc Lasgouttes +2000-10-16 John Levon + + * src/frontends/kde/: The Great Renaming, + add FormParagraph + + + * src/frontends/support/Makefile.am (EXTRA_DIST): re-fix. + 2000-10-16 Jean-Marc Lasgouttes * src/mathed/math_macro.C (MathMacroTemplate): initialize args to diff --git a/src/frontends/kde/FormCitation.C b/src/frontends/kde/FormCitation.C index 54c22b6f77..9634a2572f 100644 --- a/src/frontends/kde/FormCitation.C +++ b/src/frontends/kde/FormCitation.C @@ -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)); diff --git a/src/frontends/kde/FormCitation.h b/src/frontends/kde/FormCitation.h index 6d8bd5a345..5e3a79987f 100644 --- a/src/frontends/kde/FormCitation.h +++ b/src/frontends/kde/FormCitation.h @@ -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_; diff --git a/src/frontends/kde/FormCopyright.C b/src/frontends/kde/FormCopyright.C index 64dd9ef36b..40f991da9c 100644 --- a/src/frontends/kde/FormCopyright.C +++ b/src/frontends/kde/FormCopyright.C @@ -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)); diff --git a/src/frontends/kde/FormCopyright.h b/src/frontends/kde/FormCopyright.h index 0b3b7a6ce9..5cce61f953 100644 --- a/src/frontends/kde/FormCopyright.h +++ b/src/frontends/kde/FormCopyright.h @@ -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. diff --git a/src/frontends/kde/FormIndex.C b/src/frontends/kde/FormIndex.C index 835b26fef6..30dadef97c 100644 --- a/src/frontends/kde/FormIndex.C +++ b/src/frontends/kde/FormIndex.C @@ -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)); diff --git a/src/frontends/kde/FormIndex.h b/src/frontends/kde/FormIndex.h index 3eb277c712..4455fc8708 100644 --- a/src/frontends/kde/FormIndex.h +++ b/src/frontends/kde/FormIndex.h @@ -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 index 0000000000..d42cc7df85 --- /dev/null +++ b/src/frontends/kde/FormParagraph.C @@ -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 + +#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(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 index 0000000000..0d8ae4f7bd --- /dev/null +++ b/src/frontends/kde/FormParagraph.h @@ -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 diff --git a/src/frontends/kde/FormPrint.C b/src/frontends/kde/FormPrint.C index fd1bcbd17e..b28c77f1f9 100644 --- a/src/frontends/kde/FormPrint.C +++ b/src/frontends/kde/FormPrint.C @@ -15,7 +15,7 @@ #include -#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)); diff --git a/src/frontends/kde/FormPrint.h b/src/frontends/kde/FormPrint.h index 97856befa4..467626a2a0 100644 --- a/src/frontends/kde/FormPrint.h +++ b/src/frontends/kde/FormPrint.h @@ -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_; diff --git a/src/frontends/kde/FormRef.C b/src/frontends/kde/FormRef.C index ea38d8ad4e..d816e0ef70 100644 --- a/src/frontends/kde/FormRef.C +++ b/src/frontends/kde/FormRef.C @@ -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)); diff --git a/src/frontends/kde/FormRef.h b/src/frontends/kde/FormRef.h index 264ba94521..9d1750ec36 100644 --- a/src/frontends/kde/FormRef.h +++ b/src/frontends/kde/FormRef.h @@ -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_; diff --git a/src/frontends/kde/FormToc.C b/src/frontends/kde/FormToc.C index b805c34078..b2bbc197fa 100644 --- a/src/frontends/kde/FormToc.C +++ b/src/frontends/kde/FormToc.C @@ -17,7 +17,7 @@ #include -#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)); diff --git a/src/frontends/kde/FormToc.h b/src/frontends/kde/FormToc.h index 04ac8d301a..78e6ab123e 100644 --- a/src/frontends/kde/FormToc.h +++ b/src/frontends/kde/FormToc.h @@ -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_; diff --git a/src/frontends/kde/FormUrl.C b/src/frontends/kde/FormUrl.C index 5b760311a9..4548df407d 100644 --- a/src/frontends/kde/FormUrl.C +++ b/src/frontends/kde/FormUrl.C @@ -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)); diff --git a/src/frontends/kde/FormUrl.h b/src/frontends/kde/FormUrl.h index ae084ceaaf..7fd152d34e 100644 --- a/src/frontends/kde/FormUrl.h +++ b/src/frontends/kde/FormUrl.h @@ -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_; diff --git a/src/frontends/kde/Makefile.am b/src/frontends/kde/Makefile.am index 09060ffe62..8b9fe1639a 100644 --- a/src/frontends/kde/Makefile.am +++ b/src/frontends/kde/Makefile.am @@ -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/formcitationdialog.C b/src/frontends/kde/citationdlg.C similarity index 95% rename from src/frontends/kde/formcitationdialog.C rename to src/frontends/kde/citationdlg.C index 5002b09d3d..d2b0b79220 100644 --- a/src/frontends/kde/formcitationdialog.C +++ b/src/frontends/kde/citationdlg.C @@ -1,5 +1,5 @@ /* - * formcitationdialog.C + * citationdlg.C * (C) 2000 LyX Team * John Levon, moz@compsoc.man.ac.uk */ @@ -13,9 +13,9 @@ * * ***************************************************************************/ -#include "formcitationdialog.h" +#include "citationdlg.h" -FormCitationDialog::FormCitationDialog(FormCitation *form, QWidget *parent, const char *name, bool, WFlags) +CitationDialog::CitationDialog(FormCitation *form, QWidget *parent, const char *name, bool, WFlags) : QDialog(parent,name,false), form_(form) { setCaption(name); @@ -162,12 +162,12 @@ FormCitationDialog::FormCitationDialog(FormCitation *form, QWidget *parent, cons connect(buttonCancel, SIGNAL(clicked()), this, SLOT(close_adaptor())); } -void FormCitationDialog::closeEvent(QCloseEvent *e) +CitationDialog::~CitationDialog() { - form_->close(); - e->accept(); } -FormCitationDialog::~FormCitationDialog() +void CitationDialog::closeEvent(QCloseEvent *e) { + form_->close(); + e->accept(); } diff --git a/src/frontends/kde/formcitationdialog.h b/src/frontends/kde/citationdlg.h similarity index 90% rename from src/frontends/kde/formcitationdialog.h rename to src/frontends/kde/citationdlg.h index 0d1150a0e3..7a5ee353d0 100644 --- a/src/frontends/kde/formcitationdialog.h +++ b/src/frontends/kde/citationdlg.h @@ -1,5 +1,5 @@ /* - * formcitationdialog.h + * citationdlg.h * (C) 2000 LyX Team * John Levon, moz@compsoc.man.ac.uk */ @@ -13,8 +13,8 @@ * * ***************************************************************************/ -#ifndef FORMCITATIONDIALOG_H -#define FORMCITATIONDIALOG_H +#ifndef CITATIONDLG_H +#define CITATIONDLG_H #include #include @@ -31,12 +31,12 @@ #include #include -class FormCitationDialog : public QDialog { +class CitationDialog : public QDialog { Q_OBJECT public: - FormCitationDialog(FormCitation *form, QWidget *parent=0, const char *name=0, + CitationDialog(FormCitation *form, QWidget *parent=0, const char *name=0, bool modal=false, WFlags f=0); - ~FormCitationDialog(); + ~CitationDialog(); // widgets diff --git a/src/frontends/kde/formcopyrightdialog.C b/src/frontends/kde/copyrightdlg.C similarity index 60% rename from src/frontends/kde/formcopyrightdialog.C rename to src/frontends/kde/copyrightdlg.C index 52bc3a8985..59ded80198 100644 --- a/src/frontends/kde/formcopyrightdialog.C +++ b/src/frontends/kde/copyrightdlg.C @@ -2,16 +2,16 @@ --- Qt Architect generated file --- - File: formcopyrightdialog.C + File: copyrightdlg.C Last generated: Thu Oct 12 18:32:40 2000 *********************************************************************/ -#include "formcopyrightdialog.h" +#include "copyrightdlg.h" -#define Inherited FormCopyrightDialogData +#define Inherited CopyrightDialogData -FormCopyrightDialog::FormCopyrightDialog +CopyrightDialog::CopyrightDialog ( QWidget* parent, const char* name @@ -23,11 +23,11 @@ FormCopyrightDialog::FormCopyrightDialog } -FormCopyrightDialog::~FormCopyrightDialog() +CopyrightDialog::~CopyrightDialog() { } -void FormCopyrightDialog::clickedOK() +void CopyrightDialog::clickedOK() { hide(); } diff --git a/src/frontends/kde/formcopyrightdialog.h b/src/frontends/kde/copyrightdlg.h similarity index 56% rename from src/frontends/kde/formcopyrightdialog.h rename to src/frontends/kde/copyrightdlg.h index 576c090027..449f504cf0 100644 --- a/src/frontends/kde/formcopyrightdialog.h +++ b/src/frontends/kde/copyrightdlg.h @@ -2,32 +2,32 @@ --- Qt Architect generated file --- - File: formcopyrightdialog.h + File: copyrightdlg.h Last generated: Thu Oct 12 18:32:40 2000 *********************************************************************/ -#ifndef FormCopyrightDialog_included -#define FormCopyrightDialog_included +#ifndef CopyrightDialog_included +#define CopyrightDialog_included -#include "formcopyrightdialogdata.h" +#include "copyrightdlgdata.h" -class FormCopyrightDialog : public FormCopyrightDialogData +class CopyrightDialog : public CopyrightDialogData { Q_OBJECT public: - FormCopyrightDialog + CopyrightDialog ( QWidget* parent = NULL, const char* name = NULL ); - virtual ~FormCopyrightDialog(); + virtual ~CopyrightDialog(); protected slots: virtual void clickedOK(); }; -#endif // FormCopyrightDialog_included +#endif // CopyrightDialog_included diff --git a/src/frontends/kde/formcopyrightdialogdata.C b/src/frontends/kde/copyrightdlgdata.C similarity index 95% rename from src/frontends/kde/formcopyrightdialogdata.C rename to src/frontends/kde/copyrightdlgdata.C index 75cc7097c3..090421af34 100644 --- a/src/frontends/kde/formcopyrightdialogdata.C +++ b/src/frontends/kde/copyrightdlgdata.C @@ -2,8 +2,8 @@ --- Qt Architect generated file --- - File: formcopyrightdialogdata.C - Last generated: Thu Oct 12 19:15:16 2000 + 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. @@ -11,16 +11,15 @@ *********************************************************************/ #include - #include #include -#include "formcopyrightdialogdata.h" +#include "copyrightdlgdata.h" #define Inherited QWidget #include -FormCopyrightDialogData::FormCopyrightDialogData +CopyrightDialogData::CopyrightDialogData ( QWidget* parent, const char* name @@ -133,9 +132,9 @@ FormCopyrightDialogData::FormCopyrightDialogData } -FormCopyrightDialogData::~FormCopyrightDialogData() +CopyrightDialogData::~CopyrightDialogData() { } -void FormCopyrightDialogData::clickedOK() +void CopyrightDialogData::clickedOK() { } diff --git a/src/frontends/kde/formcopyrightdialogdata.h b/src/frontends/kde/copyrightdlgdata.h similarity index 63% rename from src/frontends/kde/formcopyrightdialogdata.h rename to src/frontends/kde/copyrightdlgdata.h index 62e7642b3d..2f5e97cf18 100644 --- a/src/frontends/kde/formcopyrightdialogdata.h +++ b/src/frontends/kde/copyrightdlgdata.h @@ -2,33 +2,33 @@ --- Qt Architect generated file --- - File: formcopyrightdialogdata.h - Last generated: Thu Oct 12 19:15:16 2000 + 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 FormCopyrightDialogData_included -#define FormCopyrightDialogData_included +#ifndef CopyrightDialogData_included +#define CopyrightDialogData_included #include #include -class FormCopyrightDialogData : public QWidget +class CopyrightDialogData : public QWidget { Q_OBJECT public: - FormCopyrightDialogData + CopyrightDialogData ( QWidget* parent = NULL, const char* name = NULL ); - virtual ~FormCopyrightDialogData(); + virtual ~CopyrightDialogData(); public slots: @@ -42,4 +42,4 @@ protected: }; -#endif // FormCopyrightDialogData_included +#endif // CopyrightDialogData_included diff --git a/src/frontends/kde/dlg/README b/src/frontends/kde/dlg/README index ddefb80c75..dd79b87f60 100644 --- a/src/frontends/kde/dlg/README +++ b/src/frontends/kde/dlg/README @@ -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 : diff --git a/src/frontends/kde/dlg/checkinitorder.pl b/src/frontends/kde/dlg/checkinitorder.pl index 406ace25de..2055bf03b4 100644 --- a/src/frontends/kde/dlg/checkinitorder.pl +++ b/src/frontends/kde/dlg/checkinitorder.pl @@ -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/formcopyrightdialog.dlg b/src/frontends/kde/dlg/copyright.dlg similarity index 94% rename from src/frontends/kde/dlg/formcopyrightdialog.dlg rename to src/frontends/kde/dlg/copyright.dlg index 6266d08654..6d529ea1e8 100644 --- a/src/frontends/kde/dlg/formcopyrightdialog.dlg +++ b/src/frontends/kde/dlg/copyright.dlg @@ -1,11 +1,11 @@ DlgEdit:v1.2:Dialog: Dialog { - ClassHeader {formcopyrightdialog.h} - ClassSource {formcopyrightdialog.C} - ClassName {FormCopyrightDialog} - DataHeader {formcopyrightdialogdata.h} - DataSource {formcopyrightdialogdata.C} - DataName {FormCopyrightDialogData} + ClassHeader {copyrightdlg.h} + ClassSource {copyrightdlg.C} + ClassName {CopyrightDialog} + DataHeader {copyrightdlgdata.h} + DataSource {copyrightdlgdata.C} + DataName {CopyrightDialogData} WindowBaseClass {QWidget} UseGetText {TRUE} WindowFlags {53248} diff --git a/src/frontends/kde/dlg/formindexdialog.dlg b/src/frontends/kde/dlg/index.dlg similarity index 94% rename from src/frontends/kde/dlg/formindexdialog.dlg rename to src/frontends/kde/dlg/index.dlg index 130168e890..7eeaea26a9 100644 --- a/src/frontends/kde/dlg/formindexdialog.dlg +++ b/src/frontends/kde/dlg/index.dlg @@ -1,11 +1,11 @@ DlgEdit:v1.2:Dialog: Dialog { - ClassHeader {formindexdialog.h} - ClassSource {formindexdialog.C} - ClassName {FormIndexDialog} - DataHeader {formindexdialogdata.h} - DataSource {formindexdialogdata.C} - DataName {FormIndexDialogData} + ClassHeader {indexdlg.h} + ClassSource {indexdlg.C} + ClassName {IndexDialog} + DataHeader {indexdlgdata.h} + DataSource {indexdlgdata.C} + DataName {IndexDialogData} WindowBaseClass {QWidget} UseGetText {TRUE} WindowFlags {53248} diff --git a/src/frontends/kde/dlg/paraextra.dlg b/src/frontends/kde/dlg/paraextra.dlg new file mode 100644 index 0000000000..91ce124336 --- /dev/null +++ b/src/frontends/kde/dlg/paraextra.dlg @@ -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 index 0000000000..16f7e5a610 --- /dev/null +++ b/src/frontends/kde/dlg/parageneral.dlg @@ -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/formprintdialog.dlg b/src/frontends/kde/dlg/print.dlg similarity index 95% rename from src/frontends/kde/dlg/formprintdialog.dlg rename to src/frontends/kde/dlg/print.dlg index 64d42d49ef..281b7f9a28 100644 --- a/src/frontends/kde/dlg/formprintdialog.dlg +++ b/src/frontends/kde/dlg/print.dlg @@ -1,18 +1,18 @@ DlgEdit:v1.2:Dialog: Dialog { - ClassHeader {formprintdialog.h} - ClassSource {formprintdialog.C} - ClassName {FormPrintDialog} - DataHeader {formprintdialogdata.h} - DataSource {formprintdialogdata.C} - DataName {FormPrintDialogData} + 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 {435 255} +Size {500 330} MinSize {0 0} MaxSize {32767 32767} Grid {5} @@ -24,7 +24,7 @@ GroupBox { LineWidth {1} MidLineWidth {0} FrameMargin {0} - Rect {5 5 140 208} + Rect {5 5 162 270} Name {pagesGroupBox} Variable {pagesGroupBox} MinimumSize {15 47} @@ -52,7 +52,7 @@ ButtonGroup { LineWidth {1} MidLineWidth {0} FrameMargin {0} - Rect {10 22 130 106} + Rect {10 22 152 142} Name {pagesRadioGroup} Variable {pagesRadioGroup} MinimumSize {10 20} @@ -79,7 +79,7 @@ GroupBox { LineWidth {1} MidLineWidth {0} FrameMargin {0} - Rect {150 5 280 51} + Rect {172 5 323 66} Name {copies} Variable {copies} MinimumSize {30 10} @@ -106,7 +106,7 @@ GroupBox { LineWidth {1} MidLineWidth {0} FrameMargin {0} - Rect {150 61 280 152} + Rect {172 76 323 199} Name {printToGroupBox} Variable {printToGroupBox} MinimumSize {25 30} @@ -134,7 +134,7 @@ ButtonGroup { LineWidth {1} MidLineWidth {0} FrameMargin {0} - Rect {162 94 131 62} + Rect {184 115 152 83} Name {printToRadioGroup} Variable {printToRadioGroup} MinimumSize {10 15} @@ -162,7 +162,7 @@ PushButton { Text {&Print} AutoRepeat {FALSE} AutoResize {FALSE} - Rect {75 218 70 32} + Rect {86 280 81 45} Name {print} Variable {print} Signal {[Protected] clicked --> clickedPrint ()} @@ -191,7 +191,7 @@ PushButton { Text {&Cancel} AutoRepeat {FALSE} AutoResize {FALSE} - Rect {290 218 70 32} + Rect {333 280 81 45} Name {cancel} Variable {cancel} Signal {[Protected] clicked --> clickedCancel ()} @@ -217,7 +217,7 @@ RadioButton { Text {&All pages} AutoRepeat {FALSE} AutoResize {FALSE} - Rect {15 36 120 30} + Rect {15 42 142 34} Name {allpages} Variable {allpages} MinimumSize {80 20} @@ -242,7 +242,7 @@ RadioButton { Text {&Even pages} AutoRepeat {FALSE} AutoResize {FALSE} - Rect {15 104 120 10} + Rect {15 130 142 14} Name {evenpages} Variable {evenpages} MinimumSize {0 0} @@ -267,7 +267,7 @@ KDE::KIntLineEdit { EchoMode {Normal} MaxLength {32767} FrameShown {TRUE} - Rect {98 133 42 22} + Rect {113 169 49 30} Name {from} Variable {from} MinimumSize {0 0} @@ -296,7 +296,7 @@ Label { LineWidth {1} MidLineWidth {0} FrameMargin {0} - Rect {10 133 83 22} + Rect {10 169 98 30} Name {fromLabel} Variable {fromLabel} MinimumSize {0 0} @@ -325,7 +325,7 @@ Label { LineWidth {1} MidLineWidth {0} FrameMargin {0} - Rect {10 160 83 21} + Rect {10 204 98 31} Name {toLabel} Variable {toLabel} MinimumSize {0 0} @@ -350,7 +350,7 @@ RadioButton { Text {&Odd pages} AutoRepeat {FALSE} AutoResize {FALSE} - Rect {15 80 120 10} + Rect {15 96 142 14} Name {oddpages} Variable {oddpages} MinimumSize {0 0} @@ -375,7 +375,7 @@ RadioButton { Text {&Printer} AutoRepeat {FALSE} AutoResize {FALSE} - Rect {167 99 121 16} + Rect {189 120 142 23} Name {toprinter} Variable {toprinter} MinimumSize {0 0} @@ -400,7 +400,7 @@ RadioButton { Text {&File} AutoRepeat {FALSE} AutoResize {FALSE} - Rect {167 135 121 16} + Rect {189 170 142 23} Name {tofile} Variable {tofile} MinimumSize {0 0} @@ -425,7 +425,7 @@ LineEdit { EchoMode {Normal} MaxLength {32767} FrameShown {TRUE} - Rect {298 94 120 19} + Rect {341 115 142 26} Name {printername} Variable {printername} MinimumSize {0 0} @@ -450,7 +450,7 @@ CheckBox { Text {&Reverse order} AutoRepeat {FALSE} AutoResize {TRUE} - Rect {10 186 130 22} + Rect {10 240 152 30} Name {reverse} Variable {reverse} MinimumSize {0 0} @@ -475,7 +475,7 @@ LineEdit { EchoMode {Normal} MaxLength {32767} FrameShown {TRUE} - Rect {298 137 120 19} + Rect {341 172 142 26} Name {filename} Variable {filename} MinimumSize {0 0} @@ -497,10 +497,10 @@ LineEdit { } CheckBox { Checked {FALSE} - Text {&Sort} + Text {Co&llate} AutoRepeat {FALSE} AutoResize {TRUE} - Rect {382 17 43 31} + Rect {440 17 50 46} Name {sort} Variable {sort} MinimumSize {0 0} @@ -528,7 +528,7 @@ PushButton { Text {&Browse} AutoRepeat {FALSE} AutoResize {FALSE} - Rect {287 177 131 15} + Rect {330 225 153 23} Name {browse} Variable {browse} Signal {[Protected] clicked --> clickedBrowse ()} @@ -554,9 +554,10 @@ KDE::KIntLineEdit { EchoMode {Normal} MaxLength {32767} FrameShown {TRUE} - Rect {290 17 43 31} + Rect {334 17 50 46} Name {count} Variable {count} + Signal {[Protected] textChanged --> changedCount (const char*)} MinimumSize {0 0} MaximumSize {32767 32767} BackgroundPixmap {} @@ -583,7 +584,7 @@ Label { LineWidth {1} MidLineWidth {0} FrameMargin {0} - Rect {198 17 44 31} + Rect {228 17 50 46} Name {countLabel} Variable {countLabel} MinimumSize {0 0} @@ -608,7 +609,7 @@ KDE::KIntLineEdit { EchoMode {Normal} MaxLength {32767} FrameShown {TRUE} - Rect {98 160 42 21} + Rect {113 204 49 31} Name {to} Variable {to} MinimumSize {0 0} diff --git a/src/frontends/kde/formprintdialog.C b/src/frontends/kde/formprintdialog.C deleted file mode 100644 index 6650b11d66..0000000000 --- a/src/frontends/kde/formprintdialog.C +++ /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 -#include -#include - -#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/formindexdialog.C b/src/frontends/kde/indexdlg.C similarity index 73% rename from src/frontends/kde/formindexdialog.C rename to src/frontends/kde/indexdlg.C index a7f665d44a..41b4a8dd5a 100644 --- a/src/frontends/kde/formindexdialog.C +++ b/src/frontends/kde/indexdlg.C @@ -2,7 +2,7 @@ --- Qt Architect generated file --- - File: formindexdialog.C + File: indexdlg.C Last generated: Thu Sep 14 12:08:37 2000 *********************************************************************/ @@ -10,14 +10,14 @@ #include #include -#include "formindexdialog.h" +#include "indexdlg.h" #include "FormIndex.h" #include -#define Inherited FormIndexDialogData +#define Inherited IndexDialogData -FormIndexDialog::FormIndexDialog(FormIndex * f, QWidget *p, const char* name) +IndexDialog::IndexDialog(FormIndex * f, QWidget *p, const char* name) : Inherited( p, name ), form_(f) { setCaption(name); @@ -32,12 +32,12 @@ FormIndexDialog::FormIndexDialog(FormIndex * f, QWidget *p, const char* name) } -FormIndexDialog::~FormIndexDialog() +IndexDialog::~IndexDialog() { } -void FormIndexDialog::clickedOK() +void IndexDialog::clickedOK() { form_->apply(); form_->close(); @@ -45,14 +45,14 @@ void FormIndexDialog::clickedOK() } -void FormIndexDialog::clickedCancel() +void IndexDialog::clickedCancel() { form_->close(); hide(); } -void FormIndexDialog::setReadOnly(bool readonly) +void IndexDialog::setReadOnly(bool readonly) { if (readonly) { index->setFocusPolicy(QWidget::NoFocus); diff --git a/src/frontends/kde/formindexdialog.h b/src/frontends/kde/indexdlg.h similarity index 70% rename from src/frontends/kde/formindexdialog.h rename to src/frontends/kde/indexdlg.h index 2b459ea695..7c18974c29 100644 --- a/src/frontends/kde/formindexdialog.h +++ b/src/frontends/kde/indexdlg.h @@ -2,31 +2,31 @@ --- Qt Architect generated file --- - File: formindexdialog.h + File: indexdlg.h Last generated: Thu Sep 14 12:08:37 2000 *********************************************************************/ -#ifndef FormIndexDialog_included -#define FormIndexDialog_included +#ifndef IndexDialog_included +#define IndexDialog_included -#include "formindexdialogdata.h" +#include "indexdlgdata.h" class FormIndex; -class FormIndexDialog : public FormIndexDialogData +class IndexDialog : public IndexDialogData { Q_OBJECT public: - FormIndexDialog + IndexDialog ( FormIndex *, QWidget* parent = NULL, const char* name = NULL ); - virtual ~FormIndexDialog(); + virtual ~IndexDialog(); void setIndexText(const char * str) { index->setText(str); } const char * getIndexText() { return index->text(); } @@ -40,4 +40,4 @@ private: FormIndex *form_; }; -#endif // FormIndexDialog_included +#endif // IndexDialog_included diff --git a/src/frontends/kde/formindexdialogdata.C b/src/frontends/kde/indexdlgdata.C similarity index 67% rename from src/frontends/kde/formindexdialogdata.C rename to src/frontends/kde/indexdlgdata.C index f8f8b8aeca..c949e5482e 100644 --- a/src/frontends/kde/formindexdialogdata.C +++ b/src/frontends/kde/indexdlgdata.C @@ -2,22 +2,23 @@ --- Qt Architect generated file --- - File: formindexdialogdata.C - Last generated: Fri Oct 6 13:10:23 2000 + 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 #include #include -#include "formindexdialogdata.h" +#include "indexdlgdata.h" #define Inherited QWidget -FormIndexDialogData::FormIndexDialogData +IndexDialogData::IndexDialogData ( QWidget* parent, const char* name @@ -37,7 +38,7 @@ FormIndexDialogData::FormIndexDialogData labelindex->setLineWidth( 1 ); labelindex->setMidLineWidth( 0 ); labelindex->QFrame::setMargin( 0 ); - labelindex->setText( "Keyword:" ); + labelindex->setText( _("Keyword:") ); labelindex->setAlignment( 289 ); labelindex->setMargin( -1 ); @@ -49,7 +50,7 @@ FormIndexDialogData::FormIndexDialogData index->setBackgroundMode( QWidget::PaletteBase ); index->setFontPropagation( QWidget::NoChildren ); index->setPalettePropagation( QWidget::NoChildren ); - index->setText( "" ); + index->setText( _("") ); index->setMaxLength( 32767 ); index->setFrame( QLineEdit::Normal ); index->setFrame( TRUE ); @@ -63,7 +64,7 @@ FormIndexDialogData::FormIndexDialogData buttonOk->setBackgroundMode( QWidget::PaletteBackground ); buttonOk->setFontPropagation( QWidget::NoChildren ); buttonOk->setPalettePropagation( QWidget::NoChildren ); - buttonOk->setText( "&OK" ); + buttonOk->setText( _("&OK") ); buttonOk->setAutoRepeat( FALSE ); buttonOk->setAutoResize( FALSE ); buttonOk->setToggleButton( FALSE ); @@ -80,7 +81,7 @@ FormIndexDialogData::FormIndexDialogData buttonCancel->setBackgroundMode( QWidget::PaletteBackground ); buttonCancel->setFontPropagation( QWidget::NoChildren ); buttonCancel->setPalettePropagation( QWidget::NoChildren ); - buttonCancel->setText( "&Cancel" ); + buttonCancel->setText( _("&Cancel") ); buttonCancel->setAutoRepeat( FALSE ); buttonCancel->setAutoResize( FALSE ); buttonCancel->setToggleButton( FALSE ); @@ -88,6 +89,36 @@ FormIndexDialogData::FormIndexDialogData 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 ); @@ -114,12 +145,12 @@ FormIndexDialogData::FormIndexDialogData } -FormIndexDialogData::~FormIndexDialogData() +IndexDialogData::~IndexDialogData() { } -void FormIndexDialogData::clickedOK() +void IndexDialogData::clickedOK() { } -void FormIndexDialogData::clickedCancel() +void IndexDialogData::clickedCancel() { } diff --git a/src/frontends/kde/formindexdialogdata.h b/src/frontends/kde/indexdlgdata.h similarity index 70% rename from src/frontends/kde/formindexdialogdata.h rename to src/frontends/kde/indexdlgdata.h index e0b918b004..ccb6737431 100644 --- a/src/frontends/kde/formindexdialogdata.h +++ b/src/frontends/kde/indexdlgdata.h @@ -2,35 +2,35 @@ --- Qt Architect generated file --- - File: formindexdialogdata.h - Last generated: Fri Oct 6 13:10:23 2000 + 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 FormIndexDialogData_included -#define FormIndexDialogData_included +#ifndef IndexDialogData_included +#define IndexDialogData_included #include #include #include #include -class FormIndexDialogData : public QWidget +class IndexDialogData : public QWidget { Q_OBJECT public: - FormIndexDialogData + IndexDialogData ( QWidget* parent = NULL, const char* name = NULL ); - virtual ~FormIndexDialogData(); + virtual ~IndexDialogData(); public slots: @@ -48,4 +48,4 @@ protected: }; -#endif // FormIndexDialogData_included +#endif // IndexDialogData_included diff --git a/src/frontends/kde/paradlg.C b/src/frontends/kde/paradlg.C new file mode 100644 index 0000000000..629a124bdc --- /dev/null +++ b/src/frontends/kde/paradlg.C @@ -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 index 0000000000..7f3d7287b1 --- /dev/null +++ b/src/frontends/kde/paradlg.h @@ -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 +#include +#include + +#include "parageneraldlg.h" +#include "paraextradlg.h" + +#include + +#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 index 0000000000..07cd6966f2 --- /dev/null +++ b/src/frontends/kde/paraextradlg.C @@ -0,0 +1,59 @@ +/********************************************************************** + + --- Qt Architect generated file --- + + File: paraextradlg.C + Last generated: Sat Oct 14 00:27:49 2000 + + *********************************************************************/ + +#include "paraextradlg.h" + +#include + +#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 index 0000000000..77e4750c37 --- /dev/null +++ b/src/frontends/kde/paraextradlg.h @@ -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 index 0000000000..bb242ddc6b --- /dev/null +++ b/src/frontends/kde/paraextradlgdata.C @@ -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 +#include +#include +#include "paraextradlgdata.h" + +#define Inherited QWidget + +#include + +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 index 0000000000..28562f9441 --- /dev/null +++ b/src/frontends/kde/paraextradlgdata.h @@ -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 +#include +#include +#include +#include +#include + +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 index 0000000000..8e71959e85 --- /dev/null +++ b/src/frontends/kde/parageneraldlg.C @@ -0,0 +1,118 @@ +/********************************************************************** + + --- Qt Architect generated file --- + + File: parageneraldlg.C + Last generated: Sat Oct 14 00:27:47 2000 + + *********************************************************************/ + +#include "parageneraldlg.h" + +#include + +#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 index 0000000000..f608b343de --- /dev/null +++ b/src/frontends/kde/parageneraldlg.h @@ -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 index 0000000000..35b410b057 --- /dev/null +++ b/src/frontends/kde/parageneraldlgdata.C @@ -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 +#include +#include +#include "parageneraldlgdata.h" + +#define Inherited QWidget + +#include +#include + +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 index 0000000000..96715ecd96 --- /dev/null +++ b/src/frontends/kde/parageneraldlgdata.h @@ -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 +#include +#include +#include +#include +#include +#include + +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 index 0000000000..eb981b5dce --- /dev/null +++ b/src/frontends/kde/printdlg.C @@ -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 +#include + +#include +#include + +#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/formprintdialog.h b/src/frontends/kde/printdlg.h similarity index 79% rename from src/frontends/kde/formprintdialog.h rename to src/frontends/kde/printdlg.h index f3d06e6320..df0bea7c65 100644 --- a/src/frontends/kde/formprintdialog.h +++ b/src/frontends/kde/printdlg.h @@ -1,24 +1,26 @@ /* - * formprintdialog.h + * printdlg.h * (C) 2000 LyX Team * John Levon, moz@compsoc.man.ac.uk */ -#ifndef FORMPRINTDIALOG_H -#define FORMPRINTDIALOG_H +#ifndef PRINTDLG_H +#define PRINTDLG_H -#include "formprintdialogdata.h" + +#include "printdlgdata.h" +#include "support/lstrings.h" #include "lyxrc.h" #include "PrinterParams.h" #include "FormPrint.h" -class FormPrintDialog : public FormPrintDialogData +class PrintDialog : public PrintDialogData { Q_OBJECT public: - FormPrintDialog(FormPrint *f, QWidget* parent = NULL, const char* name = NULL); - virtual ~FormPrintDialog(); + PrintDialog(FormPrint *f, QWidget* parent = NULL, const char* name = NULL); + virtual ~PrintDialog(); const char *getFrom() { return from->text(); @@ -99,8 +101,9 @@ public: sort->setChecked(on); } - void setCount(const char *num) { - count->setText(num); + void setCount(int num) { + count->setText(tostr(num).c_str()); + sort->setEnabled(num > 1); } void setFrom(const char *text) { @@ -123,9 +126,13 @@ protected slots: 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 // FORMPRINTDIALOG_H +#endif // PRINTDLG_H diff --git a/src/frontends/kde/formprintdialogdata.C b/src/frontends/kde/printdlgdata.C similarity index 94% rename from src/frontends/kde/formprintdialogdata.C rename to src/frontends/kde/printdlgdata.C index ea5c055566..ee62d40196 100644 --- a/src/frontends/kde/formprintdialogdata.C +++ b/src/frontends/kde/printdlgdata.C @@ -2,8 +2,8 @@ --- Qt Architect generated file --- - File: formprintdialogdata.C - Last generated: Fri Oct 13 16:07:46 2000 + 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. @@ -11,15 +11,14 @@ *********************************************************************/ #include - #include #include -#include "formprintdialogdata.h" +#include "printdlgdata.h" #define Inherited QWidget -FormPrintDialogData::FormPrintDialogData +PrintDialogData::PrintDialogData ( QWidget* parent, const char* name @@ -28,7 +27,7 @@ FormPrintDialogData::FormPrintDialogData Inherited( parent, name, 0 ) { pagesGroupBox = new QGroupBox( this, "pagesGroupBox" ); - pagesGroupBox->setGeometry( 5, 5, 140, 208 ); + pagesGroupBox->setGeometry( 5, 5, 162, 270 ); pagesGroupBox->setMinimumSize( 15, 47 ); pagesGroupBox->setMaximumSize( 32767, 32767 ); pagesGroupBox->setFocusPolicy( QWidget::NoFocus ); @@ -43,7 +42,7 @@ FormPrintDialogData::FormPrintDialogData pagesGroupBox->setAlignment( 1 ); pagesRadioGroup = new QButtonGroup( pagesGroupBox, "pagesRadioGroup" ); - pagesRadioGroup->setGeometry( 5, 17, 130, 106 ); + pagesRadioGroup->setGeometry( 5, 17, 152, 142 ); pagesRadioGroup->setMinimumSize( 10, 20 ); pagesRadioGroup->setMaximumSize( 32767, 32767 ); pagesRadioGroup->setFocusPolicy( QWidget::NoFocus ); @@ -59,7 +58,7 @@ FormPrintDialogData::FormPrintDialogData pagesRadioGroup->setExclusive( TRUE ); copies = new QGroupBox( this, "copies" ); - copies->setGeometry( 150, 5, 280, 51 ); + copies->setGeometry( 172, 5, 323, 66 ); copies->setMinimumSize( 30, 10 ); copies->setMaximumSize( 32767, 32767 ); copies->setFocusPolicy( QWidget::NoFocus ); @@ -74,7 +73,7 @@ FormPrintDialogData::FormPrintDialogData copies->setAlignment( 1 ); printToGroupBox = new QGroupBox( this, "printToGroupBox" ); - printToGroupBox->setGeometry( 150, 61, 280, 152 ); + printToGroupBox->setGeometry( 172, 76, 323, 199 ); printToGroupBox->setMinimumSize( 25, 30 ); printToGroupBox->setMaximumSize( 32767, 32767 ); printToGroupBox->setFocusPolicy( QWidget::NoFocus ); @@ -89,7 +88,7 @@ FormPrintDialogData::FormPrintDialogData printToGroupBox->setAlignment( 1 ); printToRadioGroup = new QButtonGroup( printToGroupBox, "printToRadioGroup" ); - printToRadioGroup->setGeometry( 12, 33, 131, 62 ); + printToRadioGroup->setGeometry( 12, 39, 152, 83 ); printToRadioGroup->setMinimumSize( 10, 15 ); printToRadioGroup->setMaximumSize( 32767, 32767 ); printToRadioGroup->setFocusPolicy( QWidget::NoFocus ); @@ -105,7 +104,7 @@ FormPrintDialogData::FormPrintDialogData printToRadioGroup->setExclusive( TRUE ); print = new QPushButton( this, "print" ); - print->setGeometry( 75, 218, 70, 32 ); + print->setGeometry( 86, 280, 81, 45 ); print->setMinimumSize( 0, 0 ); print->setMaximumSize( 32767, 32767 ); connect( print, SIGNAL(clicked()), SLOT(clickedPrint()) ); @@ -122,7 +121,7 @@ FormPrintDialogData::FormPrintDialogData print->setIsMenuButton( FALSE ); cancel = new QPushButton( this, "cancel" ); - cancel->setGeometry( 290, 218, 70, 32 ); + cancel->setGeometry( 333, 280, 81, 45 ); cancel->setMinimumSize( 0, 0 ); cancel->setMaximumSize( 32767, 32767 ); connect( cancel, SIGNAL(clicked()), SLOT(clickedCancel()) ); @@ -139,7 +138,7 @@ FormPrintDialogData::FormPrintDialogData cancel->setIsMenuButton( FALSE ); allpages = new QRadioButton( pagesRadioGroup, "allpages" ); - allpages->setGeometry( 5, 14, 120, 30 ); + allpages->setGeometry( 5, 20, 142, 34 ); allpages->setMinimumSize( 80, 20 ); allpages->setMaximumSize( 32767, 32767 ); allpages->setFocusPolicy( QWidget::TabFocus ); @@ -152,7 +151,7 @@ FormPrintDialogData::FormPrintDialogData allpages->setChecked( FALSE ); evenpages = new QRadioButton( pagesRadioGroup, "evenpages" ); - evenpages->setGeometry( 5, 82, 120, 10 ); + evenpages->setGeometry( 5, 108, 142, 14 ); evenpages->setMinimumSize( 0, 0 ); evenpages->setMaximumSize( 32767, 32767 ); evenpages->setFocusPolicy( QWidget::TabFocus ); @@ -165,7 +164,7 @@ FormPrintDialogData::FormPrintDialogData evenpages->setChecked( FALSE ); from = new KIntLineEdit( pagesGroupBox, "from" ); - from->setGeometry( 93, 128, 42, 22 ); + from->setGeometry( 108, 164, 49, 30 ); from->setMinimumSize( 0, 0 ); from->setMaximumSize( 32767, 32767 ); from->setFocusPolicy( QWidget::StrongFocus ); @@ -178,7 +177,7 @@ FormPrintDialogData::FormPrintDialogData from->setFrame( TRUE ); fromLabel = new QLabel( pagesGroupBox, "fromLabel" ); - fromLabel->setGeometry( 5, 128, 83, 22 ); + fromLabel->setGeometry( 5, 164, 98, 30 ); fromLabel->setMinimumSize( 0, 0 ); fromLabel->setMaximumSize( 32767, 32767 ); fromLabel->setFocusPolicy( QWidget::NoFocus ); @@ -194,7 +193,7 @@ FormPrintDialogData::FormPrintDialogData fromLabel->setMargin( -1 ); toLabel = new QLabel( pagesGroupBox, "toLabel" ); - toLabel->setGeometry( 5, 155, 83, 21 ); + toLabel->setGeometry( 5, 199, 98, 31 ); toLabel->setMinimumSize( 0, 0 ); toLabel->setMaximumSize( 32767, 32767 ); toLabel->setFocusPolicy( QWidget::NoFocus ); @@ -210,7 +209,7 @@ FormPrintDialogData::FormPrintDialogData toLabel->setMargin( -1 ); oddpages = new QRadioButton( pagesRadioGroup, "oddpages" ); - oddpages->setGeometry( 5, 58, 120, 10 ); + oddpages->setGeometry( 5, 74, 142, 14 ); oddpages->setMinimumSize( 0, 0 ); oddpages->setMaximumSize( 32767, 32767 ); oddpages->setFocusPolicy( QWidget::TabFocus ); @@ -223,7 +222,7 @@ FormPrintDialogData::FormPrintDialogData oddpages->setChecked( FALSE ); toprinter = new QRadioButton( printToRadioGroup, "toprinter" ); - toprinter->setGeometry( 5, 5, 121, 16 ); + toprinter->setGeometry( 5, 5, 142, 23 ); toprinter->setMinimumSize( 0, 0 ); toprinter->setMaximumSize( 32767, 32767 ); toprinter->setFocusPolicy( QWidget::TabFocus ); @@ -236,7 +235,7 @@ FormPrintDialogData::FormPrintDialogData toprinter->setChecked( FALSE ); tofile = new QRadioButton( printToRadioGroup, "tofile" ); - tofile->setGeometry( 5, 41, 121, 16 ); + tofile->setGeometry( 5, 55, 142, 23 ); tofile->setMinimumSize( 0, 0 ); tofile->setMaximumSize( 32767, 32767 ); tofile->setFocusPolicy( QWidget::TabFocus ); @@ -249,7 +248,7 @@ FormPrintDialogData::FormPrintDialogData tofile->setChecked( FALSE ); printername = new QLineEdit( printToGroupBox, "printername" ); - printername->setGeometry( 148, 33, 120, 19 ); + printername->setGeometry( 169, 39, 142, 26 ); printername->setMinimumSize( 0, 0 ); printername->setMaximumSize( 32767, 32767 ); printername->setFocusPolicy( QWidget::StrongFocus ); @@ -262,7 +261,7 @@ FormPrintDialogData::FormPrintDialogData printername->setFrame( TRUE ); reverse = new QCheckBox( pagesGroupBox, "reverse" ); - reverse->setGeometry( 5, 181, 130, 22 ); + reverse->setGeometry( 5, 235, 152, 30 ); reverse->setMinimumSize( 0, 0 ); reverse->setMaximumSize( 32767, 32767 ); reverse->setFocusPolicy( QWidget::TabFocus ); @@ -275,7 +274,7 @@ FormPrintDialogData::FormPrintDialogData reverse->setChecked( FALSE ); filename = new QLineEdit( printToGroupBox, "filename" ); - filename->setGeometry( 148, 76, 120, 19 ); + filename->setGeometry( 169, 96, 142, 26 ); filename->setMinimumSize( 0, 0 ); filename->setMaximumSize( 32767, 32767 ); filename->setFocusPolicy( QWidget::StrongFocus ); @@ -288,20 +287,20 @@ FormPrintDialogData::FormPrintDialogData filename->setFrame( TRUE ); sort = new QCheckBox( copies, "sort" ); - sort->setGeometry( 232, 12, 43, 31 ); + 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( _("&Sort") ); + sort->setText( _("Co&llate") ); sort->setAutoRepeat( FALSE ); sort->setAutoResize( TRUE ); sort->setChecked( FALSE ); browse = new QPushButton( printToGroupBox, "browse" ); - browse->setGeometry( 137, 116, 131, 15 ); + browse->setGeometry( 158, 149, 153, 23 ); browse->setMinimumSize( 0, 0 ); browse->setMaximumSize( 32767, 32767 ); connect( browse, SIGNAL(clicked()), SLOT(clickedBrowse()) ); @@ -318,9 +317,10 @@ FormPrintDialogData::FormPrintDialogData browse->setIsMenuButton( FALSE ); count = new KIntLineEdit( copies, "count" ); - count->setGeometry( 140, 12, 43, 31 ); + 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 ); @@ -331,7 +331,7 @@ FormPrintDialogData::FormPrintDialogData count->setFrame( TRUE ); countLabel = new QLabel( copies, "countLabel" ); - countLabel->setGeometry( 48, 12, 44, 31 ); + countLabel->setGeometry( 56, 12, 50, 46 ); countLabel->setMinimumSize( 0, 0 ); countLabel->setMaximumSize( 32767, 32767 ); countLabel->setFocusPolicy( QWidget::NoFocus ); @@ -347,7 +347,7 @@ FormPrintDialogData::FormPrintDialogData countLabel->setMargin( -1 ); to = new KIntLineEdit( pagesGroupBox, "to" ); - to->setGeometry( 93, 155, 42, 21 ); + to->setGeometry( 108, 199, 49, 31 ); to->setMinimumSize( 0, 0 ); to->setMaximumSize( 32767, 32767 ); to->setFocusPolicy( QWidget::StrongFocus ); @@ -590,21 +590,24 @@ FormPrintDialogData::FormPrintDialogData 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 ); + resize( 500,330 ); setMinimumSize( 0, 0 ); setMaximumSize( 32767, 32767 ); } -FormPrintDialogData::~FormPrintDialogData() +PrintDialogData::~PrintDialogData() +{ +} +void PrintDialogData::clickedPrint() { } -void FormPrintDialogData::clickedPrint() +void PrintDialogData::clickedCancel() { } -void FormPrintDialogData::clickedCancel() +void PrintDialogData::clickedBrowse() { } -void FormPrintDialogData::clickedBrowse() +void PrintDialogData::changedCount(const char*) { } diff --git a/src/frontends/kde/formprintdialogdata.h b/src/frontends/kde/printdlgdata.h similarity index 81% rename from src/frontends/kde/formprintdialogdata.h rename to src/frontends/kde/printdlgdata.h index b3d08ba61a..3e9b84ed62 100644 --- a/src/frontends/kde/formprintdialogdata.h +++ b/src/frontends/kde/printdlgdata.h @@ -2,16 +2,16 @@ --- Qt Architect generated file --- - File: formprintdialogdata.h - Last generated: Fri Oct 13 16:07:46 2000 + 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 FormPrintDialogData_included -#define FormPrintDialogData_included +#ifndef PrintDialogData_included +#define PrintDialogData_included #include #include @@ -23,19 +23,19 @@ #include #include -class FormPrintDialogData : public QWidget +class PrintDialogData : public QWidget { Q_OBJECT public: - FormPrintDialogData + PrintDialogData ( QWidget* parent = NULL, const char* name = NULL ); - virtual ~FormPrintDialogData(); + virtual ~PrintDialogData(); public slots: @@ -44,6 +44,7 @@ protected slots: virtual void clickedCancel(); virtual void clickedBrowse(); + virtual void changedCount(const char*); virtual void clickedPrint(); protected: @@ -73,4 +74,4 @@ protected: }; -#endif // FormPrintDialogData_included +#endif // PrintDialogData_included diff --git a/src/frontends/kde/formrefdialog.C b/src/frontends/kde/refdlg.C similarity index 96% rename from src/frontends/kde/formrefdialog.C rename to src/frontends/kde/refdlg.C index ce154131a9..5db39f2afd 100644 --- a/src/frontends/kde/formrefdialog.C +++ b/src/frontends/kde/refdlg.C @@ -1,5 +1,5 @@ /* - * formrefdialog.C + * refdlg.C * (C) 2000 LyX Team * John Levon, moz@compsoc.man.ac.uk */ @@ -13,9 +13,9 @@ * * ***************************************************************************/ -#include "formrefdialog.h" +#include "refdlg.h" -FormRefDialog::FormRefDialog(FormRef *form, QWidget *parent, const char *name, bool, WFlags) +RefDialog::RefDialog(FormRef *form, QWidget *parent, const char *name, bool, WFlags) : QDialog(parent,name,false), form_(form) { setCaption(name); @@ -164,12 +164,12 @@ FormRefDialog::FormRefDialog(FormRef *form, QWidget *parent, const char *name, b connect(buttonCancel, SIGNAL(clicked()), this, SLOT(close_adaptor())); } -void FormRefDialog::closeEvent(QCloseEvent *e) +RefDialog::~RefDialog() { - form_->close(); - e->accept(); } -FormRefDialog::~FormRefDialog() +void RefDialog::closeEvent(QCloseEvent *e) { + form_->close(); + e->accept(); } diff --git a/src/frontends/kde/formrefdialog.h b/src/frontends/kde/refdlg.h similarity index 92% rename from src/frontends/kde/formrefdialog.h rename to src/frontends/kde/refdlg.h index 7dac239d2b..679307e567 100644 --- a/src/frontends/kde/formrefdialog.h +++ b/src/frontends/kde/refdlg.h @@ -1,5 +1,5 @@ /* - * formrefdialog.h + * refdlg.h * (C) 2000 LyX Team * John Levon, moz@compsoc.man.ac.uk */ @@ -13,8 +13,8 @@ * * ***************************************************************************/ -#ifndef FORMREFDIALOG_H -#define FORMREFDIALOG_H +#ifndef REFDLG_H +#define REFDLG_H #include #include @@ -31,12 +31,12 @@ #include #include -class FormRefDialog : public QDialog { +class RefDialog : public QDialog { Q_OBJECT public: - FormRefDialog(FormRef *form, QWidget *parent=0, const char *name=0, + RefDialog(FormRef *form, QWidget *parent=0, const char *name=0, bool modal=false, WFlags f=0); - ~FormRefDialog(); + ~RefDialog(); // widgets diff --git a/src/frontends/kde/formtocdialog.C b/src/frontends/kde/tocdlg.C similarity index 93% rename from src/frontends/kde/formtocdialog.C rename to src/frontends/kde/tocdlg.C index 5d671cbe26..b3551bf7ec 100644 --- a/src/frontends/kde/formtocdialog.C +++ b/src/frontends/kde/tocdlg.C @@ -1,5 +1,5 @@ /* - * formtocdialog.C + * tocdlg.C * (C) 2000 LyX Team * John Levon, moz@compsoc.man.ac.uk */ @@ -13,9 +13,9 @@ * * ***************************************************************************/ -#include "formtocdialog.h" +#include "tocdlg.h" -FormTocDialog::FormTocDialog(FormToc *form, QWidget *parent, const char *name, bool, WFlags) +TocDialog::TocDialog(FormToc *form, QWidget *parent, const char *name, bool, WFlags) : QDialog(parent,name,false), form_(form) { setCaption(name); @@ -88,12 +88,12 @@ FormTocDialog::FormTocDialog(FormToc *form, QWidget *parent, const char *name, b connect(depth, SIGNAL(valueChanged(int)), this, SLOT(depth_adaptor(int))); } -void FormTocDialog::closeEvent(QCloseEvent *e) +void TocDialog::closeEvent(QCloseEvent *e) { form_->close(); e->accept(); } -FormTocDialog::~FormTocDialog() +TocDialog::~TocDialog() { } diff --git a/src/frontends/kde/formtocdialog.h b/src/frontends/kde/tocdlg.h similarity index 91% rename from src/frontends/kde/formtocdialog.h rename to src/frontends/kde/tocdlg.h index 5ce697ad21..7545e90a37 100644 --- a/src/frontends/kde/formtocdialog.h +++ b/src/frontends/kde/tocdlg.h @@ -1,5 +1,5 @@ /* - * formtocdialog.h + * tocdlg.h * (C) 2000 LyX Team * John Levon, moz@compsoc.man.ac.uk */ @@ -13,8 +13,8 @@ * * ***************************************************************************/ -#ifndef FORMTOCDIALOG_H -#define FORMTOCDIALOG_H +#ifndef TOCDLG_H +#define TOCDLG_H #include #include @@ -30,12 +30,12 @@ #include "FormToc.h" -class FormTocDialog : public QDialog { +class TocDialog : public QDialog { Q_OBJECT public: - FormTocDialog(FormToc *form, QWidget *parent=0, const char *name=0, + TocDialog(FormToc *form, QWidget *parent=0, const char *name=0, bool modal=false, WFlags f=0); - ~FormTocDialog(); + ~TocDialog(); // widgets diff --git a/src/frontends/kde/formurldialog.C b/src/frontends/kde/urldlg.C similarity index 93% rename from src/frontends/kde/formurldialog.C rename to src/frontends/kde/urldlg.C index 609d2b21ad..cf03667848 100644 --- a/src/frontends/kde/formurldialog.C +++ b/src/frontends/kde/urldlg.C @@ -1,5 +1,5 @@ /* - * formurldialog.C + * urldlg.C * (C) 2000 LyX Team * John Levon, moz@compsoc.man.ac.uk */ @@ -13,9 +13,9 @@ * * ***************************************************************************/ -#include "formurldialog.h" +#include "urldlg.h" -FormUrlDialog::FormUrlDialog(FormUrl *form, QWidget *parent, const char *name, bool, WFlags) +UrlDialog::UrlDialog(FormUrl *form, QWidget *parent, const char *name, bool, WFlags) : QDialog(parent,name,false), form_(form) { setCaption(name); @@ -103,12 +103,12 @@ FormUrlDialog::FormUrlDialog(FormUrl *form, QWidget *parent, const char *name, b connect(buttonCancel, SIGNAL(clicked()), this, SLOT(close_adaptor())); } -void FormUrlDialog::closeEvent(QCloseEvent *e) +UrlDialog::~UrlDialog() { - form_->close(); - e->accept(); } -FormUrlDialog::~FormUrlDialog() +void UrlDialog::closeEvent(QCloseEvent *e) { + form_->close(); + e->accept(); } diff --git a/src/frontends/kde/formurldialog.h b/src/frontends/kde/urldlg.h similarity index 89% rename from src/frontends/kde/formurldialog.h rename to src/frontends/kde/urldlg.h index e67321b9fc..39d5bbe0c7 100644 --- a/src/frontends/kde/formurldialog.h +++ b/src/frontends/kde/urldlg.h @@ -1,5 +1,5 @@ /* - * formurldialog.h + * urldlg.h * (C) 2000 LyX Team * John Levon, moz@compsoc.man.ac.uk */ @@ -13,8 +13,8 @@ * * ***************************************************************************/ -#ifndef FORMURLDIALOG_H -#define FORMURLDIALOG_H +#ifndef URLDLG_H +#define URLDLG_H #include #include @@ -30,12 +30,12 @@ #include #include -class FormUrlDialog : public QDialog { +class UrlDialog : public QDialog { Q_OBJECT public: - FormUrlDialog(FormUrl *form, QWidget *parent=0, const char *name=0, + UrlDialog(FormUrl *form, QWidget *parent=0, const char *name=0, bool modal=false, WFlags f=0); - ~FormUrlDialog(); + ~UrlDialog(); // widgets diff --git a/src/frontends/support/Makefile.am b/src/frontends/support/Makefile.am index 3da8782920..661c59a826 100644 --- a/src/frontends/support/Makefile.am +++ b/src/frontends/support/Makefile.am @@ -10,6 +10,6 @@ libfrontendsupport_la_SOURCES = \ LyXImage.h \ LyXImage.C -libfrontendsupport_la_EXTRA_DIST = \ +EXTRA_DIST = \ LyXImage_X.h \ LyXImage_X.C -- 2.39.2