From: John Levon Date: Wed, 24 Jan 2001 11:43:48 +0000 (+0000) Subject: FormDocument and various fixes. X-Git-Tag: 1.6.10~21702 X-Git-Url: https://git.lyx.org/gitweb/?a=commitdiff_plain;h=1c0ca55b494386f86db1e8b9256dcf094605e5e2;p=features.git FormDocument and various fixes. git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@1378 a592a061-630c-0410-9148-cb99ea01b6c8 --- diff --git a/src/frontends/kde/ChangeLog b/src/frontends/kde/ChangeLog index b9e741ef8f..1b5e5ea0ee 100644 --- a/src/frontends/kde/ChangeLog +++ b/src/frontends/kde/ChangeLog @@ -1,3 +1,84 @@ +2000-01-24 John Levon + + * FormParagraph.C: update readonly in correct + place + + * FormParagraph.h: remove bogus include + + * FormRef.C: add tooltip for Goto Ref/Back + + * Makefile.am: add library dependencies + add FormDocument + + * citationdlg.h: + * citationdlg.C: use setSizeHint(). Derive from QWidget + + * dlg/helpers.C: + * dlg/helpers.h: useful widget manipulators + + * dlg/lengthentry.C: + * dlg/lengthentry.h: widget for manipulating LyXLengths + + * dlg/Makefile.am: + * dlg/moc/Makefile.am: + * moc/Makefile.am: + * dlg/copyrightdlgdata.C: + * dlg/copyrightdlgdata.h: + * dlg/docbulletsdlgdata.C: + * dlg/docbulletsdlgdata.h: + * dlg/docdlgdata.C: + * dlg/docdlgdata.h: + * dlg/docextradlgdata.C: + * dlg/docextradlgdata.h: + * dlg/docgeometrydlgdata.C: + * dlg/docgeometrydlgdata.h: + * dlg/doclanguagedlgdata.C: + * dlg/doclanguagedlgdata.h: + * dlg/docsettingsdlgdata.C: + * dlg/docsettingsdlgdata.h: + * dlg/dialogs/doc.dlg: + * dlg/dialogs/docbullets.dlg: + * dlg/dialogs/docextra.dlg: + * dlg/dialogs/docgeometry.dlg: + * dlg/dialogs/doclanguage.dlg: + * dlg/dialogs/docsettings.dlg: + * dlg/dialogs/paraabove.dlg: + * dlg/dialogs/parabelow.dlg: + * FormDocument.C: + * FormDocument.h: + * docdlg.h: + * docdlg.C: + new FormDocument (incomplete) + + * dlg/paraabovedlgdata.C: + * dlg/paraabovedlgdata.h: + * dlg/parabelowdlgdata.C: + * dlg/parabelowdlgdata.h: + * dlg/paradlgdata.C: + * paradlg.h: + * paradlg.C: + * parageneraldlg.C: + * parageneraldlg.h: + * paraextradlg.C: use setSizeHint(). Add tooltips. + use LengthEntry widget. + + * tabstack.C: + * tabstack.h: fix drawing problems + + * printdlg.C: small fix to tooltip + + * refdlg.h: + * refdlg.C: use setSizeHint(). Derive from QWidget. Add + tooltips. + + * tabcreatedlg.C: add tooltip + + * tocdlg.h: + * tocdlg.C: derive from QWidget. Use setSizeHint() + + * urldlg.h: + * urldlg.C: derive from QWidget. Use setSizeHint() + 2000-01-12 John Levon * FormTabularCreate.C: use LFUN_INSET_TABULAR Dispatch diff --git a/src/frontends/kde/FormDocument.C b/src/frontends/kde/FormDocument.C new file mode 100644 index 0000000000..38b97fb610 --- /dev/null +++ b/src/frontends/kde/FormDocument.C @@ -0,0 +1,131 @@ +/* + * FormDocument.C + * (C) 2001 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 "docdlg.h" + +#include "Dialogs.h" +#include "FormDocument.h" + +#include "CutAndPaste.h" +#include "buffer.h" +#include "Liason.h" + +#include "QtLyXView.h" +#include "debug.h" + +#ifdef CXX_WORKING_NAMESPACES +using Liason::setMinibuffer; +#endif + +FormDocument::FormDocument(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->showLayoutDocument.connect(slot(this, &FormDocument::show)); +} + +FormDocument::~FormDocument() +{ + delete dialog_; +} + +void FormDocument::update(bool switched) +{ + if (switched) { + hide(); + return; + } + + if (!lv_->view()->available()) + return; + + Buffer *buf = lv_->buffer(); + + if (readonly!=buf->isReadonly()) { + readonly = buf->isReadonly(); + dialog_->setReadOnly(readonly); + } + + dialog_->setFromParams(buf->params); +} + +void FormDocument::apply() +{ + if (readonly) + return; + + if (!lv_->view()->available()) + return; + + BufferParams & params = lv_->buffer()->params; + + if (dialog_->updateParams(params)) + lv_->view()->redoCurrentBuffer(); + + lv_->buffer()->markDirty(); + setMinibuffer(lv_, _("Document layout set")); +} + +void FormDocument::show() +{ + if (!dialog_) + dialog_ = new DocDialog(this, 0, _("LyX: Document Options"), false); + + if (!dialog_->isVisible()) + h_ = d_->hideBufferDependent.connect(slot(this, &FormDocument::hide)); + + + dialog_->raise(); + dialog_->setActiveWindow(); + update(); + + dialog_->show(); +} + +bool FormDocument::changeClass(BufferParams & params, int new_class) +{ + if (textclasslist.Load(new_class)) { + // successfully loaded + setMinibuffer(lv_, _("Converting document to new document class...")); + + CutAndPaste cap; + int ret = cap.SwitchLayoutsBetweenClasses( + params.textclass, new_class, + lv_->buffer()->paragraph); + if (ret) { + /* FIXME: error message */ + } + + params.textclass = new_class; + } else + return false; + + return true; +} + +void FormDocument::close() +{ + h_.disconnect(); +} + +void FormDocument::hide() +{ + dialog_->hide(); + close(); +} diff --git a/src/frontends/kde/FormDocument.h b/src/frontends/kde/FormDocument.h new file mode 100644 index 0000000000..22d0de1e2c --- /dev/null +++ b/src/frontends/kde/FormDocument.h @@ -0,0 +1,73 @@ +/* FormDocument.h + * (C) 2001 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 FORMDOCUMENT_H +#define FORMDOCUMENT_H + +#include + +#include "DialogBase.h" +#include "LString.h" +#include "boost/utility.hpp" + +class Dialogs; +class LyXView; +class DocDialog; +class BufferParams; + +/** + * \brief the LyXian side of the complex Document dialog + */ +class FormDocument : public DialogBase, public noncopyable { +public: + /**@name Constructors and Destructors */ + //@{ + /// + FormDocument(LyXView *, Dialogs *); + /// + ~FormDocument(); + //@} + + /// Apply changes + void apply(); + /// Update the dialog. + void update(bool switched = false); + /// close the connections + void close(); + /// change the doc class + bool changeClass(BufferParams & params, int new_class); + +private: + /// Create the dialog if necessary, update it and display it. + void show(); + /// Hide the dialog. + void hide(); + + /// Real GUI implementation. + DocDialog * dialog_; + + /// the LyXView we belong to + LyXView * lv_; + + /// Used so we can get at the signals we have to connect to. + Dialogs * d_; + + /// Hide connection. + Connection h_; + + /// is the buffer readonly ? + bool readonly; +}; + +#endif diff --git a/src/frontends/kde/FormParagraph.C b/src/frontends/kde/FormParagraph.C index 6ed12bcceb..f81fa5f30d 100644 --- a/src/frontends/kde/FormParagraph.C +++ b/src/frontends/kde/FormParagraph.C @@ -58,6 +58,11 @@ void FormParagraph::update(bool switched) Buffer *buf = lv_->view()->buffer(); + if (readonly!=buf->isReadonly()) { + readonly = buf->isReadonly(); + dialog_->setReadOnly(readonly); + } + LyXText *text = 0; if (lv_->view()->theLockingInset()) @@ -95,11 +100,6 @@ void FormParagraph::update(bool switched) } 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, @@ -191,10 +191,11 @@ void FormParagraph::show() if (!dialog_->isVisible()) h_ = d_->hideBufferDependent.connect(slot(this, &FormParagraph::hide)); + dialog_->raise(); dialog_->setActiveWindow(); - update(); + dialog_->show(); } diff --git a/src/frontends/kde/FormParagraph.h b/src/frontends/kde/FormParagraph.h index 0d8ae4f7bd..b0951c7dfa 100644 --- a/src/frontends/kde/FormParagraph.h +++ b/src/frontends/kde/FormParagraph.h @@ -18,7 +18,6 @@ #include "DialogBase.h" #include "LString.h" #include "boost/utility.hpp" -#include "insets/inseturl.h" class Dialogs; class LyXView; diff --git a/src/frontends/kde/FormRef.C b/src/frontends/kde/FormRef.C index d816e0ef70..a9c66440dc 100644 --- a/src/frontends/kde/FormRef.C +++ b/src/frontends/kde/FormRef.C @@ -24,6 +24,8 @@ #include "refdlg.h" #include "debug.h" +#include + using std::endl; FormRef::FormRef(LyXView *v, Dialogs *d) @@ -101,11 +103,15 @@ void FormRef::goto_ref() lv_->getLyXFunc()->Dispatch(LFUN_REF_GOTO, dialog_->reference->text()); gotowhere=GOTOBACK; dialog_->buttonGoto->setText(_("&Go back")); + QToolTip::remove(dialog_->buttonGoto); + QToolTip::add(dialog_->buttonGoto,_("Jump back to original position")); break; case GOTOBACK: lv_->getLyXFunc()->Dispatch(LFUN_REF_BACK); gotowhere=GOTOREF; dialog_->buttonGoto->setText(_("&Goto reference")); + QToolTip::remove(dialog_->buttonGoto); + QToolTip::add(dialog_->buttonGoto,_("Jump to selected reference")); break; } } @@ -117,6 +123,8 @@ void FormRef::updateRefs() lv_->getLyXFunc()->Dispatch(LFUN_REF_BACK); gotowhere = GOTOREF; dialog_->buttonGoto->setText(_("&Goto reference")); + QToolTip::remove(dialog_->buttonGoto); + QToolTip::add(dialog_->buttonGoto,_("Jump to selected reference")); } dialog_->refs->setAutoUpdate(false); @@ -182,6 +190,8 @@ void FormRef::update(bool switched) } dialog_->buttonGoto->setText(_("&Goto reference")); + QToolTip::remove(dialog_->buttonGoto); + QToolTip::add(dialog_->buttonGoto,_("Jump to selected reference")); gotowhere = GOTOREF; diff --git a/src/frontends/kde/Makefile.am b/src/frontends/kde/Makefile.am index 5bce8b31e4..7c88997fff 100644 --- a/src/frontends/kde/Makefile.am +++ b/src/frontends/kde/Makefile.am @@ -9,13 +9,13 @@ INCLUDES = -I${top_srcdir}/src/ -I${top_srcdir}/src/frontends/ \ DISTCLEANFILES = $(BUILTSOURCES) *.orig *.rej *~ *.bak core +libkde_la_DEPENDENCIES = moc/libkdemoc.la dlg/libkdedlg.la dlg/moc/libkdedlgmoc.la + libkde_la_OBJADD = \ moc/libkdemoc.la \ dlg/libkdedlg.la \ dlg/moc/libkdedlgmoc.la \ ../xforms/FormBase.lo \ - ../xforms/FormDocument.lo \ - ../xforms/form_document.lo \ ../xforms/FormError.lo \ ../xforms/form_error.lo \ ../xforms/FormGraphics.lo \ @@ -44,6 +44,8 @@ libkde_la_SOURCES = \ FormCitation.h \ FormCopyright.C \ FormCopyright.h \ + FormDocument.C \ + FormDocument.h \ FormIndex.C \ FormIndex.h \ FormParagraph.C \ @@ -62,6 +64,8 @@ libkde_la_SOURCES = \ citationdlg.h \ copyrightdlg.C \ copyrightdlg.h \ + docdlg.C \ + docdlg.h \ indexdlg.C \ indexdlg.h \ paradlg.C \ @@ -83,6 +87,7 @@ libkde_la_SOURCES = \ moc/citationdlg_moc.C: citationdlg.C citationdlg.h moc/copyrightdlg_moc.C: copyrightdlg.C copyrightdlg.h +moc/docdlg_moc.C: docdlg.C docdlg.h moc/indexdlg_moc.C: indexdlg.C indexdlg.h moc/paradlg_moc.C: paradlg.C paradlg.h moc/parageneraldlg_moc.C: parageneraldlg.C parageneraldlg.h diff --git a/src/frontends/kde/citationdlg.C b/src/frontends/kde/citationdlg.C index c6dc161092..e1584b867f 100644 --- a/src/frontends/kde/citationdlg.C +++ b/src/frontends/kde/citationdlg.C @@ -14,10 +14,16 @@ ***************************************************************************/ #include + +#include "dlg/helpers.h" #include "citationdlg.h" +#ifdef CXX_WORKING_NAMESPACES +using kde_helpers::setSizeHint; +#endif + CitationDialog::CitationDialog(FormCitation *form, QWidget *parent, const char *name, bool, WFlags) - : QDialog(parent,name,false), form_(form) + : QWidget(parent,name,0), form_(form) { setCaption(name); setMinimumWidth(500); @@ -26,25 +32,25 @@ CitationDialog::CitationDialog(FormCitation *form, QWidget *parent, const char * labelchosen = new QLabel(this); labelchosen->setText(_("Selected keys")); - labelchosen->setMinimumSize(labelchosen->sizeHint()); + setSizeHint(labelchosen); labelchosen->setMaximumSize(labelchosen->sizeHint()); chosen = new QListBox(this); labelkeys = new QLabel(this); labelkeys->setText(_("Available keys")); - labelkeys->setMinimumSize(labelkeys->sizeHint()); + setSizeHint(labelkeys); labelkeys->setMaximumSize(labelkeys->sizeHint()); keys = new QListBox(this); labelentry = new QLabel(this); labelentry->setText(_("Reference entry")); - labelentry->setMinimumSize(labelentry->sizeHint()); + setSizeHint(labelentry); labelentry->setMaximumSize(labelentry->sizeHint()); after = new QLineEdit(this); - after->setMinimumSize(after->sizeHint()); + setSizeHint(after); entry = new QMultiLineEdit(this); entry->setReadOnly(true); @@ -53,39 +59,39 @@ CitationDialog::CitationDialog(FormCitation *form, QWidget *parent, const char * labelafter = new QLabel(this); labelafter->setText(_("Text after")); labelafter->setMargin(5); - labelafter->setMinimumSize(labelafter->sizeHint()); + setSizeHint(labelafter); labelafter->setMaximumSize(labelafter->sizeHint()); /* FIXME: icons */ add = new QPushButton(this); add->setText(_("&Add")); - add->setMinimumSize(add->sizeHint()); + setSizeHint(add); add->setMaximumSize(add->sizeHint()); up = new QPushButton(this); up->setText(_("&Up")); - up->setMinimumSize(up->sizeHint()); + setSizeHint(up); up->setMaximumSize(up->sizeHint()); down = new QPushButton(this); down->setText(_("&Down")); - down->setMinimumSize(down->sizeHint()); + setSizeHint(down); down->setMaximumSize(down->sizeHint()); remove = new QPushButton(this); remove->setText(_("&Remove")); - remove->setMinimumSize(remove->sizeHint()); + setSizeHint(remove); remove->setMaximumSize(remove->sizeHint()); buttonOk = new QPushButton(this); buttonOk->setText(_("&OK")); buttonOk->setDefault(true); - buttonOk->setMinimumSize(buttonOk->sizeHint()); + setSizeHint(buttonOk); buttonOk->setMaximumSize(buttonOk->sizeHint()); buttonCancel = new QPushButton(this); buttonCancel->setText(_("&Cancel")); - buttonCancel->setMinimumSize(buttonCancel->sizeHint()); + setSizeHint(buttonCancel); buttonCancel->setMaximumSize(buttonCancel->sizeHint()); // tooltips @@ -161,6 +167,8 @@ CitationDialog::CitationDialog(FormCitation *form, QWidget *parent, const char * connect(remove, SIGNAL(clicked()), this, SLOT(remove_adaptor())); connect(buttonOk, SIGNAL(clicked()), this, SLOT(apply_adaptor())); connect(buttonCancel, SIGNAL(clicked()), this, SLOT(close_adaptor())); + + resize(sizeHint()); } CitationDialog::~CitationDialog() diff --git a/src/frontends/kde/citationdlg.h b/src/frontends/kde/citationdlg.h index 7a5ee353d0..5e1e00b1e8 100644 --- a/src/frontends/kde/citationdlg.h +++ b/src/frontends/kde/citationdlg.h @@ -22,7 +22,6 @@ // to connect apply() and hide() #include "FormCitation.h" -#include #include #include #include @@ -31,7 +30,7 @@ #include #include -class CitationDialog : public QDialog { +class CitationDialog : public QWidget { Q_OBJECT public: CitationDialog(FormCitation *form, QWidget *parent=0, const char *name=0, diff --git a/src/frontends/kde/dlg/Makefile.am b/src/frontends/kde/dlg/Makefile.am index 042c655d4f..bbd13a82dc 100644 --- a/src/frontends/kde/dlg/Makefile.am +++ b/src/frontends/kde/dlg/Makefile.am @@ -9,6 +9,18 @@ INCLUDES = -I${top_srcdir}/src/ -I${top_srcdir}/src/frontends/ \ # generated by qtarch GENSOURCES = copyrightdlgdata.C \ copyrightdlgdata.h \ + docdlgdata.C \ + docdlgdata.h \ + docsettingsdlgdata.C \ + docsettingsdlgdata.h \ + docgeometrydlgdata.C \ + docgeometrydlgdata.h \ + doclanguagedlgdata.C \ + doclanguagedlgdata.h \ + docextradlgdata.C \ + docextradlgdata.h \ + docbulletsdlgdata.C \ + docbulletsdlgadat.h \ indexdlgdata.C \ indexdlgdata.h \ paradlgdata.C \ @@ -35,9 +47,19 @@ libkdedlg_la_SOURCES = \ emptytable.h \ tabstack.C \ tabstack.h \ + lengthentry.C \ + lengthentry.h \ + helpers.h \ + helpers.C \ $(GENSOURCES) moc/copyrightdlgdata_moc.C: copyrightdlgdata.C copyrightdlgdata.h +moc/docdlgdata_moc.C: docdlgdata.C docdlgdata.h +moc/docsettingsdlgdata_moc.C: docsettingsdlgdata.C docsettingsdlgdata.h +moc/docgeometrydlgdata_moc.C: docgeometrydlgdata.C docgeometrydlgdata.h +moc/doclanguagedlgdata_moc.C: doclanguagedlgdata.C doclanguagedlgdata.h +moc/docextradlgdata_moc.C: docextradlgdata.C docextradlgdata.h +moc/docbulletsdlgdata_moc.C: docbulletsdlgdata.C docbulletsdlgdata.h moc/emptytable_moc.C: emptytable.C emptytable.h moc/indexdlgdata_moc.C: indexdlgdata.C indexdlgdata.h moc/paradlgdata_moc.C: paradlgdata.C paradlgdata.h @@ -48,3 +70,4 @@ moc/paraextradlgdata_moc.C: paraextradlgdata.C paraextradlgdata.h moc/printdlgdata_moc.C: printdlgdata.C printdlgdata.h moc/tabcreatedlgdata_moc.C: tabcreatedlgdata.C tabcreatedlgdata.h moc/tabstack_moc.C: tabstack.C tabstack.h +moc/lengthentry_moc.C: lengthentry.C lengthentry.h diff --git a/src/frontends/kde/dlg/copyrightdlgdata.C b/src/frontends/kde/dlg/copyrightdlgdata.C index 00e545dba4..efc7de1e29 100644 --- a/src/frontends/kde/dlg/copyrightdlgdata.C +++ b/src/frontends/kde/dlg/copyrightdlgdata.C @@ -3,7 +3,7 @@ --- Qt Architect 1.4-6 generated file --- File: copyrightdlgdata.C - Last generated: Mon Dec 4 18:21:50 2000 + Last generated: Wed Jan 24 06:43:16 2001 DO NOT EDIT!!! This file will be automatically regenerated by qtarch. All changes will be lost. @@ -58,7 +58,7 @@ CopyrightDialogData::CopyrightDialogData qtarch_Label_2->setLineWidth( 1 ); qtarch_Label_2->setMidLineWidth( 0 ); qtarch_Label_2->QFrame::setMargin( 1 ); - qtarch_Label_2->setText( _("LyX is Copyright (C) 1995 by Matthias Ettrich, \n1995-2000 LyX Team") ); + qtarch_Label_2->setText( _("LyX is Copyright (C) 1995 by Matthias Ettrich, \n1995-2001 LyX Team") ); qtarch_Label_2->setAlignment( 1316 ); qtarch_Label_2->setMargin( -1 ); diff --git a/src/frontends/kde/dlg/copyrightdlgdata.h b/src/frontends/kde/dlg/copyrightdlgdata.h index 6e85feec08..07e12749d1 100644 --- a/src/frontends/kde/dlg/copyrightdlgdata.h +++ b/src/frontends/kde/dlg/copyrightdlgdata.h @@ -3,7 +3,7 @@ --- Qt Architect 1.4-6 generated file --- File: copyrightdlgdata.h - Last generated: Mon Dec 4 18:21:50 2000 + Last generated: Wed Jan 24 06:43:16 2001 DO NOT EDIT!!! This file will be automatically regenerated by qtarch. All changes will be lost. diff --git a/src/frontends/kde/dlg/dialogs/copyright.dlg b/src/frontends/kde/dlg/dialogs/copyright.dlg index 7f8477c1d1..0d2f8c62d7 100644 --- a/src/frontends/kde/dlg/dialogs/copyright.dlg +++ b/src/frontends/kde/dlg/dialogs/copyright.dlg @@ -47,7 +47,7 @@ PushButton { PalettePropagation {NoChildren} } Label { - Text {LyX is Copyright (C) 1995 by Matthias Ettrich, \n1995-2000 LyX Team} + Text {LyX is Copyright (C) 1995 by Matthias Ettrich, \n1995-2001 LyX Team} Alignment {1316} AutoResize {false} Margin {-1} diff --git a/src/frontends/kde/dlg/dialogs/doc.dlg b/src/frontends/kde/dlg/dialogs/doc.dlg new file mode 100644 index 0000000000..d1aa72accb --- /dev/null +++ b/src/frontends/kde/dlg/dialogs/doc.dlg @@ -0,0 +1,224 @@ +DlgEdit:v1.2:Dialog: +Dialog { + ClassHeader {} + ClassSource {} + ClassName {DocDialog} + DataHeader {docdlgdata.h} + DataSource {docdlgdata.C} + DataName {DocDialogData} + WindowBaseClass {QWidget} + UseGetText {true} + WindowFlags {0} +} +WidgetLayout { +InitialPos {-1 -1} +Size {640 615} +MinSize {0 0} +MaxSize {32767 32767} +Grid {5} + +PushButton { + ToggleButton {false} + Default {true} + AutoDefault {false} + IsMenuButton {false} + Text {&OK} + AutoRepeat {false} + AutoResize {false} + Rect {73 555 69 55} + Name {OK} + Variable {ok} + Signal {[Protected] clicked --> ok_adaptor ()} + 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} +} +User { + UserClassHeader {tabstack.h} + UserClassName {TabStack} + Rect {5 5 630 545} + Name {User_1} + Variable {tabstack} + 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} +} +PushButton { + ToggleButton {false} + Default {false} + AutoDefault {false} + IsMenuButton {false} + Text {&Apply} + AutoRepeat {false} + AutoResize {false} + Rect {215 555 68 55} + Name {apply} + Variable {apply} + Signal {[Protected] clicked --> apply_adaptor ()} + MinimumSize {0 0} + MaximumSize {32767 32767} + BackgroundPixmap {} + UseBackgroundPixmap {false} + AdjustSize {false} + ReadPixmapFromData {false} + DataVarName {} + DataLenName {} + minWidthSizeHint {true} + minHeightSizeHint {true} + maxWidthSizeHint {true} + maxHeightSizeHint {true} + FocusPolicy {TabFocus} + BackgroundMode {PaletteBackground} + FontPropagation {NoChildren} + PalettePropagation {NoChildren} +} +PushButton { + ToggleButton {false} + Default {false} + AutoDefault {false} + IsMenuButton {false} + Text {&Restore} + AutoRepeat {false} + AutoResize {false} + Rect {357 555 68 55} + Name {restore} + Variable {restore} + Signal {[Protected] clicked --> restore_adaptor ()} + MinimumSize {0 0} + MaximumSize {32767 32767} + BackgroundPixmap {} + UseBackgroundPixmap {false} + AdjustSize {false} + ReadPixmapFromData {false} + DataVarName {} + DataLenName {} + minWidthSizeHint {true} + minHeightSizeHint {true} + maxWidthSizeHint {true} + maxHeightSizeHint {true} + FocusPolicy {TabFocus} + BackgroundMode {PaletteBackground} + FontPropagation {NoChildren} + PalettePropagation {NoChildren} +} +PushButton { + ToggleButton {false} + Default {false} + AutoDefault {false} + IsMenuButton {false} + Text {&Cancel} + AutoRepeat {false} + AutoResize {false} + Rect {498 555 69 55} + Name {Cancel} + Variable {cancel} + Signal {[Protected] clicked --> cancel_adaptor ()} + 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} +} + +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 {10} +} +Layout_Widget-1.1.1{ + Widget {User_1} + BoxStretch {1} + Alignment {36} +} +Box_Layout-1.2{ + Direction {LeftToRight} + Border {5} + AutoBorder {5} + Name {} + Strut {0} + Stretch {1} +} +Box_Stretch-1.2.1{ + Stretch {1} +} +Layout_Widget-1.2.2{ + Widget {OK} + BoxStretch {1} + Alignment {36} +} +Box_Stretch-1.2.3{ + Stretch {1} +} +Layout_Widget-1.2.4{ + Widget {apply} + BoxStretch {1} + Alignment {36} +} +Box_Stretch-1.2.5{ + Stretch {1} +} +Layout_Widget-1.2.6{ + Widget {restore} + BoxStretch {1} + Alignment {36} +} +Box_Stretch-1.2.7{ + Stretch {1} +} +Layout_Widget-1.2.8{ + Widget {Cancel} + BoxStretch {1} + Alignment {36} +} +Box_Stretch-1.2.9{ + Stretch {1} +} +} diff --git a/src/frontends/kde/dlg/dialogs/docbullets.dlg b/src/frontends/kde/dlg/dialogs/docbullets.dlg new file mode 100644 index 0000000000..6a91d313bb --- /dev/null +++ b/src/frontends/kde/dlg/dialogs/docbullets.dlg @@ -0,0 +1,21 @@ +DlgEdit:v1.2:Dialog: +Dialog { + ClassHeader {} + ClassSource {} + ClassName {} + DataHeader {docbulletsdlgdata.h} + DataSource {docbulletsdlgdata.C} + DataName {DocBulletsDialogData} + WindowBaseClass {QWidget} + UseGetText {true} + WindowFlags {0} +} +WidgetLayout { +InitialPos {-1 -1} +Size {545 460} +MinSize {0 0} +MaxSize {32767 32767} +Grid {5} + + +} diff --git a/src/frontends/kde/dlg/dialogs/docextra.dlg b/src/frontends/kde/dlg/dialogs/docextra.dlg new file mode 100644 index 0000000000..6e572638a1 --- /dev/null +++ b/src/frontends/kde/dlg/dialogs/docextra.dlg @@ -0,0 +1,365 @@ +DlgEdit:v1.2:Dialog: +Dialog { + ClassHeader {} + ClassSource {} + ClassName {} + DataHeader {docextradlgdata.h} + DataSource {docextradlgdata.C} + DataName {DocExtraDialogData} + WindowBaseClass {QWidget} + UseGetText {true} + WindowFlags {0} +} +WidgetLayout { +InitialPos {-1 -1} +Size {545 460} +MinSize {0 0} +MaxSize {32767 32767} +Grid {5} + +Label { + Text {Float placement : (FIXME)} + Alignment {289} + AutoResize {false} + Margin {-1} + Style {0} + LineWidth {1} + MidLineWidth {0} + FrameMargin {0} + Rect {5 5 105 86} + Name {labelFloatplacement} + 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 {225 5 205 86} + Name {floatplacement} + Variable {floatplacement} + 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 {Section number depth :} + Alignment {289} + AutoResize {false} + Margin {-1} + Style {0} + LineWidth {1} + MidLineWidth {0} + FrameMargin {0} + Rect {5 96 105 86} + Name {labelsectiondepth} + 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 {Table of Contents depth :} + Alignment {289} + AutoResize {false} + Margin {-1} + Style {0} + LineWidth {1} + MidLineWidth {0} + FrameMargin {0} + Rect {5 187 105 86} + Name {labeltocdepth} + 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 {PostScript driver :} + Alignment {289} + AutoResize {false} + Margin {-1} + Style {0} + LineWidth {1} + MidLineWidth {0} + FrameMargin {0} + Rect {5 278 105 86} + Name {labelPSDriver} + 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} +} +CheckBox { + Checked {false} + Text {Use AMS Math} + AutoRepeat {false} + AutoResize {false} + Rect {5 369 105 86} + Name {amsmath} + Variable {amsmath} + 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} +} +SpinBox { + MinValue {-2} + MaxValue {5} + Step {1} + Prefix {} + Suffix {} + SpecialValue {} + Wrapping {false} + Style {51} + LineWidth {2} + MidLineWidth {0} + FrameMargin {0} + Rect {225 96 205 86} + Name {sectiondepth} + Variable {sectiondepth} + 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 {NoChildren} + PalettePropagation {NoChildren} +} +SpinBox { + MinValue {-1} + MaxValue {5} + Step {1} + Prefix {} + Suffix {} + SpecialValue {} + Wrapping {false} + Style {51} + LineWidth {2} + MidLineWidth {0} + FrameMargin {0} + Rect {225 187 205 86} + Name {tocdepth} + Variable {tocdepth} + 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 {NoChildren} + PalettePropagation {NoChildren} +} +ComboBox { + Style {ReadOnly} + SizeLimit {10} + Policy {AtBottom} + AutoResize {true} + MaxCount {2147483647} + AutoCompletion {false} + Rect {225 278 205 86} + Name {psdriver} + Variable {psdriver} + 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} +} + +Grid_Layout-1{ + Border {5} + AutoBorder {5} + Name {} + ColumnInfo {5 1} + ColumnInfo {5 1} + ColumnInfo {5 2} + ColumnInfo {5 1} + BoxStretch {1} +} +Grid_Row-1.1{ + Stretch {1} + Spacing {0} +} +Layout_Widget-1.1.1{ + Widget {labelFloatplacement} + BoxStretch {1} + Alignment {33} +} +Grid_Spacer-1.1.2{ +} +Layout_Widget-1.1.3{ + Widget {floatplacement} + BoxStretch {1} + Alignment {33} +} +Grid_Spacer-1.1.4{ +} +Grid_Row-1.2{ + Stretch {1} + Spacing {0} +} +Layout_Widget-1.2.1{ + Widget {labelsectiondepth} + BoxStretch {1} + Alignment {33} +} +Grid_Spacer-1.2.2{ +} +Layout_Widget-1.2.3{ + Widget {sectiondepth} + BoxStretch {1} + Alignment {33} +} +Grid_Spacer-1.2.4{ +} +Grid_Row-1.3{ + Stretch {1} + Spacing {0} +} +Layout_Widget-1.3.1{ + Widget {labeltocdepth} + BoxStretch {1} + Alignment {33} +} +Grid_Spacer-1.3.2{ +} +Layout_Widget-1.3.3{ + Widget {tocdepth} + BoxStretch {1} + Alignment {33} +} +Grid_Spacer-1.3.4{ +} +Grid_Row-1.4{ + Stretch {1} + Spacing {0} +} +Layout_Widget-1.4.1{ + Widget {labelPSDriver} + BoxStretch {1} + Alignment {33} +} +Grid_Spacer-1.4.2{ +} +Layout_Widget-1.4.3{ + Widget {psdriver} + BoxStretch {1} + Alignment {33} +} +Grid_Spacer-1.4.4{ +} +Grid_Row-1.5{ + Stretch {1} + Spacing {0} +} +Layout_Widget-1.5.1{ + Widget {amsmath} + BoxStretch {1} + Alignment {33} +} +} diff --git a/src/frontends/kde/dlg/dialogs/docgeometry.dlg b/src/frontends/kde/dlg/dialogs/docgeometry.dlg new file mode 100644 index 0000000000..066f1d8ee0 --- /dev/null +++ b/src/frontends/kde/dlg/dialogs/docgeometry.dlg @@ -0,0 +1,1144 @@ +DlgEdit:v1.2:Dialog: +Dialog { + ClassHeader {} + ClassSource {} + ClassName {} + DataHeader {docgeometrydlgdata.h} + DataSource {docgeometrydlgdata.C} + DataName {DocGeometryDialogData} + WindowBaseClass {QWidget} + UseGetText {true} + WindowFlags {0} +} +WidgetLayout { +InitialPos {-1 -1} +Size {605 655} +MinSize {0 0} +MaxSize {32767 32767} +Grid {5} + +GroupBox { + Title {Headers and Footers} + Alignment {Left} + Style {49} + LineWidth {1} + MidLineWidth {0} + FrameMargin {0} + Rect {305 5 295 325} + Name {headfootGroup} + MinimumSize {75 40} + MaximumSize {32767 32767} + BackgroundPixmap {} + UseBackgroundPixmap {false} + AdjustSize {false} + ReadPixmapFromData {false} + DataVarName {} + DataLenName {} + minWidthSizeHint {false} + minHeightSizeHint {false} + maxWidthSizeHint {false} + maxHeightSizeHint {false} + FocusPolicy {NoFocus} + BackgroundMode {PaletteBackground} + FontPropagation {NoChildren} + PalettePropagation {NoChildren} +} +GroupBox { + Title {Margins} + Alignment {Left} + Style {49} + LineWidth {1} + MidLineWidth {0} + FrameMargin {0} + Rect {5 335 466 315} + Name {marginsGroup} + MinimumSize {10 17} + MaximumSize {32767 32767} + BackgroundPixmap {} + UseBackgroundPixmap {false} + AdjustSize {false} + ReadPixmapFromData {false} + DataVarName {} + DataLenName {} + minWidthSizeHint {false} + minHeightSizeHint {false} + maxWidthSizeHint {false} + maxHeightSizeHint {false} + FocusPolicy {NoFocus} + BackgroundMode {PaletteBackground} + FontPropagation {NoChildren} + PalettePropagation {NoChildren} +} +GroupBox { + Title {Paper} + Alignment {Left} + Style {49} + LineWidth {1} + MidLineWidth {0} + FrameMargin {0} + Rect {5 5 295 325} + Name {paperGroup} + MinimumSize {75 35} + MaximumSize {32767 32767} + BackgroundPixmap {} + UseBackgroundPixmap {false} + AdjustSize {false} + ReadPixmapFromData {false} + DataVarName {} + DataLenName {} + minWidthSizeHint {false} + minHeightSizeHint {false} + maxWidthSizeHint {false} + maxHeightSizeHint {false} + FocusPolicy {NoFocus} + BackgroundMode {PaletteBackground} + FontPropagation {NoChildren} + PalettePropagation {NoChildren} +} +ButtonGroup { + Exclusive {true} + Title {Orientation} + Alignment {Left} + Style {49} + LineWidth {1} + MidLineWidth {0} + FrameMargin {0} + Rect {476 335 124 315} + Name {orientation} + MinimumSize {10 30} + 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 {Paper size :} + Alignment {0} + AutoResize {false} + Margin {-1} + Style {0} + LineWidth {1} + MidLineWidth {0} + FrameMargin {0} + Rect {10 25 1 35} + Name {labelPapersize} + 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 {30} + Policy {AtBottom} + AutoResize {true} + MaxCount {2147483647} + AutoCompletion {false} + Rect {108 25 94 35} + Name {papersize} + Variable {papersize} + Signal {[Protected] highlighted --> papersizeChanged (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 {PaletteBackground} + FontPropagation {AllChildren} + PalettePropagation {AllChildren} +} +Label { + Text {Margins :} + Alignment {0} + AutoResize {false} + Margin {-1} + Style {0} + LineWidth {1} + MidLineWidth {0} + FrameMargin {0} + Rect {10 355 113 54} + Name {labelMargin} + 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 {30} + Policy {AtBottom} + AutoResize {true} + MaxCount {2147483647} + AutoCompletion {false} + Rect {241 355 112 54} + Name {margins} + Variable {margins} + Signal {[Protected] highlighted --> marginsChanged (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 {PaletteBackground} + FontPropagation {AllChildren} + PalettePropagation {AllChildren} +} +Label { + Text {Width :} + Alignment {0} + AutoResize {false} + Margin {-1} + Style {0} + LineWidth {1} + MidLineWidth {0} + FrameMargin {0} + Rect {10 100 1 35} + Name {labelWidth} + 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 {Height :} + Alignment {0} + AutoResize {false} + Margin {-1} + Style {0} + LineWidth {1} + MidLineWidth {0} + FrameMargin {0} + Rect {10 215 1 35} + Name {labelHeight} + 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 {Top :} + Alignment {0} + AutoResize {false} + Margin {-1} + Style {0} + LineWidth {1} + MidLineWidth {0} + FrameMargin {0} + Rect {61 468 87 41} + Name {labelTop} + 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 {Bottom :} + Alignment {0} + AutoResize {false} + Margin {-1} + Style {0} + LineWidth {1} + MidLineWidth {0} + FrameMargin {0} + Rect {61 514 87 40} + Name {labelBottom} + 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 {Left :} + Alignment {0} + AutoResize {false} + Margin {-1} + Style {0} + LineWidth {1} + MidLineWidth {0} + FrameMargin {0} + Rect {61 559 87 41} + Name {labelLeft} + 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 {Right :} + Alignment {0} + AutoResize {false} + Margin {-1} + Style {0} + LineWidth {1} + MidLineWidth {0} + FrameMargin {0} + Rect {61 605 87 40} + Name {labelRight} + MinimumSize {0 0} + MaximumSize {32767 32767} + BackgroundPixmap {} + UseBackgroundPixmap {false} + AdjustSize {false} + ReadPixmapFromData {false} + DataVarName {} + DataLenName {} + minWidthSizeHint {true} + minHeightSizeHint {true} + maxWidthSizeHint {true} + maxHeightSizeHint {true} + FocusPolicy {NoFocus} + BackgroundMode {PaletteBackground} + FontPropagation {NoChildren} + PalettePropagation {NoChildren} +} +RadioButton { + Checked {true} + Text {Portrait} + AutoRepeat {false} + AutoResize {false} + Rect {481 412 1 57} + Name {portrait} + Variable {portrait} + 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 {Landscape} + AutoRepeat {false} + AutoResize {false} + Rect {481 531 1 57} + Name {landscape} + Variable {landscape} + 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 {Header height :} + Alignment {0} + AutoResize {false} + Margin {-1} + Style {0} + LineWidth {1} + MidLineWidth {0} + FrameMargin {0} + Rect {310 53 1 27} + Name {labelheadheight} + 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 {Header separation :} + Alignment {0} + AutoResize {false} + Margin {-1} + Style {0} + LineWidth {1} + MidLineWidth {0} + FrameMargin {0} + Rect {310 145 1 28} + Name {labelHeadsep} + 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 {Footer skip :} + Alignment {0} + AutoResize {false} + Margin {-1} + Style {0} + LineWidth {1} + MidLineWidth {0} + FrameMargin {0} + Rect {310 238 1 27} + Name {labelFootskip} + 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} +} +User { + UserClassHeader {lengthentry.h} + UserClassName {LengthEntry} + Rect {10 140 285 35} + Name {width} + Variable {width} + MinimumSize {0 0} + MaximumSize {32767 32767} + BackgroundPixmap {} + UseBackgroundPixmap {false} + AdjustSize {false} + ReadPixmapFromData {false} + DataVarName {} + DataLenName {} + minWidthSizeHint {true} + minHeightSizeHint {true} + maxWidthSizeHint {false} + maxHeightSizeHint {true} + FocusPolicy {NoFocus} + BackgroundMode {PaletteBackground} + FontPropagation {NoChildren} + PalettePropagation {NoChildren} +} +User { + UserClassHeader {lengthentry.h} + UserClassName {LengthEntry} + Rect {10 255 285 35} + Name {height} + Variable {height} + MinimumSize {0 0} + MaximumSize {32767 32767} + BackgroundPixmap {} + UseBackgroundPixmap {false} + AdjustSize {false} + ReadPixmapFromData {false} + DataVarName {} + DataLenName {} + minWidthSizeHint {true} + minHeightSizeHint {true} + maxWidthSizeHint {false} + maxHeightSizeHint {true} + FocusPolicy {NoFocus} + BackgroundMode {PaletteBackground} + FontPropagation {NoChildren} + PalettePropagation {NoChildren} +} +User { + UserClassHeader {lengthentry.h} + UserClassName {LengthEntry} + Rect {204 468 211 41} + Name {top} + Variable {top} + MinimumSize {0 0} + MaximumSize {32767 32767} + BackgroundPixmap {} + UseBackgroundPixmap {false} + AdjustSize {false} + ReadPixmapFromData {false} + DataVarName {} + DataLenName {} + minWidthSizeHint {true} + minHeightSizeHint {true} + maxWidthSizeHint {false} + maxHeightSizeHint {true} + FocusPolicy {NoFocus} + BackgroundMode {PaletteBackground} + FontPropagation {NoChildren} + PalettePropagation {NoChildren} +} +User { + UserClassHeader {lengthentry.h} + UserClassName {LengthEntry} + Rect {204 514 211 40} + Name {bottom} + Variable {bottom} + MinimumSize {0 0} + MaximumSize {32767 32767} + BackgroundPixmap {} + UseBackgroundPixmap {false} + AdjustSize {false} + ReadPixmapFromData {false} + DataVarName {} + DataLenName {} + minWidthSizeHint {true} + minHeightSizeHint {true} + maxWidthSizeHint {false} + maxHeightSizeHint {true} + FocusPolicy {NoFocus} + BackgroundMode {PaletteBackground} + FontPropagation {NoChildren} + PalettePropagation {NoChildren} +} +User { + UserClassHeader {lengthentry.h} + UserClassName {LengthEntry} + Rect {204 559 211 41} + Name {left} + Variable {left} + MinimumSize {0 0} + MaximumSize {32767 32767} + BackgroundPixmap {} + UseBackgroundPixmap {false} + AdjustSize {false} + ReadPixmapFromData {false} + DataVarName {} + DataLenName {} + minWidthSizeHint {true} + minHeightSizeHint {true} + maxWidthSizeHint {false} + maxHeightSizeHint {true} + FocusPolicy {NoFocus} + BackgroundMode {PaletteBackground} + FontPropagation {NoChildren} + PalettePropagation {NoChildren} +} +User { + UserClassHeader {lengthentry.h} + UserClassName {LengthEntry} + Rect {310 85 285 28} + Name {headheight} + Variable {headheight} + MinimumSize {0 0} + MaximumSize {32767 32767} + BackgroundPixmap {} + UseBackgroundPixmap {false} + AdjustSize {false} + ReadPixmapFromData {false} + DataVarName {} + DataLenName {} + minWidthSizeHint {true} + minHeightSizeHint {true} + maxWidthSizeHint {false} + maxHeightSizeHint {true} + FocusPolicy {NoFocus} + BackgroundMode {PaletteBackground} + FontPropagation {NoChildren} + PalettePropagation {NoChildren} +} +User { + UserClassHeader {lengthentry.h} + UserClassName {LengthEntry} + Rect {310 178 285 27} + Name {headsep} + Variable {headsep} + MinimumSize {0 0} + MaximumSize {32767 32767} + BackgroundPixmap {} + UseBackgroundPixmap {false} + AdjustSize {false} + ReadPixmapFromData {false} + DataVarName {} + DataLenName {} + minWidthSizeHint {true} + minHeightSizeHint {true} + maxWidthSizeHint {false} + maxHeightSizeHint {true} + FocusPolicy {NoFocus} + BackgroundMode {PaletteBackground} + FontPropagation {NoChildren} + PalettePropagation {NoChildren} +} +User { + UserClassHeader {lengthentry.h} + UserClassName {LengthEntry} + Rect {310 270 285 28} + Name {footskip} + Variable {footskip} + MinimumSize {0 0} + MaximumSize {32767 32767} + BackgroundPixmap {} + UseBackgroundPixmap {false} + AdjustSize {false} + ReadPixmapFromData {false} + DataVarName {} + DataLenName {} + minWidthSizeHint {true} + minHeightSizeHint {true} + maxWidthSizeHint {false} + maxHeightSizeHint {true} + FocusPolicy {NoFocus} + BackgroundMode {PaletteBackground} + FontPropagation {NoChildren} + PalettePropagation {NoChildren} +} +User { + UserClassHeader {lengthentry.h} + UserClassName {LengthEntry} + Rect {204 605 211 40} + Name {right} + Variable {right} + MinimumSize {0 0} + MaximumSize {32767 32767} + BackgroundPixmap {} + UseBackgroundPixmap {false} + AdjustSize {false} + ReadPixmapFromData {false} + DataVarName {} + DataLenName {} + minWidthSizeHint {true} + minHeightSizeHint {true} + maxWidthSizeHint {false} + maxHeightSizeHint {true} + FocusPolicy {NoFocus} + BackgroundMode {PaletteBackground} + FontPropagation {NoChildren} + PalettePropagation {NoChildren} +} + +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 {1} +} +Layout_Widget-1.1.1{ + Widget {paperGroup} + 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_Layout-1.1.1.1.2{ + Direction {LeftToRight} + Border {5} + AutoBorder {5} + Name {} + Strut {0} + Stretch {1} +} +Layout_Widget-1.1.1.1.2.1{ + Widget {labelPapersize} + BoxStretch {0} + Alignment {33} +} +Box_Stretch-1.1.1.1.2.2{ + Stretch {1} +} +Layout_Widget-1.1.1.1.2.3{ + Widget {papersize} + BoxStretch {1} + Alignment {33} +} +Box_Stretch-1.1.1.1.2.4{ + Stretch {1} +} +Box_Stretch-1.1.1.1.3{ + Stretch {1} +} +Box_Layout-1.1.1.1.4{ + Direction {LeftToRight} + Border {5} + AutoBorder {5} + Name {} + Strut {0} + Stretch {1} +} +Layout_Widget-1.1.1.1.4.1{ + Widget {labelWidth} + BoxStretch {0} + Alignment {33} +} +Box_Stretch-1.1.1.1.4.2{ + Stretch {1} +} +Layout_Widget-1.1.1.1.5{ + Widget {width} + BoxStretch {1} + Alignment {33} +} +Box_Stretch-1.1.1.1.6{ + Stretch {1} +} +Box_Layout-1.1.1.1.7{ + Direction {LeftToRight} + Border {5} + AutoBorder {5} + Name {} + Strut {0} + Stretch {1} +} +Layout_Widget-1.1.1.1.7.1{ + Widget {labelHeight} + BoxStretch {0} + Alignment {33} +} +Box_Stretch-1.1.1.1.7.2{ + Stretch {1} +} +Layout_Widget-1.1.1.1.8{ + Widget {height} + BoxStretch {1} + Alignment {33} +} +Box_Stretch-1.1.1.1.9{ + Stretch {1} +} +Layout_Widget-1.1.2{ + Widget {headfootGroup} + BoxStretch {1} + Alignment {33} +} +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} +} +Box_Stretch-1.1.2.1.2{ + Stretch {1} +} +Box_Layout-1.1.2.1.3{ + Direction {LeftToRight} + Border {5} + AutoBorder {5} + Name {} + Strut {0} + Stretch {1} +} +Layout_Widget-1.1.2.1.3.1{ + Widget {labelheadheight} + BoxStretch {0} + Alignment {33} +} +Box_Stretch-1.1.2.1.3.2{ + Stretch {1} +} +Layout_Widget-1.1.2.1.4{ + Widget {headheight} + BoxStretch {1} + Alignment {33} +} +Box_Stretch-1.1.2.1.5{ + Stretch {1} +} +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 {labelHeadsep} + BoxStretch {0} + Alignment {33} +} +Box_Stretch-1.1.2.1.6.2{ + Stretch {1} +} +Layout_Widget-1.1.2.1.7{ + Widget {headsep} + BoxStretch {1} + Alignment {33} +} +Box_Stretch-1.1.2.1.8{ + Stretch {1} +} +Box_Layout-1.1.2.1.9{ + Direction {LeftToRight} + Border {5} + AutoBorder {5} + Name {} + Strut {0} + Stretch {1} +} +Layout_Widget-1.1.2.1.9.1{ + Widget {labelFootskip} + BoxStretch {0} + Alignment {33} +} +Box_Stretch-1.1.2.1.9.2{ + Stretch {1} +} +Layout_Widget-1.1.2.1.10{ + Widget {footskip} + BoxStretch {1} + Alignment {33} +} +Box_Stretch-1.1.2.1.11{ + Stretch {1} +} +Box_Layout-1.2{ + Direction {LeftToRight} + Border {5} + AutoBorder {5} + Name {} + Strut {0} + Stretch {1} +} +Layout_Widget-1.2.1{ + Widget {marginsGroup} + BoxStretch {4} + Alignment {33} +} +Box_Layout-1.2.1.1{ + Direction {TopToBottom} + Border {5} + AutoBorder {5} + Name {} + Strut {0} + Stretch {1} +} +Box_Spacing-1.2.1.1.1{ + Spacing {15} +} +Box_Layout-1.2.1.1.2{ + Direction {LeftToRight} + Border {5} + AutoBorder {5} + Name {} + Strut {0} + Stretch {1} +} +Layout_Widget-1.2.1.1.2.1{ + Widget {labelMargin} + BoxStretch {1} + Alignment {33} +} +Box_Stretch-1.2.1.1.2.2{ + Stretch {1} +} +Layout_Widget-1.2.1.1.2.3{ + Widget {margins} + BoxStretch {1} + Alignment {33} +} +Box_Stretch-1.2.1.1.2.4{ + Stretch {1} +} +Box_Stretch-1.2.1.1.3{ + Stretch {1} +} +Grid_Layout-1.2.1.1.4{ + Border {5} + AutoBorder {5} + Name {} + ColumnInfo {5 1} + ColumnInfo {5 2} + ColumnInfo {5 1} + ColumnInfo {5 5} + ColumnInfo {5 1} + BoxStretch {3} +} +Grid_Row-1.2.1.1.4.1{ + Stretch {1} + Spacing {0} +} +Grid_Spacer-1.2.1.1.4.1.1{ +} +Layout_Widget-1.2.1.1.4.1.2{ + Widget {labelTop} + BoxStretch {1} + Alignment {33} +} +Grid_Spacer-1.2.1.1.4.1.3{ +} +Layout_Widget-1.2.1.1.4.1.4{ + Widget {top} + BoxStretch {1} + Alignment {33} +} +Grid_Spacer-1.2.1.1.4.1.5{ +} +Grid_Row-1.2.1.1.4.2{ + Stretch {1} + Spacing {0} +} +Grid_Spacer-1.2.1.1.4.2.1{ +} +Layout_Widget-1.2.1.1.4.2.2{ + Widget {labelBottom} + BoxStretch {1} + Alignment {33} +} +Grid_Spacer-1.2.1.1.4.2.3{ +} +Layout_Widget-1.2.1.1.4.2.4{ + Widget {bottom} + BoxStretch {1} + Alignment {33} +} +Grid_Spacer-1.2.1.1.4.2.5{ +} +Grid_Row-1.2.1.1.4.3{ + Stretch {1} + Spacing {0} +} +Grid_Spacer-1.2.1.1.4.3.1{ +} +Layout_Widget-1.2.1.1.4.3.2{ + Widget {labelLeft} + BoxStretch {1} + Alignment {33} +} +Grid_Spacer-1.2.1.1.4.3.3{ +} +Layout_Widget-1.2.1.1.4.3.4{ + Widget {left} + BoxStretch {1} + Alignment {33} +} +Grid_Spacer-1.2.1.1.4.3.5{ +} +Grid_Row-1.2.1.1.4.4{ + Stretch {1} + Spacing {0} +} +Grid_Spacer-1.2.1.1.4.4.1{ +} +Layout_Widget-1.2.1.1.4.4.2{ + Widget {labelRight} + BoxStretch {1} + Alignment {33} +} +Grid_Spacer-1.2.1.1.4.4.3{ +} +Layout_Widget-1.2.1.1.4.4.4{ + Widget {right} + BoxStretch {1} + Alignment {33} +} +Grid_Spacer-1.2.1.1.4.4.5{ +} +Layout_Widget-1.2.2{ + Widget {orientation} + BoxStretch {1} + Alignment {33} +} +Box_Layout-1.2.2.1{ + Direction {TopToBottom} + Border {5} + AutoBorder {5} + Name {} + Strut {0} + Stretch {1} +} +Box_Spacing-1.2.2.1.1{ + Spacing {15} +} +Box_Stretch-1.2.2.1.2{ + Stretch {1} +} +Box_Layout-1.2.2.1.3{ + Direction {LeftToRight} + Border {5} + AutoBorder {5} + Name {} + Strut {0} + Stretch {1} +} +Layout_Widget-1.2.2.1.3.1{ + Widget {portrait} + BoxStretch {0} + Alignment {33} +} +Box_Stretch-1.2.2.1.3.2{ + Stretch {1} +} +Box_Stretch-1.2.2.1.4{ + Stretch {1} +} +Box_Layout-1.2.2.1.5{ + Direction {LeftToRight} + Border {5} + AutoBorder {5} + Name {} + Strut {0} + Stretch {1} +} +Layout_Widget-1.2.2.1.5.1{ + Widget {landscape} + BoxStretch {0} + Alignment {33} +} +Box_Stretch-1.2.2.1.5.2{ + Stretch {1} +} +Box_Stretch-1.2.2.1.6{ + Stretch {1} +} +} diff --git a/src/frontends/kde/dlg/dialogs/doclanguage.dlg b/src/frontends/kde/dlg/dialogs/doclanguage.dlg new file mode 100644 index 0000000000..844b66fe5b --- /dev/null +++ b/src/frontends/kde/dlg/dialogs/doclanguage.dlg @@ -0,0 +1,250 @@ +DlgEdit:v1.2:Dialog: +Dialog { + ClassHeader {} + ClassSource {} + ClassName {} + DataHeader {doclanguagedlgdata.h} + DataSource {doclanguagedlgdata.C} + DataName {DocLanguageDialogData} + WindowBaseClass {QWidget} + UseGetText {true} + WindowFlags {0} +} +WidgetLayout { +InitialPos {-1 -1} +Size {545 460} +MinSize {0 0} +MaxSize {32767 32767} +Grid {5} + +Label { + Text {Language :} + Alignment {290} + AutoResize {false} + Margin {-1} + Style {0} + LineWidth {1} + MidLineWidth {0} + FrameMargin {0} + Rect {5 5 130 147} + Name {labelLanguage} + 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 {30} + Policy {AtBottom} + AutoResize {true} + MaxCount {2147483647} + AutoCompletion {false} + Rect {275 5 130 147} + Name {language} + Variable {language} + 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 {Encoding :} + Alignment {290} + AutoResize {false} + Margin {-1} + Style {0} + LineWidth {1} + MidLineWidth {0} + FrameMargin {0} + Rect {5 157 130 146} + Name {labelEncoding} + 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 {30} + Policy {AtBottom} + AutoResize {true} + MaxCount {2147483647} + AutoCompletion {false} + Rect {275 157 130 146} + Name {encoding} + Variable {encoding} + 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 {Quote style :} + Alignment {290} + AutoResize {false} + Margin {-1} + Style {0} + LineWidth {1} + MidLineWidth {0} + FrameMargin {0} + Rect {5 308 130 147} + Name {labelQuotes} + 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 {30} + Policy {AtBottom} + AutoResize {true} + MaxCount {2147483647} + AutoCompletion {false} + Rect {275 308 130 147} + Name {quotes} + Variable {quotes} + 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} +} + +Grid_Layout-1{ + Border {5} + AutoBorder {5} + Name {} + ColumnInfo {5 1} + ColumnInfo {5 1} + ColumnInfo {5 1} + ColumnInfo {5 1} + BoxStretch {1} +} +Grid_Row-1.1{ + Stretch {1} + Spacing {0} +} +Layout_Widget-1.1.1{ + Widget {labelLanguage} + BoxStretch {1} + Alignment {33} +} +Grid_Spacer-1.1.2{ +} +Layout_Widget-1.1.3{ + Widget {language} + BoxStretch {1} + Alignment {33} +} +Grid_Spacer-1.1.4{ +} +Grid_Row-1.2{ + Stretch {1} + Spacing {0} +} +Layout_Widget-1.2.1{ + Widget {labelEncoding} + BoxStretch {1} + Alignment {33} +} +Grid_Spacer-1.2.2{ +} +Layout_Widget-1.2.3{ + Widget {encoding} + BoxStretch {1} + Alignment {33} +} +Grid_Spacer-1.2.4{ +} +Grid_Row-1.3{ + Stretch {1} + Spacing {0} +} +Layout_Widget-1.3.1{ + Widget {labelQuotes} + BoxStretch {1} + Alignment {33} +} +Grid_Spacer-1.3.2{ +} +Layout_Widget-1.3.3{ + Widget {quotes} + BoxStretch {1} + Alignment {33} +} +Grid_Spacer-1.3.4{ +} +} diff --git a/src/frontends/kde/dlg/dialogs/docsettings.dlg b/src/frontends/kde/dlg/dialogs/docsettings.dlg new file mode 100644 index 0000000000..f56c356082 --- /dev/null +++ b/src/frontends/kde/dlg/dialogs/docsettings.dlg @@ -0,0 +1,744 @@ +DlgEdit:v1.2:Dialog: +Dialog { + ClassHeader {} + ClassSource {} + ClassName {} + DataHeader {docsettingsdlgdata.h} + DataSource {docsettingsdlgdata.C} + DataName {DocSettingsDialogData} + WindowBaseClass {QWidget} + UseGetText {true} + WindowFlags {0} +} +WidgetLayout { +InitialPos {0 0} +Size {455 505} +MinSize {0 0} +MaxSize {32767 32767} +Grid {5} + +Label { + Text {Document class :} + Alignment {289} + AutoResize {false} + Margin {-1} + Style {0} + LineWidth {1} + MidLineWidth {0} + FrameMargin {0} + Rect {95 5 85 23} + Name {labelClass} + 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 {30} + Policy {AtBottom} + AutoResize {false} + MaxCount {2147483647} + AutoCompletion {false} + Rect {275 5 85 23} + Name {docclass} + Variable {docclass} + Signal {[Protected] highlighted --> classChanged (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 {PaletteBackground} + FontPropagation {AllChildren} + PalettePropagation {AllChildren} +} +Label { + Text {Page style :} + Alignment {289} + AutoResize {false} + Margin {-1} + Style {0} + LineWidth {1} + MidLineWidth {0} + FrameMargin {0} + Rect {95 33 85 23} + Name {labelPagestyle} + 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 {Font family :} + Alignment {289} + AutoResize {false} + Margin {-1} + Style {0} + LineWidth {1} + MidLineWidth {0} + FrameMargin {0} + Rect {95 61 85 22} + Name {labelFont} + 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 {Font size :} + Alignment {289} + AutoResize {false} + Margin {-1} + Style {0} + LineWidth {1} + MidLineWidth {0} + FrameMargin {0} + Rect {95 88 85 23} + Name {labelFontSize} + 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 {30} + Policy {AtBottom} + AutoResize {false} + MaxCount {2147483647} + AutoCompletion {false} + Rect {275 33 85 23} + Name {pagestyle} + Variable {pagestyle} + 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 {30} + Policy {AtBottom} + AutoResize {false} + MaxCount {2147483647} + AutoCompletion {false} + Rect {275 61 85 22} + Name {font} + Variable {font} + 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 {30} + Policy {AtBottom} + AutoResize {false} + MaxCount {2147483647} + AutoCompletion {false} + Rect {275 88 85 23} + Name {fontsize} + Variable {fontsize} + 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 {Two-sided} + AutoRepeat {false} + AutoResize {false} + Rect {93 116 88 91} + Name {sides} + Variable {sides} + 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 {Two column pages} + AutoRepeat {false} + AutoResize {false} + Rect {274 116 88 91} + Name {columns} + Variable {columns} + 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 {Skip separation (FIXME)} + AutoRepeat {false} + AutoResize {false} + Rect {153 212 149 91} + Name {separation} + Variable {separation} + 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 {Inter-line spacing :} + Alignment {289} + AutoResize {false} + Margin {-1} + Style {0} + LineWidth {1} + MidLineWidth {0} + FrameMargin {0} + Rect {5 308 145 46} + Name {labelSpacing} + 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 {30} + Policy {AtBottom} + AutoResize {false} + MaxCount {2147483647} + AutoCompletion {false} + Rect {155 308 215 46} + Name {linespacing} + Variable {linespacing} + 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 {Default skip spacing :} + Alignment {289} + AutoResize {false} + Margin {-1} + Style {0} + LineWidth {1} + MidLineWidth {0} + FrameMargin {0} + Rect {5 359 145 45} + Name {labelSkip} + 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 {30} + Policy {AtBottom} + AutoResize {false} + MaxCount {2147483647} + AutoCompletion {false} + Rect {155 359 215 45} + Name {skipspacing} + Variable {skipspacing} + 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} +} +LineEdit { + Text {} + EchoMode {Normal} + MaxLength {32767} + FrameShown {true} + Rect {230 409 220 91} + Name {extraoptions} + Variable {extraoptions} + 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 {Extra options :} + Alignment {289} + AutoResize {false} + Margin {-1} + Style {0} + LineWidth {1} + MidLineWidth {0} + FrameMargin {0} + Rect {5 409 220 91} + Name {labelExtraoptions} + MinimumSize {0 0} + MaximumSize {32767 32767} + BackgroundPixmap {} + UseBackgroundPixmap {false} + AdjustSize {false} + ReadPixmapFromData {false} + DataVarName {} + DataLenName {} + minWidthSizeHint {true} + minHeightSizeHint {true} + maxWidthSizeHint {true} + maxHeightSizeHint {true} + FocusPolicy {NoFocus} + BackgroundMode {PaletteBackground} + FontPropagation {NoChildren} + PalettePropagation {NoChildren} +} +KDE::KRestrictedLine { + ValidChars {0123456789.,} + Text {} + EchoMode {Normal} + MaxLength {32767} + FrameShown {true} + Rect {375 308 75 46} + Name {linespacingVal} + Variable {linespacingVal} + 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 {FIXME} + Alignment {289} + AutoResize {false} + Margin {-1} + Style {0} + LineWidth {1} + MidLineWidth {0} + FrameMargin {0} + Rect {375 359 75 45} + Name {FIXME} + 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} +} + +Box_Layout-1{ + Direction {TopToBottom} + Border {5} + AutoBorder {5} + Name {} + Strut {0} + Stretch {1} +} +Grid_Layout-1.1{ + Border {5} + AutoBorder {5} + Name {} + ColumnInfo {5 1} + ColumnInfo {5 1} + ColumnInfo {5 1} + ColumnInfo {5 1} + ColumnInfo {5 1} + BoxStretch {1} +} +Grid_Row-1.1.1{ + Stretch {1} + Spacing {0} +} +Grid_Spacer-1.1.1.1{ +} +Layout_Widget-1.1.1.2{ + Widget {labelClass} + BoxStretch {1} + Alignment {33} +} +Grid_Spacer-1.1.1.3{ +} +Layout_Widget-1.1.1.4{ + Widget {docclass} + BoxStretch {1} + Alignment {33} +} +Grid_Spacer-1.1.1.5{ +} +Grid_Row-1.1.2{ + Stretch {1} + Spacing {0} +} +Grid_Spacer-1.1.2.1{ +} +Layout_Widget-1.1.2.2{ + Widget {labelPagestyle} + BoxStretch {1} + Alignment {33} +} +Grid_Spacer-1.1.2.3{ +} +Layout_Widget-1.1.2.4{ + Widget {pagestyle} + BoxStretch {1} + Alignment {33} +} +Grid_Spacer-1.1.2.5{ +} +Grid_Row-1.1.3{ + Stretch {1} + Spacing {0} +} +Grid_Spacer-1.1.3.1{ +} +Layout_Widget-1.1.3.2{ + Widget {labelFont} + BoxStretch {1} + Alignment {33} +} +Grid_Spacer-1.1.3.3{ +} +Layout_Widget-1.1.3.4{ + Widget {font} + BoxStretch {1} + Alignment {33} +} +Grid_Spacer-1.1.3.5{ +} +Grid_Row-1.1.4{ + Stretch {1} + Spacing {0} +} +Grid_Spacer-1.1.4.1{ +} +Layout_Widget-1.1.4.2{ + Widget {labelFontSize} + BoxStretch {1} + Alignment {33} +} +Grid_Spacer-1.1.4.3{ +} +Layout_Widget-1.1.4.4{ + Widget {fontsize} + BoxStretch {1} + Alignment {33} +} +Grid_Spacer-1.1.4.5{ +} +Box_Layout-1.2{ + Direction {LeftToRight} + Border {5} + AutoBorder {5} + Name {} + Strut {0} + Stretch {1} +} +Box_Stretch-1.2.1{ + Stretch {1} +} +Layout_Widget-1.2.2{ + Widget {sides} + BoxStretch {1} + Alignment {33} +} +Box_Stretch-1.2.3{ + Stretch {1} +} +Layout_Widget-1.2.4{ + Widget {columns} + BoxStretch {1} + Alignment {33} +} +Box_Stretch-1.2.5{ + Stretch {1} +} +Box_Layout-1.3{ + Direction {LeftToRight} + Border {5} + AutoBorder {5} + Name {} + Strut {0} + Stretch {1} +} +Box_Stretch-1.3.1{ + Stretch {1} +} +Layout_Widget-1.3.2{ + Widget {separation} + BoxStretch {1} + Alignment {33} +} +Box_Stretch-1.3.3{ + Stretch {1} +} +Grid_Layout-1.4{ + Border {5} + AutoBorder {5} + Name {} + ColumnInfo {5 2} + ColumnInfo {5 3} + ColumnInfo {5 1} + BoxStretch {1} +} +Grid_Row-1.4.1{ + Stretch {1} + Spacing {0} +} +Layout_Widget-1.4.1.1{ + Widget {labelSpacing} + BoxStretch {1} + Alignment {33} +} +Layout_Widget-1.4.1.2{ + Widget {linespacing} + BoxStretch {1} + Alignment {33} +} +Layout_Widget-1.4.1.3{ + Widget {linespacingVal} + BoxStretch {1} + Alignment {33} +} +Grid_Row-1.4.2{ + Stretch {1} + Spacing {0} +} +Layout_Widget-1.4.2.1{ + Widget {labelSkip} + BoxStretch {1} + Alignment {33} +} +Layout_Widget-1.4.2.2{ + Widget {skipspacing} + BoxStretch {1} + Alignment {33} +} +Layout_Widget-1.4.2.3{ + Widget {FIXME} + BoxStretch {1} + Alignment {33} +} +Box_Layout-1.5{ + Direction {LeftToRight} + Border {5} + AutoBorder {5} + Name {} + Strut {0} + Stretch {1} +} +Layout_Widget-1.5.1{ + Widget {labelExtraoptions} + BoxStretch {1} + Alignment {36} +} +Layout_Widget-1.5.2{ + Widget {extraoptions} + BoxStretch {1} + Alignment {33} +} +} diff --git a/src/frontends/kde/dlg/dialogs/paraabove.dlg b/src/frontends/kde/dlg/dialogs/paraabove.dlg index f19619c4db..f96b89703a 100644 --- a/src/frontends/kde/dlg/dialogs/paraabove.dlg +++ b/src/frontends/kde/dlg/dialogs/paraabove.dlg @@ -12,7 +12,7 @@ Dialog { } WidgetLayout { InitialPos {-1 -1} -Size {315 290} +Size {465 435} MinSize {0 0} MaxSize {32767 32767} Grid {5} @@ -22,7 +22,7 @@ CheckBox { Text {Page break} AutoRepeat {false} AutoResize {false} - Rect {5 5 305 73} + Rect {5 5 228 67} Name {pagebreakabove} Variable {pagebreakabove} MinimumSize {0 0} @@ -47,7 +47,7 @@ CheckBox { Text {Keep space when at top of page} AutoRepeat {false} AutoResize {false} - Rect {5 83 305 73} + Rect {5 77 228 66} Name {keepabove} Variable {keepabove} MinimumSize {0 0} @@ -76,7 +76,7 @@ Label { LineWidth {1} MidLineWidth {0} FrameMargin {0} - Rect {5 161 100 36} + Rect {5 148 113 67} Name {abovelabel} MinimumSize {0 0} MaximumSize {32767 32767} @@ -102,7 +102,7 @@ ComboBox { AutoResize {false} MaxCount {2147483647} AutoCompletion {false} - Rect {110 161 200 36} + Rect {235 148 113 67} Name {spaceabove} Variable {spaceabove} Signal {[Protected] highlighted --> spaceaboveHighlighted (int)} @@ -132,7 +132,7 @@ Label { LineWidth {1} MidLineWidth {0} FrameMargin {0} - Rect {5 202 58 24} + Rect {61 220 96 67} Name {ValueLabel} MinimumSize {0 0} MaximumSize {32767 32767} @@ -160,7 +160,7 @@ Label { LineWidth {1} MidLineWidth {0} FrameMargin {0} - Rect {5 231 58 25} + Rect {61 292 96 66} Name {Label_14} MinimumSize {0 0} MaximumSize {32767 32767} @@ -188,7 +188,7 @@ Label { LineWidth {1} MidLineWidth {0} FrameMargin {0} - Rect {5 261 58 24} + Rect {61 363 96 67} Name {aboveminuslabel} MinimumSize {0 0} MaximumSize {32767 32767} @@ -207,13 +207,10 @@ Label { FontPropagation {NoChildren} PalettePropagation {NoChildren} } -KDE::KRestrictedLine { - ValidChars {0123456789.,} - Text {} - EchoMode {Normal} - MaxLength {8} - FrameShown {true} - Rect {68 202 3 24} +User { + UserClassHeader {lengthentry.h} + UserClassName {LengthEntry} + Rect {217 220 187 67} Name {spaceabovevalue} Variable {spaceabovevalue} MinimumSize {0 0} @@ -227,19 +224,16 @@ KDE::KRestrictedLine { minWidthSizeHint {true} minHeightSizeHint {true} maxWidthSizeHint {false} - maxHeightSizeHint {true} - FocusPolicy {StrongFocus} - BackgroundMode {PaletteBase} + maxHeightSizeHint {false} + FocusPolicy {NoFocus} + BackgroundMode {PaletteBackground} FontPropagation {NoChildren} PalettePropagation {NoChildren} } -KDE::KRestrictedLine { - ValidChars {0123456789.,} - Text {} - EchoMode {Normal} - MaxLength {8} - FrameShown {true} - Rect {68 231 3 25} +User { + UserClassHeader {lengthentry.h} + UserClassName {LengthEntry} + Rect {217 292 187 66} Name {spaceaboveplus} Variable {spaceaboveplus} MinimumSize {0 0} @@ -253,19 +247,16 @@ KDE::KRestrictedLine { minWidthSizeHint {true} minHeightSizeHint {true} maxWidthSizeHint {false} - maxHeightSizeHint {true} - FocusPolicy {StrongFocus} - BackgroundMode {PaletteBase} + maxHeightSizeHint {false} + FocusPolicy {NoFocus} + BackgroundMode {PaletteBackground} FontPropagation {NoChildren} PalettePropagation {NoChildren} } -KDE::KRestrictedLine { - ValidChars {0123456789.,} - Text {} - EchoMode {Normal} - MaxLength {8} - FrameShown {true} - Rect {68 261 3 24} +User { + UserClassHeader {lengthentry.h} + UserClassName {LengthEntry} + Rect {217 363 187 67} Name {spaceaboveminus} Variable {spaceaboveminus} MinimumSize {0 0} @@ -279,93 +270,12 @@ KDE::KRestrictedLine { minWidthSizeHint {true} minHeightSizeHint {true} maxWidthSizeHint {false} - maxHeightSizeHint {true} - FocusPolicy {StrongFocus} - BackgroundMode {PaletteBase} + maxHeightSizeHint {false} + FocusPolicy {NoFocus} + BackgroundMode {PaletteBackground} FontPropagation {NoChildren} PalettePropagation {NoChildren} } -ComboBox { - Style {ReadOnly} - SizeLimit {10} - Policy {AtBottom} - AutoResize {false} - MaxCount {2147483647} - AutoCompletion {false} - Rect {76 202 234 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} -} -ComboBox { - Style {ReadOnly} - SizeLimit {10} - Policy {AtBottom} - AutoResize {false} - MaxCount {2147483647} - AutoCompletion {false} - Rect {76 231 234 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} -} -ComboBox { - Style {ReadOnly} - SizeLimit {10} - Policy {AtBottom} - AutoResize {false} - MaxCount {2147483647} - AutoCompletion {false} - Rect {76 261 234 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} -} Box_Layout-1{ Direction {TopToBottom} @@ -375,15 +285,37 @@ Box_Layout-1{ Strut {0} Stretch {1} } -Layout_Widget-1.1{ +Box_Layout-1.1{ + Direction {LeftToRight} + Border {5} + AutoBorder {5} + Name {} + Strut {0} + Stretch {1} +} +Layout_Widget-1.1.1{ Widget {pagebreakabove} - BoxStretch {2} - Alignment {1} + BoxStretch {1} + Alignment {33} } -Layout_Widget-1.2{ +Box_Stretch-1.1.2{ + Stretch {1} +} +Box_Layout-1.2{ + Direction {LeftToRight} + Border {5} + AutoBorder {5} + Name {} + Strut {0} + Stretch {1} +} +Layout_Widget-1.2.1{ Widget {keepabove} - BoxStretch {2} - Alignment {1} + BoxStretch {1} + Alignment {33} +} +Box_Stretch-1.2.2{ + Stretch {1} } Box_Layout-1.3{ Direction {LeftToRight} @@ -396,77 +328,88 @@ Box_Layout-1.3{ Layout_Widget-1.3.1{ Widget {abovelabel} BoxStretch {1} - Alignment {1} + Alignment {33} +} +Box_Stretch-1.3.2{ + Stretch {1} } -Layout_Widget-1.3.2{ +Layout_Widget-1.3.3{ Widget {spaceabove} - BoxStretch {2} - Alignment {36} + BoxStretch {1} + Alignment {33} +} +Box_Stretch-1.3.4{ + Stretch {1} } Grid_Layout-1.4{ Border {5} AutoBorder {5} Name {} - ColumnInfo {1 1} - ColumnInfo {3 0} + ColumnInfo {5 1} + ColumnInfo {5 2} + ColumnInfo {5 1} ColumnInfo {5 4} - BoxStretch {2} + ColumnInfo {5 1} + BoxStretch {3} } Grid_Row-1.4.1{ Stretch {1} Spacing {0} } -Layout_Widget-1.4.1.1{ +Grid_Spacer-1.4.1.1{ +} +Layout_Widget-1.4.1.2{ Widget {ValueLabel} BoxStretch {1} - Alignment {36} + Alignment {33} } -Layout_Widget-1.4.1.2{ +Grid_Spacer-1.4.1.3{ +} +Layout_Widget-1.4.1.4{ Widget {spaceabovevalue} BoxStretch {1} - Alignment {36} + Alignment {33} } -Layout_Widget-1.4.1.3{ - Widget {spaceabovevalueunits} - BoxStretch {1} - Alignment {36} +Grid_Spacer-1.4.1.5{ } Grid_Row-1.4.2{ Stretch {1} Spacing {0} } -Layout_Widget-1.4.2.1{ +Grid_Spacer-1.4.2.1{ +} +Layout_Widget-1.4.2.2{ Widget {Label_14} BoxStretch {1} - Alignment {36} + Alignment {33} } -Layout_Widget-1.4.2.2{ +Grid_Spacer-1.4.2.3{ +} +Layout_Widget-1.4.2.4{ Widget {spaceaboveplus} BoxStretch {1} - Alignment {36} + Alignment {33} } -Layout_Widget-1.4.2.3{ - Widget {spaceaboveplusunits} - BoxStretch {1} - Alignment {36} +Grid_Spacer-1.4.2.5{ } Grid_Row-1.4.3{ Stretch {1} Spacing {0} } -Layout_Widget-1.4.3.1{ +Grid_Spacer-1.4.3.1{ +} +Layout_Widget-1.4.3.2{ Widget {aboveminuslabel} BoxStretch {1} - Alignment {36} + Alignment {33} } -Layout_Widget-1.4.3.2{ +Grid_Spacer-1.4.3.3{ +} +Layout_Widget-1.4.3.4{ Widget {spaceaboveminus} BoxStretch {1} - Alignment {36} + Alignment {33} } -Layout_Widget-1.4.3.3{ - Widget {spaceaboveminusunits} - BoxStretch {1} - Alignment {36} +Grid_Spacer-1.4.3.5{ } } diff --git a/src/frontends/kde/dlg/dialogs/parabelow.dlg b/src/frontends/kde/dlg/dialogs/parabelow.dlg index ce32ce3271..f9bf5e7188 100644 --- a/src/frontends/kde/dlg/dialogs/parabelow.dlg +++ b/src/frontends/kde/dlg/dialogs/parabelow.dlg @@ -12,7 +12,7 @@ Dialog { } WidgetLayout { InitialPos {-1 -1} -Size {315 290} +Size {465 435} MinSize {0 0} MaxSize {32767 32767} Grid {5} @@ -22,7 +22,7 @@ CheckBox { Text {Page break} AutoRepeat {false} AutoResize {false} - Rect {5 5 305 73} + Rect {5 5 228 67} Name {pagebreakbelow} Variable {pagebreakbelow} MinimumSize {0 0} @@ -47,7 +47,7 @@ CheckBox { Text {Keep space when at bottom of page} AutoRepeat {false} AutoResize {false} - Rect {5 83 305 73} + Rect {5 77 228 66} Name {keepbelow} Variable {keepbelow} MinimumSize {0 0} @@ -76,7 +76,7 @@ Label { LineWidth {1} MidLineWidth {0} FrameMargin {0} - Rect {5 161 100 36} + Rect {5 148 113 67} Name {belowlabel} MinimumSize {0 0} MaximumSize {32767 32767} @@ -102,7 +102,7 @@ ComboBox { AutoResize {false} MaxCount {2147483647} AutoCompletion {false} - Rect {110 161 200 36} + Rect {235 148 113 67} Name {spacebelow} Variable {spacebelow} Signal {[Protected] highlighted --> spacebelowHighlighted (int)} @@ -132,7 +132,7 @@ Label { LineWidth {1} MidLineWidth {0} FrameMargin {0} - Rect {5 202 58 24} + Rect {61 220 96 67} Name {ValueLabel} MinimumSize {0 0} MaximumSize {32767 32767} @@ -160,7 +160,7 @@ Label { LineWidth {1} MidLineWidth {0} FrameMargin {0} - Rect {5 231 58 25} + Rect {61 292 96 66} Name {Label_14} MinimumSize {0 0} MaximumSize {32767 32767} @@ -188,7 +188,7 @@ Label { LineWidth {1} MidLineWidth {0} FrameMargin {0} - Rect {5 261 58 24} + Rect {61 363 96 67} Name {belowminuslabel} MinimumSize {0 0} MaximumSize {32767 32767} @@ -207,13 +207,10 @@ Label { FontPropagation {NoChildren} PalettePropagation {NoChildren} } -KDE::KRestrictedLine { - ValidChars {0123456789.,} - Text {} - EchoMode {Normal} - MaxLength {8} - FrameShown {true} - Rect {68 202 3 24} +User { + UserClassHeader {lengthentry.h} + UserClassName {LengthEntry} + Rect {217 220 187 67} Name {spacebelowvalue} Variable {spacebelowvalue} MinimumSize {0 0} @@ -227,19 +224,16 @@ KDE::KRestrictedLine { minWidthSizeHint {true} minHeightSizeHint {true} maxWidthSizeHint {false} - maxHeightSizeHint {true} - FocusPolicy {StrongFocus} - BackgroundMode {PaletteBase} + maxHeightSizeHint {false} + FocusPolicy {NoFocus} + BackgroundMode {PaletteBackground} FontPropagation {NoChildren} PalettePropagation {NoChildren} } -KDE::KRestrictedLine { - ValidChars {0123456789.,} - Text {} - EchoMode {Normal} - MaxLength {8} - FrameShown {true} - Rect {68 231 3 25} +User { + UserClassHeader {lengthentry.h} + UserClassName {LengthEntry} + Rect {217 292 187 66} Name {spacebelowplus} Variable {spacebelowplus} MinimumSize {0 0} @@ -253,19 +247,16 @@ KDE::KRestrictedLine { minWidthSizeHint {true} minHeightSizeHint {true} maxWidthSizeHint {false} - maxHeightSizeHint {true} - FocusPolicy {StrongFocus} - BackgroundMode {PaletteBase} + maxHeightSizeHint {false} + FocusPolicy {NoFocus} + BackgroundMode {PaletteBackground} FontPropagation {NoChildren} PalettePropagation {NoChildren} } -KDE::KRestrictedLine { - ValidChars {0123456789.,} - Text {} - EchoMode {Normal} - MaxLength {8} - FrameShown {true} - Rect {68 261 3 24} +User { + UserClassHeader {lengthentry.h} + UserClassName {LengthEntry} + Rect {217 363 187 67} Name {spacebelowminus} Variable {spacebelowminus} MinimumSize {0 0} @@ -279,93 +270,12 @@ KDE::KRestrictedLine { minWidthSizeHint {true} minHeightSizeHint {true} maxWidthSizeHint {false} - maxHeightSizeHint {true} - FocusPolicy {StrongFocus} - BackgroundMode {PaletteBase} + maxHeightSizeHint {false} + FocusPolicy {NoFocus} + BackgroundMode {PaletteBackground} FontPropagation {NoChildren} PalettePropagation {NoChildren} } -ComboBox { - Style {ReadOnly} - SizeLimit {10} - Policy {AtBottom} - AutoResize {false} - MaxCount {2147483647} - AutoCompletion {false} - Rect {76 202 234 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 {76 231 234 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 {76 261 234 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} @@ -375,15 +285,37 @@ Box_Layout-1{ Strut {0} Stretch {1} } -Layout_Widget-1.1{ +Box_Layout-1.1{ + Direction {LeftToRight} + Border {5} + AutoBorder {5} + Name {} + Strut {0} + Stretch {1} +} +Layout_Widget-1.1.1{ Widget {pagebreakbelow} - BoxStretch {2} - Alignment {1} + BoxStretch {1} + Alignment {33} } -Layout_Widget-1.2{ +Box_Stretch-1.1.2{ + Stretch {1} +} +Box_Layout-1.2{ + Direction {LeftToRight} + Border {5} + AutoBorder {5} + Name {} + Strut {0} + Stretch {1} +} +Layout_Widget-1.2.1{ Widget {keepbelow} - BoxStretch {2} - Alignment {1} + BoxStretch {1} + Alignment {33} +} +Box_Stretch-1.2.2{ + Stretch {1} } Box_Layout-1.3{ Direction {LeftToRight} @@ -396,77 +328,88 @@ Box_Layout-1.3{ Layout_Widget-1.3.1{ Widget {belowlabel} BoxStretch {1} - Alignment {1} + Alignment {33} +} +Box_Stretch-1.3.2{ + Stretch {1} } -Layout_Widget-1.3.2{ +Layout_Widget-1.3.3{ Widget {spacebelow} - BoxStretch {2} - Alignment {36} + BoxStretch {1} + Alignment {33} +} +Box_Stretch-1.3.4{ + Stretch {1} } Grid_Layout-1.4{ Border {5} AutoBorder {5} Name {} - ColumnInfo {1 1} - ColumnInfo {3 0} + ColumnInfo {5 1} + ColumnInfo {5 2} + ColumnInfo {5 1} ColumnInfo {5 4} - BoxStretch {2} + ColumnInfo {5 1} + BoxStretch {3} } Grid_Row-1.4.1{ Stretch {1} Spacing {0} } -Layout_Widget-1.4.1.1{ +Grid_Spacer-1.4.1.1{ +} +Layout_Widget-1.4.1.2{ Widget {ValueLabel} BoxStretch {1} - Alignment {36} + Alignment {33} } -Layout_Widget-1.4.1.2{ +Grid_Spacer-1.4.1.3{ +} +Layout_Widget-1.4.1.4{ Widget {spacebelowvalue} BoxStretch {1} - Alignment {36} + Alignment {33} } -Layout_Widget-1.4.1.3{ - Widget {spacebelowvalueunits} - BoxStretch {1} - Alignment {36} +Grid_Spacer-1.4.1.5{ } Grid_Row-1.4.2{ Stretch {1} Spacing {0} } -Layout_Widget-1.4.2.1{ +Grid_Spacer-1.4.2.1{ +} +Layout_Widget-1.4.2.2{ Widget {Label_14} BoxStretch {1} - Alignment {36} + Alignment {33} } -Layout_Widget-1.4.2.2{ +Grid_Spacer-1.4.2.3{ +} +Layout_Widget-1.4.2.4{ Widget {spacebelowplus} BoxStretch {1} - Alignment {36} + Alignment {33} } -Layout_Widget-1.4.2.3{ - Widget {spacebelowplusunits} - BoxStretch {1} - Alignment {36} +Grid_Spacer-1.4.2.5{ } Grid_Row-1.4.3{ Stretch {1} Spacing {0} } -Layout_Widget-1.4.3.1{ +Grid_Spacer-1.4.3.1{ +} +Layout_Widget-1.4.3.2{ Widget {belowminuslabel} BoxStretch {1} - Alignment {36} + Alignment {33} } -Layout_Widget-1.4.3.2{ +Grid_Spacer-1.4.3.3{ +} +Layout_Widget-1.4.3.4{ Widget {spacebelowminus} BoxStretch {1} - Alignment {36} + Alignment {33} } -Layout_Widget-1.4.3.3{ - Widget {spacebelowminusunits} - BoxStretch {1} - Alignment {36} +Grid_Spacer-1.4.3.5{ } } diff --git a/src/frontends/kde/dlg/docbulletsdlgdata.C b/src/frontends/kde/dlg/docbulletsdlgdata.C new file mode 100644 index 0000000000..afd24128af --- /dev/null +++ b/src/frontends/kde/dlg/docbulletsdlgdata.C @@ -0,0 +1,38 @@ +/********************************************************************** + + --- Qt Architect 1.4-6 generated file --- + + File: docbulletsdlgdata.C + Last generated: Wed Jan 24 06:43:27 2001 + + DO NOT EDIT!!! This file will be automatically + regenerated by qtarch. All changes will be lost. + + *********************************************************************/ + +#include + +#include +#include +#include "docbulletsdlgdata.h" + +#define Inherited QWidget + + +DocBulletsDialogData::DocBulletsDialogData +( + QWidget* parent, + const char* name +) + : + Inherited( parent, name, 0 ) +{ + resize( 545,460 ); + setMinimumSize( 0, 0 ); + setMaximumSize( 32767, 32767 ); +} + + +DocBulletsDialogData::~DocBulletsDialogData() +{ +} diff --git a/src/frontends/kde/dlg/docbulletsdlgdata.h b/src/frontends/kde/dlg/docbulletsdlgdata.h new file mode 100644 index 0000000000..219c256eaf --- /dev/null +++ b/src/frontends/kde/dlg/docbulletsdlgdata.h @@ -0,0 +1,42 @@ +/********************************************************************** + + --- Qt Architect 1.4-6 generated file --- + + File: docbulletsdlgdata.h + Last generated: Wed Jan 24 06:43:27 2001 + + DO NOT EDIT!!! This file will be automatically + regenerated by qtarch. All changes will be lost. + + *********************************************************************/ + +#ifndef DocBulletsDialogData_included +#define DocBulletsDialogData_included + +#include + +class DocBulletsDialogData : public QWidget +{ + Q_OBJECT + +public: + + DocBulletsDialogData + ( + QWidget* parent = NULL, + const char* name = NULL + ); + + virtual ~DocBulletsDialogData(); + +public slots: + + +protected slots: + + +public: + +}; + +#endif // DocBulletsDialogData_included diff --git a/src/frontends/kde/dlg/docdlgdata.C b/src/frontends/kde/dlg/docdlgdata.C new file mode 100644 index 0000000000..d64170a322 --- /dev/null +++ b/src/frontends/kde/dlg/docdlgdata.C @@ -0,0 +1,181 @@ +/********************************************************************** + + --- Qt Architect 1.4-6 generated file --- + + File: docdlgdata.C + Last generated: Wed Jan 24 06:43:22 2001 + + DO NOT EDIT!!! This file will be automatically + regenerated by qtarch. All changes will be lost. + + *********************************************************************/ + +#include + +#include +#include +#include "docdlgdata.h" + +#define Inherited QWidget + + +DocDialogData::DocDialogData +( + QWidget* parent, + const char* name +) + : + Inherited( parent, name, 0 ) +{ + ok = new QPushButton( this, "OK" ); + ok->setGeometry( 73, 555, 69, 55 ); + ok->setMinimumSize( 0, 0 ); + ok->setMaximumSize( 32767, 32767 ); + connect( ok, SIGNAL(clicked()), SLOT(ok_adaptor()) ); + ok->setFocusPolicy( QWidget::TabFocus ); + ok->setBackgroundMode( QWidget::PaletteBackground ); + ok->setFontPropagation( QWidget::NoChildren ); + ok->setPalettePropagation( QWidget::NoChildren ); + ok->setText( _("&OK") ); + ok->setAutoRepeat( false ); + ok->setAutoResize( false ); + ok->setToggleButton( false ); + ok->setDefault( true ); + ok->setAutoDefault( false ); + ok->setIsMenuButton( false ); + + tabstack = new TabStack( this, "User_1" ); + tabstack->setGeometry( 5, 5, 630, 545 ); + tabstack->setMinimumSize( 0, 0 ); + tabstack->setMaximumSize( 32767, 32767 ); + tabstack->setFocusPolicy( QWidget::NoFocus ); + tabstack->setBackgroundMode( QWidget::PaletteBackground ); + tabstack->setFontPropagation( QWidget::NoChildren ); + tabstack->setPalettePropagation( QWidget::NoChildren ); + + apply = new QPushButton( this, "apply" ); + apply->setGeometry( 215, 555, 68, 55 ); + apply->setMinimumSize( 0, 0 ); + apply->setMaximumSize( 32767, 32767 ); + connect( apply, SIGNAL(clicked()), SLOT(apply_adaptor()) ); + apply->setFocusPolicy( QWidget::TabFocus ); + apply->setBackgroundMode( QWidget::PaletteBackground ); + apply->setFontPropagation( QWidget::NoChildren ); + apply->setPalettePropagation( QWidget::NoChildren ); + apply->setText( _("&Apply") ); + apply->setAutoRepeat( false ); + apply->setAutoResize( false ); + apply->setToggleButton( false ); + apply->setDefault( false ); + apply->setAutoDefault( false ); + apply->setIsMenuButton( false ); + + restore = new QPushButton( this, "restore" ); + restore->setGeometry( 357, 555, 68, 55 ); + restore->setMinimumSize( 0, 0 ); + restore->setMaximumSize( 32767, 32767 ); + connect( restore, SIGNAL(clicked()), SLOT(restore_adaptor()) ); + restore->setFocusPolicy( QWidget::TabFocus ); + restore->setBackgroundMode( QWidget::PaletteBackground ); + restore->setFontPropagation( QWidget::NoChildren ); + restore->setPalettePropagation( QWidget::NoChildren ); + restore->setText( _("&Restore") ); + restore->setAutoRepeat( false ); + restore->setAutoResize( false ); + restore->setToggleButton( false ); + restore->setDefault( false ); + restore->setAutoDefault( false ); + restore->setIsMenuButton( false ); + + cancel = new QPushButton( this, "Cancel" ); + cancel->setGeometry( 498, 555, 69, 55 ); + cancel->setMinimumSize( 0, 0 ); + cancel->setMaximumSize( 32767, 32767 ); + connect( cancel, SIGNAL(clicked()), SLOT(cancel_adaptor()) ); + cancel->setFocusPolicy( QWidget::TabFocus ); + cancel->setBackgroundMode( QWidget::PaletteBackground ); + cancel->setFontPropagation( QWidget::NoChildren ); + cancel->setPalettePropagation( QWidget::NoChildren ); + cancel->setText( _("&Cancel") ); + cancel->setAutoRepeat( false ); + cancel->setAutoResize( false ); + cancel->setToggleButton( false ); + cancel->setDefault( false ); + cancel->setAutoDefault( false ); + cancel->setIsMenuButton( false ); + + if (ok->sizeHint().width()!=-1) + ok->setMinimumWidth(ok->sizeHint().width()); + if (ok->sizeHint().height()!=-1) + ok->setMinimumHeight(ok->sizeHint().height()); + if (ok->sizeHint().width()!=-1) + ok->setMaximumWidth(ok->sizeHint().width()); + if (ok->sizeHint().height()!=-1) + ok->setMaximumHeight(ok->sizeHint().height()); + if (tabstack->sizeHint().width()!=-1) + tabstack->setMinimumWidth(tabstack->sizeHint().width()); + if (tabstack->sizeHint().height()!=-1) + tabstack->setMinimumHeight(tabstack->sizeHint().height()); + if (apply->sizeHint().width()!=-1) + apply->setMinimumWidth(apply->sizeHint().width()); + if (apply->sizeHint().height()!=-1) + apply->setMinimumHeight(apply->sizeHint().height()); + if (apply->sizeHint().width()!=-1) + apply->setMaximumWidth(apply->sizeHint().width()); + if (apply->sizeHint().height()!=-1) + apply->setMaximumHeight(apply->sizeHint().height()); + if (restore->sizeHint().width()!=-1) + restore->setMinimumWidth(restore->sizeHint().width()); + if (restore->sizeHint().height()!=-1) + restore->setMinimumHeight(restore->sizeHint().height()); + if (restore->sizeHint().width()!=-1) + restore->setMaximumWidth(restore->sizeHint().width()); + if (restore->sizeHint().height()!=-1) + restore->setMaximumHeight(restore->sizeHint().height()); + if (cancel->sizeHint().width()!=-1) + cancel->setMinimumWidth(cancel->sizeHint().width()); + if (cancel->sizeHint().height()!=-1) + cancel->setMinimumHeight(cancel->sizeHint().height()); + if (cancel->sizeHint().width()!=-1) + cancel->setMaximumWidth(cancel->sizeHint().width()); + if (cancel->sizeHint().height()!=-1) + cancel->setMaximumHeight(cancel->sizeHint().height()); + 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, 10 ); + qtarch_layout_1_1->addStrut( 0 ); + qtarch_layout_1_1->addWidget( tabstack, 1, 36 ); + QBoxLayout* qtarch_layout_1_2 = new QBoxLayout( QBoxLayout::LeftToRight, 5, NULL ); + qtarch_layout_1->addLayout( qtarch_layout_1_2, 1 ); + qtarch_layout_1_2->addStrut( 0 ); + qtarch_layout_1_2->addStretch( 1 ); + qtarch_layout_1_2->addWidget( ok, 1, 36 ); + qtarch_layout_1_2->addStretch( 1 ); + qtarch_layout_1_2->addWidget( apply, 1, 36 ); + qtarch_layout_1_2->addStretch( 1 ); + qtarch_layout_1_2->addWidget( restore, 1, 36 ); + qtarch_layout_1_2->addStretch( 1 ); + qtarch_layout_1_2->addWidget( cancel, 1, 36 ); + qtarch_layout_1_2->addStretch( 1 ); + resize( 640,615 ); + setMinimumSize( 0, 0 ); + setMaximumSize( 32767, 32767 ); +} + + +DocDialogData::~DocDialogData() +{ +} +void DocDialogData::ok_adaptor() +{ +} +void DocDialogData::apply_adaptor() +{ +} +void DocDialogData::restore_adaptor() +{ +} +void DocDialogData::cancel_adaptor() +{ +} diff --git a/src/frontends/kde/dlg/docdlgdata.h b/src/frontends/kde/dlg/docdlgdata.h new file mode 100644 index 0000000000..0a2ae0c344 --- /dev/null +++ b/src/frontends/kde/dlg/docdlgdata.h @@ -0,0 +1,53 @@ +/********************************************************************** + + --- Qt Architect 1.4-6 generated file --- + + File: docdlgdata.h + Last generated: Wed Jan 24 06:43:22 2001 + + DO NOT EDIT!!! This file will be automatically + regenerated by qtarch. All changes will be lost. + + *********************************************************************/ + +#ifndef DocDialogData_included +#define DocDialogData_included + +#include +#include "tabstack.h" +#include + +class DocDialogData : public QWidget +{ + Q_OBJECT + +public: + + DocDialogData + ( + QWidget* parent = NULL, + const char* name = NULL + ); + + virtual ~DocDialogData(); + +public slots: + + +protected slots: + + virtual void ok_adaptor(); + virtual void restore_adaptor(); + virtual void apply_adaptor(); + virtual void cancel_adaptor(); + +protected: + QPushButton* ok; + TabStack* tabstack; + QPushButton* apply; + QPushButton* restore; + QPushButton* cancel; + +}; + +#endif // DocDialogData_included diff --git a/src/frontends/kde/dlg/docextradlgdata.C b/src/frontends/kde/dlg/docextradlgdata.C new file mode 100644 index 0000000000..cb7b3afe8a --- /dev/null +++ b/src/frontends/kde/dlg/docextradlgdata.C @@ -0,0 +1,276 @@ +/********************************************************************** + + --- Qt Architect 1.4-6 generated file --- + + File: docextradlgdata.C + Last generated: Wed Jan 24 06:43:31 2001 + + DO NOT EDIT!!! This file will be automatically + regenerated by qtarch. All changes will be lost. + + *********************************************************************/ + +#include + +#include +#include +#include "docextradlgdata.h" + +#define Inherited QWidget + +#include + +DocExtraDialogData::DocExtraDialogData +( + QWidget* parent, + const char* name +) + : + Inherited( parent, name, 0 ) +{ + QLabel* qtarch_labelFloatplacement; + qtarch_labelFloatplacement = new QLabel( this, "labelFloatplacement" ); + qtarch_labelFloatplacement->setGeometry( 5, 5, 105, 86 ); + qtarch_labelFloatplacement->setMinimumSize( 0, 0 ); + qtarch_labelFloatplacement->setMaximumSize( 32767, 32767 ); + qtarch_labelFloatplacement->setFocusPolicy( QWidget::NoFocus ); + qtarch_labelFloatplacement->setBackgroundMode( QWidget::PaletteBackground ); + qtarch_labelFloatplacement->setFontPropagation( QWidget::NoChildren ); + qtarch_labelFloatplacement->setPalettePropagation( QWidget::NoChildren ); + qtarch_labelFloatplacement->setFrameStyle( 0 ); + qtarch_labelFloatplacement->setLineWidth( 1 ); + qtarch_labelFloatplacement->setMidLineWidth( 0 ); + qtarch_labelFloatplacement->QFrame::setMargin( 0 ); + qtarch_labelFloatplacement->setText( _("Float placement : (FIXME)") ); + qtarch_labelFloatplacement->setAlignment( 289 ); + qtarch_labelFloatplacement->setMargin( -1 ); + + floatplacement = new QLineEdit( this, "floatplacement" ); + floatplacement->setGeometry( 225, 5, 205, 86 ); + floatplacement->setMinimumSize( 0, 0 ); + floatplacement->setMaximumSize( 32767, 32767 ); + floatplacement->setFocusPolicy( QWidget::StrongFocus ); + floatplacement->setBackgroundMode( QWidget::PaletteBase ); + floatplacement->setFontPropagation( QWidget::NoChildren ); + floatplacement->setPalettePropagation( QWidget::NoChildren ); + floatplacement->setText( "" ); + floatplacement->setMaxLength( 32767 ); + floatplacement->setFrame( QLineEdit::Normal ); + floatplacement->setFrame( true ); + + QLabel* qtarch_labelsectiondepth; + qtarch_labelsectiondepth = new QLabel( this, "labelsectiondepth" ); + qtarch_labelsectiondepth->setGeometry( 5, 96, 105, 86 ); + qtarch_labelsectiondepth->setMinimumSize( 0, 0 ); + qtarch_labelsectiondepth->setMaximumSize( 32767, 32767 ); + qtarch_labelsectiondepth->setFocusPolicy( QWidget::NoFocus ); + qtarch_labelsectiondepth->setBackgroundMode( QWidget::PaletteBackground ); + qtarch_labelsectiondepth->setFontPropagation( QWidget::NoChildren ); + qtarch_labelsectiondepth->setPalettePropagation( QWidget::NoChildren ); + qtarch_labelsectiondepth->setFrameStyle( 0 ); + qtarch_labelsectiondepth->setLineWidth( 1 ); + qtarch_labelsectiondepth->setMidLineWidth( 0 ); + qtarch_labelsectiondepth->QFrame::setMargin( 0 ); + qtarch_labelsectiondepth->setText( _("Section number depth :") ); + qtarch_labelsectiondepth->setAlignment( 289 ); + qtarch_labelsectiondepth->setMargin( -1 ); + + QLabel* qtarch_labeltocdepth; + qtarch_labeltocdepth = new QLabel( this, "labeltocdepth" ); + qtarch_labeltocdepth->setGeometry( 5, 187, 105, 86 ); + qtarch_labeltocdepth->setMinimumSize( 0, 0 ); + qtarch_labeltocdepth->setMaximumSize( 32767, 32767 ); + qtarch_labeltocdepth->setFocusPolicy( QWidget::NoFocus ); + qtarch_labeltocdepth->setBackgroundMode( QWidget::PaletteBackground ); + qtarch_labeltocdepth->setFontPropagation( QWidget::NoChildren ); + qtarch_labeltocdepth->setPalettePropagation( QWidget::NoChildren ); + qtarch_labeltocdepth->setFrameStyle( 0 ); + qtarch_labeltocdepth->setLineWidth( 1 ); + qtarch_labeltocdepth->setMidLineWidth( 0 ); + qtarch_labeltocdepth->QFrame::setMargin( 0 ); + qtarch_labeltocdepth->setText( _("Table of Contents depth :") ); + qtarch_labeltocdepth->setAlignment( 289 ); + qtarch_labeltocdepth->setMargin( -1 ); + + QLabel* qtarch_labelPSDriver; + qtarch_labelPSDriver = new QLabel( this, "labelPSDriver" ); + qtarch_labelPSDriver->setGeometry( 5, 278, 105, 86 ); + qtarch_labelPSDriver->setMinimumSize( 0, 0 ); + qtarch_labelPSDriver->setMaximumSize( 32767, 32767 ); + qtarch_labelPSDriver->setFocusPolicy( QWidget::NoFocus ); + qtarch_labelPSDriver->setBackgroundMode( QWidget::PaletteBackground ); + qtarch_labelPSDriver->setFontPropagation( QWidget::NoChildren ); + qtarch_labelPSDriver->setPalettePropagation( QWidget::NoChildren ); + qtarch_labelPSDriver->setFrameStyle( 0 ); + qtarch_labelPSDriver->setLineWidth( 1 ); + qtarch_labelPSDriver->setMidLineWidth( 0 ); + qtarch_labelPSDriver->QFrame::setMargin( 0 ); + qtarch_labelPSDriver->setText( _("PostScript driver :") ); + qtarch_labelPSDriver->setAlignment( 289 ); + qtarch_labelPSDriver->setMargin( -1 ); + + amsmath = new QCheckBox( this, "amsmath" ); + amsmath->setGeometry( 5, 369, 105, 86 ); + amsmath->setMinimumSize( 0, 0 ); + amsmath->setMaximumSize( 32767, 32767 ); + amsmath->setFocusPolicy( QWidget::TabFocus ); + amsmath->setBackgroundMode( QWidget::PaletteBackground ); + amsmath->setFontPropagation( QWidget::NoChildren ); + amsmath->setPalettePropagation( QWidget::NoChildren ); + amsmath->setText( _("Use AMS Math") ); + amsmath->setAutoRepeat( false ); + amsmath->setAutoResize( false ); + amsmath->setChecked( false ); + + sectiondepth = new QSpinBox( this, "sectiondepth" ); + sectiondepth->setGeometry( 225, 96, 205, 86 ); + sectiondepth->setMinimumSize( 0, 0 ); + sectiondepth->setMaximumSize( 32767, 32767 ); + sectiondepth->setFocusPolicy( QWidget::StrongFocus ); + sectiondepth->setBackgroundMode( QWidget::PaletteBackground ); + sectiondepth->setFontPropagation( QWidget::NoChildren ); + sectiondepth->setPalettePropagation( QWidget::NoChildren ); + sectiondepth->setFrameStyle( 51 ); + sectiondepth->setLineWidth( 2 ); + sectiondepth->setMidLineWidth( 0 ); + sectiondepth->QFrame::setMargin( 0 ); + sectiondepth->setRange( -2, 5 ); + sectiondepth->setSteps( 1, 0 ); + sectiondepth->setPrefix( "" ); + sectiondepth->setSuffix( "" ); + sectiondepth->setSpecialValueText( "" ); + sectiondepth->setWrapping( false ); + + tocdepth = new QSpinBox( this, "tocdepth" ); + tocdepth->setGeometry( 225, 187, 205, 86 ); + tocdepth->setMinimumSize( 0, 0 ); + tocdepth->setMaximumSize( 32767, 32767 ); + tocdepth->setFocusPolicy( QWidget::StrongFocus ); + tocdepth->setBackgroundMode( QWidget::PaletteBackground ); + tocdepth->setFontPropagation( QWidget::NoChildren ); + tocdepth->setPalettePropagation( QWidget::NoChildren ); + tocdepth->setFrameStyle( 51 ); + tocdepth->setLineWidth( 2 ); + tocdepth->setMidLineWidth( 0 ); + tocdepth->QFrame::setMargin( 0 ); + tocdepth->setRange( -1, 5 ); + tocdepth->setSteps( 1, 0 ); + tocdepth->setPrefix( "" ); + tocdepth->setSuffix( "" ); + tocdepth->setSpecialValueText( "" ); + tocdepth->setWrapping( false ); + + psdriver = new QComboBox( FALSE, this, "psdriver" ); + psdriver->setGeometry( 225, 278, 205, 86 ); + psdriver->setMinimumSize( 0, 0 ); + psdriver->setMaximumSize( 32767, 32767 ); + psdriver->setFocusPolicy( QWidget::StrongFocus ); + psdriver->setBackgroundMode( QWidget::PaletteBackground ); + psdriver->setFontPropagation( QWidget::AllChildren ); + psdriver->setPalettePropagation( QWidget::AllChildren ); + psdriver->setSizeLimit( 10 ); + psdriver->setAutoResize( true ); + psdriver->setMaxCount( 2147483647 ); + psdriver->setAutoCompletion( false ); + + if (qtarch_labelFloatplacement->sizeHint().width()!=-1) + qtarch_labelFloatplacement->setMinimumWidth(qtarch_labelFloatplacement->sizeHint().width()); + if (qtarch_labelFloatplacement->sizeHint().height()!=-1) + qtarch_labelFloatplacement->setMinimumHeight(qtarch_labelFloatplacement->sizeHint().height()); + if (qtarch_labelFloatplacement->sizeHint().width()!=-1) + qtarch_labelFloatplacement->setMaximumWidth(qtarch_labelFloatplacement->sizeHint().width()); + if (qtarch_labelFloatplacement->sizeHint().height()!=-1) + qtarch_labelFloatplacement->setMaximumHeight(qtarch_labelFloatplacement->sizeHint().height()); + if (floatplacement->sizeHint().width()!=-1) + floatplacement->setMinimumWidth(floatplacement->sizeHint().width()); + if (floatplacement->sizeHint().height()!=-1) + floatplacement->setMinimumHeight(floatplacement->sizeHint().height()); + if (floatplacement->sizeHint().height()!=-1) + floatplacement->setMaximumHeight(floatplacement->sizeHint().height()); + if (qtarch_labelsectiondepth->sizeHint().width()!=-1) + qtarch_labelsectiondepth->setMinimumWidth(qtarch_labelsectiondepth->sizeHint().width()); + if (qtarch_labelsectiondepth->sizeHint().height()!=-1) + qtarch_labelsectiondepth->setMinimumHeight(qtarch_labelsectiondepth->sizeHint().height()); + if (qtarch_labelsectiondepth->sizeHint().width()!=-1) + qtarch_labelsectiondepth->setMaximumWidth(qtarch_labelsectiondepth->sizeHint().width()); + if (qtarch_labelsectiondepth->sizeHint().height()!=-1) + qtarch_labelsectiondepth->setMaximumHeight(qtarch_labelsectiondepth->sizeHint().height()); + if (qtarch_labeltocdepth->sizeHint().width()!=-1) + qtarch_labeltocdepth->setMinimumWidth(qtarch_labeltocdepth->sizeHint().width()); + if (qtarch_labeltocdepth->sizeHint().height()!=-1) + qtarch_labeltocdepth->setMinimumHeight(qtarch_labeltocdepth->sizeHint().height()); + if (qtarch_labeltocdepth->sizeHint().width()!=-1) + qtarch_labeltocdepth->setMaximumWidth(qtarch_labeltocdepth->sizeHint().width()); + if (qtarch_labeltocdepth->sizeHint().height()!=-1) + qtarch_labeltocdepth->setMaximumHeight(qtarch_labeltocdepth->sizeHint().height()); + if (qtarch_labelPSDriver->sizeHint().width()!=-1) + qtarch_labelPSDriver->setMinimumWidth(qtarch_labelPSDriver->sizeHint().width()); + if (qtarch_labelPSDriver->sizeHint().height()!=-1) + qtarch_labelPSDriver->setMinimumHeight(qtarch_labelPSDriver->sizeHint().height()); + if (qtarch_labelPSDriver->sizeHint().width()!=-1) + qtarch_labelPSDriver->setMaximumWidth(qtarch_labelPSDriver->sizeHint().width()); + if (qtarch_labelPSDriver->sizeHint().height()!=-1) + qtarch_labelPSDriver->setMaximumHeight(qtarch_labelPSDriver->sizeHint().height()); + if (amsmath->sizeHint().width()!=-1) + amsmath->setMinimumWidth(amsmath->sizeHint().width()); + if (amsmath->sizeHint().height()!=-1) + amsmath->setMinimumHeight(amsmath->sizeHint().height()); + if (amsmath->sizeHint().width()!=-1) + amsmath->setMaximumWidth(amsmath->sizeHint().width()); + if (amsmath->sizeHint().height()!=-1) + amsmath->setMaximumHeight(amsmath->sizeHint().height()); + if (sectiondepth->sizeHint().width()!=-1) + sectiondepth->setMinimumWidth(sectiondepth->sizeHint().width()); + if (sectiondepth->sizeHint().height()!=-1) + sectiondepth->setMinimumHeight(sectiondepth->sizeHint().height()); + if (sectiondepth->sizeHint().height()!=-1) + sectiondepth->setMaximumHeight(sectiondepth->sizeHint().height()); + if (tocdepth->sizeHint().width()!=-1) + tocdepth->setMinimumWidth(tocdepth->sizeHint().width()); + if (tocdepth->sizeHint().height()!=-1) + tocdepth->setMinimumHeight(tocdepth->sizeHint().height()); + if (tocdepth->sizeHint().height()!=-1) + tocdepth->setMaximumHeight(tocdepth->sizeHint().height()); + if (psdriver->sizeHint().width()!=-1) + psdriver->setMinimumWidth(psdriver->sizeHint().width()); + if (psdriver->sizeHint().height()!=-1) + psdriver->setMinimumHeight(psdriver->sizeHint().height()); + if (psdriver->sizeHint().height()!=-1) + psdriver->setMaximumHeight(psdriver->sizeHint().height()); + QGridLayout* qtarch_layout_1 = new QGridLayout( this, 5, 4, 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->addColSpacing( 2, 5 ); + qtarch_layout_1->setColStretch( 2, 2 ); + qtarch_layout_1->addColSpacing( 3, 5 ); + qtarch_layout_1->setColStretch( 3, 1 ); + qtarch_layout_1->addRowSpacing( 0, 0 ); + qtarch_layout_1->setRowStretch( 0, 1 ); + qtarch_layout_1->addWidget( qtarch_labelFloatplacement, 0, 0, 33 ); + qtarch_layout_1->addWidget( floatplacement, 0, 2, 33 ); + qtarch_layout_1->addRowSpacing( 1, 0 ); + qtarch_layout_1->setRowStretch( 1, 1 ); + qtarch_layout_1->addWidget( qtarch_labelsectiondepth, 1, 0, 33 ); + qtarch_layout_1->addWidget( sectiondepth, 1, 2, 33 ); + qtarch_layout_1->addRowSpacing( 2, 0 ); + qtarch_layout_1->setRowStretch( 2, 1 ); + qtarch_layout_1->addWidget( qtarch_labeltocdepth, 2, 0, 33 ); + qtarch_layout_1->addWidget( tocdepth, 2, 2, 33 ); + qtarch_layout_1->addRowSpacing( 3, 0 ); + qtarch_layout_1->setRowStretch( 3, 1 ); + qtarch_layout_1->addWidget( qtarch_labelPSDriver, 3, 0, 33 ); + qtarch_layout_1->addWidget( psdriver, 3, 2, 33 ); + qtarch_layout_1->addRowSpacing( 4, 0 ); + qtarch_layout_1->setRowStretch( 4, 1 ); + qtarch_layout_1->addWidget( amsmath, 4, 0, 33 ); + resize( 545,460 ); + setMinimumSize( 0, 0 ); + setMaximumSize( 32767, 32767 ); +} + + +DocExtraDialogData::~DocExtraDialogData() +{ +} diff --git a/src/frontends/kde/dlg/docextradlgdata.h b/src/frontends/kde/dlg/docextradlgdata.h new file mode 100644 index 0000000000..0e3cb091d8 --- /dev/null +++ b/src/frontends/kde/dlg/docextradlgdata.h @@ -0,0 +1,51 @@ +/********************************************************************** + + --- Qt Architect 1.4-6 generated file --- + + File: docextradlgdata.h + Last generated: Wed Jan 24 06:43:31 2001 + + DO NOT EDIT!!! This file will be automatically + regenerated by qtarch. All changes will be lost. + + *********************************************************************/ + +#ifndef DocExtraDialogData_included +#define DocExtraDialogData_included + +#include +#include +#include +#include +#include + +class DocExtraDialogData : public QWidget +{ + Q_OBJECT + +public: + + DocExtraDialogData + ( + QWidget* parent = NULL, + const char* name = NULL + ); + + virtual ~DocExtraDialogData(); + +public slots: + + +protected slots: + + +public: + QLineEdit* floatplacement; + QCheckBox* amsmath; + QSpinBox* sectiondepth; + QSpinBox* tocdepth; + QComboBox* psdriver; + +}; + +#endif // DocExtraDialogData_included diff --git a/src/frontends/kde/dlg/docgeometrydlgdata.C b/src/frontends/kde/dlg/docgeometrydlgdata.C new file mode 100644 index 0000000000..9615f21ce5 --- /dev/null +++ b/src/frontends/kde/dlg/docgeometrydlgdata.C @@ -0,0 +1,728 @@ +/********************************************************************** + + --- Qt Architect 1.4-6 generated file --- + + File: docgeometrydlgdata.C + Last generated: Wed Jan 24 06:43:37 2001 + + DO NOT EDIT!!! This file will be automatically + regenerated by qtarch. All changes will be lost. + + *********************************************************************/ + +#include + +#include +#include +#include "docgeometrydlgdata.h" + +#define Inherited QWidget + +#include +#include +#include + +DocGeometryDialogData::DocGeometryDialogData +( + QWidget* parent, + const char* name +) + : + Inherited( parent, name, 0 ) +{ + QGroupBox* qtarch_headfootGroup; + qtarch_headfootGroup = new QGroupBox( this, "headfootGroup" ); + qtarch_headfootGroup->setGeometry( 305, 5, 295, 325 ); + qtarch_headfootGroup->setMinimumSize( 75, 40 ); + qtarch_headfootGroup->setMaximumSize( 32767, 32767 ); + qtarch_headfootGroup->setFocusPolicy( QWidget::NoFocus ); + qtarch_headfootGroup->setBackgroundMode( QWidget::PaletteBackground ); + qtarch_headfootGroup->setFontPropagation( QWidget::NoChildren ); + qtarch_headfootGroup->setPalettePropagation( QWidget::NoChildren ); + qtarch_headfootGroup->setFrameStyle( 49 ); + qtarch_headfootGroup->setLineWidth( 1 ); + qtarch_headfootGroup->setMidLineWidth( 0 ); + qtarch_headfootGroup->QFrame::setMargin( 0 ); + qtarch_headfootGroup->setTitle( _("Headers and Footers") ); + qtarch_headfootGroup->setAlignment( 1 ); + + QGroupBox* qtarch_marginsGroup; + qtarch_marginsGroup = new QGroupBox( this, "marginsGroup" ); + qtarch_marginsGroup->setGeometry( 5, 335, 466, 315 ); + qtarch_marginsGroup->setMinimumSize( 10, 17 ); + qtarch_marginsGroup->setMaximumSize( 32767, 32767 ); + qtarch_marginsGroup->setFocusPolicy( QWidget::NoFocus ); + qtarch_marginsGroup->setBackgroundMode( QWidget::PaletteBackground ); + qtarch_marginsGroup->setFontPropagation( QWidget::NoChildren ); + qtarch_marginsGroup->setPalettePropagation( QWidget::NoChildren ); + qtarch_marginsGroup->setFrameStyle( 49 ); + qtarch_marginsGroup->setLineWidth( 1 ); + qtarch_marginsGroup->setMidLineWidth( 0 ); + qtarch_marginsGroup->QFrame::setMargin( 0 ); + qtarch_marginsGroup->setTitle( _("Margins") ); + qtarch_marginsGroup->setAlignment( 1 ); + + QGroupBox* qtarch_paperGroup; + qtarch_paperGroup = new QGroupBox( this, "paperGroup" ); + qtarch_paperGroup->setGeometry( 5, 5, 295, 325 ); + qtarch_paperGroup->setMinimumSize( 75, 35 ); + qtarch_paperGroup->setMaximumSize( 32767, 32767 ); + qtarch_paperGroup->setFocusPolicy( QWidget::NoFocus ); + qtarch_paperGroup->setBackgroundMode( QWidget::PaletteBackground ); + qtarch_paperGroup->setFontPropagation( QWidget::NoChildren ); + qtarch_paperGroup->setPalettePropagation( QWidget::NoChildren ); + qtarch_paperGroup->setFrameStyle( 49 ); + qtarch_paperGroup->setLineWidth( 1 ); + qtarch_paperGroup->setMidLineWidth( 0 ); + qtarch_paperGroup->QFrame::setMargin( 0 ); + qtarch_paperGroup->setTitle( _("Paper") ); + qtarch_paperGroup->setAlignment( 1 ); + + QButtonGroup* qtarch_orientation; + qtarch_orientation = new QButtonGroup( this, "orientation" ); + qtarch_orientation->setGeometry( 476, 335, 124, 315 ); + qtarch_orientation->setMinimumSize( 10, 30 ); + qtarch_orientation->setMaximumSize( 32767, 32767 ); + qtarch_orientation->setFocusPolicy( QWidget::NoFocus ); + qtarch_orientation->setBackgroundMode( QWidget::PaletteBackground ); + qtarch_orientation->setFontPropagation( QWidget::NoChildren ); + qtarch_orientation->setPalettePropagation( QWidget::NoChildren ); + qtarch_orientation->setFrameStyle( 49 ); + qtarch_orientation->setLineWidth( 1 ); + qtarch_orientation->setMidLineWidth( 0 ); + qtarch_orientation->QFrame::setMargin( 0 ); + qtarch_orientation->setTitle( _("Orientation") ); + qtarch_orientation->setAlignment( 1 ); + qtarch_orientation->setExclusive( true ); + + QLabel* qtarch_labelPapersize; + qtarch_labelPapersize = new QLabel( qtarch_paperGroup, "labelPapersize" ); + qtarch_labelPapersize->setGeometry( 5, 20, 1, 35 ); + qtarch_labelPapersize->setMinimumSize( 0, 0 ); + qtarch_labelPapersize->setMaximumSize( 32767, 32767 ); + qtarch_labelPapersize->setFocusPolicy( QWidget::NoFocus ); + qtarch_labelPapersize->setBackgroundMode( QWidget::PaletteBackground ); + qtarch_labelPapersize->setFontPropagation( QWidget::NoChildren ); + qtarch_labelPapersize->setPalettePropagation( QWidget::NoChildren ); + qtarch_labelPapersize->setFrameStyle( 0 ); + qtarch_labelPapersize->setLineWidth( 1 ); + qtarch_labelPapersize->setMidLineWidth( 0 ); + qtarch_labelPapersize->QFrame::setMargin( 0 ); + qtarch_labelPapersize->setText( _("Paper size :") ); + qtarch_labelPapersize->setAlignment( 0 ); + qtarch_labelPapersize->setMargin( -1 ); + + papersize = new QComboBox( FALSE, qtarch_paperGroup, "papersize" ); + papersize->setGeometry( 103, 20, 94, 35 ); + papersize->setMinimumSize( 0, 0 ); + papersize->setMaximumSize( 32767, 32767 ); + connect( papersize, SIGNAL(highlighted(const char*)), SLOT(papersizeChanged(const char*)) ); + papersize->setFocusPolicy( QWidget::StrongFocus ); + papersize->setBackgroundMode( QWidget::PaletteBackground ); + papersize->setFontPropagation( QWidget::AllChildren ); + papersize->setPalettePropagation( QWidget::AllChildren ); + papersize->setSizeLimit( 30 ); + papersize->setAutoResize( true ); + papersize->setMaxCount( 2147483647 ); + papersize->setAutoCompletion( false ); + + QLabel* qtarch_labelMargin; + qtarch_labelMargin = new QLabel( qtarch_marginsGroup, "labelMargin" ); + qtarch_labelMargin->setGeometry( 5, 20, 113, 54 ); + qtarch_labelMargin->setMinimumSize( 0, 0 ); + qtarch_labelMargin->setMaximumSize( 32767, 32767 ); + qtarch_labelMargin->setFocusPolicy( QWidget::NoFocus ); + qtarch_labelMargin->setBackgroundMode( QWidget::PaletteBackground ); + qtarch_labelMargin->setFontPropagation( QWidget::NoChildren ); + qtarch_labelMargin->setPalettePropagation( QWidget::NoChildren ); + qtarch_labelMargin->setFrameStyle( 0 ); + qtarch_labelMargin->setLineWidth( 1 ); + qtarch_labelMargin->setMidLineWidth( 0 ); + qtarch_labelMargin->QFrame::setMargin( 0 ); + qtarch_labelMargin->setText( _("Margins :") ); + qtarch_labelMargin->setAlignment( 0 ); + qtarch_labelMargin->setMargin( -1 ); + + margins = new QComboBox( FALSE, qtarch_marginsGroup, "margins" ); + margins->setGeometry( 236, 20, 112, 54 ); + margins->setMinimumSize( 0, 0 ); + margins->setMaximumSize( 32767, 32767 ); + connect( margins, SIGNAL(highlighted(const char*)), SLOT(marginsChanged(const char*)) ); + margins->setFocusPolicy( QWidget::StrongFocus ); + margins->setBackgroundMode( QWidget::PaletteBackground ); + margins->setFontPropagation( QWidget::AllChildren ); + margins->setPalettePropagation( QWidget::AllChildren ); + margins->setSizeLimit( 30 ); + margins->setAutoResize( true ); + margins->setMaxCount( 2147483647 ); + margins->setAutoCompletion( false ); + + QLabel* qtarch_labelWidth; + qtarch_labelWidth = new QLabel( qtarch_paperGroup, "labelWidth" ); + qtarch_labelWidth->setGeometry( 5, 95, 1, 35 ); + qtarch_labelWidth->setMinimumSize( 0, 0 ); + qtarch_labelWidth->setMaximumSize( 32767, 32767 ); + qtarch_labelWidth->setFocusPolicy( QWidget::NoFocus ); + qtarch_labelWidth->setBackgroundMode( QWidget::PaletteBackground ); + qtarch_labelWidth->setFontPropagation( QWidget::NoChildren ); + qtarch_labelWidth->setPalettePropagation( QWidget::NoChildren ); + qtarch_labelWidth->setFrameStyle( 0 ); + qtarch_labelWidth->setLineWidth( 1 ); + qtarch_labelWidth->setMidLineWidth( 0 ); + qtarch_labelWidth->QFrame::setMargin( 0 ); + qtarch_labelWidth->setText( _("Width :") ); + qtarch_labelWidth->setAlignment( 0 ); + qtarch_labelWidth->setMargin( -1 ); + + QLabel* qtarch_labelHeight; + qtarch_labelHeight = new QLabel( qtarch_paperGroup, "labelHeight" ); + qtarch_labelHeight->setGeometry( 5, 210, 1, 35 ); + qtarch_labelHeight->setMinimumSize( 0, 0 ); + qtarch_labelHeight->setMaximumSize( 32767, 32767 ); + qtarch_labelHeight->setFocusPolicy( QWidget::NoFocus ); + qtarch_labelHeight->setBackgroundMode( QWidget::PaletteBackground ); + qtarch_labelHeight->setFontPropagation( QWidget::NoChildren ); + qtarch_labelHeight->setPalettePropagation( QWidget::NoChildren ); + qtarch_labelHeight->setFrameStyle( 0 ); + qtarch_labelHeight->setLineWidth( 1 ); + qtarch_labelHeight->setMidLineWidth( 0 ); + qtarch_labelHeight->QFrame::setMargin( 0 ); + qtarch_labelHeight->setText( _("Height :") ); + qtarch_labelHeight->setAlignment( 0 ); + qtarch_labelHeight->setMargin( -1 ); + + QLabel* qtarch_labelTop; + qtarch_labelTop = new QLabel( qtarch_marginsGroup, "labelTop" ); + qtarch_labelTop->setGeometry( 56, 133, 87, 41 ); + qtarch_labelTop->setMinimumSize( 0, 0 ); + qtarch_labelTop->setMaximumSize( 32767, 32767 ); + qtarch_labelTop->setFocusPolicy( QWidget::NoFocus ); + qtarch_labelTop->setBackgroundMode( QWidget::PaletteBackground ); + qtarch_labelTop->setFontPropagation( QWidget::NoChildren ); + qtarch_labelTop->setPalettePropagation( QWidget::NoChildren ); + qtarch_labelTop->setFrameStyle( 0 ); + qtarch_labelTop->setLineWidth( 1 ); + qtarch_labelTop->setMidLineWidth( 0 ); + qtarch_labelTop->QFrame::setMargin( 0 ); + qtarch_labelTop->setText( _("Top :") ); + qtarch_labelTop->setAlignment( 0 ); + qtarch_labelTop->setMargin( -1 ); + + QLabel* qtarch_labelBottom; + qtarch_labelBottom = new QLabel( qtarch_marginsGroup, "labelBottom" ); + qtarch_labelBottom->setGeometry( 56, 179, 87, 40 ); + qtarch_labelBottom->setMinimumSize( 0, 0 ); + qtarch_labelBottom->setMaximumSize( 32767, 32767 ); + qtarch_labelBottom->setFocusPolicy( QWidget::NoFocus ); + qtarch_labelBottom->setBackgroundMode( QWidget::PaletteBackground ); + qtarch_labelBottom->setFontPropagation( QWidget::NoChildren ); + qtarch_labelBottom->setPalettePropagation( QWidget::NoChildren ); + qtarch_labelBottom->setFrameStyle( 0 ); + qtarch_labelBottom->setLineWidth( 1 ); + qtarch_labelBottom->setMidLineWidth( 0 ); + qtarch_labelBottom->QFrame::setMargin( 0 ); + qtarch_labelBottom->setText( _("Bottom :") ); + qtarch_labelBottom->setAlignment( 0 ); + qtarch_labelBottom->setMargin( -1 ); + + QLabel* qtarch_labelLeft; + qtarch_labelLeft = new QLabel( qtarch_marginsGroup, "labelLeft" ); + qtarch_labelLeft->setGeometry( 56, 224, 87, 41 ); + qtarch_labelLeft->setMinimumSize( 0, 0 ); + qtarch_labelLeft->setMaximumSize( 32767, 32767 ); + qtarch_labelLeft->setFocusPolicy( QWidget::NoFocus ); + qtarch_labelLeft->setBackgroundMode( QWidget::PaletteBackground ); + qtarch_labelLeft->setFontPropagation( QWidget::NoChildren ); + qtarch_labelLeft->setPalettePropagation( QWidget::NoChildren ); + qtarch_labelLeft->setFrameStyle( 0 ); + qtarch_labelLeft->setLineWidth( 1 ); + qtarch_labelLeft->setMidLineWidth( 0 ); + qtarch_labelLeft->QFrame::setMargin( 0 ); + qtarch_labelLeft->setText( _("Left :") ); + qtarch_labelLeft->setAlignment( 0 ); + qtarch_labelLeft->setMargin( -1 ); + + QLabel* qtarch_labelRight; + qtarch_labelRight = new QLabel( qtarch_marginsGroup, "labelRight" ); + qtarch_labelRight->setGeometry( 56, 270, 87, 40 ); + qtarch_labelRight->setMinimumSize( 0, 0 ); + qtarch_labelRight->setMaximumSize( 32767, 32767 ); + qtarch_labelRight->setFocusPolicy( QWidget::NoFocus ); + qtarch_labelRight->setBackgroundMode( QWidget::PaletteBackground ); + qtarch_labelRight->setFontPropagation( QWidget::NoChildren ); + qtarch_labelRight->setPalettePropagation( QWidget::NoChildren ); + qtarch_labelRight->setFrameStyle( 0 ); + qtarch_labelRight->setLineWidth( 1 ); + qtarch_labelRight->setMidLineWidth( 0 ); + qtarch_labelRight->QFrame::setMargin( 0 ); + qtarch_labelRight->setText( _("Right :") ); + qtarch_labelRight->setAlignment( 0 ); + qtarch_labelRight->setMargin( -1 ); + + portrait = new QRadioButton( qtarch_orientation, "portrait" ); + portrait->setGeometry( 5, 77, 1, 57 ); + portrait->setMinimumSize( 0, 0 ); + portrait->setMaximumSize( 32767, 32767 ); + portrait->setFocusPolicy( QWidget::TabFocus ); + portrait->setBackgroundMode( QWidget::PaletteBackground ); + portrait->setFontPropagation( QWidget::NoChildren ); + portrait->setPalettePropagation( QWidget::NoChildren ); + portrait->setText( _("Portrait") ); + portrait->setAutoRepeat( false ); + portrait->setAutoResize( false ); + portrait->setChecked( true ); + + landscape = new QRadioButton( qtarch_orientation, "landscape" ); + landscape->setGeometry( 5, 196, 1, 57 ); + landscape->setMinimumSize( 0, 0 ); + landscape->setMaximumSize( 32767, 32767 ); + landscape->setFocusPolicy( QWidget::TabFocus ); + landscape->setBackgroundMode( QWidget::PaletteBackground ); + landscape->setFontPropagation( QWidget::NoChildren ); + landscape->setPalettePropagation( QWidget::NoChildren ); + landscape->setText( _("Landscape") ); + landscape->setAutoRepeat( false ); + landscape->setAutoResize( false ); + landscape->setChecked( false ); + + QLabel* qtarch_labelheadheight; + qtarch_labelheadheight = new QLabel( qtarch_headfootGroup, "labelheadheight" ); + qtarch_labelheadheight->setGeometry( 5, 48, 1, 27 ); + qtarch_labelheadheight->setMinimumSize( 0, 0 ); + qtarch_labelheadheight->setMaximumSize( 32767, 32767 ); + qtarch_labelheadheight->setFocusPolicy( QWidget::NoFocus ); + qtarch_labelheadheight->setBackgroundMode( QWidget::PaletteBackground ); + qtarch_labelheadheight->setFontPropagation( QWidget::NoChildren ); + qtarch_labelheadheight->setPalettePropagation( QWidget::NoChildren ); + qtarch_labelheadheight->setFrameStyle( 0 ); + qtarch_labelheadheight->setLineWidth( 1 ); + qtarch_labelheadheight->setMidLineWidth( 0 ); + qtarch_labelheadheight->QFrame::setMargin( 0 ); + qtarch_labelheadheight->setText( _("Header height :") ); + qtarch_labelheadheight->setAlignment( 0 ); + qtarch_labelheadheight->setMargin( -1 ); + + QLabel* qtarch_labelHeadsep; + qtarch_labelHeadsep = new QLabel( qtarch_headfootGroup, "labelHeadsep" ); + qtarch_labelHeadsep->setGeometry( 5, 140, 1, 28 ); + qtarch_labelHeadsep->setMinimumSize( 0, 0 ); + qtarch_labelHeadsep->setMaximumSize( 32767, 32767 ); + qtarch_labelHeadsep->setFocusPolicy( QWidget::NoFocus ); + qtarch_labelHeadsep->setBackgroundMode( QWidget::PaletteBackground ); + qtarch_labelHeadsep->setFontPropagation( QWidget::NoChildren ); + qtarch_labelHeadsep->setPalettePropagation( QWidget::NoChildren ); + qtarch_labelHeadsep->setFrameStyle( 0 ); + qtarch_labelHeadsep->setLineWidth( 1 ); + qtarch_labelHeadsep->setMidLineWidth( 0 ); + qtarch_labelHeadsep->QFrame::setMargin( 0 ); + qtarch_labelHeadsep->setText( _("Header separation :") ); + qtarch_labelHeadsep->setAlignment( 0 ); + qtarch_labelHeadsep->setMargin( -1 ); + + QLabel* qtarch_labelFootskip; + qtarch_labelFootskip = new QLabel( qtarch_headfootGroup, "labelFootskip" ); + qtarch_labelFootskip->setGeometry( 5, 233, 1, 27 ); + qtarch_labelFootskip->setMinimumSize( 0, 0 ); + qtarch_labelFootskip->setMaximumSize( 32767, 32767 ); + qtarch_labelFootskip->setFocusPolicy( QWidget::NoFocus ); + qtarch_labelFootskip->setBackgroundMode( QWidget::PaletteBackground ); + qtarch_labelFootskip->setFontPropagation( QWidget::NoChildren ); + qtarch_labelFootskip->setPalettePropagation( QWidget::NoChildren ); + qtarch_labelFootskip->setFrameStyle( 0 ); + qtarch_labelFootskip->setLineWidth( 1 ); + qtarch_labelFootskip->setMidLineWidth( 0 ); + qtarch_labelFootskip->QFrame::setMargin( 0 ); + qtarch_labelFootskip->setText( _("Footer skip :") ); + qtarch_labelFootskip->setAlignment( 0 ); + qtarch_labelFootskip->setMargin( -1 ); + + width = new LengthEntry( qtarch_paperGroup, "width" ); + width->setGeometry( 5, 135, 285, 35 ); + width->setMinimumSize( 0, 0 ); + width->setMaximumSize( 32767, 32767 ); + width->setFocusPolicy( QWidget::NoFocus ); + width->setBackgroundMode( QWidget::PaletteBackground ); + width->setFontPropagation( QWidget::NoChildren ); + width->setPalettePropagation( QWidget::NoChildren ); + + height = new LengthEntry( qtarch_paperGroup, "height" ); + height->setGeometry( 5, 250, 285, 35 ); + height->setMinimumSize( 0, 0 ); + height->setMaximumSize( 32767, 32767 ); + height->setFocusPolicy( QWidget::NoFocus ); + height->setBackgroundMode( QWidget::PaletteBackground ); + height->setFontPropagation( QWidget::NoChildren ); + height->setPalettePropagation( QWidget::NoChildren ); + + top = new LengthEntry( qtarch_marginsGroup, "top" ); + top->setGeometry( 199, 133, 211, 41 ); + top->setMinimumSize( 0, 0 ); + top->setMaximumSize( 32767, 32767 ); + top->setFocusPolicy( QWidget::NoFocus ); + top->setBackgroundMode( QWidget::PaletteBackground ); + top->setFontPropagation( QWidget::NoChildren ); + top->setPalettePropagation( QWidget::NoChildren ); + + bottom = new LengthEntry( qtarch_marginsGroup, "bottom" ); + bottom->setGeometry( 199, 179, 211, 40 ); + bottom->setMinimumSize( 0, 0 ); + bottom->setMaximumSize( 32767, 32767 ); + bottom->setFocusPolicy( QWidget::NoFocus ); + bottom->setBackgroundMode( QWidget::PaletteBackground ); + bottom->setFontPropagation( QWidget::NoChildren ); + bottom->setPalettePropagation( QWidget::NoChildren ); + + left = new LengthEntry( qtarch_marginsGroup, "left" ); + left->setGeometry( 199, 224, 211, 41 ); + left->setMinimumSize( 0, 0 ); + left->setMaximumSize( 32767, 32767 ); + left->setFocusPolicy( QWidget::NoFocus ); + left->setBackgroundMode( QWidget::PaletteBackground ); + left->setFontPropagation( QWidget::NoChildren ); + left->setPalettePropagation( QWidget::NoChildren ); + + headheight = new LengthEntry( qtarch_headfootGroup, "headheight" ); + headheight->setGeometry( 5, 80, 285, 28 ); + headheight->setMinimumSize( 0, 0 ); + headheight->setMaximumSize( 32767, 32767 ); + headheight->setFocusPolicy( QWidget::NoFocus ); + headheight->setBackgroundMode( QWidget::PaletteBackground ); + headheight->setFontPropagation( QWidget::NoChildren ); + headheight->setPalettePropagation( QWidget::NoChildren ); + + headsep = new LengthEntry( qtarch_headfootGroup, "headsep" ); + headsep->setGeometry( 5, 173, 285, 27 ); + headsep->setMinimumSize( 0, 0 ); + headsep->setMaximumSize( 32767, 32767 ); + headsep->setFocusPolicy( QWidget::NoFocus ); + headsep->setBackgroundMode( QWidget::PaletteBackground ); + headsep->setFontPropagation( QWidget::NoChildren ); + headsep->setPalettePropagation( QWidget::NoChildren ); + + footskip = new LengthEntry( qtarch_headfootGroup, "footskip" ); + footskip->setGeometry( 5, 265, 285, 28 ); + footskip->setMinimumSize( 0, 0 ); + footskip->setMaximumSize( 32767, 32767 ); + footskip->setFocusPolicy( QWidget::NoFocus ); + footskip->setBackgroundMode( QWidget::PaletteBackground ); + footskip->setFontPropagation( QWidget::NoChildren ); + footskip->setPalettePropagation( QWidget::NoChildren ); + + right = new LengthEntry( qtarch_marginsGroup, "right" ); + right->setGeometry( 199, 270, 211, 40 ); + right->setMinimumSize( 0, 0 ); + right->setMaximumSize( 32767, 32767 ); + right->setFocusPolicy( QWidget::NoFocus ); + right->setBackgroundMode( QWidget::PaletteBackground ); + right->setFontPropagation( QWidget::NoChildren ); + right->setPalettePropagation( QWidget::NoChildren ); + + if (qtarch_orientation->sizeHint().width()!=-1) + qtarch_orientation->setMinimumWidth(qtarch_orientation->sizeHint().width()); + if (qtarch_orientation->sizeHint().height()!=-1) + qtarch_orientation->setMinimumHeight(qtarch_orientation->sizeHint().height()); + qtarch_orientation->insert( portrait ); + qtarch_orientation->insert( landscape ); + + if (qtarch_labelPapersize->sizeHint().width()!=-1) + qtarch_labelPapersize->setMinimumWidth(qtarch_labelPapersize->sizeHint().width()); + if (qtarch_labelPapersize->sizeHint().height()!=-1) + qtarch_labelPapersize->setMinimumHeight(qtarch_labelPapersize->sizeHint().height()); + if (qtarch_labelPapersize->sizeHint().width()!=-1) + qtarch_labelPapersize->setMaximumWidth(qtarch_labelPapersize->sizeHint().width()); + if (qtarch_labelPapersize->sizeHint().height()!=-1) + qtarch_labelPapersize->setMaximumHeight(qtarch_labelPapersize->sizeHint().height()); + if (papersize->sizeHint().width()!=-1) + papersize->setMinimumWidth(papersize->sizeHint().width()); + if (papersize->sizeHint().height()!=-1) + papersize->setMinimumHeight(papersize->sizeHint().height()); + if (papersize->sizeHint().height()!=-1) + papersize->setMaximumHeight(papersize->sizeHint().height()); + if (qtarch_labelMargin->sizeHint().width()!=-1) + qtarch_labelMargin->setMinimumWidth(qtarch_labelMargin->sizeHint().width()); + if (qtarch_labelMargin->sizeHint().height()!=-1) + qtarch_labelMargin->setMinimumHeight(qtarch_labelMargin->sizeHint().height()); + if (qtarch_labelMargin->sizeHint().width()!=-1) + qtarch_labelMargin->setMaximumWidth(qtarch_labelMargin->sizeHint().width()); + if (qtarch_labelMargin->sizeHint().height()!=-1) + qtarch_labelMargin->setMaximumHeight(qtarch_labelMargin->sizeHint().height()); + if (margins->sizeHint().width()!=-1) + margins->setMinimumWidth(margins->sizeHint().width()); + if (margins->sizeHint().height()!=-1) + margins->setMinimumHeight(margins->sizeHint().height()); + if (margins->sizeHint().height()!=-1) + margins->setMaximumHeight(margins->sizeHint().height()); + if (qtarch_labelWidth->sizeHint().width()!=-1) + qtarch_labelWidth->setMinimumWidth(qtarch_labelWidth->sizeHint().width()); + if (qtarch_labelWidth->sizeHint().height()!=-1) + qtarch_labelWidth->setMinimumHeight(qtarch_labelWidth->sizeHint().height()); + if (qtarch_labelWidth->sizeHint().width()!=-1) + qtarch_labelWidth->setMaximumWidth(qtarch_labelWidth->sizeHint().width()); + if (qtarch_labelWidth->sizeHint().height()!=-1) + qtarch_labelWidth->setMaximumHeight(qtarch_labelWidth->sizeHint().height()); + if (qtarch_labelHeight->sizeHint().width()!=-1) + qtarch_labelHeight->setMinimumWidth(qtarch_labelHeight->sizeHint().width()); + if (qtarch_labelHeight->sizeHint().height()!=-1) + qtarch_labelHeight->setMinimumHeight(qtarch_labelHeight->sizeHint().height()); + if (qtarch_labelHeight->sizeHint().width()!=-1) + qtarch_labelHeight->setMaximumWidth(qtarch_labelHeight->sizeHint().width()); + if (qtarch_labelHeight->sizeHint().height()!=-1) + qtarch_labelHeight->setMaximumHeight(qtarch_labelHeight->sizeHint().height()); + if (qtarch_labelTop->sizeHint().width()!=-1) + qtarch_labelTop->setMinimumWidth(qtarch_labelTop->sizeHint().width()); + if (qtarch_labelTop->sizeHint().height()!=-1) + qtarch_labelTop->setMinimumHeight(qtarch_labelTop->sizeHint().height()); + if (qtarch_labelTop->sizeHint().width()!=-1) + qtarch_labelTop->setMaximumWidth(qtarch_labelTop->sizeHint().width()); + if (qtarch_labelTop->sizeHint().height()!=-1) + qtarch_labelTop->setMaximumHeight(qtarch_labelTop->sizeHint().height()); + if (qtarch_labelBottom->sizeHint().width()!=-1) + qtarch_labelBottom->setMinimumWidth(qtarch_labelBottom->sizeHint().width()); + if (qtarch_labelBottom->sizeHint().height()!=-1) + qtarch_labelBottom->setMinimumHeight(qtarch_labelBottom->sizeHint().height()); + if (qtarch_labelBottom->sizeHint().width()!=-1) + qtarch_labelBottom->setMaximumWidth(qtarch_labelBottom->sizeHint().width()); + if (qtarch_labelBottom->sizeHint().height()!=-1) + qtarch_labelBottom->setMaximumHeight(qtarch_labelBottom->sizeHint().height()); + if (qtarch_labelLeft->sizeHint().width()!=-1) + qtarch_labelLeft->setMinimumWidth(qtarch_labelLeft->sizeHint().width()); + if (qtarch_labelLeft->sizeHint().height()!=-1) + qtarch_labelLeft->setMinimumHeight(qtarch_labelLeft->sizeHint().height()); + if (qtarch_labelLeft->sizeHint().width()!=-1) + qtarch_labelLeft->setMaximumWidth(qtarch_labelLeft->sizeHint().width()); + if (qtarch_labelLeft->sizeHint().height()!=-1) + qtarch_labelLeft->setMaximumHeight(qtarch_labelLeft->sizeHint().height()); + if (qtarch_labelRight->sizeHint().width()!=-1) + qtarch_labelRight->setMinimumWidth(qtarch_labelRight->sizeHint().width()); + if (qtarch_labelRight->sizeHint().height()!=-1) + qtarch_labelRight->setMinimumHeight(qtarch_labelRight->sizeHint().height()); + if (qtarch_labelRight->sizeHint().width()!=-1) + qtarch_labelRight->setMaximumWidth(qtarch_labelRight->sizeHint().width()); + if (qtarch_labelRight->sizeHint().height()!=-1) + qtarch_labelRight->setMaximumHeight(qtarch_labelRight->sizeHint().height()); + if (portrait->sizeHint().width()!=-1) + portrait->setMinimumWidth(portrait->sizeHint().width()); + if (portrait->sizeHint().height()!=-1) + portrait->setMinimumHeight(portrait->sizeHint().height()); + if (portrait->sizeHint().width()!=-1) + portrait->setMaximumWidth(portrait->sizeHint().width()); + if (portrait->sizeHint().height()!=-1) + portrait->setMaximumHeight(portrait->sizeHint().height()); + if (landscape->sizeHint().width()!=-1) + landscape->setMinimumWidth(landscape->sizeHint().width()); + if (landscape->sizeHint().height()!=-1) + landscape->setMinimumHeight(landscape->sizeHint().height()); + if (landscape->sizeHint().width()!=-1) + landscape->setMaximumWidth(landscape->sizeHint().width()); + if (landscape->sizeHint().height()!=-1) + landscape->setMaximumHeight(landscape->sizeHint().height()); + if (qtarch_labelheadheight->sizeHint().width()!=-1) + qtarch_labelheadheight->setMinimumWidth(qtarch_labelheadheight->sizeHint().width()); + if (qtarch_labelheadheight->sizeHint().height()!=-1) + qtarch_labelheadheight->setMinimumHeight(qtarch_labelheadheight->sizeHint().height()); + if (qtarch_labelheadheight->sizeHint().width()!=-1) + qtarch_labelheadheight->setMaximumWidth(qtarch_labelheadheight->sizeHint().width()); + if (qtarch_labelheadheight->sizeHint().height()!=-1) + qtarch_labelheadheight->setMaximumHeight(qtarch_labelheadheight->sizeHint().height()); + if (qtarch_labelHeadsep->sizeHint().width()!=-1) + qtarch_labelHeadsep->setMinimumWidth(qtarch_labelHeadsep->sizeHint().width()); + if (qtarch_labelHeadsep->sizeHint().height()!=-1) + qtarch_labelHeadsep->setMinimumHeight(qtarch_labelHeadsep->sizeHint().height()); + if (qtarch_labelHeadsep->sizeHint().width()!=-1) + qtarch_labelHeadsep->setMaximumWidth(qtarch_labelHeadsep->sizeHint().width()); + if (qtarch_labelHeadsep->sizeHint().height()!=-1) + qtarch_labelHeadsep->setMaximumHeight(qtarch_labelHeadsep->sizeHint().height()); + if (qtarch_labelFootskip->sizeHint().width()!=-1) + qtarch_labelFootskip->setMinimumWidth(qtarch_labelFootskip->sizeHint().width()); + if (qtarch_labelFootskip->sizeHint().height()!=-1) + qtarch_labelFootskip->setMinimumHeight(qtarch_labelFootskip->sizeHint().height()); + if (qtarch_labelFootskip->sizeHint().width()!=-1) + qtarch_labelFootskip->setMaximumWidth(qtarch_labelFootskip->sizeHint().width()); + if (qtarch_labelFootskip->sizeHint().height()!=-1) + qtarch_labelFootskip->setMaximumHeight(qtarch_labelFootskip->sizeHint().height()); + if (width->sizeHint().width()!=-1) + width->setMinimumWidth(width->sizeHint().width()); + if (width->sizeHint().height()!=-1) + width->setMinimumHeight(width->sizeHint().height()); + if (width->sizeHint().height()!=-1) + width->setMaximumHeight(width->sizeHint().height()); + if (height->sizeHint().width()!=-1) + height->setMinimumWidth(height->sizeHint().width()); + if (height->sizeHint().height()!=-1) + height->setMinimumHeight(height->sizeHint().height()); + if (height->sizeHint().height()!=-1) + height->setMaximumHeight(height->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().height()!=-1) + top->setMaximumHeight(top->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().height()!=-1) + bottom->setMaximumHeight(bottom->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().height()!=-1) + left->setMaximumHeight(left->sizeHint().height()); + if (headheight->sizeHint().width()!=-1) + headheight->setMinimumWidth(headheight->sizeHint().width()); + if (headheight->sizeHint().height()!=-1) + headheight->setMinimumHeight(headheight->sizeHint().height()); + if (headheight->sizeHint().height()!=-1) + headheight->setMaximumHeight(headheight->sizeHint().height()); + if (headsep->sizeHint().width()!=-1) + headsep->setMinimumWidth(headsep->sizeHint().width()); + if (headsep->sizeHint().height()!=-1) + headsep->setMinimumHeight(headsep->sizeHint().height()); + if (headsep->sizeHint().height()!=-1) + headsep->setMaximumHeight(headsep->sizeHint().height()); + if (footskip->sizeHint().width()!=-1) + footskip->setMinimumWidth(footskip->sizeHint().width()); + if (footskip->sizeHint().height()!=-1) + footskip->setMinimumHeight(footskip->sizeHint().height()); + if (footskip->sizeHint().height()!=-1) + footskip->setMaximumHeight(footskip->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().height()!=-1) + right->setMaximumHeight(right->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, 1 ); + qtarch_layout_1_1->addStrut( 0 ); + qtarch_layout_1_1->addWidget( qtarch_paperGroup, 1, 33 ); + QBoxLayout* qtarch_layout_1_1_1 = new QBoxLayout( qtarch_paperGroup, QBoxLayout::TopToBottom, 5, 5, NULL ); + qtarch_layout_1_1_1->addStrut( 0 ); + qtarch_layout_1_1_1->addSpacing( 15 ); + QBoxLayout* qtarch_layout_1_1_1_2 = new QBoxLayout( QBoxLayout::LeftToRight, 5, NULL ); + qtarch_layout_1_1_1->addLayout( qtarch_layout_1_1_1_2, 1 ); + qtarch_layout_1_1_1_2->addStrut( 0 ); + qtarch_layout_1_1_1_2->addWidget( qtarch_labelPapersize, 0, 33 ); + qtarch_layout_1_1_1_2->addStretch( 1 ); + qtarch_layout_1_1_1_2->addWidget( papersize, 1, 33 ); + qtarch_layout_1_1_1_2->addStretch( 1 ); + qtarch_layout_1_1_1->addStretch( 1 ); + QBoxLayout* qtarch_layout_1_1_1_4 = new QBoxLayout( QBoxLayout::LeftToRight, 5, NULL ); + qtarch_layout_1_1_1->addLayout( qtarch_layout_1_1_1_4, 1 ); + qtarch_layout_1_1_1_4->addStrut( 0 ); + qtarch_layout_1_1_1_4->addWidget( qtarch_labelWidth, 0, 33 ); + qtarch_layout_1_1_1_4->addStretch( 1 ); + qtarch_layout_1_1_1->addWidget( width, 1, 33 ); + qtarch_layout_1_1_1->addStretch( 1 ); + QBoxLayout* qtarch_layout_1_1_1_7 = new QBoxLayout( QBoxLayout::LeftToRight, 5, NULL ); + qtarch_layout_1_1_1->addLayout( qtarch_layout_1_1_1_7, 1 ); + qtarch_layout_1_1_1_7->addStrut( 0 ); + qtarch_layout_1_1_1_7->addWidget( qtarch_labelHeight, 0, 33 ); + qtarch_layout_1_1_1_7->addStretch( 1 ); + qtarch_layout_1_1_1->addWidget( height, 1, 33 ); + qtarch_layout_1_1_1->addStretch( 1 ); + qtarch_layout_1_1->addWidget( qtarch_headfootGroup, 1, 33 ); + QBoxLayout* qtarch_layout_1_1_2 = new QBoxLayout( qtarch_headfootGroup, QBoxLayout::TopToBottom, 5, 5, NULL ); + qtarch_layout_1_1_2->addStrut( 0 ); + qtarch_layout_1_1_2->addSpacing( 15 ); + qtarch_layout_1_1_2->addStretch( 1 ); + QBoxLayout* qtarch_layout_1_1_2_3 = new QBoxLayout( QBoxLayout::LeftToRight, 5, NULL ); + qtarch_layout_1_1_2->addLayout( qtarch_layout_1_1_2_3, 1 ); + qtarch_layout_1_1_2_3->addStrut( 0 ); + qtarch_layout_1_1_2_3->addWidget( qtarch_labelheadheight, 0, 33 ); + qtarch_layout_1_1_2_3->addStretch( 1 ); + qtarch_layout_1_1_2->addWidget( headheight, 1, 33 ); + qtarch_layout_1_1_2->addStretch( 1 ); + 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_labelHeadsep, 0, 33 ); + qtarch_layout_1_1_2_6->addStretch( 1 ); + qtarch_layout_1_1_2->addWidget( headsep, 1, 33 ); + qtarch_layout_1_1_2->addStretch( 1 ); + QBoxLayout* qtarch_layout_1_1_2_9 = new QBoxLayout( QBoxLayout::LeftToRight, 5, NULL ); + qtarch_layout_1_1_2->addLayout( qtarch_layout_1_1_2_9, 1 ); + qtarch_layout_1_1_2_9->addStrut( 0 ); + qtarch_layout_1_1_2_9->addWidget( qtarch_labelFootskip, 0, 33 ); + qtarch_layout_1_1_2_9->addStretch( 1 ); + qtarch_layout_1_1_2->addWidget( footskip, 1, 33 ); + qtarch_layout_1_1_2->addStretch( 1 ); + QBoxLayout* qtarch_layout_1_2 = new QBoxLayout( QBoxLayout::LeftToRight, 5, NULL ); + qtarch_layout_1->addLayout( qtarch_layout_1_2, 1 ); + qtarch_layout_1_2->addStrut( 0 ); + qtarch_layout_1_2->addWidget( qtarch_marginsGroup, 4, 33 ); + QBoxLayout* qtarch_layout_1_2_1 = new QBoxLayout( qtarch_marginsGroup, QBoxLayout::TopToBottom, 5, 5, NULL ); + qtarch_layout_1_2_1->addStrut( 0 ); + qtarch_layout_1_2_1->addSpacing( 15 ); + QBoxLayout* qtarch_layout_1_2_1_2 = new QBoxLayout( QBoxLayout::LeftToRight, 5, NULL ); + qtarch_layout_1_2_1->addLayout( qtarch_layout_1_2_1_2, 1 ); + qtarch_layout_1_2_1_2->addStrut( 0 ); + qtarch_layout_1_2_1_2->addWidget( qtarch_labelMargin, 1, 33 ); + qtarch_layout_1_2_1_2->addStretch( 1 ); + qtarch_layout_1_2_1_2->addWidget( margins, 1, 33 ); + qtarch_layout_1_2_1_2->addStretch( 1 ); + qtarch_layout_1_2_1->addStretch( 1 ); + QGridLayout* qtarch_layout_1_2_1_4 = new QGridLayout( 4, 5, 5, NULL ); + qtarch_layout_1_2_1->addLayout( qtarch_layout_1_2_1_4, 3 ); + qtarch_layout_1_2_1_4->addColSpacing( 0, 5 ); + qtarch_layout_1_2_1_4->setColStretch( 0, 1 ); + qtarch_layout_1_2_1_4->addColSpacing( 1, 5 ); + qtarch_layout_1_2_1_4->setColStretch( 1, 2 ); + qtarch_layout_1_2_1_4->addColSpacing( 2, 5 ); + qtarch_layout_1_2_1_4->setColStretch( 2, 1 ); + qtarch_layout_1_2_1_4->addColSpacing( 3, 5 ); + qtarch_layout_1_2_1_4->setColStretch( 3, 5 ); + qtarch_layout_1_2_1_4->addColSpacing( 4, 5 ); + qtarch_layout_1_2_1_4->setColStretch( 4, 1 ); + qtarch_layout_1_2_1_4->addRowSpacing( 0, 0 ); + qtarch_layout_1_2_1_4->setRowStretch( 0, 1 ); + qtarch_layout_1_2_1_4->addWidget( qtarch_labelTop, 0, 1, 33 ); + qtarch_layout_1_2_1_4->addWidget( top, 0, 3, 33 ); + qtarch_layout_1_2_1_4->addRowSpacing( 1, 0 ); + qtarch_layout_1_2_1_4->setRowStretch( 1, 1 ); + qtarch_layout_1_2_1_4->addWidget( qtarch_labelBottom, 1, 1, 33 ); + qtarch_layout_1_2_1_4->addWidget( bottom, 1, 3, 33 ); + qtarch_layout_1_2_1_4->addRowSpacing( 2, 0 ); + qtarch_layout_1_2_1_4->setRowStretch( 2, 1 ); + qtarch_layout_1_2_1_4->addWidget( qtarch_labelLeft, 2, 1, 33 ); + qtarch_layout_1_2_1_4->addWidget( left, 2, 3, 33 ); + qtarch_layout_1_2_1_4->addRowSpacing( 3, 0 ); + qtarch_layout_1_2_1_4->setRowStretch( 3, 1 ); + qtarch_layout_1_2_1_4->addWidget( qtarch_labelRight, 3, 1, 33 ); + qtarch_layout_1_2_1_4->addWidget( right, 3, 3, 33 ); + qtarch_layout_1_2->addWidget( qtarch_orientation, 1, 33 ); + QBoxLayout* qtarch_layout_1_2_2 = new QBoxLayout( qtarch_orientation, QBoxLayout::TopToBottom, 5, 5, NULL ); + qtarch_layout_1_2_2->addStrut( 0 ); + qtarch_layout_1_2_2->addSpacing( 15 ); + qtarch_layout_1_2_2->addStretch( 1 ); + QBoxLayout* qtarch_layout_1_2_2_3 = new QBoxLayout( QBoxLayout::LeftToRight, 5, NULL ); + qtarch_layout_1_2_2->addLayout( qtarch_layout_1_2_2_3, 1 ); + qtarch_layout_1_2_2_3->addStrut( 0 ); + qtarch_layout_1_2_2_3->addWidget( portrait, 0, 33 ); + qtarch_layout_1_2_2_3->addStretch( 1 ); + qtarch_layout_1_2_2->addStretch( 1 ); + QBoxLayout* qtarch_layout_1_2_2_5 = new QBoxLayout( QBoxLayout::LeftToRight, 5, NULL ); + qtarch_layout_1_2_2->addLayout( qtarch_layout_1_2_2_5, 1 ); + qtarch_layout_1_2_2_5->addStrut( 0 ); + qtarch_layout_1_2_2_5->addWidget( landscape, 0, 33 ); + qtarch_layout_1_2_2_5->addStretch( 1 ); + qtarch_layout_1_2_2->addStretch( 1 ); + resize( 605,655 ); + setMinimumSize( 0, 0 ); + setMaximumSize( 32767, 32767 ); +} + + +DocGeometryDialogData::~DocGeometryDialogData() +{ +} +void DocGeometryDialogData::papersizeChanged(const char*) +{ +} +void DocGeometryDialogData::marginsChanged(const char*) +{ +} diff --git a/src/frontends/kde/dlg/docgeometrydlgdata.h b/src/frontends/kde/dlg/docgeometrydlgdata.h new file mode 100644 index 0000000000..338af008a0 --- /dev/null +++ b/src/frontends/kde/dlg/docgeometrydlgdata.h @@ -0,0 +1,60 @@ +/********************************************************************** + + --- Qt Architect 1.4-6 generated file --- + + File: docgeometrydlgdata.h + Last generated: Wed Jan 24 06:43:37 2001 + + DO NOT EDIT!!! This file will be automatically + regenerated by qtarch. All changes will be lost. + + *********************************************************************/ + +#ifndef DocGeometryDialogData_included +#define DocGeometryDialogData_included + +#include +#include +#include "lengthentry.h" +#include + +class DocGeometryDialogData : public QWidget +{ + Q_OBJECT + +public: + + DocGeometryDialogData + ( + QWidget* parent = NULL, + const char* name = NULL + ); + + virtual ~DocGeometryDialogData(); + +public slots: + + +protected slots: + + virtual void papersizeChanged(const char*); + virtual void marginsChanged(const char*); + +public: + QComboBox* papersize; + QComboBox* margins; + QRadioButton* portrait; + QRadioButton* landscape; + LengthEntry* width; + LengthEntry* height; + LengthEntry* top; + LengthEntry* bottom; + LengthEntry* left; + LengthEntry* headheight; + LengthEntry* headsep; + LengthEntry* footskip; + LengthEntry* right; + +}; + +#endif // DocGeometryDialogData_included diff --git a/src/frontends/kde/dlg/doclanguagedlgdata.C b/src/frontends/kde/dlg/doclanguagedlgdata.C new file mode 100644 index 0000000000..b57493a864 --- /dev/null +++ b/src/frontends/kde/dlg/doclanguagedlgdata.C @@ -0,0 +1,192 @@ +/********************************************************************** + + --- Qt Architect 1.4-6 generated file --- + + File: doclanguagedlgdata.C + Last generated: Wed Jan 24 06:43:17 2001 + + DO NOT EDIT!!! This file will be automatically + regenerated by qtarch. All changes will be lost. + + *********************************************************************/ + +#include + +#include +#include +#include "doclanguagedlgdata.h" + +#define Inherited QWidget + +#include + +DocLanguageDialogData::DocLanguageDialogData +( + QWidget* parent, + const char* name +) + : + Inherited( parent, name, 0 ) +{ + QLabel* qtarch_labelLanguage; + qtarch_labelLanguage = new QLabel( this, "labelLanguage" ); + qtarch_labelLanguage->setGeometry( 5, 5, 130, 147 ); + qtarch_labelLanguage->setMinimumSize( 0, 0 ); + qtarch_labelLanguage->setMaximumSize( 32767, 32767 ); + qtarch_labelLanguage->setFocusPolicy( QWidget::NoFocus ); + qtarch_labelLanguage->setBackgroundMode( QWidget::PaletteBackground ); + qtarch_labelLanguage->setFontPropagation( QWidget::NoChildren ); + qtarch_labelLanguage->setPalettePropagation( QWidget::NoChildren ); + qtarch_labelLanguage->setFrameStyle( 0 ); + qtarch_labelLanguage->setLineWidth( 1 ); + qtarch_labelLanguage->setMidLineWidth( 0 ); + qtarch_labelLanguage->QFrame::setMargin( 0 ); + qtarch_labelLanguage->setText( _("Language :") ); + qtarch_labelLanguage->setAlignment( 290 ); + qtarch_labelLanguage->setMargin( -1 ); + + language = new QComboBox( FALSE, this, "language" ); + language->setGeometry( 275, 5, 130, 147 ); + language->setMinimumSize( 0, 0 ); + language->setMaximumSize( 32767, 32767 ); + language->setFocusPolicy( QWidget::StrongFocus ); + language->setBackgroundMode( QWidget::PaletteBackground ); + language->setFontPropagation( QWidget::AllChildren ); + language->setPalettePropagation( QWidget::AllChildren ); + language->setSizeLimit( 30 ); + language->setAutoResize( true ); + language->setMaxCount( 2147483647 ); + language->setAutoCompletion( false ); + + QLabel* qtarch_labelEncoding; + qtarch_labelEncoding = new QLabel( this, "labelEncoding" ); + qtarch_labelEncoding->setGeometry( 5, 157, 130, 146 ); + qtarch_labelEncoding->setMinimumSize( 0, 0 ); + qtarch_labelEncoding->setMaximumSize( 32767, 32767 ); + qtarch_labelEncoding->setFocusPolicy( QWidget::NoFocus ); + qtarch_labelEncoding->setBackgroundMode( QWidget::PaletteBackground ); + qtarch_labelEncoding->setFontPropagation( QWidget::NoChildren ); + qtarch_labelEncoding->setPalettePropagation( QWidget::NoChildren ); + qtarch_labelEncoding->setFrameStyle( 0 ); + qtarch_labelEncoding->setLineWidth( 1 ); + qtarch_labelEncoding->setMidLineWidth( 0 ); + qtarch_labelEncoding->QFrame::setMargin( 0 ); + qtarch_labelEncoding->setText( _("Encoding :") ); + qtarch_labelEncoding->setAlignment( 290 ); + qtarch_labelEncoding->setMargin( -1 ); + + encoding = new QComboBox( FALSE, this, "encoding" ); + encoding->setGeometry( 275, 157, 130, 146 ); + encoding->setMinimumSize( 0, 0 ); + encoding->setMaximumSize( 32767, 32767 ); + encoding->setFocusPolicy( QWidget::StrongFocus ); + encoding->setBackgroundMode( QWidget::PaletteBackground ); + encoding->setFontPropagation( QWidget::AllChildren ); + encoding->setPalettePropagation( QWidget::AllChildren ); + encoding->setSizeLimit( 30 ); + encoding->setAutoResize( true ); + encoding->setMaxCount( 2147483647 ); + encoding->setAutoCompletion( false ); + + QLabel* qtarch_labelQuotes; + qtarch_labelQuotes = new QLabel( this, "labelQuotes" ); + qtarch_labelQuotes->setGeometry( 5, 308, 130, 147 ); + qtarch_labelQuotes->setMinimumSize( 0, 0 ); + qtarch_labelQuotes->setMaximumSize( 32767, 32767 ); + qtarch_labelQuotes->setFocusPolicy( QWidget::NoFocus ); + qtarch_labelQuotes->setBackgroundMode( QWidget::PaletteBackground ); + qtarch_labelQuotes->setFontPropagation( QWidget::NoChildren ); + qtarch_labelQuotes->setPalettePropagation( QWidget::NoChildren ); + qtarch_labelQuotes->setFrameStyle( 0 ); + qtarch_labelQuotes->setLineWidth( 1 ); + qtarch_labelQuotes->setMidLineWidth( 0 ); + qtarch_labelQuotes->QFrame::setMargin( 0 ); + qtarch_labelQuotes->setText( _("Quote style :") ); + qtarch_labelQuotes->setAlignment( 290 ); + qtarch_labelQuotes->setMargin( -1 ); + + quotes = new QComboBox( FALSE, this, "quotes" ); + quotes->setGeometry( 275, 308, 130, 147 ); + quotes->setMinimumSize( 0, 0 ); + quotes->setMaximumSize( 32767, 32767 ); + quotes->setFocusPolicy( QWidget::StrongFocus ); + quotes->setBackgroundMode( QWidget::PaletteBackground ); + quotes->setFontPropagation( QWidget::AllChildren ); + quotes->setPalettePropagation( QWidget::AllChildren ); + quotes->setSizeLimit( 30 ); + quotes->setAutoResize( true ); + quotes->setMaxCount( 2147483647 ); + quotes->setAutoCompletion( false ); + + if (qtarch_labelLanguage->sizeHint().width()!=-1) + qtarch_labelLanguage->setMinimumWidth(qtarch_labelLanguage->sizeHint().width()); + if (qtarch_labelLanguage->sizeHint().height()!=-1) + qtarch_labelLanguage->setMinimumHeight(qtarch_labelLanguage->sizeHint().height()); + if (qtarch_labelLanguage->sizeHint().width()!=-1) + qtarch_labelLanguage->setMaximumWidth(qtarch_labelLanguage->sizeHint().width()); + if (qtarch_labelLanguage->sizeHint().height()!=-1) + qtarch_labelLanguage->setMaximumHeight(qtarch_labelLanguage->sizeHint().height()); + if (language->sizeHint().width()!=-1) + language->setMinimumWidth(language->sizeHint().width()); + if (language->sizeHint().height()!=-1) + language->setMinimumHeight(language->sizeHint().height()); + if (language->sizeHint().height()!=-1) + language->setMaximumHeight(language->sizeHint().height()); + if (qtarch_labelEncoding->sizeHint().width()!=-1) + qtarch_labelEncoding->setMinimumWidth(qtarch_labelEncoding->sizeHint().width()); + if (qtarch_labelEncoding->sizeHint().height()!=-1) + qtarch_labelEncoding->setMinimumHeight(qtarch_labelEncoding->sizeHint().height()); + if (qtarch_labelEncoding->sizeHint().width()!=-1) + qtarch_labelEncoding->setMaximumWidth(qtarch_labelEncoding->sizeHint().width()); + if (qtarch_labelEncoding->sizeHint().height()!=-1) + qtarch_labelEncoding->setMaximumHeight(qtarch_labelEncoding->sizeHint().height()); + if (encoding->sizeHint().width()!=-1) + encoding->setMinimumWidth(encoding->sizeHint().width()); + if (encoding->sizeHint().height()!=-1) + encoding->setMinimumHeight(encoding->sizeHint().height()); + if (encoding->sizeHint().height()!=-1) + encoding->setMaximumHeight(encoding->sizeHint().height()); + if (qtarch_labelQuotes->sizeHint().width()!=-1) + qtarch_labelQuotes->setMinimumWidth(qtarch_labelQuotes->sizeHint().width()); + if (qtarch_labelQuotes->sizeHint().height()!=-1) + qtarch_labelQuotes->setMinimumHeight(qtarch_labelQuotes->sizeHint().height()); + if (qtarch_labelQuotes->sizeHint().width()!=-1) + qtarch_labelQuotes->setMaximumWidth(qtarch_labelQuotes->sizeHint().width()); + if (qtarch_labelQuotes->sizeHint().height()!=-1) + qtarch_labelQuotes->setMaximumHeight(qtarch_labelQuotes->sizeHint().height()); + if (quotes->sizeHint().width()!=-1) + quotes->setMinimumWidth(quotes->sizeHint().width()); + if (quotes->sizeHint().height()!=-1) + quotes->setMinimumHeight(quotes->sizeHint().height()); + if (quotes->sizeHint().height()!=-1) + quotes->setMaximumHeight(quotes->sizeHint().height()); + QGridLayout* qtarch_layout_1 = new QGridLayout( this, 3, 4, 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->addColSpacing( 2, 5 ); + qtarch_layout_1->setColStretch( 2, 1 ); + qtarch_layout_1->addColSpacing( 3, 5 ); + qtarch_layout_1->setColStretch( 3, 1 ); + qtarch_layout_1->addRowSpacing( 0, 0 ); + qtarch_layout_1->setRowStretch( 0, 1 ); + qtarch_layout_1->addWidget( qtarch_labelLanguage, 0, 0, 33 ); + qtarch_layout_1->addWidget( language, 0, 2, 33 ); + qtarch_layout_1->addRowSpacing( 1, 0 ); + qtarch_layout_1->setRowStretch( 1, 1 ); + qtarch_layout_1->addWidget( qtarch_labelEncoding, 1, 0, 33 ); + qtarch_layout_1->addWidget( encoding, 1, 2, 33 ); + qtarch_layout_1->addRowSpacing( 2, 0 ); + qtarch_layout_1->setRowStretch( 2, 1 ); + qtarch_layout_1->addWidget( qtarch_labelQuotes, 2, 0, 33 ); + qtarch_layout_1->addWidget( quotes, 2, 2, 33 ); + resize( 545,460 ); + setMinimumSize( 0, 0 ); + setMaximumSize( 32767, 32767 ); +} + + +DocLanguageDialogData::~DocLanguageDialogData() +{ +} diff --git a/src/frontends/kde/dlg/doclanguagedlgdata.h b/src/frontends/kde/dlg/doclanguagedlgdata.h new file mode 100644 index 0000000000..8878aeee27 --- /dev/null +++ b/src/frontends/kde/dlg/doclanguagedlgdata.h @@ -0,0 +1,46 @@ +/********************************************************************** + + --- Qt Architect 1.4-6 generated file --- + + File: doclanguagedlgdata.h + Last generated: Wed Jan 24 06:43:17 2001 + + DO NOT EDIT!!! This file will be automatically + regenerated by qtarch. All changes will be lost. + + *********************************************************************/ + +#ifndef DocLanguageDialogData_included +#define DocLanguageDialogData_included + +#include +#include + +class DocLanguageDialogData : public QWidget +{ + Q_OBJECT + +public: + + DocLanguageDialogData + ( + QWidget* parent = NULL, + const char* name = NULL + ); + + virtual ~DocLanguageDialogData(); + +public slots: + + +protected slots: + + +public: + QComboBox* language; + QComboBox* encoding; + QComboBox* quotes; + +}; + +#endif // DocLanguageDialogData_included diff --git a/src/frontends/kde/dlg/docsettingsdlgdata.C b/src/frontends/kde/dlg/docsettingsdlgdata.C new file mode 100644 index 0000000000..a1d5760f50 --- /dev/null +++ b/src/frontends/kde/dlg/docsettingsdlgdata.C @@ -0,0 +1,518 @@ +/********************************************************************** + + --- Qt Architect 1.4-6 generated file --- + + File: docsettingsdlgdata.C + Last generated: Wed Jan 24 06:43:24 2001 + + DO NOT EDIT!!! This file will be automatically + regenerated by qtarch. All changes will be lost. + + *********************************************************************/ + +#include + +#include +#include +#include "docsettingsdlgdata.h" + +#define Inherited QWidget + +#include + +DocSettingsDialogData::DocSettingsDialogData +( + QWidget* parent, + const char* name +) + : + Inherited( parent, name, 0 ) +{ + QLabel* qtarch_labelClass; + qtarch_labelClass = new QLabel( this, "labelClass" ); + qtarch_labelClass->setGeometry( 95, 5, 85, 23 ); + qtarch_labelClass->setMinimumSize( 0, 0 ); + qtarch_labelClass->setMaximumSize( 32767, 32767 ); + qtarch_labelClass->setFocusPolicy( QWidget::NoFocus ); + qtarch_labelClass->setBackgroundMode( QWidget::PaletteBackground ); + qtarch_labelClass->setFontPropagation( QWidget::NoChildren ); + qtarch_labelClass->setPalettePropagation( QWidget::NoChildren ); + qtarch_labelClass->setFrameStyle( 0 ); + qtarch_labelClass->setLineWidth( 1 ); + qtarch_labelClass->setMidLineWidth( 0 ); + qtarch_labelClass->QFrame::setMargin( 0 ); + qtarch_labelClass->setText( _("Document class :") ); + qtarch_labelClass->setAlignment( 289 ); + qtarch_labelClass->setMargin( -1 ); + + docclass = new QComboBox( FALSE, this, "docclass" ); + docclass->setGeometry( 275, 5, 85, 23 ); + docclass->setMinimumSize( 0, 0 ); + docclass->setMaximumSize( 32767, 32767 ); + connect( docclass, SIGNAL(highlighted(const char*)), SLOT(classChanged(const char*)) ); + docclass->setFocusPolicy( QWidget::StrongFocus ); + docclass->setBackgroundMode( QWidget::PaletteBackground ); + docclass->setFontPropagation( QWidget::AllChildren ); + docclass->setPalettePropagation( QWidget::AllChildren ); + docclass->setSizeLimit( 30 ); + docclass->setAutoResize( false ); + docclass->setMaxCount( 2147483647 ); + docclass->setAutoCompletion( false ); + + QLabel* qtarch_labelPagestyle; + qtarch_labelPagestyle = new QLabel( this, "labelPagestyle" ); + qtarch_labelPagestyle->setGeometry( 95, 33, 85, 23 ); + qtarch_labelPagestyle->setMinimumSize( 0, 0 ); + qtarch_labelPagestyle->setMaximumSize( 32767, 32767 ); + qtarch_labelPagestyle->setFocusPolicy( QWidget::NoFocus ); + qtarch_labelPagestyle->setBackgroundMode( QWidget::PaletteBackground ); + qtarch_labelPagestyle->setFontPropagation( QWidget::NoChildren ); + qtarch_labelPagestyle->setPalettePropagation( QWidget::NoChildren ); + qtarch_labelPagestyle->setFrameStyle( 0 ); + qtarch_labelPagestyle->setLineWidth( 1 ); + qtarch_labelPagestyle->setMidLineWidth( 0 ); + qtarch_labelPagestyle->QFrame::setMargin( 0 ); + qtarch_labelPagestyle->setText( _("Page style :") ); + qtarch_labelPagestyle->setAlignment( 289 ); + qtarch_labelPagestyle->setMargin( -1 ); + + QLabel* qtarch_labelFont; + qtarch_labelFont = new QLabel( this, "labelFont" ); + qtarch_labelFont->setGeometry( 95, 61, 85, 22 ); + qtarch_labelFont->setMinimumSize( 0, 0 ); + qtarch_labelFont->setMaximumSize( 32767, 32767 ); + qtarch_labelFont->setFocusPolicy( QWidget::NoFocus ); + qtarch_labelFont->setBackgroundMode( QWidget::PaletteBackground ); + qtarch_labelFont->setFontPropagation( QWidget::NoChildren ); + qtarch_labelFont->setPalettePropagation( QWidget::NoChildren ); + qtarch_labelFont->setFrameStyle( 0 ); + qtarch_labelFont->setLineWidth( 1 ); + qtarch_labelFont->setMidLineWidth( 0 ); + qtarch_labelFont->QFrame::setMargin( 0 ); + qtarch_labelFont->setText( _("Font family :") ); + qtarch_labelFont->setAlignment( 289 ); + qtarch_labelFont->setMargin( -1 ); + + QLabel* qtarch_labelFontSize; + qtarch_labelFontSize = new QLabel( this, "labelFontSize" ); + qtarch_labelFontSize->setGeometry( 95, 88, 85, 23 ); + qtarch_labelFontSize->setMinimumSize( 0, 0 ); + qtarch_labelFontSize->setMaximumSize( 32767, 32767 ); + qtarch_labelFontSize->setFocusPolicy( QWidget::NoFocus ); + qtarch_labelFontSize->setBackgroundMode( QWidget::PaletteBackground ); + qtarch_labelFontSize->setFontPropagation( QWidget::NoChildren ); + qtarch_labelFontSize->setPalettePropagation( QWidget::NoChildren ); + qtarch_labelFontSize->setFrameStyle( 0 ); + qtarch_labelFontSize->setLineWidth( 1 ); + qtarch_labelFontSize->setMidLineWidth( 0 ); + qtarch_labelFontSize->QFrame::setMargin( 0 ); + qtarch_labelFontSize->setText( _("Font size :") ); + qtarch_labelFontSize->setAlignment( 289 ); + qtarch_labelFontSize->setMargin( -1 ); + + pagestyle = new QComboBox( FALSE, this, "pagestyle" ); + pagestyle->setGeometry( 275, 33, 85, 23 ); + pagestyle->setMinimumSize( 0, 0 ); + pagestyle->setMaximumSize( 32767, 32767 ); + pagestyle->setFocusPolicy( QWidget::StrongFocus ); + pagestyle->setBackgroundMode( QWidget::PaletteBackground ); + pagestyle->setFontPropagation( QWidget::AllChildren ); + pagestyle->setPalettePropagation( QWidget::AllChildren ); + pagestyle->setSizeLimit( 30 ); + pagestyle->setAutoResize( false ); + pagestyle->setMaxCount( 2147483647 ); + pagestyle->setAutoCompletion( false ); + + font = new QComboBox( FALSE, this, "font" ); + font->setGeometry( 275, 61, 85, 22 ); + font->setMinimumSize( 0, 0 ); + font->setMaximumSize( 32767, 32767 ); + font->setFocusPolicy( QWidget::StrongFocus ); + font->setBackgroundMode( QWidget::PaletteBackground ); + font->setFontPropagation( QWidget::AllChildren ); + font->setPalettePropagation( QWidget::AllChildren ); + font->setSizeLimit( 30 ); + font->setAutoResize( false ); + font->setMaxCount( 2147483647 ); + font->setAutoCompletion( false ); + + fontsize = new QComboBox( FALSE, this, "fontsize" ); + fontsize->setGeometry( 275, 88, 85, 23 ); + fontsize->setMinimumSize( 0, 0 ); + fontsize->setMaximumSize( 32767, 32767 ); + fontsize->setFocusPolicy( QWidget::StrongFocus ); + fontsize->setBackgroundMode( QWidget::PaletteBackground ); + fontsize->setFontPropagation( QWidget::AllChildren ); + fontsize->setPalettePropagation( QWidget::AllChildren ); + fontsize->setSizeLimit( 30 ); + fontsize->setAutoResize( false ); + fontsize->setMaxCount( 2147483647 ); + fontsize->setAutoCompletion( false ); + + sides = new QCheckBox( this, "sides" ); + sides->setGeometry( 93, 116, 88, 91 ); + sides->setMinimumSize( 0, 0 ); + sides->setMaximumSize( 32767, 32767 ); + sides->setFocusPolicy( QWidget::TabFocus ); + sides->setBackgroundMode( QWidget::PaletteBackground ); + sides->setFontPropagation( QWidget::NoChildren ); + sides->setPalettePropagation( QWidget::NoChildren ); + sides->setText( _("Two-sided") ); + sides->setAutoRepeat( false ); + sides->setAutoResize( false ); + sides->setChecked( false ); + + columns = new QCheckBox( this, "columns" ); + columns->setGeometry( 274, 116, 88, 91 ); + columns->setMinimumSize( 0, 0 ); + columns->setMaximumSize( 32767, 32767 ); + columns->setFocusPolicy( QWidget::TabFocus ); + columns->setBackgroundMode( QWidget::PaletteBackground ); + columns->setFontPropagation( QWidget::NoChildren ); + columns->setPalettePropagation( QWidget::NoChildren ); + columns->setText( _("Two column pages") ); + columns->setAutoRepeat( false ); + columns->setAutoResize( false ); + columns->setChecked( false ); + + separation = new QCheckBox( this, "separation" ); + separation->setGeometry( 153, 212, 149, 91 ); + separation->setMinimumSize( 0, 0 ); + separation->setMaximumSize( 32767, 32767 ); + separation->setFocusPolicy( QWidget::TabFocus ); + separation->setBackgroundMode( QWidget::PaletteBackground ); + separation->setFontPropagation( QWidget::NoChildren ); + separation->setPalettePropagation( QWidget::NoChildren ); + separation->setText( _("Skip separation (FIXME)") ); + separation->setAutoRepeat( false ); + separation->setAutoResize( false ); + separation->setChecked( false ); + + QLabel* qtarch_labelSpacing; + qtarch_labelSpacing = new QLabel( this, "labelSpacing" ); + qtarch_labelSpacing->setGeometry( 5, 308, 145, 46 ); + qtarch_labelSpacing->setMinimumSize( 0, 0 ); + qtarch_labelSpacing->setMaximumSize( 32767, 32767 ); + qtarch_labelSpacing->setFocusPolicy( QWidget::NoFocus ); + qtarch_labelSpacing->setBackgroundMode( QWidget::PaletteBackground ); + qtarch_labelSpacing->setFontPropagation( QWidget::NoChildren ); + qtarch_labelSpacing->setPalettePropagation( QWidget::NoChildren ); + qtarch_labelSpacing->setFrameStyle( 0 ); + qtarch_labelSpacing->setLineWidth( 1 ); + qtarch_labelSpacing->setMidLineWidth( 0 ); + qtarch_labelSpacing->QFrame::setMargin( 0 ); + qtarch_labelSpacing->setText( _("Inter-line spacing :") ); + qtarch_labelSpacing->setAlignment( 289 ); + qtarch_labelSpacing->setMargin( -1 ); + + linespacing = new QComboBox( FALSE, this, "linespacing" ); + linespacing->setGeometry( 155, 308, 215, 46 ); + linespacing->setMinimumSize( 0, 0 ); + linespacing->setMaximumSize( 32767, 32767 ); + linespacing->setFocusPolicy( QWidget::StrongFocus ); + linespacing->setBackgroundMode( QWidget::PaletteBackground ); + linespacing->setFontPropagation( QWidget::AllChildren ); + linespacing->setPalettePropagation( QWidget::AllChildren ); + linespacing->setSizeLimit( 30 ); + linespacing->setAutoResize( false ); + linespacing->setMaxCount( 2147483647 ); + linespacing->setAutoCompletion( false ); + + QLabel* qtarch_labelSkip; + qtarch_labelSkip = new QLabel( this, "labelSkip" ); + qtarch_labelSkip->setGeometry( 5, 359, 145, 45 ); + qtarch_labelSkip->setMinimumSize( 0, 0 ); + qtarch_labelSkip->setMaximumSize( 32767, 32767 ); + qtarch_labelSkip->setFocusPolicy( QWidget::NoFocus ); + qtarch_labelSkip->setBackgroundMode( QWidget::PaletteBackground ); + qtarch_labelSkip->setFontPropagation( QWidget::NoChildren ); + qtarch_labelSkip->setPalettePropagation( QWidget::NoChildren ); + qtarch_labelSkip->setFrameStyle( 0 ); + qtarch_labelSkip->setLineWidth( 1 ); + qtarch_labelSkip->setMidLineWidth( 0 ); + qtarch_labelSkip->QFrame::setMargin( 0 ); + qtarch_labelSkip->setText( _("Default skip spacing :") ); + qtarch_labelSkip->setAlignment( 289 ); + qtarch_labelSkip->setMargin( -1 ); + + skipspacing = new QComboBox( FALSE, this, "skipspacing" ); + skipspacing->setGeometry( 155, 359, 215, 45 ); + skipspacing->setMinimumSize( 0, 0 ); + skipspacing->setMaximumSize( 32767, 32767 ); + skipspacing->setFocusPolicy( QWidget::StrongFocus ); + skipspacing->setBackgroundMode( QWidget::PaletteBackground ); + skipspacing->setFontPropagation( QWidget::AllChildren ); + skipspacing->setPalettePropagation( QWidget::AllChildren ); + skipspacing->setSizeLimit( 30 ); + skipspacing->setAutoResize( false ); + skipspacing->setMaxCount( 2147483647 ); + skipspacing->setAutoCompletion( false ); + + extraoptions = new QLineEdit( this, "extraoptions" ); + extraoptions->setGeometry( 230, 409, 220, 91 ); + extraoptions->setMinimumSize( 0, 0 ); + extraoptions->setMaximumSize( 32767, 32767 ); + extraoptions->setFocusPolicy( QWidget::StrongFocus ); + extraoptions->setBackgroundMode( QWidget::PaletteBase ); + extraoptions->setFontPropagation( QWidget::NoChildren ); + extraoptions->setPalettePropagation( QWidget::NoChildren ); + extraoptions->setText( "" ); + extraoptions->setMaxLength( 32767 ); + extraoptions->setFrame( QLineEdit::Normal ); + extraoptions->setFrame( true ); + + QLabel* qtarch_labelExtraoptions; + qtarch_labelExtraoptions = new QLabel( this, "labelExtraoptions" ); + qtarch_labelExtraoptions->setGeometry( 5, 409, 220, 91 ); + qtarch_labelExtraoptions->setMinimumSize( 0, 0 ); + qtarch_labelExtraoptions->setMaximumSize( 32767, 32767 ); + qtarch_labelExtraoptions->setFocusPolicy( QWidget::NoFocus ); + qtarch_labelExtraoptions->setBackgroundMode( QWidget::PaletteBackground ); + qtarch_labelExtraoptions->setFontPropagation( QWidget::NoChildren ); + qtarch_labelExtraoptions->setPalettePropagation( QWidget::NoChildren ); + qtarch_labelExtraoptions->setFrameStyle( 0 ); + qtarch_labelExtraoptions->setLineWidth( 1 ); + qtarch_labelExtraoptions->setMidLineWidth( 0 ); + qtarch_labelExtraoptions->QFrame::setMargin( 0 ); + qtarch_labelExtraoptions->setText( _("Extra options :") ); + qtarch_labelExtraoptions->setAlignment( 289 ); + qtarch_labelExtraoptions->setMargin( -1 ); + + linespacingVal = new KRestrictedLine( this, "linespacingVal" ); + linespacingVal->setGeometry( 375, 308, 75, 46 ); + linespacingVal->setMinimumSize( 0, 0 ); + linespacingVal->setMaximumSize( 32767, 32767 ); + linespacingVal->setFocusPolicy( QWidget::StrongFocus ); + linespacingVal->setBackgroundMode( QWidget::PaletteBase ); + linespacingVal->setFontPropagation( QWidget::NoChildren ); + linespacingVal->setPalettePropagation( QWidget::NoChildren ); + linespacingVal->setText( "" ); + linespacingVal->setMaxLength( 32767 ); + linespacingVal->setFrame( QLineEdit::Normal ); + linespacingVal->setFrame( true ); + linespacingVal->setValidChars( "0123456789.," ); + + QLabel* qtarch_FIXME; + qtarch_FIXME = new QLabel( this, "FIXME" ); + qtarch_FIXME->setGeometry( 375, 359, 75, 45 ); + qtarch_FIXME->setMinimumSize( 0, 0 ); + qtarch_FIXME->setMaximumSize( 32767, 32767 ); + qtarch_FIXME->setFocusPolicy( QWidget::NoFocus ); + qtarch_FIXME->setBackgroundMode( QWidget::PaletteBackground ); + qtarch_FIXME->setFontPropagation( QWidget::NoChildren ); + qtarch_FIXME->setPalettePropagation( QWidget::NoChildren ); + qtarch_FIXME->setFrameStyle( 0 ); + qtarch_FIXME->setLineWidth( 1 ); + qtarch_FIXME->setMidLineWidth( 0 ); + qtarch_FIXME->QFrame::setMargin( 0 ); + qtarch_FIXME->setText( _("FIXME") ); + qtarch_FIXME->setAlignment( 289 ); + qtarch_FIXME->setMargin( -1 ); + + if (qtarch_labelClass->sizeHint().width()!=-1) + qtarch_labelClass->setMinimumWidth(qtarch_labelClass->sizeHint().width()); + if (qtarch_labelClass->sizeHint().height()!=-1) + qtarch_labelClass->setMinimumHeight(qtarch_labelClass->sizeHint().height()); + if (qtarch_labelClass->sizeHint().width()!=-1) + qtarch_labelClass->setMaximumWidth(qtarch_labelClass->sizeHint().width()); + if (qtarch_labelClass->sizeHint().height()!=-1) + qtarch_labelClass->setMaximumHeight(qtarch_labelClass->sizeHint().height()); + if (docclass->sizeHint().width()!=-1) + docclass->setMinimumWidth(docclass->sizeHint().width()); + if (docclass->sizeHint().height()!=-1) + docclass->setMinimumHeight(docclass->sizeHint().height()); + if (docclass->sizeHint().height()!=-1) + docclass->setMaximumHeight(docclass->sizeHint().height()); + if (qtarch_labelPagestyle->sizeHint().width()!=-1) + qtarch_labelPagestyle->setMinimumWidth(qtarch_labelPagestyle->sizeHint().width()); + if (qtarch_labelPagestyle->sizeHint().height()!=-1) + qtarch_labelPagestyle->setMinimumHeight(qtarch_labelPagestyle->sizeHint().height()); + if (qtarch_labelPagestyle->sizeHint().width()!=-1) + qtarch_labelPagestyle->setMaximumWidth(qtarch_labelPagestyle->sizeHint().width()); + if (qtarch_labelPagestyle->sizeHint().height()!=-1) + qtarch_labelPagestyle->setMaximumHeight(qtarch_labelPagestyle->sizeHint().height()); + if (qtarch_labelFont->sizeHint().width()!=-1) + qtarch_labelFont->setMinimumWidth(qtarch_labelFont->sizeHint().width()); + if (qtarch_labelFont->sizeHint().height()!=-1) + qtarch_labelFont->setMinimumHeight(qtarch_labelFont->sizeHint().height()); + if (qtarch_labelFont->sizeHint().width()!=-1) + qtarch_labelFont->setMaximumWidth(qtarch_labelFont->sizeHint().width()); + if (qtarch_labelFont->sizeHint().height()!=-1) + qtarch_labelFont->setMaximumHeight(qtarch_labelFont->sizeHint().height()); + if (qtarch_labelFontSize->sizeHint().width()!=-1) + qtarch_labelFontSize->setMinimumWidth(qtarch_labelFontSize->sizeHint().width()); + if (qtarch_labelFontSize->sizeHint().height()!=-1) + qtarch_labelFontSize->setMinimumHeight(qtarch_labelFontSize->sizeHint().height()); + if (qtarch_labelFontSize->sizeHint().width()!=-1) + qtarch_labelFontSize->setMaximumWidth(qtarch_labelFontSize->sizeHint().width()); + if (qtarch_labelFontSize->sizeHint().height()!=-1) + qtarch_labelFontSize->setMaximumHeight(qtarch_labelFontSize->sizeHint().height()); + if (pagestyle->sizeHint().width()!=-1) + pagestyle->setMinimumWidth(pagestyle->sizeHint().width()); + if (pagestyle->sizeHint().height()!=-1) + pagestyle->setMinimumHeight(pagestyle->sizeHint().height()); + if (pagestyle->sizeHint().height()!=-1) + pagestyle->setMaximumHeight(pagestyle->sizeHint().height()); + if (font->sizeHint().width()!=-1) + font->setMinimumWidth(font->sizeHint().width()); + if (font->sizeHint().height()!=-1) + font->setMinimumHeight(font->sizeHint().height()); + if (font->sizeHint().height()!=-1) + font->setMaximumHeight(font->sizeHint().height()); + if (fontsize->sizeHint().width()!=-1) + fontsize->setMinimumWidth(fontsize->sizeHint().width()); + if (fontsize->sizeHint().height()!=-1) + fontsize->setMinimumHeight(fontsize->sizeHint().height()); + if (fontsize->sizeHint().height()!=-1) + fontsize->setMaximumHeight(fontsize->sizeHint().height()); + if (sides->sizeHint().width()!=-1) + sides->setMinimumWidth(sides->sizeHint().width()); + if (sides->sizeHint().height()!=-1) + sides->setMinimumHeight(sides->sizeHint().height()); + if (sides->sizeHint().width()!=-1) + sides->setMaximumWidth(sides->sizeHint().width()); + if (sides->sizeHint().height()!=-1) + sides->setMaximumHeight(sides->sizeHint().height()); + if (columns->sizeHint().width()!=-1) + columns->setMinimumWidth(columns->sizeHint().width()); + if (columns->sizeHint().height()!=-1) + columns->setMinimumHeight(columns->sizeHint().height()); + if (columns->sizeHint().width()!=-1) + columns->setMaximumWidth(columns->sizeHint().width()); + if (columns->sizeHint().height()!=-1) + columns->setMaximumHeight(columns->sizeHint().height()); + if (separation->sizeHint().width()!=-1) + separation->setMinimumWidth(separation->sizeHint().width()); + if (separation->sizeHint().height()!=-1) + separation->setMinimumHeight(separation->sizeHint().height()); + if (separation->sizeHint().width()!=-1) + separation->setMaximumWidth(separation->sizeHint().width()); + if (separation->sizeHint().height()!=-1) + separation->setMaximumHeight(separation->sizeHint().height()); + if (qtarch_labelSpacing->sizeHint().width()!=-1) + qtarch_labelSpacing->setMinimumWidth(qtarch_labelSpacing->sizeHint().width()); + if (qtarch_labelSpacing->sizeHint().height()!=-1) + qtarch_labelSpacing->setMinimumHeight(qtarch_labelSpacing->sizeHint().height()); + if (qtarch_labelSpacing->sizeHint().width()!=-1) + qtarch_labelSpacing->setMaximumWidth(qtarch_labelSpacing->sizeHint().width()); + if (qtarch_labelSpacing->sizeHint().height()!=-1) + qtarch_labelSpacing->setMaximumHeight(qtarch_labelSpacing->sizeHint().height()); + if (linespacing->sizeHint().width()!=-1) + linespacing->setMinimumWidth(linespacing->sizeHint().width()); + if (linespacing->sizeHint().height()!=-1) + linespacing->setMinimumHeight(linespacing->sizeHint().height()); + if (linespacing->sizeHint().height()!=-1) + linespacing->setMaximumHeight(linespacing->sizeHint().height()); + if (qtarch_labelSkip->sizeHint().width()!=-1) + qtarch_labelSkip->setMinimumWidth(qtarch_labelSkip->sizeHint().width()); + if (qtarch_labelSkip->sizeHint().height()!=-1) + qtarch_labelSkip->setMinimumHeight(qtarch_labelSkip->sizeHint().height()); + if (qtarch_labelSkip->sizeHint().width()!=-1) + qtarch_labelSkip->setMaximumWidth(qtarch_labelSkip->sizeHint().width()); + if (qtarch_labelSkip->sizeHint().height()!=-1) + qtarch_labelSkip->setMaximumHeight(qtarch_labelSkip->sizeHint().height()); + if (skipspacing->sizeHint().width()!=-1) + skipspacing->setMinimumWidth(skipspacing->sizeHint().width()); + if (skipspacing->sizeHint().height()!=-1) + skipspacing->setMinimumHeight(skipspacing->sizeHint().height()); + if (skipspacing->sizeHint().height()!=-1) + skipspacing->setMaximumHeight(skipspacing->sizeHint().height()); + if (extraoptions->sizeHint().width()!=-1) + extraoptions->setMinimumWidth(extraoptions->sizeHint().width()); + if (extraoptions->sizeHint().height()!=-1) + extraoptions->setMinimumHeight(extraoptions->sizeHint().height()); + if (extraoptions->sizeHint().height()!=-1) + extraoptions->setMaximumHeight(extraoptions->sizeHint().height()); + if (qtarch_labelExtraoptions->sizeHint().width()!=-1) + qtarch_labelExtraoptions->setMinimumWidth(qtarch_labelExtraoptions->sizeHint().width()); + if (qtarch_labelExtraoptions->sizeHint().height()!=-1) + qtarch_labelExtraoptions->setMinimumHeight(qtarch_labelExtraoptions->sizeHint().height()); + if (qtarch_labelExtraoptions->sizeHint().width()!=-1) + qtarch_labelExtraoptions->setMaximumWidth(qtarch_labelExtraoptions->sizeHint().width()); + if (qtarch_labelExtraoptions->sizeHint().height()!=-1) + qtarch_labelExtraoptions->setMaximumHeight(qtarch_labelExtraoptions->sizeHint().height()); + if (linespacingVal->sizeHint().width()!=-1) + linespacingVal->setMinimumWidth(linespacingVal->sizeHint().width()); + if (linespacingVal->sizeHint().height()!=-1) + linespacingVal->setMinimumHeight(linespacingVal->sizeHint().height()); + if (linespacingVal->sizeHint().height()!=-1) + linespacingVal->setMaximumHeight(linespacingVal->sizeHint().height()); + QBoxLayout* qtarch_layout_1 = new QBoxLayout( this, QBoxLayout::TopToBottom, 5, 5, NULL ); + qtarch_layout_1->addStrut( 0 ); + QGridLayout* qtarch_layout_1_1 = new QGridLayout( 4, 5, 5, NULL ); + qtarch_layout_1->addLayout( qtarch_layout_1_1, 1 ); + qtarch_layout_1_1->addColSpacing( 0, 5 ); + qtarch_layout_1_1->setColStretch( 0, 1 ); + qtarch_layout_1_1->addColSpacing( 1, 5 ); + qtarch_layout_1_1->setColStretch( 1, 1 ); + qtarch_layout_1_1->addColSpacing( 2, 5 ); + qtarch_layout_1_1->setColStretch( 2, 1 ); + qtarch_layout_1_1->addColSpacing( 3, 5 ); + qtarch_layout_1_1->setColStretch( 3, 1 ); + qtarch_layout_1_1->addColSpacing( 4, 5 ); + qtarch_layout_1_1->setColStretch( 4, 1 ); + qtarch_layout_1_1->addRowSpacing( 0, 0 ); + qtarch_layout_1_1->setRowStretch( 0, 1 ); + qtarch_layout_1_1->addWidget( qtarch_labelClass, 0, 1, 33 ); + qtarch_layout_1_1->addWidget( docclass, 0, 3, 33 ); + qtarch_layout_1_1->addRowSpacing( 1, 0 ); + qtarch_layout_1_1->setRowStretch( 1, 1 ); + qtarch_layout_1_1->addWidget( qtarch_labelPagestyle, 1, 1, 33 ); + qtarch_layout_1_1->addWidget( pagestyle, 1, 3, 33 ); + qtarch_layout_1_1->addRowSpacing( 2, 0 ); + qtarch_layout_1_1->setRowStretch( 2, 1 ); + qtarch_layout_1_1->addWidget( qtarch_labelFont, 2, 1, 33 ); + qtarch_layout_1_1->addWidget( font, 2, 3, 33 ); + qtarch_layout_1_1->addRowSpacing( 3, 0 ); + qtarch_layout_1_1->setRowStretch( 3, 1 ); + qtarch_layout_1_1->addWidget( qtarch_labelFontSize, 3, 1, 33 ); + qtarch_layout_1_1->addWidget( fontsize, 3, 3, 33 ); + QBoxLayout* qtarch_layout_1_2 = new QBoxLayout( QBoxLayout::LeftToRight, 5, NULL ); + qtarch_layout_1->addLayout( qtarch_layout_1_2, 1 ); + qtarch_layout_1_2->addStrut( 0 ); + qtarch_layout_1_2->addStretch( 1 ); + qtarch_layout_1_2->addWidget( sides, 1, 33 ); + qtarch_layout_1_2->addStretch( 1 ); + qtarch_layout_1_2->addWidget( columns, 1, 33 ); + qtarch_layout_1_2->addStretch( 1 ); + QBoxLayout* qtarch_layout_1_3 = new QBoxLayout( QBoxLayout::LeftToRight, 5, NULL ); + qtarch_layout_1->addLayout( qtarch_layout_1_3, 1 ); + qtarch_layout_1_3->addStrut( 0 ); + qtarch_layout_1_3->addStretch( 1 ); + qtarch_layout_1_3->addWidget( separation, 1, 33 ); + qtarch_layout_1_3->addStretch( 1 ); + QGridLayout* qtarch_layout_1_4 = new QGridLayout( 2, 3, 5, NULL ); + qtarch_layout_1->addLayout( qtarch_layout_1_4, 1 ); + qtarch_layout_1_4->addColSpacing( 0, 5 ); + qtarch_layout_1_4->setColStretch( 0, 2 ); + qtarch_layout_1_4->addColSpacing( 1, 5 ); + qtarch_layout_1_4->setColStretch( 1, 3 ); + qtarch_layout_1_4->addColSpacing( 2, 5 ); + qtarch_layout_1_4->setColStretch( 2, 1 ); + qtarch_layout_1_4->addRowSpacing( 0, 0 ); + qtarch_layout_1_4->setRowStretch( 0, 1 ); + qtarch_layout_1_4->addWidget( qtarch_labelSpacing, 0, 0, 33 ); + qtarch_layout_1_4->addWidget( linespacing, 0, 1, 33 ); + qtarch_layout_1_4->addWidget( linespacingVal, 0, 2, 33 ); + qtarch_layout_1_4->addRowSpacing( 1, 0 ); + qtarch_layout_1_4->setRowStretch( 1, 1 ); + qtarch_layout_1_4->addWidget( qtarch_labelSkip, 1, 0, 33 ); + qtarch_layout_1_4->addWidget( skipspacing, 1, 1, 33 ); + qtarch_layout_1_4->addWidget( qtarch_FIXME, 1, 2, 33 ); + QBoxLayout* qtarch_layout_1_5 = new QBoxLayout( QBoxLayout::LeftToRight, 5, NULL ); + qtarch_layout_1->addLayout( qtarch_layout_1_5, 1 ); + qtarch_layout_1_5->addStrut( 0 ); + qtarch_layout_1_5->addWidget( qtarch_labelExtraoptions, 1, 36 ); + qtarch_layout_1_5->addWidget( extraoptions, 1, 33 ); + setGeometry( 0,0, 455,505 ); + setMinimumSize( 0, 0 ); + setMaximumSize( 32767, 32767 ); +} + + +DocSettingsDialogData::~DocSettingsDialogData() +{ +} +void DocSettingsDialogData::classChanged(const char*) +{ +} diff --git a/src/frontends/kde/dlg/docsettingsdlgdata.h b/src/frontends/kde/dlg/docsettingsdlgdata.h new file mode 100644 index 0000000000..b591b9b83f --- /dev/null +++ b/src/frontends/kde/dlg/docsettingsdlgdata.h @@ -0,0 +1,58 @@ +/********************************************************************** + + --- Qt Architect 1.4-6 generated file --- + + File: docsettingsdlgdata.h + Last generated: Wed Jan 24 06:43:24 2001 + + DO NOT EDIT!!! This file will be automatically + regenerated by qtarch. All changes will be lost. + + *********************************************************************/ + +#ifndef DocSettingsDialogData_included +#define DocSettingsDialogData_included + +#include +#include +#include +#include +#include + +class DocSettingsDialogData : public QWidget +{ + Q_OBJECT + +public: + + DocSettingsDialogData + ( + QWidget* parent = NULL, + const char* name = NULL + ); + + virtual ~DocSettingsDialogData(); + +public slots: + + +protected slots: + + virtual void classChanged(const char*); + +public: + QComboBox* docclass; + QComboBox* pagestyle; + QComboBox* font; + QComboBox* fontsize; + QCheckBox* sides; + QCheckBox* columns; + QCheckBox* separation; + QComboBox* linespacing; + QComboBox* skipspacing; + QLineEdit* extraoptions; + KRestrictedLine* linespacingVal; + +}; + +#endif // DocSettingsDialogData_included diff --git a/src/frontends/kde/dlg/helpers.C b/src/frontends/kde/dlg/helpers.C new file mode 100644 index 0000000000..4358850c92 --- /dev/null +++ b/src/frontends/kde/dlg/helpers.C @@ -0,0 +1,40 @@ +/* + * helpers.C + * (C) 2001 LyX Team + * + * John Levon, moz@compsoc.man.ac.uk + */ + +/** + * \file helpers.C + * \brief various useful functions for manipulating dialog widgets + */ + +#include + +#include "helpers.h" + +#include "gettext.h" +#include "debug.h" + +using std::endl; + +#ifdef CXX_WORKING_NAMESPACES +namespace kde_helpers { +#endif + +bool setComboFromStr(QComboBox *box, const string & str) +{ + for (int i = 0; i < box->count(); i++) { + if (str == box->text(i)) { + box->setCurrentItem(i); + return true; + } + } + + return false; +} + +#ifdef CXX_WORKING_NAMESPACES +}; /* namespace kde_helpers */ +#endif diff --git a/src/frontends/kde/dlg/helpers.h b/src/frontends/kde/dlg/helpers.h new file mode 100644 index 0000000000..89db077bfe --- /dev/null +++ b/src/frontends/kde/dlg/helpers.h @@ -0,0 +1,50 @@ +/* + * helpers.h + * + * (C) 2001 LyX Team + * + * John Levon, moz@compsoc.man.ac.uk + */ + +#ifndef HELPERS_H +#define HELPERS_H + +#include + +#include +#include + +#include "vspace.h" + +#ifdef CXX_WORKING_NAMESPACES +namespace kde_helpers { +#endif + +/** + * \fn setSizeHint + * \brief sets the minimum size of a widget + * \param widget the widget + * + * Sets a widget's minimum size to its sizeHint() + */ +inline void setSizeHint(QWidget *widget) +{ + widget->setMinimumSize(widget->sizeHint()); +} + +/** + * \fn setComboFromStr + * \brief sets a combo box item given a string matching one of the entries. + * \param box the box to change + * \param str the string to match + * + * Set a combobox current item matching the given string. false is returned if + * the item could not be found. + */ +bool setComboFromStr(QComboBox *box, const string & str); + +#ifdef CXX_WORKING_NAMESPACES +}; /* namespace kde_helpers */ +#endif + +#endif /* HELPERS_H */ diff --git a/src/frontends/kde/dlg/indexdlgdata.C b/src/frontends/kde/dlg/indexdlgdata.C index db81de622f..988820f1a3 100644 --- a/src/frontends/kde/dlg/indexdlgdata.C +++ b/src/frontends/kde/dlg/indexdlgdata.C @@ -3,7 +3,7 @@ --- Qt Architect 1.4-6 generated file --- File: indexdlgdata.C - Last generated: Mon Dec 4 18:21:52 2000 + Last generated: Wed Jan 24 06:43:28 2001 DO NOT EDIT!!! This file will be automatically regenerated by qtarch. All changes will be lost. diff --git a/src/frontends/kde/dlg/indexdlgdata.h b/src/frontends/kde/dlg/indexdlgdata.h index 50e401451d..07b74f4f1c 100644 --- a/src/frontends/kde/dlg/indexdlgdata.h +++ b/src/frontends/kde/dlg/indexdlgdata.h @@ -3,7 +3,7 @@ --- Qt Architect 1.4-6 generated file --- File: indexdlgdata.h - Last generated: Mon Dec 4 18:21:52 2000 + Last generated: Wed Jan 24 06:43:28 2001 DO NOT EDIT!!! This file will be automatically regenerated by qtarch. All changes will be lost. diff --git a/src/frontends/kde/dlg/lengthentry.C b/src/frontends/kde/dlg/lengthentry.C new file mode 100644 index 0000000000..3135178efd --- /dev/null +++ b/src/frontends/kde/dlg/lengthentry.C @@ -0,0 +1,198 @@ +/* + * lengthentry.C + * (C) 2001 LyX Team + * John Levon, moz@compsoc.man.ac.uk + */ + +#include "lengthentry.h" + +#include +#include +#include + +#include "support/lstrings.h" + +#include +#include + +#include "debug.h" + +/** + * Allows editing of LyXLengths + */ + +using std::endl; + +LengthEntry::LengthEntry(QWidget * parent, const char * name) + : QWidget(parent,name), value(0), box(0), topLayout(0) +{ + value = new KRestrictedLine(this, "value"); + value->setMinimumSize(value->sizeHint()); + value->setMaximumHeight(value->sizeHint().height()); + value->setValidChars("0123456789.,"); + + box = new QComboBox(this, "box"); + box->insertItem(_("Centimetres")); + box->insertItem(_("Inches")); + box->insertItem(_("Points")); + box->insertItem(_("Millimetres")); + box->insertItem(_("Picas")); + box->insertItem(_("ex units")); + box->insertItem(_("em units")); + box->insertItem(_("Scaled points")); + box->insertItem(_("Big/PS points")); + box->insertItem(_("Didot points")); + box->insertItem(_("Cicero points")); + box->setMinimumSize(box->sizeHint()); + box->setMaximumHeight(box->sizeHint().height()); + + topLayout = new QVBoxLayout(this, 10); + QHBoxLayout *tmp = new QHBoxLayout(); + topLayout->addLayout(tmp); + + tmp->addStretch(1); + tmp->addWidget(value, 1); + tmp->addStretch(1); + tmp->addSpacing(5); + tmp->addWidget(box, 2); + tmp->addStretch(1); +} + +LengthEntry::~LengthEntry() +{ +} + +const string LengthEntry::getLengthStr() const +{ + if (value->text() == "") + return string(""); + + double val = getValue(); + + return tostr(val) + getStrUnits(); +} + +double LengthEntry::getValue() const +{ + return strToDbl(value->text()); +} + +const string LengthEntry::getStrUnits() const +{ + switch (box->currentItem()) { + case 0: return string("cm"); + case 1: return string("in"); + case 2: return string("pt"); + case 3: return string("mm"); + case 4: return string("pc"); + case 5: return string("ex"); + case 6: return string("em"); + case 7: return string("sp"); + case 8: return string("bp"); + case 9: return string("dd"); + case 10: return string("cc"); + default: + lyxerr[Debug::GUI] << + "LengthEntry: Unknown combo choice " << box->currentItem() << endl; + } + return string(""); +} + +LyXLength::UNIT LengthEntry::getUnits() 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; + default: + lyxerr[Debug::GUI] << + "LengthEntry: Unknown combo choice " << box->currentItem() << endl; + } + return LyXLength::UNIT_NONE; +} + +bool LengthEntry::setFromLengthStr(const string & str) +{ + string units; + string val; + + lyxerr[Debug::GUI] << "setFromLengthStr: " << str << endl; + + string::size_type i = str.find_first_not_of("0123456789.,"); + + setValue(strToDbl(str.substr(0, i))); + + if (i == string::npos) + return true; + + return setUnits(str.substr(i)); +} + +void LengthEntry::setValue(double val) +{ + value->setText(tostr(val).c_str()); +} + +void LengthEntry::setValue(const string & str) +{ + value->setText(str.c_str()); +} + +bool LengthEntry::setUnits(const string & str) +{ + if (str == "cm") { setUnits(LyXLength::CM); + } else if (str == "in") { setUnits(LyXLength::IN); + } else if (str == "pt") { setUnits(LyXLength::PT); + } else if (str == "mm") { setUnits(LyXLength::MM); + } else if (str == "pc") { setUnits(LyXLength::PC); + } else if (str == "ex") { setUnits(LyXLength::EX); + } else if (str == "em") { setUnits(LyXLength::EM); + } else if (str == "sp") { setUnits(LyXLength::SP); + } else if (str == "bp") { setUnits(LyXLength::BP); + } else if (str == "dd") { setUnits(LyXLength::DD); + } else if (str == "cc") { setUnits(LyXLength::CC); + } else { + lyxerr[Debug::GUI] << + "LengthEntry: Unknown unit " << str << endl; + box->setCurrentItem(0); + return false; + } + return true; +} + +bool LengthEntry::setUnits(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(0); break; + case LyXLength::UNIT_NONE: box->setCurrentItem(0); break; + default: + lyxerr[Debug::GUI] << "Unknown unit " << long(unit) << endl; + return false; + } + return true; +} + +void LengthEntry::setEnabled(bool enable) +{ + box->setEnabled(enable); + value->setEnabled(enable); +} diff --git a/src/frontends/kde/dlg/lengthentry.h b/src/frontends/kde/dlg/lengthentry.h new file mode 100644 index 0000000000..54fde3614e --- /dev/null +++ b/src/frontends/kde/dlg/lengthentry.h @@ -0,0 +1,76 @@ +/* + * lengthentry.h + * (C) 2001 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 LENGTHENTRY_H +#define LENGTHENTRY_H + +#include + +#include "vspace.h" + +class QVBoxLayout; +class KRestrictedLine; +class QComboBox; + +#include "boost/utility.hpp" + +/** + * This widget provides a value edit and a combo box + * for LyXLengths. + */ +class LengthEntry : public QWidget, public noncopyable { + Q_OBJECT +public: + LengthEntry(QWidget * parent = 0, const char * name = 0); + + ~LengthEntry(); + + /// get length string represented + const string getLengthStr() const; + + /// get the value + double getValue() const; + + /// get the units as a string + const string getStrUnits() const; + + /// get the units as a UNIT + LyXLength::UNIT getUnits() const; + + /// set from a length string + bool setFromLengthStr(const string & str); + + /// set the value + void setValue(double value); + + /// set the value by a string + void setValue(const string & str); + + /// set the units from string e.g. "mm" + bool setUnits(const string & str); + + /// set the units from a UNIT + bool setUnits(LyXLength::UNIT unit); + + /// enable/disable + virtual void setEnabled(bool enable); + +private: + KRestrictedLine *value; + QComboBox *box; + QVBoxLayout *topLayout; +}; + +#endif diff --git a/src/frontends/kde/dlg/moc/Makefile.am b/src/frontends/kde/dlg/moc/Makefile.am index 57b92d08e5..736b032456 100644 --- a/src/frontends/kde/dlg/moc/Makefile.am +++ b/src/frontends/kde/dlg/moc/Makefile.am @@ -6,6 +6,12 @@ INCLUDES = -I${top_srcdir}/src/ -I${top_srcdir}/src/frontends/ \ ${FRONTEND_INCLUDES} ${BOOST_INCLUDES} libkdedlgmoc_la_SOURCES = copyrightdlgdata_moc.C \ + docdlgdata_moc.C \ + docsettingsdlgdata_moc.C \ + docgeometrydlgdata_moc.C \ + doclanguagedlgdata_moc.C \ + docextradlgdata_moc.C \ + docbulletsdlgdata_moc.C \ indexdlgdata_moc.C \ paradlgdata_moc.C \ parageneraldlgdata_moc.C \ @@ -15,7 +21,8 @@ libkdedlgmoc_la_SOURCES = copyrightdlgdata_moc.C \ printdlgdata_moc.C \ tabcreatedlgdata_moc.C \ emptytable_moc.C \ - tabstack_moc.C + tabstack_moc.C \ + lengthentry_moc.C DISTCLEANFILES = $(libkdedlgmoc_la_SOURCES) *.orig *.rej *~ *.bak core @@ -25,6 +32,18 @@ ETAGS_ARGS = --lang=c++ copyrightdlgdata_moc.C: ../copyrightdlgdata.h $(MOC) $< -o $@ +docdlgdata_moc.C: ../docdlgdata.h + $(MOC) $< -o $@ +docsettingsdlgdata_moc.C: ../docsettingsdlgdata.h + $(MOC) $< -o $@ +docgeometrydlgdata_moc.C: ../docgeometrydlgdata.h + $(MOC) $< -o $@ +doclanguagedlgdata_moc.C: ../doclanguagedlgdata.h + $(MOC) $< -o $@ +docextradlgdata_moc.C: ../docextradlgdata.h + $(MOC) $< -o $@ +docbulletsdlgdata_moc.C: ../docbulletsdlgdata.h + $(MOC) $< -o $@ emptytable_moc.C: ../emptytable.h $(MOC) $< -o $@ indexdlgdata_moc.C: ../indexdlgdata.h @@ -45,3 +64,5 @@ tabcreatedlgdata_moc.C: ../tabcreatedlgdata.h $(MOC) $< -o $@ tabstack_moc.C: ../tabstack.h $(MOC) $< -o $@ +lengthentry_moc.C: ../lengthentry.h + $(MOC) $< -o $@ diff --git a/src/frontends/kde/dlg/paraabovedlgdata.C b/src/frontends/kde/dlg/paraabovedlgdata.C index 43e1099b02..dd11fe5ece 100644 --- a/src/frontends/kde/dlg/paraabovedlgdata.C +++ b/src/frontends/kde/dlg/paraabovedlgdata.C @@ -3,7 +3,7 @@ --- Qt Architect 1.4-6 generated file --- File: paraabovedlgdata.C - Last generated: Mon Dec 4 18:21:59 2000 + Last generated: Wed Jan 24 06:43:38 2001 DO NOT EDIT!!! This file will be automatically regenerated by qtarch. All changes will be lost. @@ -29,7 +29,7 @@ ParaAboveDialogData::ParaAboveDialogData Inherited( parent, name, 0 ) { pagebreakabove = new QCheckBox( this, "pagebreakabove" ); - pagebreakabove->setGeometry( 5, 5, 305, 73 ); + pagebreakabove->setGeometry( 5, 5, 228, 67 ); pagebreakabove->setMinimumSize( 0, 0 ); pagebreakabove->setMaximumSize( 32767, 32767 ); pagebreakabove->setFocusPolicy( QWidget::TabFocus ); @@ -42,7 +42,7 @@ ParaAboveDialogData::ParaAboveDialogData pagebreakabove->setChecked( false ); keepabove = new QCheckBox( this, "keepabove" ); - keepabove->setGeometry( 5, 83, 305, 73 ); + keepabove->setGeometry( 5, 77, 228, 66 ); keepabove->setMinimumSize( 0, 0 ); keepabove->setMaximumSize( 32767, 32767 ); keepabove->setFocusPolicy( QWidget::TabFocus ); @@ -56,7 +56,7 @@ ParaAboveDialogData::ParaAboveDialogData QLabel* qtarch_abovelabel; qtarch_abovelabel = new QLabel( this, "abovelabel" ); - qtarch_abovelabel->setGeometry( 5, 161, 100, 36 ); + qtarch_abovelabel->setGeometry( 5, 148, 113, 67 ); qtarch_abovelabel->setMinimumSize( 0, 0 ); qtarch_abovelabel->setMaximumSize( 32767, 32767 ); qtarch_abovelabel->setFocusPolicy( QWidget::NoFocus ); @@ -72,7 +72,7 @@ ParaAboveDialogData::ParaAboveDialogData qtarch_abovelabel->setMargin( -1 ); spaceabove = new QComboBox( FALSE, this, "spaceabove" ); - spaceabove->setGeometry( 110, 161, 200, 36 ); + spaceabove->setGeometry( 235, 148, 113, 67 ); spaceabove->setMinimumSize( 0, 0 ); spaceabove->setMaximumSize( 32767, 32767 ); connect( spaceabove, SIGNAL(highlighted(int)), SLOT(spaceaboveHighlighted(int)) ); @@ -87,7 +87,7 @@ ParaAboveDialogData::ParaAboveDialogData QLabel* qtarch_ValueLabel; qtarch_ValueLabel = new QLabel( this, "ValueLabel" ); - qtarch_ValueLabel->setGeometry( 5, 202, 58, 24 ); + qtarch_ValueLabel->setGeometry( 61, 220, 96, 67 ); qtarch_ValueLabel->setMinimumSize( 0, 0 ); qtarch_ValueLabel->setMaximumSize( 32767, 32767 ); qtarch_ValueLabel->setFocusPolicy( QWidget::NoFocus ); @@ -104,7 +104,7 @@ ParaAboveDialogData::ParaAboveDialogData QLabel* qtarch_Label_14; qtarch_Label_14 = new QLabel( this, "Label_14" ); - qtarch_Label_14->setGeometry( 5, 231, 58, 25 ); + qtarch_Label_14->setGeometry( 61, 292, 96, 66 ); qtarch_Label_14->setMinimumSize( 0, 0 ); qtarch_Label_14->setMaximumSize( 32767, 32767 ); qtarch_Label_14->setFocusPolicy( QWidget::NoFocus ); @@ -121,7 +121,7 @@ ParaAboveDialogData::ParaAboveDialogData QLabel* qtarch_aboveminuslabel; qtarch_aboveminuslabel = new QLabel( this, "aboveminuslabel" ); - qtarch_aboveminuslabel->setGeometry( 5, 261, 58, 24 ); + qtarch_aboveminuslabel->setGeometry( 61, 363, 96, 67 ); qtarch_aboveminuslabel->setMinimumSize( 0, 0 ); qtarch_aboveminuslabel->setMaximumSize( 32767, 32767 ); qtarch_aboveminuslabel->setFocusPolicy( QWidget::NoFocus ); @@ -136,86 +136,32 @@ ParaAboveDialogData::ParaAboveDialogData qtarch_aboveminuslabel->setAlignment( 289 ); qtarch_aboveminuslabel->setMargin( -1 ); - spaceabovevalue = new KRestrictedLine( this, "spaceabovevalue" ); - spaceabovevalue->setGeometry( 68, 202, 3, 24 ); + spaceabovevalue = new LengthEntry( this, "spaceabovevalue" ); + spaceabovevalue->setGeometry( 217, 220, 187, 67 ); spaceabovevalue->setMinimumSize( 0, 0 ); spaceabovevalue->setMaximumSize( 32767, 32767 ); - spaceabovevalue->setFocusPolicy( QWidget::StrongFocus ); - spaceabovevalue->setBackgroundMode( QWidget::PaletteBase ); + spaceabovevalue->setFocusPolicy( QWidget::NoFocus ); + spaceabovevalue->setBackgroundMode( QWidget::PaletteBackground ); spaceabovevalue->setFontPropagation( QWidget::NoChildren ); spaceabovevalue->setPalettePropagation( QWidget::NoChildren ); - spaceabovevalue->setText( "" ); - spaceabovevalue->setMaxLength( 8 ); - spaceabovevalue->setFrame( QLineEdit::Normal ); - spaceabovevalue->setFrame( true ); - spaceabovevalue->setValidChars( "0123456789.," ); - spaceaboveplus = new KRestrictedLine( this, "spaceaboveplus" ); - spaceaboveplus->setGeometry( 68, 231, 3, 25 ); + spaceaboveplus = new LengthEntry( this, "spaceaboveplus" ); + spaceaboveplus->setGeometry( 217, 292, 187, 66 ); spaceaboveplus->setMinimumSize( 0, 0 ); spaceaboveplus->setMaximumSize( 32767, 32767 ); - spaceaboveplus->setFocusPolicy( QWidget::StrongFocus ); - spaceaboveplus->setBackgroundMode( QWidget::PaletteBase ); + spaceaboveplus->setFocusPolicy( QWidget::NoFocus ); + spaceaboveplus->setBackgroundMode( QWidget::PaletteBackground ); spaceaboveplus->setFontPropagation( QWidget::NoChildren ); spaceaboveplus->setPalettePropagation( QWidget::NoChildren ); - spaceaboveplus->setText( "" ); - spaceaboveplus->setMaxLength( 8 ); - spaceaboveplus->setFrame( QLineEdit::Normal ); - spaceaboveplus->setFrame( true ); - spaceaboveplus->setValidChars( "0123456789.," ); - spaceaboveminus = new KRestrictedLine( this, "spaceaboveminus" ); - spaceaboveminus->setGeometry( 68, 261, 3, 24 ); + spaceaboveminus = new LengthEntry( this, "spaceaboveminus" ); + spaceaboveminus->setGeometry( 217, 363, 187, 67 ); spaceaboveminus->setMinimumSize( 0, 0 ); spaceaboveminus->setMaximumSize( 32767, 32767 ); - spaceaboveminus->setFocusPolicy( QWidget::StrongFocus ); - spaceaboveminus->setBackgroundMode( QWidget::PaletteBase ); + spaceaboveminus->setFocusPolicy( QWidget::NoFocus ); + spaceaboveminus->setBackgroundMode( QWidget::PaletteBackground ); spaceaboveminus->setFontPropagation( QWidget::NoChildren ); spaceaboveminus->setPalettePropagation( QWidget::NoChildren ); - spaceaboveminus->setText( "" ); - spaceaboveminus->setMaxLength( 8 ); - spaceaboveminus->setFrame( QLineEdit::Normal ); - spaceaboveminus->setFrame( true ); - spaceaboveminus->setValidChars( "0123456789.," ); - - spaceabovevalueunits = new QComboBox( FALSE, this, "spaceabovevalueunits" ); - spaceabovevalueunits->setGeometry( 76, 202, 234, 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 ); - - spaceaboveplusunits = new QComboBox( FALSE, this, "spaceaboveplusunits" ); - spaceaboveplusunits->setGeometry( 76, 231, 234, 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 ); - - spaceaboveminusunits = new QComboBox( FALSE, this, "spaceaboveminusunits" ); - spaceaboveminusunits->setGeometry( 76, 261, 234, 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 ); if (pagebreakabove->sizeHint().width()!=-1) pagebreakabove->setMinimumWidth(pagebreakabove->sizeHint().width()); @@ -263,71 +209,58 @@ ParaAboveDialogData::ParaAboveDialogData 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 (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 (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 (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 (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 (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()); QBoxLayout* qtarch_layout_1 = new QBoxLayout( this, QBoxLayout::TopToBottom, 5, 5, NULL ); qtarch_layout_1->addStrut( 0 ); - qtarch_layout_1->addWidget( pagebreakabove, 2, 1 ); - qtarch_layout_1->addWidget( keepabove, 2, 1 ); + QBoxLayout* qtarch_layout_1_1 = new QBoxLayout( QBoxLayout::LeftToRight, 5, NULL ); + qtarch_layout_1->addLayout( qtarch_layout_1_1, 1 ); + qtarch_layout_1_1->addStrut( 0 ); + qtarch_layout_1_1->addWidget( pagebreakabove, 1, 33 ); + qtarch_layout_1_1->addStretch( 1 ); + QBoxLayout* qtarch_layout_1_2 = new QBoxLayout( QBoxLayout::LeftToRight, 5, NULL ); + qtarch_layout_1->addLayout( qtarch_layout_1_2, 1 ); + qtarch_layout_1_2->addStrut( 0 ); + qtarch_layout_1_2->addWidget( keepabove, 1, 33 ); + qtarch_layout_1_2->addStretch( 1 ); QBoxLayout* qtarch_layout_1_3 = new QBoxLayout( QBoxLayout::LeftToRight, 5, NULL ); qtarch_layout_1->addLayout( qtarch_layout_1_3, 1 ); qtarch_layout_1_3->addStrut( 0 ); - qtarch_layout_1_3->addWidget( qtarch_abovelabel, 1, 1 ); - qtarch_layout_1_3->addWidget( spaceabove, 2, 36 ); - QGridLayout* qtarch_layout_1_4 = new QGridLayout( 3, 3, 5, NULL ); - qtarch_layout_1->addLayout( qtarch_layout_1_4, 2 ); - qtarch_layout_1_4->addColSpacing( 0, 1 ); + qtarch_layout_1_3->addWidget( qtarch_abovelabel, 1, 33 ); + qtarch_layout_1_3->addStretch( 1 ); + qtarch_layout_1_3->addWidget( spaceabove, 1, 33 ); + qtarch_layout_1_3->addStretch( 1 ); + QGridLayout* qtarch_layout_1_4 = new QGridLayout( 3, 5, 5, NULL ); + qtarch_layout_1->addLayout( qtarch_layout_1_4, 3 ); + qtarch_layout_1_4->addColSpacing( 0, 5 ); qtarch_layout_1_4->setColStretch( 0, 1 ); - qtarch_layout_1_4->addColSpacing( 1, 3 ); - qtarch_layout_1_4->setColStretch( 1, 0 ); + qtarch_layout_1_4->addColSpacing( 1, 5 ); + qtarch_layout_1_4->setColStretch( 1, 2 ); qtarch_layout_1_4->addColSpacing( 2, 5 ); - qtarch_layout_1_4->setColStretch( 2, 4 ); + qtarch_layout_1_4->setColStretch( 2, 1 ); + qtarch_layout_1_4->addColSpacing( 3, 5 ); + qtarch_layout_1_4->setColStretch( 3, 4 ); + qtarch_layout_1_4->addColSpacing( 4, 5 ); + qtarch_layout_1_4->setColStretch( 4, 1 ); qtarch_layout_1_4->addRowSpacing( 0, 0 ); qtarch_layout_1_4->setRowStretch( 0, 1 ); - qtarch_layout_1_4->addWidget( qtarch_ValueLabel, 0, 0, 36 ); - qtarch_layout_1_4->addWidget( spaceabovevalue, 0, 1, 36 ); - qtarch_layout_1_4->addWidget( spaceabovevalueunits, 0, 2, 36 ); + qtarch_layout_1_4->addWidget( qtarch_ValueLabel, 0, 1, 33 ); + qtarch_layout_1_4->addWidget( spaceabovevalue, 0, 3, 33 ); qtarch_layout_1_4->addRowSpacing( 1, 0 ); qtarch_layout_1_4->setRowStretch( 1, 1 ); - qtarch_layout_1_4->addWidget( qtarch_Label_14, 1, 0, 36 ); - qtarch_layout_1_4->addWidget( spaceaboveplus, 1, 1, 36 ); - qtarch_layout_1_4->addWidget( spaceaboveplusunits, 1, 2, 36 ); + qtarch_layout_1_4->addWidget( qtarch_Label_14, 1, 1, 33 ); + qtarch_layout_1_4->addWidget( spaceaboveplus, 1, 3, 33 ); qtarch_layout_1_4->addRowSpacing( 2, 0 ); qtarch_layout_1_4->setRowStretch( 2, 1 ); - qtarch_layout_1_4->addWidget( qtarch_aboveminuslabel, 2, 0, 36 ); - qtarch_layout_1_4->addWidget( spaceaboveminus, 2, 1, 36 ); - qtarch_layout_1_4->addWidget( spaceaboveminusunits, 2, 2, 36 ); - resize( 315,290 ); + qtarch_layout_1_4->addWidget( qtarch_aboveminuslabel, 2, 1, 33 ); + qtarch_layout_1_4->addWidget( spaceaboveminus, 2, 3, 33 ); + resize( 465,435 ); setMinimumSize( 0, 0 ); setMaximumSize( 32767, 32767 ); } diff --git a/src/frontends/kde/dlg/paraabovedlgdata.h b/src/frontends/kde/dlg/paraabovedlgdata.h index 3aa3608bd8..012f2b77cd 100644 --- a/src/frontends/kde/dlg/paraabovedlgdata.h +++ b/src/frontends/kde/dlg/paraabovedlgdata.h @@ -3,7 +3,7 @@ --- Qt Architect 1.4-6 generated file --- File: paraabovedlgdata.h - Last generated: Mon Dec 4 18:21:59 2000 + Last generated: Wed Jan 24 06:43:38 2001 DO NOT EDIT!!! This file will be automatically regenerated by qtarch. All changes will be lost. @@ -14,9 +14,9 @@ #define ParaAboveDialogData_included #include +#include "lengthentry.h" #include #include -#include class ParaAboveDialogData : public QWidget { @@ -43,12 +43,9 @@ public: QCheckBox* pagebreakabove; QCheckBox* keepabove; QComboBox* spaceabove; - KRestrictedLine* spaceabovevalue; - KRestrictedLine* spaceaboveplus; - KRestrictedLine* spaceaboveminus; - QComboBox* spaceabovevalueunits; - QComboBox* spaceaboveplusunits; - QComboBox* spaceaboveminusunits; + LengthEntry* spaceabovevalue; + LengthEntry* spaceaboveplus; + LengthEntry* spaceaboveminus; }; diff --git a/src/frontends/kde/dlg/parabelowdlgdata.C b/src/frontends/kde/dlg/parabelowdlgdata.C index a3f1e8d200..5ee57b0ff4 100644 --- a/src/frontends/kde/dlg/parabelowdlgdata.C +++ b/src/frontends/kde/dlg/parabelowdlgdata.C @@ -3,7 +3,7 @@ --- Qt Architect 1.4-6 generated file --- File: parabelowdlgdata.C - Last generated: Mon Dec 4 18:22:02 2000 + Last generated: Wed Jan 24 07:26:08 2001 DO NOT EDIT!!! This file will be automatically regenerated by qtarch. All changes will be lost. @@ -29,7 +29,7 @@ ParaBelowDialogData::ParaBelowDialogData Inherited( parent, name, 0 ) { pagebreakbelow = new QCheckBox( this, "pagebreakbelow" ); - pagebreakbelow->setGeometry( 5, 5, 305, 73 ); + pagebreakbelow->setGeometry( 5, 5, 228, 67 ); pagebreakbelow->setMinimumSize( 0, 0 ); pagebreakbelow->setMaximumSize( 32767, 32767 ); pagebreakbelow->setFocusPolicy( QWidget::TabFocus ); @@ -42,7 +42,7 @@ ParaBelowDialogData::ParaBelowDialogData pagebreakbelow->setChecked( false ); keepbelow = new QCheckBox( this, "keepbelow" ); - keepbelow->setGeometry( 5, 83, 305, 73 ); + keepbelow->setGeometry( 5, 77, 228, 66 ); keepbelow->setMinimumSize( 0, 0 ); keepbelow->setMaximumSize( 32767, 32767 ); keepbelow->setFocusPolicy( QWidget::TabFocus ); @@ -56,7 +56,7 @@ ParaBelowDialogData::ParaBelowDialogData QLabel* qtarch_belowlabel; qtarch_belowlabel = new QLabel( this, "belowlabel" ); - qtarch_belowlabel->setGeometry( 5, 161, 100, 36 ); + qtarch_belowlabel->setGeometry( 5, 148, 113, 67 ); qtarch_belowlabel->setMinimumSize( 0, 0 ); qtarch_belowlabel->setMaximumSize( 32767, 32767 ); qtarch_belowlabel->setFocusPolicy( QWidget::NoFocus ); @@ -72,7 +72,7 @@ ParaBelowDialogData::ParaBelowDialogData qtarch_belowlabel->setMargin( -1 ); spacebelow = new QComboBox( FALSE, this, "spacebelow" ); - spacebelow->setGeometry( 110, 161, 200, 36 ); + spacebelow->setGeometry( 235, 148, 113, 67 ); spacebelow->setMinimumSize( 0, 0 ); spacebelow->setMaximumSize( 32767, 32767 ); connect( spacebelow, SIGNAL(highlighted(int)), SLOT(spacebelowHighlighted(int)) ); @@ -87,7 +87,7 @@ ParaBelowDialogData::ParaBelowDialogData QLabel* qtarch_ValueLabel; qtarch_ValueLabel = new QLabel( this, "ValueLabel" ); - qtarch_ValueLabel->setGeometry( 5, 202, 58, 24 ); + qtarch_ValueLabel->setGeometry( 61, 220, 96, 67 ); qtarch_ValueLabel->setMinimumSize( 0, 0 ); qtarch_ValueLabel->setMaximumSize( 32767, 32767 ); qtarch_ValueLabel->setFocusPolicy( QWidget::NoFocus ); @@ -104,7 +104,7 @@ ParaBelowDialogData::ParaBelowDialogData QLabel* qtarch_Label_14; qtarch_Label_14 = new QLabel( this, "Label_14" ); - qtarch_Label_14->setGeometry( 5, 231, 58, 25 ); + qtarch_Label_14->setGeometry( 61, 292, 96, 66 ); qtarch_Label_14->setMinimumSize( 0, 0 ); qtarch_Label_14->setMaximumSize( 32767, 32767 ); qtarch_Label_14->setFocusPolicy( QWidget::NoFocus ); @@ -121,7 +121,7 @@ ParaBelowDialogData::ParaBelowDialogData QLabel* qtarch_belowminuslabel; qtarch_belowminuslabel = new QLabel( this, "belowminuslabel" ); - qtarch_belowminuslabel->setGeometry( 5, 261, 58, 24 ); + qtarch_belowminuslabel->setGeometry( 61, 363, 96, 67 ); qtarch_belowminuslabel->setMinimumSize( 0, 0 ); qtarch_belowminuslabel->setMaximumSize( 32767, 32767 ); qtarch_belowminuslabel->setFocusPolicy( QWidget::NoFocus ); @@ -136,86 +136,32 @@ ParaBelowDialogData::ParaBelowDialogData qtarch_belowminuslabel->setAlignment( 289 ); qtarch_belowminuslabel->setMargin( -1 ); - spacebelowvalue = new KRestrictedLine( this, "spacebelowvalue" ); - spacebelowvalue->setGeometry( 68, 202, 3, 24 ); + spacebelowvalue = new LengthEntry( this, "spacebelowvalue" ); + spacebelowvalue->setGeometry( 217, 220, 187, 67 ); spacebelowvalue->setMinimumSize( 0, 0 ); spacebelowvalue->setMaximumSize( 32767, 32767 ); - spacebelowvalue->setFocusPolicy( QWidget::StrongFocus ); - spacebelowvalue->setBackgroundMode( QWidget::PaletteBase ); + spacebelowvalue->setFocusPolicy( QWidget::NoFocus ); + spacebelowvalue->setBackgroundMode( QWidget::PaletteBackground ); spacebelowvalue->setFontPropagation( QWidget::NoChildren ); spacebelowvalue->setPalettePropagation( QWidget::NoChildren ); - spacebelowvalue->setText( "" ); - spacebelowvalue->setMaxLength( 8 ); - spacebelowvalue->setFrame( QLineEdit::Normal ); - spacebelowvalue->setFrame( true ); - spacebelowvalue->setValidChars( "0123456789.," ); - spacebelowplus = new KRestrictedLine( this, "spacebelowplus" ); - spacebelowplus->setGeometry( 68, 231, 3, 25 ); + spacebelowplus = new LengthEntry( this, "spacebelowplus" ); + spacebelowplus->setGeometry( 217, 292, 187, 66 ); spacebelowplus->setMinimumSize( 0, 0 ); spacebelowplus->setMaximumSize( 32767, 32767 ); - spacebelowplus->setFocusPolicy( QWidget::StrongFocus ); - spacebelowplus->setBackgroundMode( QWidget::PaletteBase ); + spacebelowplus->setFocusPolicy( QWidget::NoFocus ); + spacebelowplus->setBackgroundMode( QWidget::PaletteBackground ); spacebelowplus->setFontPropagation( QWidget::NoChildren ); spacebelowplus->setPalettePropagation( QWidget::NoChildren ); - spacebelowplus->setText( "" ); - spacebelowplus->setMaxLength( 8 ); - spacebelowplus->setFrame( QLineEdit::Normal ); - spacebelowplus->setFrame( true ); - spacebelowplus->setValidChars( "0123456789.," ); - spacebelowminus = new KRestrictedLine( this, "spacebelowminus" ); - spacebelowminus->setGeometry( 68, 261, 3, 24 ); + spacebelowminus = new LengthEntry( this, "spacebelowminus" ); + spacebelowminus->setGeometry( 217, 363, 187, 67 ); spacebelowminus->setMinimumSize( 0, 0 ); spacebelowminus->setMaximumSize( 32767, 32767 ); - spacebelowminus->setFocusPolicy( QWidget::StrongFocus ); - spacebelowminus->setBackgroundMode( QWidget::PaletteBase ); + spacebelowminus->setFocusPolicy( QWidget::NoFocus ); + spacebelowminus->setBackgroundMode( QWidget::PaletteBackground ); spacebelowminus->setFontPropagation( QWidget::NoChildren ); spacebelowminus->setPalettePropagation( QWidget::NoChildren ); - spacebelowminus->setText( "" ); - spacebelowminus->setMaxLength( 8 ); - spacebelowminus->setFrame( QLineEdit::Normal ); - spacebelowminus->setFrame( true ); - spacebelowminus->setValidChars( "0123456789.," ); - - spacebelowvalueunits = new QComboBox( FALSE, this, "spacebelowvalueunits" ); - spacebelowvalueunits->setGeometry( 76, 202, 234, 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, this, "spacebelowplusunits" ); - spacebelowplusunits->setGeometry( 76, 231, 234, 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, this, "spacebelowminusunits" ); - spacebelowminusunits->setGeometry( 76, 261, 234, 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 (pagebreakbelow->sizeHint().width()!=-1) pagebreakbelow->setMinimumWidth(pagebreakbelow->sizeHint().width()); @@ -263,71 +209,58 @@ ParaBelowDialogData::ParaBelowDialogData 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 (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 (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 (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 ); - qtarch_layout_1->addWidget( pagebreakbelow, 2, 1 ); - qtarch_layout_1->addWidget( keepbelow, 2, 1 ); + QBoxLayout* qtarch_layout_1_1 = new QBoxLayout( QBoxLayout::LeftToRight, 5, NULL ); + qtarch_layout_1->addLayout( qtarch_layout_1_1, 1 ); + qtarch_layout_1_1->addStrut( 0 ); + qtarch_layout_1_1->addWidget( pagebreakbelow, 1, 33 ); + qtarch_layout_1_1->addStretch( 1 ); + QBoxLayout* qtarch_layout_1_2 = new QBoxLayout( QBoxLayout::LeftToRight, 5, NULL ); + qtarch_layout_1->addLayout( qtarch_layout_1_2, 1 ); + qtarch_layout_1_2->addStrut( 0 ); + qtarch_layout_1_2->addWidget( keepbelow, 1, 33 ); + qtarch_layout_1_2->addStretch( 1 ); QBoxLayout* qtarch_layout_1_3 = new QBoxLayout( QBoxLayout::LeftToRight, 5, NULL ); qtarch_layout_1->addLayout( qtarch_layout_1_3, 1 ); qtarch_layout_1_3->addStrut( 0 ); - qtarch_layout_1_3->addWidget( qtarch_belowlabel, 1, 1 ); - qtarch_layout_1_3->addWidget( spacebelow, 2, 36 ); - QGridLayout* qtarch_layout_1_4 = new QGridLayout( 3, 3, 5, NULL ); - qtarch_layout_1->addLayout( qtarch_layout_1_4, 2 ); - qtarch_layout_1_4->addColSpacing( 0, 1 ); + qtarch_layout_1_3->addWidget( qtarch_belowlabel, 1, 33 ); + qtarch_layout_1_3->addStretch( 1 ); + qtarch_layout_1_3->addWidget( spacebelow, 1, 33 ); + qtarch_layout_1_3->addStretch( 1 ); + QGridLayout* qtarch_layout_1_4 = new QGridLayout( 3, 5, 5, NULL ); + qtarch_layout_1->addLayout( qtarch_layout_1_4, 3 ); + qtarch_layout_1_4->addColSpacing( 0, 5 ); qtarch_layout_1_4->setColStretch( 0, 1 ); - qtarch_layout_1_4->addColSpacing( 1, 3 ); - qtarch_layout_1_4->setColStretch( 1, 0 ); + qtarch_layout_1_4->addColSpacing( 1, 5 ); + qtarch_layout_1_4->setColStretch( 1, 2 ); qtarch_layout_1_4->addColSpacing( 2, 5 ); - qtarch_layout_1_4->setColStretch( 2, 4 ); + qtarch_layout_1_4->setColStretch( 2, 1 ); + qtarch_layout_1_4->addColSpacing( 3, 5 ); + qtarch_layout_1_4->setColStretch( 3, 4 ); + qtarch_layout_1_4->addColSpacing( 4, 5 ); + qtarch_layout_1_4->setColStretch( 4, 1 ); qtarch_layout_1_4->addRowSpacing( 0, 0 ); qtarch_layout_1_4->setRowStretch( 0, 1 ); - qtarch_layout_1_4->addWidget( qtarch_ValueLabel, 0, 0, 36 ); - qtarch_layout_1_4->addWidget( spacebelowvalue, 0, 1, 36 ); - qtarch_layout_1_4->addWidget( spacebelowvalueunits, 0, 2, 36 ); + qtarch_layout_1_4->addWidget( qtarch_ValueLabel, 0, 1, 33 ); + qtarch_layout_1_4->addWidget( spacebelowvalue, 0, 3, 33 ); qtarch_layout_1_4->addRowSpacing( 1, 0 ); qtarch_layout_1_4->setRowStretch( 1, 1 ); - qtarch_layout_1_4->addWidget( qtarch_Label_14, 1, 0, 36 ); - qtarch_layout_1_4->addWidget( spacebelowplus, 1, 1, 36 ); - qtarch_layout_1_4->addWidget( spacebelowplusunits, 1, 2, 36 ); + qtarch_layout_1_4->addWidget( qtarch_Label_14, 1, 1, 33 ); + qtarch_layout_1_4->addWidget( spacebelowplus, 1, 3, 33 ); qtarch_layout_1_4->addRowSpacing( 2, 0 ); qtarch_layout_1_4->setRowStretch( 2, 1 ); - qtarch_layout_1_4->addWidget( qtarch_belowminuslabel, 2, 0, 36 ); - qtarch_layout_1_4->addWidget( spacebelowminus, 2, 1, 36 ); - qtarch_layout_1_4->addWidget( spacebelowminusunits, 2, 2, 36 ); - resize( 315,290 ); + qtarch_layout_1_4->addWidget( qtarch_belowminuslabel, 2, 1, 33 ); + qtarch_layout_1_4->addWidget( spacebelowminus, 2, 3, 33 ); + resize( 465,435 ); setMinimumSize( 0, 0 ); setMaximumSize( 32767, 32767 ); } diff --git a/src/frontends/kde/dlg/parabelowdlgdata.h b/src/frontends/kde/dlg/parabelowdlgdata.h index a32fc5b407..27504472c8 100644 --- a/src/frontends/kde/dlg/parabelowdlgdata.h +++ b/src/frontends/kde/dlg/parabelowdlgdata.h @@ -3,7 +3,7 @@ --- Qt Architect 1.4-6 generated file --- File: parabelowdlgdata.h - Last generated: Mon Dec 4 18:22:02 2000 + Last generated: Wed Jan 24 07:26:08 2001 DO NOT EDIT!!! This file will be automatically regenerated by qtarch. All changes will be lost. @@ -14,9 +14,9 @@ #define ParaBelowDialogData_included #include +#include "lengthentry.h" #include #include -#include class ParaBelowDialogData : public QWidget { @@ -43,12 +43,9 @@ public: QCheckBox* pagebreakbelow; QCheckBox* keepbelow; QComboBox* spacebelow; - KRestrictedLine* spacebelowvalue; - KRestrictedLine* spacebelowplus; - KRestrictedLine* spacebelowminus; - QComboBox* spacebelowvalueunits; - QComboBox* spacebelowplusunits; - QComboBox* spacebelowminusunits; + LengthEntry* spacebelowvalue; + LengthEntry* spacebelowplus; + LengthEntry* spacebelowminus; }; diff --git a/src/frontends/kde/dlg/paradlgdata.C b/src/frontends/kde/dlg/paradlgdata.C index 2d1c845bad..73f15d81a0 100644 --- a/src/frontends/kde/dlg/paradlgdata.C +++ b/src/frontends/kde/dlg/paradlgdata.C @@ -3,7 +3,7 @@ --- Qt Architect 1.4-6 generated file --- File: paradlgdata.C - Last generated: Tue Dec 5 17:05:19 2000 + Last generated: Wed Jan 24 06:43:33 2001 DO NOT EDIT!!! This file will be automatically regenerated by qtarch. All changes will be lost. diff --git a/src/frontends/kde/dlg/paradlgdata.h b/src/frontends/kde/dlg/paradlgdata.h index c769b71ad0..7c56072ba5 100644 --- a/src/frontends/kde/dlg/paradlgdata.h +++ b/src/frontends/kde/dlg/paradlgdata.h @@ -3,7 +3,7 @@ --- Qt Architect 1.4-6 generated file --- File: paradlgdata.h - Last generated: Tue Dec 5 17:05:19 2000 + Last generated: Wed Jan 24 06:43:33 2001 DO NOT EDIT!!! This file will be automatically regenerated by qtarch. All changes will be lost. diff --git a/src/frontends/kde/dlg/paraextradlgdata.C b/src/frontends/kde/dlg/paraextradlgdata.C index e29c443ce4..1305f2cb1a 100644 --- a/src/frontends/kde/dlg/paraextradlgdata.C +++ b/src/frontends/kde/dlg/paraextradlgdata.C @@ -3,7 +3,7 @@ --- Qt Architect 1.4-6 generated file --- File: paraextradlgdata.C - Last generated: Mon Dec 4 18:22:05 2000 + Last generated: Wed Jan 24 06:43:26 2001 DO NOT EDIT!!! This file will be automatically regenerated by qtarch. All changes will be lost. diff --git a/src/frontends/kde/dlg/paraextradlgdata.h b/src/frontends/kde/dlg/paraextradlgdata.h index f5621134da..bb761a6fca 100644 --- a/src/frontends/kde/dlg/paraextradlgdata.h +++ b/src/frontends/kde/dlg/paraextradlgdata.h @@ -3,7 +3,7 @@ --- Qt Architect 1.4-6 generated file --- File: paraextradlgdata.h - Last generated: Mon Dec 4 18:22:05 2000 + Last generated: Wed Jan 24 06:43:26 2001 DO NOT EDIT!!! This file will be automatically regenerated by qtarch. All changes will be lost. diff --git a/src/frontends/kde/dlg/parageneraldlgdata.C b/src/frontends/kde/dlg/parageneraldlgdata.C index 3698f2d281..2f5d640fd8 100644 --- a/src/frontends/kde/dlg/parageneraldlgdata.C +++ b/src/frontends/kde/dlg/parageneraldlgdata.C @@ -3,7 +3,7 @@ --- Qt Architect 1.4-6 generated file --- File: parageneraldlgdata.C - Last generated: Mon Dec 4 18:21:57 2000 + Last generated: Wed Jan 24 06:43:30 2001 DO NOT EDIT!!! This file will be automatically regenerated by qtarch. All changes will be lost. diff --git a/src/frontends/kde/dlg/parageneraldlgdata.h b/src/frontends/kde/dlg/parageneraldlgdata.h index a4d645b733..1b3994e7ae 100644 --- a/src/frontends/kde/dlg/parageneraldlgdata.h +++ b/src/frontends/kde/dlg/parageneraldlgdata.h @@ -3,7 +3,7 @@ --- Qt Architect 1.4-6 generated file --- File: parageneraldlgdata.h - Last generated: Mon Dec 4 18:21:57 2000 + Last generated: Wed Jan 24 06:43:30 2001 DO NOT EDIT!!! This file will be automatically regenerated by qtarch. All changes will be lost. diff --git a/src/frontends/kde/dlg/printdlgdata.C b/src/frontends/kde/dlg/printdlgdata.C index d18959d2ba..7d523be9a6 100644 --- a/src/frontends/kde/dlg/printdlgdata.C +++ b/src/frontends/kde/dlg/printdlgdata.C @@ -3,7 +3,7 @@ --- Qt Architect 1.4-6 generated file --- File: printdlgdata.C - Last generated: Mon Dec 4 18:22:08 2000 + Last generated: Wed Jan 24 06:43:35 2001 DO NOT EDIT!!! This file will be automatically regenerated by qtarch. All changes will be lost. diff --git a/src/frontends/kde/dlg/printdlgdata.h b/src/frontends/kde/dlg/printdlgdata.h index 511ec19db1..75bf951904 100644 --- a/src/frontends/kde/dlg/printdlgdata.h +++ b/src/frontends/kde/dlg/printdlgdata.h @@ -3,7 +3,7 @@ --- Qt Architect 1.4-6 generated file --- File: printdlgdata.h - Last generated: Mon Dec 4 18:22:08 2000 + Last generated: Wed Jan 24 06:43:35 2001 DO NOT EDIT!!! This file will be automatically regenerated by qtarch. All changes will be lost. diff --git a/src/frontends/kde/dlg/tabcreatedlgdata.C b/src/frontends/kde/dlg/tabcreatedlgdata.C index 9312257dc8..b335eb0dc8 100644 --- a/src/frontends/kde/dlg/tabcreatedlgdata.C +++ b/src/frontends/kde/dlg/tabcreatedlgdata.C @@ -3,7 +3,7 @@ --- Qt Architect 1.4-6 generated file --- File: tabcreatedlgdata.C - Last generated: Mon Dec 4 18:22:14 2000 + Last generated: Wed Jan 24 06:43:40 2001 DO NOT EDIT!!! This file will be automatically regenerated by qtarch. All changes will be lost. diff --git a/src/frontends/kde/dlg/tabcreatedlgdata.h b/src/frontends/kde/dlg/tabcreatedlgdata.h index 6616d03ee5..11ddf21779 100644 --- a/src/frontends/kde/dlg/tabcreatedlgdata.h +++ b/src/frontends/kde/dlg/tabcreatedlgdata.h @@ -3,7 +3,7 @@ --- Qt Architect 1.4-6 generated file --- File: tabcreatedlgdata.h - Last generated: Mon Dec 4 18:22:14 2000 + Last generated: Wed Jan 24 06:43:40 2001 DO NOT EDIT!!! This file will be automatically regenerated by qtarch. All changes will be lost. diff --git a/src/frontends/kde/dlg/tabstack.C b/src/frontends/kde/dlg/tabstack.C index 14e2841f79..787c7eab6e 100644 --- a/src/frontends/kde/dlg/tabstack.C +++ b/src/frontends/kde/dlg/tabstack.C @@ -1,21 +1,12 @@ /* * tabstack.C - * (C) 2000 LyX Team + * (C) 2001 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 "tabstack.h" -#include "qlayout.h" +#include "qlayout.h" #include "qwidgetstack.h" #include "qtabbar.h" #include "qpainter.h" @@ -25,24 +16,78 @@ */ TabStack::TabStack(QWidget * parent, const char * name) - : QWidget(parent,name), tabs(0), stack(0) + : QWidget(parent,name), tabs(0), stack(0), topLayout(0) { stack = new QWidgetStack(this, "stack"); tabs = new QTabBar(this, "tabbar"); connect(tabs, SIGNAL(selected(int)), this, SLOT(selected(int))); - - topLayout = new QHBoxLayout(this, 1); - - layout = new QVBoxLayout(); - topLayout->addLayout(layout); - layout->addWidget(tabs, 0); - layout->addWidget(stack, 1); } TabStack::~TabStack() { } +void TabStack::show() +{ + doLayout(); + QWidget::show(); +} + +void TabStack::doLayout() +{ + const int margin = 6; + + delete topLayout; + topLayout = new QBoxLayout(this, QBoxLayout::Down); + + topLayout->addSpacing(margin); + + QBoxLayout * tmp = new QBoxLayout(QBoxLayout::LeftToRight); + topLayout->addLayout(tmp, 0); + tmp->addSpacing(margin); + tmp->addWidget(tabs, 0); + tmp->addStretch(1); + tmp->addSpacing(margin + 2); + + tmp = new QBoxLayout(QBoxLayout::LeftToRight); + topLayout->addLayout(tmp, 1); + tmp->addSpacing(margin + 1); + tmp->addWidget(stack, 1); + tmp->addSpacing(margin + 2); + + topLayout->addSpacing(margin); + + topLayout->activate(); +} + +void TabStack::paintEvent(QPaintEvent *) +{ + if (!tabs) + return; + + QPainter p; + p.begin(this); + + QRect s(stack->geometry()); + + QCOORD t = s.top() - 1; + QCOORD b = s.bottom() + 2; + QCOORD r = s.right() + 2; + QCOORD l = s.left() - 1; + + p.setPen(colorGroup().light()); + p.drawLine(l, t, r - 1, t); + p.drawLine(l, t + 1, l, b); + p.setPen(black); + p.drawLine(r, b, l,b); + p.drawLine(r, b-1, r, t); + p.setPen(colorGroup().dark()); + p.drawLine(l+1, b-1, r-1, b-1); + p.drawLine(r-1, b-2, r-1, t+1); + + p.end(); +} + int TabStack::addTabPage(QWidget *page, const char *label) { QTab *tab = new QTab(); @@ -63,7 +108,7 @@ void TabStack::setTabPageEnabled(int id, bool enable) bool TabStack::isTabPageEnabled(int id) const { return tabs->isTabEnabled(id); -} +} void TabStack::setCurrentTabPage(int id) { @@ -81,33 +126,3 @@ void TabStack::selected(int id) tabs->setCurrentTab(id); stack->raiseWidget(id); } - -void TabStack::paintEvent(QPaintEvent *) -{ - if (!tabs) - return; - - QPainter p; - p.begin(this); - QRect geom(stack->geometry()); - - QCOORD top = geom.top() - 1; - QCOORD bottom = geom.bottom() + 2; - QCOORD right = geom.right() + 2; - QCOORD left = geom.left() - 1; - - p.setPen(white); - p.drawLine(left, top, right - 1, top); - p.drawLine(left, top + 1, left, bottom); - p.setPen(black); - p.drawLine(right, bottom, left, bottom); - p.drawLine(right, bottom-1, right, top); - p.setPen(colorGroup().dark()); - p.drawLine(left+1, bottom-1, right-1, bottom-1); - p.drawLine(right-1, bottom-2, right-1, top+1); - - p.end(); - - // FIXME: do this better ? - tabs->update(); -} diff --git a/src/frontends/kde/dlg/tabstack.h b/src/frontends/kde/dlg/tabstack.h index cfb5665557..d32833db82 100644 --- a/src/frontends/kde/dlg/tabstack.h +++ b/src/frontends/kde/dlg/tabstack.h @@ -20,8 +20,7 @@ class QTabBar; class QWidgetStack; -class QHBoxLayout; -class QVBoxLayout; +class QBoxLayout; #include "boost/utility.hpp" @@ -47,17 +46,24 @@ public: /// which tab page is currently on top virtual int currentTabPage(void) const; +public slots: + /// show the widget + virtual void show(void); + protected slots: + /// a tab page has been selected virtual void selected(int); -protected: + /// paint widget virtual void paintEvent(QPaintEvent *); - + private: + /// set up layout + void doLayout(void); + QTabBar *tabs; QWidgetStack *stack; - QHBoxLayout *topLayout; - QVBoxLayout *layout; + QBoxLayout *topLayout; }; #endif diff --git a/src/frontends/kde/docdlg.C b/src/frontends/kde/docdlg.C new file mode 100644 index 0000000000..f0ae69d7ca --- /dev/null +++ b/src/frontends/kde/docdlg.C @@ -0,0 +1,498 @@ +/* + * docdlg.C + * (C) 2001 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 + +#include "docdlg.h" + +#include "layout.h" +#include "tex-strings.h" +#include "bufferparams.h" + +#include "dlg/helpers.h" + +#include "gettext.h" +#include "debug.h" + +#ifdef CXX_WORKING_NAMESPACES +using kde_helpers::setSizeHint; +using kde_helpers::setComboFromStr; +#endif + +using std::endl; + +DocDialog::DocDialog(FormDocument *form, QWidget *parent, const char *name, bool, WFlags) + : DocDialogData(parent,name), form_(form) +{ + setCaption(name); + + settings = new DocSettingsDialogData(this, "settings"); + extra = new DocExtraDialogData(this, "extra"); + geometry = new DocGeometryDialogData(this, "geometry"); + language = new DocLanguageDialogData(this, "language"); + bullets = new DocBulletsDialogData(this, "bullets"); + + tabstack->addTabPage(settings, _("&Settings")); + tabstack->addTabPage(extra, _("&Extra")); + tabstack->addTabPage(geometry, _("&Geometry")); + tabstack->addTabPage(language, _("&Language")); + tabstack->addTabPage(bullets, _("&Bullets")); + + // document classes + for (LyXTextClassList::const_iterator cit = textclasslist.begin(); + cit != textclasslist.end(); ++cit) + settings->docclass->insertItem((*cit).description().c_str()); + setSizeHint(settings->docclass); + + settings->pagestyle->insertItem(_("default")); + settings->pagestyle->insertItem(_("empty")); + settings->pagestyle->insertItem(_("plain")); + settings->pagestyle->insertItem(_("headings")); + settings->pagestyle->insertItem(_("fancy")); + setSizeHint(settings->pagestyle); + + // available fonts + for (int i=0; tex_fonts[i][0]; i++) + settings->font->insertItem(tex_fonts[i]); + setSizeHint(settings->font); + + settings->fontsize->insertItem(_("default")); + settings->fontsize->insertItem(_("10 point")); + settings->fontsize->insertItem(_("11 point")); + settings->fontsize->insertItem(_("12 point")); + setSizeHint(settings->fontsize); + + settings->linespacing->insertItem(_("single")); + settings->linespacing->insertItem(_("1 1/2 spacing")); + settings->linespacing->insertItem(_("double")); + settings->linespacing->insertItem(_("custom")); + setSizeHint(settings->linespacing); + + connect(settings->linespacing, SIGNAL(highlighted(const char *)), + this, SLOT(linespacingChanged(const char *))); + + settings->skipspacing->insertItem(_("small")); + settings->skipspacing->insertItem(_("medium")); + settings->skipspacing->insertItem(_("big")); + settings->skipspacing->insertItem(_("custom")); + setSizeHint(settings->skipspacing); + + connect(settings->skipspacing, SIGNAL(highlighted(const char *)), + this, SLOT(skipspacingChanged(const char *))); + + // ps driver options + for (int i = 0; tex_graphics[i][0]; i++) + extra->psdriver->insertItem(tex_graphics[i]); + setSizeHint(extra->psdriver); + + geometry->papersize->insertItem(_("default")); + geometry->papersize->insertItem(_("US letter")); + geometry->papersize->insertItem(_("US legal")); + geometry->papersize->insertItem(_("US executive")); + geometry->papersize->insertItem("A3"); + geometry->papersize->insertItem("A4"); + geometry->papersize->insertItem("A5"); + geometry->papersize->insertItem("B3"); + geometry->papersize->insertItem("B4"); + geometry->papersize->insertItem("B5"); + setSizeHint(geometry->papersize); + + geometry->margins->insertItem(_("default")); + geometry->margins->insertItem(_("A4 small margins")); + geometry->margins->insertItem(_("A4 very small margins")); + geometry->margins->insertItem(_("A4 very wide margins")); + setSizeHint(geometry->margins); + +#ifdef DO_USE_DEFAULT_LANGUAGE + language->language->insertItem(_("default")); +#endif + for (Languages::const_iterator cit = languages.begin(); + cit != languages.end(); ++cit) + language->language->insertItem((*cit).second.lang().c_str()); + setSizeHint(language->language); + + language->encoding->insertItem(_("default")); + language->encoding->insertItem(_("auto")); + language->encoding->insertItem(_("latin1")); + language->encoding->insertItem(_("latin2")); + language->encoding->insertItem(_("latin5")); + language->encoding->insertItem(_("koi8-r")); + language->encoding->insertItem(_("koi8-u")); + language->encoding->insertItem(_("cp866")); + language->encoding->insertItem(_("cp1251")); + language->encoding->insertItem(_("iso88595")); + setSizeHint(language->encoding); + + language->quotes->insertItem(_("`text'")); + language->quotes->insertItem(_("``text''")); + language->quotes->insertItem(_("'text'")); + language->quotes->insertItem(_("''text''")); + language->quotes->insertItem(_(",text`")); + language->quotes->insertItem(_(",,text``")); + language->quotes->insertItem(_(",text'")); + language->quotes->insertItem(_(",,text''")); + language->quotes->insertItem(_("")); + language->quotes->insertItem(_("«text»")); + language->quotes->insertItem(_(">text<")); + language->quotes->insertItem(_("»text«")); + setSizeHint(language->quotes); + + /* FIXME: bullets */ + + QToolTip::add(settings->pagestyle, _("Specify header + footer style etc")); + QToolTip::add(settings->separation, _("FIXME please !")); + QToolTip::add(settings->linespacingVal, _("Custom line spacing in line units")); + QToolTip::add(settings->extraoptions, _("Additional LaTeX options")); + QToolTip::add(extra->floatplacement, _("Specify preferred order for\nplacing floats")); + QToolTip::add(extra->sectiondepth, _("How far in the (sub)sections are numbered")); + QToolTip::add(extra->tocdepth, _("How detailed the Table of Contents is")); + QToolTip::add(extra->psdriver, _("Program to produce PostScript output")); + QToolTip::add(extra->amsmath, _("FIXME please !")); + QToolTip::add(geometry->headheight, _("FIXME please !")); + QToolTip::add(geometry->headsep, _("FIXME please !")); + QToolTip::add(geometry->footskip, _("FIXME please !")); +} + +DocDialog::~DocDialog() +{ +} + +void DocDialog::closeEvent(QCloseEvent *e) +{ + form_->close(); + e->accept(); +} + +void DocDialog::setReadOnly(bool readonly) +{ + /* FIXME */ + cancel->setText(readonly ? _("&Close") : _("&Cancel")); +} + +void DocDialog::setFromParams(BufferParams const & params) +{ + if (!setComboFromStr(settings->docclass, textclasslist.DescOfClass(params.textclass))) + lyxerr[Debug::GUI] << "Couldn't set docclass " << textclasslist.DescOfClass(params.textclass) << endl; + + if (!setComboFromStr(settings->font, params.fonts)) + lyxerr[Debug::GUI] << "Couldn't set font " << params.fonts << endl; + + LyXTextClass const & tclass = textclasslist.TextClass(params.textclass); + + // opt_fontsize is a string like "10|11|12" + // FIXME: check + 1 ? + settings->fontsize->setCurrentItem(tokenPos(tclass.opt_fontsize(), '|', params.fontsize) + 1); + + // "empty|plain|headings|fancy" + // FIXME: check + 1 ? + settings->pagestyle->setCurrentItem(tokenPos(tclass.opt_pagestyle(), '|', params.pagestyle) + 1); + + settings->separation->setChecked(params.paragraph_separation == BufferParams::PARSEP_INDENT); + + int item=0; + + switch (params.getDefSkip().kind()) { + case VSpace::SMALLSKIP: item = 0; break; + case VSpace::MEDSKIP: item = 1; break; + case VSpace::BIGSKIP: item = 2; break; + case VSpace::LENGTH: item = 3; break; + default: + lyxerr[Debug::GUI] << "Unknown defskip " << int(params.getDefSkip().kind()) << endl; + } + + /* FIXME */ + settings->skipspacing->setCurrentItem(item); + //setFromLengthStr(settings->skipspacingVal, settings->skipspacingUnits, params.getDefSkip().asLyXCommand()); + + settings->sides->setChecked(params.sides == LyXTextClass::TwoSides); + settings->columns->setChecked(params.columns == 2); + + switch (params.spacing.getSpace()) { + case Spacing::Default: + case Spacing::Single: item = 0; break; + case Spacing::Onehalf: item = 1; break; + case Spacing::Double: item = 2; break; + case Spacing::Other: item = 3; break; + default: + lyxerr[Debug::GUI] << "Unknown line spacing " << int(params.spacing.getSpace()) << endl; + } + + settings->linespacing->setCurrentItem(item); + settings->linespacingVal->setEnabled(item == 3); + + if (item == 3) + settings->linespacingVal->setText(tostr(params.spacing.getValue()).c_str()); + else + settings->linespacingVal->setText(""); + + if (params.options.empty()) + settings->extraoptions->setText(""); + else + settings->extraoptions->setText(params.options.c_str()); + + // geometry page + + geometry->papersize->setCurrentItem(params.papersize2); + + geometry->margins->setCurrentItem(params.paperpackage); + + geometry->portrait->setChecked(params.orientation == BufferParams::ORIENTATION_PORTRAIT); + geometry->landscape->setChecked(params.orientation != BufferParams::ORIENTATION_PORTRAIT); + + geometry->width->setFromLengthStr(params.paperwidth); + geometry->height->setFromLengthStr(params.paperheight); + geometry->left->setFromLengthStr(params.leftmargin); + geometry->right->setFromLengthStr(params.rightmargin); + geometry->top->setFromLengthStr(params.topmargin); + geometry->bottom->setFromLengthStr(params.bottommargin); + geometry->headheight->setFromLengthStr(params.headheight); + geometry->headsep->setFromLengthStr(params.headsep); + geometry->footskip->setFromLengthStr(params.footskip); + + // language page + + if (!setComboFromStr(language->language, params.language->lang())) + lyxerr[Debug::GUI] << "Couldn't set language " << params.language->lang() << endl; + + if (!setComboFromStr(language->encoding, params.inputenc)) + lyxerr[Debug::GUI] << "Couldn't set encoding " << params.inputenc << endl; + + switch (params.quotes_language) { + case InsetQuotes::EnglishQ: item = 0; break; + case InsetQuotes::SwedishQ: item = 2; break; + case InsetQuotes::GermanQ: item = 4; break; + case InsetQuotes::PolishQ: item = 6; break; + case InsetQuotes::FrenchQ: item = 8; break; + case InsetQuotes::DanishQ: item = 10; break; + default: + lyxerr[Debug::GUI] << "Unknown quote style " << int(params.quotes_language) << endl; + } + + if (params.quotes_times == InsetQuotes::DoubleQ) + item++; + + language->quotes->setCurrentItem(item); + + // extra page + + if (!setComboFromStr(extra->psdriver, params.graphicsDriver)) + lyxerr[Debug::GUI] << "Couldn't set psdriver " << params.graphicsDriver << endl; + + extra->amsmath->setChecked(params.use_amsmath); + extra->sectiondepth->setValue(params.secnumdepth); + extra->tocdepth->setValue(params.tocdepth); + + /* FIXME */ + if (params.float_placement.empty()) + extra->floatplacement->setText(""); + else + extra->floatplacement->setText(params.float_placement.c_str()); + + /* FIXME: bullets ! */ +} + +bool DocDialog::updateParams(BufferParams & params) +{ + bool redo = false; + + params.fonts = string(settings->font->currentText()); + LyXTextClass const & tclass = textclasslist.TextClass(params.textclass); + params.fontsize = token(tclass.opt_fontsize(), '|', settings->fontsize->currentItem() - 1); + params.pagestyle = token(tclass.opt_pagestyle(), '|', settings->pagestyle->currentItem() - 1); + + // set and update class + + unsigned int const new_class = settings->docclass->currentItem(); + + if (new_class != params.textclass) { + if (!form_->changeClass(params, new_class)) { + // FIXME: error msg + // restore old class + if (!setComboFromStr(settings->docclass, textclasslist.DescOfClass(params.textclass))) + lyxerr[Debug::GUI] << "Couldn't set docclass " << textclasslist.DescOfClass(params.textclass) << endl; + } else + redo = true; + } + + // paragraph separation, skip or indent + // FIXME: what does this do + + BufferParams::PARSEP tmpsep = params.paragraph_separation; + + (settings->separation->isChecked()) + ? params.paragraph_separation = BufferParams::PARSEP_INDENT + : params.paragraph_separation = BufferParams::PARSEP_SKIP; + + redo = (tmpsep != params.paragraph_separation) || redo; + + // the skip spacing + + VSpace tmpskip; + + switch (settings->skipspacing->currentItem()) { + case 0: tmpskip = VSpace(VSpace::SMALLSKIP); break; + case 1: tmpskip = VSpace(VSpace::MEDSKIP); break; + case 2: tmpskip = VSpace(VSpace::BIGSKIP); break; + case 3: + tmpskip = VSpace(LyXGlueLength("23mm")); + /* FIXME: read glue length from skip bits !!! */ + break; + default: + lyxerr[Debug::GUI] << "Unknown skip spacing " << + settings->skipspacing->currentItem() << endl; + } + + if (tmpskip != params.getDefSkip()) { + redo = true; + params.setDefSkip(tmpskip); + } + + // columns and sides + + (settings->sides->isChecked()) + ? params.sides = LyXTextClass::TwoSides + : params.sides = LyXTextClass::OneSide; + + (settings->columns->isChecked()) + ? params.columns = 2 + : params.columns = 1; + + // line spacing + + Spacing tmpspacing = params.spacing; + + switch (settings->linespacing->currentItem()) { + case 0: params.spacing.set(Spacing::Single); break; + case 1: params.spacing.set(Spacing::Onehalf); break; + case 2: params.spacing.set(Spacing::Double); break; + case 3: + params.spacing.set(Spacing::Other, settings->linespacingVal->text()); + break; + default: + lyxerr[Debug::GUI] << "Unknown line spacing " << + settings->linespacing->currentItem(); + } + + if (tmpspacing != params.spacing) + redo = true; + + // extra options + + params.options = settings->extraoptions->text(); + + + // paper package and margin package + params.papersize2 = static_cast(geometry->papersize->currentItem()); + params.paperpackage = static_cast(geometry->margins->currentItem()); + if (geometry->landscape->isChecked()) + params.orientation = BufferParams::ORIENTATION_LANDSCAPE; + else + params.orientation = BufferParams::ORIENTATION_PORTRAIT; + + params.paperwidth = geometry->width->getLengthStr(); + params.paperheight = geometry->height->getLengthStr(); + params.leftmargin = geometry->left->getLengthStr(); + params.rightmargin = geometry->right->getLengthStr(); + params.topmargin = geometry->top->getLengthStr(); + params.bottommargin = geometry->bottom->getLengthStr(); + params.headheight = geometry->headheight->getLengthStr(); + params.headsep = geometry->headsep->getLengthStr(); + params.footskip = geometry->footskip->getLengthStr(); + + /* FIXME: is geometry required for headheight,sep,footskip ? */ + params.use_geometry = + (params.paperwidth != "" || + params.paperheight != "" || + params.leftmargin != "" || + params.rightmargin != "" || + params.topmargin != "" || + params.bottommargin != ""); + + + // language dialog + + InsetQuotes::quote_language lga = InsetQuotes::EnglishQ; + + switch (language->quotes->currentItem()) { + case 0: case 2: case 4: case 6: case 8: case 10: + params.quotes_times = InsetQuotes::SingleQ; + break; + default: + params.quotes_times = InsetQuotes::DoubleQ; + } + + switch (language->quotes->currentItem()) { + case 0: case 1: lga = InsetQuotes::EnglishQ; break; + case 2: case 3: lga = InsetQuotes::SwedishQ; break; + case 4: case 5: lga = InsetQuotes::GermanQ; break; + case 6: case 7: lga = InsetQuotes::PolishQ; break; + case 8: case 9: lga = InsetQuotes::FrenchQ; break; + case 10: case 11: lga = InsetQuotes::DanishQ; break; + default: + lyxerr[Debug::GUI] << "unknown quotes style" << + language->quotes->currentItem() << endl; + } + + params.quotes_language = lga; + + /* wow, tongue twister */ + Language const * old_language = params.language; + Language const * new_language = languages.getLanguage(language->language->currentText()); + + /* FIXME */ + if (old_language != new_language + && old_language->RightToLeft() == new_language->RightToLeft() + /*&& !lv_->buffer()->isMultiLingual()*/) { + //lv_->buffer()->ChangeLanguage(old_language, new_language); + } + + redo = (old_language != new_language) || redo; + params.language = new_language; + + params.inputenc = language->encoding->currentText(); + + // extra dialog + + params.graphicsDriver = extra->psdriver->currentText(); + params.use_amsmath = extra->amsmath->isChecked(); + + if (extra->sectiondepth->value() != params.secnumdepth) { + redo = true; + params.secnumdepth = extra->sectiondepth->value(); + } + + params.tocdepth = extra->tocdepth->value(); + + /* FIXME */ + params.float_placement = extra->floatplacement->text(); + + /* FIXME: bullets */ + + return redo; +} + +void DocDialog::linespacingChanged(const char *sel) +{ + bool custom = !strcmp(sel, _("custom")); + + settings->linespacingVal->setEnabled(custom); +} + +void DocDialog::skipspacingChanged(const char *sel) +{ + bool custom = !strcmp(sel, _("custom")); +} diff --git a/src/frontends/kde/docdlg.h b/src/frontends/kde/docdlg.h new file mode 100644 index 0000000000..5ef5464c4d --- /dev/null +++ b/src/frontends/kde/docdlg.h @@ -0,0 +1,120 @@ +/* + * docdlg.h + * (C) 2001 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 DOCDLG_H +#define DOCDLG_H + +#include +#include +#include + +#include "dlg/docsettingsdlgdata.h" +#include "dlg/docgeometrydlgdata.h" +#include "dlg/doclanguagedlgdata.h" +#include "dlg/docextradlgdata.h" +#include "dlg/docbulletsdlgdata.h" +#include "dlg/docdlgdata.h" + +#include "debug.h" + +class BufferParams; + +// to connect apply() and close() +#include "FormDocument.h" + +class DocDialog : public DocDialogData { + Q_OBJECT +public: + DocDialog(FormDocument *form, QWidget *parent=0, const char *name=0, + bool modal=false, WFlags f=0); + ~DocDialog(); + + /** + * \fn setReadOnly + * \brief set widgets read only status appropriately + */ + void setReadOnly(bool readonly); + + /** + * \fn setFromParams + * \brief set dialog widgets from buffer parameters + */ + void setFromParams(BufferParams const & params); + + /** + * \fn updateParams + * \brief update the given params object based on the dialog widgets + * + * This will update the params object. It returns true if a redo + * of the related buffer is necessary + */ + bool updateParams(BufferParams & params) const; + + /** + * \fn updateParams + * \brief update the given params object based on the dialog widgets + * + * This will update the params object. It returns true if a redo + * of the related buffer is necessary + */ + bool updateParams(BufferParams & params); + +protected: + void closeEvent(QCloseEvent *e); + +private: + /// the form + FormDocument *form_; + + /// the settings page + DocSettingsDialogData *settings; + /// the geometry page + DocGeometryDialogData *geometry; + /// the language page + DocLanguageDialogData *language; + /// the extra page + DocExtraDialogData *extra; + /// the bullets page + DocBulletsDialogData *bullets; + +private slots: + + void skipspacingChanged(const char *sel); + + void linespacingChanged(const char *sel); + + void ok_adaptor(void) { + apply_adaptor(); + form_->close(); + hide(); + } + + void apply_adaptor(void) { + form_->apply(); + } + + void restore_adaptor(void) { + // this will reset to known values + form_->update(); + } + + void cancel_adaptor(void) { + form_->close(); + hide(); + } + +}; + +#endif diff --git a/src/frontends/kde/moc/Makefile.am b/src/frontends/kde/moc/Makefile.am index d5f405d6c7..2341664339 100644 --- a/src/frontends/kde/moc/Makefile.am +++ b/src/frontends/kde/moc/Makefile.am @@ -7,6 +7,7 @@ INCLUDES = -I${top_srcdir}/src/ -I${top_srcdir}/src/frontends/ \ libkdemoc_la_SOURCES = citationdlg_moc.C \ copyrightdlg_moc.C \ + docdlg_moc.C \ indexdlg_moc.C \ paradlg_moc.C \ parageneraldlg_moc.C \ @@ -26,6 +27,8 @@ citationdlg_moc.C: ../citationdlg.h $(MOC) $< -o $@ copyrightdlg_moc.C: ../copyrightdlg.h $(MOC) $< -o $@ +docdlg_moc.C: ../docdlg.h + $(MOC) $< -o $@ indexdlg_moc.C: ../indexdlg.h $(MOC) $< -o $@ paradlg_moc.C: ../paradlg.h diff --git a/src/frontends/kde/paradlg.C b/src/frontends/kde/paradlg.C index 66f00a9b83..8c409c0194 100644 --- a/src/frontends/kde/paradlg.C +++ b/src/frontends/kde/paradlg.C @@ -16,11 +16,18 @@ #include #include "support/lstrings.h" +#include "dlg/helpers.h" +#include "dlg/lengthentry.h" + #include "paradlg.h" #include "gettext.h" #include "debug.h" +#ifdef CXX_WORKING_NAMESPACES +using kde_helpers::setSizeHint; +#endif + using std::endl; ParaDialog::ParaDialog(FormParagraph *form, QWidget *parent, const char *name, bool, WFlags) @@ -59,16 +66,10 @@ void ParaDialog::setReadOnly(bool readonly) generalpage->belowpage->spacebelow->setEnabled(!readonly); generalpage->abovepage->spaceabovevalue->setEnabled(!readonly); generalpage->belowpage->spacebelowvalue->setEnabled(!readonly); - generalpage->abovepage->spaceabovevalueunits->setEnabled(!readonly); - generalpage->belowpage->spacebelowvalueunits->setEnabled(!readonly); generalpage->abovepage->spaceaboveplus->setEnabled(!readonly); generalpage->belowpage->spacebelowplus->setEnabled(!readonly); - generalpage->abovepage->spaceaboveplusunits->setEnabled(!readonly); - generalpage->belowpage->spacebelowplusunits->setEnabled(!readonly); generalpage->abovepage->spaceaboveminus->setEnabled(!readonly); generalpage->belowpage->spacebelowminus->setEnabled(!readonly); - generalpage->abovepage->spaceaboveminusunits->setEnabled(!readonly); - generalpage->belowpage->spacebelowminusunits->setEnabled(!readonly); generalpage->block->setEnabled(!readonly); generalpage->left->setEnabled(!readonly); generalpage->right->setEnabled(!readonly); @@ -130,7 +131,7 @@ void ParaDialog::setChecks(bool labove, bool lbelow, bool pabove, bool pbelow, b void ParaDialog::setSpace(VSpace::vspace_kind kindabove, VSpace::vspace_kind kindbelow, bool keepabove, bool keepbelow) { - int item; + int item=0; switch (kindabove) { case VSpace::NONE: item = 0; break; @@ -155,83 +156,50 @@ void ParaDialog::setSpace(VSpace::vspace_kind kindabove, VSpace::vspace_kind kin generalpage->belowpage->spacebelow->setCurrentItem(item); generalpage->abovepage->spaceabovevalue->setEnabled(kindabove == VSpace::LENGTH); - generalpage->abovepage->spaceabovevalueunits->setEnabled(kindabove == VSpace::LENGTH); generalpage->abovepage->spaceaboveplus->setEnabled(kindabove == VSpace::LENGTH); - generalpage->abovepage->spaceaboveplusunits->setEnabled(kindabove == VSpace::LENGTH); generalpage->abovepage->spaceaboveminus->setEnabled(kindabove == VSpace::LENGTH); - generalpage->abovepage->spaceaboveminusunits->setEnabled(kindabove == VSpace::LENGTH); generalpage->belowpage->spacebelowvalue->setEnabled(kindbelow == VSpace::LENGTH); - generalpage->belowpage->spacebelowvalueunits->setEnabled(kindbelow == VSpace::LENGTH); generalpage->belowpage->spacebelowplus->setEnabled(kindbelow == VSpace::LENGTH); - generalpage->belowpage->spacebelowplusunits->setEnabled(kindbelow == VSpace::LENGTH); generalpage->belowpage->spacebelowminus->setEnabled(kindbelow == VSpace::LENGTH); - generalpage->belowpage->spacebelowminusunits->setEnabled(kindbelow == VSpace::LENGTH); generalpage->abovepage->keepabove->setChecked(keepabove); generalpage->belowpage->keepbelow->setChecked(keepbelow); } -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(0); 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->abovepage->spaceabovevalue->setText(""); - generalpage->abovepage->spaceaboveplus->setText(""); - generalpage->abovepage->spaceaboveminus->setText(""); - setUnits(generalpage->abovepage->spaceabovevalueunits, LyXLength::CM); - setUnits(generalpage->abovepage->spaceaboveplusunits, LyXLength::CM); - setUnits(generalpage->abovepage->spaceaboveminusunits, LyXLength::CM); - return; + generalpage->abovepage->spaceabovevalue->setValue(""); + generalpage->abovepage->spaceaboveplus->setValue(""); + generalpage->abovepage->spaceaboveminus->setValue(""); + } else { + generalpage->abovepage->spaceabovevalue->setValue(tostr(val)); + generalpage->abovepage->spaceaboveplus->setValue(tostr(plus)); + generalpage->abovepage->spaceaboveminus->setValue(tostr(minus)); } - - generalpage->abovepage->spaceabovevalue->setText(tostr(val).c_str()); - generalpage->abovepage->spaceaboveplus->setText(tostr(plus).c_str()); - generalpage->abovepage->spaceaboveminus->setText(tostr(minus).c_str()); - setUnits(generalpage->abovepage->spaceabovevalueunits, vunit); - setUnits(generalpage->abovepage->spaceaboveplusunits, punit); - setUnits(generalpage->abovepage->spaceaboveminusunits, munit); + + generalpage->abovepage->spaceabovevalue->setUnits(vunit); + generalpage->abovepage->spaceaboveplus->setUnits(punit); + generalpage->abovepage->spaceaboveminus->setUnits(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->belowpage->spacebelowvalue->setText(""); - generalpage->belowpage->spacebelowplus->setText(""); - generalpage->belowpage->spacebelowminus->setText(""); - setUnits(generalpage->belowpage->spacebelowvalueunits, LyXLength::CM); - setUnits(generalpage->belowpage->spacebelowplusunits, LyXLength::CM); - setUnits(generalpage->belowpage->spacebelowminusunits, LyXLength::CM); - return; + generalpage->belowpage->spacebelowvalue->setValue(""); + generalpage->belowpage->spacebelowplus->setValue(""); + generalpage->belowpage->spacebelowminus->setValue(""); + } else { + generalpage->belowpage->spacebelowvalue->setValue(tostr(val)); + generalpage->belowpage->spacebelowplus->setValue(tostr(plus)); + generalpage->belowpage->spacebelowminus->setValue(tostr(minus)); } - - generalpage->belowpage->spacebelowvalue->setText(tostr(val).c_str()); - generalpage->belowpage->spacebelowplus->setText(tostr(plus).c_str()); - generalpage->belowpage->spacebelowminus->setText(tostr(minus).c_str()); - setUnits(generalpage->belowpage->spacebelowvalueunits, vunit); - setUnits(generalpage->belowpage->spacebelowplusunits, punit); - setUnits(generalpage->belowpage->spacebelowminusunits, munit); + + generalpage->belowpage->spacebelowvalue->setUnits(vunit); + generalpage->belowpage->spacebelowplus->setUnits(punit); + generalpage->belowpage->spacebelowminus->setUnits(munit); } void ParaDialog::setExtra(float widthval, LyXLength::UNIT units, const string percent, int align, @@ -242,10 +210,28 @@ void ParaDialog::setExtra(float widthval, LyXLength::UNIT units, const string pe lyxerr[Debug::GUI] << "percent : $" << percent << "$ widthval " << widthval << " unit " << long(units) << endl; if (percent != "") { extrapage->widthvalue->setText(percent.c_str()); - extrapage->widthvalueunits->setCurrentItem(12); + extrapage->widthvalueunits->setCurrentItem(11); } else { + int unit = 0; extrapage->widthvalue->setText(tostr(widthval).c_str()); - setUnits(extrapage->widthvalueunits,units); + switch (units) { + case LyXLength::CM: unit = 0; break; + case LyXLength::IN: unit = 1; break; + case LyXLength::PT: unit = 2; break; + case LyXLength::MM: unit = 3; break; + case LyXLength::PC: unit = 4; break; + case LyXLength::EX: unit = 5; break; + case LyXLength::EM: unit = 6; break; + case LyXLength::SP: unit = 7; break; + case LyXLength::BP: unit = 8; break; + case LyXLength::DD: unit = 9; break; + case LyXLength::CC: unit = 10; break; + case LyXLength::MU: unit = 0; break; + case LyXLength::UNIT_NONE: unit = 0; break; + default: + lyxerr[Debug::GUI] << "Unknown unit " << long(units) << endl; + } + extrapage->widthvalueunits->setCurrentItem(unit); } } else extrapage->widthvalue->setText(""); @@ -290,35 +276,15 @@ void ParaDialog::setExtra(float widthval, LyXLength::UNIT units, const string pe } } -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; - default: - lyxerr[Debug::GUI] << "Unknown combo choice " << box->currentItem() << endl; - } - return LyXLength::UNIT_NONE; -} - LyXGlueLength ParaDialog::getAboveLength() const { LyXGlueLength len( - strToDbl(generalpage->abovepage->spaceabovevalue->text()), - getUnits(generalpage->abovepage->spaceabovevalueunits), - strToDbl(generalpage->abovepage->spaceaboveplus->text()), - getUnits(generalpage->abovepage->spaceaboveplusunits), - strToDbl(generalpage->abovepage->spaceaboveminus->text()), - getUnits(generalpage->abovepage->spaceaboveminusunits) + generalpage->abovepage->spaceabovevalue->getValue(), + generalpage->abovepage->spaceabovevalue->getUnits(), + generalpage->abovepage->spaceaboveplus->getValue(), + generalpage->abovepage->spaceaboveplus->getUnits(), + generalpage->abovepage->spaceaboveminus->getValue(), + generalpage->abovepage->spaceaboveminus->getUnits() ); return len; @@ -327,12 +293,12 @@ LyXGlueLength ParaDialog::getAboveLength() const LyXGlueLength ParaDialog::getBelowLength() const { LyXGlueLength len( - strToDbl(generalpage->belowpage->spacebelowvalue->text()), - getUnits(generalpage->belowpage->spacebelowvalueunits), - strToDbl(generalpage->belowpage->spacebelowplus->text()), - getUnits(generalpage->belowpage->spacebelowplusunits), - strToDbl(generalpage->belowpage->spacebelowminus->text()), - getUnits(generalpage->belowpage->spacebelowminusunits) + generalpage->belowpage->spacebelowvalue->getValue(), + generalpage->belowpage->spacebelowvalue->getUnits(), + generalpage->belowpage->spacebelowplus->getValue(), + generalpage->belowpage->spacebelowplus->getUnits(), + generalpage->belowpage->spacebelowminus->getValue(), + generalpage->belowpage->spacebelowminus->getUnits() ); return len; @@ -342,7 +308,24 @@ LyXLength ParaDialog::getExtraWidth() const { if (extrapage->widthvalueunits->currentItem()!=11) { - LyXLength len(strToDbl(extrapage->widthvalue->text()), getUnits(extrapage->widthvalueunits)); + LyXLength::UNIT unit = LyXLength::CM; + switch (extrapage->widthvalueunits->currentItem()) { + case 0: unit = LyXLength::CM; break; + case 1: unit = LyXLength::IN; break; + case 2: unit = LyXLength::PT; break; + case 3: unit = LyXLength::MM; break; + case 4: unit = LyXLength::PC; break; + case 5: unit = LyXLength::EX; break; + case 6: unit = LyXLength::EM; break; + case 7: unit = LyXLength::SP; break; + case 8: unit = LyXLength::BP; break; + case 9: unit = LyXLength::DD; break; + case 10: unit = LyXLength::CC; break; + case 11: unit = LyXLength::CM; break; + default: + lyxerr[Debug::GUI] << "Unknown unit " << extrapage->widthvalueunits->currentItem() << endl; + } + LyXLength len(strToDbl(extrapage->widthvalue->text()), unit); return len; } else { LyXLength len(0.0, LyXLength::UNIT_NONE); diff --git a/src/frontends/kde/paradlg.h b/src/frontends/kde/paradlg.h index 6bb1eb8ba7..276295a297 100644 --- a/src/frontends/kde/paradlg.h +++ b/src/frontends/kde/paradlg.h @@ -161,10 +161,6 @@ private: return VSpace::NONE; } - void setUnits(QComboBox *box, LyXGlueLength::UNIT unit); - - LyXLength::UNIT getUnits(QComboBox *box) const; - private slots: void ok_adaptor(void) { diff --git a/src/frontends/kde/paraextradlg.C b/src/frontends/kde/paraextradlg.C index 813d4b364d..fe819d32f5 100644 --- a/src/frontends/kde/paraextradlg.C +++ b/src/frontends/kde/paraextradlg.C @@ -10,8 +10,16 @@ #include #include "paraextradlg.h" +#include "dlg/helpers.h" + +#include + #include +#ifdef CXX_WORKING_NAMESPACES +using kde_helpers::setSizeHint; +#endif + #define Inherited ParaExtraDialogData ParaExtraDialog::ParaExtraDialog @@ -26,6 +34,7 @@ ParaExtraDialog::ParaExtraDialog type->insertItem(_("Indented paragraph")); type->insertItem(_("Minipage")); type->insertItem(_("Wrap text around floats (floatflt)")); + setSizeHint(type); widthvalueunits->insertItem(_("Centimetres")); widthvalueunits->insertItem(_("Inches")); @@ -39,9 +48,12 @@ ParaExtraDialog::ParaExtraDialog widthvalueunits->insertItem(_("Didot points")); widthvalueunits->insertItem(_("Cicero points")); widthvalueunits->insertItem(_("Percent of column")); + setSizeHint(widthvalueunits); + + QToolTip::add(hfillbetween, _("FIXME please !")); + QToolTip::add(startnewminipage, _("FIXME please !")); } - ParaExtraDialog::~ParaExtraDialog() { } diff --git a/src/frontends/kde/parageneraldlg.C b/src/frontends/kde/parageneraldlg.C index 0330276218..d08a262963 100644 --- a/src/frontends/kde/parageneraldlg.C +++ b/src/frontends/kde/parageneraldlg.C @@ -10,10 +10,18 @@ #include #include "parageneraldlg.h" +#include "dlg/helpers.h" + #include +#include + #define Inherited ParaGeneralDialogData +#ifdef CXX_WORKING_NAMESPACES +using kde_helpers::setSizeHint; +#endif + ParaGeneralDialog::ParaGeneralDialog ( QWidget* parent, @@ -26,8 +34,6 @@ ParaGeneralDialog::ParaGeneralDialog abovepage = new ParaAboveDialogData(this, "abovepage"); belowpage = new ParaBelowDialogData(this, "belowpage"); - // FIXME: free punctuation to whoever can make the value - // boxes not be overly large spacetab->addTabPage(abovepage, _("&Spacing Above")); spacetab->addTabPage(belowpage, _("Spacing &Below")); @@ -41,6 +47,7 @@ ParaGeneralDialog::ParaGeneralDialog abovepage->spaceabove->insertItem(_("Big skip")); abovepage->spaceabove->insertItem(_("VFill")); abovepage->spaceabove->insertItem(_("Length")); + setSizeHint(abovepage->spaceabove); belowpage->spacebelow->insertItem(_("None")); belowpage->spacebelow->insertItem(_("Defskip")); belowpage->spacebelow->insertItem(_("Small skip")); @@ -48,29 +55,26 @@ ParaGeneralDialog::ParaGeneralDialog belowpage->spacebelow->insertItem(_("Big skip")); belowpage->spacebelow->insertItem(_("VFill")); belowpage->spacebelow->insertItem(_("Length")); + setSizeHint(belowpage->spacebelow); + + QToolTip::add(block, _("Alignment of current paragraph")); + QToolTip::add(center, _("Alignment of current paragraph")); + QToolTip::add(left, _("Alignment of current paragraph")); + QToolTip::add(right, _("Alignment of current paragraph")); + QToolTip::add(noindent, _("No indent on first line of paragraph")); + QToolTip::add(labelwidth, _("FIXME please !")); + + QToolTip::add(abovepage->pagebreakabove, _("New page above this paragraph")); + QToolTip::add(abovepage->keepabove, _("Don't hug margin if at top of page")); + QToolTip::add(abovepage->spaceabovevalue, _("Size of extra space above paragraph")); + QToolTip::add(abovepage->spaceaboveplus, _("Maximum extra space that can be added")); + QToolTip::add(abovepage->spaceaboveminus, _("Minimum space required")); - createUnits(abovepage->spaceabovevalueunits); - createUnits(abovepage->spaceaboveplusunits); - createUnits(abovepage->spaceaboveminusunits); - createUnits(belowpage->spacebelowvalueunits); - createUnits(belowpage->spacebelowplusunits); - createUnits(belowpage->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")); + QToolTip::add(belowpage->pagebreakbelow, _("New page below this paragraph")); + QToolTip::add(belowpage->keepbelow, _("Don't hug margin if at bottom of page")); + QToolTip::add(belowpage->spacebelowvalue, _("Size of extra space below paragraph")); + QToolTip::add(belowpage->spacebelowplus, _("Maximum extra space that can be added")); + QToolTip::add(belowpage->spacebelowminus, _("Minimum space required")); } ParaGeneralDialog::~ParaGeneralDialog() @@ -80,19 +84,13 @@ ParaGeneralDialog::~ParaGeneralDialog() void ParaGeneralDialog::spaceaboveHighlighted(int val) { abovepage->spaceabovevalue->setEnabled(val == 6); - abovepage->spaceabovevalueunits->setEnabled(val == 6); abovepage->spaceaboveplus->setEnabled(val == 6); - abovepage->spaceaboveplusunits->setEnabled(val == 6); abovepage->spaceaboveminus->setEnabled(val == 6); - abovepage->spaceaboveminusunits->setEnabled(val == 6); } void ParaGeneralDialog::spacebelowHighlighted(int val) { belowpage->spacebelowvalue->setEnabled(val == 6); - belowpage->spacebelowvalueunits->setEnabled(val == 6); belowpage->spacebelowplus->setEnabled(val == 6); - belowpage->spacebelowplusunits->setEnabled(val == 6); belowpage->spacebelowminus->setEnabled(val == 6); - belowpage->spacebelowminusunits->setEnabled(val == 6); } diff --git a/src/frontends/kde/parageneraldlg.h b/src/frontends/kde/parageneraldlg.h index 372e37ecc8..562497fad2 100644 --- a/src/frontends/kde/parageneraldlg.h +++ b/src/frontends/kde/parageneraldlg.h @@ -31,7 +31,6 @@ protected slots: void spacebelowHighlighted(int); private: - void createUnits(QComboBox *box); ParaAboveDialogData *abovepage; ParaBelowDialogData *belowpage; }; diff --git a/src/frontends/kde/printdlg.C b/src/frontends/kde/printdlg.C index 6df7e0cf6a..e7bd68fef2 100644 --- a/src/frontends/kde/printdlg.C +++ b/src/frontends/kde/printdlg.C @@ -33,7 +33,7 @@ PrintDialog::PrintDialog(FormPrint *f, QWidget* parent, const char * name) 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(filename, _("Output filename (PostScript)")); QToolTip::add(browse, _("Select output filename")); } diff --git a/src/frontends/kde/refdlg.C b/src/frontends/kde/refdlg.C index ea826bd6f0..017d1d88a0 100644 --- a/src/frontends/kde/refdlg.C +++ b/src/frontends/kde/refdlg.C @@ -16,8 +16,14 @@ #include #include "refdlg.h" +#include "dlg/helpers.h" + +#ifdef CXX_WORKING_NAMESPACES +using kde_helpers::setSizeHint; +#endif + RefDialog::RefDialog(FormRef *form, QWidget *parent, const char *name, bool, WFlags) - : QDialog(parent,name,false), form_(form) + : QWidget(parent,name,0), form_(form) { setCaption(name); @@ -29,33 +35,33 @@ RefDialog::RefDialog(FormRef *form, QWidget *parent, const char *name, bool, WFl labelrefs = new QLabel(this); labelrefs->setText(_("Available References")); labelrefs->setMargin(5); - labelrefs->setMinimumSize(labelrefs->sizeHint()); + setSizeHint(labelrefs); labelrefs->setMaximumSize(labelrefs->sizeHint()); refname = new QLineEdit(this); - refname->setMinimumSize(refname->sizeHint()); + setSizeHint(refname); // FIXME: should user be able to edit this ? what's it for ? - jbl refname->setFocusPolicy(QWidget::NoFocus); reference = new QLineEdit(this); - reference->setMinimumSize(reference->sizeHint()); + setSizeHint(reference); reference->setFocusPolicy(QWidget::NoFocus); labelrefname = new QLabel(this); labelrefname->setText(_("Name :")); labelrefname->setMargin(5); - labelrefname->setMinimumSize(labelrefname->sizeHint()); + setSizeHint(labelrefname); labelrefname->setMaximumSize(labelrefname->sizeHint()); labelreference = new QLabel(this); labelreference->setText(_("Reference :")); labelreference->setMargin(5); - labelreference->setMinimumSize(labelreference->sizeHint()); + setSizeHint(labelreference); labelreference->setMaximumSize(labelreference->sizeHint()); sort = new QCheckBox(this); sort->setText(_("Sort")); - sort->setMinimumSize(sort->sizeHint()); + setSizeHint(sort); sort->setMaximumSize(sort->sizeHint()); type = new QComboBox(this); @@ -64,39 +70,42 @@ RefDialog::RefDialog(FormRef *form, QWidget *parent, const char *name, bool, WFl type->insertItem(_("Ref on page xxx")); type->insertItem(_("on page xxx")); type->insertItem(_("Pretty reference")); - type->setMinimumSize(type->sizeHint()); + setSizeHint(type); labeltype = new QLabel(this); labeltype->setText(_("Reference Type")); labeltype->setMargin(5); - labeltype->setMinimumSize(labeltype->sizeHint()); + setSizeHint(labeltype); labeltype->setMaximumSize(labeltype->sizeHint()); buttonGoto = new QPushButton(this); buttonGoto->setText(_("&Goto reference")); - buttonGoto->setMinimumSize(buttonGoto->sizeHint()); + setSizeHint(buttonGoto); buttonGoto->setMaximumSize(buttonGoto->sizeHint()); buttonUpdate = new QPushButton(this); buttonUpdate->setText(_("&Update")); - buttonUpdate->setMinimumSize(buttonUpdate->sizeHint()); + setSizeHint(buttonUpdate); buttonUpdate->setMaximumSize(buttonUpdate->sizeHint()); buttonOk = new QPushButton(this); buttonOk->setText(_("&OK")); - buttonOk->setMinimumSize(buttonOk->sizeHint()); + setSizeHint(buttonOk); buttonOk->setMaximumSize(buttonOk->sizeHint()); buttonOk->setDefault(true); buttonCancel = new QPushButton(this); buttonCancel->setText(_("&Cancel")); - buttonCancel->setMinimumSize(buttonCancel->sizeHint()); + setSizeHint(buttonCancel); buttonCancel->setMaximumSize(buttonCancel->sizeHint()); // tooltips QToolTip::add(type,_("Reference as it appears in output")); QToolTip::add(sort,_("Sort references in alphabetical order ?")); + QToolTip::add(buttonUpdate,_("Update list of references shown")); + QToolTip::add(buttonGoto,_("Jump to reference in document")); + QToolTip::add(refname,_("FIXME please !")); // layouts @@ -163,6 +172,8 @@ RefDialog::RefDialog(FormRef *form, QWidget *parent, const char *name, bool, WFl connect(buttonUpdate, SIGNAL(clicked()), this, SLOT(update_adaptor())); connect(buttonGoto, SIGNAL(clicked()), this, SLOT(goto_adaptor())); connect(buttonCancel, SIGNAL(clicked()), this, SLOT(close_adaptor())); + + resize(sizeHint()); } RefDialog::~RefDialog() diff --git a/src/frontends/kde/refdlg.h b/src/frontends/kde/refdlg.h index 679307e567..47270e38bb 100644 --- a/src/frontends/kde/refdlg.h +++ b/src/frontends/kde/refdlg.h @@ -21,7 +21,6 @@ #include "FormRef.h" -#include #include #include #include @@ -31,7 +30,7 @@ #include #include -class RefDialog : public QDialog { +class RefDialog : public QWidget { Q_OBJECT public: RefDialog(FormRef *form, QWidget *parent=0, const char *name=0, diff --git a/src/frontends/kde/tabcreatedlg.C b/src/frontends/kde/tabcreatedlg.C index ec25e47256..57a02a627d 100644 --- a/src/frontends/kde/tabcreatedlg.C +++ b/src/frontends/kde/tabcreatedlg.C @@ -8,6 +8,9 @@ #include "tabcreatedlg.h" #include "support/lstrings.h" +#include +#include + TabularCreateDialog::TabularCreateDialog (FormTabularCreate *form, QWidget *parent, const char* name) : TabularCreateDialogData(parent, name), form_(form) { @@ -19,6 +22,7 @@ TabularCreateDialog::TabularCreateDialog (FormTabularCreate *form, QWidget *pare connect(cols,SIGNAL(valueChanged(int)),table,SLOT(setNumberColumns(int))); connect(table,SIGNAL(colsChanged(unsigned int)),this,SLOT(colsChanged(unsigned int))); connect(table,SIGNAL(rowsChanged(unsigned int)),this,SLOT(rowsChanged(unsigned int))); + QToolTip::add(table, _("Drag with left mouse button to resize")); } TabularCreateDialog::~TabularCreateDialog() diff --git a/src/frontends/kde/tocdlg.C b/src/frontends/kde/tocdlg.C index 7ec38f4e4a..f30315289e 100644 --- a/src/frontends/kde/tocdlg.C +++ b/src/frontends/kde/tocdlg.C @@ -5,19 +5,25 @@ */ /*************************************************************************** - * * + * * * 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. * - * * + * (at your option) any later version. * + * * ***************************************************************************/ #include #include "tocdlg.h" +#include "dlg/helpers.h" + +#ifdef CXX_WORKING_NAMESPACES +using kde_helpers::setSizeHint; +#endif + TocDialog::TocDialog(FormToc *form, QWidget *parent, const char *name, bool, WFlags) - : QDialog(parent,name,false), form_(form) + : QWidget(parent,name,0), form_(form) { setCaption(name); setMinimumWidth(350); @@ -29,7 +35,7 @@ TocDialog::TocDialog(FormToc *form, QWidget *parent, const char *name, bool, WFl menu->insertItem(_("List of Figures")); menu->insertItem(_("List of Tables")); menu->insertItem(_("List of Algorithms")); - menu->setMinimumSize(menu->sizeHint()); + setSizeHint(menu); tree = new QListView(this); tree->setMinimumHeight(200); @@ -37,48 +43,48 @@ TocDialog::TocDialog(FormToc *form, QWidget *parent, const char *name, bool, WFl tree->setSorting(-1); tree->addColumn("Table of Contents"); - buttonUpdate = new QPushButton(this); - buttonUpdate->setMinimumSize(buttonUpdate->sizeHint()); - buttonUpdate->setMaximumSize(buttonUpdate->sizeHint()); - buttonUpdate->setText(_("&Update")); + buttonUpdate = new QPushButton(this); + setSizeHint(buttonUpdate); + buttonUpdate->setMaximumSize(buttonUpdate->sizeHint()); + buttonUpdate->setText(_("&Update")); - buttonClose = new QPushButton(this); - buttonClose->setMinimumSize(buttonClose->sizeHint()); - buttonClose->setMaximumSize(buttonClose->sizeHint()); - buttonClose->setText(_("&Close")); - buttonClose->setDefault(true); + buttonClose = new QPushButton(this); + setSizeHint(buttonClose); + buttonClose->setMaximumSize(buttonClose->sizeHint()); + buttonClose->setText(_("&Close")); + buttonClose->setDefault(true); depth = new QSlider(0, 5, 1, 1, QSlider::Horizontal, this); - depth->setMinimumSize(depth->sizeHint()); + setSizeHint(depth); depth->setTickInterval(1); depth->setTracking(true); depthlabel = new QLabel(this); depthlabel->setText(_("Depth")); - depthlabel->setMinimumSize(depthlabel->sizeHint()); + setSizeHint(depthlabel); depthlabel->setMaximumSize(depthlabel->sizeHint()); // layouts - topLayout = new QHBoxLayout(this,10); + topLayout = new QHBoxLayout(this,10); - layout = new QVBoxLayout(); - topLayout->addLayout(layout); - layout->addSpacing(10); + layout = new QVBoxLayout(); + topLayout->addLayout(layout); + layout->addSpacing(10); layout->addWidget(menu,0); layout->addWidget(tree,1); layout->addWidget(depthlabel,0,AlignLeft); layout->addWidget(depth,0); - buttonLayout = new QHBoxLayout(); + buttonLayout = new QHBoxLayout(); - layout->addLayout(buttonLayout); - buttonLayout->addStretch(1); + layout->addLayout(buttonLayout); + buttonLayout->addStretch(1); buttonLayout->addWidget(buttonUpdate, 1); buttonLayout->addStretch(2); - buttonLayout->addWidget(buttonClose, 1); - buttonLayout->addStretch(1); + buttonLayout->addWidget(buttonClose, 1); + buttonLayout->addStretch(1); // connections @@ -87,6 +93,8 @@ TocDialog::TocDialog(FormToc *form, QWidget *parent, const char *name, bool, WFl connect(buttonUpdate, SIGNAL(clicked()), this, SLOT(update_adaptor())); connect(buttonClose, SIGNAL(clicked()), this, SLOT(close_adaptor())); connect(depth, SIGNAL(valueChanged(int)), this, SLOT(depth_adaptor(int))); + + resize(sizeHint()); } void TocDialog::closeEvent(QCloseEvent *e) diff --git a/src/frontends/kde/tocdlg.h b/src/frontends/kde/tocdlg.h index 7545e90a37..e21b0d8064 100644 --- a/src/frontends/kde/tocdlg.h +++ b/src/frontends/kde/tocdlg.h @@ -30,7 +30,7 @@ #include "FormToc.h" -class TocDialog : public QDialog { +class TocDialog : public QWidget { Q_OBJECT public: TocDialog(FormToc *form, QWidget *parent=0, const char *name=0, diff --git a/src/frontends/kde/urldlg.C b/src/frontends/kde/urldlg.C index f0535f55f8..e18eeb757e 100644 --- a/src/frontends/kde/urldlg.C +++ b/src/frontends/kde/urldlg.C @@ -16,44 +16,50 @@ #include #include "urldlg.h" +#include "dlg/helpers.h" + +#ifdef CXX_WORKING_NAMESPACES +using kde_helpers::setSizeHint; +#endif + UrlDialog::UrlDialog(FormUrl *form, QWidget *parent, const char *name, bool, WFlags) - : QDialog(parent,name,false), form_(form) + : QWidget(parent,name,0), form_(form) { setCaption(name); // widgets url = new QLineEdit(this); - url->setMinimumSize(url->sizeHint()); + setSizeHint(url); urlname = new QLineEdit(this); - urlname->setMinimumSize(urlname->sizeHint()); + setSizeHint(urlname); labelurl = new QLabel(this); labelurl->setText(_("Url :")); labelurl->setMargin(5); - labelurl->setMinimumSize(labelurl->sizeHint()); + setSizeHint(labelurl); labelurl->setMaximumSize(labelurl->sizeHint()); labelurlname = new QLabel(this); labelurlname->setText(_("Name :")); labelurlname->setMargin(5); - labelurlname->setMinimumSize(labelurlname->sizeHint()); + setSizeHint(labelurlname); labelurlname->setMaximumSize(labelurlname->sizeHint()); htmlurl = new QCheckBox(this); htmlurl->setText(_("Generate hyperlink")); - htmlurl->setMinimumSize(htmlurl->sizeHint()); + setSizeHint(htmlurl); htmlurl->setMaximumSize(htmlurl->sizeHint()); buttonOk = new QPushButton(this); - buttonOk->setMinimumSize(buttonOk->sizeHint()); + setSizeHint(buttonOk); buttonOk->setMaximumSize(buttonOk->sizeHint()); buttonOk->setText(_("&OK")); buttonOk->setDefault(true); buttonCancel = new QPushButton(this); - buttonCancel->setMinimumSize(buttonCancel->sizeHint()); + setSizeHint(buttonCancel); buttonCancel->setMaximumSize(buttonCancel->sizeHint()); buttonCancel->setText(_("&Cancel")); @@ -102,6 +108,8 @@ UrlDialog::UrlDialog(FormUrl *form, QWidget *parent, const char *name, bool, WFl connect(buttonOk, SIGNAL(clicked()), this, SLOT(apply_adaptor())); connect(buttonCancel, SIGNAL(clicked()), this, SLOT(close_adaptor())); + + resize(sizeHint()); } UrlDialog::~UrlDialog() diff --git a/src/frontends/kde/urldlg.h b/src/frontends/kde/urldlg.h index 39d5bbe0c7..d66026864e 100644 --- a/src/frontends/kde/urldlg.h +++ b/src/frontends/kde/urldlg.h @@ -22,7 +22,6 @@ // to connect apply() and hide() #include "FormUrl.h" -#include #include #include #include @@ -30,7 +29,7 @@ #include #include -class UrlDialog : public QDialog { +class UrlDialog : public QWidget { Q_OBJECT public: UrlDialog(FormUrl *form, QWidget *parent=0, const char *name=0,