libqt2.la
moc_*.C
*_moc.C
-FormCitationDialog.h
-FormCitationDialog.C
-FormCopyrightDialog.C
-FormCopyrightDialog.h
+2001-08-19 John Levon <moz@compsoc.man.ac.uk>
+
+ * all files: enormous naming re-jig and tidy
+
2001-07-13 Angus Leeming <a.leeming@ic.ac.uk>
Consistent use of Lsstream.h:
-/* This file is part of
- * ======================================================
+/**
+ * \file Dialogs.C
+ * Copyright 2001 the LyX Team
+ * Read the file COPYING
*
- * LyX, The Document Processor
- *
- * Copyright 1995 Matthias Ettrich
- * Copyright 1995-2000 The LyX Team.
- *
- * ======================================================
*/
#include <config.h>
#pragma implementation
#endif
+// the dialog definitions
+#include "QCitationDialog.h"
+#include "QAboutDialog.h"
+
+// the controller interface
+#include "QAbout.h"
+#include "QCharacter.h"
+#include "QCitation.h"
+#include "QParagraph.h"
+#include "QPrint.h"
+#include "QSearch.h"
+#include "QSplash.h"
+#include "QTabularCreate.h"
+
+#include "QtLyXView.h"
#include "Dialogs.h"
+#include "BufferView.h"
+#include "buffer.h"
+#include "qt2BC.h"
-#include "FormCitationDialogImpl.h"
-#include "FormCopyrightDialogImpl.h"
-#include "FormCreditsDialogImpl.h"
-#undef emit
-
+// xforms implementations
#include "../xforms/FormError.h"
#include "../xforms/FormGraphics.h"
#include "../xforms/FormPreferences.h"
#include "../xforms/FormTabular.h"
-#include "FormCharacter.h"
-#include "FormCitation.h"
-#include "FormCopyright.h"
-#include "FormCredits.h"
-//#include "FormDocument.h"
-//#include "FormIndex.h"
-#include "FormParagraph.h"
-#include "FormPrint.h"
-//#include "FormRef.h"
-#include "FormSearch.h"
-#include "FormSplash.h"
-#include "FormTabularCreate.h"
-//#include "FormToc.h"
-//#include "FormUrl.h"
-
-#include "BufferView.h"
-#include "buffer.h"
-
+// the controllers
#include "controllers/ControlCitation.h"
+#include "controllers/ControlAboutlyx.h"
+#include "controllers/ControlSplash.h"
+#if 0
#include "controllers/ControlCopyright.h"
#include "controllers/ControlCredits.h"
+#include "controllers/ControlBibitem.h"
+#include "controllers/ControlBibtex.h"
+#include "controllers/ControlButtons.h"
+#include "controllers/ControlCharacter.h"
+#include "controllers/ControlCitation.h"
+#include "controllers/ControlCommand.h"
+#include "controllers/ControlERT.h"
+#include "controllers/ControlError.h"
+#include "controllers/ControlExternal.h"
+#include "controllers/ControlFloat.h"
+#include "controllers/ControlGraphics.h"
+#include "controllers/ControlInclude.h"
+#include "controllers/ControlIndex.h"
+#include "controllers/ControlLabel.h"
+#include "controllers/ControlLog.h"
+#include "controllers/ControlMinipage.h"
+#include "controllers/ControlPreamble.h"
+#include "controllers/ControlPrint.h"
+#include "controllers/ControlRef.h"
+#include "controllers/ControlSearch.h"
+#include "controllers/ControlSpellchecker.h"
+#include "controllers/ControlTabularCreate.h"
+#include "controllers/ControlThesaurus.h"
+#include "controllers/ControlToc.h"
+#include "controllers/ControlUrl.h"
+#include "controllers/ControlVCLog.h"
+#endif
#include "GUI.h"
-
-#include "qt2BC.h"
-
-// Signal enabling all visible dialogs to be redrawn if so desired.
-// E.g., when the GUI colours have been remapped.
+
+// this makes no real sense for Qt2
SigC::Signal0<void> Dialogs::redrawGUI;
Dialogs::Dialogs(LyXView * lv)
{
- splash_.reset( new FormSplash(lv, this) );
+ splash_.reset(new QSplash(lv, this));
// dialogs that have been converted to new scheme
- add( new GUICitation<FormCitation, qt2BC>( *lv, *this ) );
- add( new GUICopyright<FormCopyright, qt2BC>( *lv, *this ) );
- add( new GUICredits<FormCredits, qt2BC>( *lv, *this ) );
-
- // ------------------------------------------
-
- // dialogs that are still old-style
- add( new FormCharacter(lv, this));
-
- // add(new FormDocument(lv, this));
-
-
- // REMOVED THIS UNTIL CHANGED TO NEW SCHEME -- Kalle, 2001-03-23
- // add(new FormError(lv, this));
-
- // REMOVED THIS UNTIL CHANGED TO NEW SCHEME -- Kalle, 2001-03-28
- // add(new FormGraphics(lv, this));
- // add(new FormIndex(lv, this));
- add(new FormParagraph(lv, this));
- add(new FormPreferences(lv, this));
- add(new FormPrint(lv, this));
- // add(new FormRef(lv, this));
- add(new FormSearch(lv, this));
- add(new FormTabular(lv, this));
- add(new FormTabularCreate(lv, this));
- // add(new FormToc(lv, this));
- // add(new FormUrl(lv, this));
+ add(new GUICitation<QCitation, qt2BC>(*lv, *this));
+ add(new GUIAboutlyx<QAbout, qt2BC>(*lv, *this));
// reduce the number of connections needed in
// dialogs by a simple connection here.
QDialog::done(what);
return;
} else if (what == QDialog::Accepted)
- lv_->getLyXFunc()->Dispatch(action_, selectedFile().data());
+ lv_->getLyXFunc()->dispatch(action_, selectedFile().data());
delete this;
}
+++ /dev/null
-/**
- * \file FormCharacter.C
- * Copyright 2001 The LyX Team.
- * See the file COPYING.
- *
- * \author Edwin Leuven, leuven@fee.uva.nl
- */
-
-#include <config.h>
-
-#include "gettext.h"
-#include "chardlgimpl.h"
-#include "FormCharacter.h"
-#include "bufferview_funcs.h"
-#include "Dialogs.h"
-#include "Liason.h"
-#include "QtLyXView.h"
-#include "buffer.h"
-#include "lyxtext.h"
-#include "language.h"
-#include "support/lstrings.h"
-#include "BufferView.h"
-
-using SigC::slot;
-using Liason::setMinibuffer;
-
-FormCharacter::FormCharacter(LyXView *v, Dialogs *d)
- : dialog_(0), lv_(v), d_(d), h_(0), u_(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->showCharacter.connect(slot(this, &FormCharacter::show));
- // for LFUN_FREE
- d->setUserFreeFont.connect(slot(this, &FormCharacter::apply));
-}
-
-
-FormCharacter::~FormCharacter()
-{
- delete dialog_;
-}
-
-
-void FormCharacter::apply()
-{
- if (!lv_->view()->available() || !dialog_)
- return;
-
- LyXFont font = dialog_->getChar();
-
- if (dialog_->langItem()==1)
- font.setLanguage(lv_->buffer()->params.language);
-
- ToggleAndShow(lv_->view(), font, dialog_->toggleAll());
- lv_->view()->setState();
- lv_->buffer()->markDirty();
- setMinibuffer(lv_, _("Character set"));
-}
-
-void FormCharacter::show()
-{
- if (!dialog_) {
- dialog_ = new CharDlgImpl(this, 0, _("Character Options"), false);
- // add languages
- for (Languages::const_iterator cit = languages.begin();
- cit != languages.end(); ++cit) {
- const string language = (*cit).second.lang();
- dialog_->lang->insertItem( tostr(language).c_str(), -1 );
- }
- }
-
- if (!dialog_->isVisible()) {
- h_ = d_->hideBufferDependent.connect(slot(this, &FormCharacter::hide));
- u_ = d_->updateBufferDependent.connect(slot(this, &FormCharacter::update));
- }
-
- dialog_->raise();
- dialog_->setActiveWindow();
- update();
- dialog_->show();
-}
-
-void FormCharacter::close()
-{
- h_.disconnect();
- u_.disconnect();
-}
-
-void FormCharacter::hide()
-{
- dialog_->hide();
- close();
-}
-
-void FormCharacter::update(bool)
-{
- if (!lv_->view()->available())
- return;
-
- dialog_->setReadOnly(lv_->buffer()->isReadonly());
-}
+++ /dev/null
-// -*- C++ -*-
-/**
- * \file FormCharacter.h
- * Copyright 2001 The LyX Team.
- * See the file COPYING.
- *
- * \author Edwin Leuven
- */
-
-#ifndef FORM_CHARACTER_H
-#define FORM_CHARACTER_H
-
-#include "DialogBase.h"
-
-class LyXView;
-class Dialogs;
-class CharDlgImpl;
-
-class FormCharacter : public DialogBase {
-public:
- ///
- FormCharacter(LyXView *, Dialogs *);
- ///
- ~FormCharacter();
-
- /// Apply changes.
- void apply();
- /// Close connections.
- void close();
-
-private:
-
- /// Show the dialog.
- void show();
- /// Hide the dialog.
- void hide();
- /// Update the dialog.
- void update(bool switched = false);
-
- /// Real GUI implementation.
- CharDlgImpl * dialog_;
-
- /// the LyXView we belong to.
- LyXView * lv_;
-
- /** Which Dialogs do we belong to?
- * Used so we can get at the signals we have to connect to.
- */
- Dialogs * d_;
-
- /// is the buffer readonly?
- bool readonly;
-
- /// Hide connection.
- SigC::Connection h_;
-
- /// Update connection.
- SigC::Connection u_;
-};
-
-#endif
+++ /dev/null
-/* This file is part of
- * ======================================================
- *
- * LyX, The Document Processor
- *
- * Copyright 2000 The LyX Team.
- *
- * ======================================================
- *
- * \author Angus Leeming <a.leeming@ic.ac.uk>
- */
-
-#include <config.h>
-
-#ifdef __GNUG__
-#pragma implementation
-#endif
-
-#include "FormCitationDialogImpl.h"
-#include "FormCitation.h"
-
-#include <qcheckbox.h>
-#include <qcombobox.h>
-#include <qlineedit.h>
-#include <qlistbox.h>
-#include <qmultilineedit.h>
-#include <qpushbutton.h>
-
-#undef emit
-#include "qt2BC.h"
-#include "ControlCitation.h"
-#include "gettext.h"
-#include "support/lstrings.h"
-#include "helper_funcs.h"
-
-
-using std::find;
-using std::max;
-using std::min;
-using std::pair;
-using std::sort;
-using std::vector;
-
-typedef Qt2CB<ControlCitation, Qt2DB<FormCitationDialogImpl> > base_class;
-
-FormCitation::FormCitation(ControlCitation & c)
- : base_class(c, _("Citation"))
-{}
-
-
-void FormCitation::apply()
-{
- controller().params().setCmdName("cite");
- controller().params().setContents(getStringFromVector(citekeys));
-
- string const after = dialog_->textAfterED->text().latin1();
- controller().params().setOptions(after);
-}
-
-
-void FormCitation::hide()
-{
- citekeys.clear();
- bibkeys.clear();
-
- Qt2Base::hide();
-}
-
-
-void FormCitation::build()
-{
- // PENDING(kalle) Parent?
- dialog_.reset( new FormCitationDialogImpl( this ));
-
- dialog_->searchTypeCB->setChecked( false );
- dialog_->searchCaseCB->setChecked( false );
-
- // Manage the ok, apply, restore and cancel/close buttons
- bc().setOK(dialog_->okPB);
- bc().setApply(dialog_->applyPB);
- bc().setCancel(dialog_->cancelPB);
- bc().setRestore(dialog_->restorePB);
-
- bc().addReadOnly(dialog_->addPB);
- bc().addReadOnly(dialog_->delPB);
- bc().addReadOnly(dialog_->upPB);
- bc().addReadOnly(dialog_->downPB);
- bc().addReadOnly(dialog_->citationStyleCO);
- bc().addReadOnly(dialog_->textBeforeED);
- bc().addReadOnly(dialog_->textAfterED);
-}
-
-
-void FormCitation::update()
-{
- // Make the list of all available bibliography keys
- bibkeys = biblio::getKeys(controller().bibkeysInfo());
- updateBrowser(dialog_->bibLB, bibkeys);
-
- // Ditto for the keys cited in this inset
- citekeys = getVectorFromString(controller().params().getContents());
- updateBrowser(dialog_->citeLB, citekeys);
-
- // No keys have been selected yet, so...
- dialog_->infoML->clear();
- setBibButtons(OFF);
- setCiteButtons(OFF);
-
- dialog_->textAfterED->setText( controller().params().getOptions().c_str());
-}
-
-
-void FormCitation::updateBrowser( QListBox* browser,
- vector<string> const & keys) const
-{
- browser->clear();
-
- for (vector<string>::const_iterator it = keys.begin();
- it < keys.end(); ++it) {
- string key = frontStrip(strip(*it));
- if( !key.empty() )
- browser->insertItem( key.c_str() );
- }
-}
-
-
-void FormCitation::setBibButtons(State status) const
-{
- dialog_->addPB->setEnabled( (status == ON) );
-}
-
-
-void FormCitation::setCiteButtons(State status) const
-{
- int const sel = dialog_->citeLB->currentItem();
- int const maxline = dialog_->citeLB->count()-1;
- bool const activate = (status == ON);
- bool const activate_up = (activate && sel != 0);
- bool const activate_down = (activate && sel != maxline);
-
- dialog_->delPB->setEnabled( activate );
- dialog_->upPB->setEnabled( activate_up );
- dialog_->downPB->setEnabled( activate_down );
-}
+++ /dev/null
-// -*- C++ -*-
-/* This file is part of
- * ======================================================
- *
- * LyX, The Document Processor
- *
- * Copyright 2000 The LyX Team.
- *
- * ======================================================
- *
- * \author Angus Leeming <a.leeming@ic.ac.uk>
- * \author Kalle Dalheimer <kalle@klaralvdalens-datakonsult.se>
-*/
-
-#ifndef FORMCITATION_H
-#define FORMCITATION_H
-
-#ifdef __GNUG__
-#pragma interface
-#endif
-
-class QListBox;
-
-#include "Qt2Base.h"
-#undef emit
-
-/** This class provides a Qt2 implementation of the Citation Dialog.
- @author Kalle Dalheimer
-*/
-class ControlCitation;
-class FormCitationDialogImpl;
-
-class FormCitation : public Qt2CB<ControlCitation, Qt2DB<FormCitationDialogImpl> > {
- friend class FormCitationDialogImpl;
-
-public:
- ///
- FormCitation(ControlCitation &);
-
-private:
- ///
- enum State {
- ///
- ON,
- ///
- OFF
- };
-
- /// Set the Params variable for the Controller.
- virtual void apply();
- /// Build the dialog.
- virtual void build();
- /// Hide the dialog.
- virtual void hide();
- /// Update dialog before/whilst showing it.
- virtual void update();
- // /// Filter the inputs on callback from xforms
- // virtual ButtonPolicy::SMInput input(FL_OBJECT *, long);
-
- void updateBrowser(QListBox*, std::vector<string> const &) const;
- ///
- void setBibButtons(State) const;
- ///
- void setCiteButtons(State) const;
-
- ///
- std::vector<string> citekeys;
- ///
- std::vector<string> bibkeys;
-};
-
-#endif // FORMCITATION_H
+++ /dev/null
-<!DOCTYPE UI><UI>
-<class>FormCitationDialog</class>
-<widget>
- <class>QDialog</class>
- <property stdset="1">
- <name>name</name>
- <cstring>FormCitationDialog</cstring>
- </property>
- <property stdset="1">
- <name>geometry</name>
- <rect>
- <x>0</x>
- <y>0</y>
- <width>369</width>
- <height>525</height>
- </rect>
- </property>
- <property stdset="1">
- <name>caption</name>
- <string>Citation</string>
- </property>
- <vbox>
- <property stdset="1">
- <name>margin</name>
- <number>11</number>
- </property>
- <property stdset="1">
- <name>spacing</name>
- <number>6</number>
- </property>
- <widget>
- <class>QLayoutWidget</class>
- <property stdset="1">
- <name>name</name>
- <cstring>Layout24</cstring>
- </property>
- <grid>
- <property stdset="1">
- <name>margin</name>
- <number>0</number>
- </property>
- <property stdset="1">
- <name>spacing</name>
- <number>6</number>
- </property>
- <widget row="1" column="1" >
- <class>QLayoutWidget</class>
- <property stdset="1">
- <name>name</name>
- <cstring>Layout1</cstring>
- </property>
- <vbox>
- <property stdset="1">
- <name>margin</name>
- <number>0</number>
- </property>
- <property stdset="1">
- <name>spacing</name>
- <number>6</number>
- </property>
- <widget>
- <class>QPushButton</class>
- <property stdset="1">
- <name>name</name>
- <cstring>addPB</cstring>
- </property>
- <property stdset="1">
- <name>sizePolicy</name>
- <sizepolicy>
- <hsizetype>0</hsizetype>
- <vsizetype>0</vsizetype>
- </sizepolicy>
- </property>
- <property stdset="1">
- <name>text</name>
- <string></string>
- </property>
- <property stdset="1">
- <name>pixmap</name>
- <pixmap>image0</pixmap>
- </property>
- </widget>
- <widget>
- <class>QPushButton</class>
- <property stdset="1">
- <name>name</name>
- <cstring>delPB</cstring>
- </property>
- <property stdset="1">
- <name>sizePolicy</name>
- <sizepolicy>
- <hsizetype>0</hsizetype>
- <vsizetype>0</vsizetype>
- </sizepolicy>
- </property>
- <property stdset="1">
- <name>text</name>
- <string></string>
- </property>
- <property stdset="1">
- <name>pixmap</name>
- <pixmap>image1</pixmap>
- </property>
- </widget>
- <widget>
- <class>QPushButton</class>
- <property stdset="1">
- <name>name</name>
- <cstring>upPB</cstring>
- </property>
- <property stdset="1">
- <name>sizePolicy</name>
- <sizepolicy>
- <hsizetype>0</hsizetype>
- <vsizetype>0</vsizetype>
- </sizepolicy>
- </property>
- <property stdset="1">
- <name>text</name>
- <string></string>
- </property>
- <property stdset="1">
- <name>pixmap</name>
- <pixmap>image2</pixmap>
- </property>
- </widget>
- <widget>
- <class>QPushButton</class>
- <property stdset="1">
- <name>name</name>
- <cstring>downPB</cstring>
- </property>
- <property stdset="1">
- <name>sizePolicy</name>
- <sizepolicy>
- <hsizetype>0</hsizetype>
- <vsizetype>0</vsizetype>
- </sizepolicy>
- </property>
- <property stdset="1">
- <name>text</name>
- <string></string>
- </property>
- <property stdset="1">
- <name>pixmap</name>
- <pixmap>image3</pixmap>
- </property>
- </widget>
- </vbox>
- </widget>
- <widget row="0" column="2" >
- <class>QLabel</class>
- <property stdset="1">
- <name>name</name>
- <cstring>bibliographyKeysLA</cstring>
- </property>
- <property stdset="1">
- <name>text</name>
- <string>Bibliography keys</string>
- </property>
- </widget>
- <widget row="0" column="0" >
- <class>QLabel</class>
- <property stdset="1">
- <name>name</name>
- <cstring>insetKeysLA</cstring>
- </property>
- <property stdset="1">
- <name>text</name>
- <string>Inset keys</string>
- </property>
- </widget>
- <widget row="1" column="2" >
- <class>QListBox</class>
- <item>
- <property>
- <name>text</name>
- <string>New Item</string>
- </property>
- </item>
- <property stdset="1">
- <name>name</name>
- <cstring>bibLB</cstring>
- </property>
- <property>
- <name>toolTip</name>
- <string>Reference keys available</string>
- </property>
- </widget>
- <widget row="1" column="0" >
- <class>QListBox</class>
- <item>
- <property>
- <name>text</name>
- <string>New Item</string>
- </property>
- </item>
- <property stdset="1">
- <name>name</name>
- <cstring>citeLB</cstring>
- </property>
- <property stdset="1">
- <name>selectionMode</name>
- <enum>Single</enum>
- </property>
- <property>
- <name>toolTip</name>
- <string>Keys currently selected</string>
- </property>
- </widget>
- </grid>
- </widget>
- <spacer>
- <property>
- <name>name</name>
- <cstring>Spacer2</cstring>
- </property>
- <property stdset="1">
- <name>orientation</name>
- <enum>Vertical</enum>
- </property>
- <property stdset="1">
- <name>sizeType</name>
- <enum>Expanding</enum>
- </property>
- <property>
- <name>sizeHint</name>
- <size>
- <width>20</width>
- <height>20</height>
- </size>
- </property>
- </spacer>
- <widget>
- <class>QLabel</class>
- <property stdset="1">
- <name>name</name>
- <cstring>infoLA</cstring>
- </property>
- <property stdset="1">
- <name>text</name>
- <string>Info</string>
- </property>
- </widget>
- <widget>
- <class>QMultiLineEdit</class>
- <property stdset="1">
- <name>name</name>
- <cstring>infoML</cstring>
- </property>
- <property stdset="1">
- <name>wordWrap</name>
- <enum>WidgetWidth</enum>
- </property>
- <property>
- <name>toolTip</name>
- <string>Reference entry text</string>
- </property>
- </widget>
- <spacer>
- <property>
- <name>name</name>
- <cstring>Spacer3</cstring>
- </property>
- <property stdset="1">
- <name>orientation</name>
- <enum>Vertical</enum>
- </property>
- <property stdset="1">
- <name>sizeType</name>
- <enum>Expanding</enum>
- </property>
- <property>
- <name>sizeHint</name>
- <size>
- <width>20</width>
- <height>20</height>
- </size>
- </property>
- </spacer>
- <widget>
- <class>QGroupBox</class>
- <property stdset="1">
- <name>name</name>
- <cstring>GroupBox4</cstring>
- </property>
- <property stdset="1">
- <name>title</name>
- <string>Search</string>
- </property>
- <vbox>
- <property stdset="1">
- <name>margin</name>
- <number>11</number>
- </property>
- <property stdset="1">
- <name>spacing</name>
- <number>6</number>
- </property>
- <widget>
- <class>QLineEdit</class>
- <property stdset="1">
- <name>name</name>
- <cstring>searchED</cstring>
- </property>
- </widget>
- <widget>
- <class>QLayoutWidget</class>
- <property stdset="1">
- <name>name</name>
- <cstring>Layout37</cstring>
- </property>
- <hbox>
- <property stdset="1">
- <name>margin</name>
- <number>0</number>
- </property>
- <property stdset="1">
- <name>spacing</name>
- <number>6</number>
- </property>
- <widget>
- <class>QCheckBox</class>
- <property stdset="1">
- <name>name</name>
- <cstring>searchTypeCB</cstring>
- </property>
- <property stdset="1">
- <name>text</name>
- <string>Regular E&xpression</string>
- </property>
- </widget>
- <spacer>
- <property>
- <name>name</name>
- <cstring>Spacer2_2</cstring>
- </property>
- <property stdset="1">
- <name>orientation</name>
- <enum>Horizontal</enum>
- </property>
- <property stdset="1">
- <name>sizeType</name>
- <enum>Expanding</enum>
- </property>
- <property>
- <name>sizeHint</name>
- <size>
- <width>20</width>
- <height>20</height>
- </size>
- </property>
- </spacer>
- <widget>
- <class>QPushButton</class>
- <property stdset="1">
- <name>name</name>
- <cstring>previousPB</cstring>
- </property>
- <property stdset="1">
- <name>text</name>
- <string>&Previous</string>
- </property>
- </widget>
- </hbox>
- </widget>
- <widget>
- <class>QLayoutWidget</class>
- <property stdset="1">
- <name>name</name>
- <cstring>Layout38</cstring>
- </property>
- <hbox>
- <property stdset="1">
- <name>margin</name>
- <number>0</number>
- </property>
- <property stdset="1">
- <name>spacing</name>
- <number>6</number>
- </property>
- <widget>
- <class>QCheckBox</class>
- <property stdset="1">
- <name>name</name>
- <cstring>searchCaseCB</cstring>
- </property>
- <property stdset="1">
- <name>text</name>
- <string>&Case sensitive</string>
- </property>
- </widget>
- <spacer>
- <property>
- <name>name</name>
- <cstring>Spacer3_2</cstring>
- </property>
- <property stdset="1">
- <name>orientation</name>
- <enum>Horizontal</enum>
- </property>
- <property stdset="1">
- <name>sizeType</name>
- <enum>Expanding</enum>
- </property>
- <property>
- <name>sizeHint</name>
- <size>
- <width>20</width>
- <height>20</height>
- </size>
- </property>
- </spacer>
- <widget>
- <class>QPushButton</class>
- <property stdset="1">
- <name>name</name>
- <cstring>nextPB</cstring>
- </property>
- <property stdset="1">
- <name>text</name>
- <string>&Next</string>
- </property>
- </widget>
- </hbox>
- </widget>
- </vbox>
- </widget>
- <spacer>
- <property>
- <name>name</name>
- <cstring>Spacer1</cstring>
- </property>
- <property stdset="1">
- <name>orientation</name>
- <enum>Vertical</enum>
- </property>
- <property stdset="1">
- <name>sizeType</name>
- <enum>Expanding</enum>
- </property>
- <property>
- <name>sizeHint</name>
- <size>
- <width>20</width>
- <height>20</height>
- </size>
- </property>
- </spacer>
- <widget>
- <class>QLayoutWidget</class>
- <property stdset="1">
- <name>name</name>
- <cstring>Layout25</cstring>
- </property>
- <hbox>
- <property stdset="1">
- <name>margin</name>
- <number>0</number>
- </property>
- <property stdset="1">
- <name>spacing</name>
- <number>6</number>
- </property>
- <widget>
- <class>QLabel</class>
- <property stdset="1">
- <name>name</name>
- <cstring>citationStyleLA</cstring>
- </property>
- <property stdset="1">
- <name>text</name>
- <string>Citation style</string>
- </property>
- </widget>
- <widget>
- <class>QComboBox</class>
- <property stdset="1">
- <name>name</name>
- <cstring>citationStyleCO</cstring>
- </property>
- </widget>
- <spacer>
- <property>
- <name>name</name>
- <cstring>Spacer8</cstring>
- </property>
- <property stdset="1">
- <name>orientation</name>
- <enum>Horizontal</enum>
- </property>
- <property stdset="1">
- <name>sizeType</name>
- <enum>Expanding</enum>
- </property>
- <property>
- <name>sizeHint</name>
- <size>
- <width>20</width>
- <height>20</height>
- </size>
- </property>
- </spacer>
- </hbox>
- </widget>
- <widget>
- <class>QLayoutWidget</class>
- <property stdset="1">
- <name>name</name>
- <cstring>Layout9</cstring>
- </property>
- <grid>
- <property stdset="1">
- <name>margin</name>
- <number>0</number>
- </property>
- <property stdset="1">
- <name>spacing</name>
- <number>6</number>
- </property>
- <widget row="0" column="0" >
- <class>QLabel</class>
- <property stdset="1">
- <name>name</name>
- <cstring>textBeforeLA</cstring>
- </property>
- <property stdset="1">
- <name>text</name>
- <string>Text before</string>
- </property>
- </widget>
- <widget row="1" column="0" >
- <class>QLabel</class>
- <property stdset="1">
- <name>name</name>
- <cstring>textAfterLA</cstring>
- </property>
- <property stdset="1">
- <name>text</name>
- <string>Text after</string>
- </property>
- </widget>
- <widget row="0" column="1" >
- <class>QLineEdit</class>
- <property stdset="1">
- <name>name</name>
- <cstring>textBeforeED</cstring>
- </property>
- <property>
- <name>toolTip</name>
- <string>Text to place before citation</string>
- </property>
- </widget>
- <widget row="1" column="1" >
- <class>QLineEdit</class>
- <property stdset="1">
- <name>name</name>
- <cstring>textAfterED</cstring>
- </property>
- <property>
- <name>toolTip</name>
- <string>Text to place after citation</string>
- </property>
- </widget>
- </grid>
- </widget>
- <widget>
- <class>QLayoutWidget</class>
- <property stdset="1">
- <name>name</name>
- <cstring>Layout6</cstring>
- </property>
- <hbox>
- <property stdset="1">
- <name>margin</name>
- <number>0</number>
- </property>
- <property stdset="1">
- <name>spacing</name>
- <number>6</number>
- </property>
- <widget>
- <class>QPushButton</class>
- <property stdset="1">
- <name>name</name>
- <cstring>restorePB</cstring>
- </property>
- <property stdset="1">
- <name>text</name>
- <string>&Restore</string>
- </property>
- </widget>
- <spacer>
- <property>
- <name>name</name>
- <cstring>Spacer4</cstring>
- </property>
- <property stdset="1">
- <name>orientation</name>
- <enum>Horizontal</enum>
- </property>
- <property stdset="1">
- <name>sizeType</name>
- <enum>Expanding</enum>
- </property>
- <property>
- <name>sizeHint</name>
- <size>
- <width>20</width>
- <height>20</height>
- </size>
- </property>
- </spacer>
- <widget>
- <class>QPushButton</class>
- <property stdset="1">
- <name>name</name>
- <cstring>okPB</cstring>
- </property>
- <property stdset="1">
- <name>text</name>
- <string>OK</string>
- </property>
- <property stdset="1">
- <name>default</name>
- <bool>true</bool>
- </property>
- </widget>
- <widget>
- <class>QPushButton</class>
- <property stdset="1">
- <name>name</name>
- <cstring>applyPB</cstring>
- </property>
- <property stdset="1">
- <name>text</name>
- <string>&Apply</string>
- </property>
- </widget>
- <widget>
- <class>QPushButton</class>
- <property stdset="1">
- <name>name</name>
- <cstring>cancelPB</cstring>
- </property>
- <property stdset="1">
- <name>text</name>
- <string>Cancel</string>
- </property>
- </widget>
- </hbox>
- </widget>
- </vbox>
-</widget>
-<images>
- <image>
- <name>image0</name>
- <data format="XPM.GZ" length="2766">789cad95c76e24371086ef7a8a81ea2618b54d363bc1d88372d64a1bb56bf8d04c8aa3388a86dfddd45f9c3eac6478163038d2e013ff228b95f46e6174b8bf3b5a7837773be927276ee48efb9bd182bf1b8f9ffef8f3fd5f73f35a8fd2471566a4e77f9b9b3f988cdc68eff222bc00df26a0a22c8aa27c61da19d880b706aea13fc9ac8b16fb4f99cba2c3fe24b3297a700f36c9be827e25b3291cf62f325785c7fe7666abe00f3b70359cff2db353f08736320725fe5c648e4af48be05a2925e7bbcc5ae1fd7499b95411fc98b9d20af6bb996b8de0f157709358e2739fb9d772ff4366ab713fdd815be535ee6702bbd255b0672d6c0b077bfe9159b9067c30b0bc673573e5103f12f629808837f9ccba92fdabcc5525ef7bce5cd7057833b3ab25bf9db02de53e1a8383f1b5dcdf0857ba96f8ad678e8d052f0bd75d8b7cf397ccbe95f3a43e42d37772df4de6d089ff92afd0aa4ef21532b7bdc4fb3ab3ed111f5acaec84b91d58f27124dca58861bf14b6dac97de7e058bb56e25f674e27607f4db8295ae917233cd89fbdb02a9ab2937aa984fbca4abc8fc1aa319dd48f1276d64b3cd04f4a4fede934b3c9e77d07979db1922f16b6c14b7fa09f94712af33eb872da4bbc223885cb497e106fd55993ebad0007df798937ea536baf3cf48c7ad6a5f55efcc77cd0668887057795aaa5be512fda4ef3cda837edaaae91f8239ea51afcfd084e022ff93b049baa6fa43e96857d29fef1077095e227fea1ffca66ca847956b64107f117fd5cfade3bb9ffb3f0b4df08f3c914a10c122fbcc7986082e8913fd34eeb81517f26d8d6c9fb31af2a9ff221fd8c7aad55133bf1ef13d824ffc47ff4671d7b6de53ce42765bbcbf5b997d959793fe647d375e94630eaa3717dca0818f3abf1c379e8c7267a1764fea23fda7278ffb9b08d5e784b38bd1ff5ca98076d1b4c44bd31e66bdb0d8c79d27a9f2cc098ffcec5228a7fe8371f6219e5fde88f18a38b51fef9ccbefe3f3d13f7b3eb93dab29b559fd49ec3acfaa48e7cc4c77c328b3ea94ff98ccf79cc17ffad4feacba4bee26bbee1db44d3f5a63efdfd0eea7b7ee0c7f4fd94e82cfd7ee6c5d7faa45e827a99577895d7789d377893b7789b7778f7677d52efa5575ef107dee783b456f9237fc2facc5ff8eb2bfd373ee4effc830b56acd32ad9e45571fdfafc64b1c80db7dcbd5810a71fa29e2cecdfd41f4cc891a74031a9141dd1319dd0299dd1398de9e2ed78d2255dd135ddd02d4de88eeeb11ee8919efe2d5fe98e675aa4255aa695d9ea2159acd21aadcf560fb0d8485e6dceae477489b666d7a73bb669e757f46faf5fd6fffdfbdc3f05fcbfcc</data>
- </image>
- <image>
- <name>image1</name>
- <data format="XPM.GZ" length="2157">789c959459531a411485dff91594f366a5ae3d5bf74ca5f2e0be44c10db7541e8659141557543495ff9edbe736132068923950c5479f7b397da78785f9e6c9ee4e737ea1f138c806bdbc995f640fcdf9e2a9df7ffdf6fdcb8fc65c1034f9a5753398fbd498db1b34f366ebf6a6b440e70c9ec205f62cfba5ca5406d6e0aae623cb81aa3973dc555df005b85495aac05dcb61e4f305beb31c9741160857969354ab58fc4370ae4a25f93a96d35c452edf8be5ac5281c266e8d67257456514810fc189d24afaa7605b2febcfc23a8c257f1b5c04dad7e0185cfa912ffe75cbb91f56a1ac3f09ebd4e51d80439d69f9bd081c457924ecd72c791fc1b12e740c6e81751c44e8ef61feb9318529b0fe004e8dd209780d9cc57c81cf1c5771080e84799e293871ecbbfd1a701e17b1ec6fd571e9faed804b1db8fa125c7559e015cb85d23a96fb1d0a1b63e4fedc80fd3aff3238d0a99bcf1238e2fdcb3cb71d97da8095b0c98cece7181c334bbe03b031a196f3f1159c30cbeff585139348bf45706a022d79f7c119e7953c5be06ecd6fe09ce72dfe0d70c1f539f8c4716e247f2e9c7413f1bf0aa72a91f95d3b0e13a9dfb55caabafe4a38d509e6eb9170c1c2fa1e38309591fbb7090e99a5ff25d8a4452af3b907a76995cafe0bcb5552b2c0a7e0a26203b807c6257f0effae693f79944dea233f7529a7624c255574fe9e9f2ed8dda34bd6155db3fa7443b774375ef1dbefdcf7f4c07aa4013db19ee98586e315233f92f4e895de588bb444cbb442abb446eb9315e2e75d4aef0d568f36698bbed236edf0e716b5c72b9c3fe3bd5dd22ef7ee417bb44f07ee738b0ea933e53f82ff98936c3ad709bf4ff97dc689fef4dbfe57a438f716f7eed53a237fa6dff6bf66ff32e7de476fab80b3b43ef0873c93ed3ab755c4ee78865fb3ff86e76e30139b3b71156d4a67e5f788fdcfdc6d94bbc5bd471533f2781edff9175eb3153e76d966f5d86bdd53f3e78a73fe66880a518c24ed49f7c4f919551c4ea833fbfc8c557426347cef7cd615d37af7fcbb8a297dfc3cfeeff3fb57ffcfcf8d5fe8202a15</data>
- </image>
- <image>
- <name>image2</name>
- <data format="XPM.GZ" length="2750">789cc595494f24471085effc8a167143564c65d69ab27c60df06066665c6f2a17283665f9aad2dff7767bfc86e812c0f7db14cc1e1a35f6444bc88ac7eb734383ad81b2cbd5bb81bf5a3a11bb893fe76b0e4ef2f2e9e7fffe3b73f1716b51ea45f559403bdf8cbc2e2e168e006fb57976102c409a8288ba228c16733aec0a7336ec07d665d74e0ddcc6561c09b99aba2070fc1557a1cd866ae0b3f613699ad92fc04aea7e7719fd929e4e7bdcc4149fe9dcc5189de831ba5949c3fccac15fae5ebcca58a88dfc85c6b05decadc689845dbe036b1f87193b9d7927f9cd96ae9ff04dc29af25bff4e34a57239ee57c670b8778bec8ac5c0bde9cb1f4f33173ede01fbf07fb6420fce5abccba96cf1f32d735fae3d5cc4d5380bbccae113f47c2b6947cb40e0e956f24bff4136add887f6de6d85a7023dc98ae46fc6a66df497c2ddcf646f215998391fa657f42a78cf8759fb9ebc5af95ccb6177fbe6476992f672c7e56c22639062e85ad76b28fcfe0d8b84ee6b796399d00fd57e1b6e8e47e04e1593cea53455b1ad99727e1beb6b24fc760d55606fbc3636167bdf88bfd537a167f97b91266892f4d65655e9f846df0b81f8c7d55955399d18faa9df6e2d73238d9e5643eb81fcad82aef9be40bde78f84d71c25a7be5457f082eadf7b2fff05f57533ff81bd8d4aa9179fd00dbe9bc09f9b5ab4d2bfeeb09976a5a2fe17e9649e0657e0e5cd57d2bfbf124ec4ba98f6fc175f24feac37e96ed8c3f83bba083f8adc0bef74ef6f151787adf08f7a52a4219c42fdcefaa0a55907abf83bbd93e1c8083ed9cec03ee57edd33c24fe68c28d6aa3413d847d6caa549fd4bf0f8ebdb6721ef62d4ddbe4fdb4999d95fef1be6d8d4919c1a8bf757d9a0818ef9fd64fcf23f8d746ef82dc27ec6b574efbe70fc2367af163249cfa977d85bf5d17aa887d23bc8f3a33653e077b9f22f039d8b95844a90ffbe3432ca3cc03df1f314617a37cd9ccfffc5f7a26eee7d727b565c77e3e7d52078e7ccc273c7c5b9fd4a77cc6e77cc1977cc5d73fd727f50dd4b77cc723bee787d7395eeb93fa11ea277ee6718a58e6155e7d19f1529fd46b50aff3066ff2568ad8e61ddee5f7bcf74f7d52efa72e3ff0011ff247e83fa588cffc85bfa6aafad7faa4fec647fc9d7f70c18a758a2893bae29a1b6eb94b9f9b977a629afcf46489f99c1c790a14e9984e6898fedbd3299dfd9b9f744e177499f457744d3773f87f46b7133d6fd3dd9cfa11f477743f8f3ed5f3408ff4c4637aa6f11cfa655aa1555a4bcf3a6dbca5a74df6b445dbe96f8b7668f72dfdcf9fff5cffd7af0b7f0351a5bebb</data>
- </image>
- <image>
- <name>image3</name>
- <data format="XPM.GZ" length="1472">789ca5d3496f22311005e03bbfa295dcd068d2edde359a0359c8beef19cdc12e97034908244dc8a6f9efd3f50c8144dcd2e2d09f9e8d9f29b1d40c2e0e7683e652a31aea619702eae8c7a0699f7abdd73f7f7fbf3716940aea4f9a07d1c28fc6c2cf8082bdfe3dcb3bd7ef8b611c86612c1c819a9455c23e684c415678fc41ec3d19d3782e8214539a082b4f135221bc1a5391168663a644c233d02659160ab73c4b674ae1a6a77116fdf7414e6c86b4e599e725aeb03d6651a2c6f398bacc84a79e656190be09a330e7125fb503aa8c0b94bcf5cc9312e70ec0829ccd85bb609925053aef813a0b73dc2802a9ee8c5616b445a2b1f81174145bd4d8102a658cbfe03d18536253e11148f550b0f8521847f55ea443d05a63318535611ae98230410d26ba24d458053f86b20e5aca2cee7b21ccd82ac6de5761aec8315a2d83b1d1165778f024667005cc26e993e7646fcfd3469e4a581436655ce106e409dbc232b19a51b203e69356d7a0b6b95fdc15ead43a36c27390d839cce84568981387568742526c1cf61e8075e6709011d6150b87839c904397380c9484f5d2d4e1bf70073a47cee13f35f7f966b2387ee624da10d5139f93b8eb4ef7e6765e72d7bbef0fe6270f8fd5707ef234aa86cf9f135feae575540dde18cf24e1d6f2caea5a7b7da3dadcdaded9dddbff48eae8c01db68f8eabea6430383de39973b8757e71d9bfaaaad1d007d3067534eacf0433dd240aa7c16ceb3a8aa6c1a7df9a5b6a1a7c9e02b7a6c197f9f034f8ee4cbf26ff7e35fe03191b46e7</data>
- </image>
-</images>
-<connections>
- <connection>
- <sender>addPB</sender>
- <signal>clicked()</signal>
- <receiver>FormCitationDialog</receiver>
- <slot>slotAddClicked()</slot>
- </connection>
- <connection>
- <sender>delPB</sender>
- <signal>clicked()</signal>
- <receiver>FormCitationDialog</receiver>
- <slot>slotDelClicked()</slot>
- </connection>
- <connection>
- <sender>downPB</sender>
- <signal>clicked()</signal>
- <receiver>FormCitationDialog</receiver>
- <slot>slotDownClicked()</slot>
- </connection>
- <connection>
- <sender>restorePB</sender>
- <signal>clicked()</signal>
- <receiver>FormCitationDialog</receiver>
- <slot>slotRestoreClicked()</slot>
- </connection>
- <connection>
- <sender>previousPB</sender>
- <signal>clicked()</signal>
- <receiver>FormCitationDialog</receiver>
- <slot>slotPreviousClicked()</slot>
- </connection>
- <connection>
- <sender>nextPB</sender>
- <signal>clicked()</signal>
- <receiver>FormCitationDialog</receiver>
- <slot>slotNextClicked()</slot>
- </connection>
- <connection>
- <sender>citationStyleCO</sender>
- <signal>activated(int)</signal>
- <receiver>FormCitationDialog</receiver>
- <slot>slotCitationStyleSelected(int)</slot>
- </connection>
- <connection>
- <sender>textBeforeED</sender>
- <signal>returnPressed()</signal>
- <receiver>FormCitationDialog</receiver>
- <slot>slotTextBeforeReturn()</slot>
- </connection>
- <connection>
- <sender>textAfterED</sender>
- <signal>returnPressed()</signal>
- <receiver>FormCitationDialog</receiver>
- <slot>slotTextAfterReturn()</slot>
- </connection>
- <connection>
- <sender>bibLB</sender>
- <signal>highlighted(int)</signal>
- <receiver>FormCitationDialog</receiver>
- <slot>slotBibSelected(int)</slot>
- </connection>
- <connection>
- <sender>citeLB</sender>
- <signal>highlighted(int)</signal>
- <receiver>FormCitationDialog</receiver>
- <slot>slotCiteSelected(int)</slot>
- </connection>
- <connection>
- <sender>upPB</sender>
- <signal>clicked()</signal>
- <receiver>FormCitationDialog</receiver>
- <slot>slotUpClicked()</slot>
- </connection>
- <slot access="protected">slotAddClicked()</slot>
- <slot access="protected">slotBibSelected(int)</slot>
- <slot access="protected">slotCitationStyleSelected(int)</slot>
- <slot access="protected">slotCiteSelected(int)</slot>
- <slot access="protected">slotDelClicked()</slot>
- <slot access="protected">slotDownClicked()</slot>
- <slot access="protected">slotUpClicked()</slot>
- <slot access="protected">slotNextClicked()</slot>
- <slot access="protected">slotPreviousClicked()</slot>
- <slot access="protected">slotRestoreClicked()</slot>
- <slot access="protected">slotSearchTypeSelected(bool)</slot>
- <slot access="protected">slotTextAfterReturn()</slot>
- <slot access="protected">slotTextBeforeReturn()</slot>
-</connections>
-</UI>
+++ /dev/null
-/**
- * $Id: FormCitationDialogImpl.C,v 1.9 2001/06/17 13:22:55 leeming Exp $
- */
-
-#include <config.h>
-
-#include "FormCitationDialogImpl.h"
-#include "Dialogs.h"
-#include "FormCitation.h"
-#include "qt2BC.h"
-#include "controllers/biblio.h"
-#include "controllers/ControlCitation.h"
-
-#include <qcheckbox.h>
-#include <qlineedit.h>
-#include <qlistbox.h>
-#include <qmultilineedit.h>
-#include <qpushbutton.h>
-#undef emit
-
-#include <algorithm>
-#include "LyXView.h"
-#include "buffer.h"
-
-using std::vector;
-using std::find;
-using std::max;
-
-/*
- * Constructs a FormCitationDialogImpl which is a child of 'parent', with the
- * name 'name' and widget flags set to 'f'
- *
- * The dialog will by default be modeless, unless you set 'modal' to
- * TRUE to construct a modal dialog.
- */
-FormCitationDialogImpl::FormCitationDialogImpl( FormCitation* form, QWidget* parent, const char* name, bool modal, WFlags fl )
- : FormCitationDialog( parent, name, modal, fl ),
- form_( form )
-{
- connect( okPB, SIGNAL( clicked() ),
- form, SLOT( slotOK() ) );
- connect( cancelPB, SIGNAL( clicked() ),
- form, SLOT( slotCancel() ) );
- connect( restorePB, SIGNAL( clicked() ),
- form, SLOT( slotRestore() ) );
- connect( applyPB, SIGNAL( clicked() ),
- form, SLOT( slotApply() ) );
-}
-
-/*
- * Destroys the object and frees any allocated resources
- */
-FormCitationDialogImpl::~FormCitationDialogImpl()
-{
- // no need to delete child widgets, Qt does it all for us
-}
-
-
-// These slots correspond to the XForms input() method.
-void FormCitationDialogImpl::slotBibSelected( int sel )
-{
- biblio::InfoMap const & theMap = form_->controller().bibkeysInfo();
-
- citeLB->clearSelection();
-
- if (sel < 0 || sel >= (int)form_->bibkeys.size()) {
- // form_->bc().input( ButtonPolicy::SMI_NOOP );
- return;
- }
-
- // Put into browser_info the additional info associated with
- // the selected browser_bib key
- infoML->clear();
-
- infoML->setText( biblio::getInfo( theMap,
- form_->bibkeys[sel] ).c_str() );
-
- // Highlight the selected browser_bib key in browser_cite if
- // present
- vector<string>::const_iterator cit =
- std::find(form_->citekeys.begin(), form_->citekeys.end(),
- form_->bibkeys[sel]);
-
- if (cit != form_->citekeys.end()) {
- int const n = int(cit - form_->citekeys.begin());
- citeLB->setSelected( n, true );
- citeLB->setTopItem( n );
- }
-
- if (!form_->controller().isReadonly()) {
- if (cit != form_->citekeys.end()) {
- form_->setBibButtons(FormCitation::OFF);
- form_->setCiteButtons(FormCitation::ON);
- } else {
- form_->setBibButtons(FormCitation::ON);
- form_->setCiteButtons(FormCitation::OFF);
- }
- }
-
- // form_->bc().input( ButtonPolicy::SMI_VALID );
-}
-
-
-void FormCitationDialogImpl::slotCiteSelected( int sel )
-{
- biblio::InfoMap const & theMap = form_->controller().bibkeysInfo();
-
- if (sel < 0 || sel >= (int)form_->citekeys.size()) {
- // form_->bc().input( ButtonPolicy::SMI_NOOP );
- return;
- }
-
- if (!form_->controller().isReadonly()) {
- form_->setBibButtons(FormCitation::OFF);
- form_->setCiteButtons(FormCitation::ON);
- }
-
- // Highlight the selected browser_cite key in browser_bib
- vector<string>::const_iterator cit =
- std::find(form_->bibkeys.begin(), form_->bibkeys.end(), form_->citekeys[sel]);
-
- if (cit != form_->bibkeys.end()) {
- int const n = int(cit - form_->bibkeys.begin());
- bibLB->setSelected( n, true );
- bibLB->setTopItem( n );
-
- // Put into browser_info the additional info associated
- // with the selected browser_cite key
- infoML->clear();
- infoML->setText( biblio::getInfo( theMap, form_->bibkeys[sel] ).c_str() );
- }
-
- // form_->bc().input( ButtonPolicy::SMI_VALID );
-}
-
-
-void FormCitationDialogImpl::slotAddClicked()
-{
- int const sel = bibLB->currentItem();
- if (sel < 0 || sel >= (int)form_->bibkeys.size()) {
- // form_->bc().input( ButtonPolicy::SMI_NOOP );
- return;
- }
-
- // Add the selected browser_bib key to browser_cite
- citeLB->insertItem( form_->bibkeys[sel].c_str() );
- form_->citekeys.push_back( form_->bibkeys[sel] );
-
- int const n = int(form_->citekeys.size());
- citeLB->setSelected( n-1, true );
-
- form_->setBibButtons(FormCitation::OFF);
- form_->setCiteButtons(FormCitation::ON);
-
- // form_->bc().input( ButtonPolicy::SMI_VALID );
-}
-
-
-void FormCitationDialogImpl::slotDelClicked()
-{
- int const sel = citeLB->currentItem();
- if (sel < 0 || sel >= (int)form_->citekeys.size()) {
- // form_->bc().input( ButtonPolicy::SMI_NOOP );
- return;
- }
-
- // Remove the selected key from browser_cite
- citeLB->removeItem( sel );
- form_->citekeys.erase(form_->citekeys.begin() + sel );
-
- form_->setBibButtons(FormCitation::ON);
- form_->setCiteButtons(FormCitation::OFF);
-
- // form_->bc().input( ButtonPolicy::SMI_VALID );
-}
-
-
-void FormCitationDialogImpl::slotUpClicked()
-{
- int const sel = citeLB->currentItem();
- if (sel < 1 || sel >= (int)form_->citekeys.size()) {
- // form_->bc().input( ButtonPolicy::SMI_NOOP );
- return;
- }
-
- // Move the selected key up one line
- vector<string>::iterator it = form_->citekeys.begin() + sel;
- string const tmp = *it;
-
- citeLB->removeItem( sel );
- form_->citekeys.erase(it);
-
- citeLB->insertItem( tmp.c_str(), sel-1 );
- citeLB->setSelected( sel-1, true );
- form_->citekeys.insert(it-1, tmp);
- form_->setCiteButtons(FormCitation::ON);
-
- // form_->bc().input( ButtonPolicy::SMI_VALID );
-}
-
-
-void FormCitationDialogImpl::slotDownClicked()
-{
- int const sel = citeLB->currentItem();
- if (sel < 0 || sel >= (int)form_->citekeys.size()-1) {
- // form_->bc().input( ButtonPolicy::SMI_NOOP );
- return;
- }
-
- // Move the selected key down one line
- vector<string>::iterator it = form_->citekeys.begin() + sel;
- string const tmp = *it;
-
- citeLB->removeItem( sel );
- form_->citekeys.erase(it);
-
- citeLB->insertItem( tmp.c_str(), sel+1 );
- citeLB->setSelected( sel+1, true );
- form_->citekeys.insert(it+1, tmp);
- form_->setCiteButtons(FormCitation::ON);
-
- // form_->bc().input( ButtonPolicy::SMI_VALID );
-}
-
-
-void FormCitationDialogImpl::slotPreviousClicked()
-{
- doPreviousNext( false );
-}
-
-
-void FormCitationDialogImpl::slotNextClicked()
-{
- doPreviousNext( true );
-}
-
-
-void FormCitationDialogImpl::doPreviousNext( bool next )
-{
- biblio::InfoMap const & theMap = form_->controller().bibkeysInfo();
- string const str = searchED->text().latin1();
-
- biblio::Direction const dir =
- next ?
- biblio::FORWARD : biblio::BACKWARD;
-
- biblio::Search const type =
- searchTypeCB->isChecked() ?
- biblio::REGEX : biblio::SIMPLE;
-
- vector<string>::const_iterator start = form_->bibkeys.begin();
- int const sel = bibLB->currentItem();
- if (sel >= 0 && sel <= int(form_->bibkeys.size()-1))
- start += sel;
-
- // Find the NEXT instance...
- if (dir == biblio::FORWARD)
- start += 1;
- else
- start -= 1;
-
- bool const caseSensitive = searchCaseCB->isChecked();
-
- vector<string>::const_iterator const cit =
- biblio::searchKeys(theMap, form_->bibkeys, str,
- start, type, dir, caseSensitive );
-
- if (cit == form_->bibkeys.end()) {
- // form_->bc().input( ButtonPolicy::SMI_NOOP );
- return;
- }
-
- int const found = int(cit - form_->bibkeys.begin());
- if (found == sel) {
- // form_->bc().input( ButtonPolicy::SMI_NOOP );
- return;
- }
-
- // Update the display
- int const top = max(found-5, 1);
- bibLB->setTopItem( top );
- bibLB->setSelected( found, true );
- slotBibSelected( 0 );
-
- // form_->bc().input( ButtonPolicy::SMI_VALID );
-}
-
-
-void FormCitationDialogImpl::slotCitationStyleSelected( int )
-{
- // form_->bc().input( ButtonPolicy::SMI_VALID );
-}
-
-
-void FormCitationDialogImpl::slotTextBeforeReturn()
-{
- // form_->bc().input( ButtonPolicy::SMI_VALID );
-}
-
-
-void FormCitationDialogImpl::slotTextAfterReturn()
-{
- // form_->bc().input( ButtonPolicy::SMI_VALID );
-}
-
+++ /dev/null
-/**
- * $Id: FormCitationDialogImpl.h,v 1.3 2001/03/31 08:39:24 kalle Exp $
- */
-
-#ifndef FORMCITATIONDIALOGIMPL_H
-#define FORMCITATIONDIALOGIMPL_H
-#include "FormCitationDialog.h"
-
-class FormCitation;
-
-class FormCitationDialogImpl : public FormCitationDialog
-{
- Q_OBJECT
-
-public:
- FormCitationDialogImpl( FormCitation* form, QWidget* parent = 0, const char* name = 0, bool modal = FALSE, WFlags fl = 0 );
- ~FormCitationDialogImpl();
-
-protected slots:
- virtual void slotBibSelected( int sel );
- virtual void slotCiteSelected( int sel );
- virtual void slotAddClicked();
- virtual void slotDelClicked();
- virtual void slotUpClicked();
- virtual void slotDownClicked();
- virtual void slotPreviousClicked();
- virtual void slotNextClicked();
- virtual void slotCitationStyleSelected( int );
- virtual void slotTextBeforeReturn();
- virtual void slotTextAfterReturn();
-
-private:
- void doPreviousNext( bool );
-
-private:
- FormCitation* form_;
-};
-
-#endif // FORMCITATIONDIALOGIMPL_H
+++ /dev/null
-/***************************************************************************
- formcopyright.cpp - description
- -------------------
- begin : Thu Feb 3 2000
- copyright : (C) 2000 by Jürgen Vigna, 2001 by Kalle Dalheimer
- email : kalle@klaralvdalens-datakonsult.se
- ***************************************************************************/
-
-/***************************************************************************
- * *
- * This program is free software; you can redistribute it and/or modify *
- * it under the terms of the GNU General Public License as published by *
- * the Free Software Foundation; either version 2 of the License, or *
- * (at your option) any later version. *
- * *
- ***************************************************************************/
-
-#include <config.h>
-
-#include "gettext.h"
-#include "FormCopyrightDialogImpl.h"
-#include <qlabel.h>
-#include <qpushbutton.h>
-#undef emit
-#include "ButtonControllerBase.h"
-#include "qt2BC.h"
-#include "ControlCopyright.h"
-#include "FormCopyright.h"
-
-typedef Qt2CB<ControlCopyright, Qt2DB<FormCopyrightDialogImpl> > base_class;
-
-FormCopyright::FormCopyright( ControlCopyright& c ) :
- base_class( c, _( "Copyright and Warranty" ) )
-{
-}
-
-
-void FormCopyright::build()
-{
- // PENDING(kalle) Parent???
- dialog_.reset( new FormCopyrightDialogImpl() );
- connect( dialog_.get()->closePB, SIGNAL( clicked() ),
- this, SLOT( slotCancel() ) );
-
- dialog_->copyrightLA->setText( controller().getCopyright().c_str() );
- dialog_->licenseLA->setText( controller().getLicence().c_str() );
- dialog_->disclaimerLA->setText( controller().getDisclaimer().c_str() );
-
- // Manage the cancel/close button
- bc().setCancel(dialog_->closePB);
- bc().refresh();
-}
+++ /dev/null
-// -*- C++ -*-
-/***************************************************************************
- formcopyright.h - description
- -------------------
- begin : Thu Feb 3 2000
- copyright : (C) 2000 by Jürgen Vigna, 2001 by Kalle Dalheimer
- email : kalle@klaralvdalens-datakonsult.se
- ***************************************************************************/
-
-/***************************************************************************
- * *
- * 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 FORMCOPYRIGHT_H
-#define FORMCOPYRIGHT_H
-
-#include "Qt2Base.h"
-#include "boost/utility.hpp"
-
-class Dialogs;
-class LyXView;
-class FormCopyrightDialogImpl;
-class ControlCopyright;
-
-/**
- @author Kalle Dalheimer
- */
-class FormCopyright
- : public Qt2CB<ControlCopyright, Qt2DB<FormCopyrightDialogImpl> >
-{
-public:
- FormCopyright( ControlCopyright& );
-
-private:
- /// not needed
- virtual void apply() {}
- /// not needed
- virtual void update() {}
- // build the dialog
- virtual void build();
-};
-
-#endif
+++ /dev/null
-<!DOCTYPE UI><UI>
-<class>FormCopyrightDialog</class>
-<widget>
- <class>QDialog</class>
- <property stdset="1">
- <name>name</name>
- <cstring>FormCopyrightDialog</cstring>
- </property>
- <property stdset="1">
- <name>geometry</name>
- <rect>
- <x>0</x>
- <y>0</y>
- <width>468</width>
- <height>454</height>
- </rect>
- </property>
- <property stdset="1">
- <name>caption</name>
- <string>Copyright and Warranty</string>
- </property>
- <vbox>
- <property stdset="1">
- <name>margin</name>
- <number>11</number>
- </property>
- <property stdset="1">
- <name>spacing</name>
- <number>6</number>
- </property>
- <widget>
- <class>QLabel</class>
- <property stdset="1">
- <name>name</name>
- <cstring>copyrightLA</cstring>
- </property>
- <property stdset="1">
- <name>frameShape</name>
- <enum>Box</enum>
- </property>
- <property stdset="1">
- <name>frameShadow</name>
- <enum>Sunken</enum>
- </property>
- <property stdset="1">
- <name>margin</name>
- <number>6</number>
- </property>
- <property stdset="1">
- <name>text</name>
- <string>KLyX is Copyright (C) 1995 by Matthias Ettrich,
-1995-2001 by LyX Team</string>
- </property>
- <property stdset="1">
- <name>alignment</name>
- <set>AlignCenter</set>
- </property>
- <property>
- <name>hAlign</name>
- </property>
- </widget>
- <widget>
- <class>QLabel</class>
- <property stdset="1">
- <name>name</name>
- <cstring>licenseLA</cstring>
- </property>
- <property stdset="1">
- <name>sizePolicy</name>
- <sizepolicy>
- <hsizetype>1</hsizetype>
- <vsizetype>1</vsizetype>
- </sizepolicy>
- </property>
- <property stdset="1">
- <name>frameShape</name>
- <enum>Box</enum>
- </property>
- <property stdset="1">
- <name>frameShadow</name>
- <enum>Sunken</enum>
- </property>
- <property stdset="1">
- <name>margin</name>
- <number>6</number>
- </property>
- <property stdset="1">
- <name>text</name>
- <string>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.</string>
- </property>
- <property stdset="1">
- <name>alignment</name>
- <set>WordBreak|AlignCenter</set>
- </property>
- <property>
- <name>hAlign</name>
- </property>
- <property>
- <name>wordwrap</name>
- </property>
- </widget>
- <widget>
- <class>QLabel</class>
- <property stdset="1">
- <name>name</name>
- <cstring>disclaimerLA</cstring>
- </property>
- <property stdset="1">
- <name>sizePolicy</name>
- <sizepolicy>
- <hsizetype>5</hsizetype>
- <vsizetype>5</vsizetype>
- </sizepolicy>
- </property>
- <property stdset="1">
- <name>minimumSize</name>
- <size>
- <width>0</width>
- <height>0</height>
- </size>
- </property>
- <property stdset="1">
- <name>frameShape</name>
- <enum>Box</enum>
- </property>
- <property stdset="1">
- <name>frameShadow</name>
- <enum>Sunken</enum>
- </property>
- <property stdset="1">
- <name>margin</name>
- <number>6</number>
- </property>
- <property stdset="1">
- <name>text</name>
- <string>KLyX is distributed in the hope that it will be
-useful, but WITHOUT ANY WARRANTY,
-without even the implied warranty of
-MERCHANTABILITY or FITNESS FOR A
-PARTICULAR PURPOSE. See the GNU General
-Public License for more details.
-You should have received a copy of the GNU
-General Public License along with this program;
-if not, write to the Free Software Foundation, Inc.,
-675 Mass Ave, Cambridge, MA 02139, USA.</string>
- </property>
- <property stdset="1">
- <name>alignment</name>
- <set>WordBreak|AlignCenter</set>
- </property>
- <property>
- <name>hAlign</name>
- </property>
- <property>
- <name>wordwrap</name>
- </property>
- </widget>
- <widget>
- <class>QPushButton</class>
- <property stdset="1">
- <name>name</name>
- <cstring>closePB</cstring>
- </property>
- <property stdset="1">
- <name>sizePolicy</name>
- <sizepolicy>
- <hsizetype>0</hsizetype>
- <vsizetype>0</vsizetype>
- </sizepolicy>
- </property>
- <property stdset="1">
- <name>text</name>
- <string>&Close</string>
- </property>
- <property stdset="1">
- <name>default</name>
- <bool>true</bool>
- </property>
- </widget>
- </vbox>
-</widget>
-<connections>
- <connection>
- <sender>closePB</sender>
- <signal>clicked()</signal>
- <receiver>FormCopyrightDialog</receiver>
- <slot>reject()</slot>
- </connection>
-</connections>
-</UI>
+++ /dev/null
-#include "FormCopyrightDialogImpl.h"
-
-/*
- * Constructs a FormCopyrightDialogImpl which is a child of 'parent', with the
- * name 'name' and widget flags set to 'f'
- *
- * The dialog will by default be modeless, unless you set 'modal' to
- * TRUE to construct a modal dialog.
- */
-FormCopyrightDialogImpl::FormCopyrightDialogImpl( QWidget* parent, const char* name, bool modal, WFlags fl )
- : FormCopyrightDialog( parent, name, modal, fl )
-{
-}
-
-/*
- * Destroys the object and frees any allocated resources
- */
-FormCopyrightDialogImpl::~FormCopyrightDialogImpl()
-{
- // no need to delete child widgets, Qt does it all for us
-}
-
+++ /dev/null
-#ifndef FORMCOPYRIGHTDIALOGIMPL_H
-#define FORMCOPYRIGHTDIALOGIMPL_H
-#include "FormCopyrightDialog.h"
-
-class FormCopyrightDialogImpl : public FormCopyrightDialog
-{
- Q_OBJECT
-
-public:
- FormCopyrightDialogImpl( QWidget* parent = 0, const char* name = 0, bool modal = FALSE, WFlags fl = 0 );
- ~FormCopyrightDialogImpl();
-
-};
-
-#endif // FORMCOPYRIGHTDIALOGIMPL_H
+++ /dev/null
-/**
- * \file FormCredits.C
- * Copyright 2001 The LyX Team.
- * See the file COPYING.
- *
- * \author Edwin Leuven, leuven@fee.uva.nl
- * \author Angus Leeming, a.leeming@.ac.uk
- * \author Kalle Dalheimer, kalle@klaralvdalens-datakonsult.se
- */
-
-#ifdef __GNUG__
-#pragma implementation
-#endif
-
-#include <config.h>
-
-#include "gettext.h"
-#include "FormCreditsDialogImpl.h"
-#include <qtextview.h>
-#include <qpushbutton.h>
-#undef emit
-
-#include "qt2BC.h"
-#include "ControlCredits.h"
-#include "FormCredits.h"
-#include "Lsstream.h"
-
-using std::getline;
-
-typedef Qt2CB<ControlCredits, Qt2DB<FormCreditsDialogImpl> > base_class;
-
-FormCredits::FormCredits(ControlCredits & c)
- : base_class(c, _("Credits"))
-{}
-
-
-void FormCredits::build()
-{
- // PENDING(kalle) Parent?
- dialog_.reset(new FormCreditsDialogImpl( this ));
-
- // Manage the cancel/close button
- bc().setCancel(dialog_->okPB);
- bc().refresh();
-
- stringstream ss;
- QString xformscredits = controller().getCredits( ss ).str().c_str();
- QStringList xformslist = QStringList::split( '\n', controller().getCredits( ss ).str().c_str(), true );
- for( QStringList::Iterator it = xformslist.begin(); it != xformslist.end(); ++it ) {
- QString line = *it;
- if( line.left( 2 ) == "@b" )
- dialog_->creditsTV->append( "<b>" + line.mid( 2 ) + "</b>" );
- else if( line.left( 2 ) == "@i" )
- dialog_->creditsTV->append( "<i>" + line.mid( 2 ) + "</i>" );
- else
- dialog_->creditsTV->append( line );
- }
-}
+++ /dev/null
-// -*- C++ -*-
-/**
- * \file FormCredits.h
- * Copyright 2001 The LyX Team.
- * See the file COPYING.
- *
- * \author Edwin Leuven, leuven@fee.uva.nl
- * \author Angus Leeming, a.leeming@.ac.uk
- * \author Kalle Dalheimer, kalle@klaralvdalens-datakonsult.se
- */
-
-#ifndef FORMCREDITS_H
-#define FORMCREDITS_H
-
-#ifdef __GNUG__
-#pragma interface
-#endif
-
-#include "Qt2Base.h"
-
-class ControlCredits;
-class FormCreditsDialogImpl;
-
-/** This class provides a Qt2 implementation of the FormCredits Dialog.
- */
-class FormCredits : public Qt2CB<ControlCredits, Qt2DB<FormCreditsDialogImpl> > {
-public:
- ///
- FormCredits(ControlCredits &);
-
-private:
- /// not needed.
- virtual void apply() {}
- /// not needed.
- virtual void update() {}
- /// Build the dialog
- virtual void build();
-};
-
-#endif
-
+++ /dev/null
-<!DOCTYPE UI><UI>
-<class>FormCreditsDialog</class>
-<widget>
- <class>QDialog</class>
- <property stdset="1">
- <name>name</name>
- <cstring>FormCreditsDialog</cstring>
- </property>
- <property stdset="1">
- <name>geometry</name>
- <rect>
- <x>0</x>
- <y>0</y>
- <width>366</width>
- <height>301</height>
- </rect>
- </property>
- <property stdset="1">
- <name>caption</name>
- <string>Form1</string>
- </property>
- <vbox>
- <property stdset="1">
- <name>margin</name>
- <number>11</number>
- </property>
- <property stdset="1">
- <name>spacing</name>
- <number>6</number>
- </property>
- <widget>
- <class>QLabel</class>
- <property stdset="1">
- <name>name</name>
- <cstring>TextLabel1</cstring>
- </property>
- <property stdset="1">
- <name>text</name>
- <string>All these people have contributed to the LyX project. Thanks,</string>
- </property>
- <property stdset="1">
- <name>alignment</name>
- <set>AlignCenter</set>
- </property>
- <property>
- <name>hAlign</name>
- </property>
- </widget>
- <widget>
- <class>QLabel</class>
- <property stdset="1">
- <name>name</name>
- <cstring>TextLabel2</cstring>
- </property>
- <property stdset="1">
- <name>font</name>
- <font>
- <italic>1</italic>
- </font>
- </property>
- <property stdset="1">
- <name>text</name>
- <string>Matthias</string>
- </property>
- <property stdset="1">
- <name>alignment</name>
- <set>AlignCenter</set>
- </property>
- <property>
- <name>hAlign</name>
- </property>
- </widget>
- <widget>
- <class>QTextView</class>
- <property stdset="1">
- <name>name</name>
- <cstring>creditsTV</cstring>
- </property>
- <property stdset="1">
- <name>minimumSize</name>
- <size>
- <width>0</width>
- <height>200</height>
- </size>
- </property>
- <property stdset="1">
- <name>textFormat</name>
- <enum>RichText</enum>
- </property>
- </widget>
- <widget>
- <class>QLayoutWidget</class>
- <property stdset="1">
- <name>name</name>
- <cstring>Layout8</cstring>
- </property>
- <hbox>
- <property stdset="1">
- <name>margin</name>
- <number>0</number>
- </property>
- <property stdset="1">
- <name>spacing</name>
- <number>6</number>
- </property>
- <spacer>
- <property>
- <name>name</name>
- <cstring>Spacer1</cstring>
- </property>
- <property stdset="1">
- <name>orientation</name>
- <enum>Horizontal</enum>
- </property>
- <property stdset="1">
- <name>sizeType</name>
- <enum>Expanding</enum>
- </property>
- <property>
- <name>sizeHint</name>
- <size>
- <width>20</width>
- <height>20</height>
- </size>
- </property>
- </spacer>
- <widget>
- <class>QPushButton</class>
- <property stdset="1">
- <name>name</name>
- <cstring>okPB</cstring>
- </property>
- <property stdset="1">
- <name>text</name>
- <string>OK</string>
- </property>
- <property stdset="1">
- <name>default</name>
- <bool>true</bool>
- </property>
- </widget>
- <spacer>
- <property>
- <name>name</name>
- <cstring>Spacer2</cstring>
- </property>
- <property stdset="1">
- <name>orientation</name>
- <enum>Horizontal</enum>
- </property>
- <property stdset="1">
- <name>sizeType</name>
- <enum>Expanding</enum>
- </property>
- <property>
- <name>sizeHint</name>
- <size>
- <width>20</width>
- <height>20</height>
- </size>
- </property>
- </spacer>
- </hbox>
- </widget>
- </vbox>
-</widget>
-</UI>
+++ /dev/null
-#include "FormCreditsDialogImpl.h"
-#include "FormCredits.h"
-#include <qpushbutton.h>
-
-/*
- * Constructs a FormCreditsDialogImpl which is a child of 'parent', with the
- * name 'name' and widget flags set to 'f'
- *
- * The dialog will by default be modeless, unless you set 'modal' to
- * TRUE to construct a modal dialog.
- */
-FormCreditsDialogImpl::FormCreditsDialogImpl( FormCredits* form, QWidget* parent,
- const char* name, bool modal, WFlags fl )
- : FormCreditsDialog( parent, name, modal, fl )
-{
- connect( okPB, SIGNAL( clicked() ),
- form, SLOT( slotCancel() ) );
-}
-
-/*
- * Destroys the object and frees any allocated resources
- */
-FormCreditsDialogImpl::~FormCreditsDialogImpl()
-{
- // no need to delete child widgets, Qt does it all for us
-}
-
+++ /dev/null
-#ifndef FORMCREDITSDIALOGIMPL_H
-#define FORMCREDITSDIALOGIMPL_H
-#include "FormCreditsDialog.h"
-
-class FormCredits;
-
-class FormCreditsDialogImpl : public FormCreditsDialog
-{
- Q_OBJECT
-
-public:
- FormCreditsDialogImpl( FormCredits* form, QWidget* parent = 0,
- const char* name = 0, bool modal = FALSE, WFlags fl = 0 );
- ~FormCreditsDialogImpl();
-
-};
-
-#endif // FORMCREDITSDIALOGIMPL_H
+++ /dev/null
-/* This file is part of
- * ======================================================
- *
- * LyX, The Document Processor
- *
- * Copyright 2000 The LyX Team.
- *
- * @author Kalle Dalheimer
- *
- *======================================================*/
-
-#include <config.h>
-
-#ifdef __GNUG_
-#pragma implementation
-#endif
-
-#include "FormDocument.h"
-#include "FormDocumentDialogImpl.h"
-#undef emit
-
-#include "lyx_gui_misc.h"
-
-#include "Dialogs.h"
-#include "layout.h"
-#include "tex-strings.h"
-#include "bufferparams.h"
-#include "insets/insetquotes.h"
-#include "vspace.h"
-#include "support/filetools.h"
-#include "language.h"
-#include "LyXView.h"
-#include "BufferView.h"
-#include "buffer.h"
-#include "Liason.h"
-#include "CutAndPaste.h"
-#include "bufferview_funcs.h"
-
-#include <qcombobox.h>
-#include <qlineedit.h>
-#include <qradiobutton.h>
-#include <qspinbox.h>
-
-using Liason::setMinibuffer;
-using SigC::slot;
-
-typedef Qt2CB<ControlDocument, Qt2DB<FormDocumentDialogImpl> > base_class;
-
-FormDocument::FormDocument( ControlDocument& c )
- : base_class( c, _("Document Layout"))
-{
-}
-
-
-void FormDocument::build()
-{
- int n;
-
- // the tabbed folder
- // PENDING(kalle) Parent???
- dialog_.reset( new FormDocumentDialogImpl());
-
- // Manage the restore, ok, apply, restore and cancel/close buttons
- bc().setOK(dialog_->okPB);
- bc().setApply(dialog_->applyPB);
- bc().setCancel(dialog_->cancelPB);
- bc().setRestore(dialog_->restorePB);
- bc().refresh();
-
- // the document paper page
- FormDocumentDialogImpl* dialog = dialog_.get();
- dialog->papersize2CO->insertItem( _( "Default" ) );
- dialog->papersize2CO->insertItem( _( "Custom" ) );
- dialog->papersize2CO->insertItem( _( "USletter" ) );
- dialog->papersize2CO->insertItem( _( "USlegal" ) );
- dialog->papersize2CO->insertItem( _( "USexecutive" ) );
- dialog->papersize2CO->insertItem( _( "A3" ) );
- dialog->papersize2CO->insertItem( _( "A4" ) );
- dialog->papersize2CO->insertItem( _( "A5" ) );
- dialog->papersize2CO->insertItem( _( "B3" ) );
- dialog->papersize2CO->insertItem( _( "B4" ) );
- dialog->papersize2CO->insertItem( _( "B5" ) );
-
- dialog->paperPackageCO->insertItem( _( "None" ) );
- dialog->paperPackageCO->insertItem( _( "A4 small Margins (only portrait)" ) );
- dialog->paperPackageCO->insertItem( _( "A4 very small Margins (only portrait)" ) );
- dialog->paperPackageCO->insertItem( _( "A4 very wide margins (only portrait)" ) );
-
- bc().addReadOnly (dialog->paperPackageCO);
- bc().addReadOnly (dialog->orientationBG);
- bc().addReadOnly (dialog->portraitRB);
- bc().addReadOnly (dialog->landscapeRB);
- bc().addReadOnly (dialog->papersize2CO);
- bc().addReadOnly (dialog->useGeometryCB);
- bc().addReadOnly (dialog->customWidthED);
- bc().addReadOnly (dialog->customHeightED);
- bc().addReadOnly (dialog->topMarginED);
- bc().addReadOnly (dialog->bottomMarginED);
- bc().addReadOnly (dialog->leftMarginED);
- bc().addReadOnly (dialog->rightMarginED);
- bc().addReadOnly (dialog->headHeightED);
- bc().addReadOnly (dialog->headSepED);
- bc().addReadOnly (dialog->footSkipED);
-
- // the document page
- for (LyXTextClassList::const_iterator cit = textclasslist.begin();
- cit != textclasslist.end(); ++cit) {
- docClassCO->insertItem( (*cit).description().c_str() );
- }
-
- dialog->docSpacingCO->insertItem( _( "Single" ) );
- dialog->docSpacingCO->insertItem( _( "OneHalf" ) );
- dialog->docSpacingCO->insertItem( _( "Double" ) );
- dialog->docSpacingCO->insertItem( _( "Other" ) );
-
- dialog->docFontSizeCO->insertItem( _( "default" ) );
- dialog->docFontSizeCO->insertItem( _( "10" ) );
- dialog->docFontSizeCO->insertItem( _( "11" ) );
- dialog->docFontSizeCO->insertItem( _( "12" ) );
- for (n=0; tex_fonts[n][0]; ++n) {
- dialog->docFontsCO->insertItem( tex_fonts[n] );
- }
-
- dialog->docPagestyleCO->insertItem( _( "default" ) );
- dialog->docPagestyleCO->insertItem( _( "empty" ) );
- dialog->docPagestyleCO->insertItem( _( "plain" ) );
- dialog->docPagestyleCO->insertItem( _( "headings" ) );
- dialog->docPagestyleCO->insertItem( _( "fancy" ) );
-
- dialog->docSkipCO->insertItem( _( "Smallskip" ) );
- dialog->docSkipCO->insertItem( _( "Medskip" ) );
- dialog->docSkipCO->insertItem( _( "Bigskip" ) );
- dialog->docSkipCO->insertItem( _( "Length" ) );
-
- bc().addReadOnly (dialog->docIndentRB);
- bc().addReadOnly (dialog->docSkipRB);
-
- bc().addReadOnly (dialog->docPagestyleCO);
- bc().addReadOnly (dialog->docFontsCO);
- bc().addReadOnly (dialog->docFontsizeCO);
- bc().addReadOnly (dialog->docSidesOneRB);
- bc().addReadOnly (dialog->docSidesTwoRB);
- bc().addReadOnly (dialog->docColumnsOneRB);
- bc().addReadOnly (dialog->docColumnsTwoRB);
- bc().addReadOnly (dialog->docExtraED);
- bc().addReadOnly (dialog->docSkipED);
- bc().addReadOnly (dialog->docSkipCO);
- bc().addReadOnly (dialog->docSpacingCO);
- bc().addReadOnly (dialog->docSpacingED);
-
- // the document language page
- dialog->inputEncCO->insertItem( _( "default" ) );
- dialog->inputEncCO->insertItem( _( "auto" ) );
- dialog->inputEncCO->insertItem( _( "latin1" ) );
- dialog->inputEncCO->insertItem( _( "latin2" ) );
- dialog->inputEncCO->insertItem( _( "latin5" ) );
- dialog->inputEncCO->insertItem( _( "latin9" ) );
- dialog->inputEncCO->insertItem( _( "koi8-r" ) );
- dialog->inputEncCO->insertItem( _( "koi8-u" ) );
- dialog->inputEncCO->insertItem( _( "cp866" ) );
- dialog->inputEncCO->insertItem( _( "cp1251" ) );
- dialog->inputEncCO->insertItem( _( "iso88595" ) );
-
- for (Languages::const_iterator cit = languages.begin();
- cit != languages.end(); ++cit) {
- dialog->languageCO->insertItem( (*cit).second.lang() );
- }
-
- dialog->quotesLanguageCO->insertItem( _( "``text''" ) );
- dialog->quotesLanguageCO->insertItem( _( "''text''" ) );
- dialog->quotesLanguageCO->insertItem( _( ",,text``" ) );
- dialog->quotesLanguageCO->insertItem( _( ",,text''" ) );
- dialog->quotesLanguageCO->insertItem( _( "«text»" ) );
- dialog->quotesLanguageCO->insertItem( _( "»text«" ) );
-
- bc().addReadOnly (dialog->inputEncCO);
-
- // the document options page
- dialog->secNumDepthSB->setRange( -2, 5 );
- dialog->tocDepthSB->setRange( -1, 5 );
- dialog->secNumDepthSB->setSteps( 1, 1 );
- dialog->tocDepthSB->setRange( 1, 1 );
- for (n=0; tex_graphics[n][0]; ++n) {
- dialog->postscriptDriverCO->insertItem( tex_graphics[n] );
- }
-
- bc().addReadOnly (dialog->secNumDepthSB);
- bc().addReadOnly (dialog->tocDepthSB);
- bc().addReadOnly (dialog->useAmsMathCB);
- bc().addReadOnly (dialog->floatPlacementED);
- bc().addReadOnly (dialog->postscriptDriverCO);
-
- // the document bullets page
- dialog->bulletSizeCO->insertItem( _( "default" ) );
- dialog->bulletSizeCO->insertItem( _( "tiny" ) );
- dialog->bulletSizeCO->insertItem( _( "script" ) );
- dialog->bulletSizeCO->insertItem( _( "footnote" ) );
- dialog->bulletSizeCO->insertItem( _( "small" ) );
- dialog->bulletSizeCO->insertItem( _( "normal" ) );
- dialog->bulletSizeCO->insertItem( _( "large" ) );
- dialog->bulletSizeCO->insertItem( _( "Large" ) );
- dialog->bulletSizeCO->insertItem( _( "LARGE" ) );
- dialog->bulletSizeCO->insertItem( _( "huge" ) );
- dialog->bulletSizeCO->insertItem( _( "Huge" ) );
-
- dialog->bulletSizeCO->setCurrentItem( 0 );
- dialog->bulletLatexED->setMaxLength( 80 );
-
- bc().addReadOnly (dialog->bulletPanelBG);
- bc().addReadOnly (dialog->bulletSizeCO);
- bc().addReadOnly (dialog->bulletLatexED);
-}
-
-
-void FormDocument::apply()
-{
- if (!lv_->view()->available() || !dialog_.get())
- return;
-
- bool redo = class_apply();
- paper_apply();
- redo = language_apply() || redo;
- redo = options_apply() || redo;
- bullets_apply();
-
- if (redo) {
- lv_->view()->redoCurrentBuffer();
- }
- lv_->buffer()->markDirty();
- setMinibuffer(lv_, _("Document layout set"));
-}
-
-
-void FormDocument::cancel()
-{
- // this avoids confusion when reopening
- BufferParams & param = lv_->buffer()->params;
- param.temp_bullets[0] = param.user_defined_bullets[0];
- param.temp_bullets[1] = param.user_defined_bullets[1];
- param.temp_bullets[2] = param.user_defined_bullets[2];
- param.temp_bullets[3] = param.user_defined_bullets[3];
- hide();
-}
-
-
-void FormDocument::update()
-{
- if (!dialog_.get())
- return;
-
- checkReadOnly();
-
- BufferParams const & params = lv_->buffer()->params;
-
- class_update(params);
- paper_update(params);
- language_update(params);
- options_update(params);
- bullets_update(params);
-}
-
-
-#ifdef K
-bool FormDocument::input( FL_OBJECT * ob, long data )
-{
- State cb = static_cast<State>( data );
-
- switch (cb) {
- case CHECKCHOICECLASS:
- CheckChoiceClass(ob, 0);
- break;
- case CHOICEBULLETSIZE:
- ChoiceBulletSize(ob, 0);
- break;
- case INPUTBULLETLATEX:
- InputBulletLaTeX(ob, 0);
- break;
- case BULLETDEPTH1:
- case BULLETDEPTH2:
- case BULLETDEPTH3:
- case BULLETDEPTH4:
- BulletDepth(ob, cb);
- break;
- case BULLETPANEL1:
- case BULLETPANEL2:
- case BULLETPANEL3:
- case BULLETPANEL4:
- case BULLETPANEL5:
- case BULLETPANEL6:
- BulletPanel(ob, cb);
- break;
- case BULLETBMTABLE:
- BulletBMTable(ob, 0);
- break;
- default:
- break;
- }
-
- switch (data) {
- case INPUT:
- case CHECKCHOICECLASS:
- case CHOICEBULLETSIZE:
- case INPUTBULLETLATEX:
- case BULLETBMTABLE:
- return CheckDocumentInput(ob, 0);
- default:
- break;
- }
-
- return true;
-}
-#endif
-
-
-// FIXME: "K" ???
-#ifdef K
-void FormDocument::ComboInputCB(int, void * v, Combox * combox)
-{
- FormDocument * pre = static_cast<FormDocument*>(v);
- if (combox == pre->combo_doc_class.get())
- pre->CheckChoiceClass(0, 0);
- pre->bc().valid(pre->CheckDocumentInput(0,0));
-}
-#endif
-
-bool FormDocument::class_apply()
-{
- bool redo = false;
- BufferParams ¶ms = lv_->buffer()->params;
-
- // If default skip is a "Length" but there's no text in the
- // input field, reset the kind to "Medskip", which is the default.
- if( ( dialog_->docSkipCO->currentItem() == 3 ) &&
- dialog_->docSkipED->text().isEmpty() )
- dialog_->docSkipCO->setCurrentItem( 1 );
-
- params.fonts = dialog_->docFontsCO->currentText();
- params.fontsize = dialog_->docFontSizeCO->currentText();
- params.pagestyle = dialog->docPagestyleCO->currentText();
-
- unsigned int const new_class = dialog_->docClassCO->currentItem();
-
- if (params.textclass != new_class) {
- // try to load new_class
- if (textclasslist.Load(new_class)) {
- // successfully loaded
- redo = true;
- setMinibuffer(lv_, _("Converting document to new document class..."));
- CutAndPaste cap;
- int ret = cap.SwitchLayoutsBetweenClasses(params.textclass, new_class,
- lv_->buffer()->paragraph);
- if (ret) {
- string s;
- if (ret==1) {
- s = _("One paragraph couldn't be converted");
- } else {
- s += tostr(ret);
- s += _(" paragraphs couldn't be converted");
- }
- WriteAlert(_("Conversion Errors!"),s,
- _("into chosen document class"));
- }
-
- params.textclass = new_class;
- } else {
- // problem changing class -- warn user and retain old style
- WriteAlert(_("Conversion Errors!"),
- _("Errors loading new document class."),
- _("Reverting to original document class."));
- dialog_->docClassCO->setCurrentItem( params.textclass );
- }
- }
- BufferParams::PARSEP tmpsep = params.paragraph_separation;
- if( dialog_->_docIndentRB->isChecked() )
- params.paragraph_separation = BufferParams::PARSEP_INDENT;
- else
- params.paragraph_separation = BufferParams::PARSEP_SKIP;
- if (tmpsep != params.paragraph_separation)
- redo = true;
-
- VSpace tmpdefskip = params.getDefSkip();
- switch( dialog_->docSkipCO->currentItem() ) {
- case 0:
- params.setDefSkip(VSpace(VSpace::SMALLSKIP));
- break;
- case 1:
- params.setDefSkip(VSpace(VSpace::MEDSKIP));
- break;
- case 2:
- params.setDefSkip(VSpace(VSpace::BIGSKIP));
- break;
- case 3:
- params.setDefSkip
- (VSpace(LyXGlueLength(dialog_->docSkipED->text())));
- break;
- // DocumentDefskipCB assures that this never happens
- // ... so why is there code for it ?
- default:
- params.setDefSkip(VSpace(VSpace::MEDSKIP));
- break;
- }
- if (!(tmpdefskip == params.getDefSkip()))
- redo = true;
-
- if( dialog_->docColumnsTwo->isChecked() )
- params.columns = 2;
- else
- params.columns = 1;
- if( dialog_->docSidesTwo->isChecked() )
- params.sides = LyXTextClass::TwoSides;
- else
- params.sides = LyXTextClass::OneSide;
-
- Spacing tmpSpacing = params.spacing;
- switch( dialog_->docSpacingCO->currentItem() ) {
- case 0:
- lyxerr[Debug::INFO] << "Spacing: SINGLE\n";
- params.spacing.set(Spacing::Single);
- break;
- case 1:
- lyxerr[Debug::INFO] << "Spacing: ONEHALF\n";
- params.spacing.set(Spacing::Onehalf);
- break;
- case 2:
- lyxerr[Debug::INFO] << "Spacing: DOUBLE\n";
- params.spacing.set(Spacing::Double);
- break;
- case 3:
- lyxerr[Debug::INFO] << "Spacing: OTHER\n";
- params.spacing.set(Spacing::Other,
- dialog_->docSpacingED->text() );
- break;
- }
- if (tmpSpacing != params.spacing)
- redo = true;
-
- params.options = docExtraED->text();
-
- return redo;
-}
-
-
-void FormDocument::paper_apply()
-{
- BufferParams & params = lv_->buffer()->params;
-
- params.papersize2 =
- static_cast<char>(dialog_->papersize2CO->currentItem());
- params.paperpackage =
- static_cast<char>(dialog_->paperPackageCO->currentItem() );
- params.use_geometry = dialog_->useGeometryCB->isChecked();
- if (dialog_->landscapeRB->isChecked() )
- params.orientation = BufferParams::ORIENTATION_LANDSCAPE;
- else
- params.orientation = BufferParams::ORIENTATION_PORTRAIT;
- params.paperwidth = dialog_->customWidthED->text();
- params.paperheight = dialog_->customHeightED->text();
- params.leftmargin = dialog_->leftMarginED->text();
- params.topmargin = dialog_->topMarginED->text();
- params.rightmargin = dialog_->rightMarginED->text();
- params.bottommargin = dialog_->bottomMarginED->text();
- params.headheight = dialog_->headHeightED->text();
- params.headsep = dialog_->headSepED->text();
- params.footskip = dialog_->footSkipED->text();
- lv_->buffer()->setPaperStuff();
-}
-
-
-bool FormDocument::language_apply()
-{
- BufferParams & params = lv_->buffer()->params;
- InsetQuotes::quote_language lga = InsetQuotes::EnglishQ;
- bool redo = false;
-
- switch (dialog_->quotesLanguageCO->currentItem() ) {
- case 0:
- lga = InsetQuotes::EnglishQ;
- break;
- case 1:
- lga = InsetQuotes::SwedishQ;
- break;
- case 2:
- lga = InsetQuotes::GermanQ;
- break;
- case 3:
- lga = InsetQuotes::PolishQ;
- break;
- case 4:
- lga = InsetQuotes::FrenchQ;
- break;
- case 5:
- lga = InsetQuotes::DanishQ;
- break;
- }
- params.quotes_language = lga;
- if (dialog_->singleRB->isChecked() )
- params.quotes_times = InsetQuotes::SingleQ;
- else
- params.quotes_times = InsetQuotes::DoubleQ;
-
- Language const * old_language = params.language;
- Language const * new_language =
- languages.getLanguage(dialog_->languageCO->currentItem() );
- if (!new_language)
- new_language = default_language;
-
- if (old_language != new_language
- && old_language->RightToLeft() == new_language->RightToLeft()
- && !lv_->buffer()->isMultiLingual())
- lv_->buffer()->ChangeLanguage(old_language, new_language);
-
- if (old_language != new_language)
- redo = true;
-
- params.language = new_language;
- params.inputenc = dialog_->inputEncCO->currentText();
-
- return redo;
-}
-
-
-bool FormDocument::options_apply()
-{
- BufferParams & params = lv_->buffer()->params;
- bool redo = false;
-
- params.graphicsDriver =
- dialog_->postscriptDriverCO->currentText();
- params.use_amsmath = dialog_->useAmsMathCB->isChecked();
-
- int tmpchar = int(dialog_->secNumDepth->value() );
- if (params.secnumdepth != tmpchar)
- redo = true;
- params.secnumdepth = tmpchar;
-
- params.tocdepth = int(dialog_->tocDepth->value() );
-
- params.float_placement =
- dialog_->floatPlacementED->text();
-
- return redo;
-}
-
-
-void FormDocument::bullets_apply()
-{
- /* update the bullet settings */
- BufferParams & param = lv_->buffer()->params;
-
- // a little bit of loop unrolling
- param.user_defined_bullets[0] = param.temp_bullets[0];
- param.user_defined_bullets[1] = param.temp_bullets[1];
- param.user_defined_bullets[2] = param.temp_bullets[2];
- param.user_defined_bullets[3] = param.temp_bullets[3];
-}
-
-
-void FormDocument::class_update(BufferParams const & params)
-{
- if (!class_.get())
- return;
-
- LyXTextClass const & tclass = textclasslist.TextClass(params.textclass);
-
- combo_doc_class->select_text(
- textclasslist.DescOfClass(params.textclass));
- Qt2Helper::setCurrentComboItem( dialog_->docFonts, params.fonts.c_str() );
- dialog_->docFontSizeCO->clear();
- dialog_->docFontSizeCO->insertItem( _( "default" ) );
- dialog_->docFontSizeCO->insertItem( tclass.opt_fontsize().c_str());
- dialog_->docFontSizeCO->setCurrentItem( tokenPos(tclass.opt_fontsize(), '|', params.fontsize)+1);
- dialog_->docPagestyleCO->clear();
- dialog_->docPagestyleCO->insertItem( _( "default" ) );
- dialog_->docPagestyleCO->insertItem( tclass.opt_pagestyle().c_str());
- dialog_->docPagestyleCO->setCurrentItem( tokenPos(tclass.opt_pagestyle(), '|', params.pagestyle)+1);
- dialog_->docIndentRB->setChecked( false );
- dialog_->docSkipRB->setChecked( false );
- if (params.paragraph_separation == BufferParams::PARSEP_INDENT)
- dialog_->docIndentRB->setChecked( true );
- else
- dialog_->docSkipRB->setChecked( true );
- switch (params.getDefSkip().kind()) {
- case VSpace::SMALLSKIP:
- dialog_->docSkipCO->setCurrentItem( 0 );
- break;
- case VSpace::MEDSKIP:
- dialog_->docSkipCO->setCurrentItem( 1 );
- break;
- case VSpace::BIGSKIP:
- dialog_->docSkipCO->setCurrentItem( 2 );
- break;
- case VSpace::LENGTH:
- dialog_->docSkipCO->setCurrentItem( 3 );
- dialog_->docSkipED->setText( params.getDefSkip().asLyXCommand().c_str());
- break;
- default:
- dialog_->docSkipCO->setCurrentItem( 1 );
- break;
- }
- dialog_->docSidesOneRB->setChecked( false );
- dialog_->docSidesTwoRB->setChecked( false );
- if (params.sides == LyXTextClass::TwoSides)
- dialog_->docSidesTwo->setChecked( true );
- else
- dialog_->docSidesOne->setChecked( true );
- dialog_->docColumnsOneRB->setChecked( false );
- dialog_->docColumnsTwoRB->setChecked( false );
- if (params.columns == 2)
- dialog_->docColumnsTwoRB->setChecked( true );
- else
- dialog_->docColumnsOneRB->setChecked( true );
- dialog_->docSpacingED->setText( "" );
- switch (params.spacing.getSpace()) {
- case Spacing::Default: // nothing bad should happen with this
- case Spacing::Single:
- // \singlespacing
- dialog_->docSpacingCO->setCurrentItem( 0 );
- break;
- case Spacing::Onehalf:
- // \onehalfspacing
- dialog_->docSpacingCO->setCurrentItem( 1 );
- break;
- case Spacing::Double:
- // \doublespacing
- dialog_->docSpacingCO->setCurrentItem( 2 );
- break;
- case Spacing::Other:
- {
- dialog_->docSpacingCO->setCurrentItem( 3 );
- QString sval;
- sval.sprintf("%g",params.spacing.getValue());
- dialog_->docSpacingED->setText( sval );
- break;
- }
- }
- if (!params.options.empty())
- dialog_->docExtraED->setText(, params.options.c_str());
- else
- dialog_->docExtraED->setText( "" );
-}
-
-
-void FormDocument::language_update(BufferParams const & params)
-{
- if (!language_.get())
- return;
-
- Qt2Helper::setCurrentItemText( dialog_->languageCO, params.language->lang() );
- Qt2Helper::setCurrentItemText( dialog_->inputEncCO, params.inputenc.c_str() );
- dialog_->quotesLanguageCO->setCurrentItem( params.quotes_language );
- dialog_->singleRB->setChecked( false );
- dialog_->doubleRB->setChecked( false );
- if (params.quotes_times == InsetQuotes::SingleQ)
- dialog_->singleRB->setChecked( true );
- else
- dialog_->doubleRB->setChecked( true );
-}
-
-
-void FormDocument::options_update(BufferParams const & params)
-{
- if (!options_.get())
- return;
-
- Qt2Helper::setCurrentItemText( dialog_->postscriptDriverCO,
- params.graphicsDriver.c_str());
- dialog_->useAmsMathCB->setChecked( params.use_amsmath );
- dialog_->secNumDepthSB->setValue( params.secnumdepth );
- dialog_->setTocDepthSB->setValue( params.tocdepth );
- if (!params.float_placement.empty())
- dialog_->floatPlacementED->setText( params.float_placement.c_str());
- else
- dialog_->floatPlacementED->setText( "" );
-}
-
-
-void FormDocument::paper_update(BufferParams const & params)
-{
- if (!paper_.get())
- return;
-
- dialog_->papersize2CO->setCurrentItem( params.papersize2 );
- dialog_->paperPackageCO->setCurrentItem( params.paperpackage );
- dialog_->useGeometryCB->setChecked( params.use_geometry );
- dialog_->portraitRB->setChecked( false );
- dialog_->landscapeRB->setChecked( false );
- if (params.orientation == BufferParams::ORIENTATION_LANDSCAPE)
- dialog_->landscapeRB->setChecked( true );
- else
- dialog_->portraitRB->setChecked( true );
- dialog_->customWidthED->setText( params.paperwidth.c_str());
- dialog_->customHeightED->setText( params.paperheight.c_str());
- dialog_->leftMarginED->setText( params.leftmargin.c_str());
- dialog_->topMarginED->setText( params.topmargin.c_str());
- dialog_->rightMarginED->setText( params.rightmargin.c_str());
- dialog_->bottomMarginED->setText( params.bottommargin.c_str());
- dialog_->headHeightED->setText( params.headheight.c_str());
- dialog_->headSepED->setText( params.headsep.c_str());
- dialog_->footSkipED->setText( params.footskip.c_str());
- dialog_->papersize2CO->setFocus();
-}
-
-
-void FormDocument::bullets_update(BufferParams const & params)
-{
- bool const isLinuxDoc = lv_->buffer()->isLinuxDoc();
- setEnabled(fbullet, !isLinuxDoc);
-
- if (isLinuxDoc) return;
-
- dialog_->bulletDepth1RB->setChecked( true );
- dialog_->bulletLatexED->setText( params.user_defined_bullets[0].getText().c_str());
- dialog_->bulletSizeCO->setCurrentItem( params.user_defined_bullets[0].getSize() + 1);
-}
-
-
-void FormDocument::checkReadOnly()
-{
- if (bc().readOnly(lv_->buffer()->isReadonly())) {
- dialog_->docClassCO->setEnabled( false );
- dialog_->languageCO->setEnabled( false );
- dialog_->warningLA->setText( _("Document is read-only."
- " No changes to layout permitted."));
- dialog_->warningLA->show();
- } else {
- dialog_->docClassCO->setEnabled( true );
- dialog_->languageCO->setEnabled( true );
- dialog_->warningLA->hide();
- }
-}
-
-
-void FormDocument::checkMarginValues()
-{
- bool const not_empty =
- !dialog_->topMarginED->text().isEmpty() ||
- !dialog_->bottomMarginED->text().isEmpty() ||
- !dialog_->leftMarginED->text().isEmpty() ||
- !dialog_->rightMarginED->text().isEmpty() ||
- !dialog_->headHeightED->text().isEmpty() ||
- !dialog_->headSepED->text().isEmpty() ||
- !dialog_->footSkipED->text().isEmpty() ||
- !dialog_->customWidthED->text().isEmpty() ||
- !dialog_->customHeightED->text().isEmpty();
- if (not_empty)
- dialog_->useGeometryCB->setChecked( true );
-}
-
-#ifdef K
-bool FormDocument::CheckDocumentInput(FL_OBJECT * ob, long)
-{
- string str;
- int val;
- bool ok = true;
- char const * input;
-
- checkMarginValues();
- if (ob == paper_->choice_papersize2) {
- val = fl_get_choice(paper_->choice_papersize2)-1;
- if (val == BufferParams::VM_PAPER_DEFAULT) {
- fl_set_button(paper_->push_use_geometry, 0);
- checkMarginValues();
- } else {
- if ((val != BufferParams::VM_PAPER_USLETTER) &&
- (val != BufferParams::VM_PAPER_USLEGAL) &&
- (val != BufferParams::VM_PAPER_USEXECUTIVE) &&
- (val != BufferParams::VM_PAPER_A4) &&
- (val != BufferParams::VM_PAPER_A5) &&
- (val != BufferParams::VM_PAPER_B5)) {
- fl_set_button(paper_->push_use_geometry, 1);
- }
- fl_set_choice(paper_->choice_paperpackage,
- BufferParams::PACKAGE_NONE + 1);
- }
- } else if (ob == paper_->choice_paperpackage) {
- val = fl_get_choice(paper_->choice_paperpackage)-1;
- if (val != BufferParams::PACKAGE_NONE) {
- fl_set_choice(paper_->choice_papersize2,
- BufferParams::VM_PAPER_DEFAULT + 1);
- fl_set_button(paper_->push_use_geometry, 0);
- }
- } else if (ob == class_->input_doc_spacing) {
- input = fl_get_input(class_->input_doc_spacing);
- if (!*input) {
- fl_set_choice (class_->choice_doc_spacing, 1);
- } else {
- fl_set_choice(class_->choice_doc_spacing, 4);
- }
- }
- // this has to be all out of if/elseif because it has to deactivate
- // the document buttons and so the whole stuff has to be tested again.
- str = fl_get_input(paper_->input_custom_width);
- ok = ok && (str.empty() || isValidLength(str));
- str = fl_get_input(paper_->input_custom_height);
- ok = ok && (str.empty() || isValidLength(str));
- str = fl_get_input(paper_->input_left_margin);
- ok = ok && (str.empty() || isValidLength(str));
- str = fl_get_input(paper_->input_right_margin);
- ok = ok && (str.empty() || isValidLength(str));
- str = fl_get_input(paper_->input_top_margin);
- ok = ok && (str.empty() || isValidLength(str));
- str = fl_get_input(paper_->input_bottom_margin);
- ok = ok && (str.empty() || isValidLength(str));
- str = fl_get_input(paper_->input_head_height);
- ok = ok && (str.empty() || isValidLength(str));
- str = fl_get_input(paper_->input_head_sep);
- ok = ok && (str.empty() || isValidLength(str));
- str = fl_get_input(paper_->input_foot_skip);
- ok = ok && (str.empty() || isValidLength(str));
- // "Synchronize" the choice and the input field, so that it
- // is impossible to commit senseless data.
- input = fl_get_input (class_->input_doc_skip);
- if (ob == class_->input_doc_skip) {
- if (!*input) {
- fl_set_choice (class_->choice_doc_skip, 2);
- } else if (isValidGlueLength (input)) {
- fl_set_choice (class_->choice_doc_skip, 4);
- } else {
- fl_set_choice(class_->choice_doc_skip, 4);
- ok = false;
- }
- } else {
- if (*input && !isValidGlueLength(input))
- ok = false;
- }
- if ((fl_get_choice(class_->choice_doc_skip) == 4) && !*input)
- ok = false;
- else if (fl_get_choice(class_->choice_doc_skip) != 4)
- fl_set_input (class_->input_doc_skip, "");
-
- input = fl_get_input(class_->input_doc_spacing);
- if ((fl_get_choice(class_->choice_doc_spacing) == 4) && !*input)
- ok = false;
- else if (fl_get_choice(class_->choice_doc_spacing) != 4)
- fl_set_input (class_->input_doc_spacing, "");
- return ok;
-}
-
-
-void FormDocument::ChoiceBulletSize(FL_OBJECT * ob, long /*data*/ )
-{
- BufferParams & param = lv_->buffer()->params;
-
- // convert from 1-6 range to -1-4
- param.temp_bullets[current_bullet_depth].setSize(fl_get_choice(ob) - 2);
- fl_set_input(bullets_->input_bullet_latex,
- param.temp_bullets[current_bullet_depth].getText().c_str());
-}
-
-
-void FormDocument::InputBulletLaTeX(FL_OBJECT *, long)
-{
- BufferParams & param = lv_->buffer()->params;
-
- param.temp_bullets[current_bullet_depth].
- setText(fl_get_input(bullets_->input_bullet_latex));
-}
-
-
-void FormDocument::BulletDepth(FL_OBJECT * ob, State cb)
-{
- /* Should I do the following:
- * 1. change to the panel that the current bullet belongs in
- * 2. show that bullet as selected
- * 3. change the size setting to the size of the bullet in Q.
- * 4. display the latex equivalent in the latex box
- *
- * I'm inclined to just go with 3 and 4 at the moment and
- * maybe try to support the others later
- */
- BufferParams & param = lv_->buffer()->params;
-
- int data = 0;
- if (cb == BULLETDEPTH1 )
- data = 0;
- else if (cb == BULLETDEPTH2 )
- data = 1;
- else if (cb == BULLETDEPTH3 )
- data = 2;
- else if (cb == BULLETDEPTH4 )
- data = 3;
-
- switch (fl_get_button_numb(ob)) {
- case 3:
- // right mouse button resets to default
- param.temp_bullets[data] = ITEMIZE_DEFAULTS[data];
- default:
- current_bullet_depth = data;
- fl_set_input(bullets_->input_bullet_latex,
- param.temp_bullets[data].getText().c_str());
- fl_set_choice(bullets_->choice_bullet_size,
- param.temp_bullets[data].getSize() + 2);
- }
-}
-
-
-void FormDocument::BulletPanel(FL_OBJECT * /*ob*/, State cb)
-{
- /* Here we have to change the background pixmap to that selected */
- /* by the user. (eg. standard.xpm, psnfss1.xpm etc...) */
-
- int data = 0;
- if (cb == BULLETPANEL1 )
- data = 0;
- else if (cb == BULLETPANEL2 )
- data = 1;
- else if (cb == BULLETPANEL3 )
- data = 2;
- else if (cb == BULLETPANEL4 )
- data = 3;
- else if (cb == BULLETPANEL5 )
- data = 4;
- else if (cb == BULLETPANEL6 )
- data = 5;
-
- if (data != current_bullet_panel) {
- fl_freeze_form(bullets_->form);
- current_bullet_panel = data;
-
- /* free the current pixmap */
- fl_free_bmtable_pixmap(bullets_->bmtable_bullet_panel);
- string new_panel;
- switch (cb) {
- /* display the new one */
- case BULLETPANEL1 :
- new_panel = "standard";
- break;
- case BULLETPANEL2 :
- new_panel = "amssymb";
- break;
- case BULLETPANEL3 :
- new_panel = "psnfss1";
- break;
- case BULLETPANEL4 :
- new_panel = "psnfss2";
- break;
- case BULLETPANEL5 :
- new_panel = "psnfss3";
- break;
- case BULLETPANEL6 :
- new_panel = "psnfss4";
- break;
- default :
- /* something very wrong happened */
- // play it safe for now but should be an exception
- current_bullet_panel = 0; // standard panel
- new_panel = "standard";
- break;
- }
- new_panel += ".xpm";
- fl_set_bmtable_pixmap_file(bullets_->bmtable_bullet_panel, 6, 6,
- LibFileSearch("images", new_panel).c_str());
- fl_redraw_object(bullets_->bmtable_bullet_panel);
- fl_unfreeze_form(bullets_->form);
- }
-}
-
-
-void FormDocument::BulletBMTable(FL_OBJECT * ob, long /*data*/ )
-{
- /* handle the user input by setting the current bullet depth's pixmap */
- /* to that extracted from the current chosen position of the BMTable */
- /* Don't forget to free the button's old pixmap first. */
-
- BufferParams & param = lv_->buffer()->params;
- int bmtable_button = fl_get_bmtable(ob);
-
- /* try to keep the button held down till another is pushed */
- /* fl_set_bmtable(ob, 1, bmtable_button); */
- param.temp_bullets[current_bullet_depth].setFont(current_bullet_panel);
- param.temp_bullets[current_bullet_depth].setCharacter(bmtable_button);
- fl_set_input(bullets_->input_bullet_latex,
- param.temp_bullets[current_bullet_depth].getText().c_str());
-}
-
-
-void FormDocument::CheckChoiceClass(FL_OBJECT * ob, long)
-{
- if (!ob)
- ob = class_->choice_doc_class;
-
- ProhibitInput(lv_->view());
-
- unsigned int tc = combo_doc_class->get() - 1;
- if (textclasslist.Load(tc)) {
- // we use a copy of the bufferparams because we do not
- // want to modify them yet.
- BufferParams params = lv_->buffer()->params;
-
- if (params.textclass != tc
- && AskQuestion(_("Should I set some parameters to"),
- _("the defaults of this document class?"))) {
- params.textclass = tc;
- params.useClassDefaults();
- UpdateLayoutDocument(params);
- }
- } else {
- // unable to load new style
- WriteAlert(_("Conversion Errors!"),
- _("Unable to switch to new document class."),
- _("Reverting to original document class."));
- combo_doc_class->select(int(lv_->buffer()->params.textclass) + 1);
- }
- AllowInput(lv_->view());
-}
-#endif
-
-void FormDocument::UpdateLayoutDocument(BufferParams const & params)
-{
- if (!dialog_.get())
- return;
-
- checkReadOnly();
- class_update(params);
- paper_update(params);
- language_update(params);
- options_update(params);
- bullets_update(params);
-}
+++ /dev/null
-// -*- C++ -*-
-/* This file is part of
- * ======================================================
- *
- * LyX, The Document Processor
- *
- * Copyright (C) 2000 The LyX Team.
- *
- * @author Kalle Dalheimer
- *
- *======================================================*/
-
-#ifndef FORM_DOCUMENT_H
-#define FORM_DOCUMENT_H
-
-#include <vector>
-#include <boost/smart_ptr.hpp>
-
-#include "Qt2Base.h"
-#include "qt2BC.h"
-#undef emit
-
-#ifdef __GNUG_
-#pragma interface
-#endif
-
-class ControlDocument;
-class FormDocumentDialogImpl;
-class BufferParams;
-class LyXView;
-class Dialogs;
-
-/** This class provides an Qt2 implementation of the FormDocument dialog.
- The table-layout-form here changes values for latex-tabulars
- @author Kalle Dalheimer
- */
-class FormDocument
- : public Qt2CB<ControlDocument, Qt2DB<FormDocumentDialogImpl> >
-{
-public:
- FormDocument(LyXView *, Dialogs *);
-private:
- ///
- enum State {
- ///
- INPUT,
- ///
- CHECKCHOICECLASS,
- ///
- CHOICEBULLETSIZE,
- ///
- INPUTBULLETLATEX,
- ///
- BULLETDEPTH1,
- ///
- BULLETDEPTH2,
- ///
- BULLETDEPTH3,
- ///
- BULLETDEPTH4,
- ///
- BULLETPANEL1,
- ///
- BULLETPANEL2,
- ///
- BULLETPANEL3,
- ///
- BULLETPANEL4,
- ///
- BULLETPANEL5,
- ///
- BULLETPANEL6,
- ///
- BULLETBMTABLE
- };
- /// Pointer to the actual instantiation of the ButtonController.
- virtual qt2BC & bc();
- /// Build the dialog
- virtual void build();
-// /// Filter the inputs
-// virtual bool input( FL_OBJECT *, long );
- /// Update the dialog.
- virtual void update();
- /// Apply from dialog
- virtual void apply();
- /// Cancel from dialog
- virtual void cancel();
-
-// ///
-// virtual QDialog* form() const;
-
- ///
- bool CheckDocumentInput(QWidget* ob, long);
- ///
- void ChoiceBulletSize(QWidget* ob, long);
- ///
- void InputBulletLaTeX(QWidget* ob, long);
- ///
- void BulletDepth(QWidget* ob, State);
- ///
- void BulletPanel(QWidget* ob, State);
- ///
- void BulletBMTable(QWidget* ob, long);
- ///
- void checkMarginValues();
- ///
- void checkReadOnly();
- ///
- void CheckChoiceClass(QWidget* ob, long);
- ///
- void UpdateLayoutDocument(BufferParams const & params);
-
- ///
- void paper_update(BufferParams const &);
- ///
- void class_update(BufferParams const &);
- ///
- void language_update(BufferParams const &);
- ///
- void options_update(BufferParams const &);
- ///
- void bullets_update(BufferParams const &);
-
- ///
- void paper_apply();
- ///
- bool class_apply();
- ///
- bool language_apply();
- ///
- bool options_apply();
- ///
- void bullets_apply();
-
- /// Fdesign generated methods
- QDialog* build_tabbed_document();
- ///
- QDialog* build_doc_paper();
- ///
- QDialog* build_doc_class();
- ///
- QDialog* build_doc_language();
- ///
- QDialog* build_doc_options();
- ///
- QDialog* build_doc_bullet();
-
- /// Real GUI implementation.
- boost::scoped_ptr<FormDocumentDialogImpl> dialog_;
- ///
- int ActCell;
- ///
- int Confirmed;
- ///
- int current_bullet_panel;
- ///
- int current_bullet_depth;
-// ///
-// FL_OBJECT * fbullet;
-// ///
-// boost::scoped_ptr<Combox> combo_language;
-// ///
-// boost::scoped_ptr<Combox> combo_doc_class;
- /// The ButtonController
- ButtonController<NoRepeatedApplyReadOnlyPolicy, qt2BC> bc_;
-};
-
-
-inline
-qt2BC & FormDocument::bc()
-{
- return bc_;
-}
-
-#endif
+++ /dev/null
-<!DOCTYPE UI><UI>
-<class>FormDocumentDialog</class>
-<widget>
- <class>QDialog</class>
- <property stdset="1">
- <name>name</name>
- <cstring>FormDocumentDialog</cstring>
- </property>
- <property stdset="1">
- <name>geometry</name>
- <rect>
- <x>0</x>
- <y>0</y>
- <width>538</width>
- <height>437</height>
- </rect>
- </property>
- <property stdset="1">
- <name>caption</name>
- <string>Document Layout</string>
- </property>
- <vbox>
- <property stdset="1">
- <name>margin</name>
- <number>11</number>
- </property>
- <property stdset="1">
- <name>spacing</name>
- <number>6</number>
- </property>
- <widget>
- <class>QTabWidget</class>
- <property stdset="1">
- <name>name</name>
- <cstring>TabWidget2</cstring>
- </property>
- <property>
- <name>layoutMargin</name>
- </property>
- <widget>
- <class>QWidget</class>
- <property stdset="1">
- <name>name</name>
- <cstring>Widget2</cstring>
- </property>
- <attribute>
- <name>title</name>
- <string>Document</string>
- </attribute>
- <hbox>
- <property stdset="1">
- <name>margin</name>
- <number>-1</number>
- </property>
- <property stdset="1">
- <name>spacing</name>
- <number>-1</number>
- </property>
- <widget>
- <class>QLayoutWidget</class>
- <property stdset="1">
- <name>name</name>
- <cstring>Layout33</cstring>
- </property>
- <vbox>
- <property stdset="1">
- <name>margin</name>
- <number>0</number>
- </property>
- <property stdset="1">
- <name>spacing</name>
- <number>6</number>
- </property>
- <widget>
- <class>QLayoutWidget</class>
- <property stdset="1">
- <name>name</name>
- <cstring>Layout32</cstring>
- </property>
- <grid>
- <property stdset="1">
- <name>margin</name>
- <number>0</number>
- </property>
- <property stdset="1">
- <name>spacing</name>
- <number>6</number>
- </property>
- <widget row="4" column="1" >
- <class>QLineEdit</class>
- <property stdset="1">
- <name>name</name>
- <cstring>docExtraED</cstring>
- </property>
- </widget>
- <widget row="2" column="0" >
- <class>QLabel</class>
- <property stdset="1">
- <name>name</name>
- <cstring>fontsLA</cstring>
- </property>
- <property stdset="1">
- <name>text</name>
- <string>&Fonts:</string>
- </property>
- <property>
- <name>buddy</name>
- <cstring>fontsCO</cstring>
- </property>
- </widget>
- <widget row="1" column="0" >
- <class>QLabel</class>
- <property stdset="1">
- <name>name</name>
- <cstring>pagestyleLA</cstring>
- </property>
- <property stdset="1">
- <name>text</name>
- <string>&Pagestyle:</string>
- </property>
- <property>
- <name>buddy</name>
- <cstring>pagestyleCO</cstring>
- </property>
- </widget>
- <widget row="5" column="0" >
- <class>QLabel</class>
- <property stdset="1">
- <name>name</name>
- <cstring>defaultSkipLA</cstring>
- </property>
- <property stdset="1">
- <name>text</name>
- <string>Defa&ult Skip:</string>
- </property>
- <property>
- <name>buddy</name>
- <cstring>defaultSkipCO</cstring>
- </property>
- </widget>
- <widget row="3" column="0" >
- <class>QLabel</class>
- <property stdset="1">
- <name>name</name>
- <cstring>fontSizeLA</cstring>
- </property>
- <property stdset="1">
- <name>text</name>
- <string>F&ont Size:</string>
- </property>
- <property>
- <name>buddy</name>
- <cstring>fontSizeCO</cstring>
- </property>
- </widget>
- <widget row="1" column="1" >
- <class>QComboBox</class>
- <item>
- <property>
- <name>text</name>
- <string>default</string>
- </property>
- </item>
- <item>
- <property>
- <name>text</name>
- <string>empty</string>
- </property>
- </item>
- <item>
- <property>
- <name>text</name>
- <string>plain</string>
- </property>
- </item>
- <item>
- <property>
- <name>text</name>
- <string>headings</string>
- </property>
- </item>
- <item>
- <property>
- <name>text</name>
- <string>fancy</string>
- </property>
- </item>
- <property stdset="1">
- <name>name</name>
- <cstring>docPagestyleCO</cstring>
- </property>
- </widget>
- <widget row="6" column="0" >
- <class>QLabel</class>
- <property stdset="1">
- <name>name</name>
- <cstring>spacingLA</cstring>
- </property>
- <property stdset="1">
- <name>text</name>
- <string>Spacin&g:</string>
- </property>
- <property>
- <name>buddy</name>
- <cstring>spacingCO</cstring>
- </property>
- </widget>
- <widget row="4" column="0" >
- <class>QLabel</class>
- <property stdset="1">
- <name>name</name>
- <cstring>extraOptionsLA</cstring>
- </property>
- <property stdset="1">
- <name>text</name>
- <string>E&xtra Options:</string>
- </property>
- <property>
- <name>buddy</name>
- <cstring>extraOptionsED</cstring>
- </property>
- </widget>
- <widget row="0" column="0" >
- <class>QLabel</class>
- <property stdset="1">
- <name>name</name>
- <cstring>classesLA</cstring>
- </property>
- <property stdset="1">
- <name>text</name>
- <string>&Class:</string>
- </property>
- <property>
- <name>buddy</name>
- <cstring>classesCO</cstring>
- </property>
- </widget>
- <widget row="5" column="1" >
- <class>QLayoutWidget</class>
- <property stdset="1">
- <name>name</name>
- <cstring>Layout13</cstring>
- </property>
- <hbox>
- <property stdset="1">
- <name>margin</name>
- <number>0</number>
- </property>
- <property stdset="1">
- <name>spacing</name>
- <number>6</number>
- </property>
- <widget>
- <class>QComboBox</class>
- <item>
- <property>
- <name>text</name>
- <string>smallskip</string>
- </property>
- </item>
- <item>
- <property>
- <name>text</name>
- <string>medskip</string>
- </property>
- </item>
- <item>
- <property>
- <name>text</name>
- <string>bigskip</string>
- </property>
- </item>
- <item>
- <property>
- <name>text</name>
- <string>length</string>
- </property>
- </item>
- <property stdset="1">
- <name>name</name>
- <cstring>docSkipCO</cstring>
- </property>
- </widget>
- <widget>
- <class>QLineEdit</class>
- <property stdset="1">
- <name>name</name>
- <cstring>docSkipED</cstring>
- </property>
- </widget>
- </hbox>
- </widget>
- <widget row="6" column="1" >
- <class>QLayoutWidget</class>
- <property stdset="1">
- <name>name</name>
- <cstring>Layout31</cstring>
- </property>
- <hbox>
- <property stdset="1">
- <name>margin</name>
- <number>0</number>
- </property>
- <property stdset="1">
- <name>spacing</name>
- <number>6</number>
- </property>
- <widget>
- <class>QComboBox</class>
- <item>
- <property>
- <name>text</name>
- <string>Single</string>
- </property>
- </item>
- <item>
- <property>
- <name>text</name>
- <string>OneHalf</string>
- </property>
- </item>
- <item>
- <property>
- <name>text</name>
- <string>Double</string>
- </property>
- </item>
- <item>
- <property>
- <name>text</name>
- <string>Other</string>
- </property>
- </item>
- <property stdset="1">
- <name>name</name>
- <cstring>docSpacingCO</cstring>
- </property>
- </widget>
- <widget>
- <class>QLineEdit</class>
- <property stdset="1">
- <name>name</name>
- <cstring>docSpacingED</cstring>
- </property>
- </widget>
- </hbox>
- </widget>
- <widget row="2" column="1" >
- <class>QComboBox</class>
- <property stdset="1">
- <name>name</name>
- <cstring>docFontsCO</cstring>
- </property>
- </widget>
- <widget row="0" column="1" >
- <class>QComboBox</class>
- <property stdset="1">
- <name>name</name>
- <cstring>docClassCO</cstring>
- </property>
- </widget>
- <widget row="3" column="1" >
- <class>QComboBox</class>
- <item>
- <property>
- <name>text</name>
- <string>default</string>
- </property>
- </item>
- <item>
- <property>
- <name>text</name>
- <string>10</string>
- </property>
- </item>
- <item>
- <property>
- <name>text</name>
- <string>11</string>
- </property>
- </item>
- <item>
- <property>
- <name>text</name>
- <string>12</string>
- </property>
- </item>
- <property stdset="1">
- <name>name</name>
- <cstring>docFontSizeCO</cstring>
- </property>
- </widget>
- </grid>
- </widget>
- <spacer>
- <property>
- <name>name</name>
- <cstring>Spacer2_2</cstring>
- </property>
- <property stdset="1">
- <name>orientation</name>
- <enum>Vertical</enum>
- </property>
- <property stdset="1">
- <name>sizeType</name>
- <enum>Expanding</enum>
- </property>
- <property>
- <name>sizeHint</name>
- <size>
- <width>20</width>
- <height>20</height>
- </size>
- </property>
- </spacer>
- </vbox>
- </widget>
- <widget>
- <class>QLayoutWidget</class>
- <property stdset="1">
- <name>name</name>
- <cstring>Layout52</cstring>
- </property>
- <vbox>
- <property stdset="1">
- <name>margin</name>
- <number>0</number>
- </property>
- <property stdset="1">
- <name>spacing</name>
- <number>6</number>
- </property>
- <widget>
- <class>QButtonGroup</class>
- <property stdset="1">
- <name>name</name>
- <cstring>sidesBG</cstring>
- </property>
- <property stdset="1">
- <name>title</name>
- <string>Sides</string>
- </property>
- <vbox>
- <property stdset="1">
- <name>margin</name>
- <number>11</number>
- </property>
- <property stdset="1">
- <name>spacing</name>
- <number>6</number>
- </property>
- <widget>
- <class>QRadioButton</class>
- <property stdset="1">
- <name>name</name>
- <cstring>docSidesOneRB</cstring>
- </property>
- <property stdset="1">
- <name>text</name>
- <string>O&ne</string>
- </property>
- </widget>
- <widget>
- <class>QRadioButton</class>
- <property stdset="1">
- <name>name</name>
- <cstring>docSidesTwoRB</cstring>
- </property>
- <property stdset="1">
- <name>text</name>
- <string>&Two</string>
- </property>
- </widget>
- </vbox>
- </widget>
- <widget>
- <class>QButtonGroup</class>
- <property stdset="1">
- <name>name</name>
- <cstring>columnsBG</cstring>
- </property>
- <property stdset="1">
- <name>title</name>
- <string>Columns</string>
- </property>
- <vbox>
- <property stdset="1">
- <name>margin</name>
- <number>11</number>
- </property>
- <property stdset="1">
- <name>spacing</name>
- <number>6</number>
- </property>
- <widget>
- <class>QRadioButton</class>
- <property stdset="1">
- <name>name</name>
- <cstring>docColumnsOneRB</cstring>
- </property>
- <property stdset="1">
- <name>text</name>
- <string>On&e</string>
- </property>
- </widget>
- <widget>
- <class>QRadioButton</class>
- <property stdset="1">
- <name>name</name>
- <cstring>docColumnsTwoRB</cstring>
- </property>
- <property stdset="1">
- <name>text</name>
- <string>T&wo</string>
- </property>
- </widget>
- </vbox>
- </widget>
- <widget>
- <class>QButtonGroup</class>
- <property stdset="1">
- <name>name</name>
- <cstring>separationBG</cstring>
- </property>
- <property stdset="1">
- <name>title</name>
- <string>Separation</string>
- </property>
- <vbox>
- <property stdset="1">
- <name>margin</name>
- <number>11</number>
- </property>
- <property stdset="1">
- <name>spacing</name>
- <number>6</number>
- </property>
- <widget>
- <class>QRadioButton</class>
- <property stdset="1">
- <name>name</name>
- <cstring>docIndentRB</cstring>
- </property>
- <property stdset="1">
- <name>text</name>
- <string>&Indent</string>
- </property>
- </widget>
- <widget>
- <class>QRadioButton</class>
- <property stdset="1">
- <name>name</name>
- <cstring>docSkipRB</cstring>
- </property>
- <property stdset="1">
- <name>text</name>
- <string>S&kip</string>
- </property>
- </widget>
- </vbox>
- </widget>
- <spacer>
- <property>
- <name>name</name>
- <cstring>Spacer33</cstring>
- </property>
- <property stdset="1">
- <name>orientation</name>
- <enum>Vertical</enum>
- </property>
- <property stdset="1">
- <name>sizeType</name>
- <enum>Expanding</enum>
- </property>
- <property>
- <name>sizeHint</name>
- <size>
- <width>20</width>
- <height>20</height>
- </size>
- </property>
- </spacer>
- </vbox>
- </widget>
- </hbox>
- </widget>
- <widget>
- <class>QWidget</class>
- <property stdset="1">
- <name>name</name>
- <cstring>Widget3</cstring>
- </property>
- <attribute>
- <name>title</name>
- <string>Paper</string>
- </attribute>
- <vbox>
- <property stdset="1">
- <name>margin</name>
- <number>11</number>
- </property>
- <property stdset="1">
- <name>spacing</name>
- <number>6</number>
- </property>
- <spacer>
- <property>
- <name>name</name>
- <cstring>Spacer34</cstring>
- </property>
- <property stdset="1">
- <name>orientation</name>
- <enum>Vertical</enum>
- </property>
- <property stdset="1">
- <name>sizeType</name>
- <enum>Expanding</enum>
- </property>
- <property>
- <name>sizeHint</name>
- <size>
- <width>20</width>
- <height>20</height>
- </size>
- </property>
- </spacer>
- <widget>
- <class>QLayoutWidget</class>
- <property stdset="1">
- <name>name</name>
- <cstring>Layout19</cstring>
- </property>
- <hbox>
- <property stdset="1">
- <name>margin</name>
- <number>0</number>
- </property>
- <property stdset="1">
- <name>spacing</name>
- <number>6</number>
- </property>
- <widget>
- <class>QLabel</class>
- <property stdset="1">
- <name>name</name>
- <cstring>papersizeLA</cstring>
- </property>
- <property stdset="1">
- <name>text</name>
- <string>&Papersize:</string>
- </property>
- <property>
- <name>buddy</name>
- <cstring>papersizeCO</cstring>
- </property>
- </widget>
- <widget>
- <class>QComboBox</class>
- <item>
- <property>
- <name>text</name>
- <string>Default</string>
- </property>
- </item>
- <item>
- <property>
- <name>text</name>
- <string>Custom</string>
- </property>
- </item>
- <item>
- <property>
- <name>text</name>
- <string>USletter</string>
- </property>
- </item>
- <item>
- <property>
- <name>text</name>
- <string>USlegal</string>
- </property>
- </item>
- <item>
- <property>
- <name>text</name>
- <string>USexecutive</string>
- </property>
- </item>
- <item>
- <property>
- <name>text</name>
- <string>A3</string>
- </property>
- </item>
- <item>
- <property>
- <name>text</name>
- <string>A5</string>
- </property>
- </item>
- <item>
- <property>
- <name>text</name>
- <string>B3</string>
- </property>
- </item>
- <item>
- <property>
- <name>text</name>
- <string>B4</string>
- </property>
- </item>
- <item>
- <property>
- <name>text</name>
- <string>B5</string>
- </property>
- </item>
- <property stdset="1">
- <name>name</name>
- <cstring>papersize2CO</cstring>
- </property>
- </widget>
- <spacer>
- <property>
- <name>name</name>
- <cstring>Spacer5</cstring>
- </property>
- <property stdset="1">
- <name>orientation</name>
- <enum>Horizontal</enum>
- </property>
- <property stdset="1">
- <name>sizeType</name>
- <enum>Expanding</enum>
- </property>
- <property>
- <name>sizeHint</name>
- <size>
- <width>20</width>
- <height>20</height>
- </size>
- </property>
- </spacer>
- <widget>
- <class>QLabel</class>
- <property stdset="1">
- <name>name</name>
- <cstring>specialLA</cstring>
- </property>
- <property stdset="1">
- <name>text</name>
- <string>&Special:</string>
- </property>
- <property>
- <name>buddy</name>
- <cstring>specialCO</cstring>
- </property>
- </widget>
- <widget>
- <class>QComboBox</class>
- <item>
- <property>
- <name>text</name>
- <string>None</string>
- </property>
- </item>
- <item>
- <property>
- <name>text</name>
- <string>A4 small Margins (only portrait)</string>
- </property>
- </item>
- <item>
- <property>
- <name>text</name>
- <string>A4 very small Margins (only portrait)</string>
- </property>
- </item>
- <item>
- <property>
- <name>text</name>
- <string>A4 very wide margins (only portrait)</string>
- </property>
- </item>
- <property stdset="1">
- <name>name</name>
- <cstring>paperPackageCO</cstring>
- </property>
- </widget>
- </hbox>
- </widget>
- <spacer>
- <property>
- <name>name</name>
- <cstring>Spacer35</cstring>
- </property>
- <property stdset="1">
- <name>orientation</name>
- <enum>Vertical</enum>
- </property>
- <property stdset="1">
- <name>sizeType</name>
- <enum>Expanding</enum>
- </property>
- <property>
- <name>sizeHint</name>
- <size>
- <width>20</width>
- <height>20</height>
- </size>
- </property>
- </spacer>
- <widget>
- <class>QLayoutWidget</class>
- <property stdset="1">
- <name>name</name>
- <cstring>Layout23</cstring>
- </property>
- <hbox>
- <property stdset="1">
- <name>margin</name>
- <number>0</number>
- </property>
- <property stdset="1">
- <name>spacing</name>
- <number>6</number>
- </property>
- <spacer>
- <property>
- <name>name</name>
- <cstring>Spacer6</cstring>
- </property>
- <property stdset="1">
- <name>orientation</name>
- <enum>Horizontal</enum>
- </property>
- <property stdset="1">
- <name>sizeType</name>
- <enum>Expanding</enum>
- </property>
- <property>
- <name>sizeHint</name>
- <size>
- <width>20</width>
- <height>20</height>
- </size>
- </property>
- </spacer>
- <widget>
- <class>QCheckBox</class>
- <property stdset="1">
- <name>name</name>
- <cstring>useGeometryCB</cstring>
- </property>
- <property stdset="1">
- <name>text</name>
- <string>&Use Geometry Package</string>
- </property>
- </widget>
- <spacer>
- <property>
- <name>name</name>
- <cstring>Spacer7</cstring>
- </property>
- <property stdset="1">
- <name>orientation</name>
- <enum>Horizontal</enum>
- </property>
- <property stdset="1">
- <name>sizeType</name>
- <enum>Expanding</enum>
- </property>
- <property>
- <name>sizeHint</name>
- <size>
- <width>20</width>
- <height>20</height>
- </size>
- </property>
- </spacer>
- </hbox>
- </widget>
- <spacer>
- <property>
- <name>name</name>
- <cstring>Spacer36</cstring>
- </property>
- <property stdset="1">
- <name>orientation</name>
- <enum>Vertical</enum>
- </property>
- <property stdset="1">
- <name>sizeType</name>
- <enum>Expanding</enum>
- </property>
- <property>
- <name>sizeHint</name>
- <size>
- <width>20</width>
- <height>20</height>
- </size>
- </property>
- </spacer>
- <widget>
- <class>QLayoutWidget</class>
- <property stdset="1">
- <name>name</name>
- <cstring>Layout22</cstring>
- </property>
- <hbox>
- <property stdset="1">
- <name>margin</name>
- <number>0</number>
- </property>
- <property stdset="1">
- <name>spacing</name>
- <number>6</number>
- </property>
- <widget>
- <class>QLayoutWidget</class>
- <property stdset="1">
- <name>name</name>
- <cstring>Layout20</cstring>
- </property>
- <vbox>
- <property stdset="1">
- <name>margin</name>
- <number>0</number>
- </property>
- <property stdset="1">
- <name>spacing</name>
- <number>6</number>
- </property>
- <widget>
- <class>QButtonGroup</class>
- <property stdset="1">
- <name>name</name>
- <cstring>orientationBG</cstring>
- </property>
- <property stdset="1">
- <name>title</name>
- <string>Orientation</string>
- </property>
- <vbox>
- <property stdset="1">
- <name>margin</name>
- <number>11</number>
- </property>
- <property stdset="1">
- <name>spacing</name>
- <number>6</number>
- </property>
- <widget>
- <class>QRadioButton</class>
- <property stdset="1">
- <name>name</name>
- <cstring>portraitRB</cstring>
- </property>
- <property stdset="1">
- <name>text</name>
- <string>P&ortrait</string>
- </property>
- </widget>
- <widget>
- <class>QRadioButton</class>
- <property stdset="1">
- <name>name</name>
- <cstring>landscapeRB</cstring>
- </property>
- <property stdset="1">
- <name>text</name>
- <string>&Landscape</string>
- </property>
- </widget>
- </vbox>
- </widget>
- <widget>
- <class>QGroupBox</class>
- <property stdset="1">
- <name>name</name>
- <cstring>marginsGB</cstring>
- </property>
- <property stdset="1">
- <name>title</name>
- <string>Margins</string>
- </property>
- <grid>
- <property stdset="1">
- <name>margin</name>
- <number>11</number>
- </property>
- <property stdset="1">
- <name>spacing</name>
- <number>6</number>
- </property>
- <widget row="3" column="0" >
- <class>QLabel</class>
- <property stdset="1">
- <name>name</name>
- <cstring>marginRightLA</cstring>
- </property>
- <property stdset="1">
- <name>text</name>
- <string>&Right:</string>
- </property>
- <property>
- <name>buddy</name>
- <cstring>marginRightED</cstring>
- </property>
- </widget>
- <widget row="2" column="1" >
- <class>QLineEdit</class>
- <property stdset="1">
- <name>name</name>
- <cstring>leftMarginED</cstring>
- </property>
- </widget>
- <widget row="1" column="1" >
- <class>QLineEdit</class>
- <property stdset="1">
- <name>name</name>
- <cstring>bottomMarginED</cstring>
- </property>
- </widget>
- <widget row="3" column="1" >
- <class>QLineEdit</class>
- <property stdset="1">
- <name>name</name>
- <cstring>rightMarginED</cstring>
- </property>
- </widget>
- <widget row="1" column="0" >
- <class>QLabel</class>
- <property stdset="1">
- <name>name</name>
- <cstring>marginBottomLA</cstring>
- </property>
- <property stdset="1">
- <name>text</name>
- <string>&Bottom:</string>
- </property>
- <property>
- <name>buddy</name>
- <cstring>marginBottomED</cstring>
- </property>
- </widget>
- <widget row="0" column="1" >
- <class>QLineEdit</class>
- <property stdset="1">
- <name>name</name>
- <cstring>topMarginED</cstring>
- </property>
- </widget>
- <widget row="2" column="0" >
- <class>QLabel</class>
- <property stdset="1">
- <name>name</name>
- <cstring>marginLeftL</cstring>
- </property>
- <property stdset="1">
- <name>text</name>
- <string>L&eft:</string>
- </property>
- <property>
- <name>buddy</name>
- <cstring>marginLeftED</cstring>
- </property>
- </widget>
- <widget row="0" column="0" >
- <class>QLabel</class>
- <property stdset="1">
- <name>name</name>
- <cstring>marginTopLA</cstring>
- </property>
- <property stdset="1">
- <name>text</name>
- <string>&Top:</string>
- </property>
- <property>
- <name>buddy</name>
- <cstring>marginTopED</cstring>
- </property>
- </widget>
- </grid>
- </widget>
- </vbox>
- </widget>
- <widget>
- <class>QLayoutWidget</class>
- <property stdset="1">
- <name>name</name>
- <cstring>Layout21</cstring>
- </property>
- <vbox>
- <property stdset="1">
- <name>margin</name>
- <number>0</number>
- </property>
- <property stdset="1">
- <name>spacing</name>
- <number>6</number>
- </property>
- <widget>
- <class>QGroupBox</class>
- <property stdset="1">
- <name>name</name>
- <cstring>customPapersizeGB</cstring>
- </property>
- <property stdset="1">
- <name>title</name>
- <string>Custom Papersize</string>
- </property>
- <grid>
- <property stdset="1">
- <name>margin</name>
- <number>11</number>
- </property>
- <property stdset="1">
- <name>spacing</name>
- <number>6</number>
- </property>
- <widget row="0" column="0" >
- <class>QLabel</class>
- <property stdset="1">
- <name>name</name>
- <cstring>customWidthLA</cstring>
- </property>
- <property stdset="1">
- <name>text</name>
- <string>&Width:</string>
- </property>
- <property>
- <name>buddy</name>
- <cstring>customWidthED</cstring>
- </property>
- </widget>
- <widget row="0" column="1" >
- <class>QLineEdit</class>
- <property stdset="1">
- <name>name</name>
- <cstring>customWidthED</cstring>
- </property>
- </widget>
- <widget row="1" column="1" >
- <class>QLineEdit</class>
- <property stdset="1">
- <name>name</name>
- <cstring>customHeightED</cstring>
- </property>
- </widget>
- <widget row="1" column="0" >
- <class>QLabel</class>
- <property stdset="1">
- <name>name</name>
- <cstring>customHeightLA</cstring>
- </property>
- <property stdset="1">
- <name>text</name>
- <string>&Height:</string>
- </property>
- <property>
- <name>buddy</name>
- <cstring>customHeightED</cstring>
- </property>
- </widget>
- </grid>
- </widget>
- <widget>
- <class>QGroupBox</class>
- <property stdset="1">
- <name>name</name>
- <cstring>headsepBG</cstring>
- </property>
- <property stdset="1">
- <name>title</name>
- <string>Foot/Head Margins</string>
- </property>
- <grid>
- <property stdset="1">
- <name>margin</name>
- <number>11</number>
- </property>
- <property stdset="1">
- <name>spacing</name>
- <number>6</number>
- </property>
- <widget row="0" column="1" >
- <class>QLineEdit</class>
- <property stdset="1">
- <name>name</name>
- <cstring>headHeightED</cstring>
- </property>
- </widget>
- <widget row="1" column="1" >
- <class>QLineEdit</class>
- <property stdset="1">
- <name>name</name>
- <cstring>headSepED</cstring>
- </property>
- </widget>
- <widget row="2" column="1" >
- <class>QLineEdit</class>
- <property stdset="1">
- <name>name</name>
- <cstring>footSkipED</cstring>
- </property>
- </widget>
- <widget row="2" column="0" >
- <class>QLabel</class>
- <property stdset="1">
- <name>name</name>
- <cstring>footskipLA</cstring>
- </property>
- <property stdset="1">
- <name>text</name>
- <string>&Footskip:</string>
- </property>
- <property>
- <name>buddy</name>
- <cstring>footskipED</cstring>
- </property>
- </widget>
- <widget row="1" column="0" >
- <class>QLabel</class>
- <property stdset="1">
- <name>name</name>
- <cstring>headsepLA</cstring>
- </property>
- <property stdset="1">
- <name>text</name>
- <string>Hea&dsep:</string>
- </property>
- <property>
- <name>buddy</name>
- <cstring>headsepED</cstring>
- </property>
- </widget>
- <widget row="0" column="0" >
- <class>QLabel</class>
- <property stdset="1">
- <name>name</name>
- <cstring>headheightLA</cstring>
- </property>
- <property stdset="1">
- <name>text</name>
- <string>Headhe&ight:</string>
- </property>
- <property>
- <name>buddy</name>
- <cstring>headheightED</cstring>
- </property>
- </widget>
- </grid>
- </widget>
- </vbox>
- </widget>
- </hbox>
- </widget>
- <spacer>
- <property>
- <name>name</name>
- <cstring>Spacer37</cstring>
- </property>
- <property stdset="1">
- <name>orientation</name>
- <enum>Vertical</enum>
- </property>
- <property stdset="1">
- <name>sizeType</name>
- <enum>Expanding</enum>
- </property>
- <property>
- <name>sizeHint</name>
- <size>
- <width>20</width>
- <height>20</height>
- </size>
- </property>
- </spacer>
- </vbox>
- </widget>
- <widget>
- <class>QWidget</class>
- <property stdset="1">
- <name>name</name>
- <cstring>Widget4</cstring>
- </property>
- <attribute>
- <name>title</name>
- <string>Language</string>
- </attribute>
- <hbox>
- <property stdset="1">
- <name>margin</name>
- <number>11</number>
- </property>
- <property stdset="1">
- <name>spacing</name>
- <number>6</number>
- </property>
- <spacer>
- <property>
- <name>name</name>
- <cstring>Spacer10</cstring>
- </property>
- <property stdset="1">
- <name>orientation</name>
- <enum>Horizontal</enum>
- </property>
- <property stdset="1">
- <name>sizeType</name>
- <enum>Expanding</enum>
- </property>
- <property>
- <name>sizeHint</name>
- <size>
- <width>20</width>
- <height>20</height>
- </size>
- </property>
- </spacer>
- <widget>
- <class>QLayoutWidget</class>
- <property stdset="1">
- <name>name</name>
- <cstring>Layout53</cstring>
- </property>
- <vbox>
- <property stdset="1">
- <name>margin</name>
- <number>0</number>
- </property>
- <property stdset="1">
- <name>spacing</name>
- <number>6</number>
- </property>
- <spacer>
- <property>
- <name>name</name>
- <cstring>Spacer12</cstring>
- </property>
- <property stdset="1">
- <name>orientation</name>
- <enum>Vertical</enum>
- </property>
- <property stdset="1">
- <name>sizeType</name>
- <enum>Expanding</enum>
- </property>
- <property>
- <name>sizeHint</name>
- <size>
- <width>20</width>
- <height>20</height>
- </size>
- </property>
- </spacer>
- <widget>
- <class>QLayoutWidget</class>
- <property stdset="1">
- <name>name</name>
- <cstring>Layout26</cstring>
- </property>
- <hbox>
- <property stdset="1">
- <name>margin</name>
- <number>0</number>
- </property>
- <property stdset="1">
- <name>spacing</name>
- <number>6</number>
- </property>
- <widget>
- <class>QLabel</class>
- <property stdset="1">
- <name>name</name>
- <cstring>languageLA</cstring>
- </property>
- <property stdset="1">
- <name>text</name>
- <string>&Language:</string>
- </property>
- <property>
- <name>buddy</name>
- <cstring>languageCO</cstring>
- </property>
- </widget>
- <widget>
- <class>QComboBox</class>
- <property stdset="1">
- <name>name</name>
- <cstring>languageCO</cstring>
- </property>
- </widget>
- </hbox>
- </widget>
- <spacer>
- <property>
- <name>name</name>
- <cstring>Spacer38</cstring>
- </property>
- <property stdset="1">
- <name>orientation</name>
- <enum>Vertical</enum>
- </property>
- <property stdset="1">
- <name>sizeType</name>
- <enum>Expanding</enum>
- </property>
- <property>
- <name>sizeHint</name>
- <size>
- <width>20</width>
- <height>20</height>
- </size>
- </property>
- </spacer>
- <widget>
- <class>QLayoutWidget</class>
- <property stdset="1">
- <name>name</name>
- <cstring>Layout27</cstring>
- </property>
- <hbox>
- <property stdset="1">
- <name>margin</name>
- <number>0</number>
- </property>
- <property stdset="1">
- <name>spacing</name>
- <number>6</number>
- </property>
- <widget>
- <class>QLabel</class>
- <property stdset="1">
- <name>name</name>
- <cstring>encodingLA</cstring>
- </property>
- <property stdset="1">
- <name>text</name>
- <string>Enco&ding:</string>
- </property>
- <property>
- <name>buddy</name>
- <cstring>encodingCO</cstring>
- </property>
- </widget>
- <widget>
- <class>QComboBox</class>
- <item>
- <property>
- <name>text</name>
- <string>default</string>
- </property>
- </item>
- <item>
- <property>
- <name>text</name>
- <string>auto</string>
- </property>
- </item>
- <item>
- <property>
- <name>text</name>
- <string>latin1</string>
- </property>
- </item>
- <item>
- <property>
- <name>text</name>
- <string>latin2</string>
- </property>
- </item>
- <item>
- <property>
- <name>text</name>
- <string>latin5</string>
- </property>
- </item>
- <item>
- <property>
- <name>text</name>
- <string>koi8-r</string>
- </property>
- </item>
- <item>
- <property>
- <name>text</name>
- <string>koi8-u</string>
- </property>
- </item>
- <item>
- <property>
- <name>text</name>
- <string>cp866</string>
- </property>
- </item>
- <item>
- <property>
- <name>text</name>
- <string>cp1251</string>
- </property>
- </item>
- <item>
- <property>
- <name>text</name>
- <string>iso88595</string>
- </property>
- </item>
- <property stdset="1">
- <name>name</name>
- <cstring>inputEncCO</cstring>
- </property>
- </widget>
- </hbox>
- </widget>
- <spacer>
- <property>
- <name>name</name>
- <cstring>Spacer9</cstring>
- </property>
- <property stdset="1">
- <name>orientation</name>
- <enum>Vertical</enum>
- </property>
- <property stdset="1">
- <name>sizeType</name>
- <enum>Expanding</enum>
- </property>
- <property>
- <name>sizeHint</name>
- <size>
- <width>20</width>
- <height>20</height>
- </size>
- </property>
- </spacer>
- <widget>
- <class>QButtonGroup</class>
- <property stdset="1">
- <name>name</name>
- <cstring>quoteStyleBG</cstring>
- </property>
- <property stdset="1">
- <name>title</name>
- <string>Quote Style</string>
- </property>
- <vbox>
- <property stdset="1">
- <name>margin</name>
- <number>11</number>
- </property>
- <property stdset="1">
- <name>spacing</name>
- <number>6</number>
- </property>
- <widget>
- <class>QLayoutWidget</class>
- <property stdset="1">
- <name>name</name>
- <cstring>Layout28</cstring>
- </property>
- <hbox>
- <property stdset="1">
- <name>margin</name>
- <number>0</number>
- </property>
- <property stdset="1">
- <name>spacing</name>
- <number>6</number>
- </property>
- <widget>
- <class>QLabel</class>
- <property stdset="1">
- <name>name</name>
- <cstring>quoteStyleTypeLA</cstring>
- </property>
- <property stdset="1">
- <name>text</name>
- <string>&Type:</string>
- </property>
- <property>
- <name>buddy</name>
- <cstring>quoteStyleTypeCO</cstring>
- </property>
- </widget>
- <widget>
- <class>QComboBox</class>
- <item>
- <property>
- <name>text</name>
- <string>``text''</string>
- </property>
- </item>
- <item>
- <property>
- <name>text</name>
- <string>''text''</string>
- </property>
- </item>
- <item>
- <property>
- <name>text</name>
- <string>,,text``</string>
- </property>
- </item>
- <item>
- <property>
- <name>text</name>
- <string>,,text''</string>
- </property>
- </item>
- <item>
- <property>
- <name>text</name>
- <string>«text»</string>
- </property>
- </item>
- <item>
- <property>
- <name>text</name>
- <string>»text«</string>
- </property>
- </item>
- <property stdset="1">
- <name>name</name>
- <cstring>quotesLanguageCO</cstring>
- </property>
- </widget>
- </hbox>
- </widget>
- <widget>
- <class>QLayoutWidget</class>
- <property stdset="1">
- <name>name</name>
- <cstring>Layout29</cstring>
- </property>
- <hbox>
- <property stdset="1">
- <name>margin</name>
- <number>0</number>
- </property>
- <property stdset="1">
- <name>spacing</name>
- <number>6</number>
- </property>
- <widget>
- <class>QRadioButton</class>
- <property stdset="1">
- <name>name</name>
- <cstring>singleRB</cstring>
- </property>
- <property stdset="1">
- <name>text</name>
- <string>&Single</string>
- </property>
- </widget>
- <widget>
- <class>QRadioButton</class>
- <property stdset="1">
- <name>name</name>
- <cstring>doubleRB</cstring>
- </property>
- <property stdset="1">
- <name>text</name>
- <string>&Double</string>
- </property>
- </widget>
- </hbox>
- </widget>
- </vbox>
- </widget>
- <spacer>
- <property>
- <name>name</name>
- <cstring>Spacer13</cstring>
- </property>
- <property stdset="1">
- <name>orientation</name>
- <enum>Vertical</enum>
- </property>
- <property stdset="1">
- <name>sizeType</name>
- <enum>Expanding</enum>
- </property>
- <property>
- <name>sizeHint</name>
- <size>
- <width>20</width>
- <height>20</height>
- </size>
- </property>
- </spacer>
- </vbox>
- </widget>
- <spacer>
- <property>
- <name>name</name>
- <cstring>Spacer11</cstring>
- </property>
- <property stdset="1">
- <name>orientation</name>
- <enum>Horizontal</enum>
- </property>
- <property stdset="1">
- <name>sizeType</name>
- <enum>Expanding</enum>
- </property>
- <property>
- <name>sizeHint</name>
- <size>
- <width>20</width>
- <height>20</height>
- </size>
- </property>
- </spacer>
- </hbox>
- </widget>
- <widget>
- <class>QWidget</class>
- <property stdset="1">
- <name>name</name>
- <cstring>Widget5</cstring>
- </property>
- <attribute>
- <name>title</name>
- <string>Extra</string>
- </attribute>
- <hbox>
- <property stdset="1">
- <name>margin</name>
- <number>11</number>
- </property>
- <property stdset="1">
- <name>spacing</name>
- <number>6</number>
- </property>
- <spacer>
- <property>
- <name>name</name>
- <cstring>Spacer24</cstring>
- </property>
- <property stdset="1">
- <name>orientation</name>
- <enum>Horizontal</enum>
- </property>
- <property stdset="1">
- <name>sizeType</name>
- <enum>Expanding</enum>
- </property>
- <property>
- <name>sizeHint</name>
- <size>
- <width>20</width>
- <height>20</height>
- </size>
- </property>
- </spacer>
- <widget>
- <class>QLayoutWidget</class>
- <property stdset="1">
- <name>name</name>
- <cstring>Layout39</cstring>
- </property>
- <vbox>
- <property stdset="1">
- <name>margin</name>
- <number>0</number>
- </property>
- <property stdset="1">
- <name>spacing</name>
- <number>6</number>
- </property>
- <spacer>
- <property>
- <name>name</name>
- <cstring>Spacer18</cstring>
- </property>
- <property stdset="1">
- <name>orientation</name>
- <enum>Vertical</enum>
- </property>
- <property stdset="1">
- <name>sizeType</name>
- <enum>Expanding</enum>
- </property>
- <property>
- <name>sizeHint</name>
- <size>
- <width>20</width>
- <height>20</height>
- </size>
- </property>
- </spacer>
- <widget>
- <class>QLayoutWidget</class>
- <property stdset="1">
- <name>name</name>
- <cstring>Layout33</cstring>
- </property>
- <hbox>
- <property stdset="1">
- <name>margin</name>
- <number>0</number>
- </property>
- <property stdset="1">
- <name>spacing</name>
- <number>6</number>
- </property>
- <widget>
- <class>QLabel</class>
- <property stdset="1">
- <name>name</name>
- <cstring>TextLabel28</cstring>
- </property>
- <property stdset="1">
- <name>text</name>
- <string>F&loat Placement:</string>
- </property>
- <property>
- <name>buddy</name>
- <cstring>floatPlacementED</cstring>
- </property>
- </widget>
- <widget>
- <class>QLineEdit</class>
- <property stdset="1">
- <name>name</name>
- <cstring>floatPlacementED</cstring>
- </property>
- </widget>
- </hbox>
- </widget>
- <spacer>
- <property>
- <name>name</name>
- <cstring>Spacer14</cstring>
- </property>
- <property stdset="1">
- <name>orientation</name>
- <enum>Vertical</enum>
- </property>
- <property stdset="1">
- <name>sizeType</name>
- <enum>Expanding</enum>
- </property>
- <property>
- <name>sizeHint</name>
- <size>
- <width>20</width>
- <height>20</height>
- </size>
- </property>
- </spacer>
- <widget>
- <class>QLayoutWidget</class>
- <property stdset="1">
- <name>name</name>
- <cstring>Layout34</cstring>
- </property>
- <hbox>
- <property stdset="1">
- <name>margin</name>
- <number>0</number>
- </property>
- <property stdset="1">
- <name>spacing</name>
- <number>6</number>
- </property>
- <widget>
- <class>QLabel</class>
- <property stdset="1">
- <name>name</name>
- <cstring>sectionNumberDepthLA</cstring>
- </property>
- <property stdset="1">
- <name>text</name>
- <string>S&ection number depth:</string>
- </property>
- <property>
- <name>buddy</name>
- <cstring>sectionNumberDepthSB</cstring>
- </property>
- </widget>
- <widget>
- <class>QSpinBox</class>
- <property stdset="1">
- <name>name</name>
- <cstring>secNumDepthSB</cstring>
- </property>
- <property stdset="1">
- <name>maxValue</name>
- <number>5</number>
- </property>
- <property stdset="1">
- <name>minValue</name>
- <number>-2</number>
- </property>
- </widget>
- </hbox>
- </widget>
- <spacer>
- <property>
- <name>name</name>
- <cstring>Spacer15</cstring>
- </property>
- <property stdset="1">
- <name>orientation</name>
- <enum>Vertical</enum>
- </property>
- <property stdset="1">
- <name>sizeType</name>
- <enum>Expanding</enum>
- </property>
- <property>
- <name>sizeHint</name>
- <size>
- <width>20</width>
- <height>20</height>
- </size>
- </property>
- </spacer>
- <widget>
- <class>QLayoutWidget</class>
- <property stdset="1">
- <name>name</name>
- <cstring>Layout35</cstring>
- </property>
- <hbox>
- <property stdset="1">
- <name>margin</name>
- <number>0</number>
- </property>
- <property stdset="1">
- <name>spacing</name>
- <number>6</number>
- </property>
- <widget>
- <class>QLabel</class>
- <property stdset="1">
- <name>name</name>
- <cstring>tocDepthLA</cstring>
- </property>
- <property stdset="1">
- <name>text</name>
- <string>&Table of contents depth:</string>
- </property>
- <property>
- <name>buddy</name>
- <cstring>tocDepthSB</cstring>
- </property>
- </widget>
- <widget>
- <class>QSpinBox</class>
- <property stdset="1">
- <name>name</name>
- <cstring>tocDepthSB</cstring>
- </property>
- <property stdset="1">
- <name>maxValue</name>
- <number>5</number>
- </property>
- <property stdset="1">
- <name>minValue</name>
- <number>-1</number>
- </property>
- </widget>
- </hbox>
- </widget>
- <spacer>
- <property>
- <name>name</name>
- <cstring>Spacer16</cstring>
- </property>
- <property stdset="1">
- <name>orientation</name>
- <enum>Vertical</enum>
- </property>
- <property stdset="1">
- <name>sizeType</name>
- <enum>Expanding</enum>
- </property>
- <property>
- <name>sizeHint</name>
- <size>
- <width>20</width>
- <height>20</height>
- </size>
- </property>
- </spacer>
- <widget>
- <class>QLayoutWidget</class>
- <property stdset="1">
- <name>name</name>
- <cstring>Layout36</cstring>
- </property>
- <hbox>
- <property stdset="1">
- <name>margin</name>
- <number>0</number>
- </property>
- <property stdset="1">
- <name>spacing</name>
- <number>6</number>
- </property>
- <widget>
- <class>QLabel</class>
- <property stdset="1">
- <name>name</name>
- <cstring>psDriverLA</cstring>
- </property>
- <property stdset="1">
- <name>text</name>
- <string>P&S Driver:</string>
- </property>
- <property>
- <name>buddy</name>
- <cstring>psDriverCO</cstring>
- </property>
- </widget>
- <widget>
- <class>QComboBox</class>
- <property stdset="1">
- <name>name</name>
- <cstring>postscriptDriverCO</cstring>
- </property>
- </widget>
- </hbox>
- </widget>
- <spacer>
- <property>
- <name>name</name>
- <cstring>Spacer17</cstring>
- </property>
- <property stdset="1">
- <name>orientation</name>
- <enum>Vertical</enum>
- </property>
- <property stdset="1">
- <name>sizeType</name>
- <enum>Expanding</enum>
- </property>
- <property>
- <name>sizeHint</name>
- <size>
- <width>20</width>
- <height>20</height>
- </size>
- </property>
- </spacer>
- <widget>
- <class>QLayoutWidget</class>
- <property stdset="1">
- <name>name</name>
- <cstring>Layout38</cstring>
- </property>
- <hbox>
- <property stdset="1">
- <name>margin</name>
- <number>0</number>
- </property>
- <property stdset="1">
- <name>spacing</name>
- <number>6</number>
- </property>
- <spacer>
- <property>
- <name>name</name>
- <cstring>Spacer23</cstring>
- </property>
- <property stdset="1">
- <name>orientation</name>
- <enum>Horizontal</enum>
- </property>
- <property stdset="1">
- <name>sizeType</name>
- <enum>Expanding</enum>
- </property>
- <property>
- <name>sizeHint</name>
- <size>
- <width>20</width>
- <height>20</height>
- </size>
- </property>
- </spacer>
- <widget>
- <class>QCheckBox</class>
- <property stdset="1">
- <name>name</name>
- <cstring>useAmsMathCB</cstring>
- </property>
- <property stdset="1">
- <name>text</name>
- <string>Use A&MS Math</string>
- </property>
- </widget>
- <spacer>
- <property>
- <name>name</name>
- <cstring>Spacer22</cstring>
- </property>
- <property stdset="1">
- <name>orientation</name>
- <enum>Horizontal</enum>
- </property>
- <property stdset="1">
- <name>sizeType</name>
- <enum>Expanding</enum>
- </property>
- <property>
- <name>sizeHint</name>
- <size>
- <width>20</width>
- <height>20</height>
- </size>
- </property>
- </spacer>
- </hbox>
- </widget>
- <spacer>
- <property>
- <name>name</name>
- <cstring>Spacer19</cstring>
- </property>
- <property stdset="1">
- <name>orientation</name>
- <enum>Vertical</enum>
- </property>
- <property stdset="1">
- <name>sizeType</name>
- <enum>Expanding</enum>
- </property>
- <property>
- <name>sizeHint</name>
- <size>
- <width>20</width>
- <height>20</height>
- </size>
- </property>
- </spacer>
- </vbox>
- </widget>
- <spacer>
- <property>
- <name>name</name>
- <cstring>Spacer25</cstring>
- </property>
- <property stdset="1">
- <name>orientation</name>
- <enum>Horizontal</enum>
- </property>
- <property stdset="1">
- <name>sizeType</name>
- <enum>Expanding</enum>
- </property>
- <property>
- <name>sizeHint</name>
- <size>
- <width>20</width>
- <height>20</height>
- </size>
- </property>
- </spacer>
- </hbox>
- </widget>
- <widget>
- <class>QWidget</class>
- <property stdset="1">
- <name>name</name>
- <cstring>Widget6</cstring>
- </property>
- <attribute>
- <name>title</name>
- <string>Bullets</string>
- </attribute>
- <vbox>
- <property stdset="1">
- <name>margin</name>
- <number>6</number>
- </property>
- <property stdset="1">
- <name>spacing</name>
- <number>-1</number>
- </property>
- <widget>
- <class>QLayoutWidget</class>
- <property stdset="1">
- <name>name</name>
- <cstring>Layout51</cstring>
- </property>
- <hbox>
- <property stdset="1">
- <name>margin</name>
- <number>0</number>
- </property>
- <property stdset="1">
- <name>spacing</name>
- <number>6</number>
- </property>
- <widget>
- <class>QLayoutWidget</class>
- <property stdset="1">
- <name>name</name>
- <cstring>Layout48</cstring>
- </property>
- <vbox>
- <property stdset="1">
- <name>margin</name>
- <number>0</number>
- </property>
- <property stdset="1">
- <name>spacing</name>
- <number>6</number>
- </property>
- <spacer>
- <property>
- <name>name</name>
- <cstring>Spacer31</cstring>
- </property>
- <property stdset="1">
- <name>orientation</name>
- <enum>Vertical</enum>
- </property>
- <property stdset="1">
- <name>sizeType</name>
- <enum>Expanding</enum>
- </property>
- <property>
- <name>sizeHint</name>
- <size>
- <width>20</width>
- <height>20</height>
- </size>
- </property>
- </spacer>
- <widget>
- <class>QLabel</class>
- <property stdset="1">
- <name>name</name>
- <cstring>bulletSizeLA</cstring>
- </property>
- <property stdset="1">
- <name>text</name>
- <string>Si&ze</string>
- </property>
- <property>
- <name>buddy</name>
- <cstring>bulletSizeCO</cstring>
- </property>
- </widget>
- <widget>
- <class>QComboBox</class>
- <item>
- <property>
- <name>text</name>
- <string>default</string>
- </property>
- </item>
- <item>
- <property>
- <name>text</name>
- <string>tiny</string>
- </property>
- </item>
- <item>
- <property>
- <name>text</name>
- <string>script</string>
- </property>
- </item>
- <item>
- <property>
- <name>text</name>
- <string>footnote</string>
- </property>
- </item>
- <item>
- <property>
- <name>text</name>
- <string>small</string>
- </property>
- </item>
- <item>
- <property>
- <name>text</name>
- <string>normal</string>
- </property>
- </item>
- <item>
- <property>
- <name>text</name>
- <string>large</string>
- </property>
- </item>
- <item>
- <property>
- <name>text</name>
- <string>Large</string>
- </property>
- </item>
- <item>
- <property>
- <name>text</name>
- <string>LARGE</string>
- </property>
- </item>
- <item>
- <property>
- <name>text</name>
- <string>huge</string>
- </property>
- </item>
- <item>
- <property>
- <name>text</name>
- <string>Huge</string>
- </property>
- </item>
- <property stdset="1">
- <name>name</name>
- <cstring>bulletSizeCO</cstring>
- </property>
- </widget>
- </vbox>
- </widget>
- <widget>
- <class>QLayoutWidget</class>
- <property stdset="1">
- <name>name</name>
- <cstring>Layout50</cstring>
- </property>
- <vbox>
- <property stdset="1">
- <name>margin</name>
- <number>0</number>
- </property>
- <property stdset="1">
- <name>spacing</name>
- <number>6</number>
- </property>
- <spacer>
- <property>
- <name>name</name>
- <cstring>Spacer32</cstring>
- </property>
- <property stdset="1">
- <name>orientation</name>
- <enum>Vertical</enum>
- </property>
- <property stdset="1">
- <name>sizeType</name>
- <enum>Expanding</enum>
- </property>
- <property>
- <name>sizeHint</name>
- <size>
- <width>20</width>
- <height>20</height>
- </size>
- </property>
- </spacer>
- <widget>
- <class>QButtonGroup</class>
- <property stdset="1">
- <name>name</name>
- <cstring>bulletDepthBG</cstring>
- </property>
- <property stdset="1">
- <name>title</name>
- <string>Bullet Depth</string>
- </property>
- <property stdset="1">
- <name>exclusive</name>
- <bool>true</bool>
- </property>
- <hbox>
- <property stdset="1">
- <name>margin</name>
- <number>11</number>
- </property>
- <property stdset="1">
- <name>spacing</name>
- <number>6</number>
- </property>
- <widget>
- <class>QToolButton</class>
- <property stdset="1">
- <name>name</name>
- <cstring>bulletDepth1PB</cstring>
- </property>
- <property stdset="1">
- <name>text</name>
- <string>&1</string>
- </property>
- <property stdset="1">
- <name>toggleButton</name>
- <bool>true</bool>
- </property>
- <property stdset="1">
- <name>toggleButton</name>
- <bool>true</bool>
- </property>
- </widget>
- <widget>
- <class>QToolButton</class>
- <property stdset="1">
- <name>name</name>
- <cstring>bulletDepth2PB</cstring>
- </property>
- <property stdset="1">
- <name>text</name>
- <string>&2</string>
- </property>
- <property stdset="1">
- <name>toggleButton</name>
- <bool>true</bool>
- </property>
- <property stdset="1">
- <name>toggleButton</name>
- <bool>true</bool>
- </property>
- </widget>
- <widget>
- <class>QToolButton</class>
- <property stdset="1">
- <name>name</name>
- <cstring>bulletDepth3PB</cstring>
- </property>
- <property stdset="1">
- <name>text</name>
- <string>&3</string>
- </property>
- <property stdset="1">
- <name>toggleButton</name>
- <bool>true</bool>
- </property>
- <property stdset="1">
- <name>toggleButton</name>
- <bool>true</bool>
- </property>
- </widget>
- <widget>
- <class>QToolButton</class>
- <property stdset="1">
- <name>name</name>
- <cstring>bulletDepth4PB</cstring>
- </property>
- <property stdset="1">
- <name>text</name>
- <string>&4</string>
- </property>
- <property stdset="1">
- <name>toggleButton</name>
- <bool>true</bool>
- </property>
- <property stdset="1">
- <name>toggleButton</name>
- <bool>true</bool>
- </property>
- </widget>
- </hbox>
- </widget>
- </vbox>
- </widget>
- </hbox>
- </widget>
- <spacer>
- <property>
- <name>name</name>
- <cstring>Spacer1</cstring>
- </property>
- <property stdset="1">
- <name>orientation</name>
- <enum>Vertical</enum>
- </property>
- <property stdset="1">
- <name>sizeType</name>
- <enum>Expanding</enum>
- </property>
- <property>
- <name>sizeHint</name>
- <size>
- <width>20</width>
- <height>20</height>
- </size>
- </property>
- </spacer>
- <widget>
- <class>QLayoutWidget</class>
- <property stdset="1">
- <name>name</name>
- <cstring>Layout47</cstring>
- </property>
- <hbox>
- <property stdset="1">
- <name>margin</name>
- <number>0</number>
- </property>
- <property stdset="1">
- <name>spacing</name>
- <number>6</number>
- </property>
- <spacer>
- <property>
- <name>name</name>
- <cstring>Spacer27</cstring>
- </property>
- <property stdset="1">
- <name>orientation</name>
- <enum>Horizontal</enum>
- </property>
- <property stdset="1">
- <name>sizeType</name>
- <enum>Expanding</enum>
- </property>
- <property>
- <name>sizeHint</name>
- <size>
- <width>20</width>
- <height>20</height>
- </size>
- </property>
- </spacer>
- <widget>
- <class>QButtonGroup</class>
- <property stdset="1">
- <name>name</name>
- <cstring>bulletTypeBG</cstring>
- </property>
- <property stdset="1">
- <name>frameShape</name>
- <enum>NoFrame</enum>
- </property>
- <property stdset="1">
- <name>title</name>
- <string></string>
- </property>
- <property stdset="1">
- <name>radioButtonExclusive</name>
- <bool>false</bool>
- </property>
- <property>
- <name>layoutSpacing</name>
- </property>
- <spacer>
- <property>
- <name>name</name>
- <cstring>Spacer26</cstring>
- </property>
- <property stdset="1">
- <name>orientation</name>
- <enum>Horizontal</enum>
- </property>
- <property stdset="1">
- <name>sizeType</name>
- <enum>Fixed</enum>
- </property>
- <property>
- <name>sizeHint</name>
- <size>
- <width>20</width>
- <height>20</height>
- </size>
- </property>
- </spacer>
- <widget>
- <class>QToolButton</class>
- <property stdset="1">
- <name>name</name>
- <cstring>bullet10PB</cstring>
- </property>
- <property stdset="1">
- <name>geometry</name>
- <rect>
- <x>98</x>
- <y>33</y>
- <width>23</width>
- <height>22</height>
- </rect>
- </property>
- <property stdset="1">
- <name>sizePolicy</name>
- <sizepolicy>
- <hsizetype>0</hsizetype>
- <vsizetype>0</vsizetype>
- </sizepolicy>
- </property>
- <property stdset="1">
- <name>text</name>
- <string></string>
- </property>
- <property stdset="1">
- <name>toggleButton</name>
- <bool>true</bool>
- </property>
- <property stdset="1">
- <name>toggleButton</name>
- <bool>true</bool>
- </property>
- </widget>
- <widget>
- <class>QToolButton</class>
- <property stdset="1">
- <name>name</name>
- <cstring>bullet11PB</cstring>
- </property>
- <property stdset="1">
- <name>geometry</name>
- <rect>
- <x>121</x>
- <y>33</y>
- <width>23</width>
- <height>22</height>
- </rect>
- </property>
- <property stdset="1">
- <name>sizePolicy</name>
- <sizepolicy>
- <hsizetype>0</hsizetype>
- <vsizetype>0</vsizetype>
- </sizepolicy>
- </property>
- <property stdset="1">
- <name>text</name>
- <string></string>
- </property>
- <property stdset="1">
- <name>toggleButton</name>
- <bool>true</bool>
- </property>
- <property stdset="1">
- <name>toggleButton</name>
- <bool>true</bool>
- </property>
- </widget>
- <widget>
- <class>QToolButton</class>
- <property stdset="1">
- <name>name</name>
- <cstring>bullet12PB</cstring>
- </property>
- <property stdset="1">
- <name>geometry</name>
- <rect>
- <x>144</x>
- <y>33</y>
- <width>23</width>
- <height>22</height>
- </rect>
- </property>
- <property stdset="1">
- <name>sizePolicy</name>
- <sizepolicy>
- <hsizetype>0</hsizetype>
- <vsizetype>0</vsizetype>
- </sizepolicy>
- </property>
- <property stdset="1">
- <name>text</name>
- <string></string>
- </property>
- <property stdset="1">
- <name>toggleButton</name>
- <bool>true</bool>
- </property>
- <property stdset="1">
- <name>toggleButton</name>
- <bool>true</bool>
- </property>
- </widget>
- <widget>
- <class>QToolButton</class>
- <property stdset="1">
- <name>name</name>
- <cstring>bullet13PB</cstring>
- </property>
- <property stdset="1">
- <name>geometry</name>
- <rect>
- <x>167</x>
- <y>33</y>
- <width>23</width>
- <height>22</height>
- </rect>
- </property>
- <property stdset="1">
- <name>sizePolicy</name>
- <sizepolicy>
- <hsizetype>0</hsizetype>
- <vsizetype>0</vsizetype>
- </sizepolicy>
- </property>
- <property stdset="1">
- <name>text</name>
- <string></string>
- </property>
- <property stdset="1">
- <name>toggleButton</name>
- <bool>true</bool>
- </property>
- <property stdset="1">
- <name>toggleButton</name>
- <bool>true</bool>
- </property>
- </widget>
- <widget>
- <class>QToolButton</class>
- <property stdset="1">
- <name>name</name>
- <cstring>bullet14PB</cstring>
- </property>
- <property stdset="1">
- <name>geometry</name>
- <rect>
- <x>190</x>
- <y>33</y>
- <width>23</width>
- <height>22</height>
- </rect>
- </property>
- <property stdset="1">
- <name>sizePolicy</name>
- <sizepolicy>
- <hsizetype>0</hsizetype>
- <vsizetype>0</vsizetype>
- </sizepolicy>
- </property>
- <property stdset="1">
- <name>text</name>
- <string></string>
- </property>
- <property stdset="1">
- <name>toggleButton</name>
- <bool>true</bool>
- </property>
- <property stdset="1">
- <name>toggleButton</name>
- <bool>true</bool>
- </property>
- </widget>
- <widget>
- <class>QToolButton</class>
- <property stdset="1">
- <name>name</name>
- <cstring>bullet15PB</cstring>
- </property>
- <property stdset="1">
- <name>geometry</name>
- <rect>
- <x>213</x>
- <y>33</y>
- <width>23</width>
- <height>22</height>
- </rect>
- </property>
- <property stdset="1">
- <name>sizePolicy</name>
- <sizepolicy>
- <hsizetype>0</hsizetype>
- <vsizetype>0</vsizetype>
- </sizepolicy>
- </property>
- <property stdset="1">
- <name>text</name>
- <string></string>
- </property>
- <property stdset="1">
- <name>toggleButton</name>
- <bool>true</bool>
- </property>
- <property stdset="1">
- <name>toggleButton</name>
- <bool>true</bool>
- </property>
- </widget>
- <widget>
- <class>QToolButton</class>
- <property stdset="1">
- <name>name</name>
- <cstring>bullet21PB</cstring>
- </property>
- <property stdset="1">
- <name>geometry</name>
- <rect>
- <x>121</x>
- <y>55</y>
- <width>23</width>
- <height>22</height>
- </rect>
- </property>
- <property stdset="1">
- <name>sizePolicy</name>
- <sizepolicy>
- <hsizetype>0</hsizetype>
- <vsizetype>0</vsizetype>
- </sizepolicy>
- </property>
- <property stdset="1">
- <name>text</name>
- <string></string>
- </property>
- <property stdset="1">
- <name>toggleButton</name>
- <bool>true</bool>
- </property>
- <property stdset="1">
- <name>toggleButton</name>
- <bool>true</bool>
- </property>
- </widget>
- <widget>
- <class>QToolButton</class>
- <property stdset="1">
- <name>name</name>
- <cstring>bullet20PB</cstring>
- </property>
- <property stdset="1">
- <name>geometry</name>
- <rect>
- <x>98</x>
- <y>55</y>
- <width>23</width>
- <height>22</height>
- </rect>
- </property>
- <property stdset="1">
- <name>sizePolicy</name>
- <sizepolicy>
- <hsizetype>0</hsizetype>
- <vsizetype>0</vsizetype>
- </sizepolicy>
- </property>
- <property stdset="1">
- <name>text</name>
- <string></string>
- </property>
- <property stdset="1">
- <name>toggleButton</name>
- <bool>true</bool>
- </property>
- <property stdset="1">
- <name>toggleButton</name>
- <bool>true</bool>
- </property>
- </widget>
- <widget>
- <class>QToolButton</class>
- <property stdset="1">
- <name>name</name>
- <cstring>bullet22PB</cstring>
- </property>
- <property stdset="1">
- <name>geometry</name>
- <rect>
- <x>144</x>
- <y>55</y>
- <width>23</width>
- <height>22</height>
- </rect>
- </property>
- <property stdset="1">
- <name>sizePolicy</name>
- <sizepolicy>
- <hsizetype>0</hsizetype>
- <vsizetype>0</vsizetype>
- </sizepolicy>
- </property>
- <property stdset="1">
- <name>text</name>
- <string></string>
- </property>
- <property stdset="1">
- <name>toggleButton</name>
- <bool>true</bool>
- </property>
- <property stdset="1">
- <name>toggleButton</name>
- <bool>true</bool>
- </property>
- </widget>
- <widget>
- <class>QToolButton</class>
- <property stdset="1">
- <name>name</name>
- <cstring>bullet23PB</cstring>
- </property>
- <property stdset="1">
- <name>geometry</name>
- <rect>
- <x>167</x>
- <y>55</y>
- <width>23</width>
- <height>22</height>
- </rect>
- </property>
- <property stdset="1">
- <name>sizePolicy</name>
- <sizepolicy>
- <hsizetype>0</hsizetype>
- <vsizetype>0</vsizetype>
- </sizepolicy>
- </property>
- <property stdset="1">
- <name>text</name>
- <string></string>
- </property>
- <property stdset="1">
- <name>toggleButton</name>
- <bool>true</bool>
- </property>
- <property stdset="1">
- <name>toggleButton</name>
- <bool>true</bool>
- </property>
- </widget>
- <widget>
- <class>QToolButton</class>
- <property stdset="1">
- <name>name</name>
- <cstring>bullet24PB</cstring>
- </property>
- <property stdset="1">
- <name>geometry</name>
- <rect>
- <x>190</x>
- <y>55</y>
- <width>23</width>
- <height>22</height>
- </rect>
- </property>
- <property stdset="1">
- <name>sizePolicy</name>
- <sizepolicy>
- <hsizetype>0</hsizetype>
- <vsizetype>0</vsizetype>
- </sizepolicy>
- </property>
- <property stdset="1">
- <name>text</name>
- <string></string>
- </property>
- <property stdset="1">
- <name>toggleButton</name>
- <bool>true</bool>
- </property>
- <property stdset="1">
- <name>toggleButton</name>
- <bool>true</bool>
- </property>
- </widget>
- <widget>
- <class>QToolButton</class>
- <property stdset="1">
- <name>name</name>
- <cstring>bullet25PB</cstring>
- </property>
- <property stdset="1">
- <name>geometry</name>
- <rect>
- <x>213</x>
- <y>55</y>
- <width>23</width>
- <height>22</height>
- </rect>
- </property>
- <property stdset="1">
- <name>sizePolicy</name>
- <sizepolicy>
- <hsizetype>0</hsizetype>
- <vsizetype>0</vsizetype>
- </sizepolicy>
- </property>
- <property stdset="1">
- <name>text</name>
- <string></string>
- </property>
- <property stdset="1">
- <name>toggleButton</name>
- <bool>true</bool>
- </property>
- <property stdset="1">
- <name>toggleButton</name>
- <bool>true</bool>
- </property>
- </widget>
- <widget>
- <class>QToolButton</class>
- <property stdset="1">
- <name>name</name>
- <cstring>bullet30PB</cstring>
- </property>
- <property stdset="1">
- <name>geometry</name>
- <rect>
- <x>98</x>
- <y>77</y>
- <width>23</width>
- <height>22</height>
- </rect>
- </property>
- <property stdset="1">
- <name>sizePolicy</name>
- <sizepolicy>
- <hsizetype>0</hsizetype>
- <vsizetype>0</vsizetype>
- </sizepolicy>
- </property>
- <property stdset="1">
- <name>text</name>
- <string></string>
- </property>
- <property stdset="1">
- <name>toggleButton</name>
- <bool>true</bool>
- </property>
- <property stdset="1">
- <name>toggleButton</name>
- <bool>true</bool>
- </property>
- </widget>
- <widget>
- <class>QToolButton</class>
- <property stdset="1">
- <name>name</name>
- <cstring>bullet31PB</cstring>
- </property>
- <property stdset="1">
- <name>geometry</name>
- <rect>
- <x>121</x>
- <y>77</y>
- <width>23</width>
- <height>22</height>
- </rect>
- </property>
- <property stdset="1">
- <name>sizePolicy</name>
- <sizepolicy>
- <hsizetype>0</hsizetype>
- <vsizetype>0</vsizetype>
- </sizepolicy>
- </property>
- <property stdset="1">
- <name>text</name>
- <string></string>
- </property>
- <property stdset="1">
- <name>toggleButton</name>
- <bool>true</bool>
- </property>
- <property stdset="1">
- <name>toggleButton</name>
- <bool>true</bool>
- </property>
- </widget>
- <widget>
- <class>QToolButton</class>
- <property stdset="1">
- <name>name</name>
- <cstring>bullet32PB</cstring>
- </property>
- <property stdset="1">
- <name>geometry</name>
- <rect>
- <x>144</x>
- <y>77</y>
- <width>23</width>
- <height>22</height>
- </rect>
- </property>
- <property stdset="1">
- <name>sizePolicy</name>
- <sizepolicy>
- <hsizetype>0</hsizetype>
- <vsizetype>0</vsizetype>
- </sizepolicy>
- </property>
- <property stdset="1">
- <name>text</name>
- <string></string>
- </property>
- <property stdset="1">
- <name>toggleButton</name>
- <bool>true</bool>
- </property>
- <property stdset="1">
- <name>toggleButton</name>
- <bool>true</bool>
- </property>
- </widget>
- <widget>
- <class>QToolButton</class>
- <property stdset="1">
- <name>name</name>
- <cstring>bullet34PB</cstring>
- </property>
- <property stdset="1">
- <name>geometry</name>
- <rect>
- <x>190</x>
- <y>77</y>
- <width>23</width>
- <height>22</height>
- </rect>
- </property>
- <property stdset="1">
- <name>sizePolicy</name>
- <sizepolicy>
- <hsizetype>0</hsizetype>
- <vsizetype>0</vsizetype>
- </sizepolicy>
- </property>
- <property stdset="1">
- <name>text</name>
- <string></string>
- </property>
- <property stdset="1">
- <name>toggleButton</name>
- <bool>true</bool>
- </property>
- <property stdset="1">
- <name>toggleButton</name>
- <bool>true</bool>
- </property>
- </widget>
- <widget>
- <class>QToolButton</class>
- <property stdset="1">
- <name>name</name>
- <cstring>bullet35PB</cstring>
- </property>
- <property stdset="1">
- <name>geometry</name>
- <rect>
- <x>213</x>
- <y>77</y>
- <width>23</width>
- <height>22</height>
- </rect>
- </property>
- <property stdset="1">
- <name>sizePolicy</name>
- <sizepolicy>
- <hsizetype>0</hsizetype>
- <vsizetype>0</vsizetype>
- </sizepolicy>
- </property>
- <property stdset="1">
- <name>text</name>
- <string></string>
- </property>
- <property stdset="1">
- <name>toggleButton</name>
- <bool>true</bool>
- </property>
- <property stdset="1">
- <name>toggleButton</name>
- <bool>true</bool>
- </property>
- </widget>
- <widget>
- <class>QToolButton</class>
- <property stdset="1">
- <name>name</name>
- <cstring>bullet42PB</cstring>
- </property>
- <property stdset="1">
- <name>geometry</name>
- <rect>
- <x>144</x>
- <y>99</y>
- <width>23</width>
- <height>22</height>
- </rect>
- </property>
- <property stdset="1">
- <name>sizePolicy</name>
- <sizepolicy>
- <hsizetype>0</hsizetype>
- <vsizetype>0</vsizetype>
- </sizepolicy>
- </property>
- <property stdset="1">
- <name>text</name>
- <string></string>
- </property>
- <property stdset="1">
- <name>toggleButton</name>
- <bool>true</bool>
- </property>
- <property stdset="1">
- <name>toggleButton</name>
- <bool>true</bool>
- </property>
- </widget>
- <widget>
- <class>QToolButton</class>
- <property stdset="1">
- <name>name</name>
- <cstring>bullet43PB</cstring>
- </property>
- <property stdset="1">
- <name>geometry</name>
- <rect>
- <x>167</x>
- <y>99</y>
- <width>23</width>
- <height>22</height>
- </rect>
- </property>
- <property stdset="1">
- <name>sizePolicy</name>
- <sizepolicy>
- <hsizetype>0</hsizetype>
- <vsizetype>0</vsizetype>
- </sizepolicy>
- </property>
- <property stdset="1">
- <name>text</name>
- <string></string>
- </property>
- <property stdset="1">
- <name>toggleButton</name>
- <bool>true</bool>
- </property>
- <property stdset="1">
- <name>toggleButton</name>
- <bool>true</bool>
- </property>
- </widget>
- <widget>
- <class>QToolButton</class>
- <property stdset="1">
- <name>name</name>
- <cstring>bullet44PB</cstring>
- </property>
- <property stdset="1">
- <name>geometry</name>
- <rect>
- <x>190</x>
- <y>99</y>
- <width>23</width>
- <height>22</height>
- </rect>
- </property>
- <property stdset="1">
- <name>sizePolicy</name>
- <sizepolicy>
- <hsizetype>0</hsizetype>
- <vsizetype>0</vsizetype>
- </sizepolicy>
- </property>
- <property stdset="1">
- <name>text</name>
- <string></string>
- </property>
- <property stdset="1">
- <name>toggleButton</name>
- <bool>true</bool>
- </property>
- <property stdset="1">
- <name>toggleButton</name>
- <bool>true</bool>
- </property>
- </widget>
- <widget>
- <class>QToolButton</class>
- <property stdset="1">
- <name>name</name>
- <cstring>bullet45PB</cstring>
- </property>
- <property stdset="1">
- <name>geometry</name>
- <rect>
- <x>213</x>
- <y>99</y>
- <width>23</width>
- <height>22</height>
- </rect>
- </property>
- <property stdset="1">
- <name>sizePolicy</name>
- <sizepolicy>
- <hsizetype>0</hsizetype>
- <vsizetype>0</vsizetype>
- </sizepolicy>
- </property>
- <property stdset="1">
- <name>text</name>
- <string></string>
- </property>
- <property stdset="1">
- <name>toggleButton</name>
- <bool>true</bool>
- </property>
- <property stdset="1">
- <name>toggleButton</name>
- <bool>true</bool>
- </property>
- </widget>
- <widget>
- <class>QToolButton</class>
- <property stdset="1">
- <name>name</name>
- <cstring>bullet50PB</cstring>
- </property>
- <property stdset="1">
- <name>geometry</name>
- <rect>
- <x>98</x>
- <y>121</y>
- <width>23</width>
- <height>22</height>
- </rect>
- </property>
- <property stdset="1">
- <name>sizePolicy</name>
- <sizepolicy>
- <hsizetype>0</hsizetype>
- <vsizetype>0</vsizetype>
- </sizepolicy>
- </property>
- <property stdset="1">
- <name>text</name>
- <string></string>
- </property>
- <property stdset="1">
- <name>toggleButton</name>
- <bool>true</bool>
- </property>
- <property stdset="1">
- <name>toggleButton</name>
- <bool>true</bool>
- </property>
- </widget>
- <widget>
- <class>QToolButton</class>
- <property stdset="1">
- <name>name</name>
- <cstring>bullet51PB</cstring>
- </property>
- <property stdset="1">
- <name>geometry</name>
- <rect>
- <x>121</x>
- <y>121</y>
- <width>23</width>
- <height>22</height>
- </rect>
- </property>
- <property stdset="1">
- <name>sizePolicy</name>
- <sizepolicy>
- <hsizetype>0</hsizetype>
- <vsizetype>0</vsizetype>
- </sizepolicy>
- </property>
- <property stdset="1">
- <name>text</name>
- <string></string>
- </property>
- <property stdset="1">
- <name>toggleButton</name>
- <bool>true</bool>
- </property>
- <property stdset="1">
- <name>toggleButton</name>
- <bool>true</bool>
- </property>
- </widget>
- <widget>
- <class>QToolButton</class>
- <property stdset="1">
- <name>name</name>
- <cstring>bullet52PB</cstring>
- </property>
- <property stdset="1">
- <name>geometry</name>
- <rect>
- <x>144</x>
- <y>121</y>
- <width>23</width>
- <height>22</height>
- </rect>
- </property>
- <property stdset="1">
- <name>sizePolicy</name>
- <sizepolicy>
- <hsizetype>0</hsizetype>
- <vsizetype>0</vsizetype>
- </sizepolicy>
- </property>
- <property stdset="1">
- <name>text</name>
- <string></string>
- </property>
- <property stdset="1">
- <name>toggleButton</name>
- <bool>true</bool>
- </property>
- <property stdset="1">
- <name>toggleButton</name>
- <bool>true</bool>
- </property>
- </widget>
- <widget>
- <class>QToolButton</class>
- <property stdset="1">
- <name>name</name>
- <cstring>bullet53PB</cstring>
- </property>
- <property stdset="1">
- <name>geometry</name>
- <rect>
- <x>167</x>
- <y>121</y>
- <width>23</width>
- <height>22</height>
- </rect>
- </property>
- <property stdset="1">
- <name>sizePolicy</name>
- <sizepolicy>
- <hsizetype>0</hsizetype>
- <vsizetype>0</vsizetype>
- </sizepolicy>
- </property>
- <property stdset="1">
- <name>text</name>
- <string></string>
- </property>
- <property stdset="1">
- <name>toggleButton</name>
- <bool>true</bool>
- </property>
- <property stdset="1">
- <name>toggleButton</name>
- <bool>true</bool>
- </property>
- </widget>
- <widget>
- <class>QToolButton</class>
- <property stdset="1">
- <name>name</name>
- <cstring>bullet54PB</cstring>
- </property>
- <property stdset="1">
- <name>geometry</name>
- <rect>
- <x>190</x>
- <y>121</y>
- <width>23</width>
- <height>22</height>
- </rect>
- </property>
- <property stdset="1">
- <name>sizePolicy</name>
- <sizepolicy>
- <hsizetype>0</hsizetype>
- <vsizetype>0</vsizetype>
- </sizepolicy>
- </property>
- <property stdset="1">
- <name>text</name>
- <string></string>
- </property>
- <property stdset="1">
- <name>toggleButton</name>
- <bool>true</bool>
- </property>
- <property stdset="1">
- <name>toggleButton</name>
- <bool>true</bool>
- </property>
- </widget>
- <widget>
- <class>QToolButton</class>
- <property stdset="1">
- <name>name</name>
- <cstring>bullet55PB</cstring>
- </property>
- <property stdset="1">
- <name>geometry</name>
- <rect>
- <x>213</x>
- <y>121</y>
- <width>23</width>
- <height>22</height>
- </rect>
- </property>
- <property stdset="1">
- <name>sizePolicy</name>
- <sizepolicy>
- <hsizetype>0</hsizetype>
- <vsizetype>0</vsizetype>
- </sizepolicy>
- </property>
- <property stdset="1">
- <name>text</name>
- <string></string>
- </property>
- <property stdset="1">
- <name>toggleButton</name>
- <bool>true</bool>
- </property>
- <property stdset="1">
- <name>toggleButton</name>
- <bool>true</bool>
- </property>
- </widget>
- <widget>
- <class>QToolButton</class>
- <property stdset="1">
- <name>name</name>
- <cstring>bullet40PB</cstring>
- </property>
- <property stdset="1">
- <name>geometry</name>
- <rect>
- <x>98</x>
- <y>99</y>
- <width>23</width>
- <height>22</height>
- </rect>
- </property>
- <property stdset="1">
- <name>sizePolicy</name>
- <sizepolicy>
- <hsizetype>0</hsizetype>
- <vsizetype>0</vsizetype>
- </sizepolicy>
- </property>
- <property stdset="1">
- <name>text</name>
- <string></string>
- </property>
- <property stdset="1">
- <name>toggleButton</name>
- <bool>true</bool>
- </property>
- <property stdset="1">
- <name>toggleButton</name>
- <bool>true</bool>
- </property>
- </widget>
- <widget>
- <class>QToolButton</class>
- <property stdset="1">
- <name>name</name>
- <cstring>bullet41PB</cstring>
- </property>
- <property stdset="1">
- <name>geometry</name>
- <rect>
- <x>121</x>
- <y>99</y>
- <width>23</width>
- <height>22</height>
- </rect>
- </property>
- <property stdset="1">
- <name>sizePolicy</name>
- <sizepolicy>
- <hsizetype>0</hsizetype>
- <vsizetype>0</vsizetype>
- </sizepolicy>
- </property>
- <property stdset="1">
- <name>text</name>
- <string></string>
- </property>
- <property stdset="1">
- <name>toggleButton</name>
- <bool>true</bool>
- </property>
- <property stdset="1">
- <name>toggleButton</name>
- <bool>true</bool>
- </property>
- </widget>
- <widget>
- <class>QToolButton</class>
- <property stdset="1">
- <name>name</name>
- <cstring>bulletPanelStandardPB</cstring>
- </property>
- <property stdset="1">
- <name>geometry</name>
- <rect>
- <x>11</x>
- <y>11</y>
- <width>66</width>
- <height>22</height>
- </rect>
- </property>
- <property stdset="1">
- <name>text</name>
- <string>&Standard</string>
- </property>
- <property stdset="1">
- <name>toggleButton</name>
- <bool>true</bool>
- </property>
- <property stdset="1">
- <name>toggleButton</name>
- <bool>true</bool>
- </property>
- </widget>
- <widget>
- <class>QToolButton</class>
- <property stdset="1">
- <name>name</name>
- <cstring>bulletPanelMathsPB</cstring>
- </property>
- <property stdset="1">
- <name>geometry</name>
- <rect>
- <x>11</x>
- <y>33</y>
- <width>66</width>
- <height>22</height>
- </rect>
- </property>
- <property stdset="1">
- <name>text</name>
- <string>&Maths</string>
- </property>
- <property stdset="1">
- <name>toggleButton</name>
- <bool>true</bool>
- </property>
- <property stdset="1">
- <name>toggleButton</name>
- <bool>true</bool>
- </property>
- </widget>
- <widget>
- <class>QToolButton</class>
- <property stdset="1">
- <name>name</name>
- <cstring>bulletPanelDing1PB</cstring>
- </property>
- <property stdset="1">
- <name>geometry</name>
- <rect>
- <x>11</x>
- <y>55</y>
- <width>66</width>
- <height>22</height>
- </rect>
- </property>
- <property stdset="1">
- <name>text</name>
- <string>&Ding 1</string>
- </property>
- <property stdset="1">
- <name>toggleButton</name>
- <bool>true</bool>
- </property>
- <property stdset="1">
- <name>toggleButton</name>
- <bool>true</bool>
- </property>
- </widget>
- <widget>
- <class>QToolButton</class>
- <property stdset="1">
- <name>name</name>
- <cstring>bulletPanelDing2PB</cstring>
- </property>
- <property stdset="1">
- <name>geometry</name>
- <rect>
- <x>11</x>
- <y>77</y>
- <width>66</width>
- <height>22</height>
- </rect>
- </property>
- <property stdset="1">
- <name>text</name>
- <string>D&ing 2</string>
- </property>
- <property stdset="1">
- <name>toggleButton</name>
- <bool>true</bool>
- </property>
- <property stdset="1">
- <name>toggleButton</name>
- <bool>true</bool>
- </property>
- </widget>
- <widget>
- <class>QToolButton</class>
- <property stdset="1">
- <name>name</name>
- <cstring>bulletPanelDing3PB</cstring>
- </property>
- <property stdset="1">
- <name>geometry</name>
- <rect>
- <x>11</x>
- <y>99</y>
- <width>66</width>
- <height>22</height>
- </rect>
- </property>
- <property stdset="1">
- <name>text</name>
- <string>Di&ng 3</string>
- </property>
- <property stdset="1">
- <name>toggleButton</name>
- <bool>true</bool>
- </property>
- <property stdset="1">
- <name>toggleButton</name>
- <bool>true</bool>
- </property>
- </widget>
- <widget>
- <class>QToolButton</class>
- <property stdset="1">
- <name>name</name>
- <cstring>bulletDing4PB</cstring>
- </property>
- <property stdset="1">
- <name>geometry</name>
- <rect>
- <x>11</x>
- <y>121</y>
- <width>66</width>
- <height>22</height>
- </rect>
- </property>
- <property stdset="1">
- <name>text</name>
- <string>Din&g 4</string>
- </property>
- </widget>
- <widget>
- <class>QToolButton</class>
- <property stdset="1">
- <name>name</name>
- <cstring>bullet33PB</cstring>
- </property>
- <property stdset="1">
- <name>geometry</name>
- <rect>
- <x>167</x>
- <y>77</y>
- <width>23</width>
- <height>22</height>
- </rect>
- </property>
- <property stdset="1">
- <name>sizePolicy</name>
- <sizepolicy>
- <hsizetype>0</hsizetype>
- <vsizetype>0</vsizetype>
- </sizepolicy>
- </property>
- <property stdset="1">
- <name>text</name>
- <string></string>
- </property>
- <property stdset="1">
- <name>toggleButton</name>
- <bool>true</bool>
- </property>
- <property stdset="1">
- <name>toggleButton</name>
- <bool>true</bool>
- </property>
- </widget>
- <widget>
- <class>QToolButton</class>
- <property stdset="1">
- <name>name</name>
- <cstring>bullet00PB</cstring>
- </property>
- <property stdset="1">
- <name>geometry</name>
- <rect>
- <x>98</x>
- <y>11</y>
- <width>23</width>
- <height>22</height>
- </rect>
- </property>
- <property stdset="1">
- <name>sizePolicy</name>
- <sizepolicy>
- <hsizetype>0</hsizetype>
- <vsizetype>0</vsizetype>
- </sizepolicy>
- </property>
- <property stdset="1">
- <name>text</name>
- <string></string>
- </property>
- <property stdset="1">
- <name>toggleButton</name>
- <bool>true</bool>
- </property>
- <property stdset="1">
- <name>toggleButton</name>
- <bool>true</bool>
- </property>
- </widget>
- <widget>
- <class>QToolButton</class>
- <property stdset="1">
- <name>name</name>
- <cstring>bullet01PB</cstring>
- </property>
- <property stdset="1">
- <name>geometry</name>
- <rect>
- <x>121</x>
- <y>11</y>
- <width>23</width>
- <height>22</height>
- </rect>
- </property>
- <property stdset="1">
- <name>sizePolicy</name>
- <sizepolicy>
- <hsizetype>0</hsizetype>
- <vsizetype>0</vsizetype>
- </sizepolicy>
- </property>
- <property stdset="1">
- <name>text</name>
- <string></string>
- </property>
- <property stdset="1">
- <name>toggleButton</name>
- <bool>true</bool>
- </property>
- <property stdset="1">
- <name>toggleButton</name>
- <bool>true</bool>
- </property>
- </widget>
- <widget>
- <class>QToolButton</class>
- <property stdset="1">
- <name>name</name>
- <cstring>bullet02PB</cstring>
- </property>
- <property stdset="1">
- <name>geometry</name>
- <rect>
- <x>144</x>
- <y>11</y>
- <width>23</width>
- <height>22</height>
- </rect>
- </property>
- <property stdset="1">
- <name>sizePolicy</name>
- <sizepolicy>
- <hsizetype>0</hsizetype>
- <vsizetype>0</vsizetype>
- </sizepolicy>
- </property>
- <property stdset="1">
- <name>text</name>
- <string></string>
- </property>
- <property stdset="1">
- <name>toggleButton</name>
- <bool>true</bool>
- </property>
- <property stdset="1">
- <name>toggleButton</name>
- <bool>true</bool>
- </property>
- </widget>
- <widget>
- <class>QToolButton</class>
- <property stdset="1">
- <name>name</name>
- <cstring>bullet03PB</cstring>
- </property>
- <property stdset="1">
- <name>geometry</name>
- <rect>
- <x>167</x>
- <y>11</y>
- <width>23</width>
- <height>22</height>
- </rect>
- </property>
- <property stdset="1">
- <name>sizePolicy</name>
- <sizepolicy>
- <hsizetype>0</hsizetype>
- <vsizetype>0</vsizetype>
- </sizepolicy>
- </property>
- <property stdset="1">
- <name>text</name>
- <string></string>
- </property>
- <property stdset="1">
- <name>toggleButton</name>
- <bool>true</bool>
- </property>
- <property stdset="1">
- <name>toggleButton</name>
- <bool>true</bool>
- </property>
- </widget>
- <widget>
- <class>QToolButton</class>
- <property stdset="1">
- <name>name</name>
- <cstring>bullet04PB</cstring>
- </property>
- <property stdset="1">
- <name>geometry</name>
- <rect>
- <x>190</x>
- <y>11</y>
- <width>23</width>
- <height>22</height>
- </rect>
- </property>
- <property stdset="1">
- <name>sizePolicy</name>
- <sizepolicy>
- <hsizetype>0</hsizetype>
- <vsizetype>0</vsizetype>
- </sizepolicy>
- </property>
- <property stdset="1">
- <name>text</name>
- <string></string>
- </property>
- <property stdset="1">
- <name>toggleButton</name>
- <bool>true</bool>
- </property>
- <property stdset="1">
- <name>toggleButton</name>
- <bool>true</bool>
- </property>
- </widget>
- <widget>
- <class>QToolButton</class>
- <property stdset="1">
- <name>name</name>
- <cstring>bullet05PB</cstring>
- </property>
- <property stdset="1">
- <name>geometry</name>
- <rect>
- <x>213</x>
- <y>11</y>
- <width>23</width>
- <height>22</height>
- </rect>
- </property>
- <property stdset="1">
- <name>sizePolicy</name>
- <sizepolicy>
- <hsizetype>0</hsizetype>
- <vsizetype>0</vsizetype>
- </sizepolicy>
- </property>
- <property stdset="1">
- <name>text</name>
- <string></string>
- </property>
- <property stdset="1">
- <name>toggleButton</name>
- <bool>true</bool>
- </property>
- <property stdset="1">
- <name>toggleButton</name>
- <bool>true</bool>
- </property>
- </widget>
- </widget>
- <spacer>
- <property>
- <name>name</name>
- <cstring>Spacer28</cstring>
- </property>
- <property stdset="1">
- <name>orientation</name>
- <enum>Horizontal</enum>
- </property>
- <property stdset="1">
- <name>sizeType</name>
- <enum>Expanding</enum>
- </property>
- <property>
- <name>sizeHint</name>
- <size>
- <width>20</width>
- <height>20</height>
- </size>
- </property>
- </spacer>
- </hbox>
- </widget>
- <spacer>
- <property>
- <name>name</name>
- <cstring>Spacer2</cstring>
- </property>
- <property stdset="1">
- <name>orientation</name>
- <enum>Vertical</enum>
- </property>
- <property stdset="1">
- <name>sizeType</name>
- <enum>Expanding</enum>
- </property>
- <property>
- <name>sizeHint</name>
- <size>
- <width>20</width>
- <height>20</height>
- </size>
- </property>
- </spacer>
- <widget>
- <class>QLayoutWidget</class>
- <property stdset="1">
- <name>name</name>
- <cstring>Layout45</cstring>
- </property>
- <hbox>
- <property stdset="1">
- <name>margin</name>
- <number>0</number>
- </property>
- <property stdset="1">
- <name>spacing</name>
- <number>6</number>
- </property>
- <spacer>
- <property>
- <name>name</name>
- <cstring>Spacer29</cstring>
- </property>
- <property stdset="1">
- <name>orientation</name>
- <enum>Horizontal</enum>
- </property>
- <property stdset="1">
- <name>sizeType</name>
- <enum>Expanding</enum>
- </property>
- <property>
- <name>sizeHint</name>
- <size>
- <width>20</width>
- <height>20</height>
- </size>
- </property>
- </spacer>
- <widget>
- <class>QLayoutWidget</class>
- <property stdset="1">
- <name>name</name>
- <cstring>Layout42</cstring>
- </property>
- <hbox>
- <property stdset="1">
- <name>margin</name>
- <number>0</number>
- </property>
- <property stdset="1">
- <name>spacing</name>
- <number>6</number>
- </property>
- <widget>
- <class>QLabel</class>
- <property stdset="1">
- <name>name</name>
- <cstring>latexLA</cstring>
- </property>
- <property stdset="1">
- <name>text</name>
- <string>&LaTeX</string>
- </property>
- <property>
- <name>buddy</name>
- <cstring>latexED</cstring>
- </property>
- </widget>
- <widget>
- <class>QLineEdit</class>
- <property stdset="1">
- <name>name</name>
- <cstring>latexED</cstring>
- </property>
- <property stdset="1">
- <name>maxLength</name>
- <number>80</number>
- </property>
- </widget>
- </hbox>
- </widget>
- <spacer>
- <property>
- <name>name</name>
- <cstring>Spacer30</cstring>
- </property>
- <property stdset="1">
- <name>orientation</name>
- <enum>Horizontal</enum>
- </property>
- <property stdset="1">
- <name>sizeType</name>
- <enum>Expanding</enum>
- </property>
- <property>
- <name>sizeHint</name>
- <size>
- <width>20</width>
- <height>20</height>
- </size>
- </property>
- </spacer>
- </hbox>
- </widget>
- </vbox>
- </widget>
- </widget>
- <widget>
- <class>QLabel</class>
- <property stdset="1">
- <name>name</name>
- <cstring>warningLA</cstring>
- </property>
- <property stdset="1">
- <name>palette</name>
- <palette>
- <active>
- <color>
- <red>0</red>
- <green>0</green>
- <blue>0</blue>
- </color>
- <color>
- <red>220</red>
- <green>220</green>
- <blue>220</blue>
- </color>
- <color>
- <red>255</red>
- <green>255</green>
- <blue>255</blue>
- </color>
- <color>
- <red>237</red>
- <green>237</green>
- <blue>237</blue>
- </color>
- <color>
- <red>110</red>
- <green>110</green>
- <blue>110</blue>
- </color>
- <color>
- <red>146</red>
- <green>146</green>
- <blue>146</blue>
- </color>
- <color>
- <red>255</red>
- <green>0</green>
- <blue>0</blue>
- </color>
- <color>
- <red>255</red>
- <green>255</green>
- <blue>255</blue>
- </color>
- <color>
- <red>0</red>
- <green>0</green>
- <blue>0</blue>
- </color>
- <color>
- <red>255</red>
- <green>255</green>
- <blue>255</blue>
- </color>
- <color>
- <red>220</red>
- <green>220</green>
- <blue>220</blue>
- </color>
- <color>
- <red>0</red>
- <green>0</green>
- <blue>0</blue>
- </color>
- <color>
- <red>0</red>
- <green>128</green>
- <blue>128</blue>
- </color>
- <color>
- <red>255</red>
- <green>255</green>
- <blue>255</blue>
- </color>
- </active>
- <disabled>
- <color>
- <red>128</red>
- <green>128</green>
- <blue>128</blue>
- </color>
- <color>
- <red>220</red>
- <green>220</green>
- <blue>220</blue>
- </color>
- <color>
- <red>255</red>
- <green>255</green>
- <blue>255</blue>
- </color>
- <color>
- <red>253</red>
- <green>253</green>
- <blue>253</blue>
- </color>
- <color>
- <red>110</red>
- <green>110</green>
- <blue>110</blue>
- </color>
- <color>
- <red>146</red>
- <green>146</green>
- <blue>146</blue>
- </color>
- <color>
- <red>255</red>
- <green>0</green>
- <blue>0</blue>
- </color>
- <color>
- <red>255</red>
- <green>255</green>
- <blue>255</blue>
- </color>
- <color>
- <red>128</red>
- <green>128</green>
- <blue>128</blue>
- </color>
- <color>
- <red>255</red>
- <green>255</green>
- <blue>255</blue>
- </color>
- <color>
- <red>220</red>
- <green>220</green>
- <blue>220</blue>
- </color>
- <color>
- <red>0</red>
- <green>0</green>
- <blue>0</blue>
- </color>
- <color>
- <red>0</red>
- <green>128</green>
- <blue>128</blue>
- </color>
- <color>
- <red>255</red>
- <green>255</green>
- <blue>255</blue>
- </color>
- </disabled>
- <inactive>
- <color>
- <red>0</red>
- <green>0</green>
- <blue>0</blue>
- </color>
- <color>
- <red>220</red>
- <green>220</green>
- <blue>220</blue>
- </color>
- <color>
- <red>255</red>
- <green>255</green>
- <blue>255</blue>
- </color>
- <color>
- <red>253</red>
- <green>253</green>
- <blue>253</blue>
- </color>
- <color>
- <red>110</red>
- <green>110</green>
- <blue>110</blue>
- </color>
- <color>
- <red>146</red>
- <green>146</green>
- <blue>146</blue>
- </color>
- <color>
- <red>255</red>
- <green>0</green>
- <blue>0</blue>
- </color>
- <color>
- <red>255</red>
- <green>255</green>
- <blue>255</blue>
- </color>
- <color>
- <red>0</red>
- <green>0</green>
- <blue>0</blue>
- </color>
- <color>
- <red>255</red>
- <green>255</green>
- <blue>255</blue>
- </color>
- <color>
- <red>220</red>
- <green>220</green>
- <blue>220</blue>
- </color>
- <color>
- <red>0</red>
- <green>0</green>
- <blue>0</blue>
- </color>
- <color>
- <red>0</red>
- <green>128</green>
- <blue>128</blue>
- </color>
- <color>
- <red>255</red>
- <green>255</green>
- <blue>255</blue>
- </color>
- </inactive>
- </palette>
- </property>
- <property stdset="1">
- <name>font</name>
- <font>
- <bold>1</bold>
- </font>
- </property>
- <property stdset="1">
- <name>text</name>
- <string></string>
- </property>
- <property stdset="1">
- <name>alignment</name>
- <set>AlignCenter</set>
- </property>
- <property>
- <name>hAlign</name>
- </property>
- </widget>
- <widget>
- <class>QLayoutWidget</class>
- <property stdset="1">
- <name>name</name>
- <cstring>Layout54</cstring>
- </property>
- <hbox>
- <property stdset="1">
- <name>margin</name>
- <number>0</number>
- </property>
- <property stdset="1">
- <name>spacing</name>
- <number>6</number>
- </property>
- <spacer>
- <property>
- <name>name</name>
- <cstring>Spacer39</cstring>
- </property>
- <property stdset="1">
- <name>orientation</name>
- <enum>Horizontal</enum>
- </property>
- <property stdset="1">
- <name>sizeType</name>
- <enum>Expanding</enum>
- </property>
- <property>
- <name>sizeHint</name>
- <size>
- <width>20</width>
- <height>20</height>
- </size>
- </property>
- </spacer>
- <widget>
- <class>QPushButton</class>
- <property stdset="1">
- <name>name</name>
- <cstring>restorePB</cstring>
- </property>
- <property stdset="1">
- <name>text</name>
- <string>&Restore</string>
- </property>
- </widget>
- <widget>
- <class>QPushButton</class>
- <property stdset="1">
- <name>name</name>
- <cstring>okPB</cstring>
- </property>
- <property stdset="1">
- <name>text</name>
- <string>OK</string>
- </property>
- <property stdset="1">
- <name>default</name>
- <bool>true</bool>
- </property>
- </widget>
- <widget>
- <class>QPushButton</class>
- <property stdset="1">
- <name>name</name>
- <cstring>applyPB</cstring>
- </property>
- <property stdset="1">
- <name>text</name>
- <string>&Apply</string>
- </property>
- </widget>
- <widget>
- <class>QPushButton</class>
- <property stdset="1">
- <name>name</name>
- <cstring>cancelPB</cstring>
- </property>
- <property stdset="1">
- <name>text</name>
- <string>Cancel</string>
- </property>
- </widget>
- </hbox>
- </widget>
- </vbox>
-</widget>
-<connections>
- <connection>
- <sender>okPB</sender>
- <signal>clicked()</signal>
- <receiver>FormDocumentDialog</receiver>
- <slot>slotOK()</slot>
- </connection>
- <connection>
- <sender>restorePB</sender>
- <signal>clicked()</signal>
- <receiver>FormDocumentDialog</receiver>
- <slot>slotRestore()</slot>
- </connection>
- <connection>
- <sender>paperPackageCO</sender>
- <signal>activated(int)</signal>
- <receiver>FormDocumentDialog</receiver>
- <slot>slotSpecialPaperPackage(int)</slot>
- </connection>
- <connection>
- <sender>orientationBG</sender>
- <signal>clicked(int)</signal>
- <receiver>FormDocumentDialog</receiver>
- <slot>slotOrientation(int)</slot>
- </connection>
- <connection>
- <sender>papersize2CO</sender>
- <signal>activated(int)</signal>
- <receiver>FormDocumentDialog</receiver>
- <slot>slotPapersize(int)</slot>
- </connection>
- <connection>
- <sender>useGeometryCB</sender>
- <signal>toggled(bool)</signal>
- <receiver>FormDocumentDialog</receiver>
- <slot>slotUseGeometryPackage(bool)</slot>
- </connection>
- <connection>
- <sender>customWidthED</sender>
- <signal>textChanged(const QString&)</signal>
- <receiver>FormDocumentDialog</receiver>
- <slot>slotWidth(const QString&)</slot>
- </connection>
- <connection>
- <sender>customHeightED</sender>
- <signal>textChanged(const QString&)</signal>
- <receiver>FormDocumentDialog</receiver>
- <slot>slotHeight(const QString&)</slot>
- </connection>
- <connection>
- <sender>topMarginED</sender>
- <signal>textChanged(const QString&)</signal>
- <receiver>FormDocumentDialog</receiver>
- <slot>slotMarginTop(const QString&)</slot>
- </connection>
- <connection>
- <sender>bottomMarginED</sender>
- <signal>textChanged(const QString&)</signal>
- <receiver>FormDocumentDialog</receiver>
- <slot>slotMarginBottom(const QString&)</slot>
- </connection>
- <connection>
- <sender>leftMarginED</sender>
- <signal>textChanged(const QString&)</signal>
- <receiver>FormDocumentDialog</receiver>
- <slot>slotMarginLeft(const QString&)</slot>
- </connection>
- <connection>
- <sender>rightMarginED</sender>
- <signal>textChanged(const QString&)</signal>
- <receiver>FormDocumentDialog</receiver>
- <slot>slotMarginRight(const QString&)</slot>
- </connection>
- <connection>
- <sender>headHeightED</sender>
- <signal>textChanged(const QString&)</signal>
- <receiver>FormDocumentDialog</receiver>
- <slot>slotHeadheight(const QString&)</slot>
- </connection>
- <connection>
- <sender>headSepED</sender>
- <signal>textChanged(const QString&)</signal>
- <receiver>FormDocumentDialog</receiver>
- <slot>slotHeadsep(const QString&)</slot>
- </connection>
- <connection>
- <sender>footSkipED</sender>
- <signal>textChanged(const QString&)</signal>
- <receiver>FormDocumentDialog</receiver>
- <slot>slotFootskip(const QString&)</slot>
- </connection>
- <connection>
- <sender>docClassCO</sender>
- <signal>activated(int)</signal>
- <receiver>FormDocumentDialog</receiver>
- <slot>slotClass(int)</slot>
- </connection>
- <connection>
- <sender>docPagestyleCO</sender>
- <signal>activated(int)</signal>
- <receiver>FormDocumentDialog</receiver>
- <slot>slotPageStyle(int)</slot>
- </connection>
- <connection>
- <sender>docFontsCO</sender>
- <signal>activated(int)</signal>
- <receiver>FormDocumentDialog</receiver>
- <slot>slotFont(int)</slot>
- </connection>
- <connection>
- <sender>docFontSizeCO</sender>
- <signal>activated(int)</signal>
- <receiver>FormDocumentDialog</receiver>
- <slot>slotFontSize(int)</slot>
- </connection>
- <connection>
- <sender>docExtraED</sender>
- <signal>textChanged(const QString&)</signal>
- <receiver>FormDocumentDialog</receiver>
- <slot>slotExtraOptions(const QString&)</slot>
- </connection>
- <connection>
- <sender>docSkipCO</sender>
- <signal>activated(int)</signal>
- <receiver>FormDocumentDialog</receiver>
- <slot>slotDefaultSkip(int)</slot>
- </connection>
- <connection>
- <sender>docSkipED</sender>
- <signal>textChanged(const QString&)</signal>
- <receiver>FormDocumentDialog</receiver>
- <slot>slotDefaultSkip(const QString&)</slot>
- </connection>
- <connection>
- <sender>docSpacingCO</sender>
- <signal>activated(int)</signal>
- <receiver>FormDocumentDialog</receiver>
- <slot>slotSpacing(int)</slot>
- </connection>
- <connection>
- <sender>docSpacingED</sender>
- <signal>textChanged(const QString&)</signal>
- <receiver>FormDocumentDialog</receiver>
- <slot>slotSpacing(const QString&)</slot>
- </connection>
- <connection>
- <sender>sidesBG</sender>
- <signal>clicked(int)</signal>
- <receiver>FormDocumentDialog</receiver>
- <slot>slotSides(int)</slot>
- </connection>
- <connection>
- <sender>columnsBG</sender>
- <signal>clicked(int)</signal>
- <receiver>FormDocumentDialog</receiver>
- <slot>slotColumns(int)</slot>
- </connection>
- <connection>
- <sender>separationBG</sender>
- <signal>clicked(int)</signal>
- <receiver>FormDocumentDialog</receiver>
- <slot>slotSeparation(int)</slot>
- </connection>
- <connection>
- <sender>languageCO</sender>
- <signal>activated(int)</signal>
- <receiver>FormDocumentDialog</receiver>
- <slot>slotLanguage(int)</slot>
- </connection>
- <connection>
- <sender>inputEncCO</sender>
- <signal>activated(int)</signal>
- <receiver>FormDocumentDialog</receiver>
- <slot>slotEncoding(int)</slot>
- </connection>
- <connection>
- <sender>quotesLanguageCO</sender>
- <signal>activated(int)</signal>
- <receiver>FormDocumentDialog</receiver>
- <slot>slotQuoteStyle(int)</slot>
- </connection>
- <connection>
- <sender>quoteStyleBG</sender>
- <signal>clicked(int)</signal>
- <receiver>FormDocumentDialog</receiver>
- <slot>slotQuoteStyle(int)</slot>
- </connection>
- <connection>
- <sender>floatPlacementED</sender>
- <signal>textChanged(const QString&)</signal>
- <receiver>FormDocumentDialog</receiver>
- <slot>slotFloatPlacement(const QString&)</slot>
- </connection>
- <connection>
- <sender>secNumDepthSB</sender>
- <signal>valueChanged(int)</signal>
- <receiver>FormDocumentDialog</receiver>
- <slot>slotSectionNumberDepth(int)</slot>
- </connection>
- <connection>
- <sender>tocDepthSB</sender>
- <signal>valueChanged(int)</signal>
- <receiver>FormDocumentDialog</receiver>
- <slot>slotTOCDepth(int)</slot>
- </connection>
- <connection>
- <sender>postscriptDriverCO</sender>
- <signal>activated(int)</signal>
- <receiver>FormDocumentDialog</receiver>
- <slot>slotPSDriver(int)</slot>
- </connection>
- <connection>
- <sender>useAmsMathCB</sender>
- <signal>toggled(bool)</signal>
- <receiver>FormDocumentDialog</receiver>
- <slot>slotAMSMath(bool)</slot>
- </connection>
- <connection>
- <sender>applyPB</sender>
- <signal>clicked()</signal>
- <receiver>FormDocumentDialog</receiver>
- <slot>slotApply()</slot>
- </connection>
- <connection>
- <sender>cancelPB</sender>
- <signal>clicked()</signal>
- <receiver>FormDocumentDialog</receiver>
- <slot>slotClose()</slot>
- </connection>
- <connection>
- <sender>latexED</sender>
- <signal>textChanged(const QString&)</signal>
- <receiver>FormDocumentDialog</receiver>
- <slot>slotBulletLaTeX(const QString&)</slot>
- </connection>
- <connection>
- <sender>bulletPanelStandardPB</sender>
- <signal>clicked()</signal>
- <receiver>FormDocumentDialog</receiver>
- <slot>slotBulletStandard()</slot>
- </connection>
- <connection>
- <sender>bulletPanelMathsPB</sender>
- <signal>clicked()</signal>
- <receiver>FormDocumentDialog</receiver>
- <slot>slotBulletMaths()</slot>
- </connection>
- <connection>
- <sender>bulletPanelDing1PB</sender>
- <signal>clicked()</signal>
- <receiver>FormDocumentDialog</receiver>
- <slot>slotBulletDing1()</slot>
- </connection>
- <connection>
- <sender>bulletPanelDing2PB</sender>
- <signal>clicked()</signal>
- <receiver>FormDocumentDialog</receiver>
- <slot>slotBulletDing2()</slot>
- </connection>
- <connection>
- <sender>bulletPanelDing3PB</sender>
- <signal>clicked()</signal>
- <receiver>FormDocumentDialog</receiver>
- <slot>slotBulletDing3()</slot>
- </connection>
- <connection>
- <sender>bulletDing4PB</sender>
- <signal>clicked()</signal>
- <receiver>FormDocumentDialog</receiver>
- <slot>slotBulletDing4()</slot>
- </connection>
- <connection>
- <sender>bulletTypeBG</sender>
- <signal>clicked(int)</signal>
- <receiver>FormDocumentDialog</receiver>
- <slot>slotBulletSymbol(int)</slot>
- </connection>
- <connection>
- <sender>bulletSizeCO</sender>
- <signal>activated(int)</signal>
- <receiver>FormDocumentDialog</receiver>
- <slot>slotBulletSize(int)</slot>
- </connection>
- <connection>
- <sender>bulletDepth1PB</sender>
- <signal>clicked()</signal>
- <receiver>FormDocumentDialog</receiver>
- <slot>slotBulletDepth1()</slot>
- </connection>
- <connection>
- <sender>bulletDepth2PB</sender>
- <signal>clicked()</signal>
- <receiver>FormDocumentDialog</receiver>
- <slot>slotBulletDepth2()</slot>
- </connection>
- <connection>
- <sender>bulletDepth3PB</sender>
- <signal>clicked()</signal>
- <receiver>FormDocumentDialog</receiver>
- <slot>slotBulletDing3()</slot>
- </connection>
- <connection>
- <sender>bulletDepth4PB</sender>
- <signal>clicked()</signal>
- <receiver>FormDocumentDialog</receiver>
- <slot>slotBulletDepth4()</slot>
- </connection>
- <slot access="public">slotAMSMath(bool)</slot>
- <slot access="public">slotApply()</slot>
- <slot access="public">slotBulletDepth1()</slot>
- <slot access="public">slotBulletDepth2()</slot>
- <slot access="public">slotBulletDepth3()</slot>
- <slot access="public">slotBulletDepth4()</slot>
- <slot access="public">slotBulletDing1()</slot>
- <slot access="public">slotBulletDing2()</slot>
- <slot access="public">slotBulletDing3()</slot>
- <slot access="public">slotBulletDing4()</slot>
- <slot access="public">slotBulletLaTeX(const QString&)</slot>
- <slot access="public">slotBulletMaths()</slot>
- <slot access="public">slotBulletSize(int)</slot>
- <slot access="public">slotBulletStandard()</slot>
- <slot access="public">slotBulletSymbol(int)</slot>
- <slot access="public">slotClass(int)</slot>
- <slot access="public">slotClose()</slot>
- <slot access="public">slotColumns(int)</slot>
- <slot access="public">slotDefaultSkip(const QString&)</slot>
- <slot access="public">slotDefaultSkip(int)</slot>
- <slot access="public">slotEncoding(int)</slot>
- <slot access="public">slotExtraOptions(const QString&)</slot>
- <slot access="public">slotFloatPlacement(const QString&)</slot>
- <slot access="public">slotFont(int)</slot>
- <slot access="public">slotFontSize(int)</slot>
- <slot access="public">slotFootskip(const QString&)</slot>
- <slot access="public">slotHeadheight(const QString&)</slot>
- <slot access="public">slotHeadsep(const QString&)</slot>
- <slot access="public">slotHeight(const QString&)</slot>
- <slot access="public">slotLanguage(int)</slot>
- <slot access="public">slotMarginBottom(const QString&)</slot>
- <slot access="public">slotMarginLeft(const QString&)</slot>
- <slot access="public">slotMarginRight(const QString&)</slot>
- <slot access="public">slotMarginTop(const QString&)</slot>
- <slot access="public">slotOK()</slot>
- <slot access="public">slotOrientation(int)</slot>
- <slot access="public">slotPSDriver(int)</slot>
- <slot access="public">slotPageStyle(int)</slot>
- <slot access="public">slotPapersize(int)</slot>
- <slot access="public">slotQuoteStyle(int)</slot>
- <slot access="public">slotQuoteType(int)</slot>
- <slot access="public">slotRestore()</slot>
- <slot access="public">slotSectionNumberDepth(int)</slot>
- <slot access="public">slotSeparation(int)</slot>
- <slot access="public">slotSides(int)</slot>
- <slot access="public">slotSpacing(const QString&)</slot>
- <slot access="public">slotSpacing(int)</slot>
- <slot access="public">slotSpecialPaperPackage(int)</slot>
- <slot access="public">slotTOCDepth(int)</slot>
- <slot access="public">slotUseGeometryPackage(bool)</slot>
- <slot access="public">slotWidth(const QString&)</slot>
-</connections>
-<tabstops>
- <tabstop>docClassCO</tabstop>
- <tabstop>docPagestyleCO</tabstop>
- <tabstop>docFontsCO</tabstop>
- <tabstop>docFontSizeCO</tabstop>
- <tabstop>docExtraED</tabstop>
- <tabstop>docSkipCO</tabstop>
- <tabstop>docSkipED</tabstop>
- <tabstop>docSpacingCO</tabstop>
- <tabstop>docSpacingED</tabstop>
- <tabstop>docSidesOneRB</tabstop>
- <tabstop>docSidesTwoRB</tabstop>
- <tabstop>docColumnsOneRB</tabstop>
- <tabstop>docColumnsTwoRB</tabstop>
- <tabstop>docIndentRB</tabstop>
- <tabstop>docSkipRB</tabstop>
- <tabstop>papersize2CO</tabstop>
- <tabstop>paperPackageCO</tabstop>
- <tabstop>useGeometryCB</tabstop>
- <tabstop>portraitRB</tabstop>
- <tabstop>landscapeRB</tabstop>
- <tabstop>topMarginED</tabstop>
- <tabstop>bottomMarginED</tabstop>
- <tabstop>leftMarginED</tabstop>
- <tabstop>rightMarginED</tabstop>
- <tabstop>customWidthED</tabstop>
- <tabstop>customHeightED</tabstop>
- <tabstop>headHeightED</tabstop>
- <tabstop>headSepED</tabstop>
- <tabstop>footSkipED</tabstop>
- <tabstop>languageCO</tabstop>
- <tabstop>inputEncCO</tabstop>
- <tabstop>quotesLanguageCO</tabstop>
- <tabstop>singleRB</tabstop>
- <tabstop>doubleRB</tabstop>
- <tabstop>floatPlacementED</tabstop>
- <tabstop>secNumDepthSB</tabstop>
- <tabstop>tocDepthSB</tabstop>
- <tabstop>postscriptDriverCO</tabstop>
- <tabstop>useAmsMathCB</tabstop>
- <tabstop>bulletSizeCO</tabstop>
- <tabstop>latexED</tabstop>
- <tabstop>restorePB</tabstop>
- <tabstop>okPB</tabstop>
- <tabstop>applyPB</tabstop>
- <tabstop>cancelPB</tabstop>
- <tabstop>TabWidget2</tabstop>
-</tabstops>
-</UI>
+++ /dev/null
-#include "FormDocumentDialog.h"
-#include "Dialogs.h"
-#include "FormDocument.h"
-
-#include <qlineedit.h>
-#include <qcheckbox.h>
-#include <qtoolbutton.h>
-#include <qbuttongroup.h>
-#include <qcombobox.h>
-#include <qspinbox.h>
-
-/*
- * Constructs a FormDocumentDialog which is a child of 'parent', with the
- * name 'name' and widget flags set to 'f'
- *
- * The dialog will by default be modeless, unless you set 'modal' to
- * TRUE to construct a modal dialog.
- */
-FormDocumentDialog::FormDocumentDialog( FormDocument* _form, QWidget* parent, const char* name, bool modal, WFlags fl )
- : FormDocumentDialogBase( parent, name, modal, fl ),
- form( _form )
-{
- // Copy the pointers to the bullet buttons into an array so that
- // they can all be manipulated together.
- bulletbuttons[0] = bullet00PB;
- bulletbuttons[1] = bullet01PB;
- bulletbuttons[2] = bullet02PB;
- bulletbuttons[3] = bullet03PB;
- bulletbuttons[4] = bullet04PB;
- bulletbuttons[5] = bullet05PB;
- bulletbuttons[6] = bullet10PB;
- bulletbuttons[7] = bullet11PB;
- bulletbuttons[8] = bullet12PB;
- bulletbuttons[9] = bullet13PB;
- bulletbuttons[10] = bullet14PB;
- bulletbuttons[11] = bullet15PB;
- bulletbuttons[12] = bullet20PB;
- bulletbuttons[13] = bullet21PB;
- bulletbuttons[14] = bullet22PB;
- bulletbuttons[15] = bullet23PB;
- bulletbuttons[16] = bullet24PB;
- bulletbuttons[17] = bullet25PB;
- bulletbuttons[18] = bullet30PB;
- bulletbuttons[19] = bullet31PB;
- bulletbuttons[20] = bullet32PB;
- bulletbuttons[21] = bullet33PB;
- bulletbuttons[22] = bullet34PB;
- bulletbuttons[23] = bullet35PB;
- bulletbuttons[24] = bullet40PB;
- bulletbuttons[25] = bullet41PB;
- bulletbuttons[26] = bullet42PB;
- bulletbuttons[27] = bullet43PB;
- bulletbuttons[28] = bullet44PB;
- bulletbuttons[29] = bullet45PB;
- bulletbuttons[30] = bullet50PB;
- bulletbuttons[31] = bullet51PB;
- bulletbuttons[32] = bullet52PB;
- bulletbuttons[33] = bullet53PB;
- bulletbuttons[34] = bullet54PB;
- bulletbuttons[35] = bullet55PB;
-}
-
-/*
- * Destroys the object and frees any allocated resources
- */
-FormDocumentDialog::~FormDocumentDialog()
-{
- // no need to delete child widgets, Qt does it all for us
-}
-
-/*
- * public slot
- */
-void FormDocumentDialog::slotApply()
-{
- form->apply();
- // PENDING(kalle) Check whether we need this
- // form->bc_->apply();
-}
-/*
- * public slot
- */
-void FormDocumentDialog::slotAMSMath(bool)
-{
- form->checkDocumentInput( amsMathCB );
-}
-/*
- * public slot
- */
-void FormDocumentDialog::slotBulletDepth1()
-{
- form->bulletDepth( 0 );
-}
-/*
- * public slot
- */
-void FormDocumentDialog::slotBulletDepth2()
-{
- form->bulletDepth( 1 );
-}
-/*
- * public slot
- */
-void FormDocumentDialog::slotBulletDepth3()
-{
- form->bulletDepth( 2 );
-}
-/*
- * public slot
- */
-void FormDocumentDialog::slotBulletDepth4()
-{
- form->bulletDepth( 3 );
-}
-/*
- * public slot
- */
-void FormDocumentDialog::slotBulletDing1()
-{
- qDebug( "FormDocumentDialog::slotBulletDing1()" );
- form->checkDocumentInput( bulletDing1PB );
- form->setBulletPics();
- bulletStandardPB->setOn( false );
- bulletMathsPB->setOn( false );
- bulletDing2PB->setOn( false );
- bulletDing3PB->setOn( false );
- bulletDing4PB->setOn( false );
-}
-/*
- * public slot
- */
-void FormDocumentDialog::slotBulletDing2()
-{
- form->checkDocumentInput( bulletDing2PB );
- form->setBulletPics();
- bulletStandardPB->setOn( false );
- bulletMathsPB->setOn( false );
- bulletDing1PB->setOn( false );
- bulletDing3PB->setOn( false );
- bulletDing4PB->setOn( false );
-}
-/*
- * public slot
- */
-void FormDocumentDialog::slotBulletDing3()
-{
- form->checkDocumentInput( bulletDing3PB );
- form->setBulletPics();
- bulletStandardPB->setOn( false );
- bulletMathsPB->setOn( false );
- bulletDing2PB->setOn( false );
- bulletDing1PB->setOn( false );
- bulletDing4PB->setOn( false );
-}
-/*
- * public slot
- */
-void FormDocumentDialog::slotBulletDing4()
-{
- form->checkDocumentInput( bulletDing4PB );
- form->setBulletPics();
- bulletStandardPB->setOn( false );
- bulletMathsPB->setOn( false );
- bulletDing2PB->setOn( false );
- bulletDing3PB->setOn( false );
- bulletDing1PB->setOn( false );
-}
-/*
- * public slot
- */
-void FormDocumentDialog::slotBulletMaths()
-{
- form->checkDocumentInput( bulletMathsPB );
- form->setBulletPics();
- bulletStandardPB->setOn( false );
- bulletDing1PB->setOn( false );
- bulletDing2PB->setOn( false );
- bulletDing3PB->setOn( false );
- bulletDing4PB->setOn( false );
-}
-/*
- * public slot
- */
-void FormDocumentDialog::slotBulletSize(int)
-{
- form->choiceBulletSize();
- form->checkDocumentInput( bulletSizeCO );
-}
-/*
- * public slot
- */
-void FormDocumentDialog::slotBulletStandard()
-{
- form->checkDocumentInput( bulletStandardPB );
- form->setBulletPics();
- bulletDing1PB->setOn( false );
- bulletMathsPB->setOn( false );
- bulletDing2PB->setOn( false );
- bulletDing3PB->setOn( false );
- bulletDing4PB->setOn( false );
-}
-/*
- * public slot
- */
-void FormDocumentDialog::slotBulletSymbol(int n)
-{
- qDebug( "FormDocumentDialog::slotBulletSymbol( %d )", n );
- for( int i = 0; i < 36; i++ )
- bulletbuttons[i]->setOn( false );
- bulletbuttons[n]->setOn( true );
- form->bulletBMTable( n );
- form->checkDocumentInput( bulletTypeBG );
-}
-/*
- * public slot
- */
-void FormDocumentDialog::slotClass(int)
-{
- form->checkChoiceClass( 0 );
- form->checkDocumentInput( classesCO );
-}
-/*
- * public slot
- */
-void FormDocumentDialog::slotClose()
-{
- form->cancel();
- form->hide();
- // PENDING(kalle) do something with this
- // form->bc_->cancel();
-}
-/*
- * public slot
- */
-void FormDocumentDialog::slotColumns(int)
-{
- form->checkDocumentInput( columnsBG );
-}
-/*
- * public slot
- */
-void FormDocumentDialog::slotDefaultSkip(const QString&)
-{
- form->checkDocumentInput( defaultSkipED );
-}
-/*
- * public slot
- */
-void FormDocumentDialog::slotDefaultSkip(int)
-{
- form->checkChoiceClass( defaultSkipCO );
- form->checkDocumentInput( defaultSkipCO );
-}
-/*
- * public slot
- */
-void FormDocumentDialog::slotEncoding(int)
-{
- form->checkChoiceClass( encodingCO );
- form->checkDocumentInput( encodingCO );
-}
-/*
- * public slot
- */
-void FormDocumentDialog::slotExtraOptions(const QString&)
-{
- form->checkDocumentInput( extraOptionsED );
-}
-/*
- * public slot
- */
-void FormDocumentDialog::slotFloatPlacement(const QString&)
-{
- form->checkDocumentInput( floatPlacementED );
-}
-/*
- * public slot
- */
-void FormDocumentDialog::slotFont(int)
-{
- form->checkChoiceClass( fontsCO );
- form->checkDocumentInput( fontsCO );
-}
-/*
- * public slot
- */
-void FormDocumentDialog::slotFontSize(int)
-{
- form->checkChoiceClass( fontSizeCO );
- form->checkDocumentInput( fontSizeCO );
-}
-/*
- * public slot
- */
-void FormDocumentDialog::slotFootskip(const QString&)
-{
- form->checkDocumentInput( footskipED );
-}
-/*
- * public slot
- */
-void FormDocumentDialog::slotHeadheight(const QString&)
-{
- form->checkDocumentInput( headheightED );
-}
-/*
- * public slot
- */
-void FormDocumentDialog::slotHeadsep(const QString&)
-{
- form->checkDocumentInput( headsepED );
-}
-/*
- * public slot
- */
-void FormDocumentDialog::slotHeight(const QString&)
-{
- form->checkDocumentInput( customHeightED );
-}
-/*
- * public slot
- */
-void FormDocumentDialog::slotLanguage(int)
-{
- form->checkChoiceClass( languageCO );
- form->checkDocumentInput( languageCO );
-}
-/*
- * public slot
- */
-void FormDocumentDialog::slotBulletLaTeX(const QString&)
-{
- form->inputBulletLaTeX();
- form->checkDocumentInput( latexED );
-}
-/*
- * public slot
- */
-void FormDocumentDialog::slotMarginBottom(const QString&)
-{
- form->checkDocumentInput( marginBottomED );
-}
-/*
- * public slot
- */
-void FormDocumentDialog::slotMarginLeft(const QString&)
-{
- form->checkDocumentInput( marginLeftED );
-}
-/*
- * public slot
- */
-void FormDocumentDialog::slotMarginRight(const QString&)
-{
- form->checkDocumentInput( marginRightED );
-}
-/*
- * public slot
- */
-void FormDocumentDialog::slotMarginTop(const QString&)
-{
- form->checkDocumentInput( marginTopED );
-}
-/*
- * public slot
- */
-void FormDocumentDialog::slotOK()
-{
- form->apply();
- form->hide();
- // PENDING(kalle) Do something about this.
- // form->bc_->ok();
-}
-/*
- * public slot
- */
-void FormDocumentDialog::slotOrientation(int)
-{
- form->checkDocumentInput( orientationBG );
-}
-/*
- * public slot
- */
-void FormDocumentDialog::slotPSDriver(int)
-{
- form->checkChoiceClass( psDriverCO );
- form->checkDocumentInput( psDriverCO );
-}
-/*
- * public slot
- */
-void FormDocumentDialog::slotPageStyle(int)
-{
- form->checkChoiceClass( pagestyleCO );
- form->checkDocumentInput( pagestyleCO );
-}
-/*
- * public slot
- */
-void FormDocumentDialog::slotPapersize(int)
-{
- form->checkChoiceClass( pagestyleCO );
- form->checkDocumentInput( papersizeCO );
-}
-/*
- * public slot
- */
-void FormDocumentDialog::slotQuoteStyle(int)
-{
- form->checkChoiceClass( quoteStyleTypeCO );
- form->checkDocumentInput( quoteStyleTypeCO );
-}
-/*
- * public slot
- */
-void FormDocumentDialog::slotQuoteType(int)
-{
- // Intentionally left blank
-}
-/*
- * public slot
- */
-void FormDocumentDialog::slotRestore()
-{
- form->update();
- // PENDING(kalle) Do something about this.
- // form->bc_->updateAll();
-}
-/*
- * public slot
- */
-void FormDocumentDialog::slotSectionNumberDepth(int)
-{
- form->checkDocumentInput( sectionNumberDepthSB );
-}
-/*
- * public slot
- */
-void FormDocumentDialog::slotSeparation(int)
-{
- form->checkDocumentInput( separationBG );
-}
-/*
- * public slot
- */
-void FormDocumentDialog::slotSides(int)
-{
- form->checkDocumentInput( sidesBG );
-}
-/*
- * public slot
- */
-void FormDocumentDialog::slotSpacing(const QString&)
-{
- form->checkDocumentInput( spacingED );
-}
-/*
- * public slot
- */
-void FormDocumentDialog::slotSpacing(int)
-{
- form->checkDocumentInput( spacingCO );
- form->checkDocumentInput( spacingCO );
-}
-/*
- * public slot
- */
-void FormDocumentDialog::slotSpecialPaperPackage(int)
-{
- form->checkChoiceClass( specialCO );
- form->checkDocumentInput( specialCO );
-}
-/*
- * public slot
- */
-void FormDocumentDialog::slotTOCDepth(int)
-{
- form->checkDocumentInput( tocDepthSB );
-}
-/*
- * public slot
- */
-void FormDocumentDialog::slotUseGeometryPackage(bool)
-{
- form->checkDocumentInput( CheckBox1 );
-}
-/*
- * public slot
- */
-void FormDocumentDialog::slotWidth(const QString&)
-{
- form->checkDocumentInput( customWidthED );
-}
-
-
-void FormDocumentDialog::closeEvent( QCloseEvent* e )
-{
- form->hide();
- //PENDING(kalle) Do something about this.
- // form->bc_->hide();
- e->accept();
-}
+++ /dev/null
-#ifndef FORMDOCUMENTDIALOGIMPL_H
-#define FORMDOCUMENTDIALOGIMPL_H
-#include "FormDocumentDialog.h"
-
-class FormDocument;
-
-class FormDocumentDialogImpl : public FormDocumentDialog
-{
- Q_OBJECT
-
-public:
- FormDocumentDialogImpl( FormDocument* form, QWidget* parent = 0, const char* name = 0, bool modal = FALSE, WFlags fl = 0 );
- ~FormDocumentDialogImpl();
-
-public slots:
- void slotApply();
- void slotBulletLaTeX(const QString&);
- void slotAMSMath(bool);
- void slotBulletDepth1();
- void slotBulletDepth2();
- void slotBulletDepth3();
- void slotBulletDepth4();
- void slotBulletDing1();
- void slotBulletDing2();
- void slotBulletDing3();
- void slotBulletDing4();
- void slotBulletMaths();
- void slotBulletSize(int);
- void slotBulletStandard();
- void slotBulletSymbol(int);
- void slotClass(int);
- void slotClose();
- void slotColumns(int);
- void slotDefaultSkip(const QString&);
- void slotDefaultSkip(int);
- void slotEncoding(int);
- void slotExtraOptions(const QString&);
- void slotFloatPlacement(const QString&);
- void slotFont(int);
- void slotFontSize(int);
- void slotFootskip(const QString&);
- void slotHeadheight(const QString&);
- void slotHeadsep(const QString&);
- void slotHeight(const QString&);
- void slotLanguage(int);
- void slotMarginBottom(const QString&);
- void slotMarginLeft(const QString&);
- void slotMarginRight(const QString&);
- void slotMarginTop(const QString&);
- void slotOK();
- void slotOrientation(int);
- void slotPSDriver(int);
- void slotPageStyle(int);
- void slotPapersize(int);
- void slotQuoteStyle(int);
- void slotQuoteType(int);
- void slotRestore();
- void slotSectionNumberDepth(int);
- void slotSeparation(int);
- void slotSides(int);
- void slotSpacing(const QString&);
- void slotSpacing(int);
- void slotSpecialPaperPackage(int);
- void slotTOCDepth(int);
- void slotUseGeometryPackage(bool);
- void slotWidth(const QString&);
-
-protected:
- void closeEvent( QCloseEvent* );
-
-private:
- FormDocument* form;
- QToolButton* bulletbuttons[36];
-};
-
-#endif // FORMDOCUMENTDIALOG_H
+++ /dev/null
-/*
- * FormIndex.C
- * (C) 2000 LyX Team
- * John Levon, moz@compsoc.man.ac.uk
- */
-
-/***************************************************************************
- * *
- * This program is free software; you can redistribute it and/or modify *
- * it under the terms of the GNU General Public License as published by *
- * the Free Software Foundation; either version 2 of the License, or *
- * (at your option) any later version. *
- * *
- ***************************************************************************/
-
-#include <config.h>
-
-#include "FormIndexDialog.h"
-#undef emit
-
-#include "Dialogs.h"
-#include "FormIndex.h"
-#include "gettext.h"
-#include "buffer.h"
-#include "LyXView.h"
-#include "lyxfunc.h"
-
-#include <qlineedit.h>
-#include <qpushbutton.h>
-
-FormIndex::FormIndex(LyXView *v, Dialogs *d)
- : dialog_(0), lv_(v), d_(d), inset_(0), h_(0), u_(0), ih_(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->showIndex.connect(slot(this, &FormIndex::showIndex));
- d->createIndex.connect(slot(this, &FormIndex::createIndex));
-}
-
-FormIndex::~FormIndex()
-{
- delete dialog_;
-}
-
-void FormIndex::showIndex(InsetCommand * const inset)
-{
- // FIXME: when could inset be 0 here ?
- if (inset==0)
- return;
-
- inset_ = inset;
- readonly = lv_->buffer()->isReadonly();
- ih_ = inset_->hide.connect(slot(this,&FormIndex::hide));
- params = inset->params();
-
- show();
-}
-
-void FormIndex::createIndex(string const & arg)
-{
- // we could already be showing a URL, clear it out
- if (inset_)
- close();
-
- readonly = lv_->buffer()->isReadonly();
- params.setFromString(arg);
- show();
-}
-
-void FormIndex::update()
-{
- dialog_->keywordED->setText(params.getContents().c_str());
-
- if (readonly) {
- dialog_->keywordED->setFocusPolicy(QWidget::NoFocus);
- dialog_->okPB->setEnabled(false);
- dialog_->cancelPB->setText(_("Close"));
- } else {
- dialog_->keywordED->setFocusPolicy(QWidget::StrongFocus);
- dialog_->keywordED->setFocus();
- dialog_->okPB->setEnabled(true);
- dialog_->cancelPB->setText(_("Cancel"));
- }
-}
-
-void FormIndex::apply()
-{
- if (readonly)
- return;
-
- params.setContents(dialog_->keywordED->text().latin1());
-
- if (inset_ != 0) {
- if (params != inset_->params()) {
- inset_->setParams(params);
- lv_->view()->updateInset(inset_, true);
- }
- } else
- lv_->getLyXFunc()->Dispatch(LFUN_INDEX_INSERT, params.getAsString().c_str());
-}
-
-void FormIndex::show()
-{
- if (!dialog_)
- dialog_ = new FormIndexDialog(this, 0, _("LyX: Index"), false);
-
- if (!dialog_->isVisible()) {
- h_ = d_->hideBufferDependent.connect(slot(this, &FormIndex::hide));
- u_ = d_->updateBufferDependent.connect(slot(this, &FormIndex::update));
- }
-
- dialog_->raise();
- dialog_->setActiveWindow();
-
- update();
- dialog_->show();
-}
-
-void FormIndex::close()
-{
- h_.disconnect();
- u_.disconnect();
- ih_.disconnect();
- inset_ = 0;
-}
-
-void FormIndex::hide()
-{
- dialog_->hide();
- close();
-}
+++ /dev/null
-// -*- C++ -*-
-/* FormIndex.h
- * (C) 2000 LyX Team
- * John Levon, moz@compsoc.man.ac.uk
- * Adapted for Qt2 frontend by Kalle Dalheimer,
- * kalle@klaralvdalens-datakonsult.se
- */
-
-/***************************************************************************
- * *
- * 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 FORMINDEX_H
-#define FORMINDEX_H
-
-#include "DialogBase.h"
-#include "LString.h"
-#include "boost/utility.hpp"
-#include "insets/insetindex.h"
-
-class Dialogs;
-class LyXView;
-class FormIndexDialog;
-
-class FormIndex : public DialogBase {
-public:
- /**@name Constructors and Destructors */
- //@{
- ///
- FormIndex(LyXView *, Dialogs *);
- ///
- ~FormIndex();
- //@}
-
- /// Apply changes
- void apply();
- /// close the connections
- void close();
-
-private:
- /// Create the dialog if necessary, update it and display it.
- void show();
- /// Hide the dialog.
- void hide();
- /// Update the dialog.
- void update();
-
- /// create an Index inset
- void createIndex(string const &);
- /// edit an Index inset
- void showIndex(InsetCommand * const);
-
- /// Real GUI implementation.
- FormIndexDialog * dialog_;
-
- /// the LyXView we belong to
- LyXView * lv_;
-
- /** Which Dialogs do we belong to?
- Used so we can get at the signals we have to connect to.
- */
- Dialogs * d_;
- /// pointer to the inset if any
- InsetCommand * inset_;
- /// insets params
- InsetCommandParams params;
- /// is the inset we are reading from a readonly buffer ?
- bool readonly;
-
- /// Hide connection.
- Connection h_;
- /// Update connection.
- Connection u_;
- /// Inset hide connection.
- Connection ih_;
-};
-
-#endif
+++ /dev/null
-#include "FormIndexDialog.h"
-#include "Dialogs.h"
-#include "FormIndex.h"
-
-/*
- * Constructs a FormIndexDialog which is a child of 'parent', with the
- * name 'name' and widget flags set to 'f'
- *
- * The dialog will by default be modeless, unless you set 'modal' to
- * TRUE to construct a modal dialog.
- */
-FormIndexDialog::FormIndexDialog( FormIndex* form_, QWidget* parent, const char* name, bool modal, WFlags fl )
- : FormIndexDialogBase( parent, name, modal, fl ),
- form( form_ )
-{
-}
-
-/*
- * Destroys the object and frees any allocated resources
- */
-FormIndexDialog::~FormIndexDialog()
-{
- // no need to delete child widgets, Qt does it all for us
-}
-
-
-void FormIndexDialog::apply_adaptor()
-{
- form->apply();
- form->close();
- hide();
-}
-
-
-void FormIndexDialog::close_adaptor()
-{
- form->close();
- hide();
-}
-
-
-void FormIndexDialog::closeEvent(QCloseEvent *e)
-{
- form->close();
- e->accept();
-}
+++ /dev/null
-#ifndef FORMINDEXDIALOG_H
-#define FORMINDEXDIALOG_H
-#include "FormIndexDialogBase.h"
-
-class FormIndex;
-
-class FormIndexDialog : public FormIndexDialogBase
-{
- Q_OBJECT
-
-public:
- FormIndexDialog( FormIndex* form, QWidget* parent = 0, const char* name = 0, bool modal = FALSE, WFlags fl = 0 );
- ~FormIndexDialog();
-
-public slots:
- void apply_adaptor();
- void close_adaptor();
-
-protected:
- void closeEvent(QCloseEvent *e);
-
-private:
- FormIndex* form;
-};
-
-#endif // FORMINDEXDIALOG_H
+++ /dev/null
-<!DOCTYPE UI><UI>
-<class>FormIndexDialogBase</class>
-<widget>
- <class>QDialog</class>
- <property stdset="1">
- <name>name</name>
- <cstring>FormIndexDialogBase</cstring>
- </property>
- <property stdset="1">
- <name>geometry</name>
- <rect>
- <x>0</x>
- <y>0</y>
- <width>216</width>
- <height>82</height>
- </rect>
- </property>
- <property stdset="1">
- <name>caption</name>
- <string>Index</string>
- </property>
- <vbox>
- <property stdset="1">
- <name>margin</name>
- <number>11</number>
- </property>
- <property stdset="1">
- <name>spacing</name>
- <number>6</number>
- </property>
- <widget>
- <class>QLayoutWidget</class>
- <property stdset="1">
- <name>name</name>
- <cstring>Layout28</cstring>
- </property>
- <hbox>
- <property stdset="1">
- <name>margin</name>
- <number>0</number>
- </property>
- <property stdset="1">
- <name>spacing</name>
- <number>6</number>
- </property>
- <widget>
- <class>QLabel</class>
- <property stdset="1">
- <name>name</name>
- <cstring>keywordLA</cstring>
- </property>
- <property stdset="1">
- <name>text</name>
- <string>&Keyword</string>
- </property>
- <property>
- <name>buddy</name>
- <cstring>keywordED</cstring>
- </property>
- <property>
- <name>toolTip</name>
- <string>Index entry</string>
- </property>
- </widget>
- <widget>
- <class>QLineEdit</class>
- <property stdset="1">
- <name>name</name>
- <cstring>keywordED</cstring>
- </property>
- <property>
- <name>toolTip</name>
- <string>Index entry</string>
- </property>
- </widget>
- </hbox>
- </widget>
- <widget>
- <class>QLayoutWidget</class>
- <property stdset="1">
- <name>name</name>
- <cstring>Layout27</cstring>
- </property>
- <hbox>
- <property stdset="1">
- <name>margin</name>
- <number>0</number>
- </property>
- <property stdset="1">
- <name>spacing</name>
- <number>6</number>
- </property>
- <spacer>
- <property>
- <name>name</name>
- <cstring>Spacer3</cstring>
- </property>
- <property stdset="1">
- <name>orientation</name>
- <enum>Horizontal</enum>
- </property>
- <property stdset="1">
- <name>sizeType</name>
- <enum>Expanding</enum>
- </property>
- <property>
- <name>sizeHint</name>
- <size>
- <width>20</width>
- <height>20</height>
- </size>
- </property>
- </spacer>
- <widget>
- <class>QPushButton</class>
- <property stdset="1">
- <name>name</name>
- <cstring>okPB</cstring>
- </property>
- <property stdset="1">
- <name>text</name>
- <string>OK</string>
- </property>
- <property stdset="1">
- <name>default</name>
- <bool>true</bool>
- </property>
- </widget>
- <widget>
- <class>QPushButton</class>
- <property stdset="1">
- <name>name</name>
- <cstring>cancelPB</cstring>
- </property>
- <property stdset="1">
- <name>text</name>
- <string>Cancel</string>
- </property>
- </widget>
- </hbox>
- </widget>
- </vbox>
-</widget>
-<connections>
- <connection>
- <sender>okPB</sender>
- <signal>clicked()</signal>
- <receiver>FormIndexDialogBase</receiver>
- <slot>apply_adaptor()</slot>
- </connection>
- <connection>
- <sender>cancelPB</sender>
- <signal>clicked()</signal>
- <receiver>FormIndexDialogBase</receiver>
- <slot>close_adaptor()</slot>
- </connection>
- <slot access="public">apply_adaptor()</slot>
- <slot access="public">close_adaptor()</slot>
-</connections>
-</UI>
+++ /dev/null
-/**
- * \file FormParagraph.C
- * Copyright 2001 LyX Team
- * see the file COPYING
- *
- * \author John Levon, moz@compsoc.man.ac.uk
- */
-
-#include <config.h>
-
-#include "paragraphdlgimpl.h"
-
-#include "FormParagraph.h"
-#include "Dialogs.h"
-#include "Liason.h"
-#include "gettext.h"
-#include "buffer.h"
-#include "QtLyXView.h"
-#include "lyxtext.h"
-#include "debug.h"
-#include "BufferView.h"
-#include "ParagraphParameters.h"
-
-using SigC::slot;
-using Liason::setMinibuffer;
-using std::endl;
-
-
-FormParagraph::FormParagraph(LyXView *v, Dialogs *d)
- : dialog_(0), lv_(v), d_(d), h_(0)
-{
- // let the dialog be shown
- // This is a permanent connection so we won't bother
- // storing a copy because we won't be disconnecting.
- d->showParagraph.connect(slot(this, &FormParagraph::show));
-}
-
-
-FormParagraph::~FormParagraph()
-{
- delete dialog_;
-}
-
-
-void FormParagraph::update(bool switched)
-{
- if (switched) {
- hide();
- return;
- }
-
- if (!lv_->view()->available())
- return;
-
- Buffer * buf = lv_->view()->buffer();
-
- if (readonly!=buf->isReadonly()) {
- readonly = buf->isReadonly();
- dialog_->setReadOnly(readonly);
- }
-
- LyXText * text = 0;
-
- if (lv_->view()->theLockingInset())
- text = lv_->view()->theLockingInset()->getLyXText(lv_->view());
-
- if (!text)
- text = lv_->view()->text;
-
- Paragraph * par = text->cursor.par();
-
- int align = par->getAlign();
-
- if (align==LYX_ALIGN_LAYOUT)
- align = textclasslist.Style(buf->params.textclass, par->getLayout()).align;
-
- ParagraphParameters * params = &(par->params());
-
- if (params->spaceTop().kind() == VSpace::LENGTH) {
- LyXGlueLength above = params->spaceTop().length();
- lyxerr[Debug::GUI] << "Reading above space : \"" << params->spaceTop().length().asString() << "\"" << endl;
- dialog_->setAboveLength(above.value(), above.plusValue(), above.minusValue(),
- above.unit(), above.plusUnit(), above.minusUnit());
- } else
- dialog_->setAboveLength(0.0, 0.0, 0.0, LyXLength::UNIT_NONE, LyXLength::UNIT_NONE, LyXLength::UNIT_NONE);
-
- if (params->spaceBottom().kind() == VSpace::LENGTH) {
- LyXGlueLength below = params->spaceBottom().length();
- lyxerr[Debug::GUI] << "Reading below space : \"" << params->spaceBottom().length().asString() << "\"" << endl;
- dialog_->setBelowLength(below.value(), below.plusValue(), below.minusValue(),
- below.unit(), below.plusUnit(), below.minusUnit());
- } else
- dialog_->setBelowLength(0.0, 0.0, 0.0, LyXLength::UNIT_NONE, LyXLength::UNIT_NONE, LyXLength::UNIT_NONE);
-
- dialog_->setLabelWidth(text->cursor.par()->getLabelWidthString().c_str());
- dialog_->setAlign(align);
- dialog_->setChecks(params->lineTop(), params->lineBottom(),
- params->pagebreakTop(), params->pagebreakBottom(), params->noindent());
- dialog_->setSpace(params->spaceTop().kind(), params->spaceBottom().kind(),
- params->spaceTop().keep(), params->spaceBottom().keep());
-
- // now the extras page
-
- LyXLength extrawidth;
- float val = 0.0;
- LyXLength::UNIT unit = LyXLength::CM;
- params = &(par->params());
- if (isValidLength(params->pextraWidth(), &extrawidth)) {
- lyxerr[Debug::GUI] << "Reading extra width \"" << extrawidth.asString() << "\"" << endl;
- val = extrawidth.value();
- unit = extrawidth.unit();
- }
-
- lyxerr[Debug::GUI] << "Reading widthp \"" << params->pextraWidthp() << "\"" << endl;
-
- dialog_->setExtra(val, unit, params->pextraWidthp(),
- params->pextraAlignment(),
- params->pextraHfill(),
- params->pextraStartMinipage(),
- static_cast<Paragraph::PEXTRA_TYPE>(params->pextraType()));
-}
-
-
-void FormParagraph::apply()
-{
- if (readonly)
- return;
-
- VSpace spaceabove;
- VSpace spacebelow;
-
- if (dialog_->getSpaceAboveKind()==VSpace::LENGTH)
- spaceabove = VSpace(dialog_->getAboveLength());
- else
- spaceabove = VSpace(dialog_->getSpaceAboveKind());
-
- if (dialog_->getSpaceBelowKind()==VSpace::LENGTH)
- spacebelow = VSpace(dialog_->getBelowLength());
- else
- spacebelow = VSpace(dialog_->getSpaceBelowKind());
-
- spaceabove.setKeep(dialog_->getAboveKeep());
- spacebelow.setKeep(dialog_->getBelowKeep());
-
- lyxerr[Debug::GUI] << "Setting above space \"" << LyXGlueLength(spaceabove.length().asString()).asString() << "\"" << endl;
- lyxerr[Debug::GUI] << "Setting below space \"" << LyXGlueLength(spacebelow.length().asString()).asString() << "\"" << endl;
-
- lv_->view()->text->setParagraph(lv_->view(),
- dialog_->getLineAbove(), dialog_->getLineBelow(),
- dialog_->getPagebreakAbove(), dialog_->getPagebreakBelow(),
- spaceabove, spacebelow, dialog_->getAlign(),
- dialog_->getLabelWidth(), dialog_->getNoIndent());
-
- // extra stuff
-
- string width("");
- string widthp("");
-
- LyXLength extrawidth(dialog_->getExtraWidth());
- if (extrawidth.unit()==LyXLength::UNIT_NONE) {
- widthp = dialog_->getExtraWidthPercent();
- } else
- width = extrawidth.asString();
-
- lyxerr[Debug::GUI] << "Setting extrawidth \"" << width << "\"" << endl;
- lyxerr[Debug::GUI] << "Setting percent extrawidth \"" << widthp << "\"" << endl;
-
- lv_->view()->update(lv_->view()->text,
- BufferView::SELECT |
- BufferView::FITCUR |
- BufferView::CHANGE);
-
- lv_->buffer()->markDirty();
- setMinibuffer(lv_, _("Paragraph layout set"));
-}
-
-
-void FormParagraph::show()
-{
- if (!dialog_)
- dialog_ = new ParagraphDlgImpl(this, 0,
- _("LyX: Paragraph Options"),
- false);
-
- if (!dialog_->isVisible())
- h_ = d_->hideBufferDependent
- .connect(slot(this, &FormParagraph::hide));
-
- dialog_->raise();
- dialog_->setActiveWindow();
- update();
-
- dialog_->show();
-}
-
-
-void FormParagraph::close()
-{
- h_.disconnect();
-}
-
-
-void FormParagraph::hide()
-{
- dialog_->hide();
- close();
-}
+++ /dev/null
-// -*- C++ -*-
-/**
- * \file FormParagraph.h
- * Copyright 2001 LyX Team
- * see the file COPYING
- *
- * \author John Levon, moz@compsoc.man.ac.uk
- */
-
-#ifndef FORMPARAGRAPH_H
-#define FORMPARAGRAPH_H
-
-#include "DialogBase.h"
-#include "LString.h"
-#include "boost/utility.hpp"
-
-class Dialogs;
-class LyXView;
-class ParagraphDlgImpl;
-
-class FormParagraph : public DialogBase {
-public:
- /**@name Constructors and Destructors */
- //@{
- ///
- FormParagraph(LyXView *, Dialogs *);
- ///
- ~FormParagraph();
- //@}
-
- /// Apply changes
- void apply();
- /// Update the dialog.
- void update(bool switched = false);
- /// Close the connections
- void close();
-
-private:
- /// Create the dialog if necessary, update it and display it.
- void show();
- /// Hide the dialog.
- void hide();
-
- /// Real GUI implementation.
- ParagraphDlgImpl * dialog_;
-
- /// the LyXView we belong to
- LyXView * lv_;
-
- /// Used so we can get at the signals we have to connect to.
- Dialogs * d_;
-
- /// Hide connection.
- SigC::Connection h_;
-
- /// readonly file or not
- bool readonly;
-};
-
-#endif
+++ /dev/null
-/**
- * \file FormPrint.C
- * Copyright 2001 LyX Team
- * see the file COPYING
- *
- * \author John Levon, moz@compsoc.man.ac.uk
- */
-
-#include <config.h>
-
-#include "printdlgimpl.h"
-#include "FormPrint.h"
-#include "Dialogs.h"
-#include "gettext.h"
-#include "buffer.h"
-#include "lyxrc.h"
-#include "QtLyXView.h"
-
-#include "PrinterParams.h"
-#include "Liason.h"
-#include "BufferView.h"
-#include "support/lstrings.h"
-#include "qmessagebox.h"
-
-using Liason::printBuffer;
-using Liason::getPrinterParams;
-using std::max;
-
-FormPrint::FormPrint(LyXView *v, Dialogs *d)
- : dialog_(0), lv_(v), d_(d), h_(0), u_(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->showPrint.connect(SigC::slot(this, &FormPrint::show));
-}
-
-FormPrint::~FormPrint()
-{
- delete dialog_;
-}
-
-// we can safely ignore the parameter because we can always update
-void FormPrint::update(bool)
-{
- if (!lv_->view()->available())
- return;
-
- PrinterParams pp(getPrinterParams(lv_->buffer()));
-
- dialog_->setTarget(pp.target);
- dialog_->setPrinter(pp.printer_name.c_str());
- dialog_->setFile(pp.file_name.c_str());
- dialog_->setWhichPages(pp.which_pages);
- dialog_->setReverse(pp.reverse_order);
- dialog_->setSort(pp.unsorted_copies);
- dialog_->setCount(pp.count_copies);
-
- if (!pp.from_page.empty()) {
- dialog_->setFrom(pp.from_page.c_str());
- if (pp.to_page)
- dialog_->setTo(tostr(pp.to_page).c_str());
- else
- dialog_->setTo("");
- } else {
- dialog_->setFrom("");
- dialog_->setTo("");
- }
-}
-
-void FormPrint::print()
-{
- if (!lv_->view()->available())
- return;
-
- string from;
- int to(0);
-
- if (strlen(dialog_->getFrom())) {
- from = dialog_->getFrom();
- if (strlen(dialog_->getTo()))
- to = strToInt(dialog_->getTo());
- }
-
- int retval = printBuffer(lv_->buffer(), PrinterParams(dialog_->getTarget(),
- string(dialog_->getPrinter()), string(dialog_->getFile()),
- dialog_->getWhichPages(), from, to, dialog_->getReverse(),
- dialog_->getSort(), max(strToInt(dialog_->getCount()),1)));
-
- if (!retval) {
- // FIXME: should have a utility class for this
- string message(_("An error occured while printing.\n\n"));
- message += _("Check the parameters are correct.\n");
- QMessageBox msg( _("LyX: Print Error"), message.c_str(), QMessageBox::Warning, 1,0,0);
- msg.raise();
- msg.setActiveWindow();
- msg.show();
- }
-}
-
-void FormPrint::show()
-{
- if (!dialog_)
- dialog_ = new PrintDlgImpl(this, 0, _("LyX: Print"));
-
- if (!dialog_->isVisible()) {
- h_ = d_->hideBufferDependent.connect(SigC::slot(this, &FormPrint::hide));
- u_ = d_->updateBufferDependent.connect(SigC::slot(this, &FormPrint::update));
- }
-
- dialog_->raise();
- dialog_->setActiveWindow();
-
- update();
- dialog_->show();
-}
-
-void FormPrint::close()
-{
- h_.disconnect();
- u_.disconnect();
-}
-
-void FormPrint::hide()
-{
- dialog_->hide();
- close();
-}
+++ /dev/null
-// -*- C++ -*-
-/**
- * \file FormPrint.h
- * Copyright 2001 LyX Team
- * see the file COPYING
- *
- * \author John Levon, moz@compsoc.man.ac.uk
- */
-#ifndef FORMPRINT_H
-#define FORMPRINT_H
-
-#include "DialogBase.h"
-#include "boost/utility.hpp"
-
-class Dialogs;
-class LyXView;
-class PrintDlgImpl;
-
-class FormPrint : public DialogBase {
-public:
- /**@name Constructors and Destructors */
- //@{
- ///
- FormPrint(LyXView *, Dialogs *);
- ///
- ~FormPrint();
- //@}
-
- /// start print
- void print();
- /// close
- void close();
-
-private:
- /// Create the dialog if necessary, update it and display it.
- void show();
- /// Hide the dialog.
- void hide();
- /// Update the dialog.
- void update(bool = false);
-
- /// Real GUI implementation.
- PrintDlgImpl * dialog_;
-
- /// the LyXView we belong to
- LyXView * lv_;
-
- /** Which Dialogs do we belong to?
- Used so we can get at the signals we have to connect to.
- */
- Dialogs * d_;
-
- /// Hide connection.
- SigC::Connection h_;
- /// Update connection.
- SigC::Connection u_;
-};
-
-#endif
+++ /dev/null
-/*
- * FormRef.C
- * (C) 2000 LyX Team
- * John Levon, moz@compsoc.man.ac.uk
- */
-
-/***************************************************************************
- * *
- * This program is free software; you can redistribute it and/or modify *
- * it under the terms of the GNU General Public License as published by *
- * the Free Software Foundation; either version 2 of the License, or *
- * (at your option) any later version. *
- * *
- ***************************************************************************/
-
-#include <config.h>
-
-#include "FormRefDialog.h"
-#undef emit
-
-#include "Dialogs.h"
-#include "FormRef.h"
-#include "gettext.h"
-#include "buffer.h"
-#include "LyXView.h"
-#include "lyxfunc.h"
-#include "debug.h"
-
-#include <qpushbutton.h>
-#include <qlineedit.h>
-#include <qlistbox.h>
-#include <qcombobox.h>
-#include <qcheckbox.h>
-
-using std::endl;
-
-FormRef::FormRef(LyXView *v, Dialogs *d)
- : dialog_(0), lv_(v), d_(d), inset_(0), h_(0), u_(0), ih_(0),
- sort(0), gotowhere(GOTOREF), type(REF), refs(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->showRef.connect(slot(this, &FormRef::showRef));
- d->createRef.connect(slot(this, &FormRef::createRef));
-}
-
-FormRef::~FormRef()
-{
- delete dialog_;
-}
-
-void FormRef::showRef(InsetCommand * const inset)
-{
- // FIXME: when could inset be 0 here ?
- if (inset==0)
- return;
-
- inset_ = inset;
- readonly = lv_->buffer()->isReadonly();
- ih_ = inset_->hide.connect(slot(this,&FormRef::hide));
- params = inset->params();
-
- show();
-}
-
-void FormRef::createRef(string const & arg)
-{
- if (inset_)
- close();
-
- readonly = lv_->buffer()->isReadonly();
- params.setFromString(arg);
- show();
-}
-
-void FormRef::select(const char *text)
-{
- highlight(text);
- goto_ref();
-}
-
-void FormRef::highlight(const char *text)
-{
- if (gotowhere==GOTOBACK)
- goto_ref();
-
- dialog_->gotoPB->setEnabled(true);
- if (!readonly) {
- dialog_->typeCO->setEnabled(true);
- dialog_->referenceED->setText(text);
- dialog_->okPB->setEnabled(true);
- }
-}
-
-void FormRef::set_sort(bool on)
-{
- if (on!=sort) {
- sort=on;
- dialog_->refsLB->clear();
- updateRefs();
- }
-}
-
-void FormRef::goto_ref()
-{
- switch (gotowhere) {
- case GOTOREF:
- lv_->getLyXFunc()->Dispatch(LFUN_REF_GOTO, dialog_->referenceED->text().latin1());
- gotowhere=GOTOBACK;
- dialog_->gotoPB->setText(_("&Go back"));
- break;
- case GOTOBACK:
- lv_->getLyXFunc()->Dispatch(LFUN_REF_BACK);
- gotowhere=GOTOREF;
- dialog_->gotoPB->setText(_("&Goto reference"));
- break;
- }
-}
-
-void FormRef::updateRefs()
-{
- // list will be re-done, should go back if necessary
- if (gotowhere==GOTOBACK) {
- lv_->getLyXFunc()->Dispatch(LFUN_REF_BACK);
- gotowhere = GOTOREF;
- dialog_->gotoPB->setText(_("&Goto reference"));
- }
-
- dialog_->refsLB->setAutoUpdate(false);
-
- // need this because Qt will send a highlight() here for
- // the first item inserted
- string tmp(dialog_->referenceED->text());
-
- for (vector< string >::const_iterator iter = refs.begin();
- iter != refs.end(); ++iter) {
- if (sort)
- dialog_->refsLB->inSort(iter->c_str());
- else
- dialog_->refsLB->insertItem(iter->c_str());
- }
-
- dialog_->referenceED->setText(tmp.c_str());
-
- for (unsigned int i = 0; i < dialog_->refsLB->count(); ++i) {
- if (!strcmp(dialog_->referenceED->text(),dialog_->refsLB->text(i)))
- dialog_->refsLB->setCurrentItem(i);
- }
-
- dialog_->refsLB->setAutoUpdate(true);
- dialog_->refsLB->update();
-}
-
-void FormRef::do_ref_update()
-{
- refs.clear();
- dialog_->refsLB->clear();
- refs = lv_->buffer()->getLabelList();
- if (!refs.empty())
- dialog_->sortCB->setEnabled(true);
- updateRefs();
-}
-
-void FormRef::update()
-{
- dialog_->referenceED->setText(params.getContents().c_str());
- dialog_->nameED->setText(params.getOptions().c_str());
-
- if (params.getCmdName()=="pageref") {
- type = PAGEREF;
- dialog_->typeCO->setCurrentItem(1);
- } else if (params.getCmdName()=="vref") {
- type = VREF;
- dialog_->typeCO->setCurrentItem(2);
- } else if (params.getCmdName()=="vpageref") {
- type = VPAGEREF;
- dialog_->typeCO->setCurrentItem(3);
- } else if (params.getCmdName()=="prettyref") {
- type = PRETTYREF;
- dialog_->typeCO->setCurrentItem(4);
- } else {
- type = REF;
- dialog_->typeCO->setCurrentItem(0);
- }
-
- dialog_->gotoPB->setText(_("&Goto reference"));
-
- gotowhere = GOTOREF;
-
- dialog_->sortCB->setChecked(sort);
-
- do_ref_update();
-
- dialog_->gotoPB->setEnabled(params.getContents()!="");
- dialog_->okPB->setEnabled(params.getContents()!="");
-
- dialog_->typeCO->setEnabled(!readonly);
- dialog_->sortCB->setEnabled(!readonly);
- dialog_->refsLB->setEnabled(!readonly);
- dialog_->okPB->setEnabled(!readonly);
- dialog_->updatePB->setEnabled(!readonly);
- if (readonly)
- dialog_->cancelPB->setText(_("&Close"));
- else
- dialog_->cancelPB->setText(_("&Cancel"));
-}
-
-void FormRef::apply()
-{
- if (readonly)
- return;
-
- if (!lv_->view()->available())
- return;
-
- switch (dialog_->typeCO->currentItem()) {
- case 0:
- params.setCmdName("ref");
- break;
- case 1:
- params.setCmdName("pageref");
- break;
- case 2:
- params.setCmdName("vref");
- break;
- case 3:
- params.setCmdName("vpageref");
- break;
- case 4:
- params.setCmdName("prettyref");
- break;
- default:
- lyxerr[Debug::GUI] << "Unknown Ref Type" << endl;
- }
-
- params.setContents(dialog_->referenceED->text().latin1());
- params.setOptions(dialog_->nameED->text().latin1());
-
- if (inset_ != 0) {
- if (params != inset_->params()) {
- inset_->setParams(params);
- lv_->view()->updateInset(inset_, true);
- }
- } else
- lv_->getLyXFunc()->Dispatch(LFUN_REF_INSERT, params.getAsString().c_str());
-}
-
-void FormRef::show()
-{
- if (!dialog_)
- dialog_ = new FormRefDialog(this, 0, _("LyX: Cross Reference"), false);
-
- if (!dialog_->isVisible()) {
- h_ = d_->hideBufferDependent.connect(slot(this, &FormRef::hide));
- u_ = d_->updateBufferDependent.connect(slot(this, &FormRef::update));
- }
-
- dialog_->raise();
- dialog_->setActiveWindow();
-
- update();
- dialog_->show();
-}
-
-void FormRef::close()
-{
- h_.disconnect();
- u_.disconnect();
- ih_.disconnect();
- inset_ = 0;
-}
-
-void FormRef::hide()
-{
- dialog_->hide();
- close();
-}
+++ /dev/null
-// -*- C++ -*-
-/* FormRef.h
- * (C) 2000 LyX Team
- * John Levon, moz@compsoc.man.ac.uk
- * Adapted for Qt2 frontend by Kalle Dalheimer,
- * kalle@klaralvdalens-datakonsult.se
- */
-
-/***************************************************************************
- * *
- * 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 FORMREF_H
-#define FORMREF_H
-
-#include "DialogBase.h"
-#include "LString.h"
-#include "boost/utility.hpp"
-#include "insets/insetcommand.h"
-
-class Dialogs;
-class LyXView;
-class FormRefDialog;
-
-class FormRef : public DialogBase {
-public:
- /**@name Constructors and Destructors */
- //@{
- ///
- FormRef(LyXView *, Dialogs *);
- ///
- ~FormRef();
- //@}
-
- /// double-click a ref
- void select(const char *);
- /// highlight a ref
- void highlight(const char *);
- /// set sort
- void set_sort(bool);
- /// goto a ref (or back)
- void goto_ref();
- /// update dialog
- void update();
- /// update just the refs
- void do_ref_update();
- /// Apply changes
- void apply();
- /// close the connections
- void close();
-
-private:
- enum Type {
- REF, PAGEREF, VREF, VPAGEREF, PRETTYREF
- };
-
- enum GotoType {
- GOTOREF, GOTOBACK
- };
-
- /// Create the dialog if necessary, update it and display it.
- void show();
- /// Hide the dialog.
- void hide();
-
- /// create a Reference inset
- void createRef(string const &);
- /// edit a Reference inset
- void showRef(InsetCommand * const);
-
- /// update the keys list
- void updateRefs(void);
-
- /// Real GUI implementation.
- FormRefDialog * dialog_;
-
- /// the LyXView we belong to
- LyXView * lv_;
-
- /** Which Dialogs do we belong to?
- Used so we can get at the signals we have to connect to.
- */
- Dialogs * d_;
- /// pointer to the inset if any
- InsetCommand * inset_;
- /// insets params
- InsetCommandParams params;
- /// is the inset we are reading from a readonly buffer ?
- bool readonly;
-
- /// Hide connection.
- Connection h_;
- /// Update connection.
- Connection u_;
- /// Inset hide connection.
- Connection ih_;
-
- /// to sort or not to sort
- bool sort;
-
- /// where to go
- GotoType gotowhere;
-
- /// current type
- Type type;
-
- /// available references
- std::vector< string > refs;
-};
-
-#endif
+++ /dev/null
-#include "FormRefDialog.h"
-#include "Dialogs.h"
-#include "FormRef.h"
-
-/*
- * Constructs a FormRefDialog which is a child of 'parent', with the
- * name 'name' and widget flags set to 'f'
- *
- * The dialog will by default be modeless, unless you set 'modal' to
- * TRUE to construct a modal dialog.
- */
-FormRefDialog::FormRefDialog( FormRef* _form, QWidget* parent, const char* name, bool modal, WFlags fl )
- : FormReferenceDialogBase( parent, name, modal, fl ),
- form( _form )
-{
-}
-
-/*
- * Destroys the object and frees any allocated resources
- */
-FormRefDialog::~FormRefDialog()
-{
- // no need to delete child widgets, Qt does it all for us
-}
-
-/*
- * public slot
- */
-void FormRefDialog::apply_adaptor()
-{
- form->apply();
- form->close();
- hide();
-}
-/*
- * public slot
- */
-void FormRefDialog::goto_adaptor()
-{
- form->goto_ref();
-}
-/*
- * public slot
- */
-void FormRefDialog::highlight_adaptor(const QString& sel)
-{
- form->highlight(sel);
-}
-/*
- * public slot
- */
-void FormRefDialog::close_adaptor()
-{
- form->close();
- hide();
-}
-/*
- * public slot
- */
-void FormRefDialog::select_adaptor(const QString& sel)
-{
- form->select(sel);
-}
-/*
- * public slot
- */
-void FormRefDialog::sort_adaptor(bool sort)
-{
- form->set_sort(sort);
-}
-/*
- * public slot
- */
-void FormRefDialog::update_adaptor()
-{
- form->do_ref_update();
-}
-
-void FormRefDialog::closeEvent(QCloseEvent *e)
-{
- form->close();
- e->accept();
-}
+++ /dev/null
-#ifndef FORMREFDIALOG_H
-#define FORMREFDIALOG_H
-#include "FormRefDialogBase.h"
-
-class FormRef;
-
-class FormRefDialog : public FormReferenceDialogBase
-{
- Q_OBJECT
-
-public:
- FormRefDialog( FormRef* form, QWidget* parent = 0, const char* name = 0, bool modal = FALSE, WFlags fl = 0 );
- ~FormRefDialog();
-
-public slots:
- void apply_adaptor();
- void goto_adaptor();
- void highlight_adaptor(const QString&);
- void close_adaptor();
- void select_adaptor(const QString&);
- void sort_adaptor(bool);
- void update_adaptor();
-
-protected:
- void closeEvent(QCloseEvent *e);
-
-private:
- FormRef* form;
-};
-
-#endif // FORMREFDIALOG_H
+++ /dev/null
-<!DOCTYPE UI><UI>
-<class>FormReferenceDialogBase</class>
-<widget>
- <class>QDialog</class>
- <property stdset="1">
- <name>name</name>
- <cstring>FormReferenceDialogBase</cstring>
- </property>
- <property stdset="1">
- <name>geometry</name>
- <rect>
- <x>0</x>
- <y>0</y>
- <width>421</width>
- <height>277</height>
- </rect>
- </property>
- <property stdset="1">
- <name>caption</name>
- <string>Reference</string>
- </property>
- <hbox>
- <property stdset="1">
- <name>margin</name>
- <number>11</number>
- </property>
- <property stdset="1">
- <name>spacing</name>
- <number>6</number>
- </property>
- <widget>
- <class>QLayoutWidget</class>
- <property stdset="1">
- <name>name</name>
- <cstring>Layout30</cstring>
- </property>
- <vbox>
- <property stdset="1">
- <name>margin</name>
- <number>0</number>
- </property>
- <property stdset="1">
- <name>spacing</name>
- <number>6</number>
- </property>
- <widget>
- <class>QListBox</class>
- <property stdset="1">
- <name>name</name>
- <cstring>refsLB</cstring>
- </property>
- </widget>
- <widget>
- <class>QLayoutWidget</class>
- <property stdset="1">
- <name>name</name>
- <cstring>Layout29</cstring>
- </property>
- <hbox>
- <property stdset="1">
- <name>margin</name>
- <number>0</number>
- </property>
- <property stdset="1">
- <name>spacing</name>
- <number>6</number>
- </property>
- <spacer>
- <property>
- <name>name</name>
- <cstring>Spacer4</cstring>
- </property>
- <property stdset="1">
- <name>orientation</name>
- <enum>Horizontal</enum>
- </property>
- <property stdset="1">
- <name>sizeType</name>
- <enum>Expanding</enum>
- </property>
- <property>
- <name>sizeHint</name>
- <size>
- <width>20</width>
- <height>20</height>
- </size>
- </property>
- </spacer>
- <widget>
- <class>QPushButton</class>
- <property stdset="1">
- <name>name</name>
- <cstring>updatePB</cstring>
- </property>
- <property stdset="1">
- <name>text</name>
- <string>&Update</string>
- </property>
- </widget>
- <spacer>
- <property>
- <name>name</name>
- <cstring>Spacer5</cstring>
- </property>
- <property stdset="1">
- <name>orientation</name>
- <enum>Horizontal</enum>
- </property>
- <property stdset="1">
- <name>sizeType</name>
- <enum>Expanding</enum>
- </property>
- <property>
- <name>sizeHint</name>
- <size>
- <width>20</width>
- <height>20</height>
- </size>
- </property>
- </spacer>
- <widget>
- <class>QCheckBox</class>
- <property stdset="1">
- <name>name</name>
- <cstring>sortCB</cstring>
- </property>
- <property stdset="1">
- <name>text</name>
- <string>Sort</string>
- </property>
- <property>
- <name>toolTip</name>
- <string>Sort references in alphabetical order ?</string>
- </property>
- </widget>
- <spacer>
- <property>
- <name>name</name>
- <cstring>Spacer6</cstring>
- </property>
- <property stdset="1">
- <name>orientation</name>
- <enum>Horizontal</enum>
- </property>
- <property stdset="1">
- <name>sizeType</name>
- <enum>Expanding</enum>
- </property>
- <property>
- <name>sizeHint</name>
- <size>
- <width>20</width>
- <height>20</height>
- </size>
- </property>
- </spacer>
- </hbox>
- </widget>
- </vbox>
- </widget>
- <widget>
- <class>QLayoutWidget</class>
- <property stdset="1">
- <name>name</name>
- <cstring>Layout35</cstring>
- </property>
- <vbox>
- <property stdset="1">
- <name>margin</name>
- <number>0</number>
- </property>
- <property stdset="1">
- <name>spacing</name>
- <number>6</number>
- </property>
- <widget>
- <class>QLayoutWidget</class>
- <property stdset="1">
- <name>name</name>
- <cstring>Layout31</cstring>
- </property>
- <hbox>
- <property stdset="1">
- <name>margin</name>
- <number>0</number>
- </property>
- <property stdset="1">
- <name>spacing</name>
- <number>6</number>
- </property>
- <widget>
- <class>QLabel</class>
- <property stdset="1">
- <name>name</name>
- <cstring>nameL</cstring>
- </property>
- <property stdset="1">
- <name>text</name>
- <string>&Name:</string>
- </property>
- <property>
- <name>buddy</name>
- <cstring>nameED</cstring>
- </property>
- </widget>
- <widget>
- <class>QLineEdit</class>
- <property stdset="1">
- <name>name</name>
- <cstring>nameED</cstring>
- </property>
- </widget>
- </hbox>
- </widget>
- <widget>
- <class>QLayoutWidget</class>
- <property stdset="1">
- <name>name</name>
- <cstring>Layout32</cstring>
- </property>
- <hbox>
- <property stdset="1">
- <name>margin</name>
- <number>0</number>
- </property>
- <property stdset="1">
- <name>spacing</name>
- <number>6</number>
- </property>
- <widget>
- <class>QLabel</class>
- <property stdset="1">
- <name>name</name>
- <cstring>referenceL</cstring>
- </property>
- <property stdset="1">
- <name>text</name>
- <string>&Reference:</string>
- </property>
- <property>
- <name>buddy</name>
- <cstring>referenceED</cstring>
- </property>
- </widget>
- <widget>
- <class>QLineEdit</class>
- <property stdset="1">
- <name>name</name>
- <cstring>referenceED</cstring>
- </property>
- </widget>
- </hbox>
- </widget>
- <spacer>
- <property>
- <name>name</name>
- <cstring>Spacer7</cstring>
- </property>
- <property stdset="1">
- <name>orientation</name>
- <enum>Vertical</enum>
- </property>
- <property stdset="1">
- <name>sizeType</name>
- <enum>Expanding</enum>
- </property>
- <property>
- <name>sizeHint</name>
- <size>
- <width>20</width>
- <height>20</height>
- </size>
- </property>
- </spacer>
- <widget>
- <class>QLayoutWidget</class>
- <property stdset="1">
- <name>name</name>
- <cstring>Layout33</cstring>
- </property>
- <vbox>
- <property stdset="1">
- <name>margin</name>
- <number>0</number>
- </property>
- <property stdset="1">
- <name>spacing</name>
- <number>6</number>
- </property>
- <widget>
- <class>QLabel</class>
- <property stdset="1">
- <name>name</name>
- <cstring>typeLA</cstring>
- </property>
- <property stdset="1">
- <name>text</name>
- <string>Reference &type</string>
- </property>
- <property>
- <name>buddy</name>
- <cstring>typeLA</cstring>
- </property>
- <property stdset="1">
- <name>alignment</name>
- <set>AlignCenter</set>
- </property>
- <property>
- <name>hAlign</name>
- </property>
- </widget>
- <widget>
- <class>QComboBox</class>
- <item>
- <property>
- <name>text</name>
- <string>Reference</string>
- </property>
- </item>
- <item>
- <property>
- <name>text</name>
- <string>Page number</string>
- </property>
- </item>
- <item>
- <property>
- <name>text</name>
- <string>Ref on page xxx</string>
- </property>
- </item>
- <item>
- <property>
- <name>text</name>
- <string>On page xxx</string>
- </property>
- </item>
- <item>
- <property>
- <name>text</name>
- <string>Pretty reference</string>
- </property>
- </item>
- <property stdset="1">
- <name>name</name>
- <cstring>typeCO</cstring>
- </property>
- <property>
- <name>toolTip</name>
- <string>Reference as it appears in output</string>
- </property>
- </widget>
- </vbox>
- </widget>
- <spacer>
- <property>
- <name>name</name>
- <cstring>Spacer8</cstring>
- </property>
- <property stdset="1">
- <name>orientation</name>
- <enum>Vertical</enum>
- </property>
- <property stdset="1">
- <name>sizeType</name>
- <enum>Expanding</enum>
- </property>
- <property>
- <name>sizeHint</name>
- <size>
- <width>20</width>
- <height>20</height>
- </size>
- </property>
- </spacer>
- <widget>
- <class>QPushButton</class>
- <property stdset="1">
- <name>name</name>
- <cstring>gotoPB</cstring>
- </property>
- <property stdset="1">
- <name>text</name>
- <string>&Goto reference</string>
- </property>
- </widget>
- <spacer>
- <property>
- <name>name</name>
- <cstring>Spacer9</cstring>
- </property>
- <property stdset="1">
- <name>orientation</name>
- <enum>Vertical</enum>
- </property>
- <property stdset="1">
- <name>sizeType</name>
- <enum>Expanding</enum>
- </property>
- <property>
- <name>sizeHint</name>
- <size>
- <width>20</width>
- <height>20</height>
- </size>
- </property>
- </spacer>
- <widget>
- <class>QLayoutWidget</class>
- <property stdset="1">
- <name>name</name>
- <cstring>Layout34</cstring>
- </property>
- <hbox>
- <property stdset="1">
- <name>margin</name>
- <number>0</number>
- </property>
- <property stdset="1">
- <name>spacing</name>
- <number>6</number>
- </property>
- <widget>
- <class>QPushButton</class>
- <property stdset="1">
- <name>name</name>
- <cstring>okPB</cstring>
- </property>
- <property stdset="1">
- <name>text</name>
- <string>&OK</string>
- </property>
- <property stdset="1">
- <name>default</name>
- <bool>true</bool>
- </property>
- </widget>
- <widget>
- <class>QPushButton</class>
- <property stdset="1">
- <name>name</name>
- <cstring>cancelPB</cstring>
- </property>
- <property stdset="1">
- <name>text</name>
- <string>&Cancel</string>
- </property>
- </widget>
- </hbox>
- </widget>
- </vbox>
- </widget>
- </hbox>
-</widget>
-<connections>
- <connection>
- <sender>refsLB</sender>
- <signal>highlighted(const QString&)</signal>
- <receiver>FormReferenceDialogBase</receiver>
- <slot>highlight_adaptor(const QString&)</slot>
- </connection>
- <connection>
- <sender>refsLB</sender>
- <signal>selected(const QString&)</signal>
- <receiver>FormReferenceDialogBase</receiver>
- <slot>select_adaptor(const QString&)</slot>
- </connection>
- <connection>
- <sender>sortCB</sender>
- <signal>toggled(bool)</signal>
- <receiver>FormReferenceDialogBase</receiver>
- <slot>sort_adaptor(bool)</slot>
- </connection>
- <connection>
- <sender>updatePB</sender>
- <signal>clicked()</signal>
- <receiver>FormReferenceDialogBase</receiver>
- <slot>update_adaptor()</slot>
- </connection>
- <connection>
- <sender>okPB</sender>
- <signal>clicked()</signal>
- <receiver>FormReferenceDialogBase</receiver>
- <slot>apply_adaptor()</slot>
- </connection>
- <connection>
- <sender>cancelPB</sender>
- <signal>clicked()</signal>
- <receiver>FormReferenceDialogBase</receiver>
- <slot>close_adaptor()</slot>
- </connection>
- <connection>
- <sender>gotoPB</sender>
- <signal>clicked()</signal>
- <receiver>FormReferenceDialogBase</receiver>
- <slot>goto_adaptor()</slot>
- </connection>
- <slot access="public">apply_adaptor()</slot>
- <slot access="public">goto_adaptor()</slot>
- <slot access="public">highlight_adaptor(const QString&)</slot>
- <slot access="public">close_adaptor()</slot>
- <slot access="public">select_adaptor(const QString&)</slot>
- <slot access="public">sort_adaptor(bool)</slot>
- <slot access="public">update_adaptor()</slot>
-</connections>
-</UI>
+++ /dev/null
-/**
- * \file FormSearch.C
- * Copyright 2001 The LyX Team.
- * See the file COPYING.
- *
- * \author Edwin Leuven
- */
-
-#include <config.h>
-
-#include "gettext.h"
-#include "searchdlgimpl.h"
-#include "FormSearch.h"
-#include "Dialogs.h"
-#include "Liason.h"
-#include "QtLyXView.h"
-#include "buffer.h"
-//#include "lyxtext.h"
-#include "lyxfind.h"
-//#include "language.h"
-#include "support/lstrings.h"
-#include "BufferView.h"
-
-using Liason::setMinibuffer;
-
-FormSearch::FormSearch(LyXView *v, Dialogs *d)
- : dialog_(0), lv_(v), d_(d), h_(0), u_(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->showSearch.connect(SigC::slot(this, &FormSearch::show));
- // perhaps in the future we'd like a
- // "search again" button/keybinding
- // d->searchAgain.connect(slot(this, &FormSearch::FindNext));
-}
-
-
-FormSearch::~FormSearch()
-{
- delete dialog_;
-}
-
-void FormSearch::show()
-{
- if (!dialog_) {
- dialog_ = new SearchDlgImpl(this, 0, _("Find and Replace"), false);
- }
-
- if (!dialog_->isVisible()) {
- h_ = d_->hideBufferDependent.connect(SigC::slot(this, &FormSearch::hide));
- u_ = d_->updateBufferDependent.connect(SigC::slot(this, &FormSearch::update));
- }
-
- dialog_->raise();
- dialog_->setActiveWindow();
- update();
- dialog_->show();
-}
-
-void FormSearch::find(string const & searchstr, bool const & casesensitive,
- bool const & matchword, bool const & searchback)
-{
- bool found = LyXFind(lv_->view(), searchstr, searchback,
- casesensitive, matchword);
-
- if (!found)
- setMinibuffer(lv_, _("String not found!"));
-
-}
-void FormSearch::replace(string const & searchstr, string const & replacestr,
- bool const & casesensitive, bool const & matchword,
- bool const & searchback, bool const & replaceall)
-{
- int replace_count = LyXReplace(lv_->view(), searchstr, replacestr,
- searchback, casesensitive, matchword,
- replaceall);
-
- if (replace_count == 0) {
- setMinibuffer(lv_, _("String not found!"));
- } else {
- if (replace_count == 1) {
- setMinibuffer(lv_, _("String has been replaced."));
- } else {
- string str = tostr(replace_count);
- str += _(" strings have been replaced.");
- setMinibuffer(lv_, str.c_str());
- }
- }
-}
-
-
-void FormSearch::close()
-{
- h_.disconnect();
- u_.disconnect();
-}
-
-void FormSearch::hide()
-{
- dialog_->hide();
- close();
-}
-
-void FormSearch::update(bool)
-{
- if (!lv_->view()->available())
- return;
-
- dialog_->setReadOnly(lv_->buffer()->isReadonly());
-}
+++ /dev/null
-// -*- C++ -*-
-/**
- * \file FormSearch.h
- * Copyright 2001 The LyX Team.
- * See the file COPYING.
- *
- * \author Edwin Leuven
- */
-
-#ifndef FORM_SEARCH_H
-#define FORM_SEARCH_H
-
-#include "DialogBase.h"
-#include "LString.h"
-#include "support/lstrings.h"
-
-class LyXView;
-class Dialogs;
-class SearchDlgImpl;
-
-class FormSearch : public DialogBase {
-public:
- ///
- FormSearch(LyXView *, Dialogs *);
- ///
- ~FormSearch();
-
- /// Close connections.
- void close();
- /// find stuff (we need access to lv_).
- void find(string const &, bool const &, bool const &, bool const &);
- /// replace stuff (we need access to lv_).
- void replace(string const &, string const &,
- bool const &, bool const &, bool const &, bool const &);
-
-
-private:
-
- /// Show the dialog.
- void show();
- /// Hide the dialog.
- void hide();
- /// Update the dialog.
- void update(bool switched = false);
-
- /// Real GUI implementation.
- SearchDlgImpl * dialog_;
-
- /// the LyXView we belong to.
- LyXView * lv_;
-
- /** Which Dialogs do we belong to?
- * Used so we can get at the signals we have to connect to.
- */
- Dialogs * d_;
-
- /// Hide connection.
- SigC::Connection h_;
-
- /// Update connection.
- SigC::Connection u_;
-
-};
-
-#endif
+++ /dev/null
-/**
- * \file FormSplash.C
- * Copyright 2001 the LyX Team
- * Read the file COPYING
- *
- * \author Edwin Leuven
- */
-
-#include <config.h>
-
-#include <qframe.h>
-
-#include "FormSplashImpl.h"
-#include "FormSplash.h"
-#include "Dialogs.h"
-#include "version.h"
-#include "support/filetools.h"
-#include "lyxrc.h"
-
-FormSplash::FormSplash(LyXView *, Dialogs * d)
- : dialog_(0), d_(d)
-{
- c_ = d->showSplash.connect(SigC::slot(this, &FormSplash::show));
-}
-
-
-FormSplash::~FormSplash()
-{
- c_.disconnect();
- delete dialog_;
-}
-
-void FormSplash::hide()
-{
- dialog_->hide();
-}
-
-void FormSplash::show()
-{
- if (!lyxrc.show_banner)
- return;
-
- if (!dialog_)
- dialog_ = new FormSplashBase( 0, "LyX");
-
- // show banner
- dialog_->show();
-}
+++ /dev/null
-// -*- C++ -*-
-/**
- * \file FormSplash.h
- * Copyright 2001 the LyX Team
- * Read the file COPYING
- *
- * \author Edwin Leuven
- */
-
-#ifndef FORMSPLASH_H
-#define FORMSPLASH_H
-
-#include "DialogBase.h"
-
-class Dialogs;
-class LyXView;
-class FormSplashBase;
-
-/** The startup splash screen
- */
-class FormSplash : public DialogBase {
-
-public:
- FormSplash(LyXView *, Dialogs *);
-
- ~FormSplash();
-
- /// hide the dialog
- void hide();
-
-private:
- /// show the dialog
- void show();
-
- /// Real GUI implementation.
- FormSplashBase * dialog_;
- /// our container
- Dialogs * d_;
- /// the show connection
- SigC::Connection c_;
-};
-
-#endif // FORMSPLASH_H
+++ /dev/null
-/**
- * \file FormSplashBase.C
- * Copyright 2001 the LyX Team
- * Read the file COPYING
- *
- * \author Edwin Leuven
- */
-
-#include <config.h>
-
-#include <qapplication.h>
-#include <qtimer.h>
-#include <qframe.h>
-#include <qpixmap.h>
-
-#include "FormSplashImpl.h"
-#include "version.h"
-#include "support/filetools.h"
-#include "lyxrc.h"
-
-FormSplashBase::FormSplashBase( QWidget* parent, const char* name, WFlags fl, bool modal )
- : QFrame( parent, name, fl, modal)
-{
- string banner_file = LibFileSearch("images", "banner", "xpm");
- if (banner_file.empty())
- return;
-
- QPixmap pm(tostr(banner_file).c_str());
- int w = pm.width();
- int h = pm.height();
-
- setBackgroundPixmap(pm);
- setLineWidth(0);
- setGeometry(QApplication::desktop()->width ()/2-w/2,
- QApplication::desktop()->height()/2-h/2,
- w, h );
-
- QTimer::singleShot( 5*1000, this, SLOT(hide()) );
-}
-
-FormSplashBase::~FormSplashBase()
-{
-}
-
-
-void FormSplashBase::mousePressEvent( QMouseEvent * )
-{
- hide();
-}
-
-
-
+++ /dev/null
-/**
- * \file FormSplashBase.C
- * Copyright 2001 the LyX Team
- * Read the file COPYING
- *
- * \author Edwin Leuven
- */
-
-#ifndef FORMSPLASHBASE_H
-#define FORMSPLASHBASE_H
-
-class FormSplashBase : public QFrame
-{
- public:
-
- FormSplashBase(QWidget* parent, const char* name,
- WFlags fl = QWidget::WStyle_NoBorder | QWidget::WStyle_Customize,
- bool modal = false );
-
- ~FormSplashBase();
-
- protected:
-
- virtual void mousePressEvent( QMouseEvent * );
-};
-
-#endif // FORMSPLASHBASE_H
+++ /dev/null
-/**
- * \file FormTabularCreate.C
- * Copyright 2001 LyX Team
- * see the file COPYING
- *
- * \author John Levon, moz@compsoc.man.ac.uk
- */
-
-#include <config.h>
-
-#include "tabularcreatedlgimpl.h"
-#include "Dialogs.h"
-#include "FormTabularCreate.h"
-#include "gettext.h"
-#include "QtLyXView.h"
-#include "BufferView.h"
-#include "insets/insettabular.h"
-#include "support/lstrings.h"
-
-using SigC::slot;
-
-FormTabularCreate::FormTabularCreate(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->showTabularCreate.connect(slot(this, &FormTabularCreate::show));
-}
-
-FormTabularCreate::~FormTabularCreate()
-{
- delete dialog_;
-}
-
-void FormTabularCreate::apply(int rows, int cols)
-{
- if (!lv_->view()->available())
- return;
-
- string tmp = tostr(rows) + " " + tostr(cols);
- lv_->getLyXFunc()->Dispatch(LFUN_INSET_TABULAR, tmp);
-}
-
-void FormTabularCreate::show()
-{
- if (!dialog_)
- dialog_ = new TabularCreateDlgImpl(this, 0, _("LyX: Insert Table"));
-
- if (!dialog_->isVisible()) {
- h_ = d_->hideBufferDependent.connect(slot(this, &FormTabularCreate::hide));
- }
-
- dialog_->raise();
- dialog_->setActiveWindow();
-
- update();
- dialog_->show();
-}
-
-void FormTabularCreate::close()
-{
- h_.disconnect();
-}
-
-void FormTabularCreate::hide()
-{
- dialog_->hide();
- close();
-}
+++ /dev/null
-// -*- C++ -*-
-/* FormTabularCreate.h
- * (C) 2000 LyX Team
- * John Levon, moz@compsoc.man.ac.uk
- */
-
-/***************************************************************************
- * *
- * This program is free software; you can redistribute it and/or modify *
- * it under the terms of the GNU General Public License as published by *
- * the Free Software Foundation; either version 2 of the License, or *
- * (at your option) any later version. *
- * *
- ***************************************************************************/
-
-#ifndef FORMTABULARCREATE_H
-#define FORMTABULARCREATE_H
-
-#include "DialogBase.h"
-#include "LString.h"
-#include "boost/utility.hpp"
-
-class Dialogs;
-class LyXView;
-class TabularCreateDlgImpl;
-
-class FormTabularCreate : public DialogBase {
-public:
- /**@name Constructors and Destructors */
- //@{
- ///
- FormTabularCreate(LyXView *, Dialogs *);
- ///
- ~FormTabularCreate();
- //@}
-
- /// create the table
- void apply(int rows, int cols);
- /// close the connections
- void close();
-
-private:
- /// Create the dialog if necessary, update it and display it.
- void show();
- /// Hide the dialog.
- void hide();
-
- /// Real GUI implementation.
- TabularCreateDlgImpl * dialog_;
-
- /// the LyXView we belong to
- LyXView * lv_;
-
- /** Which Dialogs do we belong to?
- Used so we can get at the signals we have to connect to.
- */
- Dialogs * d_;
-
- /// Hide connection.
- SigC::Connection h_;
-};
-
-#endif
+++ /dev/null
-/*
- * FormToc.C
- * (C) 2000 LyX Team
- * John Levon, moz@compsoc.man.ac.uk
- */
-
-/***************************************************************************
- * *
- * This program is free software; you can redistribute it and/or modify *
- * it under the terms of the GNU General Public License as published by *
- * the Free Software Foundation; either version 2 of the License, or *
- * (at your option) any later version. *
- * *
- ***************************************************************************/
-
-#include <config.h>
-
-#include <stack>
-
-#include <qslider.h>
-#include "FormTocDialog.h"
-#undef emit
-
-#include "Dialogs.h"
-#include "FormToc.h"
-#include "gettext.h"
-#include "buffer.h"
-#include "support/lstrings.h"
-#include "QtLyXView.h"
-#include "lyxfunc.h"
-#include "debug.h"
-
-using std::vector;
-using std::pair;
-using std::stack;
-using std::endl;
-
-#include <qlistview.h>
-#include <qcombobox.h>
-
-FormToc::FormToc(LyXView *v, Dialogs *d)
- : dialog_(0), lv_(v), d_(d), inset_(0), h_(0), u_(0), ih_(0),
- toclist(0), type(Buffer::TOC_TOC), depth(1)
-{
- // let the dialog be shown
- // This is a permanent connection so we won't bother
- // storing a copy because we won't be disconnecting.
- d->showTOC.connect(slot(this, &FormToc::showTOC));
- d->createTOC.connect(slot(this, &FormToc::createTOC));
-}
-
-FormToc::~FormToc()
-{
- delete dialog_;
-}
-
-void FormToc::showTOC(InsetCommand * const inset)
-{
- // FIXME: when could inset be 0 here ?
- if (inset==0)
- return;
-
- inset_ = inset;
- ih_ = inset_->hide.connect(slot(this,&FormToc::hide));
- params = inset->params();
-
- show();
-}
-
-void FormToc::createTOC(string const & arg)
-{
- if (inset_)
- close();
-
- params.setFromString(arg);
- show();
-}
-
-void FormToc::updateToc(int newdepth)
-{
- if (!lv_->view()->available()) {
- toclist.clear();
- dialog_->tocLV->clear();
- return;
- }
-
- vector< vector<Buffer::TocItem> > tmp =
- lv_->view()->buffer()->getTocList();
-
- // Check if all elements are the same.
- if (newdepth==depth && toclist.size() == tmp[type].size()) {
- unsigned int i = 0;
- for (; i < toclist.size(); ++i) {
- if (toclist[i] != tmp[type][i])
- break;
- }
- if (i >= toclist.size())
- return;
- }
-
- depth=newdepth;
-
- toclist = tmp[type];
-
- dialog_->tocLV->clear();
- if (toclist.empty())
- return;
-
- dialog_->tocLV->setUpdatesEnabled(false);
-
- int curdepth = 0;
- stack< pair< QListViewItem *, QListViewItem *> > istack;
- QListViewItem *last = 0;
- QListViewItem *parent = 0;
- QListViewItem *item;
-
- // Yes, it is this ugly. Two reasons - root items must have a QListView parent,
- // rather than QListViewItem; and the TOC can move in and out an arbitrary number
- // of levels
-
- for (vector< Buffer::TocItem >::const_iterator iter = toclist.begin();
- iter != toclist.end(); ++iter) {
- if (iter->depth == curdepth) {
- // insert it after the last one we processed
- if (!parent)
- item = (last) ? (new QListViewItem(dialog_->tocLV,last)) : (new QListViewItem(dialog_->tocLV));
- else
- item = (last) ? (new QListViewItem(parent,last)) : (new QListViewItem(parent));
- } else if (iter->depth > curdepth) {
- int diff = iter->depth - curdepth;
- // first save old parent and last
- while (diff--)
- istack.push(pair< QListViewItem *, QListViewItem * >(parent,last));
- item = (last) ? (new QListViewItem(last)) : (new QListViewItem(dialog_->tocLV));
- parent = last;
- } else {
- int diff = curdepth - iter->depth;
- pair< QListViewItem *, QListViewItem * > top;
- // restore context
- while (diff--) {
- top = istack.top();
- istack.pop();
- }
- parent = top.first;
- last = top.second;
- // insert it after the last one we processed
- if (!parent)
- item = (last) ? (new QListViewItem(dialog_->tocLV,last)) : (new QListViewItem(dialog_->tocLV));
- else
- item = (last) ? (new QListViewItem(parent,last)) : (new QListViewItem(parent));
- }
- lyxerr[Debug::GUI] << "Table of contents" << endl << "Added item " << iter->str.c_str()
- << " at depth " << iter->depth << ", previous sibling \"" << (last ? last->text(0).latin1() : "0")
- << "\", parent \"" << (parent ? parent->text(0).latin1() : "0") << "\"" << endl;
- item->setText(0,iter->str.c_str());
- item->setOpen(iter->depth < depth);
- curdepth = iter->depth;
- last = item;
- }
-
- dialog_->tocLV->setUpdatesEnabled(true);
- dialog_->tocLV->update();
-}
-
-void FormToc::setType(Buffer::TocType toctype)
-{
- type = toctype;
- switch (type) {
- case Buffer::TOC_TOC:
- dialog_->setCaption(_("Table of Contents"));
- dialog_->tocLV->setColumnText(0,_("Table of Contents"));
- dialog_->depthSL->setEnabled(true);
- break;
- case Buffer::TOC_LOF:
- dialog_->setCaption(_("List of Figures"));
- dialog_->tocLV->setColumnText(0,_("List of Figures"));
- dialog_->depthSL->setEnabled(false);
- break;
- case Buffer::TOC_LOT:
- dialog_->setCaption(_("List of Tables"));
- dialog_->tocLV->setColumnText(0,_("List of Tables"));
- dialog_->depthSL->setEnabled(false);
- break;
- case Buffer::TOC_LOA:
- dialog_->setCaption(_("List of Algorithms"));
- dialog_->tocLV->setColumnText(0,_("List of Algorithms"));
- dialog_->depthSL->setEnabled(false);
- break;
- }
-}
-
-void FormToc::set_depth(int newdepth)
-{
- if (newdepth!=depth)
- updateToc(newdepth);
-}
-
-void FormToc::update()
-{
- if (params.getCmdName()=="tableofcontents") {
- setType(Buffer::TOC_TOC);
- dialog_->typeCO->setCurrentItem(0);
- } else if (params.getCmdName()=="listoffigures") {
- setType(Buffer::TOC_LOF);
- dialog_->typeCO->setCurrentItem(1);
- } else if (params.getCmdName()=="listoftables") {
- setType(Buffer::TOC_LOT);
- dialog_->typeCO->setCurrentItem(2);
- } else {
- setType(Buffer::TOC_LOA);
- dialog_->typeCO->setCurrentItem(3);
- }
-
- updateToc(depth);
-}
-
-void FormToc::select(const char *text)
-{
- if (!lv_->view()->available())
- return;
-
- vector <Buffer::TocItem>::const_iterator iter = toclist.begin();
- for (; iter != toclist.end(); ++iter) {
- if (iter->str==text)
- break;
- }
-
- if (iter==toclist.end()) {
- lyxerr[Debug::GUI] << "Couldn't find highlighted TOC entry : " << text << endl;
- return;
- }
-
- lv_->getLyXFunc()->Dispatch(LFUN_GOTO_PARAGRAPH, tostr(iter->par->id()).c_str());
-}
-
-void FormToc::set_type(Buffer::TocType toctype)
-{
- if (toctype==type)
- return;
-
- setType(toctype);
- updateToc(depth);
-}
-
-void FormToc::show()
-{
- if (!dialog_)
- dialog_ = new FormTocDialog(this, 0, _("LyX: Table of Contents"), false);
-
- if (!dialog_->isVisible()) {
- h_ = d_->hideBufferDependent.connect(slot(this, &FormToc::hide));
- u_ = d_->updateBufferDependent.connect(slot(this, &FormToc::update));
- }
-
- dialog_->raise();
- dialog_->setActiveWindow();
-
- update();
- dialog_->show();
-}
-
-void FormToc::close()
-{
- h_.disconnect();
- u_.disconnect();
- ih_.disconnect();
- inset_ = 0;
-}
-
-void FormToc::hide()
-{
- dialog_->hide();
- close();
-}
+++ /dev/null
-// -*- C++ -*-
-/* FormToc.h
- * (C) 2000 LyX Team
- * John Levon, moz@compsoc.man.ac.uk
- * Adapted for Qt2 frontend by Kalle Dalheimer,
- * kalle@klaralvdalens-datakonsult.se
- */
-
-/***************************************************************************
- * *
- * 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 FORMTOC_H
-#define FORMTOC_H
-
-#include "DialogBase.h"
-#include "LString.h"
-#include "boost/utility.hpp"
-#include "insets/insetcommand.h"
-#include "buffer.h"
-
-class Dialogs;
-class FormTocDialog;
-
-class FormToc : public DialogBase {
-public:
- /**@name Constructors and Destructors */
- //@{
- ///
- FormToc(LyXView *, Dialogs *);
- ///
- ~FormToc();
- //@}
-
- // Build the dialog
- virtual void build();
- /// Update the dialog before showing it.
- virtual void update();
- /// close the connections
- virtual void close();
-
-private:
- /// Create the dialog if necessary, update it and display it.
- void show();
- /// Hide the dialog.
- void hide();
-
- /// create a Toc inset
- void createTOC(string const &);
- /// view a Toc inset
- void showTOC(InsetCommand * const);
-
- /// update the Toc
- void updateToc(int);
-
- /// Real GUI implementation.
- FormTocDialog * dialog_;
-
- /// the LyXView we belong to
- LyXView * lv_;
-
- /** Which Dialogs do we belong to?
- Used so we can get at the signals we have to connect to.
- */
- Dialogs * d_;
- /// pointer to the inset if any
- InsetCommand * inset_;
- /// insets params
- InsetCommandParams params;
-
- /// Hide connection.
- Connection h_;
- /// Update connection.
- Connection u_;
- /// Inset hide connection.
- Connection ih_;
-
- /// the toc list
- std::vector <Buffer::TocItem> toclist;
-
- /// depth of list shown
- int depth;
-};
-
-#endif
+++ /dev/null
-#include <config.h>
-#include <debug.h>
-#include "FormTocDialog.h"
-#include "Dialogs.h"
-#include "FormToc.h"
-
-#include <qlistview.h>
-
-/*
- * Constructs a FormTocDialog which is a child of 'parent', with the
- * name 'name' and widget flags set to 'f'
- *
- * The dialog will by default be modeless, unless you set 'modal' to
- * TRUE to construct a modal dialog.
- */
-FormTocDialog::FormTocDialog( FormToc* form_, QWidget* parent, const char* name, bool modal, WFlags fl )
- : FormTocDialogBase( parent, name, modal, fl ),
- form( form_ )
-{
-}
-
-/*
- * Destroys the object and frees any allocated resources
- */
-FormTocDialog::~FormTocDialog()
-{
- // no need to delete child widgets, Qt does it all for us
-}
-
-/*
- * public slot
- */
-void FormTocDialog::activate_adaptor(int index)
-{
- switch (index) {
- case 0:
- form->set_type(Buffer::TOC_TOC);
- break;
- case 1:
- form->set_type(Buffer::TOC_LOF);
- break;
- case 2:
- form->set_type(Buffer::TOC_LOT);
- break;
- case 3:
- form->set_type(Buffer::TOC_LOA);
- break;
- default:
- lyxerr[Debug::GUI] << "Unknown TOC combo selection." << std::endl;
- break;
- }
-}
-/*
- * public slot
- */
-void FormTocDialog::close_adaptor()
-{
- form->close();
- hide();
-}
-/*
- * public slot
- */
-void FormTocDialog::depth_adaptor(int depth)
-{
- form->set_depth(depth);
-}
-/*
- * public slot
- */
-void FormTocDialog::select_adaptor(QListViewItem* item)
-{
- form->select(item->text(0));
-}
-/*
- * public slot
- */
-void FormTocDialog::update_adaptor()
-{
- form->update();
-}
-
-void FormTocDialog::closeEvent(QCloseEvent *e)
-{
- form->close();
- e->accept();
-}
+++ /dev/null
-#ifndef FORMTOCDIALOG_H
-#define FORMTOCDIALOG_H
-#include "FormTocDialogBase.h"
-
-class FormToc;
-
-class FormTocDialog : public FormTocDialogBase
-{
- Q_OBJECT
-
-public:
- FormTocDialog( FormToc* form, QWidget* parent = 0, const char* name = 0, bool modal = FALSE, WFlags fl = 0 );
- ~FormTocDialog();
-
-public slots:
- void activate_adaptor(int);
- void close_adaptor();
- void depth_adaptor(int);
- void select_adaptor(QListViewItem*);
- void update_adaptor();
-
-protected:
- void closeEvent(QCloseEvent *e);
-
-private:
- FormToc* form;
-};
-
-#endif // FORMTOCDIALOG_H
+++ /dev/null
-<!DOCTYPE UI><UI>
-<class>FormTocDialogBase</class>
-<widget>
- <class>QDialog</class>
- <property stdset="1">
- <name>name</name>
- <cstring>FormTocDialogBase</cstring>
- </property>
- <property stdset="1">
- <name>geometry</name>
- <rect>
- <x>0</x>
- <y>0</y>
- <width>358</width>
- <height>313</height>
- </rect>
- </property>
- <property stdset="1">
- <name>caption</name>
- <string>Table Of Contents</string>
- </property>
- <vbox>
- <property stdset="1">
- <name>margin</name>
- <number>11</number>
- </property>
- <property stdset="1">
- <name>spacing</name>
- <number>6</number>
- </property>
- <widget>
- <class>QListView</class>
- <column>
- <property>
- <name>text</name>
- <string>Table Of Contents</string>
- </property>
- <property>
- <name>clickable</name>
- <bool>true</bool>
- </property>
- <property>
- <name>resizeable</name>
- <bool>true</bool>
- </property>
- </column>
- <property stdset="1">
- <name>name</name>
- <cstring>tocLV</cstring>
- </property>
- </widget>
- <widget>
- <class>QSlider</class>
- <property stdset="1">
- <name>name</name>
- <cstring>depthSL</cstring>
- </property>
- <property stdset="1">
- <name>orientation</name>
- <enum>Horizontal</enum>
- </property>
- <property stdset="1">
- <name>maxValue</name>
- <number>5</number>
- </property>
- <property stdset="1">
- <name>pageStep</name>
- <number>1</number>
- </property>
- </widget>
- <widget>
- <class>QLayoutWidget</class>
- <property stdset="1">
- <name>name</name>
- <cstring>Layout39</cstring>
- </property>
- <hbox>
- <property stdset="1">
- <name>margin</name>
- <number>0</number>
- </property>
- <property stdset="1">
- <name>spacing</name>
- <number>6</number>
- </property>
- <spacer>
- <property>
- <name>name</name>
- <cstring>Spacer11</cstring>
- </property>
- <property stdset="1">
- <name>orientation</name>
- <enum>Horizontal</enum>
- </property>
- <property stdset="1">
- <name>sizeType</name>
- <enum>Expanding</enum>
- </property>
- <property>
- <name>sizeHint</name>
- <size>
- <width>20</width>
- <height>20</height>
- </size>
- </property>
- <property>
- <name>sizeHint</name>
- <size>
- <width>20</width>
- <height>20</height>
- </size>
- </property>
- </spacer>
- <widget>
- <class>QLabel</class>
- <property stdset="1">
- <name>name</name>
- <cstring>typeLA</cstring>
- </property>
- <property stdset="1">
- <name>text</name>
- <string>&Type</string>
- </property>
- <property>
- <name>buddy</name>
- <cstring>typeCO</cstring>
- </property>
- </widget>
- <widget>
- <class>QComboBox</class>
- <item>
- <property>
- <name>text</name>
- <string>Table of Contents</string>
- </property>
- </item>
- <item>
- <property>
- <name>text</name>
- <string>List of Figures</string>
- </property>
- </item>
- <item>
- <property>
- <name>text</name>
- <string>List of Tables</string>
- </property>
- </item>
- <item>
- <property>
- <name>text</name>
- <string>List of Algorithms</string>
- </property>
- </item>
- <property stdset="1">
- <name>name</name>
- <cstring>typeCO</cstring>
- </property>
- </widget>
- <widget>
- <class>QPushButton</class>
- <property stdset="1">
- <name>name</name>
- <cstring>updatePB</cstring>
- </property>
- <property stdset="1">
- <name>text</name>
- <string>&Update</string>
- </property>
- </widget>
- <widget>
- <class>QPushButton</class>
- <property stdset="1">
- <name>name</name>
- <cstring>closePB</cstring>
- </property>
- <property stdset="1">
- <name>text</name>
- <string>&Close</string>
- </property>
- <property stdset="1">
- <name>default</name>
- <bool>true</bool>
- </property>
- </widget>
- </hbox>
- </widget>
- </vbox>
-</widget>
-<connections>
- <connection>
- <sender>tocLV</sender>
- <signal>selectionChanged(QListViewItem*)</signal>
- <receiver>FormTocDialogBase</receiver>
- <slot>select_adaptor(QListViewItem*)</slot>
- </connection>
- <connection>
- <sender>typeCO</sender>
- <signal>activated(int)</signal>
- <receiver>FormTocDialogBase</receiver>
- <slot>activate_adaptor(int)</slot>
- </connection>
- <connection>
- <sender>updatePB</sender>
- <signal>clicked()</signal>
- <receiver>FormTocDialogBase</receiver>
- <slot>update_adaptor()</slot>
- </connection>
- <connection>
- <sender>closePB</sender>
- <signal>clicked()</signal>
- <receiver>FormTocDialogBase</receiver>
- <slot>close_adaptor()</slot>
- </connection>
- <connection>
- <sender>depthSL</sender>
- <signal>valueChanged(int)</signal>
- <receiver>FormTocDialogBase</receiver>
- <slot>depth_adaptor(int)</slot>
- </connection>
- <slot access="public">activate_adaptor(int)</slot>
- <slot access="public">close_adaptor()</slot>
- <slot access="public">depth_adaptor(int)</slot>
- <slot access="public">select_adaptor(QListViewItem*)</slot>
- <slot access="public">update_adaptor()</slot>
-</connections>
-</UI>
+++ /dev/null
-/*
- * FormUrl.C
- * (C) 2000 LyX Team
- * John Levon, moz@compsoc.man.ac.uk
- */
-
-/***************************************************************************
- * *
- * This program is free software; you can redistribute it and/or modify *
- * it under the terms of the GNU General Public License as published by *
- * the Free Software Foundation; either version 2 of the License, or *
- * (at your option) any later version. *
- * *
- ***************************************************************************/
-
-#include <config.h>
-
-#include "FormUrlDialog.h"
-#undef emit
-
-#include "Dialogs.h"
-#include "FormUrl.h"
-#include "gettext.h"
-#include "buffer.h"
-#include "LyXView.h"
-#include "lyxfunc.h"
-
-#include <qlineedit.h>
-#include <qcheckbox.h>
-#include <qpushbutton.h>
-
-FormUrl::FormUrl(LyXView *v, Dialogs *d)
- : dialog_(0), lv_(v), d_(d), inset_(0), h_(0), u_(0), ih_(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->showUrl.connect(slot(this, &FormUrl::showUrl));
- d->createUrl.connect(slot(this, &FormUrl::createUrl));
-}
-
-FormUrl::~FormUrl()
-{
- delete dialog_;
-}
-
-void FormUrl::showUrl(InsetCommand * const inset)
-{
- // FIXME: when could inset be 0 here ?
- if (inset==0)
- return;
-
- inset_ = inset;
- readonly = lv_->buffer()->isReadonly();
- ih_ = inset_->hide.connect(slot(this,&FormUrl::hide));
- params = inset->params();
-
- show();
-}
-
-void FormUrl::createUrl(string const & arg)
-{
- // we could already be showing a URL, clear it out
- if (inset_)
- close();
-
- readonly = lv_->buffer()->isReadonly();
- params.setFromString(arg);
- show();
-}
-
-void FormUrl::update()
-{
- dialog_->urlED->setText(params.getContents().c_str());
- dialog_->nameED->setText(params.getOptions().c_str());
-
- if (params.getCmdName()=="url")
- dialog_->hyperlinkCB->setChecked(false);
- else
- dialog_->hyperlinkCB->setChecked(true);
-
- if (readonly) {
- dialog_->nameED->setFocusPolicy(QWidget::NoFocus);
- dialog_->urlED->setFocusPolicy(QWidget::NoFocus);
- dialog_->okPB->setEnabled(false);
- dialog_->cancelPB->setText(_("Close"));
- dialog_->hyperlinkCB->setEnabled(false);
- } else {
- dialog_->nameED->setFocusPolicy(QWidget::StrongFocus);
- dialog_->urlED->setFocusPolicy(QWidget::StrongFocus);
- dialog_->urlED->setFocus();
- dialog_->okPB->setEnabled(true);
- dialog_->cancelPB->setText(_("Cancel"));
- dialog_->hyperlinkCB->setEnabled(true);
- }
-}
-
-void FormUrl::apply()
-{
- if (readonly)
- return;
-
- params.setContents(dialog_->urlED->text().latin1());
- params.setOptions(dialog_->nameED->text().latin1());
-
- if (dialog_->hyperlinkCB->isChecked())
- params.setCmdName("htmlurl");
- else
- params.setCmdName("url");
-
- if (inset_ != 0) {
- if (params != inset_->params()) {
- inset_->setParams(params);
- lv_->view()->updateInset(inset_, true);
- }
- } else
- lv_->getLyXFunc()->Dispatch(LFUN_INSERT_URL, params.getAsString().c_str());
-}
-
-void FormUrl::show()
-{
- if (!dialog_)
- dialog_ = new FormUrlDialog(this, 0, _("LyX: Url"), false);
-
- if (!dialog_->isVisible()) {
- h_ = d_->hideBufferDependent.connect(slot(this, &FormUrl::hide));
- u_ = d_->updateBufferDependent.connect(slot(this, &FormUrl::update));
- }
-
- dialog_->raise();
- dialog_->setActiveWindow();
-
- update();
- dialog_->show();
-}
-
-void FormUrl::close()
-{
- h_.disconnect();
- u_.disconnect();
- ih_.disconnect();
- inset_ = 0;
-}
-
-void FormUrl::hide()
-{
- dialog_->hide();
- close();
-}
+++ /dev/null
-// -*- C++ -*-
-/* FormUrl.h
- * (C) 2000 LyX Team
- * John Levon, moz@compsoc.man.ac.uk
- * Adapted for Qt2 frontend by Kalle Dalheimer,
- * kalle@klaralvdalens-datakonsult.se
- */
-
-/***************************************************************************
- * *
- * 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 FORMURL_H
-#define FORMURL_H
-
-#include "DialogBase.h"
-#include "LString.h"
-#include "boost/utility.hpp"
-#include "insets/inseturl.h"
-
-class Dialogs;
-class LyXView;
-class FormUrlDialog;
-
-class FormUrl : public DialogBase {
-public:
- /**@name Constructors and Destructors */
- //@{
- ///
- FormUrl(LyXView *, Dialogs *);
- ///
- ~FormUrl();
- //@}
-
- /// Apply changes
- void apply();
- /// close the connections
- void close();
-
-private:
- /// Create the dialog if necessary, update it and display it.
- void show();
- /// Hide the dialog.
- void hide();
- /// Update the dialog.
- void update();
-
- /// create a URL inset
- void createUrl(string const &);
- /// edit a URL inset
- void showUrl(InsetCommand * const);
-
- /// Real GUI implementation.
- FormUrlDialog * dialog_;
-
- /// the LyXView we belong to
- LyXView * lv_;
-
- /** Which Dialogs do we belong to?
- Used so we can get at the signals we have to connect to.
- */
- Dialogs * d_;
- /// pointer to the inset if any
- InsetCommand * inset_;
- /// insets params
- InsetCommandParams params;
- /// is the inset we are reading from a readonly buffer
- bool readonly;
-
- /// Hide connection.
- Connection h_;
- /// Update connection.
- Connection u_;
- /// Inset hide connection.
- Connection ih_;
-};
-
-#endif
+++ /dev/null
-#include "FormUrlDialog.h"
-#include "Dialogs.h"
-#include "FormUrl.h"
-
-/*
- * Constructs a FormUrlDialog which is a child of 'parent', with the
- * name 'name' and widget flags set to 'f'
- *
- * The dialog will by default be modeless, unless you set 'modal' to
- * TRUE to construct a modal dialog.
- */
-FormUrlDialog::FormUrlDialog( FormUrl* _form, QWidget* parent, const char* name, bool modal, WFlags fl )
- : FormUrlDialogBase( parent, name, modal, fl ),
- form( _form )
-{
-}
-
-/*
- * Destroys the object and frees any allocated resources
- */
-FormUrlDialog::~FormUrlDialog()
-{
- // no need to delete child widgets, Qt does it all for us
-}
-
-/*
- * public slot
- */
-void FormUrlDialog::apply_adaptor()
-{
- form->apply();
- form->close();
- hide();
-}
-/*
- * public slot
- */
-void FormUrlDialog::close_adaptor()
-{
- form->close();
- hide();
-}
-
-void FormUrlDialog::closeEvent(QCloseEvent *e)
-{
- form->close();
- e->accept();
-}
+++ /dev/null
-#ifndef FORMURLDIALOG_H
-#define FORMURLDIALOG_H
-#include "FormUrlDialogBase.h"
-
-class FormUrl;
-
-class FormUrlDialog : public FormUrlDialogBase
-{
- Q_OBJECT
-
-public:
- FormUrlDialog( FormUrl* form, QWidget* parent = 0, const char* name = 0, bool modal = FALSE, WFlags fl = 0 );
- ~FormUrlDialog();
-
-public slots:
- void apply_adaptor();
- void close_adaptor();
-
-protected:
- void closeEvent( QCloseEvent* );
-
-private:
- FormUrl* form;
-};
-
-#endif // FORMURLDIALOG_H
+++ /dev/null
-<!DOCTYPE UI><UI>
-<class>FormUrlDialogBase</class>
-<widget>
- <class>QDialog</class>
- <property stdset="1">
- <name>name</name>
- <cstring>FormUrlDialogBase</cstring>
- </property>
- <property stdset="1">
- <name>geometry</name>
- <rect>
- <x>0</x>
- <y>0</y>
- <width>325</width>
- <height>112</height>
- </rect>
- </property>
- <property stdset="1">
- <name>caption</name>
- <string>Url</string>
- </property>
- <vbox>
- <property stdset="1">
- <name>margin</name>
- <number>11</number>
- </property>
- <property stdset="1">
- <name>spacing</name>
- <number>6</number>
- </property>
- <widget>
- <class>QLayoutWidget</class>
- <property stdset="1">
- <name>name</name>
- <cstring>Layout2</cstring>
- </property>
- <hbox>
- <property stdset="1">
- <name>margin</name>
- <number>0</number>
- </property>
- <property stdset="1">
- <name>spacing</name>
- <number>6</number>
- </property>
- <widget>
- <class>QLabel</class>
- <property stdset="1">
- <name>name</name>
- <cstring>urlLA</cstring>
- </property>
- <property stdset="1">
- <name>text</name>
- <string>&Url</string>
- </property>
- <property>
- <name>buddy</name>
- <cstring>urlED</cstring>
- </property>
- <property>
- <name>toolTip</name>
- <string>URL</string>
- </property>
- </widget>
- <widget>
- <class>QLineEdit</class>
- <property stdset="1">
- <name>name</name>
- <cstring>urlED</cstring>
- </property>
- <property>
- <name>toolTip</name>
- <string>URL</string>
- </property>
- </widget>
- </hbox>
- </widget>
- <widget>
- <class>QLayoutWidget</class>
- <property stdset="1">
- <name>name</name>
- <cstring>Layout3</cstring>
- </property>
- <hbox>
- <property stdset="1">
- <name>margin</name>
- <number>0</number>
- </property>
- <property stdset="1">
- <name>spacing</name>
- <number>6</number>
- </property>
- <widget>
- <class>QLabel</class>
- <property stdset="1">
- <name>name</name>
- <cstring>nameLA</cstring>
- </property>
- <property stdset="1">
- <name>text</name>
- <string>&Name</string>
- </property>
- <property>
- <name>buddy</name>
- <cstring>nameED</cstring>
- </property>
- <property>
- <name>toolTip</name>
- <string>Name associated with the URL</string>
- </property>
- </widget>
- <widget>
- <class>QLineEdit</class>
- <property stdset="1">
- <name>name</name>
- <cstring>nameED</cstring>
- </property>
- <property>
- <name>toolTip</name>
- <string>Name associated with the URL</string>
- </property>
- </widget>
- </hbox>
- </widget>
- <widget>
- <class>QLayoutWidget</class>
- <property stdset="1">
- <name>name</name>
- <cstring>Layout4</cstring>
- </property>
- <hbox>
- <property stdset="1">
- <name>margin</name>
- <number>0</number>
- </property>
- <property stdset="1">
- <name>spacing</name>
- <number>6</number>
- </property>
- <widget>
- <class>QCheckBox</class>
- <property stdset="1">
- <name>name</name>
- <cstring>hyperlinkCB</cstring>
- </property>
- <property stdset="1">
- <name>text</name>
- <string>&Generate hyperlink</string>
- </property>
- <property>
- <name>toolTip</name>
- <string>Output as a hyperlink ?</string>
- </property>
- </widget>
- <widget>
- <class>QPushButton</class>
- <property stdset="1">
- <name>name</name>
- <cstring>okPB</cstring>
- </property>
- <property stdset="1">
- <name>text</name>
- <string>&OK</string>
- </property>
- <property stdset="1">
- <name>default</name>
- <bool>true</bool>
- </property>
- </widget>
- <widget>
- <class>QPushButton</class>
- <property stdset="1">
- <name>name</name>
- <cstring>cancelPB</cstring>
- </property>
- <property stdset="1">
- <name>text</name>
- <string>&Cancel</string>
- </property>
- </widget>
- </hbox>
- </widget>
- </vbox>
-</widget>
-<connections>
- <connection>
- <sender>okPB</sender>
- <signal>clicked()</signal>
- <receiver>FormUrlDialogBase</receiver>
- <slot>apply_adaptor()</slot>
- </connection>
- <connection>
- <sender>cancelPB</sender>
- <signal>clicked()</signal>
- <receiver>FormUrlDialogBase</receiver>
- <slot>close_adaptor()</slot>
- </connection>
- <slot access="public">apply_adaptor()</slot>
- <slot access="public">close_adaptor()</slot>
-</connections>
-</UI>
-/* This file is part of
- * ======================================================
- *
- * LyX, The Document Processor
- *
- * Copyright 2001 The LyX Team.
+/**
+ * \file GUIRunTime.C
+ * Copyright 2001 the LyX Team
+ * Read the file COPYING
*
- * ====================================================== */
+ * \author John Levon
+ */
#include <config.h>
#pragma implementation
#endif
+#include <qapplication.h>
+#include <qpainter.h>
+
+#include "QtLyXView.h"
+#include "XFormsView.h"
#include "GUIRunTime.h"
#include "debug.h"
-#include <qapplication.h>
-
#include FORMS_H_LOCATION
using std::endl;
extern bool finished;
-namespace {
-
-int const xforms_include_version = FL_INCLUDE_VERSION;
-
-} // namespace anon
-
-
int GUIRunTime::initApplication(int argc, char * argv[])
{
+ int const xforms_include_version = FL_INCLUDE_VERSION;
+
// Check the XForms version in the forms.h header against
// the one in the libforms. If they don't match quit the
// execution of LyX. Better with a clean fast exit than
// a strange segfault later.
- // I realize that this check have to be moved when we
- // support several toolkits, but IMO all the toolkits
- // should try to have the same kind of check. This could
- // be done by having a CheckHeaderAndLib function in
- // all the toolkit implementations, this function is
- // responsible for notifing the user.
- // if (!CheckHeaderAndLib()) {
- // // header vs. lib version failed
- // return 1;
- // }
int xforms_lib_version = fl_library_version(0, 0);
if (xforms_include_version != xforms_lib_version) {
lyxerr << "You are either running LyX with wrong "
return 0;
}
+
void GUIRunTime::processEvents()
{
qApp->processEvents();
while (!finished) {
processEvents();
if (fl_check_forms() == FL_EVENT) {
- lyxerr << "LyX: This shouldn't happen..." << endl;
fl_XNextEvent(&ev);
+ lyxerr << "Received unhandled X11 event" << endl;
+ lyxerr << "Type: 0x" << std::hex << ev.xany.type <<
+ "Target: 0x" << std::hex << ev.xany.window << endl;
}
}
}
+LyXView * GUIRunTime::createMainView(int w, int h)
+{
+ return new XFormsView(w, h);
+}
+
+
+Display * GUIRunTime::x11Display()
+{
+ //return p.device()->x11Display();
+ return fl_get_display();
+}
+
+
+int GUIRunTime::x11Screen()
+{
+ //return p.device()->x11Screen();
+ return fl_screen;
+}
+
+
+Colormap GUIRunTime::x11Colormap()
+{
+ //return p.device()->x11Colormap();
+ return fl_state[fl_get_vclass()].colormap;
+}
+
+
+int GUIRunTime::x11VisualDepth()
+{
+ //return p.device()->x11Depth();
+ return fl_get_visual_depth();
+}
+
+
void GUIRunTime::setDefaults()
{
FL_IOPT cntl;
| FL_PDMenuFontSize
| FL_PDBorderWidth, &cntl);
}
-
MAINTAINERCLEANFILES = $(srcdir)/Makefile.in
noinst_LTLIBRARIES = libqt2.la
BOOST_INCLUDES = -I$(top_srcdir)/boost
+SUBDIRS=ui moc
INCLUDES = -I${top_srcdir}/src/ -I${top_srcdir}/src/frontends/ \
${SIGC_CFLAGS} ${FRONTEND_INCLUDES} $(BOOST_INCLUDES) \
-I$(top_srcdir)/src/frontends/controllers
-DEFINES += -DQT_CLEAN_NAMESPACE
+CXXFLAGS += -DQT_CLEAN_NAMESPACE -DQT_GENUINE_STR
-# moc generated files
-BUILTSOURCES = \
- moc_FileDialog_private.C \
- moc_Qt2Base.C \
- moc_FormCitationDialog.C \
- moc_FormCitationDialogImpl.C \
- moc_FormCopyrightDialog.C \
- moc_FormCopyrightDialogImpl.C \
- moc_FormCreditsDialog.C \
- moc_FormCreditsDialogImpl.C \
- moc_chardlg.C \
- moc_chardlgimpl.C \
- moc_paragraphdlg.C \
- moc_paragraphdlgimpl.C \
- moc_printdlg.C \
- moc_printdlgimpl.C \
- moc_searchdlg.C \
- moc_searchdlgimpl.C \
- moc_tabularcreatedlg.C \
- moc_tabularcreatedlgimpl.C \
- moc_emptytable.C
-
-LYXDATADIRS = dlg
DISTCLEANFILES = $(BUILTSOURCES) *.orig *.rej *~ *.bak core
+include Makefile.dialogs
+
+libqt2_la_DEPENDENCIES = ui/libqt2ui.la moc/libqt2moc.la
+
libqt2_la_OBJADD = \
+ ui/libqt2ui.la \
+ moc/libqt2moc.la \
../controllers/ButtonControllerBase.lo \
../xforms/combox.lo \
../xforms/Color.lo \
+ ../xforms/FloatMenuImpl.lo \
../xforms/FormBaseDeprecated.lo \
../xforms/FormBibitem.lo \
../xforms/FormBibtex.lo \
../xforms/FormBrowser.lo \
- ../xforms/FormDocument.lo \
+ ../xforms/FormDocument.lo \
../xforms/FormError.lo \
../xforms/FormExternal.lo \
../xforms/FormGraphics.lo \
../xforms/form_bibitem.lo \
../xforms/form_bibtex.lo \
../xforms/form_browser.lo \
- ../xforms/form_credits.lo \
../xforms/form_document.lo \
../xforms/form_error.lo \
../xforms/form_external.lo \
ETAGS_ARGS = --lang=c++
libqt2_la_SOURCES = \
- $(BUILTSOURCES) \
+ $(DIALOGSOURCES) \
Dialogs.C \
GUIRunTime.C \
- FormCharacter.C \
- FormCharacter.h \
- chardlg.C \
- chardlg.h \
- chardlgimpl.C \
- chardlgimpl.h \
FileDialog.C \
FileDialog_private.C \
Qt2Base.C \
Qt2Base.h \
- FormCitation.C \
- FormCitation.h \
- FormCitationDialog.C \
- FormCitationDialog.h \
- FormCitationDialogImpl.C \
- FormCitationDialogImpl.h \
- FormCopyright.C \
- FormCopyright.h \
- FormCopyrightDialog.C \
- FormCopyrightDialog.h \
- FormCopyrightDialogImpl.C \
- FormCopyrightDialogImpl.h \
- FormCredits.C \
- FormCredits.h \
- FormCreditsDialog.C \
- FormCreditsDialog.h \
- FormCreditsDialogImpl.C \
- FormCreditsDialogImpl.h \
- FormParagraph.C \
- FormParagraph.h \
- paragraphdlg.C \
- paragraphdlg.h \
- paragraphdlgimpl.C \
- paragraphdlgimpl.h \
- FormPrint.C \
- FormPrint.h \
- printdlg.C \
- printdlg.h \
- printdlgimpl.C \
- printdlgimpl.h \
emptytable.C \
emptytable.h \
- FormSearch.C \
- FormSearch.h \
- searchdlg.C \
- searchdlg.h \
- searchdlgimpl.C \
- searchdlgimpl.h \
- FormSplash.C \
- FormSplash.h \
- FormSplashImpl.C \
- FormSplashImpl.h \
- FormTabularCreate.C \
- FormTabularCreate.h \
- tabularcreatedlg.C \
- tabularcreatedlg.h \
- tabularcreatedlgimpl.C \
- tabularcreatedlgimpl.h \
qt2BC.C \
qt2BC.h
-
-# just copied from old lyx repository
-dist-hook:
- for subdir in $(LYXDATADIRS) ; do \
- test -d $(distdir)/$$subdir \
- || mkdir $(distdir)/$$subdir \
- || exit 1; \
- chmod 777 $(distdir)/$$subdir; \
- list=`(cd $(srcdir)/$$subdir && ls -1 | grep -v CVS)`; \
- echo $$list ; \
- for fil in $$list ; do \
- cp -p $(srcdir)/$$subdir/$$fil $(distdir)/$$subdir ; \
- done ; \
- done
-
-moc_%.C: %.h
- $(MOC) -o $@ $<
-
-FormCitation.C: FormCitationDialog.h
-FormCitationDialog.h: FormCitationDialog.ui
- $(UIC) -o $@ $<
-FormCitationDialog.C: FormCitationDialog.ui
- $(UIC) -impl FormCitationDialog.h -o $@ $<
-
-FormCopyright.C: FormCopyrightDialogImpl.h
-FormCopyrightDialog.h: FormCopyrightDialog.ui
- $(UIC) -o $@ $<
-FormCopyrightDialog.C: FormCopyrightDialog.ui
- $(UIC) -impl FormCopyrightDialog.h -o $@ $<
-
-FormCredits.C: FormCreditsDialogImpl.h
-FormCreditsDialog.h: FormCreditsDialog.ui
- $(UIC) -o $@ $<
-FormCreditsDialog.C: FormCreditsDialog.ui
- $(UIC) -impl FormCreditsDialog.h -o $@ $<
-
-FormParagraph.C: paragraphdlg.h
-paragraphdlg.h: paragraphdlg.ui
- $(UIC) -o $@ $<
-paragraphdlg.C: paragraphdlg.ui
- $(UIC) -impl paragraphdlg.h -o $@ $<
-
-FormPrint.C: printdlg.h
-printdlg.h: printdlg.ui
- $(UIC) -o $@ $<
-printdlg.C: printdlg.ui
- $(UIC) -impl printdlg.h -o $@ $<
-
-FormTabularCreate.C: tabularcreatedlg.h
-tabularcreatedlg.h: tabularcreatedlg.ui
- $(UIC) -o $@ $<
-tabularcreatedlg.C: tabularcreatedlg.ui
- $(UIC) -impl tabularcreatedlg.h -o $@ $<
-
-FormCharacter.C: chardlg.h
-chardlg.h: chardlg.ui
- $(UIC) -o $@ $<
-chardlg.C: chardlg.ui
- $(UIC) -impl chardlg.h -o $@ $<
-
-FormSearch.C: searchdlg.h
-searchdlg.h: searchdlg.ui
- $(UIC) -o $@ $<
-searchdlg.C: searchdlg.ui
- $(UIC) -impl searchdlg.h -o $@ $<
--- /dev/null
+# this is the master file from which the dialog file rules are generated
+
+DIALOGS = \
+ QAbout \
+ QCharacter \
+ QCitation \
+ QDocument \
+ QIndex \
+ QParagraph \
+ QPrint \
+ QRef \
+ QSearch \
+ QSplash \
+ QTabularCreate \
+ QToc \
+ QURL
+
+DIALOGSOURCES = \
+ QAbout.h QAboutDialog.h \
+ QAbout.C QAboutDialog.C \
+ QCharacter.h QCharacterDialog.h \
+ QCharacter.C QCharacterDialog.C \
+ QCitation.h QCitationDialog.h \
+ QCitation.C QCitationDialog.C \
+ QDocument.h QDocumentDialog.h \
+ QDocument.C QDocumentDialog.C \
+ QIndex.h QIndexDialog.h \
+ QIndex.C QIndexDialog.C \
+ QParagraph.h QParagraphDialog.h \
+ QParagraph.C QParagraphDialog.C \
+ QPrint.h QPrintDialog.h \
+ QPrint.C QPrintDialog.C \
+ QRef.h QRefDialog.h \
+ QRef.C QRefDialog.C \
+ QSearch.h QSearchDialog.h \
+ QSearch.C QSearchDialog.C \
+ QSplash.h QSplashDialog.h \
+ QSplash.C QSplashDialog.C \
+ QTabularCreate.h QTabularCreateDialog.h \
+ QTabularCreate.C QTabularCreateDialog.C \
+ QToc.h QTocDialog.h \
+ QToc.C QTocDialog.C \
+ QURL.h QURLDialog.h \
+ QURL.C QURLDialog.C
+
+MOCDIALOGS = \
+ QAboutDialog_moc.C \
+ QCharacterDialog_moc.C \
+ QCitationDialog_moc.C \
+ QDocumentDialog_moc.C \
+ QIndexDialog_moc.C \
+ QParagraphDialog_moc.C \
+ QPrintDialog_moc.C \
+ QRefDialog_moc.C \
+ QSearchDialog_moc.C \
+ QSplashDialog_moc.C \
+ QTabularCreateDialog_moc.C \
+ QTocDialog_moc.C \
+ QURLDialog_moc.C
+
+UIDIALOGS = \
+ QAboutDialogBase.h \
+ QAboutDialogBase.C \
+ QCharacterDialogBase.h \
+ QCharacterDialogBase.C \
+ QCitationDialogBase.h \
+ QCitationDialogBase.C \
+ QDocumentDialogBase.h \
+ QDocumentDialogBase.C \
+ QIndexDialogBase.h \
+ QIndexDialogBase.C \
+ QParagraphDialogBase.h \
+ QParagraphDialogBase.C \
+ QPrintDialogBase.h \
+ QPrintDialogBase.C \
+ QRefDialogBase.h \
+ QRefDialogBase.C \
+ QSearchDialogBase.h \
+ QSearchDialogBase.C \
+ QTabularCreateDialogBase.h \
+ QTabularCreateDialogBase.C \
+ QTocDialogBase.h \
+ QTocDialogBase.C \
+ QURLDialogBase.h \
+ QURLDialogBase.C
+
+UIMOCDIALOGS = \
+ QAboutDialogBase_moc.C \
+ QCharacterDialogBase_moc.C \
+ QCitationDialogBase_moc.C \
+ QDocumentDialogBase_moc.C \
+ QIndexDialogBase_moc.C \
+ QParagraphDialogBase_moc.C \
+ QPrintDialogBase_moc.C \
+ QRefDialogBase_moc.C \
+ QSearchDialogBase_moc.C \
+ QTabularCreateDialogBase_moc.C \
+ QTocDialogBase_moc.C \
+ QURLDialogBase_moc.C
--- /dev/null
+/**
+ * \file QAbout.C
+ * Copyright 2001 the LyX Team
+ * Read the file COPYING
+ *
+ * \author Kalle Dalheimer <kalle@klaralvdalens-datakonsult.se>
+ */
+
+#include <config.h>
+
+#include "gettext.h"
+#include "QAboutDialog.h"
+
+#include <qlabel.h>
+#include <qpushbutton.h>
+#include "QtLyXView.h"
+
+#include "ButtonControllerBase.h"
+#include "qt2BC.h"
+#include "ControlAboutlyx.h"
+#include "QAbout.h"
+
+typedef Qt2CB<ControlAboutlyx, Qt2DB<QAboutDialog> > base_class;
+
+QAbout::QAbout(ControlAboutlyx & c)
+ : base_class(c, _("About LyX"))
+{
+}
+
+
+void QAbout::build()
+{
+ dialog_.reset(new QAboutDialog());
+ connect(dialog_.get()->closePB, SIGNAL(clicked()),
+ this, SLOT(slotCancel()));
+
+ dialog_->copyrightLA->setText(controller().getCopyright().c_str());
+ dialog_->licenseLA->setText(controller().getLicense().c_str());
+ dialog_->disclaimerLA->setText(controller().getDisclaimer().c_str());
+
+ // Manage the cancel/close button
+ bc().setCancel(dialog_->closePB);
+ bc().refresh();
+}
--- /dev/null
+// -*- C++ -*-
+/**
+ * \file QAbout.h
+ * Copyright 2001 the LyX Team
+ * Read the file COPYING
+ *
+ * \author Kalle Dalheimer <kalle@klaralvdalens-datakonsult.se>
+ */
+
+#ifndef FORMABOUT_H
+#define FORMABOUT_H
+
+#include "Qt2Base.h"
+#include "boost/utility.hpp"
+
+class Dialogs;
+class LyXView;
+class QAboutDialog;
+class ControlAboutlyx;
+
+class QAbout
+ : public Qt2CB<ControlAboutlyx, Qt2DB<QAboutDialog> >
+{
+public:
+ QAbout(ControlAboutlyx &);
+
+private:
+ /// not needed
+ virtual void apply() {}
+ /// not needed
+ virtual void update() {}
+ // build the dialog
+ virtual void build();
+};
+
+#endif // FORMABOUT_H
--- /dev/null
+/**
+ * \file QAboutDialog.C
+ * Copyright 2001 the LyX Team
+ * Read the file COPYING
+ *
+ * \author Kalle Dalheimer <kalle@klaralvdalens-datakonsult.se>
+ */
+
+#include "QAboutDialog.h"
+
+QAboutDialog::QAboutDialog(QWidget * parent, const char * name, bool modal, WFlags fl)
+ : QAboutDialogBase(parent, name, modal, fl)
+{
+}
+
+
+QAboutDialog::~QAboutDialog()
+{
+}
--- /dev/null
+/**
+ * \file QAboutDialog.h
+ * Copyright 2001 the LyX Team
+ * Read the file COPYING
+ *
+ * \author Kalle Dalheimer <kalle@klaralvdalens-datakonsult.se>
+ */
+
+#ifndef QABOUTDIALOG_H
+#define QABOUTDIALOG_H
+#include "ui/QAboutDialogBase.h"
+
+class QAboutDialog : public QAboutDialogBase
+{
+Q_OBJECT
+public:
+ QAboutDialog(QWidget * parent = 0, const char * name = 0, bool modal = FALSE, WFlags fl = 0);
+ ~QAboutDialog();
+};
+
+#endif // QABOUTDIALOG_H
--- /dev/null
+/**
+ * \file QCharacter.C
+ * Copyright 2001 The LyX Team.
+ * See the file COPYING.
+ *
+ * \author Edwin Leuven, leuven@fee.uva.nl
+ */
+
+#include <config.h>
+
+#include "gettext.h"
+#include "QCharacterDialog.h"
+#include "QCharacter.h"
+#include "bufferview_funcs.h"
+#include "Dialogs.h"
+#include "Liason.h"
+#include "QtLyXView.h"
+#include "buffer.h"
+#include "lyxtext.h"
+#include "language.h"
+#include "support/lstrings.h"
+#include "BufferView.h"
+
+using SigC::slot;
+using Liason::setMinibuffer;
+
+QCharacter::QCharacter(LyXView *v, Dialogs *d)
+ : dialog_(0), lv_(v), d_(d), h_(0), u_(0)
+{
+ d->showCharacter.connect(slot(this, &QCharacter::show));
+ // for LFUN_FREE
+ d->setUserFreeFont.connect(slot(this, &QCharacter::apply));
+}
+
+
+QCharacter::~QCharacter()
+{
+ delete dialog_;
+}
+
+
+void QCharacter::apply()
+{
+ if (!lv_->view()->available() || !dialog_)
+ return;
+
+ LyXFont font = dialog_->getChar();
+
+ if (dialog_->langItem()==1)
+ font.setLanguage(lv_->buffer()->params.language);
+
+ toggleAndShow(lv_->view(), font, dialog_->toggleAll());
+ lv_->view()->setState();
+ lv_->buffer()->markDirty();
+ setMinibuffer(lv_, _("Character set"));
+}
+
+
+void QCharacter::show()
+{
+ if (!dialog_) {
+ dialog_ = new QCharacterDialog(this, 0, _("Character Settings"), false);
+
+ // add languages
+ for (Languages::const_iterator cit = languages.begin();
+ cit != languages.end(); ++cit) {
+ string const language = cit->second.lang();
+ dialog_->lang->insertItem(tostr(language).c_str(), -1);
+ }
+ }
+
+ if (!dialog_->isVisible()) {
+ h_ = d_->hideBufferDependent.connect(slot(this, &QCharacter::hide));
+ u_ = d_->updateBufferDependent.connect(slot(this, &QCharacter::update));
+ }
+
+ dialog_->raise();
+ dialog_->setActiveWindow();
+ update();
+ dialog_->show();
+}
+
+
+void QCharacter::close()
+{
+ h_.disconnect();
+ u_.disconnect();
+}
+
+
+void QCharacter::hide()
+{
+ dialog_->hide();
+ close();
+}
+
+
+void QCharacter::update(bool)
+{
+ if (!lv_->view()->available())
+ return;
+
+ dialog_->setReadOnly(lv_->buffer()->isReadonly());
+}
--- /dev/null
+// -*- C++ -*-
+/**
+ * \file QCharacter.h
+ * Copyright 2001 The LyX Team.
+ * See the file COPYING.
+ *
+ * \author Edwin Leuven
+ */
+
+#ifndef QCHARACTER_H
+#define QCHARACTER_H
+
+#include "DialogBase.h"
+
+class LyXView;
+class Dialogs;
+class QCharacterDialog;
+
+class QCharacter : public DialogBase {
+public:
+ ///
+ QCharacter(LyXView *, Dialogs *);
+ ///
+ ~QCharacter();
+
+ /// Apply changes.
+ void apply();
+ /// Close connections.
+ void close();
+
+private:
+
+ /// Show the dialog.
+ void show();
+ /// Hide the dialog.
+ void hide();
+ /// Update the dialog.
+ void update(bool switched = false);
+
+ /// Real GUI implementation.
+ QCharacterDialog * dialog_;
+
+ /// the LyXView we belong to.
+ LyXView * lv_;
+
+ /** Which Dialogs do we belong to?
+ * Used so we can get at the signals we have to connect to.
+ */
+ Dialogs * d_;
+
+ /// is the buffer readonly?
+ bool readonly;
+
+ /// Hide connection.
+ SigC::Connection h_;
+
+ /// Update connection.
+ SigC::Connection u_;
+};
+
+#endif // QCHARACTER_H
--- /dev/null
+/**
+ * \file QCharacterDialog.C
+ * Copyright 2001 the LyX Team
+ * See the file COPYING.
+ *
+ * \author Edwin Leuven, leuven@fee.uva.nl
+ */
+
+#include "QCharacterDialog.h"
+#include "lyxtext.h"
+#include "language.h"
+
+#include <qcombobox.h>
+#include <qcheckbox.h>
+#include <qpushbutton.h>
+#include <qgroupbox.h>
+
+QCharacterDialog::QCharacterDialog(QCharacter * form, QWidget * parent, const char * name, bool modal, WFlags fl)
+ : QCharacterDialogBase(parent, name, modal, fl), form_(form)
+{
+ setCaption(name);
+}
+
+
+QCharacterDialog::~QCharacterDialog()
+{
+}
+
+
+LyXFont QCharacterDialog::getChar()
+{
+ LyXFont font(LyXFont::ALL_IGNORE);
+
+ switch (family->currentItem()) {
+ case 0: font.setFamily(LyXFont::IGNORE_FAMILY); break;
+ case 1: font.setFamily(LyXFont::INHERIT_FAMILY); break;
+ case 2: font.setFamily(LyXFont::ROMAN_FAMILY); break;
+ case 3: font.setFamily(LyXFont::SANS_FAMILY); break;
+ case 4: font.setFamily(LyXFont::TYPEWRITER_FAMILY); break;
+ }
+
+ switch (series->currentItem()) {
+ case 0: font.setSeries(LyXFont::IGNORE_SERIES); break;
+ case 1: font.setSeries(LyXFont::INHERIT_SERIES); break;
+ case 2: font.setSeries(LyXFont::MEDIUM_SERIES); break;
+ case 3: font.setSeries(LyXFont::BOLD_SERIES); break;
+ }
+
+ switch (shape->currentItem()) {
+ case 0: font.setShape(LyXFont::IGNORE_SHAPE); break;
+ case 1: font.setShape(LyXFont::INHERIT_SHAPE); break;
+ case 2: font.setShape(LyXFont::UP_SHAPE); break;
+ case 3: font.setShape(LyXFont::ITALIC_SHAPE); break;
+ case 4: font.setShape(LyXFont::SLANTED_SHAPE); break;
+ case 5: font.setShape(LyXFont::SMALLCAPS_SHAPE); break;
+ }
+
+ switch (size->currentItem()) {
+ case 0: font.setSize(LyXFont::IGNORE_SIZE); break;
+ case 1: font.setSize(LyXFont::INHERIT_SIZE); break;
+ case 2: font.setSize(LyXFont::SIZE_TINY); break;
+ case 3: font.setSize(LyXFont::SIZE_SCRIPT); break;
+ case 4: font.setSize(LyXFont::SIZE_FOOTNOTE); break;
+ case 5: font.setSize(LyXFont::SIZE_SMALL); break;
+ case 6: font.setSize(LyXFont::SIZE_NORMAL); break;
+ case 7: font.setSize(LyXFont::SIZE_LARGE); break;
+ case 8: font.setSize(LyXFont::SIZE_LARGER); break;
+ case 9: font.setSize(LyXFont::SIZE_LARGEST); break;
+ case 10: font.setSize(LyXFont::SIZE_HUGE); break;
+ case 11: font.setSize(LyXFont::SIZE_HUGER); break;
+ case 12: font.setSize(LyXFont::INCREASE_SIZE); break;
+ case 13: font.setSize(LyXFont::DECREASE_SIZE); break;
+ }
+
+ switch (misc->currentItem()) {
+ case 0: font.setEmph(LyXFont::IGNORE);
+ font.setUnderbar(LyXFont::IGNORE);
+ font.setNoun(LyXFont::IGNORE);
+ // FIXME font.setLatex(LyXFont::IGNORE);
+ break;
+ case 1: font.setEmph(LyXFont::INHERIT);
+ font.setUnderbar(LyXFont::INHERIT);
+ font.setNoun(LyXFont::INHERIT);
+ // FIXME font.setLatex(LyXFont::INHERIT);
+ break;
+ case 2: font.setEmph(LyXFont::TOGGLE); break;
+ case 3: font.setUnderbar(LyXFont::TOGGLE); break;
+ case 4: font.setNoun(LyXFont::TOGGLE); break;
+ case 5: break; // FIXMEfont.setLatex(LyXFont::TOGGLE); break;
+ }
+
+ switch (color->currentItem()) {
+ case 0: font.setColor(LColor::ignore); break;
+ case 1: font.setColor(LColor::inherit); break;
+ case 2: font.setColor(LColor::none); break;
+ case 3: font.setColor(LColor::black); break;
+ case 4: font.setColor(LColor::white); break;
+ case 5: font.setColor(LColor::red); break;
+ case 6: font.setColor(LColor::green); break;
+ case 7: font.setColor(LColor::blue); break;
+ case 8: font.setColor(LColor::cyan); break;
+ case 9: font.setColor(LColor::magenta); break;
+ case 10: font.setColor(LColor::yellow); break;
+ }
+
+ int const pos = lang->currentItem();
+ if (pos == 0) {
+ font.setLanguage(ignore_language);
+ } else if (pos != 1) {
+ font.setLanguage(languages.getLanguage(lang->currentText().latin1()));
+ };
+
+ return font;
+}
+
+
+void QCharacterDialog::closeEvent(QCloseEvent * e)
+{
+ form_->close();
+ e->accept();
+}
+
+
+void QCharacterDialog::setReadOnly(bool readonly)
+{
+ sizeGB->setEnabled(!readonly);
+ charGB->setEnabled(!readonly);
+ miscGB->setEnabled(!readonly);
+ okPB->setEnabled(!readonly);
+ applyPB->setEnabled(!readonly);
+}
--- /dev/null
+/**
+ * \file QCharacterDialog.h
+ * Copyright 2001 the LyX Team
+ * see the file COPYING
+ *
+ * \author Edwin Leuven
+ */
+
+#ifndef QCHARACTERDIALOG_H
+#define QCHARACTERDIALOG_H
+
+#include <config.h>
+
+#include "ui/QCharacterDialogBase.h"
+#include "QCharacter.h"
+
+#include <qevent.h>
+#include <qcheckbox.h>
+#include <qcombobox.h>
+
+class LyXFont;
+
+class QCharacterDialog : public QCharacterDialogBase
+{ Q_OBJECT
+
+public:
+ QCharacterDialog(QCharacter * form, QWidget * parent = 0, const char * name = 0, bool modal = FALSE, WFlags fl = 0);
+ ~QCharacterDialog();
+
+ /// FIXME
+ LyXFont getChar();
+
+ /// return the currently selected language item
+ int langItem() {
+ return lang->currentItem();
+ };
+
+ /// return true if toggle all is selected
+ bool toggleAll() {
+ return toggleall->isChecked();
+ };
+
+ /// set dialog read only
+ void setReadOnly(bool);
+
+protected:
+ void closeEvent(QCloseEvent * e);
+
+private:
+ QCharacter * form_;
+
+protected slots:
+
+ void apply_adaptor() {
+ form_->apply();
+ }
+
+ void cancel_adaptor() {
+ form_->close();
+ hide();
+ }
+
+ void close_adaptor() {
+ form_->apply();
+ form_->close();
+ hide();
+ }
+
+};
+
+#endif // QCHARACTERDIALOG_H
--- /dev/null
+/**
+ * \file QCitation.C
+ * Copyright 2001 the LyX Team
+ * Read the file COPYING
+ *
+ * \author Angus Leeming <a.leeming@ic.ac.uk>
+ * \author Kalle Dalheimer <kalle@klaralvdalens-datakonsult.se>
+ */
+
+#include <config.h>
+
+#ifdef __GNUG__
+#pragma implementation
+#endif
+
+#include "QCitationDialog.h"
+#include "QCitation.h"
+
+#include <qcheckbox.h>
+#include <qcombobox.h>
+#include <qlineedit.h>
+#include <qlistbox.h>
+#include <qmultilineedit.h>
+#include <qpushbutton.h>
+
+#include "QtLyXView.h"
+#include "qt2BC.h"
+#include "ControlCitation.h"
+#include "gettext.h"
+#include "support/lstrings.h"
+#include "helper_funcs.h"
+
+
+using std::find;
+using std::max;
+using std::min;
+using std::pair;
+using std::sort;
+using std::vector;
+
+typedef Qt2CB<ControlCitation, Qt2DB<QCitationDialog> > base_class;
+
+QCitation::QCitation(ControlCitation & c)
+ : base_class(c, _("Citation"))
+{}
+
+
+void QCitation::apply()
+{
+ controller().params().setCmdName("cite");
+ controller().params().setContents(getStringFromVector(citekeys));
+
+ string const after = dialog_->textAfterED->text().latin1();
+ controller().params().setOptions(after);
+}
+
+
+void QCitation::hide()
+{
+ citekeys.clear();
+ bibkeys.clear();
+
+ Qt2Base::hide();
+}
+
+
+void QCitation::build()
+{
+ dialog_.reset(new QCitationDialog(this));
+
+ dialog_->searchTypeCB->setChecked(false);
+ dialog_->searchCaseCB->setChecked(false);
+
+ // Manage the ok, apply, restore and cancel/close buttons
+ bc().setOK(dialog_->okPB);
+ bc().setApply(dialog_->applyPB);
+ bc().setCancel(dialog_->cancelPB);
+ bc().setRestore(dialog_->restorePB);
+
+ bc().addReadOnly(dialog_->addPB);
+ bc().addReadOnly(dialog_->delPB);
+ bc().addReadOnly(dialog_->upPB);
+ bc().addReadOnly(dialog_->downPB);
+ bc().addReadOnly(dialog_->citationStyleCO);
+ bc().addReadOnly(dialog_->textBeforeED);
+ bc().addReadOnly(dialog_->textAfterED);
+}
+
+
+void QCitation::update()
+{
+ // Make the list of all available bibliography keys
+ bibkeys = biblio::getKeys(controller().bibkeysInfo());
+ updateBrowser(dialog_->bibLB, bibkeys);
+
+ // Ditto for the keys cited in this inset
+ citekeys = getVectorFromString(controller().params().getContents());
+ updateBrowser(dialog_->citeLB, citekeys);
+
+ // No keys have been selected yet, so...
+ dialog_->infoML->clear();
+ setBibButtons(OFF);
+ setCiteButtons(OFF);
+
+ dialog_->textAfterED->setText( controller().params().getOptions().c_str());
+}
+
+
+void QCitation::updateBrowser(QListBox* browser,
+ vector<string> const & keys) const
+{
+ browser->clear();
+
+ for (vector<string>::const_iterator it = keys.begin();
+ it < keys.end(); ++it) {
+ string const key = frontStrip(strip(*it));
+ // FIXME: why the .empty() test ?
+ if(!key.empty())
+ browser->insertItem(key.c_str());
+ }
+}
+
+
+void QCitation::setBibButtons(State status) const
+{
+ dialog_->addPB->setEnabled((status == ON));
+}
+
+
+void QCitation::setCiteButtons(State status) const
+{
+ int const sel = dialog_->citeLB->currentItem();
+ int const maxline = dialog_->citeLB->count() - 1;
+ bool const activate = (status == ON);
+ bool const activate_up = (activate && sel != 0);
+ bool const activate_down = (activate && sel != maxline);
+
+ dialog_->delPB->setEnabled(activate);
+ dialog_->upPB->setEnabled(activate_up);
+ dialog_->downPB->setEnabled(activate_down);
+}
--- /dev/null
+// -*- C++ -*-
+/**
+ * \file QCitation.h
+ * Copyright 2001 the LyX Team
+ * Read the file COPYING
+ *
+ * \author Angus Leeming <a.leeming@ic.ac.uk>
+ * \author Kalle Dalheimer <kalle@klaralvdalens-datakonsult.se>
+ */
+
+#ifndef QCITATION_H
+#define QCITATION_H
+
+#ifdef __GNUG__
+#pragma interface
+#endif
+
+class QListBox;
+
+#include "Qt2Base.h"
+
+class ControlCitation;
+class QCitationDialog;
+
+class QCitation : public Qt2CB<ControlCitation, Qt2DB<QCitationDialog> > {
+ friend class QCitationDialog;
+
+public:
+ ///
+ QCitation(ControlCitation &);
+
+private:
+ ///
+ enum State {
+ ///
+ ON,
+ ///
+ OFF
+ };
+
+ /// Set the Params variable for the Controller.
+ virtual void apply();
+ /// Build the dialog.
+ virtual void build();
+ /// Hide the dialog.
+ virtual void hide();
+ /// Update dialog before/whilst showing it.
+ virtual void update();
+
+ void updateBrowser(QListBox*, std::vector<string> const &) const;
+ ///
+ void setBibButtons(State) const;
+ ///
+ void setCiteButtons(State) const;
+
+ ///
+ std::vector<string> citekeys;
+ ///
+ std::vector<string> bibkeys;
+};
+
+#endif // QCITATION_H
--- /dev/null
+/**
+ * \file QCitationDialog.C
+ * Copyright 2001 the LyX Team
+ * Read the file COPYING
+ *
+ * \author Kalle Dalheimer <kalle@klaralvdalens-datakonsult.se>
+ */
+
+#include <config.h>
+
+#include "QCitationDialog.h"
+#include "Dialogs.h"
+#include "QCitation.h"
+#include "qt2BC.h"
+#include "controllers/ControlCitation.h"
+
+#include <qcheckbox.h>
+#include <qlineedit.h>
+#include <qlistbox.h>
+#include <qmultilineedit.h>
+#include <qpushbutton.h>
+
+#include "QtLyXView.h"
+
+#include <algorithm>
+#include "buffer.h"
+
+using std::vector;
+using std::find;
+using std::max;
+
+QCitationDialog::QCitationDialog(QCitation * form, QWidget * parent, const char * name, bool modal, WFlags fl)
+ : QCitationDialogBase(parent, name, modal, fl),
+ form_(form)
+{
+ connect(okPB, SIGNAL(clicked()),
+ form, SLOT(slotOK()));
+ connect(cancelPB, SIGNAL(clicked()),
+ form, SLOT(slotCancel()));
+ connect(restorePB, SIGNAL(clicked()),
+ form, SLOT(slotRestore()));
+ connect(applyPB, SIGNAL(clicked()),
+ form, SLOT(slotApply()));
+}
+
+
+QCitationDialog::~QCitationDialog()
+{
+}
+
+
+void QCitationDialog::slotBibSelected( int sel )
+{
+ biblio::InfoMap const & theMap = form_->controller().bibkeysInfo();
+
+ citeLB->clearSelection();
+
+ // FIXME: why would this happen ?
+ if (sel < 0 || sel >= (int)form_->bibkeys.size()) {
+ return;
+ }
+
+ // Put into browser_info the additional info associated with
+ // the selected browser_bib key
+ infoML->clear();
+
+ infoML->setText(biblio::getInfo(theMap, form_->bibkeys[sel]).c_str());
+
+ // Highlight the selected browser_bib key in browser_cite if
+ // present
+ vector<string>::const_iterator cit =
+ std::find(form_->citekeys.begin(), form_->citekeys.end(),
+ form_->bibkeys[sel]);
+
+ if (cit != form_->citekeys.end()) {
+ int const n = int(cit - form_->citekeys.begin());
+ citeLB->setSelected(n, true);
+ citeLB->setTopItem(n);
+ }
+
+ if (!form_->controller().isReadonly()) {
+ if (cit != form_->citekeys.end()) {
+ form_->setBibButtons(QCitation::OFF);
+ form_->setCiteButtons(QCitation::ON);
+ } else {
+ form_->setBibButtons(QCitation::ON);
+ form_->setCiteButtons(QCitation::OFF);
+ }
+ }
+}
+
+
+void QCitationDialog::slotCiteSelected(int sel)
+{
+ biblio::InfoMap const & theMap = form_->controller().bibkeysInfo();
+
+ // FIXME: why would this happen ?
+ if (sel < 0 || sel >= (int)form_->citekeys.size()) {
+ return;
+ }
+
+ if (!form_->controller().isReadonly()) {
+ form_->setBibButtons(QCitation::OFF);
+ form_->setCiteButtons(QCitation::ON);
+ }
+
+ // Highlight the selected browser_cite key in browser_bib
+ vector<string>::const_iterator cit =
+ std::find(form_->bibkeys.begin(),
+ form_->bibkeys.end(), form_->citekeys[sel]);
+
+ if (cit != form_->bibkeys.end()) {
+ int const n = int(cit - form_->bibkeys.begin());
+ bibLB->setSelected(n, true);
+ bibLB->setTopItem(n);
+
+ // Put into browser_info the additional info associated
+ // with the selected browser_cite key
+ infoML->clear();
+ infoML->setText(biblio::getInfo(theMap, form_->bibkeys[sel]).c_str());
+ }
+}
+
+
+void QCitationDialog::slotAddClicked()
+{
+ int const sel = bibLB->currentItem();
+
+ // FIXME: why ?
+ if (sel < 0 || sel >= (int)form_->bibkeys.size()) {
+ return;
+ }
+
+ // Add the selected browser_bib key to browser_cite
+ citeLB->insertItem(form_->bibkeys[sel].c_str());
+ form_->citekeys.push_back(form_->bibkeys[sel]);
+
+ int const n = int(form_->citekeys.size());
+ citeLB->setSelected(n - 1, true);
+
+ form_->setBibButtons(QCitation::OFF);
+ form_->setCiteButtons(QCitation::ON);
+}
+
+
+void QCitationDialog::slotDelClicked()
+{
+ int const sel = citeLB->currentItem();
+
+ // FIXME: why ?
+ if (sel < 0 || sel >= (int)form_->citekeys.size()) {
+ return;
+ }
+
+ // Remove the selected key from browser_cite
+ citeLB->removeItem(sel);
+ form_->citekeys.erase(form_->citekeys.begin() + sel);
+
+ form_->setBibButtons(QCitation::ON);
+ form_->setCiteButtons(QCitation::OFF);
+}
+
+
+void QCitationDialog::slotUpClicked()
+{
+ int const sel = citeLB->currentItem();
+
+ // FIXME: why ?
+ if (sel < 1 || sel >= (int)form_->citekeys.size()) {
+ return;
+ }
+
+ // Move the selected key up one line
+ vector<string>::iterator it = form_->citekeys.begin() + sel;
+ string const tmp = *it;
+
+ citeLB->removeItem(sel);
+ form_->citekeys.erase(it);
+
+ citeLB->insertItem(tmp.c_str(), sel - 1);
+ citeLB->setSelected(sel - 1, true);
+ form_->citekeys.insert(it - 1, tmp);
+ form_->setCiteButtons(QCitation::ON);
+}
+
+
+void QCitationDialog::slotDownClicked()
+{
+ int const sel = citeLB->currentItem();
+
+ // FIXME: ?
+ if (sel < 0 || sel >= (int)form_->citekeys.size() - 1) {
+ return;
+ }
+
+ // Move the selected key down one line
+ vector<string>::iterator it = form_->citekeys.begin() + sel;
+ string const tmp = *it;
+
+ citeLB->removeItem(sel);
+ form_->citekeys.erase(it);
+
+ citeLB->insertItem(tmp.c_str(), sel + 1);
+ citeLB->setSelected(sel + 1, true);
+ form_->citekeys.insert(it + 1, tmp);
+ form_->setCiteButtons(QCitation::ON);
+}
+
+
+void QCitationDialog::slotPreviousClicked()
+{
+ doFind(biblio::BACKWARD);
+}
+
+
+void QCitationDialog::slotNextClicked()
+{
+ doFind(biblio::FORWARD);
+}
+
+
+void QCitationDialog::doFind(biblio::Direction const dir)
+{
+ biblio::InfoMap const & theMap = form_->controller().bibkeysInfo();
+ string const str = searchED->text().latin1();
+
+ biblio::Search const type =
+ searchTypeCB->isChecked() ?
+ biblio::REGEX : biblio::SIMPLE;
+
+ vector<string>::const_iterator start = form_->bibkeys.begin();
+ int const sel = bibLB->currentItem();
+ if (sel >= 0 && sel <= int(form_->bibkeys.size()-1))
+ start += sel;
+
+ // Find the NEXT instance...
+ if (dir == biblio::FORWARD)
+ start += 1;
+ else
+ start -= 1;
+
+ bool const caseSensitive = searchCaseCB->isChecked();
+
+ vector<string>::const_iterator const cit =
+ biblio::searchKeys(theMap, form_->bibkeys, str,
+ start, type, dir, caseSensitive);
+
+ if (cit == form_->bibkeys.end()) {
+ return;
+ }
+
+ int const found = int(cit - form_->bibkeys.begin());
+ if (found == sel) {
+ return;
+ }
+
+ // Update the display
+ int const top = max(found - 5, 1);
+ bibLB->setTopItem(top);
+ bibLB->setSelected(found, true);
+ slotBibSelected(0);
+}
+
+
+void QCitationDialog::slotCitationStyleSelected( int )
+{
+}
+
+
+void QCitationDialog::slotTextBeforeReturn()
+{
+}
+
+
+void QCitationDialog::slotTextAfterReturn()
+{
+}
--- /dev/null
+/**
+ * \file QCitationDialog.h
+ * Copyright 2001 the LyX Team
+ * Read the file COPYING
+ *
+ * \author Kalle Dalheimer <kalle@klaralvdalens-datakonsult.se>
+ */
+
+#ifndef QCITATIONDIALOG_H
+#define QCITATIONDIALOG_H
+
+class QCitation;
+
+#include <config.h>
+#include "support/lstrings.h"
+
+#include "ui/QCitationDialogBase.h"
+#include "controllers/biblio.h"
+
+class QCitationDialog : public QCitationDialogBase
+{ Q_OBJECT
+
+public:
+ QCitationDialog(QCitation * form, QWidget * parent = 0, const char * name = 0, bool modal = FALSE, WFlags fl = 0);
+ ~QCitationDialog();
+
+protected slots:
+ virtual void slotBibSelected(int sel);
+ virtual void slotCiteSelected(int sel);
+ virtual void slotAddClicked();
+ virtual void slotDelClicked();
+ virtual void slotUpClicked();
+ virtual void slotDownClicked();
+ virtual void slotPreviousClicked();
+ virtual void slotNextClicked();
+ virtual void slotCitationStyleSelected(int);
+ virtual void slotTextBeforeReturn();
+ virtual void slotTextAfterReturn();
+
+private:
+ void doFind(biblio::Direction dir);
+
+private:
+ QCitation * form_;
+};
+
+#endif // QCITATIOINDIALOG_H
--- /dev/null
+/**
+ * \file QDocument.C
+ * Copyright 2001 the LyX Team
+ * Read the file COPYING
+ *
+ * \author Kalle Dalheimer <kalle@klaralvdalens-datakonsult.se>
+ */
+
+#include <config.h>
+
+#ifdef __GNUG_
+#pragma implementation
+#endif
+
+#include "QDocument.h"
+#include "QDocumentDialog.h"
+
+#include "lyx_gui_misc.h"
+
+#include "Dialogs.h"
+#include "layout.h"
+#include "tex-strings.h"
+#include "bufferparams.h"
+#include "insets/insetquotes.h"
+#include "vspace.h"
+#include "support/filetools.h"
+#include "language.h"
+#include "BufferView.h"
+#include "buffer.h"
+#include "Liason.h"
+#include "CutAndPaste.h"
+#include "bufferview_funcs.h"
+
+#include <qcombobox.h>
+#include <qlineedit.h>
+#include <qradiobutton.h>
+#include <qspinbox.h>
+
+using Liason::setMinibuffer;
+using SigC::slot;
+
+typedef Qt2CB<ControlDocument, Qt2DB<QDocumentDialog> > base_class;
+
+#if 0
+QDocument::QDocument(ControlDocument & c)
+ : base_class(c, _("Document Settings"))
+{
+}
+#endif
+
+
+void QDocument::build()
+{
+ int n;
+
+ // the tabbed folder
+ //dialog_.reset(new QDocumentDialog());
+
+#if 0
+ // Manage the restore, ok, apply, restore and cancel/close buttons
+ bc().setOK(dialog_->okPB);
+ bc().setApply(dialog_->applyPB);
+ bc().setCancel(dialog_->cancelPB);
+ bc().setRestore(dialog_->restorePB);
+ bc().refresh();
+
+ // the document paper page
+ QDocumentDialog * dialog = dialog_.get();
+ dialog->papersize2CO->insertItem( _( "Default" ) );
+ dialog->papersize2CO->insertItem( _( "Custom" ) );
+ dialog->papersize2CO->insertItem( _( "USletter" ) );
+ dialog->papersize2CO->insertItem( _( "USlegal" ) );
+ dialog->papersize2CO->insertItem( _( "USexecutive" ) );
+ dialog->papersize2CO->insertItem( _( "A3" ) );
+ dialog->papersize2CO->insertItem( _( "A4" ) );
+ dialog->papersize2CO->insertItem( _( "A5" ) );
+ dialog->papersize2CO->insertItem( _( "B3" ) );
+ dialog->papersize2CO->insertItem( _( "B4" ) );
+ dialog->papersize2CO->insertItem( _( "B5" ) );
+
+ dialog->paperPackageCO->insertItem( _( "None" ) );
+ dialog->paperPackageCO->insertItem( _( "A4 small Margins (only portrait)" ) );
+ dialog->paperPackageCO->insertItem( _( "A4 very small Margins (only portrait)" ) );
+ dialog->paperPackageCO->insertItem( _( "A4 very wide margins (only portrait)" ) );
+
+ bc().addReadOnly (dialog->paperPackageCO);
+ bc().addReadOnly (dialog->orientationBG);
+ bc().addReadOnly (dialog->portraitRB);
+ bc().addReadOnly (dialog->landscapeRB);
+ bc().addReadOnly (dialog->papersize2CO);
+ bc().addReadOnly (dialog->useGeometryCB);
+ bc().addReadOnly (dialog->customWidthED);
+ bc().addReadOnly (dialog->customHeightED);
+ bc().addReadOnly (dialog->topMarginED);
+ bc().addReadOnly (dialog->bottomMarginED);
+ bc().addReadOnly (dialog->leftMarginED);
+ bc().addReadOnly (dialog->rightMarginED);
+ bc().addReadOnly (dialog->headHeightED);
+ bc().addReadOnly (dialog->headSepED);
+ bc().addReadOnly (dialog->footSkipED);
+
+ // the document page
+ for (LyXTextClassList::const_iterator cit = textclasslist.begin();
+ cit != textclasslist.end(); ++cit) {
+ docClassCO->insertItem( (*cit).description().c_str() );
+ }
+
+ dialog->docSpacingCO->insertItem( _( "Single" ) );
+ dialog->docSpacingCO->insertItem( _( "OneHalf" ) );
+ dialog->docSpacingCO->insertItem( _( "Double" ) );
+ dialog->docSpacingCO->insertItem( _( "Other" ) );
+
+ dialog->docFontSizeCO->insertItem( _( "default" ) );
+ dialog->docFontSizeCO->insertItem( _( "10" ) );
+ dialog->docFontSizeCO->insertItem( _( "11" ) );
+ dialog->docFontSizeCO->insertItem( _( "12" ) );
+ for (n=0; tex_fonts[n][0]; ++n) {
+ dialog->docFontsCO->insertItem( tex_fonts[n] );
+ }
+
+ dialog->docPagestyleCO->insertItem( _( "default" ) );
+ dialog->docPagestyleCO->insertItem( _( "empty" ) );
+ dialog->docPagestyleCO->insertItem( _( "plain" ) );
+ dialog->docPagestyleCO->insertItem( _( "headings" ) );
+ dialog->docPagestyleCO->insertItem( _( "fancy" ) );
+
+ dialog->docSkipCO->insertItem( _( "Smallskip" ) );
+ dialog->docSkipCO->insertItem( _( "Medskip" ) );
+ dialog->docSkipCO->insertItem( _( "Bigskip" ) );
+ dialog->docSkipCO->insertItem( _( "Length" ) );
+
+ bc().addReadOnly (dialog->docIndentRB);
+ bc().addReadOnly (dialog->docSkipRB);
+
+ bc().addReadOnly (dialog->docPagestyleCO);
+ bc().addReadOnly (dialog->docFontsCO);
+ bc().addReadOnly (dialog->docFontsizeCO);
+ bc().addReadOnly (dialog->docSidesOneRB);
+ bc().addReadOnly (dialog->docSidesTwoRB);
+ bc().addReadOnly (dialog->docColumnsOneRB);
+ bc().addReadOnly (dialog->docColumnsTwoRB);
+ bc().addReadOnly (dialog->docExtraED);
+ bc().addReadOnly (dialog->docSkipED);
+ bc().addReadOnly (dialog->docSkipCO);
+ bc().addReadOnly (dialog->docSpacingCO);
+ bc().addReadOnly (dialog->docSpacingED);
+
+ // the document language page
+ dialog->inputEncCO->insertItem( _( "default" ) );
+ dialog->inputEncCO->insertItem( _( "auto" ) );
+ dialog->inputEncCO->insertItem( _( "latin1" ) );
+ dialog->inputEncCO->insertItem( _( "latin2" ) );
+ dialog->inputEncCO->insertItem( _( "latin5" ) );
+ dialog->inputEncCO->insertItem( _( "latin9" ) );
+ dialog->inputEncCO->insertItem( _( "koi8-r" ) );
+ dialog->inputEncCO->insertItem( _( "koi8-u" ) );
+ dialog->inputEncCO->insertItem( _( "cp866" ) );
+ dialog->inputEncCO->insertItem( _( "cp1251" ) );
+ dialog->inputEncCO->insertItem( _( "iso88595" ) );
+
+ for (Languages::const_iterator cit = languages.begin();
+ cit != languages.end(); ++cit) {
+ dialog->languageCO->insertItem( (*cit).second.lang() );
+ }
+
+ dialog->quotesLanguageCO->insertItem( _( "``text''" ) );
+ dialog->quotesLanguageCO->insertItem( _( "''text''" ) );
+ dialog->quotesLanguageCO->insertItem( _( ",,text``" ) );
+ dialog->quotesLanguageCO->insertItem( _( ",,text''" ) );
+ dialog->quotesLanguageCO->insertItem( _( "«text»" ) );
+ dialog->quotesLanguageCO->insertItem( _( "»text«" ) );
+
+ bc().addReadOnly (dialog->inputEncCO);
+
+ // the document options page
+ dialog->secNumDepthSB->setRange( -2, 5 );
+ dialog->tocDepthSB->setRange( -1, 5 );
+ dialog->secNumDepthSB->setSteps( 1, 1 );
+ dialog->tocDepthSB->setRange( 1, 1 );
+ for (n=0; tex_graphics[n][0]; ++n) {
+ dialog->postscriptDriverCO->insertItem( tex_graphics[n] );
+ }
+
+ bc().addReadOnly (dialog->secNumDepthSB);
+ bc().addReadOnly (dialog->tocDepthSB);
+ bc().addReadOnly (dialog->useAmsMathCB);
+ bc().addReadOnly (dialog->floatPlacementED);
+ bc().addReadOnly (dialog->postscriptDriverCO);
+
+ // the document bullets page
+ dialog->bulletSizeCO->insertItem( _( "default" ) );
+ dialog->bulletSizeCO->insertItem( _( "tiny" ) );
+ dialog->bulletSizeCO->insertItem( _( "script" ) );
+ dialog->bulletSizeCO->insertItem( _( "footnote" ) );
+ dialog->bulletSizeCO->insertItem( _( "small" ) );
+ dialog->bulletSizeCO->insertItem( _( "normal" ) );
+ dialog->bulletSizeCO->insertItem( _( "large" ) );
+ dialog->bulletSizeCO->insertItem( _( "Large" ) );
+ dialog->bulletSizeCO->insertItem( _( "LARGE" ) );
+ dialog->bulletSizeCO->insertItem( _( "huge" ) );
+ dialog->bulletSizeCO->insertItem( _( "Huge" ) );
+
+ dialog->bulletSizeCO->setCurrentItem( 0 );
+ dialog->bulletLatexED->setMaxLength( 80 );
+
+ bc().addReadOnly (dialog->bulletPanelBG);
+ bc().addReadOnly (dialog->bulletSizeCO);
+ bc().addReadOnly (dialog->bulletLatexED);
+#endif
+}
+
+
+void QDocument::apply()
+{
+ //if (!lv_->view()->available() || !dialog_.get())
+ // return;
+
+#if 0
+ bool redo = class_apply();
+ paper_apply();
+ redo = language_apply() || redo;
+ redo = options_apply() || redo;
+ bullets_apply();
+
+ if (redo) {
+ lv_->view()->redoCurrentBuffer();
+ }
+ lv_->buffer()->markDirty();
+ setMinibuffer(lv_, _("Document layout set"));
+#endif
+}
+
+
+void QDocument::cancel()
+{
+#if 0
+ // this avoids confusion when reopening
+ BufferParams & param = lv_->buffer()->params;
+ param.temp_bullets[0] = param.user_defined_bullets[0];
+ param.temp_bullets[1] = param.user_defined_bullets[1];
+ param.temp_bullets[2] = param.user_defined_bullets[2];
+ param.temp_bullets[3] = param.user_defined_bullets[3];
+ hide();
+#endif
+}
+
+
+void QDocument::update()
+{
+ if (!dialog_.get())
+ return;
+
+#if 0
+ checkReadOnly();
+
+ BufferParams const & params = lv_->buffer()->params;
+
+ class_update(params);
+ paper_update(params);
+ language_update(params);
+ options_update(params);
+ bullets_update(params);
+#endif
+}
+
+
+#if 0
+bool QDocument::input( FL_OBJECT * ob, long data )
+{
+ State cb = static_cast<State>( data );
+
+ switch (cb) {
+ case CHECKCHOICECLASS:
+ CheckChoiceClass(ob, 0);
+ break;
+ case CHOICEBULLETSIZE:
+ ChoiceBulletSize(ob, 0);
+ break;
+ case INPUTBULLETLATEX:
+ InputBulletLaTeX(ob, 0);
+ break;
+ case BULLETDEPTH1:
+ case BULLETDEPTH2:
+ case BULLETDEPTH3:
+ case BULLETDEPTH4:
+ BulletDepth(ob, cb);
+ break;
+ case BULLETPANEL1:
+ case BULLETPANEL2:
+ case BULLETPANEL3:
+ case BULLETPANEL4:
+ case BULLETPANEL5:
+ case BULLETPANEL6:
+ BulletPanel(ob, cb);
+ break;
+ case BULLETBMTABLE:
+ BulletBMTable(ob, 0);
+ break;
+ default:
+ break;
+ }
+
+ switch (data) {
+ case INPUT:
+ case CHECKCHOICECLASS:
+ case CHOICEBULLETSIZE:
+ case INPUTBULLETLATEX:
+ case BULLETBMTABLE:
+ return CheckDocumentInput(ob, 0);
+ default:
+ break;
+ }
+
+ return true;
+}
+
+
+void QDocument::ComboInputCB(int, void * v, Combox * combox)
+{
+ QDocument * pre = static_cast<QDocument*>(v);
+ if (combox == pre->combo_doc_class.get())
+ pre->CheckChoiceClass(0, 0);
+ pre->bc().valid(pre->CheckDocumentInput(0,0));
+}
+
+bool QDocument::class_apply()
+{
+ bool redo = false;
+ BufferParams ¶ms = lv_->buffer()->params;
+
+ // If default skip is a "Length" but there's no text in the
+ // input field, reset the kind to "Medskip", which is the default.
+ if( ( dialog_->docSkipCO->currentItem() == 3 ) &&
+ dialog_->docSkipED->text().isEmpty() )
+ dialog_->docSkipCO->setCurrentItem( 1 );
+
+ params.fonts = dialog_->docFontsCO->currentText();
+ params.fontsize = dialog_->docFontSizeCO->currentText();
+ params.pagestyle = dialog->docPagestyleCO->currentText();
+
+ unsigned int const new_class = dialog_->docClassCO->currentItem();
+
+ if (params.textclass != new_class) {
+ // try to load new_class
+ if (textclasslist.Load(new_class)) {
+ // successfully loaded
+ redo = true;
+ setMinibuffer(lv_, _("Converting document to new document class..."));
+ CutAndPaste cap;
+ int ret = cap.SwitchLayoutsBetweenClasses(params.textclass, new_class,
+ lv_->buffer()->paragraph);
+ if (ret) {
+ string s;
+ if (ret==1) {
+ s = _("One paragraph couldn't be converted");
+ } else {
+ s += tostr(ret);
+ s += _(" paragraphs couldn't be converted");
+ }
+ WriteAlert(_("Conversion Errors!"),s,
+ _("into chosen document class"));
+ }
+
+ params.textclass = new_class;
+ } else {
+ // problem changing class -- warn user and retain old style
+ WriteAlert(_("Conversion Errors!"),
+ _("Errors loading new document class."),
+ _("Reverting to original document class."));
+ dialog_->docClassCO->setCurrentItem( params.textclass );
+ }
+ }
+ BufferParams::PARSEP tmpsep = params.paragraph_separation;
+ if( dialog_->_docIndentRB->isChecked() )
+ params.paragraph_separation = BufferParams::PARSEP_INDENT;
+ else
+ params.paragraph_separation = BufferParams::PARSEP_SKIP;
+ if (tmpsep != params.paragraph_separation)
+ redo = true;
+
+ VSpace tmpdefskip = params.getDefSkip();
+ switch( dialog_->docSkipCO->currentItem() ) {
+ case 0:
+ params.setDefSkip(VSpace(VSpace::SMALLSKIP));
+ break;
+ case 1:
+ params.setDefSkip(VSpace(VSpace::MEDSKIP));
+ break;
+ case 2:
+ params.setDefSkip(VSpace(VSpace::BIGSKIP));
+ break;
+ case 3:
+ params.setDefSkip
+ (VSpace(LyXGlueLength(dialog_->docSkipED->text())));
+ break;
+ // DocumentDefskipCB assures that this never happens
+ // ... so why is there code for it ?
+ default:
+ params.setDefSkip(VSpace(VSpace::MEDSKIP));
+ break;
+ }
+ if (!(tmpdefskip == params.getDefSkip()))
+ redo = true;
+
+ if( dialog_->docColumnsTwo->isChecked() )
+ params.columns = 2;
+ else
+ params.columns = 1;
+ if( dialog_->docSidesTwo->isChecked() )
+ params.sides = LyXTextClass::TwoSides;
+ else
+ params.sides = LyXTextClass::OneSide;
+
+ Spacing tmpSpacing = params.spacing;
+ switch( dialog_->docSpacingCO->currentItem() ) {
+ case 0:
+ lyxerr[Debug::INFO] << "Spacing: SINGLE\n";
+ params.spacing.set(Spacing::Single);
+ break;
+ case 1:
+ lyxerr[Debug::INFO] << "Spacing: ONEHALF\n";
+ params.spacing.set(Spacing::Onehalf);
+ break;
+ case 2:
+ lyxerr[Debug::INFO] << "Spacing: DOUBLE\n";
+ params.spacing.set(Spacing::Double);
+ break;
+ case 3:
+ lyxerr[Debug::INFO] << "Spacing: OTHER\n";
+ params.spacing.set(Spacing::Other,
+ dialog_->docSpacingED->text() );
+ break;
+ }
+ if (tmpSpacing != params.spacing)
+ redo = true;
+
+ params.options = docExtraED->text();
+
+ return redo;
+}
+
+
+void QDocument::paper_apply()
+{
+ BufferParams & params = lv_->buffer()->params;
+
+ params.papersize2 =
+ static_cast<char>(dialog_->papersize2CO->currentItem());
+ params.paperpackage =
+ static_cast<char>(dialog_->paperPackageCO->currentItem() );
+ params.use_geometry = dialog_->useGeometryCB->isChecked();
+ if (dialog_->landscapeRB->isChecked() )
+ params.orientation = BufferParams::ORIENTATION_LANDSCAPE;
+ else
+ params.orientation = BufferParams::ORIENTATION_PORTRAIT;
+ params.paperwidth = dialog_->customWidthED->text();
+ params.paperheight = dialog_->customHeightED->text();
+ params.leftmargin = dialog_->leftMarginED->text();
+ params.topmargin = dialog_->topMarginED->text();
+ params.rightmargin = dialog_->rightMarginED->text();
+ params.bottommargin = dialog_->bottomMarginED->text();
+ params.headheight = dialog_->headHeightED->text();
+ params.headsep = dialog_->headSepED->text();
+ params.footskip = dialog_->footSkipED->text();
+ lv_->buffer()->setPaperStuff();
+}
+
+
+bool QDocument::language_apply()
+{
+ BufferParams & params = lv_->buffer()->params;
+ InsetQuotes::quote_language lga = InsetQuotes::EnglishQ;
+ bool redo = false;
+
+ switch (dialog_->quotesLanguageCO->currentItem() ) {
+ case 0:
+ lga = InsetQuotes::EnglishQ;
+ break;
+ case 1:
+ lga = InsetQuotes::SwedishQ;
+ break;
+ case 2:
+ lga = InsetQuotes::GermanQ;
+ break;
+ case 3:
+ lga = InsetQuotes::PolishQ;
+ break;
+ case 4:
+ lga = InsetQuotes::FrenchQ;
+ break;
+ case 5:
+ lga = InsetQuotes::DanishQ;
+ break;
+ }
+ params.quotes_language = lga;
+ if (dialog_->singleRB->isChecked() )
+ params.quotes_times = InsetQuotes::SingleQ;
+ else
+ params.quotes_times = InsetQuotes::DoubleQ;
+
+ Language const * old_language = params.language;
+ Language const * new_language =
+ languages.getLanguage(dialog_->languageCO->currentItem() );
+ if (!new_language)
+ new_language = default_language;
+
+ if (old_language != new_language
+ && old_language->RightToLeft() == new_language->RightToLeft()
+ && !lv_->buffer()->isMultiLingual())
+ lv_->buffer()->ChangeLanguage(old_language, new_language);
+
+ if (old_language != new_language)
+ redo = true;
+
+ params.language = new_language;
+ params.inputenc = dialog_->inputEncCO->currentText();
+
+ return redo;
+}
+
+
+bool QDocument::options_apply()
+{
+ BufferParams & params = lv_->buffer()->params;
+ bool redo = false;
+
+ params.graphicsDriver =
+ dialog_->postscriptDriverCO->currentText();
+ params.use_amsmath = dialog_->useAmsMathCB->isChecked();
+
+ int tmpchar = int(dialog_->secNumDepth->value() );
+ if (params.secnumdepth != tmpchar)
+ redo = true;
+ params.secnumdepth = tmpchar;
+
+ params.tocdepth = int(dialog_->tocDepth->value() );
+
+ params.float_placement =
+ dialog_->floatPlacementED->text();
+
+ return redo;
+}
+
+
+void QDocument::bullets_apply()
+{
+ /* update the bullet settings */
+ BufferParams & param = lv_->buffer()->params;
+
+ // a little bit of loop unrolling
+ param.user_defined_bullets[0] = param.temp_bullets[0];
+ param.user_defined_bullets[1] = param.temp_bullets[1];
+ param.user_defined_bullets[2] = param.temp_bullets[2];
+ param.user_defined_bullets[3] = param.temp_bullets[3];
+}
+
+
+void QDocument::class_update(BufferParams const & params)
+{
+ if (!class_.get())
+ return;
+
+ LyXTextClass const & tclass = textclasslist.TextClass(params.textclass);
+
+ combo_doc_class->select_text(
+ textclasslist.DescOfClass(params.textclass));
+ Qt2Helper::setCurrentComboItem( dialog_->docFonts, params.fonts.c_str() );
+ dialog_->docFontSizeCO->clear();
+ dialog_->docFontSizeCO->insertItem( _( "default" ) );
+ dialog_->docFontSizeCO->insertItem( tclass.opt_fontsize().c_str());
+ dialog_->docFontSizeCO->setCurrentItem( tokenPos(tclass.opt_fontsize(), '|', params.fontsize)+1);
+ dialog_->docPagestyleCO->clear();
+ dialog_->docPagestyleCO->insertItem( _( "default" ) );
+ dialog_->docPagestyleCO->insertItem( tclass.opt_pagestyle().c_str());
+ dialog_->docPagestyleCO->setCurrentItem( tokenPos(tclass.opt_pagestyle(), '|', params.pagestyle)+1);
+ dialog_->docIndentRB->setChecked( false );
+ dialog_->docSkipRB->setChecked( false );
+ if (params.paragraph_separation == BufferParams::PARSEP_INDENT)
+ dialog_->docIndentRB->setChecked( true );
+ else
+ dialog_->docSkipRB->setChecked( true );
+ switch (params.getDefSkip().kind()) {
+ case VSpace::SMALLSKIP:
+ dialog_->docSkipCO->setCurrentItem( 0 );
+ break;
+ case VSpace::MEDSKIP:
+ dialog_->docSkipCO->setCurrentItem( 1 );
+ break;
+ case VSpace::BIGSKIP:
+ dialog_->docSkipCO->setCurrentItem( 2 );
+ break;
+ case VSpace::LENGTH:
+ dialog_->docSkipCO->setCurrentItem( 3 );
+ dialog_->docSkipED->setText( params.getDefSkip().asLyXCommand().c_str());
+ break;
+ default:
+ dialog_->docSkipCO->setCurrentItem( 1 );
+ break;
+ }
+ dialog_->docSidesOneRB->setChecked( false );
+ dialog_->docSidesTwoRB->setChecked( false );
+ if (params.sides == LyXTextClass::TwoSides)
+ dialog_->docSidesTwo->setChecked( true );
+ else
+ dialog_->docSidesOne->setChecked( true );
+ dialog_->docColumnsOneRB->setChecked( false );
+ dialog_->docColumnsTwoRB->setChecked( false );
+ if (params.columns == 2)
+ dialog_->docColumnsTwoRB->setChecked( true );
+ else
+ dialog_->docColumnsOneRB->setChecked( true );
+ dialog_->docSpacingED->setText( "" );
+ switch (params.spacing.getSpace()) {
+ case Spacing::Default: // nothing bad should happen with this
+ case Spacing::Single:
+ // \singlespacing
+ dialog_->docSpacingCO->setCurrentItem( 0 );
+ break;
+ case Spacing::Onehalf:
+ // \onehalfspacing
+ dialog_->docSpacingCO->setCurrentItem( 1 );
+ break;
+ case Spacing::Double:
+ // \doublespacing
+ dialog_->docSpacingCO->setCurrentItem( 2 );
+ break;
+ case Spacing::Other:
+ {
+ dialog_->docSpacingCO->setCurrentItem( 3 );
+ QString sval;
+ sval.sprintf("%g",params.spacing.getValue());
+ dialog_->docSpacingED->setText( sval );
+ break;
+ }
+ }
+ if (!params.options.empty())
+ dialog_->docExtraED->setText(, params.options.c_str());
+ else
+ dialog_->docExtraED->setText( "" );
+}
+
+
+void QDocument::language_update(BufferParams const & params)
+{
+ if (!language_.get())
+ return;
+
+ Qt2Helper::setCurrentItemText( dialog_->languageCO, params.language->lang() );
+ Qt2Helper::setCurrentItemText( dialog_->inputEncCO, params.inputenc.c_str() );
+ dialog_->quotesLanguageCO->setCurrentItem( params.quotes_language );
+ dialog_->singleRB->setChecked( false );
+ dialog_->doubleRB->setChecked( false );
+ if (params.quotes_times == InsetQuotes::SingleQ)
+ dialog_->singleRB->setChecked( true );
+ else
+ dialog_->doubleRB->setChecked( true );
+}
+
+
+void QDocument::options_update(BufferParams const & params)
+{
+ if (!options_.get())
+ return;
+
+ Qt2Helper::setCurrentItemText( dialog_->postscriptDriverCO,
+ params.graphicsDriver.c_str());
+ dialog_->useAmsMathCB->setChecked( params.use_amsmath );
+ dialog_->secNumDepthSB->setValue( params.secnumdepth );
+ dialog_->setTocDepthSB->setValue( params.tocdepth );
+ if (!params.float_placement.empty())
+ dialog_->floatPlacementED->setText( params.float_placement.c_str());
+ else
+ dialog_->floatPlacementED->setText( "" );
+}
+
+
+void QDocument::paper_update(BufferParams const & params)
+{
+ if (!paper_.get())
+ return;
+
+ dialog_->papersize2CO->setCurrentItem( params.papersize2 );
+ dialog_->paperPackageCO->setCurrentItem( params.paperpackage );
+ dialog_->useGeometryCB->setChecked( params.use_geometry );
+ dialog_->portraitRB->setChecked( false );
+ dialog_->landscapeRB->setChecked( false );
+ if (params.orientation == BufferParams::ORIENTATION_LANDSCAPE)
+ dialog_->landscapeRB->setChecked( true );
+ else
+ dialog_->portraitRB->setChecked( true );
+ dialog_->customWidthED->setText( params.paperwidth.c_str());
+ dialog_->customHeightED->setText( params.paperheight.c_str());
+ dialog_->leftMarginED->setText( params.leftmargin.c_str());
+ dialog_->topMarginED->setText( params.topmargin.c_str());
+ dialog_->rightMarginED->setText( params.rightmargin.c_str());
+ dialog_->bottomMarginED->setText( params.bottommargin.c_str());
+ dialog_->headHeightED->setText( params.headheight.c_str());
+ dialog_->headSepED->setText( params.headsep.c_str());
+ dialog_->footSkipED->setText( params.footskip.c_str());
+ dialog_->papersize2CO->setFocus();
+}
+
+
+void QDocument::bullets_update(BufferParams const & params)
+{
+ bool const isLinuxDoc = lv_->buffer()->isLinuxDoc();
+ setEnabled(fbullet, !isLinuxDoc);
+
+ if (isLinuxDoc) return;
+
+ dialog_->bulletDepth1RB->setChecked( true );
+ dialog_->bulletLatexED->setText( params.user_defined_bullets[0].getText().c_str());
+ dialog_->bulletSizeCO->setCurrentItem( params.user_defined_bullets[0].getSize() + 1);
+}
+
+
+void QDocument::checkReadOnly()
+{
+ if (bc().readOnly(lv_->buffer()->isReadonly())) {
+ dialog_->docClassCO->setEnabled( false );
+ dialog_->languageCO->setEnabled( false );
+ dialog_->warningLA->setText( _("Document is read-only."
+ " No changes to layout permitted."));
+ dialog_->warningLA->show();
+ } else {
+ dialog_->docClassCO->setEnabled( true );
+ dialog_->languageCO->setEnabled( true );
+ dialog_->warningLA->hide();
+ }
+}
+
+
+void QDocument::checkMarginValues()
+{
+ bool const not_empty =
+ !dialog_->topMarginED->text().isEmpty() ||
+ !dialog_->bottomMarginED->text().isEmpty() ||
+ !dialog_->leftMarginED->text().isEmpty() ||
+ !dialog_->rightMarginED->text().isEmpty() ||
+ !dialog_->headHeightED->text().isEmpty() ||
+ !dialog_->headSepED->text().isEmpty() ||
+ !dialog_->footSkipED->text().isEmpty() ||
+ !dialog_->customWidthED->text().isEmpty() ||
+ !dialog_->customHeightED->text().isEmpty();
+ if (not_empty)
+ dialog_->useGeometryCB->setChecked( true );
+}
+
+#ifdef I_SUPPOSE_THIS_NEEDS_TO_FIXED
+bool QDocument::CheckDocumentInput(FL_OBJECT * ob, long)
+{
+ string str;
+ int val;
+ bool ok = true;
+ char const * input;
+
+ checkMarginValues();
+ if (ob == paper_->choice_papersize2) {
+ val = fl_get_choice(paper_->choice_papersize2)-1;
+ if (val == BufferParams::VM_PAPER_DEFAULT) {
+ fl_set_button(paper_->push_use_geometry, 0);
+ checkMarginValues();
+ } else {
+ if ((val != BufferParams::VM_PAPER_USLETTER) &&
+ (val != BufferParams::VM_PAPER_USLEGAL) &&
+ (val != BufferParams::VM_PAPER_USEXECUTIVE) &&
+ (val != BufferParams::VM_PAPER_A4) &&
+ (val != BufferParams::VM_PAPER_A5) &&
+ (val != BufferParams::VM_PAPER_B5)) {
+ fl_set_button(paper_->push_use_geometry, 1);
+ }
+ fl_set_choice(paper_->choice_paperpackage,
+ BufferParams::PACKAGE_NONE + 1);
+ }
+ } else if (ob == paper_->choice_paperpackage) {
+ val = fl_get_choice(paper_->choice_paperpackage)-1;
+ if (val != BufferParams::PACKAGE_NONE) {
+ fl_set_choice(paper_->choice_papersize2,
+ BufferParams::VM_PAPER_DEFAULT + 1);
+ fl_set_button(paper_->push_use_geometry, 0);
+ }
+ } else if (ob == class_->input_doc_spacing) {
+ input = fl_get_input(class_->input_doc_spacing);
+ if (!*input) {
+ fl_set_choice (class_->choice_doc_spacing, 1);
+ } else {
+ fl_set_choice(class_->choice_doc_spacing, 4);
+ }
+ }
+ // this has to be all out of if/elseif because it has to deactivate
+ // the document buttons and so the whole stuff has to be tested again.
+ str = fl_get_input(paper_->input_custom_width);
+ ok = ok && (str.empty() || isValidLength(str));
+ str = fl_get_input(paper_->input_custom_height);
+ ok = ok && (str.empty() || isValidLength(str));
+ str = fl_get_input(paper_->input_left_margin);
+ ok = ok && (str.empty() || isValidLength(str));
+ str = fl_get_input(paper_->input_right_margin);
+ ok = ok && (str.empty() || isValidLength(str));
+ str = fl_get_input(paper_->input_top_margin);
+ ok = ok && (str.empty() || isValidLength(str));
+ str = fl_get_input(paper_->input_bottom_margin);
+ ok = ok && (str.empty() || isValidLength(str));
+ str = fl_get_input(paper_->input_head_height);
+ ok = ok && (str.empty() || isValidLength(str));
+ str = fl_get_input(paper_->input_head_sep);
+ ok = ok && (str.empty() || isValidLength(str));
+ str = fl_get_input(paper_->input_foot_skip);
+ ok = ok && (str.empty() || isValidLength(str));
+ // "Synchronize" the choice and the input field, so that it
+ // is impossible to commit senseless data.
+ input = fl_get_input (class_->input_doc_skip);
+ if (ob == class_->input_doc_skip) {
+ if (!*input) {
+ fl_set_choice (class_->choice_doc_skip, 2);
+ } else if (isValidGlueLength (input)) {
+ fl_set_choice (class_->choice_doc_skip, 4);
+ } else {
+ fl_set_choice(class_->choice_doc_skip, 4);
+ ok = false;
+ }
+ } else {
+ if (*input && !isValidGlueLength(input))
+ ok = false;
+ }
+ if ((fl_get_choice(class_->choice_doc_skip) == 4) && !*input)
+ ok = false;
+ else if (fl_get_choice(class_->choice_doc_skip) != 4)
+ fl_set_input (class_->input_doc_skip, "");
+
+ input = fl_get_input(class_->input_doc_spacing);
+ if ((fl_get_choice(class_->choice_doc_spacing) == 4) && !*input)
+ ok = false;
+ else if (fl_get_choice(class_->choice_doc_spacing) != 4)
+ fl_set_input (class_->input_doc_spacing, "");
+ return ok;
+}
+
+
+void QDocument::ChoiceBulletSize(FL_OBJECT * ob, long /*data*/ )
+{
+ BufferParams & param = lv_->buffer()->params;
+
+ // convert from 1-6 range to -1-4
+ param.temp_bullets[current_bullet_depth].setSize(fl_get_choice(ob) - 2);
+ fl_set_input(bullets_->input_bullet_latex,
+ param.temp_bullets[current_bullet_depth].getText().c_str());
+}
+
+
+void QDocument::InputBulletLaTeX(FL_OBJECT *, long)
+{
+ BufferParams & param = lv_->buffer()->params;
+
+ param.temp_bullets[current_bullet_depth].
+ setText(fl_get_input(bullets_->input_bullet_latex));
+}
+
+
+void QDocument::BulletDepth(FL_OBJECT * ob, State cb)
+{
+ /* Should I do the following:
+ * 1. change to the panel that the current bullet belongs in
+ * 2. show that bullet as selected
+ * 3. change the size setting to the size of the bullet in Q.
+ * 4. display the latex equivalent in the latex box
+ *
+ * I'm inclined to just go with 3 and 4 at the moment and
+ * maybe try to support the others later
+ */
+ BufferParams & param = lv_->buffer()->params;
+
+ int data = 0;
+ if (cb == BULLETDEPTH1 )
+ data = 0;
+ else if (cb == BULLETDEPTH2 )
+ data = 1;
+ else if (cb == BULLETDEPTH3 )
+ data = 2;
+ else if (cb == BULLETDEPTH4 )
+ data = 3;
+
+ switch (fl_get_button_numb(ob)) {
+ case 3:
+ // right mouse button resets to default
+ param.temp_bullets[data] = ITEMIZE_DEFAULTS[data];
+ default:
+ current_bullet_depth = data;
+ fl_set_input(bullets_->input_bullet_latex,
+ param.temp_bullets[data].getText().c_str());
+ fl_set_choice(bullets_->choice_bullet_size,
+ param.temp_bullets[data].getSize() + 2);
+ }
+}
+
+
+void QDocument::BulletPanel(FL_OBJECT * /*ob*/, State cb)
+{
+ /* Here we have to change the background pixmap to that selected */
+ /* by the user. (eg. standard.xpm, psnfss1.xpm etc...) */
+
+ int data = 0;
+ if (cb == BULLETPANEL1 )
+ data = 0;
+ else if (cb == BULLETPANEL2 )
+ data = 1;
+ else if (cb == BULLETPANEL3 )
+ data = 2;
+ else if (cb == BULLETPANEL4 )
+ data = 3;
+ else if (cb == BULLETPANEL5 )
+ data = 4;
+ else if (cb == BULLETPANEL6 )
+ data = 5;
+
+ if (data != current_bullet_panel) {
+ fl_freeze_form(bullets_->form);
+ current_bullet_panel = data;
+
+ /* free the current pixmap */
+ fl_free_bmtable_pixmap(bullets_->bmtable_bullet_panel);
+ string new_panel;
+ switch (cb) {
+ /* display the new one */
+ case BULLETPANEL1 :
+ new_panel = "standard";
+ break;
+ case BULLETPANEL2 :
+ new_panel = "amssymb";
+ break;
+ case BULLETPANEL3 :
+ new_panel = "psnfss1";
+ break;
+ case BULLETPANEL4 :
+ new_panel = "psnfss2";
+ break;
+ case BULLETPANEL5 :
+ new_panel = "psnfss3";
+ break;
+ case BULLETPANEL6 :
+ new_panel = "psnfss4";
+ break;
+ default :
+ /* something very wrong happened */
+ // play it safe for now but should be an exception
+ current_bullet_panel = 0; // standard panel
+ new_panel = "standard";
+ break;
+ }
+ new_panel += ".xpm";
+ fl_set_bmtable_pixmap_file(bullets_->bmtable_bullet_panel, 6, 6,
+ LibFileSearch("images", new_panel).c_str());
+ fl_redraw_object(bullets_->bmtable_bullet_panel);
+ fl_unfreeze_form(bullets_->form);
+ }
+}
+
+
+void QDocument::BulletBMTable(FL_OBJECT * ob, long /*data*/ )
+{
+ /* handle the user input by setting the current bullet depth's pixmap */
+ /* to that extracted from the current chosen position of the BMTable */
+ /* Don't forget to free the button's old pixmap first. */
+
+ BufferParams & param = lv_->buffer()->params;
+ int bmtable_button = fl_get_bmtable(ob);
+
+ /* try to keep the button held down till another is pushed */
+ /* fl_set_bmtable(ob, 1, bmtable_button); */
+ param.temp_bullets[current_bullet_depth].setFont(current_bullet_panel);
+ param.temp_bullets[current_bullet_depth].setCharacter(bmtable_button);
+ fl_set_input(bullets_->input_bullet_latex,
+ param.temp_bullets[current_bullet_depth].getText().c_str());
+}
+
+
+void QDocument::CheckChoiceClass(FL_OBJECT * ob, long)
+{
+ if (!ob)
+ ob = class_->choice_doc_class;
+
+ ProhibitInput(lv_->view());
+
+ unsigned int tc = combo_doc_class->get() - 1;
+ if (textclasslist.Load(tc)) {
+ // we use a copy of the bufferparams because we do not
+ // want to modify them yet.
+ BufferParams params = lv_->buffer()->params;
+
+ if (params.textclass != tc
+ && AskQuestion(_("Should I set some parameters to"),
+ _("the defaults of this document class?"))) {
+ params.textclass = tc;
+ params.useClassDefaults();
+ UpdateLayoutDocument(params);
+ }
+ } else {
+ // unable to load new style
+ WriteAlert(_("Conversion Errors!"),
+ _("Unable to switch to new document class."),
+ _("Reverting to original document class."));
+ combo_doc_class->select(int(lv_->buffer()->params.textclass) + 1);
+ }
+ AllowInput(lv_->view());
+}
+#endif
+
+void QDocument::UpdateLayoutDocument(BufferParams const & params)
+{
+ if (!dialog_.get())
+ return;
+
+ checkReadOnly();
+ class_update(params);
+ paper_update(params);
+ language_update(params);
+ options_update(params);
+ bullets_update(params);
+}
+#endif // 0
--- /dev/null
+// -*- C++ -*-
+/**
+ * \file QDocument.h
+ * Copyright 2001 the LyX Team
+ * Read the file COPYING
+ *
+ * \author Kalle Dalheimer <kalle@klaralvdalens-datakonsult.se>
+ */
+
+
+#ifndef QDOCUMENT_H
+#define QDOCUMENT_H
+
+#include <vector>
+#include <boost/smart_ptr.hpp>
+
+#include "Qt2Base.h"
+#include "qt2BC.h"
+#include "QtLyXView.h"
+
+#ifdef __GNUG_
+#pragma interface
+#endif
+
+class ControlDocument;
+class QDocumentDialog;
+class BufferParams;
+class LyXView;
+class Dialogs;
+
+class QDocument
+ //FIXME !!!!! : public Qt2CB<ControlDocument, Qt2DB<QDocumentDialog> >
+{
+public:
+ // FIXME!!!!!!!
+ QDocument(LyXView *, Dialogs *) {};
+private:
+ ///
+ enum State {
+ ///
+ INPUT,
+ ///
+ CHECKCHOICECLASS,
+ ///
+ CHOICEBULLETSIZE,
+ ///
+ INPUTBULLETLATEX,
+ ///
+ BULLETDEPTH1,
+ ///
+ BULLETDEPTH2,
+ ///
+ BULLETDEPTH3,
+ ///
+ BULLETDEPTH4,
+ ///
+ BULLETPANEL1,
+ ///
+ BULLETPANEL2,
+ ///
+ BULLETPANEL3,
+ ///
+ BULLETPANEL4,
+ ///
+ BULLETPANEL5,
+ ///
+ BULLETPANEL6,
+ ///
+ BULLETBMTABLE
+ };
+ /// Pointer to the actual instantiation of the ButtonController.
+ virtual qt2BC & bc();
+ /// Build the dialog
+ virtual void build();
+// /// Filter the inputs
+// virtual bool input( FL_OBJECT *, long );
+ /// Update the dialog.
+ virtual void update();
+ /// Apply from dialog
+ virtual void apply();
+ /// Cancel from dialog
+ virtual void cancel();
+
+// ///
+// virtual QDialog* form() const;
+
+#if 0
+ ///
+ bool CheckDocumentInput(QWidget* ob, long);
+ ///
+ void ChoiceBulletSize(QWidget* ob, long);
+ ///
+ void InputBulletLaTeX(QWidget* ob, long);
+ ///
+ void BulletDepth(QWidget* ob, State);
+ ///
+ void BulletPanel(QWidget* ob, State);
+ ///
+ void BulletBMTable(QWidget* ob, long);
+ ///
+ void checkMarginValues();
+ ///
+ void checkReadOnly();
+ ///
+ void CheckChoiceClass(QWidget* ob, long);
+ ///
+ void UpdateLayoutDocument(BufferParams const & params);
+
+ ///
+ void paper_update(BufferParams const &);
+ ///
+ void class_update(BufferParams const &);
+ ///
+ void language_update(BufferParams const &);
+ ///
+ void options_update(BufferParams const &);
+ ///
+ void bullets_update(BufferParams const &);
+
+ ///
+ void paper_apply();
+ ///
+ bool class_apply();
+ ///
+ bool language_apply();
+ ///
+ bool options_apply();
+ ///
+ void bullets_apply();
+
+ /// Fdesign generated methods
+ QDialog* build_tabbed_document();
+ ///
+ QDialog* build_doc_paper();
+ ///
+ QDialog* build_doc_class();
+ ///
+ QDialog* build_doc_language();
+ ///
+ QDialog* build_doc_options();
+ ///
+ QDialog* build_doc_bullet();
+#endif
+ /// Real GUI implementation.
+ boost::scoped_ptr<QDocumentDialog> dialog_;
+ ///
+ int ActCell;
+ ///
+ int Confirmed;
+ ///
+ int current_bullet_panel;
+ ///
+ int current_bullet_depth;
+// ///
+// FL_OBJECT * fbullet;
+// ///
+// boost::scoped_ptr<Combox> combo_language;
+// ///
+// boost::scoped_ptr<Combox> combo_doc_class;
+ /// The ButtonController
+ ButtonController<NoRepeatedApplyReadOnlyPolicy, qt2BC> bc_;
+};
+
+
+inline
+qt2BC & QDocument::bc()
+{
+ return bc_;
+}
+
+#endif // QDOCUMENT_H
--- /dev/null
+/**
+ * \file QDocumentDialog.C
+ * Copyright 2001 the LyX Team
+ * Read the file COPYING
+ *
+ * \author Kalle Dalheimer <kalle@klaralvdalens-datakonsult.se>
+ */
+
+#include <config.h>
+
+#include "QDocumentDialog.h"
+#include "Dialogs.h"
+#include "QDocument.h"
+
+#include <qlineedit.h>
+#include <qcheckbox.h>
+#include <qtoolbutton.h>
+#include <qbuttongroup.h>
+#include <qcombobox.h>
+#include <qspinbox.h>
+
+QDocumentDialog::QDocumentDialog(QDocument * form, QWidget * parent, const char * name, bool modal, WFlags fl)
+ : QDocumentDialogBase(parent, name, modal, fl),
+ form_(form)
+{
+#if 0
+ // Copy the pointers to the bullet buttons into an array so that
+ // they can all be manipulated together.
+ bulletbuttons[0] = bullet00PB;
+ bulletbuttons[1] = bullet01PB;
+ bulletbuttons[2] = bullet02PB;
+ bulletbuttons[3] = bullet03PB;
+ bulletbuttons[4] = bullet04PB;
+ bulletbuttons[5] = bullet05PB;
+ bulletbuttons[6] = bullet10PB;
+ bulletbuttons[7] = bullet11PB;
+ bulletbuttons[8] = bullet12PB;
+ bulletbuttons[9] = bullet13PB;
+ bulletbuttons[10] = bullet14PB;
+ bulletbuttons[11] = bullet15PB;
+ bulletbuttons[12] = bullet20PB;
+ bulletbuttons[13] = bullet21PB;
+ bulletbuttons[14] = bullet22PB;
+ bulletbuttons[15] = bullet23PB;
+ bulletbuttons[16] = bullet24PB;
+ bulletbuttons[17] = bullet25PB;
+ bulletbuttons[18] = bullet30PB;
+ bulletbuttons[19] = bullet31PB;
+ bulletbuttons[20] = bullet32PB;
+ bulletbuttons[21] = bullet33PB;
+ bulletbuttons[22] = bullet34PB;
+ bulletbuttons[23] = bullet35PB;
+ bulletbuttons[24] = bullet40PB;
+ bulletbuttons[25] = bullet41PB;
+ bulletbuttons[26] = bullet42PB;
+ bulletbuttons[27] = bullet43PB;
+ bulletbuttons[28] = bullet44PB;
+ bulletbuttons[29] = bullet45PB;
+ bulletbuttons[30] = bullet50PB;
+ bulletbuttons[31] = bullet51PB;
+ bulletbuttons[32] = bullet52PB;
+ bulletbuttons[33] = bullet53PB;
+ bulletbuttons[34] = bullet54PB;
+ bulletbuttons[35] = bullet55PB;
+#endif
+}
+
+
+QDocumentDialog::~QDocumentDialog()
+{
+}
+
+
+#if 0
+void QDocumentDialog::slotApply()
+{
+ form->apply();
+ // PENDING(kalle) Check whether we need this
+ // form->bc_->apply();
+}
+
+
+void QDocumentDialog::slotAMSMath(bool)
+{
+ form->checkDocumentInput( amsMathCB );
+}
+
+
+void QDocumentDialog::slotBulletDepth1()
+{
+ form->bulletDepth( 0 );
+}
+
+
+void QDocumentDialog::slotBulletDepth2()
+{
+ form->bulletDepth( 1 );
+}
+
+
+void QDocumentDialog::slotBulletDepth3()
+{
+ form->bulletDepth( 2 );
+}
+
+
+void QDocumentDialog::slotBulletDepth4()
+{
+ form->bulletDepth( 3 );
+}
+
+
+void QDocumentDialog::slotBulletDing1()
+{
+ qDebug( "QDocumentDialog::slotBulletDing1()" );
+ form->checkDocumentInput( bulletDing1PB );
+ form->setBulletPics();
+ bulletStandardPB->setOn( false );
+ bulletMathsPB->setOn( false );
+ bulletDing2PB->setOn( false );
+ bulletDing3PB->setOn( false );
+ bulletDing4PB->setOn( false );
+}
+
+
+void QDocumentDialog::slotBulletDing2()
+{
+ form->checkDocumentInput( bulletDing2PB );
+ form->setBulletPics();
+ bulletStandardPB->setOn( false );
+ bulletMathsPB->setOn( false );
+ bulletDing1PB->setOn( false );
+ bulletDing3PB->setOn( false );
+ bulletDing4PB->setOn( false );
+}
+
+
+void QDocumentDialog::slotBulletDing3()
+{
+ form->checkDocumentInput( bulletDing3PB );
+ form->setBulletPics();
+ bulletStandardPB->setOn( false );
+ bulletMathsPB->setOn( false );
+ bulletDing2PB->setOn( false );
+ bulletDing1PB->setOn( false );
+ bulletDing4PB->setOn( false );
+}
+
+
+void QDocumentDialog::slotBulletDing4()
+{
+ form->checkDocumentInput( bulletDing4PB );
+ form->setBulletPics();
+ bulletStandardPB->setOn( false );
+ bulletMathsPB->setOn( false );
+ bulletDing2PB->setOn( false );
+ bulletDing3PB->setOn( false );
+ bulletDing1PB->setOn( false );
+}
+
+
+void QDocumentDialog::slotBulletMaths()
+{
+ form->checkDocumentInput( bulletMathsPB );
+ form->setBulletPics();
+ bulletStandardPB->setOn( false );
+ bulletDing1PB->setOn( false );
+ bulletDing2PB->setOn( false );
+ bulletDing3PB->setOn( false );
+ bulletDing4PB->setOn( false );
+}
+
+
+void QDocumentDialog::slotBulletSize(int)
+{
+ form->choiceBulletSize();
+ form->checkDocumentInput( bulletSizeCO );
+}
+
+
+void QDocumentDialog::slotBulletStandard()
+{
+ form->checkDocumentInput( bulletStandardPB );
+ form->setBulletPics();
+ bulletDing1PB->setOn( false );
+ bulletMathsPB->setOn( false );
+ bulletDing2PB->setOn( false );
+ bulletDing3PB->setOn( false );
+ bulletDing4PB->setOn( false );
+}
+
+
+void QDocumentDialog::slotBulletSymbol(int n)
+{
+ qDebug( "QDocumentDialog::slotBulletSymbol( %d )", n );
+ for( int i = 0; i < 36; i++ )
+ bulletbuttons[i]->setOn( false );
+ bulletbuttons[n]->setOn( true );
+ form->bulletBMTable( n );
+ form->checkDocumentInput( bulletTypeBG );
+}
+
+
+void QDocumentDialog::slotClass(int)
+{
+ form->checkChoiceClass( 0 );
+ form->checkDocumentInput( classesCO );
+}
+
+
+void QDocumentDialog::slotClose()
+{
+ form->cancel();
+ form->hide();
+ // PENDING(kalle) do something with this
+ // form->bc_->cancel();
+}
+
+
+void QDocumentDialog::slotColumns(int)
+{
+ form->checkDocumentInput( columnsBG );
+}
+
+
+void QDocumentDialog::slotDefaultSkip(const QString&)
+{
+ form->checkDocumentInput( defaultSkipED );
+}
+
+
+void QDocumentDialog::slotDefaultSkip(int)
+{
+ form->checkChoiceClass( defaultSkipCO );
+ form->checkDocumentInput( defaultSkipCO );
+}
+
+
+void QDocumentDialog::slotEncoding(int)
+{
+ form->checkChoiceClass( encodingCO );
+ form->checkDocumentInput( encodingCO );
+}
+
+
+void QDocumentDialog::slotExtraOptions(const QString&)
+{
+ form->checkDocumentInput( extraOptionsED );
+}
+
+
+void QDocumentDialog::slotFloatPlacement(const QString&)
+{
+ form->checkDocumentInput( floatPlacementED );
+}
+
+
+void QDocumentDialog::slotFont(int)
+{
+ form->checkChoiceClass( fontsCO );
+ form->checkDocumentInput( fontsCO );
+}
+
+
+void QDocumentDialog::slotFontSize(int)
+{
+ form->checkChoiceClass( fontSizeCO );
+ form->checkDocumentInput( fontSizeCO );
+}
+
+
+void QDocumentDialog::slotFootskip(const QString&)
+{
+ form->checkDocumentInput( footskipED );
+}
+
+
+void QDocumentDialog::slotHeadheight(const QString&)
+{
+ form->checkDocumentInput( headheightED );
+}
+
+
+void QDocumentDialog::slotHeadsep(const QString&)
+{
+ form->checkDocumentInput( headsepED );
+}
+
+
+void QDocumentDialog::slotHeight(const QString&)
+{
+ form->checkDocumentInput( customHeightED );
+}
+
+
+void QDocumentDialog::slotLanguage(int)
+{
+ form->checkChoiceClass( languageCO );
+ form->checkDocumentInput( languageCO );
+}
+
+
+void QDocumentDialog::slotBulletLaTeX(const QString&)
+{
+ form->inputBulletLaTeX();
+ form->checkDocumentInput( latexED );
+}
+
+
+void QDocumentDialog::slotMarginBottom(const QString&)
+{
+ form->checkDocumentInput( marginBottomED );
+}
+
+
+void QDocumentDialog::slotMarginLeft(const QString&)
+{
+ form->checkDocumentInput( marginLeftED );
+}
+
+
+void QDocumentDialog::slotMarginRight(const QString&)
+{
+ form->checkDocumentInput( marginRightED );
+}
+
+
+void QDocumentDialog::slotMarginTop(const QString&)
+{
+ form->checkDocumentInput( marginTopED );
+}
+
+
+void QDocumentDialog::slotOK()
+{
+ form->apply();
+ form->hide();
+ // PENDING(kalle) Do something about this.
+ // form->bc_->ok();
+}
+
+
+void QDocumentDialog::slotOrientation(int)
+{
+ form->checkDocumentInput( orientationBG );
+}
+
+
+void QDocumentDialog::slotPSDriver(int)
+{
+ form->checkChoiceClass( psDriverCO );
+ form->checkDocumentInput( psDriverCO );
+}
+
+
+void QDocumentDialog::slotPageStyle(int)
+{
+ form->checkChoiceClass( pagestyleCO );
+ form->checkDocumentInput( pagestyleCO );
+}
+
+
+void QDocumentDialog::slotPapersize(int)
+{
+ form->checkChoiceClass( pagestyleCO );
+ form->checkDocumentInput( papersizeCO );
+}
+
+
+void QDocumentDialog::slotQuoteStyle(int)
+{
+ form->checkChoiceClass( quoteStyleTypeCO );
+ form->checkDocumentInput( quoteStyleTypeCO );
+}
+
+
+void QDocumentDialog::slotQuoteType(int)
+{
+ // Intentionally left blank
+}
+
+
+void QDocumentDialog::slotRestore()
+{
+ form->update();
+ // PENDING(kalle) Do something about this.
+ // form->bc_->updateAll();
+}
+
+
+void QDocumentDialog::slotSectionNumberDepth(int)
+{
+ form->checkDocumentInput( sectionNumberDepthSB );
+}
+
+
+void QDocumentDialog::slotSeparation(int)
+{
+ form->checkDocumentInput( separationBG );
+}
+
+
+void QDocumentDialog::slotSides(int)
+{
+ form->checkDocumentInput( sidesBG );
+}
+
+
+void QDocumentDialog::slotSpacing(const QString&)
+{
+ form->checkDocumentInput( spacingED );
+}
+
+
+void QDocumentDialog::slotSpacing(int)
+{
+ form->checkDocumentInput( spacingCO );
+ form->checkDocumentInput( spacingCO );
+}
+
+
+void QDocumentDialog::slotSpecialPaperPackage(int)
+{
+ form->checkChoiceClass( specialCO );
+ form->checkDocumentInput( specialCO );
+}
+
+
+void QDocumentDialog::slotTOCDepth(int)
+{
+ form->checkDocumentInput( tocDepthSB );
+}
+
+
+void QDocumentDialog::slotUseGeometryPackage(bool)
+{
+ form->checkDocumentInput( CheckBox1 );
+}
+
+
+void QDocumentDialog::slotWidth(const QString&)
+{
+ form->checkDocumentInput( customWidthED );
+}
+#endif
+
+
+void QDocumentDialog::closeEvent( QCloseEvent* e )
+{
+ //form_->hide();
+ //PENDING(kalle) Do something about this.
+ // form->bc_->hide();
+ e->accept();
+}
--- /dev/null
+/**
+ * \file QDocumentDialog.h
+ * Copyright 2001 the LyX Team
+ * Read the file COPYING
+ *
+ * \author Kalle Dalheimer <kalle@klaralvdalens-datakonsult.se>
+ */
+
+#ifndef QDOCUMENTDIALOG_H
+#define QDOCUMENTDIALOG_H
+
+#include "ui/QDocumentDialogBase.h"
+
+class QDocument;
+
+class QDocumentDialog : public QDocumentDialogBase
+{ Q_OBJECT
+
+public:
+ QDocumentDialog(QDocument * form, QWidget * parent = 0, const char * name = 0, bool modal = FALSE, WFlags fl = 0);
+ ~QDocumentDialog();
+
+public slots:
+#if 0
+ void slotApply();
+ void slotBulletLaTeX(const QString&);
+ void slotAMSMath(bool);
+ void slotBulletDepth1();
+ void slotBulletDepth2();
+ void slotBulletDepth3();
+ void slotBulletDepth4();
+ void slotBulletDing1();
+ void slotBulletDing2();
+ void slotBulletDing3();
+ void slotBulletDing4();
+ void slotBulletMaths();
+ void slotBulletSize(int);
+ void slotBulletStandard();
+ void slotBulletSymbol(int);
+ void slotClass(int);
+ void slotClose();
+ void slotColumns(int);
+ void slotDefaultSkip(const QString&);
+ void slotDefaultSkip(int);
+ void slotEncoding(int);
+ void slotExtraOptions(const QString&);
+ void slotFloatPlacement(const QString&);
+ void slotFont(int);
+ void slotFontSize(int);
+ void slotFootskip(const QString&);
+ void slotHeadheight(const QString&);
+ void slotHeadsep(const QString&);
+ void slotHeight(const QString&);
+ void slotLanguage(int);
+ void slotMarginBottom(const QString&);
+ void slotMarginLeft(const QString&);
+ void slotMarginRight(const QString&);
+ void slotMarginTop(const QString&);
+ void slotOK();
+ void slotOrientation(int);
+ void slotPSDriver(int);
+ void slotPageStyle(int);
+ void slotPapersize(int);
+ void slotQuoteStyle(int);
+ void slotQuoteType(int);
+ void slotRestore();
+ void slotSectionNumberDepth(int);
+ void slotSeparation(int);
+ void slotSides(int);
+ void slotSpacing(const QString&);
+ void slotSpacing(int);
+ void slotSpecialPaperPackage(int);
+ void slotTOCDepth(int);
+ void slotUseGeometryPackage(bool);
+ void slotWidth(const QString&);
+#endif
+
+protected:
+ void closeEvent(QCloseEvent *);
+
+private:
+ QDocument * form_;
+ QToolButton* bulletbuttons[36];
+};
+
+#endif // QDOCUMENTDIALOG_H
--- /dev/null
+/**
+ * \file QIndex.C
+ * Copyright 2001 the LyX Team
+ * Read the file COPYING
+ *
+ * \author John Levon <moz@compsoc.man.ac.uk>
+ */
+
+#include <config.h>
+
+#include "QIndexDialog.h"
+#include "QtLyXView.h"
+#include "BufferView.h"
+
+#include "Dialogs.h"
+#include "QIndex.h"
+#include "gettext.h"
+#include "buffer.h"
+#include "lyxfunc.h"
+
+#include <qlineedit.h>
+#include <qpushbutton.h>
+
+QIndex::QIndex(LyXView *v, Dialogs *d)
+ : dialog_(0), lv_(v), d_(d), inset_(0), h_(0), u_(0), ih_(0)
+{
+ d->showIndex.connect(slot(this, &QIndex::showIndex));
+ d->createIndex.connect(slot(this, &QIndex::createIndex));
+}
+
+
+QIndex::~QIndex()
+{
+ delete dialog_;
+}
+
+
+void QIndex::showIndex(InsetCommand * const inset)
+{
+ // FIXME: when could inset be 0 here ?
+ if (inset==0)
+ return;
+
+ inset_ = inset;
+ readonly = lv_->buffer()->isReadonly();
+ //FIXME ih_ = inset_->hide.connect(slot(this,&QIndex::hide));
+ params = inset->params();
+
+ show();
+}
+
+
+void QIndex::createIndex(string const & arg)
+{
+ // we could already be showing a URL, clear it out
+ if (inset_)
+ close();
+
+ readonly = lv_->buffer()->isReadonly();
+ params.setFromString(arg);
+ show();
+}
+
+
+void QIndex::update()
+{
+ dialog_->keywordED->setText(params.getContents().c_str());
+
+ if (readonly) {
+ dialog_->keywordED->setFocusPolicy(QWidget::NoFocus);
+ dialog_->okPB->setEnabled(false);
+ dialog_->cancelPB->setText(_("Close"));
+ } else {
+ dialog_->keywordED->setFocusPolicy(QWidget::StrongFocus);
+ dialog_->keywordED->setFocus();
+ dialog_->okPB->setEnabled(true);
+ dialog_->cancelPB->setText(_("Cancel"));
+ }
+}
+
+
+void QIndex::apply()
+{
+ if (readonly)
+ return;
+
+ params.setContents(dialog_->keywordED->text().latin1());
+
+ if (inset_ != 0) {
+ if (params != inset_->params()) {
+ inset_->setParams(params);
+ lv_->view()->updateInset(inset_, true);
+ }
+ } else
+ lv_->getLyXFunc()->dispatch(LFUN_INDEX_INSERT, params.getAsString().c_str());
+}
+
+
+void QIndex::show()
+{
+ if (!dialog_)
+ dialog_ = new QIndexDialog(this, 0, _("LyX: Index"), false);
+
+ if (!dialog_->isVisible()) {
+ h_ = d_->hideBufferDependent.connect(slot(this, &QIndex::hide));
+ //u_ = d_->updateBufferDependent.connect(slot(this, &QIndex::update));
+ }
+
+ dialog_->raise();
+ dialog_->setActiveWindow();
+
+ update();
+ dialog_->show();
+}
+
+
+void QIndex::close()
+{
+ h_.disconnect();
+ u_.disconnect();
+ ih_.disconnect();
+ inset_ = 0;
+}
+
+
+void QIndex::hide()
+{
+ dialog_->hide();
+ close();
+}
--- /dev/null
+// -*- C++ -*-
+/**
+ * \file QIndex.h
+ * Copyright 2001 the LyX Team
+ * Read the file COPYING
+ *
+ * \author John Levon <moz@compsoc.man.ac.uk>
+ * \author Kalle Dalheimer <kalle@klaralvdalens-datakonsult.se>
+ */
+
+#ifndef QINDEX_H
+#define QINDEX_H
+
+#include "DialogBase.h"
+#include "LString.h"
+#include "boost/utility.hpp"
+#include "insets/insetindex.h"
+
+class Dialogs;
+class LyXView;
+class QIndexDialog;
+
+class QIndex : public DialogBase {
+public:
+ QIndex(LyXView *, Dialogs *);
+ ~QIndex();
+
+ /// Apply changes
+ void apply();
+ /// close the connections
+ void close();
+
+private:
+ /// Create the dialog if necessary, update it and display it.
+ void show();
+ /// Hide the dialog.
+ void hide();
+ /// Update the dialog.
+ void update();
+
+ /// create an Index inset
+ void createIndex(string const &);
+ /// edit an Index inset
+ void showIndex(InsetCommand * const);
+
+ /// Real GUI implementation.
+ QIndexDialog * dialog_;
+
+ /// the LyXView we belong to
+ LyXView * lv_;
+
+ /** Which Dialogs do we belong to?
+ Used so we can get at the signals we have to connect to.
+ */
+ Dialogs * d_;
+ /// pointer to the inset if any
+ InsetCommand * inset_;
+ /// insets params
+ InsetCommandParams params;
+ /// is the inset we are reading from a readonly buffer ?
+ bool readonly;
+
+ /// Hide connection.
+ SigC::Connection h_;
+ /// Update connection.
+ SigC::Connection u_;
+ /// Inset hide connection.
+ SigC::Connection ih_;
+};
+
+#endif // QINDEX_H
--- /dev/null
+/**
+ * \file QIndexDialog.C
+ * Copyright 2001 the LyX Team
+ * Read the file COPYING
+ *
+ * \author John Levon <moz@compsoc.man.ac.uk>
+ */
+
+#include "QIndexDialog.h"
+#include "Dialogs.h"
+#include "QIndex.h"
+
+QIndexDialog::QIndexDialog(QIndex * form, QWidget * parent, const char * name, bool modal, WFlags fl)
+ : QIndexDialogBase(parent, name, modal, fl),
+ form_(form)
+{
+}
+
+
+QIndexDialog::~QIndexDialog()
+{
+}
+
+
+void QIndexDialog::apply_adaptor()
+{
+ form_->apply();
+ form_->close();
+ hide();
+}
+
+
+void QIndexDialog::close_adaptor()
+{
+ form_->close();
+ hide();
+}
+
+
+void QIndexDialog::closeEvent(QCloseEvent *e)
+{
+ form_->close();
+ e->accept();
+}
--- /dev/null
+/**
+ * \file QIndexDialog.h
+ * Copyright 2001 the LyX Team
+ * Read the file COPYING
+ *
+ * \author John Levon <moz@compsoc.man.ac.uk>
+ */
+
+#ifndef QINDEXDIALOG_H
+#define QINDEXDIALOG_H
+
+#include <config.h>
+
+#include "ui/QIndexDialogBase.h"
+
+class QIndex;
+
+class QIndexDialog : public QIndexDialogBase
+{ Q_OBJECT
+
+public:
+ QIndexDialog(QIndex * form, QWidget * parent = 0, const char * name = 0, bool modal = FALSE, WFlags fl = 0);
+ ~QIndexDialog();
+
+public slots:
+ void apply_adaptor();
+ void close_adaptor();
+
+protected:
+ void closeEvent(QCloseEvent * e);
+
+private:
+ QIndex * form_;
+};
+
+#endif // QINDEXDIALOG_H
--- /dev/null
+/**
+ * \file QParagraph.C
+ * Copyright 2001 LyX Team
+ * see the file COPYING
+ *
+ * \author John Levon, moz@compsoc.man.ac.uk
+ */
+
+#include <config.h>
+
+#include "QParagraphDialog.h"
+
+#include "QParagraph.h"
+#include "Dialogs.h"
+#include "Liason.h"
+#include "gettext.h"
+#include "buffer.h"
+#include "QtLyXView.h"
+#include "lyxtext.h"
+#include "debug.h"
+#include "BufferView.h"
+#include "ParagraphParameters.h"
+
+using SigC::slot;
+using Liason::setMinibuffer;
+using std::endl;
+
+
+QParagraph::QParagraph(LyXView *v, Dialogs *d)
+ : dialog_(0), lv_(v), d_(d), h_(0)
+{
+ d->showParagraph.connect(slot(this, &QParagraph::show));
+}
+
+
+QParagraph::~QParagraph()
+{
+ delete dialog_;
+}
+
+
+void QParagraph::update(bool switched)
+{
+ if (switched) {
+ hide();
+ return;
+ }
+
+ if (!lv_->view()->available())
+ return;
+
+ Buffer * buf = lv_->view()->buffer();
+
+ if (readonly!=buf->isReadonly()) {
+ readonly = buf->isReadonly();
+ dialog_->setReadOnly(readonly);
+ }
+
+ LyXText * text = 0;
+
+ if (lv_->view()->theLockingInset())
+ text = lv_->view()->theLockingInset()->getLyXText(lv_->view());
+
+ if (!text)
+ text = lv_->view()->text;
+
+ Paragraph * par = text->cursor.par();
+
+ int align = par->getAlign();
+
+ if (align==LYX_ALIGN_LAYOUT)
+ align = textclasslist.Style(buf->params.textclass, par->getLayout()).align;
+
+ ParagraphParameters * params = &(par->params());
+
+ if (params->spaceTop().kind() == VSpace::LENGTH) {
+ LyXGlueLength above = params->spaceTop().length();
+ lyxerr[Debug::GUI] << "Reading above space : \"" << params->spaceTop().length().asString() << "\"" << endl;
+ dialog_->setAboveLength(above.value(), above.plusValue(), above.minusValue(),
+ above.unit(), above.plusUnit(), above.minusUnit());
+ } else
+ dialog_->setAboveLength(0.0, 0.0, 0.0, LyXLength::UNIT_NONE, LyXLength::UNIT_NONE, LyXLength::UNIT_NONE);
+
+ if (params->spaceBottom().kind() == VSpace::LENGTH) {
+ LyXGlueLength below = params->spaceBottom().length();
+ lyxerr[Debug::GUI] << "Reading below space : \"" << params->spaceBottom().length().asString() << "\"" << endl;
+ dialog_->setBelowLength(below.value(), below.plusValue(), below.minusValue(),
+ below.unit(), below.plusUnit(), below.minusUnit());
+ } else
+ dialog_->setBelowLength(0.0, 0.0, 0.0, LyXLength::UNIT_NONE, LyXLength::UNIT_NONE, LyXLength::UNIT_NONE);
+
+ dialog_->setLabelWidth(text->cursor.par()->getLabelWidthString().c_str());
+ dialog_->setAlign(align);
+ dialog_->setChecks(params->lineTop(), params->lineBottom(),
+ params->pagebreakTop(), params->pagebreakBottom(), params->noindent());
+ dialog_->setSpace(params->spaceTop().kind(), params->spaceBottom().kind(),
+ params->spaceTop().keep(), params->spaceBottom().keep());
+
+ // now the extras page
+
+ LyXLength extrawidth;
+ float val = 0.0;
+ LyXLength::UNIT unit = LyXLength::CM;
+ params = &(par->params());
+ if (isValidLength(params->pextraWidth(), &extrawidth)) {
+ lyxerr[Debug::GUI] << "Reading extra width \"" << extrawidth.asString() << "\"" << endl;
+ val = extrawidth.value();
+ unit = extrawidth.unit();
+ }
+
+ lyxerr[Debug::GUI] << "Reading widthp \"" << params->pextraWidthp() << "\"" << endl;
+
+ dialog_->setExtra(val, unit, params->pextraWidthp(),
+ params->pextraAlignment(),
+ params->pextraHfill(),
+ params->pextraStartMinipage(),
+ static_cast<Paragraph::PEXTRA_TYPE>(params->pextraType()));
+}
+
+
+void QParagraph::apply()
+{
+ if (readonly)
+ return;
+
+ VSpace spaceabove;
+ VSpace spacebelow;
+
+ if (dialog_->getSpaceAboveKind()==VSpace::LENGTH)
+ spaceabove = VSpace(dialog_->getAboveLength());
+ else
+ spaceabove = VSpace(dialog_->getSpaceAboveKind());
+
+ if (dialog_->getSpaceBelowKind()==VSpace::LENGTH)
+ spacebelow = VSpace(dialog_->getBelowLength());
+ else
+ spacebelow = VSpace(dialog_->getSpaceBelowKind());
+
+ spaceabove.setKeep(dialog_->getAboveKeep());
+ spacebelow.setKeep(dialog_->getBelowKeep());
+
+ lyxerr[Debug::GUI] << "Setting above space \"" << LyXGlueLength(spaceabove.length().asString()).asString() << "\"" << endl;
+ lyxerr[Debug::GUI] << "Setting below space \"" << LyXGlueLength(spacebelow.length().asString()).asString() << "\"" << endl;
+
+ lv_->view()->text->setParagraph(lv_->view(),
+ dialog_->getLineAbove(), dialog_->getLineBelow(),
+ dialog_->getPagebreakAbove(), dialog_->getPagebreakBelow(),
+ spaceabove, spacebelow, Spacing(), dialog_->getAlign(),
+ dialog_->getLabelWidth(), dialog_->getNoIndent());
+
+ // extra stuff
+
+ string width("");
+ string widthp("");
+
+ LyXLength extrawidth(dialog_->getExtraWidth());
+ if (extrawidth.unit()==LyXLength::UNIT_NONE) {
+ widthp = dialog_->getExtraWidthPercent();
+ } else
+ width = extrawidth.asString();
+
+ lyxerr[Debug::GUI] << "Setting extrawidth \"" << width << "\"" << endl;
+ lyxerr[Debug::GUI] << "Setting percent extrawidth \"" << widthp << "\"" << endl;
+
+ lv_->view()->update(lv_->view()->text,
+ BufferView::SELECT |
+ BufferView::FITCUR |
+ BufferView::CHANGE);
+
+ lv_->buffer()->markDirty();
+ setMinibuffer(lv_, _("Paragraph layout set"));
+}
+
+
+void QParagraph::show()
+{
+ if (!dialog_)
+ dialog_ = new QParagraphDialog(this, 0,
+ _("LyX: Paragraph Settings"),
+ false);
+
+ if (!dialog_->isVisible())
+ h_ = d_->hideBufferDependent
+ .connect(slot(this, &QParagraph::hide));
+
+ dialog_->raise();
+ dialog_->setActiveWindow();
+ update();
+
+ dialog_->show();
+}
+
+
+void QParagraph::close()
+{
+ h_.disconnect();
+}
+
+
+void QParagraph::hide()
+{
+ dialog_->hide();
+ close();
+}
--- /dev/null
+// -*- C++ -*-
+/**
+ * \file QParagraph.h
+ * Copyright 2001 LyX Team
+ * see the file COPYING
+ *
+ * \author John Levon, moz@compsoc.man.ac.uk
+ */
+
+#ifndef QPARAGRAPH_H
+#define QPARAGRAPH_H
+
+#include "DialogBase.h"
+#include "LString.h"
+#include "boost/utility.hpp"
+
+class Dialogs;
+class LyXView;
+class QParagraphDialog;
+
+class QParagraph : public DialogBase {
+public:
+ QParagraph(LyXView *, Dialogs *);
+ ~QParagraph();
+
+ /// Apply changes
+ void apply();
+ /// Update the dialog.
+ void update(bool switched = false);
+ /// Close the connections
+ void close();
+
+private:
+ /// Create the dialog if necessary, update it and display it.
+ void show();
+ /// Hide the dialog.
+ void hide();
+
+ /// Real GUI implementation.
+ QParagraphDialog * dialog_;
+
+ /// the LyXView we belong to
+ LyXView * lv_;
+
+ /// Used so we can get at the signals we have to connect to.
+ Dialogs * d_;
+
+ /// Hide connection.
+ SigC::Connection h_;
+
+ /// readonly file or not
+ bool readonly;
+};
+
+#endif // QPARAGRAPH_H
--- /dev/null
+/**
+ * \file QParagraphDialog.C
+ * Copyright 2001 LyX Team
+ * see the file COPYING
+ *
+ * \author John Levon, moz@compsoc.man.ac.uk
+ * \author Edwin Leuven, leuven@fee.uva.nl
+ */
+
+#include <config.h>
+#include <gettext.h>
+#include <string>
+
+#include "QParagraphDialog.h"
+#include "QParagraph.h"
+#include "support/lstrings.h"
+#include "debug.h"
+
+#include <qlineedit.h>
+#include <qcombobox.h>
+#include <qcheckbox.h>
+#include <qpushbutton.h>
+#include <qtabwidget.h>
+#include <qlabel.h>
+#include <qgroupbox.h>
+
+using std::endl;
+
+QParagraphDialog::QParagraphDialog(QParagraph * form, QWidget * parent, const char * name, bool modal, WFlags fl)
+ : QParagraphDialogBase(parent, name, modal, fl),
+ form_(form)
+{
+ setCaption(name);
+}
+
+
+QParagraphDialog::~QParagraphDialog()
+{
+}
+
+
+void QParagraphDialog::setReadOnly(bool readonly)
+{
+ TabsParagraph->setEnabled(!readonly);
+ okPB->setEnabled(!readonly);
+ applyPB->setEnabled(!readonly);
+ defaultsPB->setEnabled(!readonly);
+ cancelPB->setText(readonly ? _("&Close") : _("&Cancel"));
+}
+
+
+void QParagraphDialog::setLabelWidth(const char *text)
+{
+ // FIXME: should be cleverer here
+ if (!strcmp(_("Senseless with this layout!"),text)) {
+ listOptions->setEnabled(false);
+ labelWidth->setText("");
+ } else {
+ listOptions->setEnabled(true);
+ labelWidth->setText(text);
+ }
+}
+
+
+void QParagraphDialog::setAlign(int type)
+{
+ int item=0;
+ switch (type) {
+ case LYX_ALIGN_BLOCK : item=0; break;
+ case LYX_ALIGN_LEFT : item=1; break;
+ case LYX_ALIGN_RIGHT : item=2; break;
+ case LYX_ALIGN_CENTER : item=3; break;
+ default:
+ item=0;
+ }
+ alignment->setCurrentItem(item);
+}
+
+
+void QParagraphDialog::setChecks(bool labove, bool lbelow, bool pabove, bool pbelow, bool noindent)
+{
+ lineAbove->setChecked(labove);
+ lineBelow->setChecked(lbelow);
+ pagebreakAbove->setChecked(pabove);
+ pagebreakBelow->setChecked(pbelow);
+ noIndent->setChecked(noindent);
+}
+
+
+void QParagraphDialog::setSpace(VSpace::vspace_kind kindabove, VSpace::vspace_kind kindbelow, bool keepabove, bool keepbelow)
+{
+ int item=0;
+
+ switch (kindabove) {
+ case VSpace::NONE: item = 0; break;
+ case VSpace::DEFSKIP: item = 1; break;
+ case VSpace::SMALLSKIP: item = 2; break;
+ case VSpace::MEDSKIP: item = 3; break;
+ case VSpace::BIGSKIP: item = 4; break;
+ case VSpace::VFILL: item = 5; break;
+ case VSpace::LENGTH: item = 6; break;
+ }
+ spacingAbove->setCurrentItem(item);
+
+ switch (kindbelow) {
+ case VSpace::NONE: item = 0; break;
+ case VSpace::DEFSKIP: item = 1; break;
+ case VSpace::SMALLSKIP: item = 2; break;
+ case VSpace::MEDSKIP: item = 3; break;
+ case VSpace::BIGSKIP: item = 4; break;
+ case VSpace::VFILL: item = 5; break;
+ case VSpace::LENGTH: item = 6; break;
+ }
+ spacingBelow->setCurrentItem(item);
+
+ spacingAboveValue->setEnabled(kindabove == VSpace::LENGTH);
+ spacingAbovePlus->setEnabled(kindabove == VSpace::LENGTH);
+ spacingAboveMinus->setEnabled(kindabove == VSpace::LENGTH);
+ spacingBelowValue->setEnabled(kindbelow == VSpace::LENGTH);
+ spacingBelowPlus->setEnabled(kindbelow == VSpace::LENGTH);
+ spacingBelowMinus->setEnabled(kindbelow == VSpace::LENGTH);
+
+ spacingAboveKeep->setChecked(keepabove);
+ spacingBelowKeep->setChecked(keepbelow);
+}
+
+
+void QParagraphDialog::setAboveLength(float val, float plus, float minus,
+ LyXLength::UNIT vunit, LyXLength::UNIT punit, LyXLength::UNIT munit)
+{
+ if (vunit==LyXLength::UNIT_NONE) {
+ spacingAboveValue->setText("");
+ spacingAbovePlus->setText("");
+ spacingAboveMinus->setText("");
+ } else {
+ spacingAboveValue->setText(tostr(val).c_str());
+ spacingAbovePlus->setText(tostr(plus).c_str());
+ spacingAboveMinus->setText(tostr(minus).c_str());
+ }
+
+ spacingAboveValueUnit->setCurrentItem(getItem(vunit));
+ spacingAbovePlusUnit->setCurrentItem(getItem(punit));
+ spacingAboveMinusUnit->setCurrentItem(getItem(munit));
+
+}
+
+
+void QParagraphDialog::setBelowLength(float val, float plus, float minus,
+ LyXLength::UNIT vunit, LyXLength::UNIT punit, LyXLength::UNIT munit)
+{
+ if (vunit==LyXLength::UNIT_NONE) {
+ spacingBelowValue->setText("");
+ spacingBelowPlus->setText("");
+ spacingBelowMinus->setText("");
+ } else {
+ spacingBelowValue->setText(tostr(val).c_str());
+ spacingBelowPlus->setText(tostr(plus).c_str());
+ spacingBelowMinus->setText(tostr(minus).c_str());
+ }
+
+ spacingBelowValueUnit->setCurrentItem(getItem(vunit));
+ spacingBelowPlusUnit->setCurrentItem(getItem(punit));
+ spacingBelowMinusUnit->setCurrentItem(getItem(munit));
+}
+
+
+void QParagraphDialog::setExtra(float widthval, LyXLength::UNIT units, const string percent, int align,
+ bool hfill, bool startminipage, Paragraph::PEXTRA_TYPE type)
+{
+ if (type!=Paragraph::PEXTRA_NONE) {
+ lyxerr[Debug::GUI] << "percent : $" << percent << "$ widthval " << widthval << " unit " << long(units) << endl;
+ if (percent != "") {
+ extraWidth->setText(percent.c_str());
+ extraUnit->setCurrentItem(11);
+ } else {
+ extraWidth->setText(tostr(widthval).c_str());
+ extraUnit->setCurrentItem(getItem(units));
+ }
+ } else
+ extraWidth->setText("");
+
+ switch (type) {
+ case Paragraph::PEXTRA_NONE:
+ extraType->setCurrentItem(0);
+ break;
+ case Paragraph::PEXTRA_MINIPAGE:
+ extraType->setCurrentItem(1);
+ enable_extraOptions(1);
+ enable_minipageOptions(1);
+ break;
+ case Paragraph::PEXTRA_FLOATFLT:
+ extraType->setCurrentItem(2);
+ enable_extraOptions(2);
+ break;
+ case Paragraph::PEXTRA_INDENT:
+ extraType->setCurrentItem(3);
+ enable_extraOptions(3);
+ break;
+ }
+
+ switch (align) {
+ case Paragraph::MINIPAGE_ALIGN_TOP:
+ minipageValign->setCurrentItem(0);
+ break;
+ case Paragraph::MINIPAGE_ALIGN_MIDDLE:
+ minipageValign->setCurrentItem(1);
+ break;
+ case Paragraph::MINIPAGE_ALIGN_BOTTOM:
+ minipageValign->setCurrentItem(2);
+ break;
+ }
+
+ minipageHfill->setChecked(hfill);
+ minipageStart->setChecked(startminipage);
+}
+
+
+LyXGlueLength QParagraphDialog::getAboveLength() const
+{
+ LyXGlueLength len(
+ spacingAboveValue->text().toFloat(),
+ getLyXLength( spacingAboveValueUnit->currentItem() ),
+ spacingAbovePlus->text().toFloat(),
+ getLyXLength( spacingAbovePlusUnit->currentItem() ),
+ spacingAboveMinus->text().toFloat(),
+ getLyXLength( spacingAboveMinusUnit->currentItem() )
+ );
+ return len;
+}
+
+
+LyXGlueLength QParagraphDialog::getBelowLength() const
+{
+ LyXGlueLength len(
+ spacingBelowValue->text().toFloat(),
+ getLyXLength( spacingBelowValueUnit->currentItem() ),
+ spacingBelowPlus->text().toFloat(),
+ getLyXLength( spacingBelowPlusUnit->currentItem() ),
+ spacingBelowMinus->text().toFloat(),
+ getLyXLength( spacingBelowMinusUnit->currentItem() )
+ );
+ return len;
+}
+
+
+LyXLength QParagraphDialog::getExtraWidth() const
+{
+ if (extraUnit->currentItem()!=11) {
+ LyXLength len(
+ (extraWidth->text()).toDouble(),
+ getLyXLength(extraUnit->currentItem())
+ );
+ return len;
+ } else {
+ LyXLength len(0.0, LyXLength::UNIT_NONE);
+ return len;
+ }
+}
+
+
+string QParagraphDialog::getExtraWidthPercent() const
+{
+ double val = (extraWidth->text()).toDouble();
+ if (val > 100.0)
+ val = 100.0;
+ if (val < 0.0)
+ val = 0.0;
+ return tostr(val);
+}
+
+
+const char * QParagraphDialog::getLabelWidth() const
+{
+ return labelWidth->text();
+}
+
+
+LyXAlignment QParagraphDialog::getAlign() const
+{
+ switch (alignment->currentItem()) {
+ case 0: return LYX_ALIGN_BLOCK;
+ case 1: return LYX_ALIGN_LEFT;
+ case 2: return LYX_ALIGN_RIGHT;
+ case 3: return LYX_ALIGN_CENTER;
+ default: return LYX_ALIGN_CENTER;
+ }
+}
+
+
+bool QParagraphDialog::getAboveKeep() const
+{
+ return spacingAboveKeep->isChecked();
+}
+
+
+bool QParagraphDialog::getBelowKeep() const
+{
+ return spacingBelowKeep->isChecked();
+}
+
+
+bool QParagraphDialog::getLineAbove() const
+{
+ return lineAbove->isChecked();
+}
+
+
+bool QParagraphDialog::getLineBelow() const
+{
+ return lineBelow->isChecked();
+}
+
+
+bool QParagraphDialog::getPagebreakAbove() const
+{
+ return pagebreakAbove->isChecked();
+}
+
+
+bool QParagraphDialog::getPagebreakBelow() const
+{
+ return pagebreakBelow->isChecked();
+}
+
+
+bool QParagraphDialog::getNoIndent() const
+{
+ return noIndent->isChecked();
+}
+
+
+VSpace::vspace_kind QParagraphDialog::getSpaceAboveKind() const
+{
+ return getSpaceKind(spacingAbove->currentItem());
+}
+
+
+VSpace::vspace_kind QParagraphDialog::getSpaceBelowKind() const
+{
+ return getSpaceKind(spacingBelow->currentItem());
+}
+
+
+Paragraph::PEXTRA_TYPE QParagraphDialog::getExtraType() const
+{
+ switch (extraType->currentItem()) {
+ case 0: return Paragraph::PEXTRA_NONE;
+ case 1: return Paragraph::PEXTRA_MINIPAGE;
+ case 2: return Paragraph::PEXTRA_FLOATFLT;
+ case 3: return Paragraph::PEXTRA_INDENT;
+ }
+ return Paragraph::PEXTRA_NONE;
+}
+
+
+Paragraph::MINIPAGE_ALIGNMENT QParagraphDialog::getExtraAlign() const
+{
+ switch (minipageValign->currentItem()) {
+ case 0: return Paragraph::MINIPAGE_ALIGN_TOP;
+ case 1: return Paragraph::MINIPAGE_ALIGN_MIDDLE;
+ case 2: return Paragraph::MINIPAGE_ALIGN_BOTTOM;
+ default: return Paragraph::MINIPAGE_ALIGN_BOTTOM;
+ }
+}
+
+
+bool QParagraphDialog::getHfillBetween() const
+{
+ return minipageHfill->isChecked();
+}
+
+
+bool QParagraphDialog::getStartNewMinipage() const
+{
+ return minipageStart->isChecked();
+}
+
+
+VSpace::vspace_kind QParagraphDialog::getSpaceKind(int val) const
+{
+ switch (val) {
+ case 0: return VSpace::NONE;
+ case 1: return VSpace::DEFSKIP;
+ case 2: return VSpace::SMALLSKIP;
+ case 3: return VSpace::MEDSKIP;
+ case 4: return VSpace::BIGSKIP;
+ case 5: return VSpace::VFILL;
+ case 6: return VSpace::LENGTH;
+ default:
+ lyxerr[Debug::GUI] << "Unknown kind combo entry " << val << std::endl;
+ }
+ return VSpace::NONE;
+}
+
+
+LyXLength::UNIT QParagraphDialog::getLyXLength(int val) const
+{
+ switch (val) {
+ 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 kind combo entry " << val << std::endl;
+ }
+ return LyXLength::UNIT_NONE;
+}
+
+
+int QParagraphDialog::getItem(LyXLength::UNIT unit) const
+{
+ int item=0;
+ switch (unit) {
+ case LyXLength::CM: item = 0; break;
+ case LyXLength::IN: item = 1; break;
+ case LyXLength::PT: item = 2; break;
+ case LyXLength::MM: item = 3; break;
+ case LyXLength::PC: item = 4; break;
+ case LyXLength::EX: item = 5; break;
+ case LyXLength::EM: item = 6; break;
+ case LyXLength::SP: item = 7; break;
+ case LyXLength::BP: item = 8; break;
+ case LyXLength::DD: item = 9; break;
+ case LyXLength::CC: item = 10; break;
+ case LyXLength::MU: item = 0; break;
+ case LyXLength::UNIT_NONE: item = 0; break;
+ default:
+ lyxerr[Debug::GUI] << "Unknown unit " << long(unit) << endl;
+ }
+ return item;
+}
+
+
+void QParagraphDialog::enable_extraOptions(int item)
+{
+ bool const enable = (item!=0);
+ extraWidth->setEnabled(enable);
+ extraWidthL->setEnabled(enable);
+ extraUnit->setEnabled(enable);
+ extraUnitL->setEnabled(enable);
+}
+
+
+void QParagraphDialog::enable_minipageOptions(int item)
+{
+ minipageOptions->setEnabled( item==1 );
+}
+
+
+void QParagraphDialog::enable_spacingAbove(int item)
+{
+ bool const enable = (item==6);
+ spacingAboveValue->setEnabled(enable);
+ spacingAbovePlus->setEnabled(enable);
+ spacingAboveMinus->setEnabled(enable);
+ spacingAboveValueUnit->setEnabled(enable);
+ spacingAbovePlusUnit->setEnabled(enable);
+ spacingAboveMinusUnit->setEnabled(enable);
+ spacingAboveUnitsL->setEnabled(enable);
+ bool const enablel = ( (item==6) || (item!=6 && spacingBelow->currentItem()==6) );
+ spacingValueL->setEnabled(enablel);
+ spacingPlusL->setEnabled(enablel);
+ spacingMinusL->setEnabled(enablel);
+}
+
+
+void QParagraphDialog::enable_spacingBelow(int item)
+{
+ bool const enable = (item==6);
+ spacingBelowValue->setEnabled(enable);
+ spacingBelowPlus->setEnabled(enable);
+ spacingBelowMinus->setEnabled(enable);
+ spacingBelowValueUnit->setEnabled(enable);
+ spacingBelowPlusUnit->setEnabled(enable);
+ spacingBelowMinusUnit->setEnabled(enable);
+ spacingBelowUnitsL->setEnabled(enable);
+ bool const enablel = ( (item==6) || (item!=6 && spacingAbove->currentItem()==6) );
+ spacingValueL->setEnabled(enablel);
+ spacingPlusL->setEnabled(enablel);
+ spacingMinusL->setEnabled(enablel);
+}
+
+
+void QParagraphDialog::closeEvent(QCloseEvent * e)
+{
+ form_->close();
+ e->accept();
+}
+
+
+void QParagraphDialog::apply_adaptor()
+{
+ form_->apply();
+}
+
+
+void QParagraphDialog::cancel_adaptor()
+{
+ form_->close();
+ hide();
+}
+
+
+void QParagraphDialog::ok_adaptor()
+{
+ apply_adaptor();
+ form_->close();
+ hide();
+}
+
+
+void QParagraphDialog::restore_adaptor()
+{
+ form_->update();
+}
--- /dev/null
+/**
+ * \file QParagraphDialog.h
+ * Copyright 2001 LyX Team
+ * see the file COPYING
+ *
+ * \author John Levon, moz@compsoc.man.ac.uk
+ * \author Edwin Leuven, leuven@fee.uva.nl
+ */
+
+#ifndef QPARAGRAPHDIALOG_H
+#define QPARAGRAPHDIALOG_H
+
+#include <config.h>
+
+#include "ui/QParagraphDialogBase.h"
+#include "vspace.h"
+#include "paragraph.h"
+
+
+class QParagraph;
+
+class QParagraphDialog : public QParagraphDialogBase
+{ Q_OBJECT
+
+public:
+ QParagraphDialog(QParagraph * form, QWidget * parent = 0, const char * name = 0, bool modal = FALSE, WFlags fl = 0);
+ ~QParagraphDialog();
+
+ void setReadOnly(bool);
+ void setLabelWidth(const char *);
+ void setAlign(int);
+ void setChecks(bool, bool, bool, bool, bool);
+ void setSpace(VSpace::vspace_kind, VSpace::vspace_kind, bool, bool);
+ void setAboveLength(float, float, float, LyXGlueLength::UNIT, LyXGlueLength::UNIT, LyXGlueLength::UNIT);
+ void setBelowLength(float, float, float, LyXGlueLength::UNIT, LyXGlueLength::UNIT, LyXGlueLength::UNIT);
+ void setExtra(float, LyXGlueLength::UNIT, const string, int, bool, bool, Paragraph::PEXTRA_TYPE);
+ LyXGlueLength getAboveLength() const;
+ LyXGlueLength getBelowLength() const;
+ LyXLength getExtraWidth() const;
+ string getExtraWidthPercent() const;
+ // FIXME: return a std::string !
+ const char * getLabelWidth() const;
+ LyXAlignment getAlign() const;
+ bool getAboveKeep() const;
+ bool getBelowKeep() const;
+ bool getLineAbove() const;
+ bool getLineBelow() const;
+ bool getPagebreakAbove() const;
+ bool getPagebreakBelow() const;
+ bool getNoIndent() const;
+ VSpace::vspace_kind getSpaceAboveKind() const;
+ VSpace::vspace_kind getSpaceBelowKind() const;
+ Paragraph::PEXTRA_TYPE getExtraType() const;
+ Paragraph::MINIPAGE_ALIGNMENT getExtraAlign() const;
+ bool getHfillBetween() const;
+ bool getStartNewMinipage() const;
+
+protected:
+ void closeEvent (QCloseEvent * e);
+
+private:
+ QParagraph * form_;
+ VSpace::vspace_kind getSpaceKind(int val) const;
+ LyXLength::UNIT getLyXLength(int val) const;
+ int getItem(LyXLength::UNIT unit) const;
+
+
+protected slots:
+ void apply_adaptor();
+ void cancel_adaptor();
+ void enable_extraOptions(int);
+ void enable_minipageOptions(int);
+ void enable_spacingAbove(int);
+ void enable_spacingBelow(int);
+ void ok_adaptor();
+ void restore_adaptor();
+};
+
+#endif // QPARAGRAPHDIALOG_H
--- /dev/null
+/**
+ * \file QPrint.C
+ * Copyright 2001 LyX Team
+ * see the file COPYING
+ *
+ * \author John Levon, moz@compsoc.man.ac.uk
+ */
+
+#include <config.h>
+
+#include "QPrintDialog.h"
+#include "QPrint.h"
+#include "Dialogs.h"
+#include "gettext.h"
+#include "buffer.h"
+#include "lyxrc.h"
+#include "QtLyXView.h"
+
+#include "PrinterParams.h"
+#include "Liason.h"
+#include "BufferView.h"
+#include "support/lstrings.h"
+#include "qmessagebox.h"
+
+using Liason::printBuffer;
+using Liason::getPrinterParams;
+using std::max;
+
+QPrint::QPrint(LyXView *v, Dialogs *d)
+ : dialog_(0), lv_(v), d_(d), h_(0), u_(0)
+{
+ d->showPrint.connect(SigC::slot(this, &QPrint::show));
+}
+
+
+QPrint::~QPrint()
+{
+ delete dialog_;
+}
+
+
+// we can safely ignore the parameter because we can always update
+void QPrint::update(bool)
+{
+ if (!lv_->view()->available())
+ return;
+
+ PrinterParams pp(getPrinterParams(lv_->buffer()));
+
+ dialog_->setTarget(pp.target);
+ dialog_->setPrinter(pp.printer_name.c_str());
+ dialog_->setFile(pp.file_name.c_str());
+ dialog_->setWhichPages(pp.which_pages);
+ dialog_->setReverse(pp.reverse_order);
+ dialog_->setSort(pp.unsorted_copies);
+ dialog_->setCount(pp.count_copies);
+
+ if (!pp.from_page.empty()) {
+ dialog_->setFrom(pp.from_page.c_str());
+ if (pp.to_page)
+ dialog_->setTo(tostr(pp.to_page).c_str());
+ else
+ dialog_->setTo("");
+ } else {
+ dialog_->setFrom("");
+ dialog_->setTo("");
+ }
+}
+
+
+void QPrint::print()
+{
+ if (!lv_->view()->available())
+ return;
+
+ string from;
+ int to(0);
+
+ if (strlen(dialog_->getFrom())) {
+ from = dialog_->getFrom();
+ if (strlen(dialog_->getTo()))
+ to = strToInt(dialog_->getTo());
+ }
+
+ int retval = printBuffer(lv_->buffer(), PrinterParams(dialog_->getTarget(),
+ string(dialog_->getPrinter()), string(dialog_->getFile()),
+ dialog_->getWhichPages(), from, to, dialog_->getReverse(),
+ dialog_->getSort(), max(strToInt(dialog_->getCount()),1)));
+
+ if (!retval) {
+ // FIXME: should have a utility class for this
+ string message(_("An error occured while printing.\n\n"));
+ message += _("Check the parameters are correct.\n");
+ QMessageBox msg( _("LyX: Print Error"), message.c_str(), QMessageBox::Warning, 1,0,0);
+ msg.raise();
+ msg.setActiveWindow();
+ msg.show();
+ }
+}
+
+
+void QPrint::show()
+{
+ if (!dialog_)
+ dialog_ = new QPrintDialog(this, 0, _("LyX: Print"));
+
+ if (!dialog_->isVisible()) {
+ h_ = d_->hideBufferDependent.connect(SigC::slot(this, &QPrint::hide));
+ u_ = d_->updateBufferDependent.connect(SigC::slot(this, &QPrint::update));
+ }
+
+ dialog_->raise();
+ dialog_->setActiveWindow();
+
+ update();
+ dialog_->show();
+}
+
+
+void QPrint::close()
+{
+ h_.disconnect();
+ u_.disconnect();
+}
+
+
+void QPrint::hide()
+{
+ dialog_->hide();
+ close();
+}
--- /dev/null
+// -*- C++ -*-
+/**
+ * \file QPrint.h
+ * Copyright 2001 LyX Team
+ * see the file COPYING
+ *
+ * \author John Levon, moz@compsoc.man.ac.uk
+ */
+#ifndef QPRINT_H
+#define QPRINT_H
+
+#include "DialogBase.h"
+#include "boost/utility.hpp"
+
+class Dialogs;
+class LyXView;
+class QPrintDialog;
+
+class QPrint : public DialogBase {
+public:
+ QPrint(LyXView *, Dialogs *);
+ ~QPrint();
+
+ /// start print
+ void print();
+ /// close
+ void close();
+
+private:
+ /// Create the dialog if necessary, update it and display it.
+ void show();
+ /// Hide the dialog.
+ void hide();
+ /// Update the dialog.
+ void update(bool = false);
+
+ /// Real GUI implementation.
+ QPrintDialog * dialog_;
+
+ /// the LyXView we belong to
+ LyXView * lv_;
+
+ /** Which Dialogs do we belong to?
+ Used so we can get at the signals we have to connect to.
+ */
+ Dialogs * d_;
+
+ /// Hide connection.
+ SigC::Connection h_;
+ /// Update connection.
+ SigC::Connection u_;
+};
+
+#endif // QPRINT_H
--- /dev/null
+/**
+ * \file QPrintDialog.C
+ * Copyright 2001 LyX Team
+ * see the file COPYING
+ *
+ * \author John Levon, moz@compsoc.man.ac.uk
+ * \author Edwin Leuven, leuven@fee.uva.nl
+ */
+
+#include <qfiledialog.h>
+#include <qcheckbox.h>
+#include <qlabel.h>
+#include <qlineedit.h>
+#include <qpushbutton.h>
+#include <qradiobutton.h>
+#include <qspinbox.h>
+
+#include "QPrintDialog.h"
+#include "QPrint.h"
+
+#include <config.h>
+
+#include "support/filetools.h"
+#include "support/lstrings.h"
+#include "lyxrc.h"
+#include "PrinterParams.h"
+
+#include <gettext.h>
+#include <cstring>
+
+
+QPrintDialog::QPrintDialog(QPrint * f, QWidget * parent, const char * name, bool modal, WFlags fl)
+ : QPrintDialogBase(parent, name, modal, fl),
+ form_(f)
+{
+ setCaption(name);
+}
+
+
+QPrintDialog::~QPrintDialog()
+{
+}
+
+
+const char * QPrintDialog::getFrom() {
+ return fromPage->text();
+}
+
+
+const char * QPrintDialog::getTo() {
+ return toPage->text();
+}
+
+
+PrinterParams::Target QPrintDialog::getTarget() {
+ if (toPrinter->isChecked())
+ return PrinterParams::PRINTER;
+ else
+ return PrinterParams::FILE;
+}
+
+
+const char * QPrintDialog::getPrinter() {
+ return printerName->text();
+}
+
+
+const char * QPrintDialog::getFile() {
+ return fileName->text();
+}
+
+
+PrinterParams::WhichPages QPrintDialog::getWhichPages() {
+ if (oddPages->isChecked())
+ return PrinterParams::ODD;
+ else if (evenPages->isChecked())
+ return PrinterParams::EVEN;
+ else
+ return PrinterParams::ALL;
+}
+
+
+bool QPrintDialog::getReverse() {
+ return reverse->isChecked();
+}
+
+
+bool QPrintDialog::getSort() {
+ return collate->isChecked();
+}
+
+
+const char * QPrintDialog::getCount() {
+ return copies->text();
+}
+
+
+void QPrintDialog::setTarget(PrinterParams::Target t) {
+ toPrinter->setChecked(t==PrinterParams::PRINTER);
+ toFile->setChecked(t!=PrinterParams::PRINTER);
+}
+
+
+void QPrintDialog::setPrinter(const char * name) {
+ printerName->setText(name);
+}
+
+
+void QPrintDialog::setFile(const char * name) {
+ fileName->setText(name);
+}
+
+
+void QPrintDialog::setWhichPages(PrinterParams::WhichPages wp) {
+ switch (wp) {
+ case PrinterParams::ALL:
+ allPages->setChecked(true);
+ break;
+ case PrinterParams::EVEN:
+ evenPages->setChecked(true);
+ break;
+ case PrinterParams::ODD:
+ oddPages->setChecked(true);
+ break;
+ }
+}
+
+
+void QPrintDialog::setReverse(bool on) {
+ reverse->setChecked(on);
+}
+
+
+void QPrintDialog::setSort(bool on) {
+ collate->setChecked(on);
+}
+
+
+void QPrintDialog::setCount(int num) {
+ copies->setValue(num);
+ collate->setEnabled(num > 1);
+}
+
+
+void QPrintDialog::setFrom(const char * text) {
+ fromPage->setText(text);
+}
+
+
+void QPrintDialog::setTo(const char * text) {
+ toPage->setText(text);
+}
+
+
+void QPrintDialog::browse_file()
+{
+ QString d( OnlyPath(tostr(fileName->text())).c_str());
+ QString s( QFileDialog::getOpenFileName(d, "PostScript Files (*.ps)", this));
+ if (!s.isNull())
+ fileName->setText(s);
+}
+
+
+void QPrintDialog::print()
+{
+ form_->print();
+ form_->close();
+ hide();
+}
+
+
+void QPrintDialog::cancel_adaptor()
+{
+ form_->close();
+ hide();
+}
+
+
+void QPrintDialog::set_collate(int copies)
+{
+ collate->setEnabled(copies > 1);
+}
--- /dev/null
+/**
+ * \file QPrintDialog.h
+ * Copyright 2001 LyX Team
+ * see the file COPYING
+ *
+ * \author John Levon, moz@compsoc.man.ac.uk
+ * \author Edwin Leuven, leuven@fee.uva.nl
+ */
+
+#ifndef QPRINTDIALOG_H
+#define QPRINTDIALOG_H
+
+#include <config.h>
+
+#include "ui/QPrintDialogBase.h"
+#include "lyxrc.h"
+#include "PrinterParams.h"
+
+class QPrint;
+
+class QPrintDialog : public QPrintDialogBase
+{ Q_OBJECT
+
+public:
+ QPrintDialog(QPrint * f, QWidget * parent = 0, const char * name = 0, bool modal = FALSE, WFlags fl = 0);
+ ~QPrintDialog();
+
+ // FIXME: these should return std::string !
+ const char * getFrom();
+ const char * getTo();
+ const char * getPrinter();
+ const char * getFile();
+ const char * getCount();
+ PrinterParams::Target getTarget();
+ PrinterParams::WhichPages getWhichPages();
+ bool getReverse();
+ bool getSort();
+ void setFrom(const char *);
+ void setTo(const char *);
+ void setPrinter(const char *);
+ void setFile(const char *);
+ void setCount(int);
+ void setTarget(PrinterParams::Target);
+ void setWhichPages(PrinterParams::WhichPages);
+ void setReverse(bool);
+ void setSort(bool);
+
+
+protected slots:
+ void cancel_adaptor();
+ void browse_file();
+ void print();
+ void set_collate(int);
+
+private:
+ QPrint * form_;
+
+};
+
+#endif // QPRINTDIALOG_H
--- /dev/null
+/**
+ * \file QRef.C
+ * Copyright 2001 the LyX Team
+ * Read the file COPYING
+ *
+ * \author John Levon
+ */
+
+#include <config.h>
+
+#include "QRefDialog.h"
+
+#include "QtLyXView.h"
+#include "BufferView.h"
+#include "Dialogs.h"
+#include "QRef.h"
+#include "gettext.h"
+#include "buffer.h"
+#include "lyxfunc.h"
+#include "debug.h"
+
+#include <qpushbutton.h>
+#include <qlineedit.h>
+#include <qlistbox.h>
+#include <qcombobox.h>
+#include <qcheckbox.h>
+
+using std::endl;
+
+QRef::QRef(LyXView *v, Dialogs *d)
+ : dialog_(0), lv_(v), d_(d), inset_(0), h_(0), u_(0), ih_(0),
+ sort(0), gotowhere(GOTOREF), type(REF), refs(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->showRef.connect(slot(this, &QRef::showRef));
+ d->createRef.connect(slot(this, &QRef::createRef));
+}
+
+
+QRef::~QRef()
+{
+ delete dialog_;
+}
+
+
+void QRef::showRef(InsetCommand * const inset)
+{
+ // FIXME: when could inset be 0 here ?
+ if (inset==0)
+ return;
+
+ inset_ = inset;
+ readonly = lv_->buffer()->isReadonly();
+ //ih_ = inset_->hide.connect(slot(this,&QRef::hide));
+ params = inset->params();
+
+ show();
+}
+
+
+void QRef::createRef(string const & arg)
+{
+ if (inset_)
+ close();
+
+ readonly = lv_->buffer()->isReadonly();
+ params.setFromString(arg);
+ show();
+}
+
+
+void QRef::select(const char *text)
+{
+ highlight(text);
+ goto_ref();
+}
+
+
+void QRef::highlight(const char *text)
+{
+ if (gotowhere==GOTOBACK)
+ goto_ref();
+
+ dialog_->gotoPB->setEnabled(true);
+ if (!readonly) {
+ dialog_->typeCO->setEnabled(true);
+ dialog_->referenceED->setText(text);
+ dialog_->okPB->setEnabled(true);
+ }
+}
+
+
+void QRef::set_sort(bool on)
+{
+ if (on!=sort) {
+ sort=on;
+ dialog_->refsLB->clear();
+ updateRefs();
+ }
+}
+
+
+void QRef::goto_ref()
+{
+ switch (gotowhere) {
+ case GOTOREF:
+ lv_->getLyXFunc()->dispatch(LFUN_REF_GOTO, dialog_->referenceED->text().latin1());
+ gotowhere=GOTOBACK;
+ dialog_->gotoPB->setText(_("&Go back"));
+ break;
+ case GOTOBACK:
+ //FIXME lv_->getLyXFunc()->dispatch(LFUN_REF_BACK);
+ gotowhere=GOTOREF;
+ dialog_->gotoPB->setText(_("&Goto reference"));
+ break;
+ }
+}
+
+
+void QRef::updateRefs()
+{
+ // list will be re-done, should go back if necessary
+ if (gotowhere==GOTOBACK) {
+ //FIXME lv_->getLyXFunc()->dispatch(LFUN_REF_BACK);
+ gotowhere = GOTOREF;
+ dialog_->gotoPB->setText(_("&Goto reference"));
+ }
+
+ dialog_->refsLB->setAutoUpdate(false);
+
+ // need this because Qt will send a highlight() here for
+ // the first item inserted
+ string tmp(dialog_->referenceED->text());
+
+ for (std::vector< string >::const_iterator iter = refs.begin();
+ iter != refs.end(); ++iter) {
+ if (sort)
+ dialog_->refsLB->inSort(iter->c_str());
+ else
+ dialog_->refsLB->insertItem(iter->c_str());
+ }
+
+ dialog_->referenceED->setText(tmp.c_str());
+
+ for (unsigned int i = 0; i < dialog_->refsLB->count(); ++i) {
+ if (!strcmp(dialog_->referenceED->text(),dialog_->refsLB->text(i)))
+ dialog_->refsLB->setCurrentItem(i);
+ }
+
+ dialog_->refsLB->setAutoUpdate(true);
+ dialog_->refsLB->update();
+}
+
+
+void QRef::do_ref_update()
+{
+ refs.clear();
+ dialog_->refsLB->clear();
+ refs = lv_->buffer()->getLabelList();
+ if (!refs.empty())
+ dialog_->sortCB->setEnabled(true);
+ updateRefs();
+}
+
+
+void QRef::update()
+{
+ dialog_->referenceED->setText(params.getContents().c_str());
+ dialog_->nameED->setText(params.getOptions().c_str());
+
+ if (params.getCmdName()=="pageref") {
+ type = PAGEREF;
+ dialog_->typeCO->setCurrentItem(1);
+ } else if (params.getCmdName()=="vref") {
+ type = VREF;
+ dialog_->typeCO->setCurrentItem(2);
+ } else if (params.getCmdName()=="vpageref") {
+ type = VPAGEREF;
+ dialog_->typeCO->setCurrentItem(3);
+ } else if (params.getCmdName()=="prettyref") {
+ type = PRETTYREF;
+ dialog_->typeCO->setCurrentItem(4);
+ } else {
+ type = REF;
+ dialog_->typeCO->setCurrentItem(0);
+ }
+
+ dialog_->gotoPB->setText(_("&Goto reference"));
+
+ gotowhere = GOTOREF;
+
+ dialog_->sortCB->setChecked(sort);
+
+ do_ref_update();
+
+ dialog_->gotoPB->setEnabled(params.getContents()!="");
+ dialog_->okPB->setEnabled(params.getContents()!="");
+
+ dialog_->typeCO->setEnabled(!readonly);
+ dialog_->sortCB->setEnabled(!readonly);
+ dialog_->refsLB->setEnabled(!readonly);
+ dialog_->okPB->setEnabled(!readonly);
+ dialog_->updatePB->setEnabled(!readonly);
+ if (readonly)
+ dialog_->cancelPB->setText(_("&Close"));
+ else
+ dialog_->cancelPB->setText(_("&Cancel"));
+}
+
+
+void QRef::apply()
+{
+ if (readonly)
+ return;
+
+ if (!lv_->view()->available())
+ return;
+
+ switch (dialog_->typeCO->currentItem()) {
+ case 0:
+ params.setCmdName("ref");
+ break;
+ case 1:
+ params.setCmdName("pageref");
+ break;
+ case 2:
+ params.setCmdName("vref");
+ break;
+ case 3:
+ params.setCmdName("vpageref");
+ break;
+ case 4:
+ params.setCmdName("prettyref");
+ break;
+ default:
+ lyxerr[Debug::GUI] << "Unknown Ref Type" << endl;
+ }
+
+ params.setContents(dialog_->referenceED->text().latin1());
+ params.setOptions(dialog_->nameED->text().latin1());
+
+ if (inset_ != 0) {
+ if (params != inset_->params()) {
+ inset_->setParams(params);
+ lv_->view()->updateInset(inset_, true);
+ }
+ } else
+ lv_->getLyXFunc()->dispatch(LFUN_REF_INSERT, params.getAsString().c_str());
+}
+
+
+void QRef::show()
+{
+ if (!dialog_)
+ dialog_ = new QRefDialog(this, 0, _("LyX: Cross Reference"), false);
+
+ if (!dialog_->isVisible()) {
+ h_ = d_->hideBufferDependent.connect(slot(this, &QRef::hide));
+ //u_ = d_->updateBufferDependent.connect(slot(this, &QRef::update));
+ }
+
+ dialog_->raise();
+ dialog_->setActiveWindow();
+
+ update();
+ dialog_->show();
+}
+
+
+void QRef::close()
+{
+ h_.disconnect();
+ u_.disconnect();
+ ih_.disconnect();
+ inset_ = 0;
+}
+
+
+void QRef::hide()
+{
+ dialog_->hide();
+ close();
+}
--- /dev/null
+// -*- C++ -*-
+/**
+ * \file QRef.h
+ * Copyright 2001 the LyX Team
+ * Read the file COPYING
+ *
+ * \author John Levon <moz@compsoc.man.ac.uk>
+ * \author Kalle Dalheimer <kalle@klaralvdalens-datakonsult.se>
+ */
+
+#ifndef QREF_H
+#define QREF_H
+
+#include "DialogBase.h"
+#include "LString.h"
+#include "boost/utility.hpp"
+#include "insets/insetcommand.h"
+
+class Dialogs;
+class LyXView;
+class QRefDialog;
+
+class QRef : public DialogBase {
+public:
+ QRef(LyXView *, Dialogs *);
+ ~QRef();
+
+ /// double-click a ref
+ void select(const char *);
+ /// highlight a ref
+ void highlight(const char *);
+ /// set sort
+ void set_sort(bool);
+ /// goto a ref (or back)
+ void goto_ref();
+ /// update dialog
+ void update();
+ /// update just the refs
+ void do_ref_update();
+ /// Apply changes
+ void apply();
+ /// close the connections
+ void close();
+
+private:
+ enum Type {
+ REF, PAGEREF, VREF, VPAGEREF, PRETTYREF
+ };
+
+ enum GotoType {
+ GOTOREF, GOTOBACK
+ };
+
+ /// Create the dialog if necessary, update it and display it.
+ void show();
+ /// Hide the dialog.
+ void hide();
+
+ /// create a Reference inset
+ void createRef(string const &);
+ /// edit a Reference inset
+ void showRef(InsetCommand * const);
+
+ /// update the keys list
+ void updateRefs(void);
+
+ /// Real GUI implementation.
+ QRefDialog * dialog_;
+
+ /// the LyXView we belong to
+ LyXView * lv_;
+
+ /** Which Dialogs do we belong to?
+ Used so we can get at the signals we have to connect to.
+ */
+ Dialogs * d_;
+ /// pointer to the inset if any
+ InsetCommand * inset_;
+ /// insets params
+ InsetCommandParams params;
+ /// is the inset we are reading from a readonly buffer ?
+ bool readonly;
+
+ /// Hide connection.
+ SigC::Connection h_;
+ /// Update connection.
+ SigC::Connection u_;
+ /// Inset hide connection.
+ SigC::Connection ih_;
+
+ /// to sort or not to sort
+ bool sort;
+
+ /// where to go
+ GotoType gotowhere;
+
+ /// current type
+ Type type;
+
+ /// available references
+ std::vector< string > refs;
+};
+
+#endif // QREF_H
--- /dev/null
+/**
+ * \file QRefDialog.C
+ * Copyright 2001 the LyX Team
+ * Read the file COPYING
+ *
+ * \author Kalle Dalheimer <kalle@klaralvdalens-datakonsult.se>
+ */
+
+#include "QRefDialog.h"
+#include "Dialogs.h"
+#include "QRef.h"
+
+QRefDialog::QRefDialog(QRef * form, QWidget * parent, const char * name, bool modal, WFlags fl)
+ : QRefDialogBase(parent, name, modal, fl),
+ form_(form)
+{
+}
+
+
+QRefDialog::~QRefDialog()
+{
+}
+
+
+void QRefDialog::apply_adaptor()
+{
+ form_->apply();
+ form_->close();
+ hide();
+}
+
+
+void QRefDialog::goto_adaptor()
+{
+ form_->goto_ref();
+}
+
+
+void QRefDialog::highlight_adaptor(const QString & sel)
+{
+ form_->highlight(sel);
+}
+
+
+void QRefDialog::close_adaptor()
+{
+ form_->close();
+ hide();
+}
+
+
+void QRefDialog::select_adaptor(const QString & sel)
+{
+ form_->select(sel);
+}
+
+
+void QRefDialog::sort_adaptor(bool sort)
+{
+ form_->set_sort(sort);
+}
+
+
+void QRefDialog::update_adaptor()
+{
+ form_->do_ref_update();
+}
+
+
+
+void QRefDialog::closeEvent(QCloseEvent * e)
+{
+ form_->close();
+ e->accept();
+}
--- /dev/null
+/**
+ * \file QRefDialog.h
+ * Copyright 2001 the LyX Team
+ * Read the file COPYING
+ *
+ * \author Kalle Dalheimer <kalle@klaralvdalens-datakonsult.se>
+ */
+
+#ifndef QREFDIALOG_H
+#define QREFDIALOG_H
+
+#include <config.h>
+
+#include "ui/QRefDialogBase.h"
+
+class QRef;
+
+class QRefDialog : public QRefDialogBase
+{ Q_OBJECT
+
+public:
+ QRefDialog(QRef * form, QWidget * parent = 0, const char * name = 0, bool modal = FALSE, WFlags fl = 0);
+ ~QRefDialog();
+
+public slots:
+ void apply_adaptor();
+ void goto_adaptor();
+ void highlight_adaptor(const QString &);
+ void close_adaptor();
+ void select_adaptor(const QString &);
+ void sort_adaptor(bool);
+ void update_adaptor();
+
+protected:
+ void closeEvent(QCloseEvent * e);
+
+private:
+ QRef * form_;
+};
+
+#endif // QREFDIALOG_H
--- /dev/null
+/**
+ * \file QSearch.C
+ * Copyright 2001 The LyX Team.
+ * See the file COPYING.
+ *
+ * \author Edwin Leuven
+ */
+
+#include <config.h>
+
+#include "gettext.h"
+#include "QSearchDialog.h"
+#include "QSearch.h"
+#include "Dialogs.h"
+#include "Liason.h"
+#include "QtLyXView.h"
+#include "buffer.h"
+#include "lyxfind.h"
+#include "support/lstrings.h"
+#include "BufferView.h"
+
+using Liason::setMinibuffer;
+
+QSearch::QSearch(LyXView *v, Dialogs *d)
+ : dialog_(0), lv_(v), d_(d), h_(0), u_(0)
+{
+ d->showSearch.connect(SigC::slot(this, &QSearch::show));
+ // perhaps in the future we'd like a
+ // "search again" button/keybinding
+ // d->searchAgain.connect(slot(this, &QSearch::FindNext));
+}
+
+
+QSearch::~QSearch()
+{
+ delete dialog_;
+}
+
+
+void QSearch::show()
+{
+ if (!dialog_) {
+ dialog_ = new QSearchDialog(this, 0, _("Find and Replace"), false);
+ }
+
+ if (!dialog_->isVisible()) {
+ h_ = d_->hideBufferDependent.connect(SigC::slot(this, &QSearch::hide));
+ u_ = d_->updateBufferDependent.connect(SigC::slot(this, &QSearch::update));
+ }
+
+ dialog_->raise();
+ dialog_->setActiveWindow();
+ update();
+ dialog_->show();
+}
+
+
+void QSearch::find(string const & searchstr, bool const & casesensitive,
+ bool const & matchword, bool const & searchback)
+{
+ bool const found = LyXFind(lv_->view(), searchstr, searchback,
+ casesensitive, matchword);
+
+ if (!found)
+ setMinibuffer(lv_, _("String not found!"));
+}
+
+
+void QSearch::replace(string const & searchstr, string const & replacestr,
+ bool const & casesensitive, bool const & matchword,
+ bool const & searchback, bool const & replaceall)
+{
+ int replace_count = LyXReplace(lv_->view(), searchstr, replacestr,
+ searchback, casesensitive, matchword,
+ replaceall);
+
+ if (replace_count == 0) {
+ setMinibuffer(lv_, _("String not found!"));
+ } else {
+ if (replace_count == 1) {
+ setMinibuffer(lv_, _("String has been replaced."));
+ } else {
+ string str = tostr(replace_count);
+ str += _(" strings have been replaced.");
+ setMinibuffer(lv_, str.c_str());
+ }
+ }
+}
+
+
+void QSearch::close()
+{
+ h_.disconnect();
+ u_.disconnect();
+}
+
+
+void QSearch::hide()
+{
+ dialog_->hide();
+ close();
+}
+
+
+void QSearch::update(bool)
+{
+ if (!lv_->view()->available())
+ return;
+
+ dialog_->setReadOnly(lv_->buffer()->isReadonly());
+}
--- /dev/null
+// -*- C++ -*-
+/**
+ * \file QSearch.h
+ * Copyright 2001 The LyX Team.
+ * See the file COPYING.
+ *
+ * \author Edwin Leuven
+ */
+
+#ifndef QSEARCH_H
+#define QSEARCH_H
+
+#include "DialogBase.h"
+#include "LString.h"
+#include "support/lstrings.h"
+
+class LyXView;
+class Dialogs;
+class QSearchDialog;
+
+class QSearch : public DialogBase {
+public:
+ ///
+ QSearch(LyXView *, Dialogs *);
+ ///
+ ~QSearch();
+
+ /// Close connections.
+ void close();
+ /// find stuff (we need access to lv_).
+ void find(string const &, bool const &, bool const &, bool const &);
+ /// replace stuff (we need access to lv_).
+ void replace(string const &, string const &,
+ bool const &, bool const &, bool const &, bool const &);
+
+private:
+ /// Show the dialog.
+ void show();
+ /// Hide the dialog.
+ void hide();
+ /// Update the dialog.
+ void update(bool switched = false);
+
+ /// Real GUI implementation.
+ QSearchDialog * dialog_;
+
+ /// the LyXView we belong to.
+ LyXView * lv_;
+
+ /** Which Dialogs do we belong to?
+ * Used so we can get at the signals we have to connect to.
+ */
+ Dialogs * d_;
+
+ /// Hide connection.
+ SigC::Connection h_;
+
+ /// Update connection.
+ SigC::Connection u_;
+
+};
+
+#endif // QSEARCH_H
--- /dev/null
+/**
+ * \file QSearchDialog.C
+ * Copyright 2001 The LyX Team.
+ * See the file COPYING.
+ *
+ * \author Edwin Leuven
+ */
+
+#include <config.h>
+
+#include "QSearchDialog.h"
+
+#include <qpushbutton.h>
+#include <qcombobox.h>
+#include <qcheckbox.h>
+#include <qlabel.h>
+
+QSearchDialog::QSearchDialog(QSearch * form, QWidget * parent, const char * name, bool modal, WFlags fl)
+ : QSearchDialogBase(parent, name, modal, fl),
+ form_(form)
+{
+ setCaption(name);
+}
+
+
+QSearchDialog::~QSearchDialog()
+{
+}
+
+
+void QSearchDialog::closeEvent(QCloseEvent * e)
+{
+ form_->close();
+ e->accept();
+}
+
+
+void QSearchDialog::setReadOnly(bool readonly)
+{
+ replace->setEnabled(!readonly);
+ replaceLabel->setEnabled(!readonly);
+ replacePB->setEnabled(!readonly);
+ replaceAllPB->setEnabled(!readonly);
+}
+
+
+void QSearchDialog::Find()
+{
+ form_->find(tostr(find->currentText()).c_str(),
+ caseSensitive->isChecked(),
+ matchWord->isChecked(),
+ !searchBack->isChecked());
+}
+
+
+void QSearchDialog::Replace(bool replaceall)
+{
+ form_->replace(tostr(find->currentText()).c_str(),
+ tostr(replace->currentText()).c_str(),
+ caseSensitive->isChecked(),
+ matchWord->isChecked(),
+ !searchBack->isChecked(),
+ replaceall);
+}
--- /dev/null
+/**
+ * \file QSearchDialog.h
+ * Copyright 2001 the LyX Team
+ * Read the file COPYING
+ *
+ * \author Edwin Leuven
+ */
+
+#ifndef QSEARCHDIALOG_H
+#define QSEARCHDIALOG_H
+
+#include <config.h>
+
+#include "ui/QSearchDialogBase.h"
+#include "QSearch.h"
+
+class QCloseEvent;
+
+class QSearchDialog : public QSearchDialogBase
+{ Q_OBJECT
+
+public:
+ QSearchDialog(QSearch * form, QWidget * parent = 0, const char * name = 0, bool modal = FALSE, WFlags fl = 0);
+ ~QSearchDialog();
+
+ void setReadOnly(bool);
+
+ void Replace(bool replaceall = false);
+
+protected:
+ void closeEvent(QCloseEvent * e);
+
+private:
+ QSearch * form_;
+
+protected slots:
+
+ void Find();
+
+ void Replace() {
+ Replace(false);
+ };
+
+ void ReplaceAll() {
+ Replace(true);
+ };
+
+ void cancel_adaptor() {
+ form_->close();
+ hide();
+ }
+};
+
+#endif // QSEARCHDIALOG_H
--- /dev/null
+/**
+ * \file QSplash.C
+ * Copyright 2001 the LyX Team
+ * Read the file COPYING
+ *
+ * \author Edwin Leuven
+ */
+
+#include <config.h>
+
+#include <qframe.h>
+
+#include "QSplashDialog.h"
+#include "QSplash.h"
+#include "Dialogs.h"
+#include "version.h"
+#include "support/filetools.h"
+#include "lyxrc.h"
+
+QSplash::QSplash(LyXView *, Dialogs * d)
+ : dialog_(0), d_(d)
+{
+ c_ = d->showSplash.connect(SigC::slot(this, &QSplash::show));
+}
+
+
+QSplash::~QSplash()
+{
+ c_.disconnect();
+ delete dialog_;
+}
+
+
+void QSplash::hide()
+{
+ dialog_->hide();
+}
+
+
+void QSplash::show()
+{
+ if (!lyxrc.show_banner)
+ return;
+
+ if (!dialog_)
+ dialog_ = new QSplashDialog( 0, "LyX");
+
+ // show banner
+ dialog_->show();
+}
--- /dev/null
+// -*- C++ -*-
+/**
+ * \file QSplash.h
+ * Copyright 2001 the LyX Team
+ * Read the file COPYING
+ *
+ * \author Edwin Leuven
+ */
+
+#ifndef QSPLASH_H
+#define QSPLASH_H
+
+#include "DialogBase.h"
+
+class Dialogs;
+class LyXView;
+class QSplashDialog;
+
+class QSplash : public DialogBase {
+
+public:
+ QSplash(LyXView *, Dialogs *);
+
+ ~QSplash();
+
+ /// hide the dialog
+ void hide();
+
+private:
+ /// show the dialog
+ void show();
+
+ /// Real GUI implementation.
+ QSplashDialog * dialog_;
+ /// our container
+ Dialogs * d_;
+ /// the show connection
+ SigC::Connection c_;
+};
+
+#endif // QSPLASH_H
--- /dev/null
+/**
+ * \file QSplashDialog.C
+ * Copyright 2001 the LyX Team
+ * Read the file COPYING
+ *
+ * \author Edwin Leuven
+ */
+
+#include <config.h>
+
+#include <qapplication.h>
+#include <qtimer.h>
+#include <qframe.h>
+#include <qpixmap.h>
+
+#include "version.h"
+#include "support/filetools.h"
+#include "support/lstrings.h"
+#include "lyxrc.h"
+#include "QSplashDialog.h"
+
+QSplashDialog::QSplashDialog(QWidget * parent, const char * name, WFlags fl, bool modal)
+ : QFrame(parent, name, fl, modal)
+{
+ string const banner_file = LibFileSearch("images", "banner", "xpm");
+ if (banner_file.empty())
+ return;
+
+ QPixmap const pm(tostr(banner_file).c_str());
+ int const w = pm.width();
+ int const h = pm.height();
+
+ setBackgroundPixmap(pm);
+ setLineWidth(0);
+ setGeometry(QApplication::desktop()->width()/2 - w/2,
+ QApplication::desktop()->height()/2 - h/2,
+ w, h);
+
+ QTimer::singleShot(5*1000, this, SLOT(hide()));
+}
+
+
+QSplashDialog::~QSplashDialog()
+{
+}
+
+
+void QSplashDialog::mousePressEvent( QMouseEvent * )
+{
+ hide();
+}
--- /dev/null
+/**
+ * \file QSplashDialog.C
+ * Copyright 2001 the LyX Team
+ * Read the file COPYING
+ *
+ * \author Edwin Leuven
+ */
+
+#ifndef FORMSPLASHBASE_H
+#define FORMSPLASHBASE_H
+
+class QSplashDialog : public QFrame
+{
+public:
+ QSplashDialog(QWidget * parent, const char * name,
+ WFlags fl = QWidget::WStyle_NoBorder | QWidget::WStyle_Customize,
+ bool modal = false);
+
+ ~QSplashDialog();
+
+protected:
+ virtual void mousePressEvent(QMouseEvent *);
+};
+
+#endif // QSPLASHDIALOG_H
--- /dev/null
+/**
+ * \file QTabularCreate.C
+ * Copyright 2001 the LyX Team
+ * Read the file COPYING
+ *
+ * \author John Levon <moz@compsoc.man.ac.uk>
+ */
+
+#include <config.h>
+
+#include "QTabularCreateDialog.h"
+#include "Dialogs.h"
+#include "QTabularCreate.h"
+#include "gettext.h"
+#include "QtLyXView.h"
+#include "lyxfunc.h"
+#include "BufferView.h"
+#include "insets/insettabular.h"
+#include "support/lstrings.h"
+
+using SigC::slot;
+
+QTabularCreate::QTabularCreate(LyXView *v, Dialogs *d)
+ : dialog_(0), lv_(v), d_(d), h_(0)
+{
+ d->showTabularCreate.connect(slot(this, &QTabularCreate::show));
+}
+
+
+QTabularCreate::~QTabularCreate()
+{
+ delete dialog_;
+}
+
+
+void QTabularCreate::apply(int rows, int cols)
+{
+ if (!lv_->view()->available())
+ return;
+
+ string tmp = tostr(rows) + " " + tostr(cols);
+ lv_->getLyXFunc()->dispatch(LFUN_INSET_TABULAR, tmp);
+}
+
+
+void QTabularCreate::show()
+{
+ if (!dialog_)
+ dialog_ = new QTabularCreateDialog(this, 0, _("LyX: Insert Table"));
+
+ if (!dialog_->isVisible()) {
+ h_ = d_->hideBufferDependent.connect(slot(this, &QTabularCreate::hide));
+ }
+
+ dialog_->raise();
+ dialog_->setActiveWindow();
+
+ update();
+ dialog_->show();
+}
+
+
+void QTabularCreate::close()
+{
+ h_.disconnect();
+}
+
+
+void QTabularCreate::hide()
+{
+ dialog_->hide();
+ close();
+}
--- /dev/null
+// -*- C++ -*-
+/**
+ * \file QTabularCreate.h
+ * Copyright 2001 the LyX Team
+ * Read the file COPYING
+ *
+ * \author John Levon <moz@compsoc.man.ac.uk>
+ */
+
+#ifndef QTABULARCREATE_H
+#define QTABULARCREATE_H
+
+#include "DialogBase.h"
+#include "LString.h"
+#include "boost/utility.hpp"
+
+class Dialogs;
+class LyXView;
+class QTabularCreateDialog;
+
+class QTabularCreate : public DialogBase {
+public:
+ QTabularCreate(LyXView *, Dialogs *);
+ ~QTabularCreate();
+
+ /// create the table
+ void apply(int rows, int cols);
+ /// close the connections
+ void close();
+
+private:
+ /// Create the dialog if necessary, update it and display it.
+ void show();
+ /// Hide the dialog.
+ void hide();
+
+ /// Real GUI implementation.
+ QTabularCreateDialog * dialog_;
+
+ /// the LyXView we belong to
+ LyXView * lv_;
+
+ /** Which Dialogs do we belong to?
+ Used so we can get at the signals we have to connect to.
+ */
+ Dialogs * d_;
+
+ /// Hide connection.
+ SigC::Connection h_;
+};
+
+#endif // QTABULARCREATE_H
--- /dev/null
+/**
+ * \file QTabularCreateDialog.C
+ * Copyright 2001 the LyX Team
+ * Read the file COPYING
+ *
+ * \author John Levon, moz@compsoc.man.ac.uk
+ * \author Edwin Leuven, leuven@fee.uva.nl
+ */
+
+#include <config.h>
+#include <gettext.h>
+
+#include "QTabularCreateDialog.h"
+#include "QTabularCreate.h"
+
+#include "support/lstrings.h"
+
+#include <qpushbutton.h>
+#include <qspinbox.h>
+#include "emptytable.h"
+#include <qpainter.h>
+#include <qtableview.h>
+#include <qtooltip.h>
+
+QTabularCreateDialog::QTabularCreateDialog(QTabularCreate * form, QWidget * parent, const char * name, bool modal, WFlags fl)
+ : QTabularCreateDialogBase(parent, name, modal, fl),
+ form_(form)
+{
+ setCaption(name);
+ table->setMinimumSize(100,100);
+ rows->setValue(5);
+ columns->setValue(5);
+ QToolTip::add(table, _("Drag with left mouse button to resize"));
+}
+
+
+QTabularCreateDialog::~QTabularCreateDialog()
+{
+ // no need to delete child widgets, Qt does it all for us
+}
+
+
+void QTabularCreateDialog::insert_tabular()
+{
+ form_->apply((rows->text()).toInt(), (columns->text()).toInt());
+ form_->close();
+ hide();
+}
+
+
+void QTabularCreateDialog::cancel_adaptor()
+{
+ form_->close();
+ hide();
+}
+
+
+void QTabularCreateDialog::colsChanged(int nr_cols)
+{
+ if (nr_cols != (columns->text()).toInt())
+ columns->setValue(nr_cols);
+}
+
+
+void QTabularCreateDialog::rowsChanged(int nr_rows)
+{
+ if (nr_rows != (rows->text()).toInt())
+ rows->setValue(nr_rows);
+}
--- /dev/null
+/**
+ * \file QTabularCreateDialog.h
+ * Copyright 2001 the LyX Team
+ * Read the file COPYING
+ *
+ * \author John Levon <moz@compsoc.man.ac.uk>
+ * \author Edwin Leuven <leuven@fee.uva.nl>
+ */
+
+#ifndef QTABULARCREATEDIALOG_H
+#define QTABULARCREATEDIALOG_H
+#include "ui/QTabularCreateDialogBase.h"
+
+class QTabularCreate;
+
+class QTabularCreateDialog : public QTabularCreateDialogBase
+{ Q_OBJECT
+
+public:
+ QTabularCreateDialog(QTabularCreate * form, QWidget * parent = 0, const char * name = 0, bool modal = FALSE, WFlags fl = 0);
+ ~QTabularCreateDialog();
+
+protected slots:
+ void insert_tabular();
+ void cancel_adaptor();
+ virtual void colsChanged(int);
+ virtual void rowsChanged(int);
+
+private:
+ QTabularCreate * form_;
+};
+
+#endif // QTABULARCREATEDIALOG_H
--- /dev/null
+/**
+ * \file QToc.C
+ * Copyright 2001 the LyX Team
+ * Read the file COPYING
+ *
+ * \author John Levon <moz@compsoc.man.ac.uk>
+ */
+
+#include <config.h>
+
+#include <stack>
+
+#include <qslider.h>
+#include "QTocDialog.h"
+#include "QtLyXView.h"
+
+#include "Dialogs.h"
+#include "BufferView.h"
+#include "QToc.h"
+#include "gettext.h"
+#include "buffer.h"
+#include "support/lstrings.h"
+#include "lyxfunc.h"
+#include "debug.h"
+
+using std::vector;
+using std::pair;
+using std::stack;
+using std::endl;
+
+#include <qlistview.h>
+#include <qcombobox.h>
+
+QToc::QToc(LyXView *v, Dialogs *d)
+ : dialog_(0), lv_(v), d_(d), inset_(0), h_(0), u_(0), ih_(0),
+ /*toclist(0),*/ depth(1)
+{
+ d->showTOC.connect(slot(this, &QToc::showTOC));
+ d->createTOC.connect(slot(this, &QToc::createTOC));
+}
+
+
+QToc::~QToc()
+{
+ delete dialog_;
+}
+
+
+void QToc::showTOC(InsetCommand * const inset)
+{
+ // FIXME: when could inset be 0 here ?
+ if (inset == 0)
+ return;
+
+ inset_ = inset;
+ //FIXME ih_ = inset_->hide.connect(slot(this,&QToc::hide));
+ params = inset->params();
+
+ show();
+}
+
+
+void QToc::createTOC(string const & arg)
+{
+ if (inset_)
+ close();
+
+ params.setFromString(arg);
+ show();
+}
+
+
+void QToc::updateToc(int newdepth)
+{
+ if (!lv_->view()->available()) {
+ //toclist.clear();
+ dialog_->tocLV->clear();
+ return;
+ }
+
+#if 0
+ vector< vector<Buffer::TocItem> > tmp =
+ lv_->view()->buffer()->getTocList();
+
+ // Check if all elements are the same.
+ if (newdepth==depth && toclist.size() == tmp[type].size()) {
+ unsigned int i = 0;
+ for (; i < toclist.size(); ++i) {
+ if (toclist[i] != tmp[type][i])
+ break;
+ }
+ if (i >= toclist.size())
+ return;
+ }
+
+ depth=newdepth;
+
+ toclist = tmp[type];
+
+ dialog_->tocLV->clear();
+ if (toclist.empty())
+ return;
+
+ dialog_->tocLV->setUpdatesEnabled(false);
+
+ int curdepth = 0;
+ stack< pair< QListViewItem *, QListViewItem *> > istack;
+ QListViewItem *last = 0;
+ QListViewItem *parent = 0;
+ QListViewItem *item;
+
+ // Yes, it is this ugly. Two reasons - root items must have a QListView parent,
+ // rather than QListViewItem; and the TOC can move in and out an arbitrary number
+ // of levels
+
+ for (vector< Buffer::TocItem >::const_iterator iter = toclist.begin();
+ iter != toclist.end(); ++iter) {
+ if (iter->depth == curdepth) {
+ // insert it after the last one we processed
+ if (!parent)
+ item = (last) ? (new QListViewItem(dialog_->tocLV,last)) : (new QListViewItem(dialog_->tocLV));
+ else
+ item = (last) ? (new QListViewItem(parent,last)) : (new QListViewItem(parent));
+ } else if (iter->depth > curdepth) {
+ int diff = iter->depth - curdepth;
+ // first save old parent and last
+ while (diff--)
+ istack.push(pair< QListViewItem *, QListViewItem * >(parent,last));
+ item = (last) ? (new QListViewItem(last)) : (new QListViewItem(dialog_->tocLV));
+ parent = last;
+ } else {
+ int diff = curdepth - iter->depth;
+ pair< QListViewItem *, QListViewItem * > top;
+ // restore context
+ while (diff--) {
+ top = istack.top();
+ istack.pop();
+ }
+ parent = top.first;
+ last = top.second;
+ // insert it after the last one we processed
+ if (!parent)
+ item = (last) ? (new QListViewItem(dialog_->tocLV,last)) : (new QListViewItem(dialog_->tocLV));
+ else
+ item = (last) ? (new QListViewItem(parent,last)) : (new QListViewItem(parent));
+ }
+ lyxerr[Debug::GUI] << "Table of contents" << endl << "Added item " << iter->str.c_str()
+ << " at depth " << iter->depth << ", previous sibling \"" << (last ? last->text(0).latin1() : "0")
+ << "\", parent \"" << (parent ? parent->text(0).latin1() : "0") << "\"" << endl;
+ item->setText(0,iter->str.c_str());
+ item->setOpen(iter->depth < depth);
+ curdepth = iter->depth;
+ last = item;
+ }
+
+ dialog_->tocLV->setUpdatesEnabled(true);
+ dialog_->tocLV->update();
+}
+
+
+void QToc::setType(Buffer::TocType toctype)
+{
+ type = toctype;
+ switch (type) {
+ case Buffer::TOC_TOC:
+ dialog_->setCaption(_("Table of Contents"));
+ dialog_->tocLV->setColumnText(0,_("Table of Contents"));
+ dialog_->depthSL->setEnabled(true);
+ break;
+ case Buffer::TOC_LOF:
+ dialog_->setCaption(_("List of Figures"));
+ dialog_->tocLV->setColumnText(0,_("List of Figures"));
+ dialog_->depthSL->setEnabled(false);
+ break;
+ case Buffer::TOC_LOT:
+ dialog_->setCaption(_("List of Tables"));
+ dialog_->tocLV->setColumnText(0,_("List of Tables"));
+ dialog_->depthSL->setEnabled(false);
+ break;
+ case Buffer::TOC_LOA:
+ dialog_->setCaption(_("List of Algorithms"));
+ dialog_->tocLV->setColumnText(0,_("List of Algorithms"));
+ dialog_->depthSL->setEnabled(false);
+ break;
+ }
+}
+
+
+void QToc::set_depth(int newdepth)
+{
+ if (newdepth!=depth)
+ updateToc(newdepth);
+#endif
+}
+
+
+void QToc::update()
+{
+#if 0
+ if (params.getCmdName()=="tableofcontents") {
+ setType(Buffer::TOC_TOC);
+ dialog_->typeCO->setCurrentItem(0);
+ } else if (params.getCmdName()=="listoffigures") {
+ setType(Buffer::TOC_LOF);
+ dialog_->typeCO->setCurrentItem(1);
+ } else if (params.getCmdName()=="listoftables") {
+ setType(Buffer::TOC_LOT);
+ dialog_->typeCO->setCurrentItem(2);
+ } else {
+ setType(Buffer::TOC_LOA);
+ dialog_->typeCO->setCurrentItem(3);
+ }
+
+ updateToc(depth);
+}
+
+
+void QToc::select(const char *text)
+{
+ if (!lv_->view()->available())
+ return;
+
+ vector <Buffer::TocItem>::const_iterator iter = toclist.begin();
+ for (; iter != toclist.end(); ++iter) {
+ if (iter->str==text)
+ break;
+ }
+
+ if (iter==toclist.end()) {
+ lyxerr[Debug::GUI] << "Couldn't find highlighted TOC entry : " << text << endl;
+ return;
+ }
+
+ lv_->getLyXFunc()->Dispatch(LFUN_GOTO_PARAGRAPH, tostr(iter->par->id()).c_str());
+}
+
+
+void QToc::set_type(Buffer::TocType toctype)
+{
+ if (toctype==type)
+ return;
+
+ setType(toctype);
+ updateToc(depth);
+#endif
+}
+
+
+void QToc::show()
+{
+ if (!dialog_)
+ dialog_ = new QTocDialog(this, 0, _("LyX: Table of Contents"), false);
+
+ if (!dialog_->isVisible()) {
+ h_ = d_->hideBufferDependent.connect(slot(this, &QToc::hide));
+ //u_ = d_->updateBufferDependent.connect(slot(this, &QToc::update));
+ }
+
+ dialog_->raise();
+ dialog_->setActiveWindow();
+
+ update();
+ dialog_->show();
+}
+
+
+void QToc::close()
+{
+ h_.disconnect();
+ u_.disconnect();
+ ih_.disconnect();
+ inset_ = 0;
+}
+
+
+void QToc::hide()
+{
+ dialog_->hide();
+ close();
+}
--- /dev/null
+// -*- C++ -*-
+/**
+ * \file QToc.h
+ * Copyright 2001 the LyX Team
+ * Read the file COPYING
+ *
+ * \author John Levon
+ * \author Kalle Dalheimer <kalle@klaralvdalens-datakonsult.se>
+ */
+
+#ifndef QTOC_H
+#define QTOC_H
+
+#include "DialogBase.h"
+#include "LString.h"
+#include "boost/utility.hpp"
+#include "insets/insetcommand.h"
+#include "buffer.h"
+
+class Dialogs;
+class QTocDialog;
+
+class QToc : public DialogBase {
+public:
+ QToc(LyXView *, Dialogs *);
+ ~QToc();
+
+ // Build the dialog
+ virtual void build();
+ /// Update the dialog before showing it.
+ virtual void update();
+ /// close the connections
+ virtual void close();
+
+private:
+ /// Create the dialog if necessary, update it and display it.
+ void show();
+ /// Hide the dialog.
+ void hide();
+
+ /// create a Toc inset
+ void createTOC(string const &);
+ /// view a Toc inset
+ void showTOC(InsetCommand * const);
+
+ /// update the Toc
+ void updateToc(int);
+
+ /// Real GUI implementation.
+ QTocDialog * dialog_;
+
+ /// the LyXView we belong to
+ LyXView * lv_;
+
+ /** Which Dialogs do we belong to?
+ Used so we can get at the signals we have to connect to.
+ */
+ Dialogs * d_;
+ /// pointer to the inset if any
+ InsetCommand * inset_;
+ /// insets params
+ InsetCommandParams params;
+
+ /// Hide connection.
+ SigC::Connection h_;
+ /// Update connection.
+ SigC::Connection u_;
+ /// Inset hide connection.
+ SigC::Connection ih_;
+
+ /// the toc list
+ //std::vector <Buffer::TocItem> toclist;
+
+ /// depth of list shown
+ int depth;
+};
+
+#endif // QTOC_H
--- /dev/null
+/**
+ * \file QTocDialog.C
+ * Copyright 2001 the LyX Team
+ * Read the file COPYING
+ *
+ * \author John Levon <moz@compsoc.man.ac.uk>
+ */
+
+#include <config.h>
+#include <debug.h>
+#include "QTocDialog.h"
+#include "Dialogs.h"
+#include "QToc.h"
+
+#include <qlistview.h>
+
+QTocDialog::QTocDialog(QToc * form, QWidget * parent, const char * name, bool modal, WFlags fl)
+ : QTocDialogBase(parent, name, modal, fl),
+ form_(form)
+{
+}
+
+
+QTocDialog::~QTocDialog()
+{
+}
+
+
+void QTocDialog::activate_adaptor(int index)
+{
+ switch (index) {
+ case 0:
+ //form_->set_type(Buffer::TOC_TOC);
+ break;
+ case 1:
+ //form_->set_type(Buffer::TOC_LOF);
+ break;
+ case 2:
+ //form_->set_type(Buffer::TOC_LOT);
+ break;
+ case 3:
+ //form_->set_type(Buffer::TOC_LOA);
+ break;
+ default:
+ lyxerr[Debug::GUI] << "Unknown TOC combo selection." << std::endl;
+ break;
+ }
+}
+
+void QTocDialog::close_adaptor()
+{
+ form_->close();
+ hide();
+}
+
+
+void QTocDialog::depth_adaptor(int depth)
+{
+ //form_->set_depth(depth);
+}
+
+
+void QTocDialog::select_adaptor(QListViewItem * item)
+{
+ //form_->select(item->text(0));
+}
+
+
+void QTocDialog::update_adaptor()
+{
+ form_->update();
+}
+
+
+void QTocDialog::closeEvent(QCloseEvent * e)
+{
+ form_->close();
+ e->accept();
+}
--- /dev/null
+/**
+ * \file QTocDialog.h
+ * Copyright 2001 the LyX Team
+ * Read the file COPYING
+ *
+ * \author John Levon <moz@compsoc.man.ac.uk>
+ */
+
+#ifndef QTOCDIALOG_H
+#define QTOCDIALOG_H
+
+#include "ui/QTocDialogBase.h"
+
+class QToc;
+
+class QTocDialog : public QTocDialogBase
+{ Q_OBJECT
+
+public:
+ QTocDialog(QToc * form, QWidget * parent = 0, const char * name = 0, bool modal = FALSE, WFlags fl = 0);
+ ~QTocDialog();
+
+public slots:
+ void activate_adaptor(int);
+ void close_adaptor();
+ void depth_adaptor(int);
+ void select_adaptor(QListViewItem *);
+ void update_adaptor();
+
+protected:
+ void closeEvent(QCloseEvent * e);
+
+private:
+ QToc * form_;
+};
+
+#endif // QTOCDIALOG_H
--- /dev/null
+/**
+ * \file QURL.C
+ * Copyright 2001 the LyX Team
+ * Read the file COPYING
+ *
+ * \author John Levon
+ */
+
+#include <config.h>
+
+#include "QURLDialog.h"
+#include "QtLyXView.h"
+#include "BufferView.h"
+
+#include "Dialogs.h"
+#include "QURL.h"
+#include "gettext.h"
+#include "buffer.h"
+#include "lyxfunc.h"
+
+#include <qlineedit.h>
+#include <qcheckbox.h>
+#include <qpushbutton.h>
+
+QURL::QURL(LyXView *v, Dialogs *d)
+ : dialog_(0), lv_(v), d_(d), inset_(0), h_(0), u_(0), ih_(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->showUrl.connect(slot(this, &QURL::showUrl));
+ d->createUrl.connect(slot(this, &QURL::createUrl));
+}
+
+
+QURL::~QURL()
+{
+ delete dialog_;
+}
+
+
+void QURL::showUrl(InsetCommand * const inset)
+{
+ // FIXME: when could inset be 0 here ?
+ if (inset==0)
+ return;
+
+ inset_ = inset;
+ readonly = lv_->buffer()->isReadonly();
+ //ih_ = inset_->hide.connect(slot(this,&QURL::hide));
+ params = inset->params();
+
+ show();
+}
+
+
+void QURL::createUrl(string const & arg)
+{
+ // we could already be showing a URL, clear it out
+ if (inset_)
+ close();
+
+ readonly = lv_->buffer()->isReadonly();
+ params.setFromString(arg);
+ show();
+}
+
+
+void QURL::update()
+{
+ dialog_->urlED->setText(params.getContents().c_str());
+ dialog_->nameED->setText(params.getOptions().c_str());
+
+ if (params.getCmdName()=="url")
+ dialog_->hyperlinkCB->setChecked(false);
+ else
+ dialog_->hyperlinkCB->setChecked(true);
+
+ if (readonly) {
+ dialog_->nameED->setFocusPolicy(QWidget::NoFocus);
+ dialog_->urlED->setFocusPolicy(QWidget::NoFocus);
+ dialog_->okPB->setEnabled(false);
+ dialog_->cancelPB->setText(_("Close"));
+ dialog_->hyperlinkCB->setEnabled(false);
+ } else {
+ dialog_->nameED->setFocusPolicy(QWidget::StrongFocus);
+ dialog_->urlED->setFocusPolicy(QWidget::StrongFocus);
+ dialog_->urlED->setFocus();
+ dialog_->okPB->setEnabled(true);
+ dialog_->cancelPB->setText(_("Cancel"));
+ dialog_->hyperlinkCB->setEnabled(true);
+ }
+}
+
+
+void QURL::apply()
+{
+ if (readonly)
+ return;
+
+ params.setContents(dialog_->urlED->text().latin1());
+ params.setOptions(dialog_->nameED->text().latin1());
+
+ if (dialog_->hyperlinkCB->isChecked())
+ params.setCmdName("htmlurl");
+ else
+ params.setCmdName("url");
+
+ if (inset_ != 0) {
+ if (params != inset_->params()) {
+ inset_->setParams(params);
+ lv_->view()->updateInset(inset_, true);
+ }
+ } else
+ lv_->getLyXFunc()->dispatch(LFUN_INSERT_URL, params.getAsString().c_str());
+}
+
+
+void QURL::show()
+{
+ if (!dialog_)
+ dialog_ = new QURLDialog(this, 0, _("LyX: Url"), false);
+
+ if (!dialog_->isVisible()) {
+ h_ = d_->hideBufferDependent.connect(slot(this, &QURL::hide));
+ //u_ = d_->updateBufferDependent.connect(slot(this, &QURL::update));
+ }
+
+ dialog_->raise();
+ dialog_->setActiveWindow();
+
+ update();
+ dialog_->show();
+}
+
+
+void QURL::close()
+{
+ h_.disconnect();
+ u_.disconnect();
+ ih_.disconnect();
+ inset_ = 0;
+}
+
+
+void QURL::hide()
+{
+ dialog_->hide();
+ close();
+}
--- /dev/null
+// -*- C++ -*-
+/**
+ * \file QURL.h
+ * Copyright 2001 the LyX Team
+ * Read the file COPYING
+ *
+ * \author John Levon <moz@compsoc.man.ac.uk>
+ * \author Kalle Dalheimer <kalle@klaralvdalens-datakonsult.se>
+ */
+
+#ifndef QURL_H
+#define QURL_H
+
+#include "DialogBase.h"
+#include "LString.h"
+#include "boost/utility.hpp"
+#include "insets/inseturl.h"
+
+class Dialogs;
+class LyXView;
+class QURLDialog;
+
+class QURL : public DialogBase {
+public:
+ QURL(LyXView *, Dialogs *);
+ ~QURL();
+
+ /// Apply changes
+ void apply();
+ /// close the connections
+ void close();
+
+private:
+ /// Create the dialog if necessary, update it and display it.
+ void show();
+ /// Hide the dialog.
+ void hide();
+ /// Update the dialog.
+ void update();
+
+ /// create a URL inset
+ void createUrl(string const &);
+ /// edit a URL inset
+ void showUrl(InsetCommand * const);
+
+ /// Real GUI implementation.
+ QURLDialog * dialog_;
+
+ /// the LyXView we belong to
+ LyXView * lv_;
+
+ /** Which Dialogs do we belong to?
+ Used so we can get at the signals we have to connect to.
+ */
+ Dialogs * d_;
+ /// pointer to the inset if any
+ InsetCommand * inset_;
+ /// insets params
+ InsetCommandParams params;
+ /// is the inset we are reading from a readonly buffer
+ bool readonly;
+
+ /// Hide connection.
+ SigC::Connection h_;
+ /// Update connection.
+ SigC::Connection u_;
+ /// Inset hide connection.
+ SigC::Connection ih_;
+};
+
+#endif // QURL_H
--- /dev/null
+/**
+ * \file QURLDialog.C
+ * Copyright 2001 the LyX Team
+ * Read the file COPYING
+ *
+ * \author John Levon
+ */
+
+#include <config.h>
+
+#include "QURLDialog.h"
+#include "Dialogs.h"
+#include "QURL.h"
+
+QURLDialog::QURLDialog(QURL * form, QWidget * parent, const char * name, bool modal, WFlags fl)
+ : QURLDialogBase(parent, name, modal, fl),
+ form_(form)
+{
+}
+
+
+QURLDialog::~QURLDialog()
+{
+}
+
+
+void QURLDialog::apply_adaptor()
+{
+ form_->apply();
+ form_->close();
+ hide();
+}
+
+
+void QURLDialog::close_adaptor()
+{
+ form_->close();
+ hide();
+}
+
+
+void QURLDialog::closeEvent(QCloseEvent * e)
+{
+ form_->close();
+ e->accept();
+}
--- /dev/null
+/**
+ * \file QURLDialog.h
+ * Copyright 2001 the LyX Team
+ * Read the file COPYING
+ *
+ * \author John Levon
+ */
+
+#ifndef QURLDIALOG_H
+#define QURLDIALOG_H
+
+#include "ui/QURLDialogBase.h"
+
+class QURL;
+
+class QURLDialog : public QURLDialogBase
+{ Q_OBJECT
+
+public:
+ QURLDialog(QURL * form, QWidget * parent = 0, const char * name = 0, bool modal = FALSE, WFlags fl = 0);
+ ~QURLDialog();
+
+public slots:
+ void apply_adaptor();
+ void close_adaptor();
+
+protected:
+ void closeEvent(QCloseEvent *);
+
+private:
+ QURL * form_;
+};
+
+#endif // QURLDIALOG_H
#endif
#include <qdialog.h>
-#undef emit
+#include "QtLyXView.h"
#include "Dialogs.h"
#include "Qt2Base.h"
#include "qt2BC.h"
* moz@compsoc.man.ac.uk
*/
-/* Qt 1.x has a messy namespace which conflicts with 'emit' in
- * src/Timeout.h. This can go away when Qt 2.x happens.
+/* Qt has a messy namespace which conflicts with 'emit' in
+ * src/Timeout.h. Uggghh.
*/
#undef emit
--- /dev/null
+This file contains some do's and dont's for the Qt2 frontend.
+
+Don't #undef emit - #include "QtLyXView.h" instead
+
+Naming conventions
+------------------
+
+QFoo.[Ch] The file that interacts with the controller
+QFooDialog.[Ch] The implementation of the dialog, derived from the generated files
+ui/QFooDialog.ui The designer file
+ui/QFooDialogBase.[Ch] Generated files from QFooDialog.ui
+
+slots should be named e.g. slotFooClicked(), slotFooSelected(), where foo is the name
+of the widget.
+
+Widgets should be named like "fooXX", where XX is one of the following
+widget types :
+
+CB - check box
+CO -
+ED -
+ML -
+PB - push button
+(FIXME: complete this)
+
+
+Dialog Maintainer MVC conversion
+----------------------------------------------
+Bibitem
+Bibtex
+Character Edwin
+Citation Kalle In progress
+Command
+Connections
+Copyright Kalle Done
+Credits Kalle In progress
+Document Kalle In progress (Not yet prepared)
+Error
+External
+File Edwin
+Graphics
+Include
+Index Kalle
+Log
+Minipage
+Paragraph Edwin Not yet prepared
+Preamble
+Preferences
+Print Edwin
+Ref Kalle
+Search Edwin
+Splash Edwin
+Tabular Not yet prepared
+TabularCreate Edwin
+Toc Kalle
+Url Kalle
+VCLog
+
+
+++ /dev/null
-/****************************************************************************
-** Form implementation generated from reading ui file 'chardlg.ui'
-**
-** Created: Thu Mar 1 12:56:20 2001
-** by: The User Interface Compiler (uic)
-**
-** WARNING! All changes made in this file will be lost!
-****************************************************************************/
-#include "chardlg.h"
-
-#include <qcheckbox.h>
-#include <qcombobox.h>
-#include <qgroupbox.h>
-#include <qlabel.h>
-#include <qpushbutton.h>
-#include <qlayout.h>
-#include <qvariant.h>
-#include <qtooltip.h>
-#include <qwhatsthis.h>
-
-/*
- * Constructs a CharDlg which is a child of 'parent', with the
- * name 'name' and widget flags set to 'f'
- *
- * The dialog will by default be modeless, unless you set 'modal' to
- * TRUE to construct a modal dialog.
- */
-CharDlg::CharDlg( QWidget* parent, const char* name, bool modal, WFlags fl )
- : QDialog( parent, name, modal, fl )
-{
- if ( !name )
- setName( "CharDlg" );
- resize( 341, 249 );
- setCaption( tr( "Character" ) );
- setSizeGripEnabled( TRUE );
- CharDlgLayout = new QGridLayout( this );
- CharDlgLayout->setSpacing( 6 );
- CharDlgLayout->setMargin( 11 );
-
- sizeGB = new QGroupBox( this, "sizeGB" );
- sizeGB->setTitle( tr( "Never toggled" ) );
- sizeGB->setColumnLayout(0, Qt::Vertical );
- sizeGB->layout()->setSpacing( 0 );
- sizeGB->layout()->setMargin( 0 );
- sizeGBLayout = new QHBoxLayout( sizeGB->layout() );
- sizeGBLayout->setAlignment( Qt::AlignTop );
- sizeGBLayout->setSpacing( 6 );
- sizeGBLayout->setMargin( 11 );
-
- sizeL = new QLabel( sizeGB, "sizeL" );
- sizeL->setText( tr( "Size:" ) );
- sizeGBLayout->addWidget( sizeL );
-
- size = new QComboBox( FALSE, sizeGB, "size" );
- size->insertItem( tr( "No Change" ) );
- size->insertItem( tr( "Reset" ) );
- size->insertItem( tr( "Tiny" ) );
- size->insertItem( tr( "Smallest" ) );
- size->insertItem( tr( "Smaller" ) );
- size->insertItem( tr( "Small" ) );
- size->insertItem( tr( "Normal" ) );
- size->insertItem( tr( "Large" ) );
- size->insertItem( tr( "Larger" ) );
- size->insertItem( tr( "Largest" ) );
- size->insertItem( tr( "Huge" ) );
- size->insertItem( tr( "Huger" ) );
- size->insertItem( tr( "Increase" ) );
- size->insertItem( tr( "Decrease" ) );
- sizeGBLayout->addWidget( size );
-
- CharDlgLayout->addWidget( sizeGB, 0, 1 );
-
- miscGB = new QGroupBox( this, "miscGB" );
- miscGB->setTitle( tr( "Always toggled" ) );
- miscGB->setColumnLayout(0, Qt::Vertical );
- miscGB->layout()->setSpacing( 0 );
- miscGB->layout()->setMargin( 0 );
- miscGBLayout = new QHBoxLayout( miscGB->layout() );
- miscGBLayout->setAlignment( Qt::AlignTop );
- miscGBLayout->setSpacing( 6 );
- miscGBLayout->setMargin( 11 );
-
- always_toggledL = new QLabel( miscGB, "always_toggledL" );
- always_toggledL->setText( tr( "Misc:" ) );
- miscGBLayout->addWidget( always_toggledL );
-
- misc = new QComboBox( FALSE, miscGB, "misc" );
- misc->insertItem( tr( "No Change" ) );
- misc->insertItem( tr( "Reset" ) );
- misc->insertItem( tr( "Emph" ) );
- misc->insertItem( tr( "Underbar" ) );
- misc->insertItem( tr( "Noun" ) );
- misc->insertItem( tr( "LaTeX Mode" ) );
- miscGBLayout->addWidget( misc );
-
- CharDlgLayout->addWidget( miscGB, 1, 1 );
-
- charGB = new QGroupBox( this, "charGB" );
- charGB->setSizePolicy( QSizePolicy( (QSizePolicy::SizeType)5, (QSizePolicy::SizeType)5, charGB->sizePolicy().hasHeightForWidth() ) );
- charGB->setTitle( tr( "Character" ) );
- charGB->setColumnLayout(0, Qt::Vertical );
- charGB->layout()->setSpacing( 0 );
- charGB->layout()->setMargin( 0 );
- charGBLayout = new QGridLayout( charGB->layout() );
- charGBLayout->setAlignment( Qt::AlignTop );
- charGBLayout->setSpacing( 6 );
- charGBLayout->setMargin( 11 );
-
- familyL = new QLabel( charGB, "familyL" );
- familyL->setText( tr( "Family:" ) );
-
- charGBLayout->addWidget( familyL, 0, 0 );
-
- family = new QComboBox( FALSE, charGB, "family" );
- family->insertItem( tr( "No Change" ) );
- family->insertItem( tr( "Reset" ) );
- family->insertItem( tr( "Roman" ) );
- family->insertItem( tr( "Sans Serif" ) );
- family->insertItem( tr( "Typewriter" ) );
-
- charGBLayout->addWidget( family, 0, 1 );
-
- seriesL = new QLabel( charGB, "seriesL" );
- seriesL->setText( tr( "Series:" ) );
-
- charGBLayout->addWidget( seriesL, 1, 0 );
-
- langL = new QLabel( charGB, "langL" );
- langL->setText( tr( "Language:" ) );
-
- charGBLayout->addWidget( langL, 4, 0 );
-
- shape = new QComboBox( FALSE, charGB, "shape" );
- shape->insertItem( tr( "No Change" ) );
- shape->insertItem( tr( "Reset" ) );
- shape->insertItem( tr( "Upright" ) );
- shape->insertItem( tr( "Italic" ) );
- shape->insertItem( tr( "Slanted" ) );
- shape->insertItem( tr( "Small Caps" ) );
-
- charGBLayout->addWidget( shape, 2, 1 );
-
- color = new QComboBox( FALSE, charGB, "color" );
- color->insertItem( tr( "No Change" ) );
- color->insertItem( tr( "Reset" ) );
- color->insertItem( tr( "No Color" ) );
- color->insertItem( tr( "Black" ) );
- color->insertItem( tr( "White" ) );
- color->insertItem( tr( "Red" ) );
- color->insertItem( tr( "Green" ) );
- color->insertItem( tr( "Blue" ) );
- color->insertItem( tr( "Cyan" ) );
- color->insertItem( tr( "Yellow" ) );
- color->insertItem( tr( "Magenta" ) );
-
- charGBLayout->addWidget( color, 3, 1 );
-
- shapeL = new QLabel( charGB, "shapeL" );
- shapeL->setText( tr( "Shape:" ) );
-
- charGBLayout->addWidget( shapeL, 2, 0 );
-
- series = new QComboBox( FALSE, charGB, "series" );
- series->insertItem( tr( "No Change" ) );
- series->insertItem( tr( "Reset" ) );
- series->insertItem( tr( "Medium" ) );
- series->insertItem( tr( "Bold" ) );
-
- charGBLayout->addWidget( series, 1, 1 );
-
- colorL = new QLabel( charGB, "colorL" );
- colorL->setEnabled( TRUE );
- colorL->setText( tr( "Color:" ) );
-
- charGBLayout->addWidget( colorL, 3, 0 );
-
- lang = new QComboBox( FALSE, charGB, "lang" );
- lang->insertItem( tr( "No Change" ) );
- lang->insertItem( tr( "Reset" ) );
-
- charGBLayout->addWidget( lang, 4, 1 );
-
- toggleall = new QCheckBox( charGB, "toggleall" );
- toggleall->setText( tr( "Toggle all" ) );
-
- charGBLayout->addWidget( toggleall, 5, 1 );
- QSpacerItem* spacer = new QSpacerItem( 20, 20, QSizePolicy::Minimum, QSizePolicy::Expanding );
- charGBLayout->addItem( spacer, 6, 1 );
-
- CharDlgLayout->addMultiCellWidget( charGB, 0, 2, 0, 0 );
- QSpacerItem* spacer_2 = new QSpacerItem( 20, 20, QSizePolicy::Minimum, QSizePolicy::Expanding );
- CharDlgLayout->addItem( spacer_2, 2, 1 );
-
- Layout9 = new QHBoxLayout;
- Layout9->setSpacing( 6 );
- Layout9->setMargin( 0 );
- QSpacerItem* spacer_3 = new QSpacerItem( 20, 20, QSizePolicy::Expanding, QSizePolicy::Minimum );
- Layout9->addItem( spacer_3 );
-
- applyPB = new QPushButton( this, "applyPB" );
- applyPB->setText( tr( "&Apply" ) );
- Layout9->addWidget( applyPB );
-
- okPB = new QPushButton( this, "okPB" );
- okPB->setText( tr( "&OK" ) );
- Layout9->addWidget( okPB );
-
- cancelPB = new QPushButton( this, "cancelPB" );
- cancelPB->setText( tr( "&Cancel" ) );
- cancelPB->setDefault( TRUE );
- Layout9->addWidget( cancelPB );
-
- CharDlgLayout->addMultiCellLayout( Layout9, 3, 3, 0, 1 );
-
- // signals and slots connections
- connect( cancelPB, SIGNAL( clicked() ), this, SLOT( cancel_adaptor() ) );
- connect( okPB, SIGNAL( clicked() ), this, SLOT( close_adaptor() ) );
- connect( applyPB, SIGNAL( clicked() ), this, SLOT( apply_adaptor() ) );
-
- // tab order
- setTabOrder( family, series );
- setTabOrder( series, shape );
- setTabOrder( shape, color );
- setTabOrder( color, lang );
- setTabOrder( lang, toggleall );
- setTabOrder( toggleall, size );
- setTabOrder( size, misc );
- setTabOrder( misc, applyPB );
- setTabOrder( applyPB, okPB );
- setTabOrder( okPB, cancelPB );
-}
-
-/*
- * Destroys the object and frees any allocated resources
- */
-CharDlg::~CharDlg()
-{
- // no need to delete child widgets, Qt does it all for us
-}
-
-void CharDlg::apply_adaptor()
-{
- qWarning( "CharDlg::apply_adaptor(): Not implemented yet!" );
-}
-
-void CharDlg::cancel_adaptor()
-{
- qWarning( "CharDlg::cancel_adaptor(): Not implemented yet!" );
-}
-
-void CharDlg::close_adaptor()
-{
- qWarning( "CharDlg::close_adaptor(): Not implemented yet!" );
-}
-
+++ /dev/null
-/****************************************************************************
-** Form interface generated from reading ui file 'chardlg.ui'
-**
-** Created: Thu Mar 1 12:56:14 2001
-** by: The User Interface Compiler (uic)
-**
-** WARNING! All changes made in this file will be lost!
-****************************************************************************/
-#ifndef CHARDLG_H
-#define CHARDLG_H
-
-#include <qvariant.h>
-#include <qdialog.h>
-class QVBoxLayout;
-class QHBoxLayout;
-class QGridLayout;
-class QCheckBox;
-class QComboBox;
-class QGroupBox;
-class QLabel;
-class QPushButton;
-
-class CharDlg : public QDialog
-{
- Q_OBJECT
-
-public:
- CharDlg( QWidget* parent = 0, const char* name = 0, bool modal = FALSE, WFlags fl = 0 );
- ~CharDlg();
-
- QGroupBox* sizeGB;
- QLabel* sizeL;
- QComboBox* size;
- QGroupBox* miscGB;
- QLabel* always_toggledL;
- QComboBox* misc;
- QGroupBox* charGB;
- QLabel* familyL;
- QComboBox* family;
- QLabel* seriesL;
- QLabel* langL;
- QComboBox* shape;
- QComboBox* color;
- QLabel* shapeL;
- QComboBox* series;
- QLabel* colorL;
- QComboBox* lang;
- QCheckBox* toggleall;
- QPushButton* applyPB;
- QPushButton* okPB;
- QPushButton* cancelPB;
-
-protected slots:
- virtual void apply_adaptor();
- virtual void cancel_adaptor();
- virtual void close_adaptor();
-
-protected:
- QGridLayout* CharDlgLayout;
- QHBoxLayout* sizeGBLayout;
- QHBoxLayout* miscGBLayout;
- QGridLayout* charGBLayout;
- QHBoxLayout* Layout9;
-};
-
-#endif // CHARDLG_H
+++ /dev/null
-<!DOCTYPE UI><UI>
-<class>CharDlg</class>
-<widget>
- <class>QDialog</class>
- <property stdset="1">
- <name>name</name>
- <cstring>CharDlg</cstring>
- </property>
- <property stdset="1">
- <name>geometry</name>
- <rect>
- <x>0</x>
- <y>0</y>
- <width>341</width>
- <height>249</height>
- </rect>
- </property>
- <property stdset="1">
- <name>caption</name>
- <string>Character</string>
- </property>
- <property stdset="1">
- <name>sizeGripEnabled</name>
- <bool>true</bool>
- </property>
- <property>
- <name>layoutMargin</name>
- </property>
- <property>
- <name>layoutSpacing</name>
- </property>
- <grid>
- <property stdset="1">
- <name>margin</name>
- <number>11</number>
- </property>
- <property stdset="1">
- <name>spacing</name>
- <number>6</number>
- </property>
- <widget row="0" column="1" >
- <class>QGroupBox</class>
- <property stdset="1">
- <name>name</name>
- <cstring>sizeGB</cstring>
- </property>
- <property stdset="1">
- <name>title</name>
- <string>Never toggled</string>
- </property>
- <property>
- <name>layoutMargin</name>
- </property>
- <hbox>
- <property stdset="1">
- <name>margin</name>
- <number>11</number>
- </property>
- <property stdset="1">
- <name>spacing</name>
- <number>6</number>
- </property>
- <widget>
- <class>QLabel</class>
- <property stdset="1">
- <name>name</name>
- <cstring>sizeL</cstring>
- </property>
- <property stdset="1">
- <name>text</name>
- <string>Size:</string>
- </property>
- </widget>
- <widget>
- <class>QComboBox</class>
- <item>
- <property>
- <name>text</name>
- <string>No Change</string>
- </property>
- </item>
- <item>
- <property>
- <name>text</name>
- <string>Reset</string>
- </property>
- </item>
- <item>
- <property>
- <name>text</name>
- <string>Tiny</string>
- </property>
- </item>
- <item>
- <property>
- <name>text</name>
- <string>Smallest</string>
- </property>
- </item>
- <item>
- <property>
- <name>text</name>
- <string>Smaller</string>
- </property>
- </item>
- <item>
- <property>
- <name>text</name>
- <string>Small</string>
- </property>
- </item>
- <item>
- <property>
- <name>text</name>
- <string>Normal</string>
- </property>
- </item>
- <item>
- <property>
- <name>text</name>
- <string>Large</string>
- </property>
- </item>
- <item>
- <property>
- <name>text</name>
- <string>Larger</string>
- </property>
- </item>
- <item>
- <property>
- <name>text</name>
- <string>Largest</string>
- </property>
- </item>
- <item>
- <property>
- <name>text</name>
- <string>Huge</string>
- </property>
- </item>
- <item>
- <property>
- <name>text</name>
- <string>Huger</string>
- </property>
- </item>
- <item>
- <property>
- <name>text</name>
- <string>Increase</string>
- </property>
- </item>
- <item>
- <property>
- <name>text</name>
- <string>Decrease</string>
- </property>
- </item>
- <property stdset="1">
- <name>name</name>
- <cstring>size</cstring>
- </property>
- </widget>
- </hbox>
- </widget>
- <widget row="1" column="1" >
- <class>QGroupBox</class>
- <property stdset="1">
- <name>name</name>
- <cstring>miscGB</cstring>
- </property>
- <property stdset="1">
- <name>title</name>
- <string>Always toggled</string>
- </property>
- <property>
- <name>layoutMargin</name>
- </property>
- <hbox>
- <property stdset="1">
- <name>margin</name>
- <number>11</number>
- </property>
- <property stdset="1">
- <name>spacing</name>
- <number>6</number>
- </property>
- <widget>
- <class>QLabel</class>
- <property stdset="1">
- <name>name</name>
- <cstring>always_toggledL</cstring>
- </property>
- <property stdset="1">
- <name>text</name>
- <string>Misc:</string>
- </property>
- </widget>
- <widget>
- <class>QComboBox</class>
- <item>
- <property>
- <name>text</name>
- <string>No Change</string>
- </property>
- </item>
- <item>
- <property>
- <name>text</name>
- <string>Reset</string>
- </property>
- </item>
- <item>
- <property>
- <name>text</name>
- <string>Emph</string>
- </property>
- </item>
- <item>
- <property>
- <name>text</name>
- <string>Underbar</string>
- </property>
- </item>
- <item>
- <property>
- <name>text</name>
- <string>Noun</string>
- </property>
- </item>
- <item>
- <property>
- <name>text</name>
- <string>LaTeX Mode</string>
- </property>
- </item>
- <property stdset="1">
- <name>name</name>
- <cstring>misc</cstring>
- </property>
- </widget>
- </hbox>
- </widget>
- <widget row="0" column="0" rowspan="3" colspan="1" >
- <class>QGroupBox</class>
- <property stdset="1">
- <name>name</name>
- <cstring>charGB</cstring>
- </property>
- <property stdset="1">
- <name>sizePolicy</name>
- <sizepolicy>
- <hsizetype>5</hsizetype>
- <vsizetype>5</vsizetype>
- </sizepolicy>
- </property>
- <property stdset="1">
- <name>title</name>
- <string>Character</string>
- </property>
- <property>
- <name>layoutMargin</name>
- </property>
- <grid>
- <property stdset="1">
- <name>margin</name>
- <number>11</number>
- </property>
- <property stdset="1">
- <name>spacing</name>
- <number>6</number>
- </property>
- <widget row="0" column="0" >
- <class>QLabel</class>
- <property stdset="1">
- <name>name</name>
- <cstring>familyL</cstring>
- </property>
- <property stdset="1">
- <name>text</name>
- <string>Family:</string>
- </property>
- </widget>
- <widget row="0" column="1" >
- <class>QComboBox</class>
- <item>
- <property>
- <name>text</name>
- <string>No Change</string>
- </property>
- </item>
- <item>
- <property>
- <name>text</name>
- <string>Reset</string>
- </property>
- </item>
- <item>
- <property>
- <name>text</name>
- <string>Roman</string>
- </property>
- </item>
- <item>
- <property>
- <name>text</name>
- <string>Sans Serif</string>
- </property>
- </item>
- <item>
- <property>
- <name>text</name>
- <string>Typewriter</string>
- </property>
- </item>
- <property stdset="1">
- <name>name</name>
- <cstring>family</cstring>
- </property>
- </widget>
- <widget row="1" column="0" >
- <class>QLabel</class>
- <property stdset="1">
- <name>name</name>
- <cstring>seriesL</cstring>
- </property>
- <property stdset="1">
- <name>text</name>
- <string>Series:</string>
- </property>
- </widget>
- <widget row="4" column="0" >
- <class>QLabel</class>
- <property stdset="1">
- <name>name</name>
- <cstring>langL</cstring>
- </property>
- <property stdset="1">
- <name>text</name>
- <string>Language:</string>
- </property>
- </widget>
- <widget row="2" column="1" >
- <class>QComboBox</class>
- <item>
- <property>
- <name>text</name>
- <string>No Change</string>
- </property>
- </item>
- <item>
- <property>
- <name>text</name>
- <string>Reset</string>
- </property>
- </item>
- <item>
- <property>
- <name>text</name>
- <string>Upright</string>
- </property>
- </item>
- <item>
- <property>
- <name>text</name>
- <string>Italic</string>
- </property>
- </item>
- <item>
- <property>
- <name>text</name>
- <string>Slanted</string>
- </property>
- </item>
- <item>
- <property>
- <name>text</name>
- <string>Small Caps</string>
- </property>
- </item>
- <property stdset="1">
- <name>name</name>
- <cstring>shape</cstring>
- </property>
- </widget>
- <widget row="3" column="1" >
- <class>QComboBox</class>
- <item>
- <property>
- <name>text</name>
- <string>No Change</string>
- </property>
- </item>
- <item>
- <property>
- <name>text</name>
- <string>Reset</string>
- </property>
- </item>
- <item>
- <property>
- <name>text</name>
- <string>No Color</string>
- </property>
- </item>
- <item>
- <property>
- <name>text</name>
- <string>Black</string>
- </property>
- </item>
- <item>
- <property>
- <name>text</name>
- <string>White</string>
- </property>
- </item>
- <item>
- <property>
- <name>text</name>
- <string>Red</string>
- </property>
- </item>
- <item>
- <property>
- <name>text</name>
- <string>Green</string>
- </property>
- </item>
- <item>
- <property>
- <name>text</name>
- <string>Blue</string>
- </property>
- </item>
- <item>
- <property>
- <name>text</name>
- <string>Cyan</string>
- </property>
- </item>
- <item>
- <property>
- <name>text</name>
- <string>Yellow</string>
- </property>
- </item>
- <item>
- <property>
- <name>text</name>
- <string>Magenta</string>
- </property>
- </item>
- <property stdset="1">
- <name>name</name>
- <cstring>color</cstring>
- </property>
- </widget>
- <widget row="2" column="0" >
- <class>QLabel</class>
- <property stdset="1">
- <name>name</name>
- <cstring>shapeL</cstring>
- </property>
- <property stdset="1">
- <name>text</name>
- <string>Shape:</string>
- </property>
- </widget>
- <widget row="1" column="1" >
- <class>QComboBox</class>
- <item>
- <property>
- <name>text</name>
- <string>No Change</string>
- </property>
- </item>
- <item>
- <property>
- <name>text</name>
- <string>Reset</string>
- </property>
- </item>
- <item>
- <property>
- <name>text</name>
- <string>Medium</string>
- </property>
- </item>
- <item>
- <property>
- <name>text</name>
- <string>Bold</string>
- </property>
- </item>
- <property stdset="1">
- <name>name</name>
- <cstring>series</cstring>
- </property>
- </widget>
- <widget row="3" column="0" >
- <class>QLabel</class>
- <property stdset="1">
- <name>name</name>
- <cstring>colorL</cstring>
- </property>
- <property stdset="1">
- <name>enabled</name>
- <bool>true</bool>
- </property>
- <property stdset="1">
- <name>text</name>
- <string>Color:</string>
- </property>
- </widget>
- <widget row="4" column="1" >
- <class>QComboBox</class>
- <item>
- <property>
- <name>text</name>
- <string>No Change</string>
- </property>
- </item>
- <item>
- <property>
- <name>text</name>
- <string>Reset</string>
- </property>
- </item>
- <property stdset="1">
- <name>name</name>
- <cstring>lang</cstring>
- </property>
- </widget>
- <widget row="5" column="1" >
- <class>QCheckBox</class>
- <property stdset="1">
- <name>name</name>
- <cstring>toggleall</cstring>
- </property>
- <property stdset="1">
- <name>text</name>
- <string>Toggle all</string>
- </property>
- </widget>
- <spacer row="6" column="1" >
- <property>
- <name>name</name>
- <cstring>Spacer2</cstring>
- </property>
- <property stdset="1">
- <name>orientation</name>
- <enum>Vertical</enum>
- </property>
- <property stdset="1">
- <name>sizeType</name>
- <enum>Expanding</enum>
- </property>
- <property>
- <name>sizeHint</name>
- <size>
- <width>20</width>
- <height>20</height>
- </size>
- </property>
- </spacer>
- </grid>
- </widget>
- <spacer row="2" column="1" >
- <property>
- <name>name</name>
- <cstring>Spacer3</cstring>
- </property>
- <property stdset="1">
- <name>orientation</name>
- <enum>Vertical</enum>
- </property>
- <property stdset="1">
- <name>sizeType</name>
- <enum>Expanding</enum>
- </property>
- <property>
- <name>sizeHint</name>
- <size>
- <width>20</width>
- <height>20</height>
- </size>
- </property>
- </spacer>
- <widget row="3" column="0" rowspan="1" colspan="2" >
- <class>QLayoutWidget</class>
- <property stdset="1">
- <name>name</name>
- <cstring>Layout9</cstring>
- </property>
- <hbox>
- <property stdset="1">
- <name>margin</name>
- <number>0</number>
- </property>
- <property stdset="1">
- <name>spacing</name>
- <number>6</number>
- </property>
- <spacer>
- <property>
- <name>name</name>
- <cstring>Spacer2_2</cstring>
- </property>
- <property stdset="1">
- <name>orientation</name>
- <enum>Horizontal</enum>
- </property>
- <property stdset="1">
- <name>sizeType</name>
- <enum>Expanding</enum>
- </property>
- <property>
- <name>sizeHint</name>
- <size>
- <width>20</width>
- <height>20</height>
- </size>
- </property>
- </spacer>
- <widget>
- <class>QPushButton</class>
- <property stdset="1">
- <name>name</name>
- <cstring>applyPB</cstring>
- </property>
- <property stdset="1">
- <name>text</name>
- <string>&Apply</string>
- </property>
- </widget>
- <widget>
- <class>QPushButton</class>
- <property stdset="1">
- <name>name</name>
- <cstring>okPB</cstring>
- </property>
- <property stdset="1">
- <name>text</name>
- <string>&OK</string>
- </property>
- </widget>
- <widget>
- <class>QPushButton</class>
- <property stdset="1">
- <name>name</name>
- <cstring>cancelPB</cstring>
- </property>
- <property stdset="1">
- <name>text</name>
- <string>&Cancel</string>
- </property>
- <property stdset="1">
- <name>default</name>
- <bool>true</bool>
- </property>
- </widget>
- </hbox>
- </widget>
- </grid>
-</widget>
-<connections>
- <connection>
- <sender>cancelPB</sender>
- <signal>clicked()</signal>
- <receiver>CharDlg</receiver>
- <slot>cancel_adaptor()</slot>
- </connection>
- <connection>
- <sender>okPB</sender>
- <signal>clicked()</signal>
- <receiver>CharDlg</receiver>
- <slot>close_adaptor()</slot>
- </connection>
- <connection>
- <sender>applyPB</sender>
- <signal>clicked()</signal>
- <receiver>CharDlg</receiver>
- <slot>apply_adaptor()</slot>
- </connection>
- <slot access="protected">apply_adaptor()</slot>
- <slot access="protected">cancel_adaptor()</slot>
- <slot access="protected">close_adaptor()</slot>
-</connections>
-<tabstops>
- <tabstop>family</tabstop>
- <tabstop>series</tabstop>
- <tabstop>shape</tabstop>
- <tabstop>color</tabstop>
- <tabstop>lang</tabstop>
- <tabstop>toggleall</tabstop>
- <tabstop>size</tabstop>
- <tabstop>misc</tabstop>
- <tabstop>applyPB</tabstop>
- <tabstop>okPB</tabstop>
- <tabstop>cancelPB</tabstop>
-</tabstops>
-</UI>
+++ /dev/null
-/**
- * \file chardlgimpl.C
- * Copyright 2001 The LyX Team.
- * See the file COPYING.
- *
- * \author Edwin Leuven, leuven@fee.uva.nl
- */
-
-#include "chardlg.h"
-#include "chardlgimpl.h"
-#include "FormCharacter.h"
-#include "lyxtext.h"
-#include "language.h"
-
-#include <qcombobox.h>
-#include <qcheckbox.h>
-#include <qpushbutton.h>
-#include <qgroupbox.h>
-
-CharDlgImpl::CharDlgImpl(FormCharacter* form, QWidget * parent, const char* name, bool modal, WFlags fl )
- : CharDlg( parent, name, modal, fl ), form_(form)
-{
- setCaption(name);
-}
-
-CharDlgImpl::~CharDlgImpl()
-{
-}
-
-LyXFont CharDlgImpl::getChar()
-{
- LyXFont font(LyXFont::ALL_IGNORE);
-
- int pos = family->currentItem();
- switch (pos) {
- case 0: font.setFamily(LyXFont::IGNORE_FAMILY); break;
- case 1: font.setFamily(LyXFont::INHERIT_FAMILY); break;
- case 2: font.setFamily(LyXFont::ROMAN_FAMILY); break;
- case 3: font.setFamily(LyXFont::SANS_FAMILY); break;
- case 4: font.setFamily(LyXFont::TYPEWRITER_FAMILY); break;
- }
-
- pos = series->currentItem();
- switch (pos) {
- case 0: font.setSeries(LyXFont::IGNORE_SERIES); break;
- case 1: font.setSeries(LyXFont::INHERIT_SERIES); break;
- case 2: font.setSeries(LyXFont::MEDIUM_SERIES); break;
- case 3: font.setSeries(LyXFont::BOLD_SERIES); break;
- }
-
- pos = shape->currentItem();
- switch (pos) {
- case 0: font.setShape(LyXFont::IGNORE_SHAPE); break;
- case 1: font.setShape(LyXFont::INHERIT_SHAPE); break;
- case 2: font.setShape(LyXFont::UP_SHAPE); break;
- case 3: font.setShape(LyXFont::ITALIC_SHAPE); break;
- case 4: font.setShape(LyXFont::SLANTED_SHAPE); break;
- case 5: font.setShape(LyXFont::SMALLCAPS_SHAPE); break;
- }
-
- pos = size->currentItem();
- switch (pos) {
- case 0: font.setSize(LyXFont::IGNORE_SIZE); break;
- case 1: font.setSize(LyXFont::INHERIT_SIZE); break;
- case 2: font.setSize(LyXFont::SIZE_TINY); break;
- case 3: font.setSize(LyXFont::SIZE_SCRIPT); break;
- case 4: font.setSize(LyXFont::SIZE_FOOTNOTE); break;
- case 5: font.setSize(LyXFont::SIZE_SMALL); break;
- case 6: font.setSize(LyXFont::SIZE_NORMAL); break;
- case 7: font.setSize(LyXFont::SIZE_LARGE); break;
- case 8: font.setSize(LyXFont::SIZE_LARGER); break;
- case 9: font.setSize(LyXFont::SIZE_LARGEST); break;
- case 10: font.setSize(LyXFont::SIZE_HUGE); break;
- case 11: font.setSize(LyXFont::SIZE_HUGER); break;
- case 12: font.setSize(LyXFont::INCREASE_SIZE); break;
- case 13: font.setSize(LyXFont::DECREASE_SIZE); break;
- }
-
- pos = misc->currentItem();
- switch (pos) {
- case 0: font.setEmph(LyXFont::IGNORE);
- font.setUnderbar(LyXFont::IGNORE);
- font.setNoun(LyXFont::IGNORE);
- font.setLatex(LyXFont::IGNORE);
- break;
- case 1: font.setEmph(LyXFont::INHERIT);
- font.setUnderbar(LyXFont::INHERIT);
- font.setNoun(LyXFont::INHERIT);
- font.setLatex(LyXFont::INHERIT);
- break;
- case 2: font.setEmph(LyXFont::TOGGLE); break;
- case 3: font.setUnderbar(LyXFont::TOGGLE); break;
- case 4: font.setNoun(LyXFont::TOGGLE); break;
- case 5: font.setLatex(LyXFont::TOGGLE); break;
- }
-
- pos = color->currentItem();
- switch (pos) {
- case 0: font.setColor(LColor::ignore); break;
- case 1: font.setColor(LColor::inherit); break;
- case 2: font.setColor(LColor::none); break;
- case 3: font.setColor(LColor::black); break;
- case 4: font.setColor(LColor::white); break;
- case 5: font.setColor(LColor::red); break;
- case 6: font.setColor(LColor::green); break;
- case 7: font.setColor(LColor::blue); break;
- case 8: font.setColor(LColor::cyan); break;
- case 9: font.setColor(LColor::magenta); break;
- case 10: font.setColor(LColor::yellow); break;
- }
-
- pos = lang->currentItem();
- if (pos==0) {
- font.setLanguage(ignore_language);
- } else if (pos!=1) {
- string language(lang->currentText());
- font.setLanguage(languages.getLanguage(language));
- };
-
- return font;
-}
-
-void CharDlgImpl::closeEvent(QCloseEvent * e)
-{
- form_->close();
- e->accept();
-}
-
-void CharDlgImpl::setReadOnly(bool readonly)
-{
- sizeGB->setEnabled(!readonly);
- charGB->setEnabled(!readonly);
- miscGB->setEnabled(!readonly);
- okPB->setEnabled(!readonly);
- applyPB->setEnabled(!readonly);
-}
+++ /dev/null
-/**
- * \file chardlgimpl.h
- * Copyright 2001 LyX Team
- * see the file COPYING
- *
- * \author Edwin Leuven
- */
-
-#ifndef CHARDLGIMPL_H
-#define CHARDLGIMPL_H
-
-#include <config.h>
-
-#include "chardlg.h"
-#include "FormCharacter.h"
-#include <qevent.h>
-#include <qcheckbox.h>
-#include <qcombobox.h>
-
-class LyXFont;
-class FormCharacter;
-
-class CharDlgImpl : public CharDlg
-{
- Q_OBJECT
-
-public:
- CharDlgImpl(FormCharacter * form, QWidget* parent = 0, const char* name = 0, bool modal = FALSE, WFlags fl = 0 );
-
- ~CharDlgImpl();
-
- LyXFont getChar();
-
- int langItem() {
- return lang->currentItem();
- };
-
- bool toggleAll() {
- return toggleall->isChecked();
- };
-
- void setReadOnly(bool);
-
-protected:
- void closeEvent(QCloseEvent * e);
-
-private:
- FormCharacter * form_;
-
-
-protected slots:
-
- void apply_adaptor() {
- form_->apply();
- }
-
- void cancel_adaptor() {
- form_->close();
- hide();
- }
-
- void close_adaptor() {
- form_->apply();
- form_->close();
- hide();
- }
-
-};
-
-#endif // CHARDLGIMPL_H
+++ /dev/null
-Dialog Maintainer MVC conversion
-----------------------------------------------
-Bibitem
-Bibtex
-Character Edwin
-Citation Kalle In progress
-Command
-Connections
-Copyright Kalle Done
-Credits Kalle In progress
-Document Kalle In progress (Not yet prepared)
-Error
-External
-File Edwin
-Graphics
-Include
-Index Kalle
-Log
-Minipage
-Paragraph Edwin Not yet prepared
-Preamble
-Preferences
-Print Edwin
-Ref Kalle
-Search Edwin
-Splash Edwin
-Tabular Not yet prepared
-TabularCreate Edwin
-Toc Kalle
-Url Kalle
-VCLog
-
-
void EmptyTable::paintCell(QPainter *p, int row, int col)
{
- int x2 = cellWidth(col) - 1;
- int y2 = cellHeight(row) - 1;
+ int const x2 = cellWidth(col) - 1;
+ int const y2 = cellHeight(row) - 1;
p->fillRect(0, 0, x2, y2, QColor("white"));
p->drawLine(x2, 0, x2, y2);
void EmptyTable::mouseMoveEvent(QMouseEvent *ev)
{
- int x = ev->pos().x();
- int y = ev->pos().y();
+ int const x = ev->pos().x();
+ int const y = ev->pos().y();
if (x > 0)
setNumberColumns(x / cellsize + leftCell());
--- /dev/null
+Makefile.in
+Makefile
+*.deps
+*.lo
+.libs
+libqt2moc.la
+moc_*.C
+*_moc.C
--- /dev/null
+AUTOMAKE_OPTIONS = foreign 1.4
+MAINTAINERCLEANFILES = $(srcdir)/Makefile.in
+noinst_LTLIBRARIES = libqt2moc.la
+BOOST_INCLUDES = -I$(top_srcdir)/boost
+INCLUDES = -I${top_srcdir}/src/ \
+ -I${top_srcdir}/src/frontends/ \
+ -I${top_srcdir}/src/frontends/controllers \
+ ${SIGC_CFLAGS} \
+ ${FRONTEND_INCLUDES} \
+ $(BOOST_INCLUDES)
+
+include ../Makefile.dialogs
+
+libqt2moc_la_SOURCES := FileDialog_private_moc.C \
+ emptytable_moc.C \
+ Qt2Base_moc.C \
+ $(MOCDIALOGS)
+ #$(patsubst, %, %Dialog_moc.C, $(DIALOGS))
+
+DISTCLEANFILES = $(libqt2moc_la_SOURCES) *.orig *.rej *~ *.bak core
+
+ETAGS_ARGS = --lang=c++
+
+%_moc.C: ../%.h
+ $(MOC) -o $@ $<
+
+++ /dev/null
-/****************************************************************************
-** Form implementation generated from reading ui file 'paragraphdlg.ui'
-**
-** Created: Fri Mar 9 13:08:59 2001
-** by: The User Interface Compiler (uic)
-**
-** WARNING! All changes made in this file will be lost!
-****************************************************************************/
-#include "paragraphdlg.h"
-
-#include <qcheckbox.h>
-#include <qcombobox.h>
-#include <qgroupbox.h>
-#include <qlabel.h>
-#include <qlineedit.h>
-#include <qpushbutton.h>
-#include <qtabwidget.h>
-#include <qwidget.h>
-#include <qlayout.h>
-#include <qvariant.h>
-#include <qtooltip.h>
-#include <qwhatsthis.h>
-
-/*
- * Constructs a ParagraphDlg which is a child of 'parent', with the
- * name 'name' and widget flags set to 'f'
- *
- * The dialog will by default be modeless, unless you set 'modal' to
- * TRUE to construct a modal dialog.
- */
-ParagraphDlg::ParagraphDlg( QWidget* parent, const char* name, bool modal, WFlags fl )
- : QDialog( parent, name, modal, fl )
-{
- if ( !name )
- setName( "ParagraphDlg" );
- resize( 559, 387 );
- setSizePolicy( QSizePolicy( (QSizePolicy::SizeType)1, (QSizePolicy::SizeType)1, sizePolicy().hasHeightForWidth() ) );
- setCaption( tr( "Paragraph" ) );
- setSizeGripEnabled( TRUE );
- ParagraphDlgLayout = new QVBoxLayout( this );
- ParagraphDlgLayout->setSpacing( 6 );
- ParagraphDlgLayout->setMargin( 11 );
-
- TabsParagraph = new QTabWidget( this, "TabsParagraph" );
-
- tab = new QWidget( TabsParagraph, "tab" );
- tabLayout = new QVBoxLayout( tab );
- tabLayout->setSpacing( 6 );
- tabLayout->setMargin( 11 );
-
- Layout6 = new QHBoxLayout;
- Layout6->setSpacing( 6 );
- Layout6->setMargin( 0 );
-
- alignmentL = new QLabel( tab, "alignmentL" );
- alignmentL->setText( tr( "Alignment:" ) );
- alignmentL->setSizePolicy( QSizePolicy( (QSizePolicy::SizeType)1, (QSizePolicy::SizeType)1, alignmentL->sizePolicy().hasHeightForWidth() ) );
- Layout6->addWidget( alignmentL );
-
- alignment = new QComboBox( FALSE, tab, "alignment" );
- alignment->insertItem( tr( "Justified" ) );
- alignment->insertItem( tr( "Left" ) );
- alignment->insertItem( tr( "Right" ) );
- alignment->insertItem( tr( "Centered" ) );
- alignment->setInsertionPolicy( QComboBox::AtBottom );
- alignment->setAutoCompletion( FALSE );
- Layout6->addWidget( alignment );
- QSpacerItem* spacer = new QSpacerItem( 20, 20, QSizePolicy::Expanding, QSizePolicy::Minimum );
- Layout6->addItem( spacer );
-
- noIndent = new QCheckBox( tab, "noIndent" );
- noIndent->setText( tr( "No indentation" ) );
- Layout6->addWidget( noIndent );
- tabLayout->addLayout( Layout6 );
-
- spacingOptions = new QGroupBox( tab, "spacingOptions" );
- spacingOptions->setTitle( tr( "Spacing" ) );
- spacingOptions->setEnabled( TRUE );
- spacingOptions->setColumnLayout(0, Qt::Vertical );
- spacingOptions->layout()->setSpacing( 0 );
- spacingOptions->layout()->setMargin( 0 );
- spacingOptionsLayout = new QGridLayout( spacingOptions->layout() );
- spacingOptionsLayout->setAlignment( Qt::AlignTop );
- spacingOptionsLayout->setSpacing( 6 );
- spacingOptionsLayout->setMargin( 11 );
-
- spacingBelowValueUnit = new QComboBox( FALSE, spacingOptions, "spacingBelowValueUnit" );
- spacingBelowValueUnit->insertItem( tr( "Centimetres" ) );
- spacingBelowValueUnit->insertItem( tr( "Inches" ) );
- spacingBelowValueUnit->insertItem( tr( "Points" ) );
- spacingBelowValueUnit->insertItem( tr( "Millimetres" ) );
- spacingBelowValueUnit->insertItem( tr( "Picas" ) );
- spacingBelowValueUnit->insertItem( tr( "ex Units" ) );
- spacingBelowValueUnit->insertItem( tr( "em Units" ) );
- spacingBelowValueUnit->insertItem( tr( "Scaled Points" ) );
- spacingBelowValueUnit->insertItem( tr( "Big/PS Points" ) );
- spacingBelowValueUnit->insertItem( tr( "Didot Points" ) );
- spacingBelowValueUnit->insertItem( tr( "Cicero Points" ) );
- spacingBelowValueUnit->setEnabled( FALSE );
- spacingBelowValueUnit->setSizePolicy( QSizePolicy( (QSizePolicy::SizeType)3, (QSizePolicy::SizeType)0, spacingBelowValueUnit->sizePolicy().hasHeightForWidth() ) );
-
- spacingOptionsLayout->addWidget( spacingBelowValueUnit, 4, 2 );
-
- spacingBelowPlusUnit = new QComboBox( FALSE, spacingOptions, "spacingBelowPlusUnit" );
- spacingBelowPlusUnit->insertItem( tr( "Centimetres" ) );
- spacingBelowPlusUnit->insertItem( tr( "Inches" ) );
- spacingBelowPlusUnit->insertItem( tr( "Points" ) );
- spacingBelowPlusUnit->insertItem( tr( "Millimetres" ) );
- spacingBelowPlusUnit->insertItem( tr( "Picas" ) );
- spacingBelowPlusUnit->insertItem( tr( "ex Units" ) );
- spacingBelowPlusUnit->insertItem( tr( "em Units" ) );
- spacingBelowPlusUnit->insertItem( tr( "Scaled Points" ) );
- spacingBelowPlusUnit->insertItem( tr( "Big/PS Points" ) );
- spacingBelowPlusUnit->insertItem( tr( "Didot Points" ) );
- spacingBelowPlusUnit->insertItem( tr( "Cicero Points" ) );
- spacingBelowPlusUnit->setEnabled( FALSE );
- spacingBelowPlusUnit->setSizePolicy( QSizePolicy( (QSizePolicy::SizeType)3, (QSizePolicy::SizeType)0, spacingBelowPlusUnit->sizePolicy().hasHeightForWidth() ) );
-
- spacingOptionsLayout->addWidget( spacingBelowPlusUnit, 4, 3 );
-
- spacingBelowMinusUnit = new QComboBox( FALSE, spacingOptions, "spacingBelowMinusUnit" );
- spacingBelowMinusUnit->insertItem( tr( "Centimetres" ) );
- spacingBelowMinusUnit->insertItem( tr( "Inches" ) );
- spacingBelowMinusUnit->insertItem( tr( "Points" ) );
- spacingBelowMinusUnit->insertItem( tr( "Millimetres" ) );
- spacingBelowMinusUnit->insertItem( tr( "Picas" ) );
- spacingBelowMinusUnit->insertItem( tr( "ex Units" ) );
- spacingBelowMinusUnit->insertItem( tr( "em Units" ) );
- spacingBelowMinusUnit->insertItem( tr( "Scaled Points" ) );
- spacingBelowMinusUnit->insertItem( tr( "Big/PS Points" ) );
- spacingBelowMinusUnit->insertItem( tr( "Didot Points" ) );
- spacingBelowMinusUnit->insertItem( tr( "Cicero Points" ) );
- spacingBelowMinusUnit->setEnabled( FALSE );
- spacingBelowMinusUnit->setSizePolicy( QSizePolicy( (QSizePolicy::SizeType)3, (QSizePolicy::SizeType)0, spacingBelowMinusUnit->sizePolicy().hasHeightForWidth() ) );
-
- spacingOptionsLayout->addWidget( spacingBelowMinusUnit, 4, 4 );
-
- spacingAbovePlusUnit = new QComboBox( FALSE, spacingOptions, "spacingAbovePlusUnit" );
- spacingAbovePlusUnit->insertItem( tr( "Centimetres" ) );
- spacingAbovePlusUnit->insertItem( tr( "Inches" ) );
- spacingAbovePlusUnit->insertItem( tr( "Points" ) );
- spacingAbovePlusUnit->insertItem( tr( "Millimetres" ) );
- spacingAbovePlusUnit->insertItem( tr( "Picas" ) );
- spacingAbovePlusUnit->insertItem( tr( "ex Units" ) );
- spacingAbovePlusUnit->insertItem( tr( "em Units" ) );
- spacingAbovePlusUnit->insertItem( tr( "Scaled Points" ) );
- spacingAbovePlusUnit->insertItem( tr( "Big/PS Points" ) );
- spacingAbovePlusUnit->insertItem( tr( "Didot Points" ) );
- spacingAbovePlusUnit->insertItem( tr( "Cicero Points" ) );
- spacingAbovePlusUnit->setEnabled( FALSE );
- spacingAbovePlusUnit->setSizePolicy( QSizePolicy( (QSizePolicy::SizeType)3, (QSizePolicy::SizeType)0, spacingAbovePlusUnit->sizePolicy().hasHeightForWidth() ) );
-
- spacingOptionsLayout->addWidget( spacingAbovePlusUnit, 2, 3 );
-
- spacingAboveValueUnit = new QComboBox( FALSE, spacingOptions, "spacingAboveValueUnit" );
- spacingAboveValueUnit->insertItem( tr( "Centimetres" ) );
- spacingAboveValueUnit->insertItem( tr( "Inches" ) );
- spacingAboveValueUnit->insertItem( tr( "Points" ) );
- spacingAboveValueUnit->insertItem( tr( "Millimetres" ) );
- spacingAboveValueUnit->insertItem( tr( "Picas" ) );
- spacingAboveValueUnit->insertItem( tr( "ex Units" ) );
- spacingAboveValueUnit->insertItem( tr( "em Units" ) );
- spacingAboveValueUnit->insertItem( tr( "Scaled Points" ) );
- spacingAboveValueUnit->insertItem( tr( "Big/PS Points" ) );
- spacingAboveValueUnit->insertItem( tr( "Didot Points" ) );
- spacingAboveValueUnit->insertItem( tr( "Cicero Points" ) );
- spacingAboveValueUnit->setEnabled( FALSE );
- spacingAboveValueUnit->setSizePolicy( QSizePolicy( (QSizePolicy::SizeType)3, (QSizePolicy::SizeType)0, spacingAboveValueUnit->sizePolicy().hasHeightForWidth() ) );
-
- spacingOptionsLayout->addWidget( spacingAboveValueUnit, 2, 2 );
-
- spacingBelowValue = new QLineEdit( spacingOptions, "spacingBelowValue" );
- spacingBelowValue->setEnabled( FALSE );
-
- spacingOptionsLayout->addWidget( spacingBelowValue, 3, 2 );
-
- spacingBelowPlus = new QLineEdit( spacingOptions, "spacingBelowPlus" );
- spacingBelowPlus->setEnabled( FALSE );
-
- spacingOptionsLayout->addWidget( spacingBelowPlus, 3, 3 );
-
- spacingAboveMinusUnit = new QComboBox( FALSE, spacingOptions, "spacingAboveMinusUnit" );
- spacingAboveMinusUnit->insertItem( tr( "Centimetres" ) );
- spacingAboveMinusUnit->insertItem( tr( "Inches" ) );
- spacingAboveMinusUnit->insertItem( tr( "Points" ) );
- spacingAboveMinusUnit->insertItem( tr( "Millimetres" ) );
- spacingAboveMinusUnit->insertItem( tr( "Picas" ) );
- spacingAboveMinusUnit->insertItem( tr( "ex Units" ) );
- spacingAboveMinusUnit->insertItem( tr( "em Units" ) );
- spacingAboveMinusUnit->insertItem( tr( "Scaled Points" ) );
- spacingAboveMinusUnit->insertItem( tr( "Big/PS Points" ) );
- spacingAboveMinusUnit->insertItem( tr( "Didot Points" ) );
- spacingAboveMinusUnit->insertItem( tr( "Cicero Points" ) );
- spacingAboveMinusUnit->setEnabled( FALSE );
- spacingAboveMinusUnit->setSizePolicy( QSizePolicy( (QSizePolicy::SizeType)3, (QSizePolicy::SizeType)0, spacingAboveMinusUnit->sizePolicy().hasHeightForWidth() ) );
-
- spacingOptionsLayout->addWidget( spacingAboveMinusUnit, 2, 4 );
-
- spacingAboveValue = new QLineEdit( spacingOptions, "spacingAboveValue" );
- spacingAboveValue->setEnabled( FALSE );
-
- spacingOptionsLayout->addWidget( spacingAboveValue, 1, 2 );
-
- spacingAbovePlus = new QLineEdit( spacingOptions, "spacingAbovePlus" );
- spacingAbovePlus->setEnabled( FALSE );
-
- spacingOptionsLayout->addWidget( spacingAbovePlus, 1, 3 );
-
- spacingAboveMinus = new QLineEdit( spacingOptions, "spacingAboveMinus" );
- spacingAboveMinus->setEnabled( FALSE );
-
- spacingOptionsLayout->addWidget( spacingAboveMinus, 1, 4 );
-
- spacingBelowMinus = new QLineEdit( spacingOptions, "spacingBelowMinus" );
- spacingBelowMinus->setEnabled( FALSE );
-
- spacingOptionsLayout->addWidget( spacingBelowMinus, 3, 4 );
-
- Layout2_1 = new QHBoxLayout;
- Layout2_1->setSpacing( 6 );
- Layout2_1->setMargin( 0 );
- QSpacerItem* spacer_2 = new QSpacerItem( 20, 20, QSizePolicy::Expanding, QSizePolicy::Minimum );
- Layout2_1->addItem( spacer_2 );
-
- spacingBelowUnitsL = new QLabel( spacingOptions, "spacingBelowUnitsL" );
- spacingBelowUnitsL->setText( tr( "Units:" ) );
- spacingBelowUnitsL->setSizePolicy( QSizePolicy( (QSizePolicy::SizeType)1, (QSizePolicy::SizeType)1, spacingBelowUnitsL->sizePolicy().hasHeightForWidth() ) );
- spacingBelowUnitsL->setEnabled( FALSE );
- QToolTip::add( spacingBelowUnitsL, tr( "Unit of Size, Stretch and Slink" ) );
- Layout2_1->addWidget( spacingBelowUnitsL );
-
- spacingOptionsLayout->addLayout( Layout2_1, 4, 1 );
-
- Layout2_1_2 = new QHBoxLayout;
- Layout2_1_2->setSpacing( 6 );
- Layout2_1_2->setMargin( 0 );
- QSpacerItem* spacer_3 = new QSpacerItem( 20, 20, QSizePolicy::Expanding, QSizePolicy::Minimum );
- Layout2_1_2->addItem( spacer_3 );
-
- spacingAboveUnitsL = new QLabel( spacingOptions, "spacingAboveUnitsL" );
- spacingAboveUnitsL->setText( tr( "Units:" ) );
- spacingAboveUnitsL->setSizePolicy( QSizePolicy( (QSizePolicy::SizeType)1, (QSizePolicy::SizeType)1, spacingAboveUnitsL->sizePolicy().hasHeightForWidth() ) );
- spacingAboveUnitsL->setEnabled( FALSE );
- QToolTip::add( spacingAboveUnitsL, tr( "Unit of Size, Stretch and Slink" ) );
- Layout2_1_2->addWidget( spacingAboveUnitsL );
-
- spacingOptionsLayout->addLayout( Layout2_1_2, 2, 1 );
-
- spacingValueL = new QLabel( spacingOptions, "spacingValueL" );
- spacingValueL->setSizePolicy( QSizePolicy( (QSizePolicy::SizeType)1, (QSizePolicy::SizeType)1, spacingValueL->sizePolicy().hasHeightForWidth() ) );
- spacingValueL->setText( tr( "Value:" ) );
- spacingValueL->setEnabled( FALSE );
- QToolTip::add( spacingValueL, tr( "Amount of spacing" ) );
-
- spacingOptionsLayout->addWidget( spacingValueL, 0, 2 );
-
- spacingPlusL = new QLabel( spacingOptions, "spacingPlusL" );
- spacingPlusL->setSizePolicy( QSizePolicy( (QSizePolicy::SizeType)1, (QSizePolicy::SizeType)1, spacingPlusL->sizePolicy().hasHeightForWidth() ) );
- spacingPlusL->setText( tr( "Stretch:" ) );
- spacingPlusL->setEnabled( FALSE );
- QToolTip::add( spacingPlusL, tr( "Margin by with paragraph is allowed to increase" ) );
-
- spacingOptionsLayout->addWidget( spacingPlusL, 0, 3 );
-
- spacingMinusL = new QLabel( spacingOptions, "spacingMinusL" );
- spacingMinusL->setSizePolicy( QSizePolicy( (QSizePolicy::SizeType)1, (QSizePolicy::SizeType)1, spacingMinusL->sizePolicy().hasHeightForWidth() ) );
- spacingMinusL->setText( tr( "Shrink:" ) );
- spacingMinusL->setEnabled( FALSE );
- QToolTip::add( spacingMinusL, tr( "Margin by with paragraph is allowed to increase" ) );
-
- spacingOptionsLayout->addWidget( spacingMinusL, 0, 4 );
-
- spacingAbove = new QComboBox( FALSE, spacingOptions, "spacingAbove" );
- spacingAbove->insertItem( tr( "None" ) );
- spacingAbove->insertItem( tr( "DefSkip" ) );
- spacingAbove->insertItem( tr( "SmallSkip" ) );
- spacingAbove->insertItem( tr( "MedSkip" ) );
- spacingAbove->insertItem( tr( "BigSkip" ) );
- spacingAbove->insertItem( tr( "VFill" ) );
- spacingAbove->insertItem( tr( "Custom" ) );
- spacingAbove->setSizePolicy( QSizePolicy( (QSizePolicy::SizeType)3, (QSizePolicy::SizeType)0, spacingAbove->sizePolicy().hasHeightForWidth() ) );
-
- spacingOptionsLayout->addWidget( spacingAbove, 1, 1 );
-
- spacingAboveL = new QLabel( spacingOptions, "spacingAboveL" );
- spacingAboveL->setText( tr( "Above:" ) );
-
- spacingOptionsLayout->addWidget( spacingAboveL, 1, 0 );
-
- spacingBelowL = new QLabel( spacingOptions, "spacingBelowL" );
- spacingBelowL->setText( tr( "Below:" ) );
-
- spacingOptionsLayout->addWidget( spacingBelowL, 3, 0 );
-
- spacingBelow = new QComboBox( FALSE, spacingOptions, "spacingBelow" );
- spacingBelow->insertItem( tr( "None" ) );
- spacingBelow->insertItem( tr( "DefSkip" ) );
- spacingBelow->insertItem( tr( "SmallSkip" ) );
- spacingBelow->insertItem( tr( "MedSkip" ) );
- spacingBelow->insertItem( tr( "BigSkip" ) );
- spacingBelow->insertItem( tr( "VFill" ) );
- spacingBelow->insertItem( tr( "Custom" ) );
- spacingBelow->setSizePolicy( QSizePolicy( (QSizePolicy::SizeType)3, (QSizePolicy::SizeType)0, spacingBelow->sizePolicy().hasHeightForWidth() ) );
-
- spacingOptionsLayout->addWidget( spacingBelow, 3, 1 );
-
- spacingAboveKeep = new QCheckBox( spacingOptions, "spacingAboveKeep" );
- spacingAboveKeep->setText( tr( "Keep space at the top of the page" ) );
- spacingAboveKeep->setEnabled( TRUE );
- QToolTip::add( spacingAboveKeep, tr( "Keep space at top of the page" ) );
-
- spacingOptionsLayout->addMultiCellWidget( spacingAboveKeep, 5, 5, 1, 2 );
-
- spacingBelowKeep = new QCheckBox( spacingOptions, "spacingBelowKeep" );
- spacingBelowKeep->setText( tr( "Keep space at the bottom of the page" ) );
- spacingBelowKeep->setEnabled( TRUE );
- QToolTip::add( spacingBelowKeep, tr( "Keep space at the bottom of the page" ) );
-
- spacingOptionsLayout->addMultiCellWidget( spacingBelowKeep, 5, 5, 3, 4 );
- tabLayout->addWidget( spacingOptions );
-
- listOptions = new QGroupBox( tab, "listOptions" );
- listOptions->setTitle( tr( "List environment" ) );
- listOptions->setEnabled( FALSE );
- listOptions->setColumnLayout(0, Qt::Vertical );
- listOptions->layout()->setSpacing( 0 );
- listOptions->layout()->setMargin( 0 );
- listOptionsLayout = new QHBoxLayout( listOptions->layout() );
- listOptionsLayout->setAlignment( Qt::AlignTop );
- listOptionsLayout->setSpacing( 6 );
- listOptionsLayout->setMargin( 11 );
-
- labelWidthL = new QLabel( listOptions, "labelWidthL" );
- labelWidthL->setText( tr( "Label width:" ) );
- labelWidthL->setEnabled( FALSE );
- QToolTip::add( labelWidthL, tr( "Label width in list environment" ) );
- listOptionsLayout->addWidget( labelWidthL );
-
- labelWidth = new QLineEdit( listOptions, "labelWidth" );
- labelWidth->setEnabled( FALSE );
- listOptionsLayout->addWidget( labelWidth );
- QSpacerItem* spacer_4 = new QSpacerItem( 20, 20, QSizePolicy::Expanding, QSizePolicy::Minimum );
- listOptionsLayout->addItem( spacer_4 );
- tabLayout->addWidget( listOptions );
- QSpacerItem* spacer_5 = new QSpacerItem( 20, 20, QSizePolicy::Minimum, QSizePolicy::Expanding );
- tabLayout->addItem( spacer_5 );
- TabsParagraph->insertTab( tab, tr( "&Alignment and Spacing" ) );
-
- tab_2 = new QWidget( TabsParagraph, "tab_2" );
- tabLayout_2 = new QGridLayout( tab_2 );
- tabLayout_2->setSpacing( 6 );
- tabLayout_2->setMargin( 11 );
-
- pagebreakOptions = new QGroupBox( tab_2, "pagebreakOptions" );
- pagebreakOptions->setTitle( tr( "Page break" ) );
- pagebreakOptions->setOrientation( QGroupBox::Vertical );
- pagebreakOptions->setColumnLayout(0, Qt::Vertical );
- pagebreakOptions->layout()->setSpacing( 0 );
- pagebreakOptions->layout()->setMargin( 0 );
- pagebreakOptionsLayout = new QVBoxLayout( pagebreakOptions->layout() );
- pagebreakOptionsLayout->setAlignment( Qt::AlignTop );
- pagebreakOptionsLayout->setSpacing( 6 );
- pagebreakOptionsLayout->setMargin( 11 );
-
- pagebreakAbove = new QCheckBox( pagebreakOptions, "pagebreakAbove" );
- pagebreakAbove->setText( tr( "above paragraph" ) );
- pagebreakOptionsLayout->addWidget( pagebreakAbove );
-
- pagebreakBelow = new QCheckBox( pagebreakOptions, "pagebreakBelow" );
- pagebreakBelow->setText( tr( "below paragraph" ) );
- pagebreakOptionsLayout->addWidget( pagebreakBelow );
-
- tabLayout_2->addWidget( pagebreakOptions, 0, 1 );
- QSpacerItem* spacer_6 = new QSpacerItem( 20, 20, QSizePolicy::Expanding, QSizePolicy::Minimum );
- tabLayout_2->addItem( spacer_6, 0, 2 );
- QSpacerItem* spacer_7 = new QSpacerItem( 20, 20, QSizePolicy::Minimum, QSizePolicy::Expanding );
- tabLayout_2->addItem( spacer_7, 1, 2 );
-
- lineOptions = new QGroupBox( tab_2, "lineOptions" );
- lineOptions->setTitle( tr( "Line" ) );
- lineOptions->setColumnLayout(0, Qt::Vertical );
- lineOptions->layout()->setSpacing( 0 );
- lineOptions->layout()->setMargin( 0 );
- lineOptionsLayout = new QVBoxLayout( lineOptions->layout() );
- lineOptionsLayout->setAlignment( Qt::AlignTop );
- lineOptionsLayout->setSpacing( 6 );
- lineOptionsLayout->setMargin( 11 );
-
- lineAbove = new QCheckBox( lineOptions, "lineAbove" );
- lineAbove->setText( tr( "above paragraph" ) );
- lineOptionsLayout->addWidget( lineAbove );
-
- lineBelow = new QCheckBox( lineOptions, "lineBelow" );
- lineBelow->setText( tr( "below paragraph" ) );
- lineOptionsLayout->addWidget( lineBelow );
-
- tabLayout_2->addWidget( lineOptions, 0, 0 );
- TabsParagraph->insertTab( tab_2, tr( "&Lines and Page breaks" ) );
-
- tab_3 = new QWidget( TabsParagraph, "tab_3" );
- tabLayout_3 = new QGridLayout( tab_3 );
- tabLayout_3->setSpacing( 6 );
- tabLayout_3->setMargin( 11 );
- QSpacerItem* spacer_8 = new QSpacerItem( 20, 20, QSizePolicy::Expanding, QSizePolicy::Minimum );
- tabLayout_3->addItem( spacer_8, 1, 1 );
-
- Layout7 = new QGridLayout;
- Layout7->setSpacing( 6 );
- Layout7->setMargin( 0 );
-
- extraUnitL = new QLabel( tab_3, "extraUnitL" );
- extraUnitL->setText( tr( "Unit:" ) );
- extraUnitL->setEnabled( FALSE );
-
- Layout7->addWidget( extraUnitL, 0, 2 );
-
- extraUnit = new QComboBox( FALSE, tab_3, "extraUnit" );
- extraUnit->insertItem( tr( "Centimetres" ) );
- extraUnit->insertItem( tr( "Inches" ) );
- extraUnit->insertItem( tr( "Points" ) );
- extraUnit->insertItem( tr( "Millimetres" ) );
- extraUnit->insertItem( tr( "Picas" ) );
- extraUnit->insertItem( tr( "ex Units" ) );
- extraUnit->insertItem( tr( "em Units" ) );
- extraUnit->insertItem( tr( "Scaled Points" ) );
- extraUnit->insertItem( tr( "Big/PS Points" ) );
- extraUnit->insertItem( tr( "Didot Points" ) );
- extraUnit->insertItem( tr( "Cicero Points" ) );
- extraUnit->setFocusPolicy( QComboBox::TabFocus );
- extraUnit->setEnabled( FALSE );
-
- Layout7->addWidget( extraUnit, 1, 2 );
-
- extraWidth = new QLineEdit( tab_3, "extraWidth" );
- extraWidth->setEnabled( FALSE );
-
- Layout7->addWidget( extraWidth, 1, 1 );
-
- extraType = new QComboBox( FALSE, tab_3, "extraType" );
- extraType->insertItem( tr( "None" ) );
- extraType->insertItem( tr( "Minipage" ) );
- extraType->insertItem( tr( "Wrap text around floats" ) );
- extraType->insertItem( tr( "Indent whole paragraph" ) );
-
- Layout7->addWidget( extraType, 1, 0 );
-
- extraWidthL = new QLabel( tab_3, "extraWidthL" );
- extraWidthL->setText( tr( "Width:" ) );
- extraWidthL->setEnabled( FALSE );
-
- Layout7->addWidget( extraWidthL, 0, 1 );
-
- tabLayout_3->addLayout( Layout7, 0, 0 );
-
- minipageOptions = new QGroupBox( tab_3, "minipageOptions" );
- minipageOptions->setTitle( tr( "Minipage options" ) );
- minipageOptions->setEnabled( FALSE );
- minipageOptions->setColumnLayout(0, Qt::Vertical );
- minipageOptions->layout()->setSpacing( 0 );
- minipageOptions->layout()->setMargin( 0 );
- minipageOptionsLayout = new QVBoxLayout( minipageOptions->layout() );
- minipageOptionsLayout->setAlignment( Qt::AlignTop );
- minipageOptionsLayout->setSpacing( 6 );
- minipageOptionsLayout->setMargin( 11 );
-
- minipageStart = new QCheckBox( minipageOptions, "minipageStart" );
- minipageStart->setText( tr( "Start new minipage" ) );
- minipageStart->setEnabled( TRUE );
- minipageOptionsLayout->addWidget( minipageStart );
-
- minipageHfill = new QCheckBox( minipageOptions, "minipageHfill" );
- minipageHfill->setText( tr( "HFill between minipage paragraphs" ) );
- minipageHfill->setEnabled( TRUE );
- minipageOptionsLayout->addWidget( minipageHfill );
-
- Layout15 = new QHBoxLayout;
- Layout15->setSpacing( 6 );
- Layout15->setMargin( 0 );
-
- minipageValignL = new QLabel( minipageOptions, "minipageValignL" );
- minipageValignL->setText( tr( "Vertical Alignment:" ) );
- Layout15->addWidget( minipageValignL );
-
- minipageValign = new QComboBox( FALSE, minipageOptions, "minipageValign" );
- minipageValign->insertItem( tr( "Top" ) );
- minipageValign->insertItem( tr( "Middle" ) );
- minipageValign->insertItem( tr( "Bottom" ) );
- Layout15->addWidget( minipageValign );
- QSpacerItem* spacer_9 = new QSpacerItem( 20, 20, QSizePolicy::Expanding, QSizePolicy::Minimum );
- Layout15->addItem( spacer_9 );
- minipageOptionsLayout->addLayout( Layout15 );
-
- tabLayout_3->addWidget( minipageOptions, 1, 0 );
- QSpacerItem* spacer_10 = new QSpacerItem( 20, 20, QSizePolicy::Minimum, QSizePolicy::Expanding );
- tabLayout_3->addItem( spacer_10, 2, 0 );
- TabsParagraph->insertTab( tab_3, tr( "&Extra options" ) );
- ParagraphDlgLayout->addWidget( TabsParagraph );
-
- Layout1 = new QHBoxLayout;
- Layout1->setSpacing( 6 );
- Layout1->setMargin( 0 );
-
- defaultsPB = new QPushButton( this, "defaultsPB" );
- defaultsPB->setText( tr( "&Restore" ) );
- Layout1->addWidget( defaultsPB );
- QSpacerItem* spacer_11 = new QSpacerItem( 20, 20, QSizePolicy::Expanding, QSizePolicy::Minimum );
- Layout1->addItem( spacer_11 );
-
- applyPB = new QPushButton( this, "applyPB" );
- applyPB->setText( tr( "&Apply" ) );
- Layout1->addWidget( applyPB );
-
- okPB = new QPushButton( this, "okPB" );
- okPB->setText( tr( "&OK" ) );
- okPB->setFlat( FALSE );
- okPB->setDefault( FALSE );
- Layout1->addWidget( okPB );
-
- cancelPB = new QPushButton( this, "cancelPB" );
- cancelPB->setText( tr( "&Cancel" ) );
- cancelPB->setDefault( TRUE );
- Layout1->addWidget( cancelPB );
- ParagraphDlgLayout->addLayout( Layout1 );
-
- // signals and slots connections
- connect( defaultsPB, SIGNAL( clicked() ), this, SLOT( restore_adaptor() ) );
- connect( applyPB, SIGNAL( clicked() ), this, SLOT( apply_adaptor() ) );
- connect( cancelPB, SIGNAL( clicked() ), this, SLOT( cancel_adaptor() ) );
- connect( okPB, SIGNAL( clicked() ), this, SLOT( ok_adaptor() ) );
- connect( spacingAbove, SIGNAL( activated(int) ), this, SLOT( enable_spacingAbove(int) ) );
- connect( spacingBelow, SIGNAL( activated(int) ), this, SLOT( enable_spacingBelow(int) ) );
- connect( extraType, SIGNAL( activated(int) ), this, SLOT( enable_minipageOptions(int) ) );
- connect( extraType, SIGNAL( activated(int) ), this, SLOT( enable_extraOptions(int) ) );
-
- // tab order
- setTabOrder( TabsParagraph, alignment );
- setTabOrder( alignment, noIndent );
- setTabOrder( noIndent, spacingAbove );
- setTabOrder( spacingAbove, spacingAboveValue );
- setTabOrder( spacingAboveValue, spacingAbovePlus );
- setTabOrder( spacingAbovePlus, spacingAboveMinus );
- setTabOrder( spacingAboveMinus, spacingAboveKeep );
- setTabOrder( spacingAboveKeep, spacingAboveValueUnit );
- setTabOrder( spacingAboveValueUnit, spacingAbovePlusUnit );
- setTabOrder( spacingAbovePlusUnit, spacingAboveMinusUnit );
- setTabOrder( spacingAboveMinusUnit, spacingBelow );
- setTabOrder( spacingBelow, spacingBelowValue );
- setTabOrder( spacingBelowValue, spacingBelowPlus );
- setTabOrder( spacingBelowPlus, spacingBelowMinus );
- setTabOrder( spacingBelowMinus, spacingBelowKeep );
- setTabOrder( spacingBelowKeep, spacingBelowValueUnit );
- setTabOrder( spacingBelowValueUnit, spacingBelowPlusUnit );
- setTabOrder( spacingBelowPlusUnit, spacingBelowMinusUnit );
- setTabOrder( spacingBelowMinusUnit, labelWidth );
- setTabOrder( labelWidth, lineAbove );
- setTabOrder( lineAbove, lineBelow );
- setTabOrder( lineBelow, pagebreakAbove );
- setTabOrder( pagebreakAbove, pagebreakBelow );
- setTabOrder( pagebreakBelow, extraType );
- setTabOrder( extraType, extraWidth );
- setTabOrder( extraWidth, extraUnit );
- setTabOrder( extraUnit, minipageStart );
- setTabOrder( minipageStart, minipageHfill );
- setTabOrder( minipageHfill, minipageValign );
- setTabOrder( minipageValign, cancelPB );
- setTabOrder( cancelPB, okPB );
- setTabOrder( okPB, applyPB );
- setTabOrder( applyPB, defaultsPB );
-}
-
-/*
- * Destroys the object and frees any allocated resources
- */
-ParagraphDlg::~ParagraphDlg()
-{
- // no need to delete child widgets, Qt does it all for us
-}
-
-void ParagraphDlg::apply_adaptor()
-{
- qWarning( "ParagraphDlg::apply_adaptor(): Not implemented yet!" );
-}
-
-void ParagraphDlg::cancel_adaptor()
-{
- qWarning( "ParagraphDlg::cancel_adaptor(): Not implemented yet!" );
-}
-
-void ParagraphDlg::enable_extraOptions(int)
-{
- qWarning( "ParagraphDlg::enable_extraOptions(int): Not implemented yet!" );
-}
-
-void ParagraphDlg::enable_minipageOptions(int)
-{
- qWarning( "ParagraphDlg::enable_minipageOptions(int): Not implemented yet!" );
-}
-
-void ParagraphDlg::enable_spacingAbove(int)
-{
- qWarning( "ParagraphDlg::enable_spacingAbove(int): Not implemented yet!" );
-}
-
-void ParagraphDlg::enable_spacingBelow(int)
-{
- qWarning( "ParagraphDlg::enable_spacingBelow(int): Not implemented yet!" );
-}
-
-void ParagraphDlg::ok_adaptor()
-{
- qWarning( "ParagraphDlg::ok_adaptor(): Not implemented yet!" );
-}
-
-void ParagraphDlg::restore_adaptor()
-{
- qWarning( "ParagraphDlg::restore_adaptor(): Not implemented yet!" );
-}
-
+++ /dev/null
-/****************************************************************************
-** Form interface generated from reading ui file 'paragraphdlg.ui'
-**
-** Created: Fri Mar 9 13:08:44 2001
-** by: The User Interface Compiler (uic)
-**
-** WARNING! All changes made in this file will be lost!
-****************************************************************************/
-#ifndef PARAGRAPHDLG_H
-#define PARAGRAPHDLG_H
-
-#include <qvariant.h>
-#include <qdialog.h>
-class QVBoxLayout;
-class QHBoxLayout;
-class QGridLayout;
-class QCheckBox;
-class QComboBox;
-class QGroupBox;
-class QLabel;
-class QLineEdit;
-class QPushButton;
-class QTabWidget;
-class QWidget;
-
-class ParagraphDlg : public QDialog
-{
- Q_OBJECT
-
-public:
- ParagraphDlg( QWidget* parent = 0, const char* name = 0, bool modal = FALSE, WFlags fl = 0 );
- ~ParagraphDlg();
-
- QTabWidget* TabsParagraph;
- QWidget* tab;
- QLabel* alignmentL;
- QComboBox* alignment;
- QCheckBox* noIndent;
- QGroupBox* spacingOptions;
- QComboBox* spacingBelowValueUnit;
- QComboBox* spacingBelowPlusUnit;
- QComboBox* spacingBelowMinusUnit;
- QComboBox* spacingAbovePlusUnit;
- QComboBox* spacingAboveValueUnit;
- QLineEdit* spacingBelowValue;
- QLineEdit* spacingBelowPlus;
- QComboBox* spacingAboveMinusUnit;
- QLineEdit* spacingAboveValue;
- QLineEdit* spacingAbovePlus;
- QLineEdit* spacingAboveMinus;
- QLineEdit* spacingBelowMinus;
- QLabel* spacingBelowUnitsL;
- QLabel* spacingAboveUnitsL;
- QLabel* spacingValueL;
- QLabel* spacingPlusL;
- QLabel* spacingMinusL;
- QComboBox* spacingAbove;
- QLabel* spacingAboveL;
- QLabel* spacingBelowL;
- QComboBox* spacingBelow;
- QCheckBox* spacingAboveKeep;
- QCheckBox* spacingBelowKeep;
- QGroupBox* listOptions;
- QLabel* labelWidthL;
- QLineEdit* labelWidth;
- QWidget* tab_2;
- QGroupBox* pagebreakOptions;
- QCheckBox* pagebreakAbove;
- QCheckBox* pagebreakBelow;
- QGroupBox* lineOptions;
- QCheckBox* lineAbove;
- QCheckBox* lineBelow;
- QWidget* tab_3;
- QLabel* extraUnitL;
- QComboBox* extraUnit;
- QLineEdit* extraWidth;
- QComboBox* extraType;
- QLabel* extraWidthL;
- QGroupBox* minipageOptions;
- QCheckBox* minipageStart;
- QCheckBox* minipageHfill;
- QLabel* minipageValignL;
- QComboBox* minipageValign;
- QPushButton* defaultsPB;
- QPushButton* applyPB;
- QPushButton* okPB;
- QPushButton* cancelPB;
-
-protected slots:
- virtual void apply_adaptor();
- virtual void cancel_adaptor();
- virtual void enable_extraOptions(int);
- virtual void enable_minipageOptions(int);
- virtual void enable_spacingAbove(int);
- virtual void enable_spacingBelow(int);
- virtual void ok_adaptor();
- virtual void restore_adaptor();
-
-protected:
- QVBoxLayout* ParagraphDlgLayout;
- QVBoxLayout* tabLayout;
- QHBoxLayout* Layout6;
- QGridLayout* spacingOptionsLayout;
- QHBoxLayout* Layout2_1;
- QHBoxLayout* Layout2_1_2;
- QHBoxLayout* listOptionsLayout;
- QGridLayout* tabLayout_2;
- QVBoxLayout* pagebreakOptionsLayout;
- QVBoxLayout* lineOptionsLayout;
- QGridLayout* tabLayout_3;
- QGridLayout* Layout7;
- QVBoxLayout* minipageOptionsLayout;
- QHBoxLayout* Layout15;
- QHBoxLayout* Layout1;
-};
-
-#endif // PARAGRAPHDLG_H
+++ /dev/null
-<!DOCTYPE UI><UI>
-<class>ParagraphDlg</class>
-<widget>
- <class>QDialog</class>
- <property stdset="1">
- <name>name</name>
- <cstring>ParagraphDlg</cstring>
- </property>
- <property stdset="1">
- <name>geometry</name>
- <rect>
- <x>0</x>
- <y>0</y>
- <width>559</width>
- <height>387</height>
- </rect>
- </property>
- <property stdset="1">
- <name>sizePolicy</name>
- <sizepolicy>
- <hsizetype>1</hsizetype>
- <vsizetype>1</vsizetype>
- </sizepolicy>
- </property>
- <property stdset="1">
- <name>caption</name>
- <string>Paragraph</string>
- </property>
- <property stdset="1">
- <name>sizeGripEnabled</name>
- <bool>true</bool>
- </property>
- <property>
- <name>layoutMargin</name>
- </property>
- <property>
- <name>layoutSpacing</name>
- </property>
- <vbox>
- <property stdset="1">
- <name>margin</name>
- <number>11</number>
- </property>
- <property stdset="1">
- <name>spacing</name>
- <number>6</number>
- </property>
- <widget>
- <class>QTabWidget</class>
- <property stdset="1">
- <name>name</name>
- <cstring>TabsParagraph</cstring>
- </property>
- <property>
- <name>layoutMargin</name>
- </property>
- <property>
- <name>layoutSpacing</name>
- </property>
- <widget>
- <class>QWidget</class>
- <property stdset="1">
- <name>name</name>
- <cstring>tab</cstring>
- </property>
- <attribute>
- <name>title</name>
- <string>&Alignment and Spacing</string>
- </attribute>
- <vbox>
- <property stdset="1">
- <name>margin</name>
- <number>11</number>
- </property>
- <property stdset="1">
- <name>spacing</name>
- <number>6</number>
- </property>
- <widget>
- <class>QLayoutWidget</class>
- <property stdset="1">
- <name>name</name>
- <cstring>Layout6</cstring>
- </property>
- <hbox>
- <property stdset="1">
- <name>margin</name>
- <number>0</number>
- </property>
- <property stdset="1">
- <name>spacing</name>
- <number>6</number>
- </property>
- <widget>
- <class>QLabel</class>
- <property stdset="1">
- <name>name</name>
- <cstring>alignmentL</cstring>
- </property>
- <property stdset="1">
- <name>text</name>
- <string>Alignment:</string>
- </property>
- <property stdset="1">
- <name>sizePolicy</name>
- <sizepolicy>
- <hsizetype>1</hsizetype>
- <vsizetype>1</vsizetype>
- </sizepolicy>
- </property>
- </widget>
- <widget>
- <class>QComboBox</class>
- <item>
- <property>
- <name>text</name>
- <string>Justified</string>
- </property>
- </item>
- <item>
- <property>
- <name>text</name>
- <string>Left</string>
- </property>
- </item>
- <item>
- <property>
- <name>text</name>
- <string>Right</string>
- </property>
- </item>
- <item>
- <property>
- <name>text</name>
- <string>Centered</string>
- </property>
- </item>
- <property stdset="1">
- <name>name</name>
- <cstring>alignment</cstring>
- </property>
- <property stdset="1">
- <name>insertionPolicy</name>
- <enum>AtBottom</enum>
- </property>
- <property stdset="1">
- <name>autoCompletion</name>
- <bool>false</bool>
- </property>
- </widget>
- <spacer>
- <property>
- <name>name</name>
- <cstring>Spacer3</cstring>
- </property>
- <property stdset="1">
- <name>orientation</name>
- <enum>Horizontal</enum>
- </property>
- <property stdset="1">
- <name>sizeType</name>
- <enum>Expanding</enum>
- </property>
- <property>
- <name>sizeHint</name>
- <size>
- <width>20</width>
- <height>20</height>
- </size>
- </property>
- </spacer>
- <widget>
- <class>QCheckBox</class>
- <property stdset="1">
- <name>name</name>
- <cstring>noIndent</cstring>
- </property>
- <property stdset="1">
- <name>text</name>
- <string>No indentation</string>
- </property>
- </widget>
- </hbox>
- </widget>
- <widget>
- <class>QGroupBox</class>
- <property stdset="1">
- <name>name</name>
- <cstring>spacingOptions</cstring>
- </property>
- <property stdset="1">
- <name>title</name>
- <string>Spacing</string>
- </property>
- <property stdset="1">
- <name>enabled</name>
- <bool>true</bool>
- </property>
- <property>
- <name>layoutSpacing</name>
- </property>
- <grid>
- <property stdset="1">
- <name>margin</name>
- <number>11</number>
- </property>
- <property stdset="1">
- <name>spacing</name>
- <number>6</number>
- </property>
- <widget row="4" column="2" >
- <class>QComboBox</class>
- <item>
- <property>
- <name>text</name>
- <string>Centimetres</string>
- </property>
- </item>
- <item>
- <property>
- <name>text</name>
- <string>Inches</string>
- </property>
- </item>
- <item>
- <property>
- <name>text</name>
- <string>Points</string>
- </property>
- </item>
- <item>
- <property>
- <name>text</name>
- <string>Millimetres</string>
- </property>
- </item>
- <item>
- <property>
- <name>text</name>
- <string>Picas</string>
- </property>
- </item>
- <item>
- <property>
- <name>text</name>
- <string>ex Units</string>
- </property>
- </item>
- <item>
- <property>
- <name>text</name>
- <string>em Units</string>
- </property>
- </item>
- <item>
- <property>
- <name>text</name>
- <string>Scaled Points</string>
- </property>
- </item>
- <item>
- <property>
- <name>text</name>
- <string>Big/PS Points</string>
- </property>
- </item>
- <item>
- <property>
- <name>text</name>
- <string>Didot Points</string>
- </property>
- </item>
- <item>
- <property>
- <name>text</name>
- <string>Cicero Points</string>
- </property>
- </item>
- <property stdset="1">
- <name>name</name>
- <cstring>spacingBelowValueUnit</cstring>
- </property>
- <property stdset="1">
- <name>enabled</name>
- <bool>false</bool>
- </property>
- <property stdset="1">
- <name>sizePolicy</name>
- <sizepolicy>
- <hsizetype>3</hsizetype>
- <vsizetype>0</vsizetype>
- </sizepolicy>
- </property>
- </widget>
- <widget row="4" column="3" >
- <class>QComboBox</class>
- <item>
- <property>
- <name>text</name>
- <string>Centimetres</string>
- </property>
- </item>
- <item>
- <property>
- <name>text</name>
- <string>Inches</string>
- </property>
- </item>
- <item>
- <property>
- <name>text</name>
- <string>Points</string>
- </property>
- </item>
- <item>
- <property>
- <name>text</name>
- <string>Millimetres</string>
- </property>
- </item>
- <item>
- <property>
- <name>text</name>
- <string>Picas</string>
- </property>
- </item>
- <item>
- <property>
- <name>text</name>
- <string>ex Units</string>
- </property>
- </item>
- <item>
- <property>
- <name>text</name>
- <string>em Units</string>
- </property>
- </item>
- <item>
- <property>
- <name>text</name>
- <string>Scaled Points</string>
- </property>
- </item>
- <item>
- <property>
- <name>text</name>
- <string>Big/PS Points</string>
- </property>
- </item>
- <item>
- <property>
- <name>text</name>
- <string>Didot Points</string>
- </property>
- </item>
- <item>
- <property>
- <name>text</name>
- <string>Cicero Points</string>
- </property>
- </item>
- <property stdset="1">
- <name>name</name>
- <cstring>spacingBelowPlusUnit</cstring>
- </property>
- <property stdset="1">
- <name>enabled</name>
- <bool>false</bool>
- </property>
- <property stdset="1">
- <name>sizePolicy</name>
- <sizepolicy>
- <hsizetype>3</hsizetype>
- <vsizetype>0</vsizetype>
- </sizepolicy>
- </property>
- </widget>
- <widget row="4" column="4" >
- <class>QComboBox</class>
- <item>
- <property>
- <name>text</name>
- <string>Centimetres</string>
- </property>
- </item>
- <item>
- <property>
- <name>text</name>
- <string>Inches</string>
- </property>
- </item>
- <item>
- <property>
- <name>text</name>
- <string>Points</string>
- </property>
- </item>
- <item>
- <property>
- <name>text</name>
- <string>Millimetres</string>
- </property>
- </item>
- <item>
- <property>
- <name>text</name>
- <string>Picas</string>
- </property>
- </item>
- <item>
- <property>
- <name>text</name>
- <string>ex Units</string>
- </property>
- </item>
- <item>
- <property>
- <name>text</name>
- <string>em Units</string>
- </property>
- </item>
- <item>
- <property>
- <name>text</name>
- <string>Scaled Points</string>
- </property>
- </item>
- <item>
- <property>
- <name>text</name>
- <string>Big/PS Points</string>
- </property>
- </item>
- <item>
- <property>
- <name>text</name>
- <string>Didot Points</string>
- </property>
- </item>
- <item>
- <property>
- <name>text</name>
- <string>Cicero Points</string>
- </property>
- </item>
- <property stdset="1">
- <name>name</name>
- <cstring>spacingBelowMinusUnit</cstring>
- </property>
- <property stdset="1">
- <name>enabled</name>
- <bool>false</bool>
- </property>
- <property stdset="1">
- <name>sizePolicy</name>
- <sizepolicy>
- <hsizetype>3</hsizetype>
- <vsizetype>0</vsizetype>
- </sizepolicy>
- </property>
- </widget>
- <widget row="2" column="3" >
- <class>QComboBox</class>
- <item>
- <property>
- <name>text</name>
- <string>Centimetres</string>
- </property>
- </item>
- <item>
- <property>
- <name>text</name>
- <string>Inches</string>
- </property>
- </item>
- <item>
- <property>
- <name>text</name>
- <string>Points</string>
- </property>
- </item>
- <item>
- <property>
- <name>text</name>
- <string>Millimetres</string>
- </property>
- </item>
- <item>
- <property>
- <name>text</name>
- <string>Picas</string>
- </property>
- </item>
- <item>
- <property>
- <name>text</name>
- <string>ex Units</string>
- </property>
- </item>
- <item>
- <property>
- <name>text</name>
- <string>em Units</string>
- </property>
- </item>
- <item>
- <property>
- <name>text</name>
- <string>Scaled Points</string>
- </property>
- </item>
- <item>
- <property>
- <name>text</name>
- <string>Big/PS Points</string>
- </property>
- </item>
- <item>
- <property>
- <name>text</name>
- <string>Didot Points</string>
- </property>
- </item>
- <item>
- <property>
- <name>text</name>
- <string>Cicero Points</string>
- </property>
- </item>
- <property stdset="1">
- <name>name</name>
- <cstring>spacingAbovePlusUnit</cstring>
- </property>
- <property stdset="1">
- <name>enabled</name>
- <bool>false</bool>
- </property>
- <property stdset="1">
- <name>sizePolicy</name>
- <sizepolicy>
- <hsizetype>3</hsizetype>
- <vsizetype>0</vsizetype>
- </sizepolicy>
- </property>
- </widget>
- <widget row="2" column="2" >
- <class>QComboBox</class>
- <item>
- <property>
- <name>text</name>
- <string>Centimetres</string>
- </property>
- </item>
- <item>
- <property>
- <name>text</name>
- <string>Inches</string>
- </property>
- </item>
- <item>
- <property>
- <name>text</name>
- <string>Points</string>
- </property>
- </item>
- <item>
- <property>
- <name>text</name>
- <string>Millimetres</string>
- </property>
- </item>
- <item>
- <property>
- <name>text</name>
- <string>Picas</string>
- </property>
- </item>
- <item>
- <property>
- <name>text</name>
- <string>ex Units</string>
- </property>
- </item>
- <item>
- <property>
- <name>text</name>
- <string>em Units</string>
- </property>
- </item>
- <item>
- <property>
- <name>text</name>
- <string>Scaled Points</string>
- </property>
- </item>
- <item>
- <property>
- <name>text</name>
- <string>Big/PS Points</string>
- </property>
- </item>
- <item>
- <property>
- <name>text</name>
- <string>Didot Points</string>
- </property>
- </item>
- <item>
- <property>
- <name>text</name>
- <string>Cicero Points</string>
- </property>
- </item>
- <property stdset="1">
- <name>name</name>
- <cstring>spacingAboveValueUnit</cstring>
- </property>
- <property stdset="1">
- <name>enabled</name>
- <bool>false</bool>
- </property>
- <property stdset="1">
- <name>sizePolicy</name>
- <sizepolicy>
- <hsizetype>3</hsizetype>
- <vsizetype>0</vsizetype>
- </sizepolicy>
- </property>
- </widget>
- <widget row="3" column="2" >
- <class>QLineEdit</class>
- <property stdset="1">
- <name>name</name>
- <cstring>spacingBelowValue</cstring>
- </property>
- <property stdset="1">
- <name>enabled</name>
- <bool>false</bool>
- </property>
- </widget>
- <widget row="3" column="3" >
- <class>QLineEdit</class>
- <property stdset="1">
- <name>name</name>
- <cstring>spacingBelowPlus</cstring>
- </property>
- <property stdset="1">
- <name>enabled</name>
- <bool>false</bool>
- </property>
- </widget>
- <widget row="2" column="4" >
- <class>QComboBox</class>
- <item>
- <property>
- <name>text</name>
- <string>Centimetres</string>
- </property>
- </item>
- <item>
- <property>
- <name>text</name>
- <string>Inches</string>
- </property>
- </item>
- <item>
- <property>
- <name>text</name>
- <string>Points</string>
- </property>
- </item>
- <item>
- <property>
- <name>text</name>
- <string>Millimetres</string>
- </property>
- </item>
- <item>
- <property>
- <name>text</name>
- <string>Picas</string>
- </property>
- </item>
- <item>
- <property>
- <name>text</name>
- <string>ex Units</string>
- </property>
- </item>
- <item>
- <property>
- <name>text</name>
- <string>em Units</string>
- </property>
- </item>
- <item>
- <property>
- <name>text</name>
- <string>Scaled Points</string>
- </property>
- </item>
- <item>
- <property>
- <name>text</name>
- <string>Big/PS Points</string>
- </property>
- </item>
- <item>
- <property>
- <name>text</name>
- <string>Didot Points</string>
- </property>
- </item>
- <item>
- <property>
- <name>text</name>
- <string>Cicero Points</string>
- </property>
- </item>
- <property stdset="1">
- <name>name</name>
- <cstring>spacingAboveMinusUnit</cstring>
- </property>
- <property stdset="1">
- <name>enabled</name>
- <bool>false</bool>
- </property>
- <property stdset="1">
- <name>sizePolicy</name>
- <sizepolicy>
- <hsizetype>3</hsizetype>
- <vsizetype>0</vsizetype>
- </sizepolicy>
- </property>
- </widget>
- <widget row="1" column="2" >
- <class>QLineEdit</class>
- <property stdset="1">
- <name>name</name>
- <cstring>spacingAboveValue</cstring>
- </property>
- <property stdset="1">
- <name>enabled</name>
- <bool>false</bool>
- </property>
- </widget>
- <widget row="1" column="3" >
- <class>QLineEdit</class>
- <property stdset="1">
- <name>name</name>
- <cstring>spacingAbovePlus</cstring>
- </property>
- <property stdset="1">
- <name>enabled</name>
- <bool>false</bool>
- </property>
- </widget>
- <widget row="1" column="4" >
- <class>QLineEdit</class>
- <property stdset="1">
- <name>name</name>
- <cstring>spacingAboveMinus</cstring>
- </property>
- <property stdset="1">
- <name>enabled</name>
- <bool>false</bool>
- </property>
- </widget>
- <widget row="3" column="4" >
- <class>QLineEdit</class>
- <property stdset="1">
- <name>name</name>
- <cstring>spacingBelowMinus</cstring>
- </property>
- <property stdset="1">
- <name>enabled</name>
- <bool>false</bool>
- </property>
- </widget>
- <widget row="4" column="1" >
- <class>QLayoutWidget</class>
- <property stdset="1">
- <name>name</name>
- <cstring>Layout2_1</cstring>
- </property>
- <hbox>
- <property stdset="1">
- <name>margin</name>
- <number>0</number>
- </property>
- <property stdset="1">
- <name>spacing</name>
- <number>6</number>
- </property>
- <spacer>
- <property>
- <name>name</name>
- <cstring>Spacer2_1_1</cstring>
- </property>
- <property stdset="1">
- <name>orientation</name>
- <enum>Horizontal</enum>
- </property>
- <property stdset="1">
- <name>sizeType</name>
- <enum>Expanding</enum>
- </property>
- <property>
- <name>sizeHint</name>
- <size>
- <width>20</width>
- <height>20</height>
- </size>
- </property>
- </spacer>
- <widget>
- <class>QLabel</class>
- <property stdset="1">
- <name>name</name>
- <cstring>spacingBelowUnitsL</cstring>
- </property>
- <property stdset="1">
- <name>text</name>
- <string>Units:</string>
- </property>
- <property stdset="1">
- <name>sizePolicy</name>
- <sizepolicy>
- <hsizetype>1</hsizetype>
- <vsizetype>1</vsizetype>
- </sizepolicy>
- </property>
- <property stdset="1">
- <name>enabled</name>
- <bool>false</bool>
- </property>
- <property>
- <name>toolTip</name>
- <string>Unit of Size, Stretch and Slink</string>
- </property>
- </widget>
- </hbox>
- </widget>
- <widget row="2" column="1" >
- <class>QLayoutWidget</class>
- <property stdset="1">
- <name>name</name>
- <cstring>Layout2_1_2</cstring>
- </property>
- <hbox>
- <property stdset="1">
- <name>margin</name>
- <number>0</number>
- </property>
- <property stdset="1">
- <name>spacing</name>
- <number>6</number>
- </property>
- <spacer>
- <property>
- <name>name</name>
- <cstring>Spacer2_1_1_2</cstring>
- </property>
- <property stdset="1">
- <name>orientation</name>
- <enum>Horizontal</enum>
- </property>
- <property stdset="1">
- <name>sizeType</name>
- <enum>Expanding</enum>
- </property>
- <property>
- <name>sizeHint</name>
- <size>
- <width>20</width>
- <height>20</height>
- </size>
- </property>
- </spacer>
- <widget>
- <class>QLabel</class>
- <property stdset="1">
- <name>name</name>
- <cstring>spacingAboveUnitsL</cstring>
- </property>
- <property stdset="1">
- <name>text</name>
- <string>Units:</string>
- </property>
- <property stdset="1">
- <name>sizePolicy</name>
- <sizepolicy>
- <hsizetype>1</hsizetype>
- <vsizetype>1</vsizetype>
- </sizepolicy>
- </property>
- <property stdset="1">
- <name>enabled</name>
- <bool>false</bool>
- </property>
- <property>
- <name>toolTip</name>
- <string>Unit of Size, Stretch and Slink</string>
- </property>
- </widget>
- </hbox>
- </widget>
- <widget row="0" column="2" >
- <class>QLabel</class>
- <property stdset="1">
- <name>name</name>
- <cstring>spacingValueL</cstring>
- </property>
- <property stdset="1">
- <name>sizePolicy</name>
- <sizepolicy>
- <hsizetype>1</hsizetype>
- <vsizetype>1</vsizetype>
- </sizepolicy>
- </property>
- <property stdset="1">
- <name>text</name>
- <string>Value:</string>
- </property>
- <property stdset="1">
- <name>enabled</name>
- <bool>false</bool>
- </property>
- <property>
- <name>toolTip</name>
- <string>Amount of spacing</string>
- </property>
- </widget>
- <widget row="0" column="3" >
- <class>QLabel</class>
- <property stdset="1">
- <name>name</name>
- <cstring>spacingPlusL</cstring>
- </property>
- <property stdset="1">
- <name>sizePolicy</name>
- <sizepolicy>
- <hsizetype>1</hsizetype>
- <vsizetype>1</vsizetype>
- </sizepolicy>
- </property>
- <property stdset="1">
- <name>text</name>
- <string>Stretch:</string>
- </property>
- <property stdset="1">
- <name>enabled</name>
- <bool>false</bool>
- </property>
- <property>
- <name>toolTip</name>
- <string>Margin by with paragraph is allowed to increase</string>
- </property>
- </widget>
- <widget row="0" column="4" >
- <class>QLabel</class>
- <property stdset="1">
- <name>name</name>
- <cstring>spacingMinusL</cstring>
- </property>
- <property stdset="1">
- <name>sizePolicy</name>
- <sizepolicy>
- <hsizetype>1</hsizetype>
- <vsizetype>1</vsizetype>
- </sizepolicy>
- </property>
- <property stdset="1">
- <name>text</name>
- <string>Shrink:</string>
- </property>
- <property stdset="1">
- <name>enabled</name>
- <bool>false</bool>
- </property>
- <property>
- <name>toolTip</name>
- <string>Margin by with paragraph is allowed to increase</string>
- </property>
- </widget>
- <widget row="1" column="1" >
- <class>QComboBox</class>
- <item>
- <property>
- <name>text</name>
- <string>None</string>
- </property>
- </item>
- <item>
- <property>
- <name>text</name>
- <string>DefSkip</string>
- </property>
- </item>
- <item>
- <property>
- <name>text</name>
- <string>SmallSkip</string>
- </property>
- </item>
- <item>
- <property>
- <name>text</name>
- <string>MedSkip</string>
- </property>
- </item>
- <item>
- <property>
- <name>text</name>
- <string>BigSkip</string>
- </property>
- </item>
- <item>
- <property>
- <name>text</name>
- <string>VFill</string>
- </property>
- </item>
- <item>
- <property>
- <name>text</name>
- <string>Custom</string>
- </property>
- </item>
- <property stdset="1">
- <name>name</name>
- <cstring>spacingAbove</cstring>
- </property>
- <property stdset="1">
- <name>sizePolicy</name>
- <sizepolicy>
- <hsizetype>3</hsizetype>
- <vsizetype>0</vsizetype>
- </sizepolicy>
- </property>
- </widget>
- <widget row="1" column="0" >
- <class>QLabel</class>
- <property stdset="1">
- <name>name</name>
- <cstring>spacingAboveL</cstring>
- </property>
- <property stdset="1">
- <name>text</name>
- <string>Above:</string>
- </property>
- <property>
- <name>buddy</name>
- <cstring></cstring>
- </property>
- </widget>
- <widget row="3" column="0" >
- <class>QLabel</class>
- <property stdset="1">
- <name>name</name>
- <cstring>spacingBelowL</cstring>
- </property>
- <property stdset="1">
- <name>text</name>
- <string>Below:</string>
- </property>
- <property>
- <name>buddy</name>
- <cstring></cstring>
- </property>
- </widget>
- <widget row="3" column="1" >
- <class>QComboBox</class>
- <item>
- <property>
- <name>text</name>
- <string>None</string>
- </property>
- </item>
- <item>
- <property>
- <name>text</name>
- <string>DefSkip</string>
- </property>
- </item>
- <item>
- <property>
- <name>text</name>
- <string>SmallSkip</string>
- </property>
- </item>
- <item>
- <property>
- <name>text</name>
- <string>MedSkip</string>
- </property>
- </item>
- <item>
- <property>
- <name>text</name>
- <string>BigSkip</string>
- </property>
- </item>
- <item>
- <property>
- <name>text</name>
- <string>VFill</string>
- </property>
- </item>
- <item>
- <property>
- <name>text</name>
- <string>Custom</string>
- </property>
- </item>
- <property stdset="1">
- <name>name</name>
- <cstring>spacingBelow</cstring>
- </property>
- <property stdset="1">
- <name>sizePolicy</name>
- <sizepolicy>
- <hsizetype>3</hsizetype>
- <vsizetype>0</vsizetype>
- </sizepolicy>
- </property>
- </widget>
- <widget row="5" column="1" rowspan="1" colspan="2" >
- <class>QCheckBox</class>
- <property stdset="1">
- <name>name</name>
- <cstring>spacingAboveKeep</cstring>
- </property>
- <property stdset="1">
- <name>text</name>
- <string>Keep space at the top of the page</string>
- </property>
- <property stdset="1">
- <name>enabled</name>
- <bool>true</bool>
- </property>
- <property>
- <name>toolTip</name>
- <string>Keep space at top of the page</string>
- </property>
- </widget>
- <widget row="5" column="3" rowspan="1" colspan="2" >
- <class>QCheckBox</class>
- <property stdset="1">
- <name>name</name>
- <cstring>spacingBelowKeep</cstring>
- </property>
- <property stdset="1">
- <name>text</name>
- <string>Keep space at the bottom of the page</string>
- </property>
- <property stdset="1">
- <name>enabled</name>
- <bool>true</bool>
- </property>
- <property>
- <name>toolTip</name>
- <string>Keep space at the bottom of the page</string>
- </property>
- </widget>
- </grid>
- </widget>
- <widget>
- <class>QGroupBox</class>
- <property stdset="1">
- <name>name</name>
- <cstring>listOptions</cstring>
- </property>
- <property stdset="1">
- <name>title</name>
- <string>List environment</string>
- </property>
- <property stdset="1">
- <name>enabled</name>
- <bool>false</bool>
- </property>
- <hbox>
- <property stdset="1">
- <name>margin</name>
- <number>11</number>
- </property>
- <property stdset="1">
- <name>spacing</name>
- <number>6</number>
- </property>
- <widget>
- <class>QLabel</class>
- <property stdset="1">
- <name>name</name>
- <cstring>labelWidthL</cstring>
- </property>
- <property stdset="1">
- <name>text</name>
- <string>Label width:</string>
- </property>
- <property stdset="1">
- <name>enabled</name>
- <bool>false</bool>
- </property>
- <property>
- <name>toolTip</name>
- <string>Label width in list environment</string>
- </property>
- </widget>
- <widget>
- <class>QLineEdit</class>
- <property stdset="1">
- <name>name</name>
- <cstring>labelWidth</cstring>
- </property>
- <property stdset="1">
- <name>enabled</name>
- <bool>false</bool>
- </property>
- </widget>
- <spacer>
- <property>
- <name>name</name>
- <cstring>Spacer7</cstring>
- </property>
- <property stdset="1">
- <name>orientation</name>
- <enum>Horizontal</enum>
- </property>
- <property stdset="1">
- <name>sizeType</name>
- <enum>Expanding</enum>
- </property>
- <property>
- <name>sizeHint</name>
- <size>
- <width>20</width>
- <height>20</height>
- </size>
- </property>
- </spacer>
- </hbox>
- </widget>
- <spacer>
- <property>
- <name>name</name>
- <cstring>Spacer1_5</cstring>
- </property>
- <property stdset="1">
- <name>orientation</name>
- <enum>Vertical</enum>
- </property>
- <property stdset="1">
- <name>sizeType</name>
- <enum>Expanding</enum>
- </property>
- <property>
- <name>sizeHint</name>
- <size>
- <width>20</width>
- <height>20</height>
- </size>
- </property>
- </spacer>
- </vbox>
- </widget>
- <widget>
- <class>QWidget</class>
- <property stdset="1">
- <name>name</name>
- <cstring>tab</cstring>
- </property>
- <attribute>
- <name>title</name>
- <string>&Lines and Page breaks</string>
- </attribute>
- <grid>
- <property stdset="1">
- <name>margin</name>
- <number>11</number>
- </property>
- <property stdset="1">
- <name>spacing</name>
- <number>6</number>
- </property>
- <widget row="0" column="1" >
- <class>QGroupBox</class>
- <property stdset="1">
- <name>name</name>
- <cstring>pagebreakOptions</cstring>
- </property>
- <property stdset="1">
- <name>title</name>
- <string>Page break</string>
- </property>
- <property stdset="1">
- <name>orientation</name>
- <enum>Vertical</enum>
- </property>
- <vbox>
- <property stdset="1">
- <name>margin</name>
- <number>11</number>
- </property>
- <property stdset="1">
- <name>spacing</name>
- <number>6</number>
- </property>
- <widget>
- <class>QCheckBox</class>
- <property stdset="1">
- <name>name</name>
- <cstring>pagebreakAbove</cstring>
- </property>
- <property stdset="1">
- <name>text</name>
- <string>above paragraph</string>
- </property>
- </widget>
- <widget>
- <class>QCheckBox</class>
- <property stdset="1">
- <name>name</name>
- <cstring>pagebreakBelow</cstring>
- </property>
- <property stdset="1">
- <name>text</name>
- <string>below paragraph</string>
- </property>
- </widget>
- </vbox>
- </widget>
- <spacer row="0" column="2" >
- <property>
- <name>name</name>
- <cstring>Spacer1_2</cstring>
- </property>
- <property stdset="1">
- <name>orientation</name>
- <enum>Horizontal</enum>
- </property>
- <property stdset="1">
- <name>sizeType</name>
- <enum>Expanding</enum>
- </property>
- <property>
- <name>sizeHint</name>
- <size>
- <width>20</width>
- <height>20</height>
- </size>
- </property>
- <property>
- <name>toolTip</name>
- <string>Index entry</string>
- </property>
- </spacer>
- <spacer row="1" column="2" >
- <property>
- <name>name</name>
- <cstring>Spacer2</cstring>
- </property>
- <property stdset="1">
- <name>orientation</name>
- <enum>Vertical</enum>
- </property>
- <property stdset="1">
- <name>sizeType</name>
- <enum>Expanding</enum>
- </property>
- <property>
- <name>sizeHint</name>
- <size>
- <width>20</width>
- <height>20</height>
- </size>
- </property>
- </spacer>
- <widget row="0" column="0" >
- <class>QGroupBox</class>
- <property stdset="1">
- <name>name</name>
- <cstring>lineOptions</cstring>
- </property>
- <property stdset="1">
- <name>title</name>
- <string>Line</string>
- </property>
- <vbox>
- <property stdset="1">
- <name>margin</name>
- <number>11</number>
- </property>
- <property stdset="1">
- <name>spacing</name>
- <number>6</number>
- </property>
- <widget>
- <class>QCheckBox</class>
- <property stdset="1">
- <name>name</name>
- <cstring>lineAbove</cstring>
- </property>
- <property stdset="1">
- <name>text</name>
- <string>above paragraph</string>
- </property>
- </widget>
- <widget>
- <class>QCheckBox</class>
- <property stdset="1">
- <name>name</name>
- <cstring>lineBelow</cstring>
- </property>
- <property stdset="1">
- <name>text</name>
- <string>below paragraph</string>
- </property>
- </widget>
- </vbox>
- </widget>
- </grid>
- </widget>
- <widget>
- <class>QWidget</class>
- <property stdset="1">
- <name>name</name>
- <cstring>tab</cstring>
- </property>
- <attribute>
- <name>title</name>
- <string>&Extra options</string>
- </attribute>
- <grid>
- <property stdset="1">
- <name>margin</name>
- <number>11</number>
- </property>
- <property stdset="1">
- <name>spacing</name>
- <number>6</number>
- </property>
- <spacer row="1" column="1" >
- <property>
- <name>name</name>
- <cstring>Spacer1_4</cstring>
- </property>
- <property stdset="1">
- <name>orientation</name>
- <enum>Horizontal</enum>
- </property>
- <property stdset="1">
- <name>sizeType</name>
- <enum>Expanding</enum>
- </property>
- <property>
- <name>sizeHint</name>
- <size>
- <width>20</width>
- <height>20</height>
- </size>
- </property>
- </spacer>
- <widget row="0" column="0" >
- <class>QLayoutWidget</class>
- <property stdset="1">
- <name>name</name>
- <cstring>Layout7</cstring>
- </property>
- <grid>
- <property stdset="1">
- <name>margin</name>
- <number>0</number>
- </property>
- <property stdset="1">
- <name>spacing</name>
- <number>6</number>
- </property>
- <widget row="0" column="2" >
- <class>QLabel</class>
- <property stdset="1">
- <name>name</name>
- <cstring>extraUnitL</cstring>
- </property>
- <property stdset="1">
- <name>text</name>
- <string>Unit:</string>
- </property>
- <property stdset="1">
- <name>enabled</name>
- <bool>false</bool>
- </property>
- </widget>
- <widget row="1" column="2" >
- <class>QComboBox</class>
- <item>
- <property>
- <name>text</name>
- <string>Centimetres</string>
- </property>
- </item>
- <item>
- <property>
- <name>text</name>
- <string>Inches</string>
- </property>
- </item>
- <item>
- <property>
- <name>text</name>
- <string>Points</string>
- </property>
- </item>
- <item>
- <property>
- <name>text</name>
- <string>Millimetres</string>
- </property>
- </item>
- <item>
- <property>
- <name>text</name>
- <string>Picas</string>
- </property>
- </item>
- <item>
- <property>
- <name>text</name>
- <string>ex Units</string>
- </property>
- </item>
- <item>
- <property>
- <name>text</name>
- <string>em Units</string>
- </property>
- </item>
- <item>
- <property>
- <name>text</name>
- <string>Scaled Points</string>
- </property>
- </item>
- <item>
- <property>
- <name>text</name>
- <string>Big/PS Points</string>
- </property>
- </item>
- <item>
- <property>
- <name>text</name>
- <string>Didot Points</string>
- </property>
- </item>
- <item>
- <property>
- <name>text</name>
- <string>Cicero Points</string>
- </property>
- </item>
- <property stdset="1">
- <name>name</name>
- <cstring>extraUnit</cstring>
- </property>
- <property stdset="1">
- <name>focusPolicy</name>
- <enum>TabFocus</enum>
- </property>
- <property stdset="1">
- <name>enabled</name>
- <bool>false</bool>
- </property>
- </widget>
- <widget row="1" column="1" >
- <class>QLineEdit</class>
- <property stdset="1">
- <name>name</name>
- <cstring>extraWidth</cstring>
- </property>
- <property stdset="1">
- <name>enabled</name>
- <bool>false</bool>
- </property>
- </widget>
- <widget row="1" column="0" >
- <class>QComboBox</class>
- <item>
- <property>
- <name>text</name>
- <string>None</string>
- </property>
- </item>
- <item>
- <property>
- <name>text</name>
- <string>Minipage</string>
- </property>
- </item>
- <item>
- <property>
- <name>text</name>
- <string>Wrap text around floats</string>
- </property>
- </item>
- <item>
- <property>
- <name>text</name>
- <string>Indent whole paragraph</string>
- </property>
- </item>
- <property stdset="1">
- <name>name</name>
- <cstring>extraType</cstring>
- </property>
- </widget>
- <widget row="0" column="1" >
- <class>QLabel</class>
- <property stdset="1">
- <name>name</name>
- <cstring>extraWidthL</cstring>
- </property>
- <property stdset="1">
- <name>text</name>
- <string>Width:</string>
- </property>
- <property stdset="1">
- <name>enabled</name>
- <bool>false</bool>
- </property>
- </widget>
- </grid>
- </widget>
- <widget row="1" column="0" >
- <class>QGroupBox</class>
- <property stdset="1">
- <name>name</name>
- <cstring>minipageOptions</cstring>
- </property>
- <property stdset="1">
- <name>title</name>
- <string>Minipage options</string>
- </property>
- <property stdset="1">
- <name>enabled</name>
- <bool>false</bool>
- </property>
- <vbox>
- <property stdset="1">
- <name>margin</name>
- <number>11</number>
- </property>
- <property stdset="1">
- <name>spacing</name>
- <number>6</number>
- </property>
- <widget>
- <class>QCheckBox</class>
- <property stdset="1">
- <name>name</name>
- <cstring>minipageStart</cstring>
- </property>
- <property stdset="1">
- <name>text</name>
- <string>Start new minipage</string>
- </property>
- <property stdset="1">
- <name>enabled</name>
- <bool>true</bool>
- </property>
- </widget>
- <widget>
- <class>QCheckBox</class>
- <property stdset="1">
- <name>name</name>
- <cstring>minipageHfill</cstring>
- </property>
- <property stdset="1">
- <name>text</name>
- <string>HFill between minipage paragraphs</string>
- </property>
- <property stdset="1">
- <name>enabled</name>
- <bool>true</bool>
- </property>
- </widget>
- <widget>
- <class>QLayoutWidget</class>
- <property stdset="1">
- <name>name</name>
- <cstring>Layout15</cstring>
- </property>
- <hbox>
- <property stdset="1">
- <name>margin</name>
- <number>0</number>
- </property>
- <property stdset="1">
- <name>spacing</name>
- <number>6</number>
- </property>
- <widget>
- <class>QLabel</class>
- <property stdset="1">
- <name>name</name>
- <cstring>minipageValignL</cstring>
- </property>
- <property stdset="1">
- <name>text</name>
- <string>Vertical Alignment:</string>
- </property>
- </widget>
- <widget>
- <class>QComboBox</class>
- <item>
- <property>
- <name>text</name>
- <string>Top</string>
- </property>
- </item>
- <item>
- <property>
- <name>text</name>
- <string>Middle</string>
- </property>
- </item>
- <item>
- <property>
- <name>text</name>
- <string>Bottom</string>
- </property>
- </item>
- <property stdset="1">
- <name>name</name>
- <cstring>minipageValign</cstring>
- </property>
- </widget>
- <spacer>
- <property>
- <name>name</name>
- <cstring>Spacer8</cstring>
- </property>
- <property stdset="1">
- <name>orientation</name>
- <enum>Horizontal</enum>
- </property>
- <property stdset="1">
- <name>sizeType</name>
- <enum>Expanding</enum>
- </property>
- <property>
- <name>sizeHint</name>
- <size>
- <width>20</width>
- <height>20</height>
- </size>
- </property>
- </spacer>
- </hbox>
- </widget>
- </vbox>
- </widget>
- <spacer row="2" column="0" >
- <property>
- <name>name</name>
- <cstring>Spacer6</cstring>
- </property>
- <property stdset="1">
- <name>orientation</name>
- <enum>Vertical</enum>
- </property>
- <property stdset="1">
- <name>sizeType</name>
- <enum>Expanding</enum>
- </property>
- <property>
- <name>sizeHint</name>
- <size>
- <width>20</width>
- <height>20</height>
- </size>
- </property>
- </spacer>
- </grid>
- </widget>
- </widget>
- <widget>
- <class>QLayoutWidget</class>
- <property stdset="1">
- <name>name</name>
- <cstring>Layout1</cstring>
- </property>
- <hbox>
- <property stdset="1">
- <name>margin</name>
- <number>0</number>
- </property>
- <property stdset="1">
- <name>spacing</name>
- <number>6</number>
- </property>
- <widget>
- <class>QPushButton</class>
- <property stdset="1">
- <name>name</name>
- <cstring>defaultsPB</cstring>
- </property>
- <property stdset="1">
- <name>text</name>
- <string>&Restore</string>
- </property>
- </widget>
- <spacer>
- <property>
- <name>name</name>
- <cstring>Spacer1</cstring>
- </property>
- <property stdset="1">
- <name>orientation</name>
- <enum>Horizontal</enum>
- </property>
- <property stdset="1">
- <name>sizeType</name>
- <enum>Expanding</enum>
- </property>
- <property>
- <name>sizeHint</name>
- <size>
- <width>20</width>
- <height>20</height>
- </size>
- </property>
- </spacer>
- <widget>
- <class>QPushButton</class>
- <property stdset="1">
- <name>name</name>
- <cstring>applyPB</cstring>
- </property>
- <property stdset="1">
- <name>text</name>
- <string>&Apply</string>
- </property>
- </widget>
- <widget>
- <class>QPushButton</class>
- <property stdset="1">
- <name>name</name>
- <cstring>okPB</cstring>
- </property>
- <property stdset="1">
- <name>text</name>
- <string>&OK</string>
- </property>
- <property stdset="1">
- <name>flat</name>
- <bool>false</bool>
- </property>
- <property stdset="1">
- <name>default</name>
- <bool>false</bool>
- </property>
- </widget>
- <widget>
- <class>QPushButton</class>
- <property stdset="1">
- <name>name</name>
- <cstring>cancelPB</cstring>
- </property>
- <property stdset="1">
- <name>text</name>
- <string>&Cancel</string>
- </property>
- <property stdset="1">
- <name>default</name>
- <bool>true</bool>
- </property>
- </widget>
- </hbox>
- </widget>
- </vbox>
-</widget>
-<connections>
- <connection>
- <sender>defaultsPB</sender>
- <signal>clicked()</signal>
- <receiver>ParagraphDlg</receiver>
- <slot>restore_adaptor()</slot>
- </connection>
- <connection>
- <sender>applyPB</sender>
- <signal>clicked()</signal>
- <receiver>ParagraphDlg</receiver>
- <slot>apply_adaptor()</slot>
- </connection>
- <connection>
- <sender>cancelPB</sender>
- <signal>clicked()</signal>
- <receiver>ParagraphDlg</receiver>
- <slot>cancel_adaptor()</slot>
- </connection>
- <connection>
- <sender>okPB</sender>
- <signal>clicked()</signal>
- <receiver>ParagraphDlg</receiver>
- <slot>ok_adaptor()</slot>
- </connection>
- <connection>
- <sender>spacingAbove</sender>
- <signal>activated(int)</signal>
- <receiver>ParagraphDlg</receiver>
- <slot>enable_spacingAbove(int)</slot>
- </connection>
- <connection>
- <sender>spacingBelow</sender>
- <signal>activated(int)</signal>
- <receiver>ParagraphDlg</receiver>
- <slot>enable_spacingBelow(int)</slot>
- </connection>
- <connection>
- <sender>extraType</sender>
- <signal>activated(int)</signal>
- <receiver>ParagraphDlg</receiver>
- <slot>enable_minipageOptions(int)</slot>
- </connection>
- <connection>
- <sender>extraType</sender>
- <signal>activated(int)</signal>
- <receiver>ParagraphDlg</receiver>
- <slot>enable_extraOptions(int)</slot>
- </connection>
- <slot access="protected">apply_adaptor()</slot>
- <slot access="protected">cancel_adaptor()</slot>
- <slot access="protected">enable_extraOptions(int)</slot>
- <slot access="protected">enable_minipageOptions(int)</slot>
- <slot access="protected">enable_spacingAbove(int)</slot>
- <slot access="protected">enable_spacingBelow(int)</slot>
- <slot access="protected">ok_adaptor()</slot>
- <slot access="protected">restore_adaptor()</slot>
-</connections>
-<tabstops>
- <tabstop>TabsParagraph</tabstop>
- <tabstop>alignment</tabstop>
- <tabstop>noIndent</tabstop>
- <tabstop>spacingAbove</tabstop>
- <tabstop>spacingAboveValue</tabstop>
- <tabstop>spacingAbovePlus</tabstop>
- <tabstop>spacingAboveMinus</tabstop>
- <tabstop>spacingAboveKeep</tabstop>
- <tabstop>spacingAboveValueUnit</tabstop>
- <tabstop>spacingAbovePlusUnit</tabstop>
- <tabstop>spacingAboveMinusUnit</tabstop>
- <tabstop>spacingBelow</tabstop>
- <tabstop>spacingBelowValue</tabstop>
- <tabstop>spacingBelowPlus</tabstop>
- <tabstop>spacingBelowMinus</tabstop>
- <tabstop>spacingBelowKeep</tabstop>
- <tabstop>spacingBelowValueUnit</tabstop>
- <tabstop>spacingBelowPlusUnit</tabstop>
- <tabstop>spacingBelowMinusUnit</tabstop>
- <tabstop>labelWidth</tabstop>
- <tabstop>lineAbove</tabstop>
- <tabstop>lineBelow</tabstop>
- <tabstop>pagebreakAbove</tabstop>
- <tabstop>pagebreakBelow</tabstop>
- <tabstop>extraType</tabstop>
- <tabstop>extraWidth</tabstop>
- <tabstop>extraUnit</tabstop>
- <tabstop>minipageStart</tabstop>
- <tabstop>minipageHfill</tabstop>
- <tabstop>minipageValign</tabstop>
- <tabstop>cancelPB</tabstop>
- <tabstop>okPB</tabstop>
- <tabstop>applyPB</tabstop>
- <tabstop>defaultsPB</tabstop>
-</tabstops>
-</UI>
+++ /dev/null
-/**
- * \file paragraphdlgimpl.C
- * Copyright 2001 LyX Team
- * see the file COPYING
- *
- * \author John Levon, moz@compsoc.man.ac.uk
- * \author Edwin Leuven, leuven@fee.uva.nl
- */
-
-#include "paragraphdlg.h"
-
-#include <config.h>
-#include <gettext.h>
-#include <string>
-
-#include "paragraphdlgimpl.h"
-#include "FormParagraph.h"
-#include "support/lstrings.h"
-#include "debug.h"
-
-#include "qlineedit.h"
-#include "qcombobox.h"
-#include "qcheckbox.h"
-#include "qpushbutton.h"
-#include "qtabwidget.h"
-#include "qlabel.h"
-#include "qgroupbox.h"
-
-using std::endl;
-
-ParagraphDlgImpl::ParagraphDlgImpl(FormParagraph *form, QWidget* parent, const char* name, bool modal, WFlags fl )
- : ParagraphDlg( parent, name, modal, fl ), form_(form)
-{
- setCaption(name);
-}
-
-
-ParagraphDlgImpl::~ParagraphDlgImpl()
-{
-}
-
-
-void ParagraphDlgImpl::setReadOnly(bool readonly)
-{
- TabsParagraph->setEnabled(!readonly);
- okPB->setEnabled(!readonly);
- applyPB->setEnabled(!readonly);
- defaultsPB->setEnabled(!readonly);
- cancelPB->setText(readonly ? _("&Close") : _("&Cancel"));
-}
-
-
-void ParagraphDlgImpl::setLabelWidth(const char *text)
-{
- // FIXME: should be cleverer here
- if (!strcmp(_("Senseless with this layout!"),text)) {
- listOptions->setEnabled(false);
- labelWidth->setText("");
- } else {
- listOptions->setEnabled(true);
- labelWidth->setText(text);
- }
-}
-
-
-void ParagraphDlgImpl::setAlign(int type)
-{
- int item=0;
- switch (type) {
- case LYX_ALIGN_BLOCK : item=0; break;
- case LYX_ALIGN_LEFT : item=1; break;
- case LYX_ALIGN_RIGHT : item=2; break;
- case LYX_ALIGN_CENTER : item=3; break;
- default:
- item=0;
- }
- alignment->setCurrentItem(item);
-}
-
-
-void ParagraphDlgImpl::setChecks(bool labove, bool lbelow, bool pabove, bool pbelow, bool noindent)
-{
- lineAbove->setChecked(labove);
- lineBelow->setChecked(lbelow);
- pagebreakAbove->setChecked(pabove);
- pagebreakBelow->setChecked(pbelow);
- noIndent->setChecked(noindent);
-}
-
-
-void ParagraphDlgImpl::setSpace(VSpace::vspace_kind kindabove, VSpace::vspace_kind kindbelow, bool keepabove, bool keepbelow)
-{
- int item=0;
-
- switch (kindabove) {
- case VSpace::NONE: item = 0; break;
- case VSpace::DEFSKIP: item = 1; break;
- case VSpace::SMALLSKIP: item = 2; break;
- case VSpace::MEDSKIP: item = 3; break;
- case VSpace::BIGSKIP: item = 4; break;
- case VSpace::VFILL: item = 5; break;
- case VSpace::LENGTH: item = 6; break;
- }
- spacingAbove->setCurrentItem(item);
-
- switch (kindbelow) {
- case VSpace::NONE: item = 0; break;
- case VSpace::DEFSKIP: item = 1; break;
- case VSpace::SMALLSKIP: item = 2; break;
- case VSpace::MEDSKIP: item = 3; break;
- case VSpace::BIGSKIP: item = 4; break;
- case VSpace::VFILL: item = 5; break;
- case VSpace::LENGTH: item = 6; break;
- }
- spacingBelow->setCurrentItem(item);
-
- spacingAboveValue->setEnabled(kindabove == VSpace::LENGTH);
- spacingAbovePlus->setEnabled(kindabove == VSpace::LENGTH);
- spacingAboveMinus->setEnabled(kindabove == VSpace::LENGTH);
- spacingBelowValue->setEnabled(kindbelow == VSpace::LENGTH);
- spacingBelowPlus->setEnabled(kindbelow == VSpace::LENGTH);
- spacingBelowMinus->setEnabled(kindbelow == VSpace::LENGTH);
-
- spacingAboveKeep->setChecked(keepabove);
- spacingBelowKeep->setChecked(keepbelow);
-}
-
-
-void ParagraphDlgImpl::setAboveLength(float val, float plus, float minus,
- LyXLength::UNIT vunit, LyXLength::UNIT punit, LyXLength::UNIT munit)
-{
- if (vunit==LyXLength::UNIT_NONE) {
- spacingAboveValue->setText("");
- spacingAbovePlus->setText("");
- spacingAboveMinus->setText("");
- } else {
- spacingAboveValue->setText(tostr(val).c_str());
- spacingAbovePlus->setText(tostr(plus).c_str());
- spacingAboveMinus->setText(tostr(minus).c_str());
- }
-
- spacingAboveValueUnit->setCurrentItem(getItem(vunit));
- spacingAbovePlusUnit->setCurrentItem(getItem(punit));
- spacingAboveMinusUnit->setCurrentItem(getItem(munit));
-
-}
-
-
-void ParagraphDlgImpl::setBelowLength(float val, float plus, float minus,
- LyXLength::UNIT vunit, LyXLength::UNIT punit, LyXLength::UNIT munit)
-{
- if (vunit==LyXLength::UNIT_NONE) {
- spacingBelowValue->setText("");
- spacingBelowPlus->setText("");
- spacingBelowMinus->setText("");
- } else {
- spacingBelowValue->setText(tostr(val).c_str());
- spacingBelowPlus->setText(tostr(plus).c_str());
- spacingBelowMinus->setText(tostr(minus).c_str());
- }
-
- spacingBelowValueUnit->setCurrentItem(getItem(vunit));
- spacingBelowPlusUnit->setCurrentItem(getItem(punit));
- spacingBelowMinusUnit->setCurrentItem(getItem(munit));
-}
-
-
-void ParagraphDlgImpl::setExtra(float widthval, LyXLength::UNIT units, const string percent, int align,
- bool hfill, bool startminipage, Paragraph::PEXTRA_TYPE type)
-{
- if (type!=Paragraph::PEXTRA_NONE) {
- lyxerr[Debug::GUI] << "percent : $" << percent << "$ widthval " << widthval << " unit " << long(units) << endl;
- if (percent != "") {
- extraWidth->setText(percent.c_str());
- extraUnit->setCurrentItem(11);
- } else {
- extraWidth->setText(tostr(widthval).c_str());
- extraUnit->setCurrentItem(getItem(units));
- }
- } else
- extraWidth->setText("");
-
- switch (type) {
- case Paragraph::PEXTRA_NONE:
- extraType->setCurrentItem(0);
- break;
- case Paragraph::PEXTRA_MINIPAGE:
- extraType->setCurrentItem(1);
- enable_extraOptions(1);
- enable_minipageOptions(1);
- break;
- case Paragraph::PEXTRA_FLOATFLT:
- extraType->setCurrentItem(2);
- enable_extraOptions(2);
- break;
- case Paragraph::PEXTRA_INDENT:
- extraType->setCurrentItem(3);
- enable_extraOptions(3);
- break;
- }
-
- switch (align) {
- case Paragraph::MINIPAGE_ALIGN_TOP:
- minipageValign->setCurrentItem(0);
- break;
- case Paragraph::MINIPAGE_ALIGN_MIDDLE:
- minipageValign->setCurrentItem(1);
- break;
- case Paragraph::MINIPAGE_ALIGN_BOTTOM:
- minipageValign->setCurrentItem(2);
- break;
- }
-
- minipageHfill->setChecked(hfill);
- minipageStart->setChecked(startminipage);
-}
-
-
-LyXGlueLength ParagraphDlgImpl::getAboveLength() const
-{
- LyXGlueLength len(
- spacingAboveValue->text().toFloat(),
- getLyXLength( spacingAboveValueUnit->currentItem() ),
- spacingAbovePlus->text().toFloat(),
- getLyXLength( spacingAbovePlusUnit->currentItem() ),
- spacingAboveMinus->text().toFloat(),
- getLyXLength( spacingAboveMinusUnit->currentItem() )
- );
- return len;
-}
-
-
-LyXGlueLength ParagraphDlgImpl::getBelowLength() const
-{
- LyXGlueLength len(
- spacingBelowValue->text().toFloat(),
- getLyXLength( spacingBelowValueUnit->currentItem() ),
- spacingBelowPlus->text().toFloat(),
- getLyXLength( spacingBelowPlusUnit->currentItem() ),
- spacingBelowMinus->text().toFloat(),
- getLyXLength( spacingBelowMinusUnit->currentItem() )
- );
- return len;
-}
-
-
-LyXLength ParagraphDlgImpl::getExtraWidth() const
-{
- if (extraUnit->currentItem()!=11) {
- LyXLength len(
- (extraWidth->text()).toDouble(),
- getLyXLength(extraUnit->currentItem())
- );
- return len;
- } else {
- LyXLength len(0.0, LyXLength::UNIT_NONE);
- return len;
- }
-}
-
-
-string ParagraphDlgImpl::getExtraWidthPercent() const
-{
- double val = (extraWidth->text()).toDouble();
- if (val > 100.0)
- val = 100.0;
- if (val < 0.0)
- val = 0.0;
- return tostr(val);
-}
-
-
-const char * ParagraphDlgImpl::getLabelWidth() const {
- return labelWidth->text();
-}
-
-
-LyXAlignment ParagraphDlgImpl::getAlign() const {
- switch (alignment->currentItem()) {
- case 0: return LYX_ALIGN_BLOCK;
- case 1: return LYX_ALIGN_LEFT;
- case 2: return LYX_ALIGN_RIGHT;
- case 3: return LYX_ALIGN_CENTER;
- default: return LYX_ALIGN_CENTER;
- }
-}
-
-
-bool ParagraphDlgImpl::getAboveKeep() const {
- return spacingAboveKeep->isChecked();
-}
-
-
-bool ParagraphDlgImpl::getBelowKeep() const {
- return spacingBelowKeep->isChecked();
-}
-
-
-bool ParagraphDlgImpl::getLineAbove() const {
- return lineAbove->isChecked();
-}
-
-
-bool ParagraphDlgImpl::getLineBelow() const {
- return lineBelow->isChecked();
-}
-
-
-bool ParagraphDlgImpl::getPagebreakAbove() const {
- return pagebreakAbove->isChecked();
-}
-
-
-bool ParagraphDlgImpl::getPagebreakBelow() const {
- return pagebreakBelow->isChecked();
-}
-
-
-bool ParagraphDlgImpl::getNoIndent() const {
- return noIndent->isChecked();
-}
-
-
-VSpace::vspace_kind ParagraphDlgImpl::getSpaceAboveKind() const {
- return getSpaceKind(spacingAbove->currentItem());
-}
-
-
-VSpace::vspace_kind ParagraphDlgImpl::getSpaceBelowKind() const {
- return getSpaceKind(spacingBelow->currentItem());
-}
-
-
-Paragraph::PEXTRA_TYPE ParagraphDlgImpl::getExtraType() const {
- switch (extraType->currentItem()) {
- case 0: return Paragraph::PEXTRA_NONE;
- case 1: return Paragraph::PEXTRA_MINIPAGE;
- case 2: return Paragraph::PEXTRA_FLOATFLT;
- case 3: return Paragraph::PEXTRA_INDENT;
- }
- return Paragraph::PEXTRA_NONE;
-}
-
-
-Paragraph::MINIPAGE_ALIGNMENT ParagraphDlgImpl::getExtraAlign() const {
- switch (minipageValign->currentItem()) {
- case 0: return Paragraph::MINIPAGE_ALIGN_TOP;
- case 1: return Paragraph::MINIPAGE_ALIGN_MIDDLE;
- case 2: return Paragraph::MINIPAGE_ALIGN_BOTTOM;
- default: return Paragraph::MINIPAGE_ALIGN_BOTTOM;
- }
-}
-
-
-bool ParagraphDlgImpl::getHfillBetween() const {
- return minipageHfill->isChecked();
-}
-
-
-bool ParagraphDlgImpl::getStartNewMinipage() const {
- return minipageStart->isChecked();
-}
-
-
-VSpace::vspace_kind ParagraphDlgImpl::getSpaceKind(int val) const {
- switch (val) {
- case 0: return VSpace::NONE;
- case 1: return VSpace::DEFSKIP;
- case 2: return VSpace::SMALLSKIP;
- case 3: return VSpace::MEDSKIP;
- case 4: return VSpace::BIGSKIP;
- case 5: return VSpace::VFILL;
- case 6: return VSpace::LENGTH;
- default:
- lyxerr[Debug::GUI] << "Unknown kind combo entry " << val << std::endl;
- }
- return VSpace::NONE;
-}
-
-
-LyXLength::UNIT ParagraphDlgImpl::getLyXLength(int val) const {
- switch (val) {
- 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 kind combo entry " << val << std::endl;
- }
- return LyXLength::UNIT_NONE;
-}
-
-
-int ParagraphDlgImpl::getItem(LyXLength::UNIT unit) const {
- int item=0;
- switch (unit) {
- case LyXLength::CM: item = 0; break;
- case LyXLength::IN: item = 1; break;
- case LyXLength::PT: item = 2; break;
- case LyXLength::MM: item = 3; break;
- case LyXLength::PC: item = 4; break;
- case LyXLength::EX: item = 5; break;
- case LyXLength::EM: item = 6; break;
- case LyXLength::SP: item = 7; break;
- case LyXLength::BP: item = 8; break;
- case LyXLength::DD: item = 9; break;
- case LyXLength::CC: item = 10; break;
- case LyXLength::MU: item = 0; break;
- case LyXLength::UNIT_NONE: item = 0; break;
- default:
- lyxerr[Debug::GUI] << "Unknown unit " << long(unit) << endl;
- }
- return item;
-}
-
-
-void ParagraphDlgImpl::enable_extraOptions(int item)
-{
- bool enable = (item!=0);
- extraWidth->setEnabled(enable);
- extraWidthL->setEnabled(enable);
- extraUnit->setEnabled(enable);
- extraUnitL->setEnabled(enable);
-}
-
-
-void ParagraphDlgImpl::enable_minipageOptions(int item)
-{
- minipageOptions->setEnabled( item==1 );
-}
-
-
-void ParagraphDlgImpl::enable_spacingAbove(int item)
-{
- bool enable = (item==6);
- spacingAboveValue->setEnabled(enable);
- spacingAbovePlus->setEnabled(enable);
- spacingAboveMinus->setEnabled(enable);
- spacingAboveValueUnit->setEnabled(enable);
- spacingAbovePlusUnit->setEnabled(enable);
- spacingAboveMinusUnit->setEnabled(enable);
- spacingAboveUnitsL->setEnabled(enable);
- bool enablel = ( (item==6) || (item!=6 && spacingBelow->currentItem()==6) );
- spacingValueL->setEnabled(enablel);
- spacingPlusL->setEnabled(enablel);
- spacingMinusL->setEnabled(enablel);
-}
-
-
-void ParagraphDlgImpl::enable_spacingBelow(int item)
-{
- bool enable = (item==6);
- spacingBelowValue->setEnabled(enable);
- spacingBelowPlus->setEnabled(enable);
- spacingBelowMinus->setEnabled(enable);
- spacingBelowValueUnit->setEnabled(enable);
- spacingBelowPlusUnit->setEnabled(enable);
- spacingBelowMinusUnit->setEnabled(enable);
- spacingBelowUnitsL->setEnabled(enable);
- bool enablel = ( (item==6) || (item!=6 && spacingAbove->currentItem()==6) );
- spacingValueL->setEnabled(enablel);
- spacingPlusL->setEnabled(enablel);
- spacingMinusL->setEnabled(enablel);
-}
-
-
-void ParagraphDlgImpl::closeEvent(QCloseEvent * e)
-{
- form_->close();
- e->accept();
-}
-
-
-void ParagraphDlgImpl::apply_adaptor()
-{
- form_->apply();
-}
-
-
-void ParagraphDlgImpl::cancel_adaptor()
-{
- form_->close();
- hide();
-}
-
-
-void ParagraphDlgImpl::ok_adaptor()
-{
- apply_adaptor();
- form_->close();
- hide();
-}
-
-
-void ParagraphDlgImpl::restore_adaptor()
-{
- form_->update();
-}
+++ /dev/null
-/**
- * \file paragraphdlgimpl.h
- * Copyright 2001 LyX Team
- * see the file COPYING
- *
- * \author John Levon, moz@compsoc.man.ac.uk
- * \author Edwin Leuven, leuven@fee.uva.nl
- */
-
-#ifndef PARAGRAPHDLGIMPL_H
-#define PARAGRAPHDLGIMPL_H
-
-#include <config.h>
-
-#include "paragraphdlg.h"
-#include "vspace.h"
-#include "paragraph.h"
-
-
-class FormParagraph;
-
-class ParagraphDlgImpl : public ParagraphDlg
-{
- Q_OBJECT
-
-public:
-
- ParagraphDlgImpl(FormParagraph *form, QWidget* parent = 0, const char* name = 0, bool modal = FALSE, WFlags fl = 0 );
- ~ParagraphDlgImpl();
-
- void setReadOnly(bool);
- void setLabelWidth(const char *);
- void setAlign(int);
- void setChecks(bool, bool, bool, bool, bool);
- void setSpace(VSpace::vspace_kind, VSpace::vspace_kind, bool, bool);
- void setAboveLength(float, float, float, LyXGlueLength::UNIT, LyXGlueLength::UNIT, LyXGlueLength::UNIT);
- void setBelowLength(float, float, float, LyXGlueLength::UNIT, LyXGlueLength::UNIT, LyXGlueLength::UNIT);
- void setExtra(float, LyXGlueLength::UNIT, const string, int, bool, bool, Paragraph::PEXTRA_TYPE);
- LyXGlueLength getAboveLength() const;
- LyXGlueLength getBelowLength() const;
- LyXLength getExtraWidth() const;
- string getExtraWidthPercent() const;
- // FIXME: return a std::string !
- const char * getLabelWidth() const;
- LyXAlignment getAlign() const;
- bool getAboveKeep() const;
- bool getBelowKeep() const;
- bool getLineAbove() const;
- bool getLineBelow() const;
- bool getPagebreakAbove() const;
- bool getPagebreakBelow() const;
- bool getNoIndent() const;
- VSpace::vspace_kind getSpaceAboveKind() const;
- VSpace::vspace_kind getSpaceBelowKind() const;
- Paragraph::PEXTRA_TYPE getExtraType() const;
- Paragraph::MINIPAGE_ALIGNMENT getExtraAlign() const;
- bool getHfillBetween() const;
- bool getStartNewMinipage() const;
-
-
-protected:
-
- void closeEvent (QCloseEvent * e);
-
-private:
-
- FormParagraph * form_;
- VSpace::vspace_kind getSpaceKind(int val) const;
- LyXLength::UNIT getLyXLength(int val) const;
- int getItem(LyXLength::UNIT unit) const;
-
-
-protected slots:
-
- void apply_adaptor();
- void cancel_adaptor();
- void enable_extraOptions(int);
- void enable_minipageOptions(int);
- void enable_spacingAbove(int);
- void enable_spacingBelow(int);
- void ok_adaptor();
- void restore_adaptor();
-};
-
-#endif // PARAGRAPHDLGIMPL_H
+++ /dev/null
-/****************************************************************************
-** Form implementation generated from reading ui file 'printdlg.ui'
-**
-** Created: Sun Feb 4 23:02:20 2001
-** by: The User Interface Compiler (uic)
-**
-** WARNING! All changes made in this file will be lost!
-****************************************************************************/
-#include "printdlg.h"
-
-#include <qbuttongroup.h>
-#include <qcheckbox.h>
-#include <qgroupbox.h>
-#include <qlabel.h>
-#include <qlineedit.h>
-#include <qpushbutton.h>
-#include <qradiobutton.h>
-#include <qspinbox.h>
-#include <qlayout.h>
-#include <qvariant.h>
-#include <qtooltip.h>
-#include <qwhatsthis.h>
-
-/*
- * Constructs a PrintDlg which is a child of 'parent', with the
- * name 'name' and widget flags set to 'f'
- *
- * The dialog will by default be modeless, unless you set 'modal' to
- * TRUE to construct a modal dialog.
- */
-PrintDlg::PrintDlg( QWidget* parent, const char* name, bool modal, WFlags fl )
- : QDialog( parent, name, modal, fl )
-{
- if ( !name )
- setName( "PrintDlg" );
- resize( 363, 342 );
- setCaption( tr( "Form1" ) );
- PrintDlgLayout = new QVBoxLayout( this );
- PrintDlgLayout->setSpacing( 6 );
- PrintDlgLayout->setMargin( 11 );
-
- ButtonGroup1 = new QButtonGroup( this, "ButtonGroup1" );
- ButtonGroup1->setTitle( tr( "Print Destination" ) );
- ButtonGroup1->setColumnLayout(0, Qt::Vertical );
- ButtonGroup1->layout()->setSpacing( 0 );
- ButtonGroup1->layout()->setMargin( 0 );
- ButtonGroup1Layout = new QGridLayout( ButtonGroup1->layout() );
- ButtonGroup1Layout->setAlignment( Qt::AlignTop );
- ButtonGroup1Layout->setSpacing( 3 );
- ButtonGroup1Layout->setMargin( 11 );
-
- toPrinter = new QRadioButton( ButtonGroup1, "toPrinter" );
- toPrinter->setText( tr( "&Printer" ) );
- toPrinter->setChecked( TRUE );
-
- ButtonGroup1Layout->addWidget( toPrinter, 0, 0 );
-
- toFile = new QRadioButton( ButtonGroup1, "toFile" );
- toFile->setText( tr( "&File" ) );
-
- ButtonGroup1Layout->addWidget( toFile, 1, 0 );
-
- printerName = new QLineEdit( ButtonGroup1, "printerName" );
-
- ButtonGroup1Layout->addWidget( printerName, 0, 1 );
-
- fileName = new QLineEdit( ButtonGroup1, "fileName" );
- fileName->setEnabled( FALSE );
-
- ButtonGroup1Layout->addWidget( fileName, 1, 1 );
-
- browsePB = new QPushButton( ButtonGroup1, "browsePB" );
- browsePB->setText( tr( "&Browse..." ) );
- browsePB->setEnabled( FALSE );
-
- ButtonGroup1Layout->addWidget( browsePB, 1, 2 );
- PrintDlgLayout->addWidget( ButtonGroup1 );
-
- ButtonGroup3 = new QButtonGroup( this, "ButtonGroup3" );
- ButtonGroup3->setTitle( tr( "Pages" ) );
- ButtonGroup3->setColumnLayout(0, Qt::Vertical );
- ButtonGroup3->layout()->setSpacing( 0 );
- ButtonGroup3->layout()->setMargin( 0 );
- ButtonGroup3Layout = new QGridLayout( ButtonGroup3->layout() );
- ButtonGroup3Layout->setAlignment( Qt::AlignTop );
- ButtonGroup3Layout->setSpacing( 3 );
- ButtonGroup3Layout->setMargin( 11 );
-
- allPages = new QRadioButton( ButtonGroup3, "allPages" );
- allPages->setText( tr( "All" ) );
- allPages->setChecked( TRUE );
-
- ButtonGroup3Layout->addWidget( allPages, 0, 0 );
-
- oddPages = new QRadioButton( ButtonGroup3, "oddPages" );
- oddPages->setText( tr( "Odd" ) );
-
- ButtonGroup3Layout->addWidget( oddPages, 1, 0 );
-
- evenPages = new QRadioButton( ButtonGroup3, "evenPages" );
- evenPages->setText( tr( "Even" ) );
-
- ButtonGroup3Layout->addWidget( evenPages, 2, 0 );
-
- fromPageL = new QLabel( ButtonGroup3, "fromPageL" );
- fromPageL->setText( tr( "Starting range:" ) );
- fromPageL->setEnabled( FALSE );
-
- ButtonGroup3Layout->addWidget( fromPageL, 3, 1 );
-
- toPageL = new QLabel( ButtonGroup3, "toPageL" );
- toPageL->setText( tr( "Last page:" ) );
- toPageL->setEnabled( FALSE );
-
- ButtonGroup3Layout->addWidget( toPageL, 3, 2 );
-
- toPage = new QLineEdit( ButtonGroup3, "toPage" );
- toPage->setEnabled( FALSE );
-
- ButtonGroup3Layout->addWidget( toPage, 4, 2 );
-
- reverse = new QCheckBox( ButtonGroup3, "reverse" );
- reverse->setText( tr( "&Reverse order" ) );
-
- ButtonGroup3Layout->addWidget( reverse, 0, 2 );
-
- fromPage = new QLineEdit( ButtonGroup3, "fromPage" );
- fromPage->setEnabled( FALSE );
-
- ButtonGroup3Layout->addWidget( fromPage, 4, 1 );
-
- customPages = new QRadioButton( ButtonGroup3, "customPages" );
- customPages->setText( tr( "Pages:" ) );
-
- ButtonGroup3Layout->addWidget( customPages, 4, 0 );
- PrintDlgLayout->addWidget( ButtonGroup3 );
-
- GroupBox3 = new QGroupBox( this, "GroupBox3" );
- GroupBox3->setTitle( tr( "Copies" ) );
- GroupBox3->setColumnLayout(0, Qt::Vertical );
- GroupBox3->layout()->setSpacing( 0 );
- GroupBox3->layout()->setMargin( 0 );
- GroupBox3Layout = new QHBoxLayout( GroupBox3->layout() );
- GroupBox3Layout->setAlignment( Qt::AlignTop );
- GroupBox3Layout->setSpacing( 6 );
- GroupBox3Layout->setMargin( 11 );
-
- copies = new QSpinBox( GroupBox3, "copies" );
- copies->setMinValue( 1 );
- copies->setValue( 1 );
- GroupBox3Layout->addWidget( copies );
-
- collate = new QCheckBox( GroupBox3, "collate" );
- collate->setText( tr( "Co&llate" ) );
- collate->setEnabled( FALSE );
- GroupBox3Layout->addWidget( collate );
- QSpacerItem* spacer = new QSpacerItem( 20, 20, QSizePolicy::Expanding, QSizePolicy::Minimum );
- GroupBox3Layout->addItem( spacer );
- PrintDlgLayout->addWidget( GroupBox3 );
-
- Layout1 = new QHBoxLayout;
- Layout1->setSpacing( 6 );
- Layout1->setMargin( 0 );
- QSpacerItem* spacer_2 = new QSpacerItem( 20, 20, QSizePolicy::Expanding, QSizePolicy::Minimum );
- Layout1->addItem( spacer_2 );
-
- printPB = new QPushButton( this, "printPB" );
- printPB->setText( tr( "&Print" ) );
- Layout1->addWidget( printPB );
-
- cancelPB = new QPushButton( this, "cancelPB" );
- cancelPB->setText( tr( "&Cancel" ) );
- cancelPB->setDefault( TRUE );
- Layout1->addWidget( cancelPB );
- PrintDlgLayout->addLayout( Layout1 );
-
- // signals and slots connections
- connect( toFile, SIGNAL( toggled(bool) ), browsePB, SLOT( setEnabled(bool) ) );
- connect( toFile, SIGNAL( toggled(bool) ), fileName, SLOT( setEnabled(bool) ) );
- connect( toFile, SIGNAL( toggled(bool) ), printerName, SLOT( setDisabled(bool) ) );
- connect( printPB, SIGNAL( clicked() ), this, SLOT( print() ) );
- connect( cancelPB, SIGNAL( clicked() ), this, SLOT( cancel_adaptor() ) );
- connect( copies, SIGNAL( valueChanged(int) ), this, SLOT( set_collate(int) ) );
- connect( browsePB, SIGNAL( clicked() ), this, SLOT( browse_file() ) );
- connect( customPages, SIGNAL( toggled(bool) ), fromPage, SLOT( setEnabled(bool) ) );
- connect( customPages, SIGNAL( toggled(bool) ), fromPageL, SLOT( setEnabled(bool) ) );
- connect( customPages, SIGNAL( toggled(bool) ), toPage, SLOT( setEnabled(bool) ) );
- connect( customPages, SIGNAL( toggled(bool) ), toPageL, SLOT( setEnabled(bool) ) );
-}
-
-/*
- * Destroys the object and frees any allocated resources
- */
-PrintDlg::~PrintDlg()
-{
- // no need to delete child widgets, Qt does it all for us
-}
-
-void PrintDlg::cancel_adaptor()
-{
- qWarning( "PrintDlg::cancel_adaptor(): Not implemented yet!" );
-}
-
-void PrintDlg::enable_pagerange(int)
-{
- qWarning( "PrintDlg::enable_pagerange(int): Not implemented yet!" );
-}
-
-void PrintDlg::browse_file()
-{
- qWarning( "PrintDlg::browse_file(): Not implemented yet!" );
-}
-
-void PrintDlg::print()
-{
- qWarning( "PrintDlg::print(): Not implemented yet!" );
-}
-
-void PrintDlg::set_collate(int)
-{
- qWarning( "PrintDlg::set_collate(int): Not implemented yet!" );
-}
-
+++ /dev/null
-/****************************************************************************
-** Form interface generated from reading ui file 'printdlg.ui'
-**
-** Created: Sun Feb 4 23:02:16 2001
-** by: The User Interface Compiler (uic)
-**
-** WARNING! All changes made in this file will be lost!
-****************************************************************************/
-#ifndef PRINTDLG_H
-#define PRINTDLG_H
-
-#include <qvariant.h>
-#include <qdialog.h>
-class QVBoxLayout;
-class QHBoxLayout;
-class QGridLayout;
-class QButtonGroup;
-class QCheckBox;
-class QGroupBox;
-class QLabel;
-class QLineEdit;
-class QPushButton;
-class QRadioButton;
-class QSpinBox;
-
-class PrintDlg : public QDialog
-{
- Q_OBJECT
-
-public:
- PrintDlg( QWidget* parent = 0, const char* name = 0, bool modal = FALSE, WFlags fl = 0 );
- ~PrintDlg();
-
- QButtonGroup* ButtonGroup1;
- QRadioButton* toPrinter;
- QRadioButton* toFile;
- QLineEdit* printerName;
- QLineEdit* fileName;
- QPushButton* browsePB;
- QButtonGroup* ButtonGroup3;
- QRadioButton* allPages;
- QRadioButton* oddPages;
- QRadioButton* evenPages;
- QLabel* fromPageL;
- QLabel* toPageL;
- QLineEdit* toPage;
- QCheckBox* reverse;
- QLineEdit* fromPage;
- QRadioButton* customPages;
- QGroupBox* GroupBox3;
- QSpinBox* copies;
- QCheckBox* collate;
- QPushButton* printPB;
- QPushButton* cancelPB;
-
-protected slots:
- virtual void cancel_adaptor();
- virtual void enable_pagerange(int);
- virtual void browse_file();
- virtual void print();
- virtual void set_collate(int);
-
-protected:
- QVBoxLayout* PrintDlgLayout;
- QGridLayout* ButtonGroup1Layout;
- QGridLayout* ButtonGroup3Layout;
- QHBoxLayout* GroupBox3Layout;
- QHBoxLayout* Layout1;
-};
-
-#endif // PRINTDLG_H
+++ /dev/null
-<!DOCTYPE UI><UI>
-<class>PrintDlg</class>
-<widget>
- <class>QDialog</class>
- <property stdset="1">
- <name>name</name>
- <cstring>PrintDlg</cstring>
- </property>
- <property stdset="1">
- <name>geometry</name>
- <rect>
- <x>0</x>
- <y>0</y>
- <width>363</width>
- <height>342</height>
- </rect>
- </property>
- <property stdset="1">
- <name>caption</name>
- <string>Form1</string>
- </property>
- <vbox>
- <property stdset="1">
- <name>margin</name>
- <number>11</number>
- </property>
- <property stdset="1">
- <name>spacing</name>
- <number>6</number>
- </property>
- <widget>
- <class>QButtonGroup</class>
- <property stdset="1">
- <name>name</name>
- <cstring>ButtonGroup1</cstring>
- </property>
- <property stdset="1">
- <name>title</name>
- <string>Print Destination</string>
- </property>
- <property>
- <name>layoutSpacing</name>
- </property>
- <grid>
- <property stdset="1">
- <name>margin</name>
- <number>11</number>
- </property>
- <property stdset="1">
- <name>spacing</name>
- <number>3</number>
- </property>
- <widget row="0" column="0" >
- <class>QRadioButton</class>
- <property stdset="1">
- <name>name</name>
- <cstring>toPrinter</cstring>
- </property>
- <property stdset="1">
- <name>text</name>
- <string>&Printer</string>
- </property>
- <property stdset="1">
- <name>checked</name>
- <bool>true</bool>
- </property>
- </widget>
- <widget row="1" column="0" >
- <class>QRadioButton</class>
- <property stdset="1">
- <name>name</name>
- <cstring>toFile</cstring>
- </property>
- <property stdset="1">
- <name>text</name>
- <string>&File</string>
- </property>
- </widget>
- <widget row="0" column="1" >
- <class>QLineEdit</class>
- <property stdset="1">
- <name>name</name>
- <cstring>printerName</cstring>
- </property>
- </widget>
- <widget row="1" column="1" >
- <class>QLineEdit</class>
- <property stdset="1">
- <name>name</name>
- <cstring>fileName</cstring>
- </property>
- <property stdset="1">
- <name>enabled</name>
- <bool>false</bool>
- </property>
- </widget>
- <widget row="1" column="2" >
- <class>QPushButton</class>
- <property stdset="1">
- <name>name</name>
- <cstring>browsePB</cstring>
- </property>
- <property stdset="1">
- <name>text</name>
- <string>&Browse...</string>
- </property>
- <property stdset="1">
- <name>enabled</name>
- <bool>false</bool>
- </property>
- </widget>
- </grid>
- </widget>
- <widget>
- <class>QButtonGroup</class>
- <property stdset="1">
- <name>name</name>
- <cstring>ButtonGroup3</cstring>
- </property>
- <property stdset="1">
- <name>title</name>
- <string>Pages</string>
- </property>
- <property>
- <name>layoutSpacing</name>
- </property>
- <grid>
- <property stdset="1">
- <name>margin</name>
- <number>11</number>
- </property>
- <property stdset="1">
- <name>spacing</name>
- <number>3</number>
- </property>
- <widget row="0" column="0" >
- <class>QRadioButton</class>
- <property stdset="1">
- <name>name</name>
- <cstring>allPages</cstring>
- </property>
- <property stdset="1">
- <name>text</name>
- <string>All</string>
- </property>
- <property stdset="1">
- <name>checked</name>
- <bool>true</bool>
- </property>
- </widget>
- <widget row="1" column="0" >
- <class>QRadioButton</class>
- <property stdset="1">
- <name>name</name>
- <cstring>oddPages</cstring>
- </property>
- <property stdset="1">
- <name>text</name>
- <string>Odd</string>
- </property>
- </widget>
- <widget row="2" column="0" >
- <class>QRadioButton</class>
- <property stdset="1">
- <name>name</name>
- <cstring>evenPages</cstring>
- </property>
- <property stdset="1">
- <name>text</name>
- <string>Even</string>
- </property>
- </widget>
- <widget row="3" column="1" >
- <class>QLabel</class>
- <property stdset="1">
- <name>name</name>
- <cstring>fromPageL</cstring>
- </property>
- <property stdset="1">
- <name>text</name>
- <string>Starting range:</string>
- </property>
- <property stdset="1">
- <name>enabled</name>
- <bool>false</bool>
- </property>
- </widget>
- <widget row="3" column="2" >
- <class>QLabel</class>
- <property stdset="1">
- <name>name</name>
- <cstring>toPageL</cstring>
- </property>
- <property stdset="1">
- <name>text</name>
- <string>Last page:</string>
- </property>
- <property stdset="1">
- <name>enabled</name>
- <bool>false</bool>
- </property>
- </widget>
- <widget row="4" column="2" >
- <class>QLineEdit</class>
- <property stdset="1">
- <name>name</name>
- <cstring>toPage</cstring>
- </property>
- <property stdset="1">
- <name>enabled</name>
- <bool>false</bool>
- </property>
- </widget>
- <widget row="0" column="2" >
- <class>QCheckBox</class>
- <property stdset="1">
- <name>name</name>
- <cstring>reverse</cstring>
- </property>
- <property stdset="1">
- <name>text</name>
- <string>&Reverse order</string>
- </property>
- </widget>
- <widget row="4" column="1" >
- <class>QLineEdit</class>
- <property stdset="1">
- <name>name</name>
- <cstring>fromPage</cstring>
- </property>
- <property stdset="1">
- <name>enabled</name>
- <bool>false</bool>
- </property>
- </widget>
- <widget row="4" column="0" >
- <class>QRadioButton</class>
- <property stdset="1">
- <name>name</name>
- <cstring>customPages</cstring>
- </property>
- <property stdset="1">
- <name>text</name>
- <string>Pages:</string>
- </property>
- </widget>
- </grid>
- </widget>
- <widget>
- <class>QGroupBox</class>
- <property stdset="1">
- <name>name</name>
- <cstring>GroupBox3</cstring>
- </property>
- <property stdset="1">
- <name>title</name>
- <string>Copies</string>
- </property>
- <hbox>
- <property stdset="1">
- <name>margin</name>
- <number>11</number>
- </property>
- <property stdset="1">
- <name>spacing</name>
- <number>6</number>
- </property>
- <widget>
- <class>QSpinBox</class>
- <property stdset="1">
- <name>name</name>
- <cstring>copies</cstring>
- </property>
- <property stdset="1">
- <name>minValue</name>
- <number>1</number>
- </property>
- <property stdset="1">
- <name>value</name>
- <number>1</number>
- </property>
- </widget>
- <widget>
- <class>QCheckBox</class>
- <property stdset="1">
- <name>name</name>
- <cstring>collate</cstring>
- </property>
- <property stdset="1">
- <name>text</name>
- <string>Co&llate</string>
- </property>
- <property stdset="1">
- <name>enabled</name>
- <bool>false</bool>
- </property>
- </widget>
- <spacer>
- <property>
- <name>name</name>
- <cstring>Spacer1_2</cstring>
- </property>
- <property stdset="1">
- <name>orientation</name>
- <enum>Horizontal</enum>
- </property>
- <property stdset="1">
- <name>sizeType</name>
- <enum>Expanding</enum>
- </property>
- <property>
- <name>sizeHint</name>
- <size>
- <width>20</width>
- <height>20</height>
- </size>
- </property>
- </spacer>
- </hbox>
- </widget>
- <widget>
- <class>QLayoutWidget</class>
- <property stdset="1">
- <name>name</name>
- <cstring>Layout1</cstring>
- </property>
- <hbox>
- <property stdset="1">
- <name>margin</name>
- <number>0</number>
- </property>
- <property stdset="1">
- <name>spacing</name>
- <number>6</number>
- </property>
- <spacer>
- <property>
- <name>name</name>
- <cstring>Spacer1</cstring>
- </property>
- <property stdset="1">
- <name>orientation</name>
- <enum>Horizontal</enum>
- </property>
- <property stdset="1">
- <name>sizeType</name>
- <enum>Expanding</enum>
- </property>
- <property>
- <name>sizeHint</name>
- <size>
- <width>20</width>
- <height>20</height>
- </size>
- </property>
- </spacer>
- <widget>
- <class>QPushButton</class>
- <property stdset="1">
- <name>name</name>
- <cstring>printPB</cstring>
- </property>
- <property stdset="1">
- <name>text</name>
- <string>&Print</string>
- </property>
- </widget>
- <widget>
- <class>QPushButton</class>
- <property stdset="1">
- <name>name</name>
- <cstring>cancelPB</cstring>
- </property>
- <property stdset="1">
- <name>text</name>
- <string>&Cancel</string>
- </property>
- <property stdset="1">
- <name>default</name>
- <bool>true</bool>
- </property>
- </widget>
- </hbox>
- </widget>
- </vbox>
-</widget>
-<connections>
- <connection>
- <sender>toFile</sender>
- <signal>toggled(bool)</signal>
- <receiver>browsePB</receiver>
- <slot>setEnabled(bool)</slot>
- </connection>
- <connection>
- <sender>toFile</sender>
- <signal>toggled(bool)</signal>
- <receiver>fileName</receiver>
- <slot>setEnabled(bool)</slot>
- </connection>
- <connection>
- <sender>toFile</sender>
- <signal>toggled(bool)</signal>
- <receiver>printerName</receiver>
- <slot>setDisabled(bool)</slot>
- </connection>
- <connection>
- <sender>printPB</sender>
- <signal>clicked()</signal>
- <receiver>PrintDlg</receiver>
- <slot>print()</slot>
- </connection>
- <connection>
- <sender>cancelPB</sender>
- <signal>clicked()</signal>
- <receiver>PrintDlg</receiver>
- <slot>cancel_adaptor()</slot>
- </connection>
- <connection>
- <sender>copies</sender>
- <signal>valueChanged(int)</signal>
- <receiver>PrintDlg</receiver>
- <slot>set_collate(int)</slot>
- </connection>
- <connection>
- <sender>browsePB</sender>
- <signal>clicked()</signal>
- <receiver>PrintDlg</receiver>
- <slot>browse_file()</slot>
- </connection>
- <connection>
- <sender>customPages</sender>
- <signal>toggled(bool)</signal>
- <receiver>fromPage</receiver>
- <slot>setEnabled(bool)</slot>
- </connection>
- <connection>
- <sender>customPages</sender>
- <signal>toggled(bool)</signal>
- <receiver>fromPageL</receiver>
- <slot>setEnabled(bool)</slot>
- </connection>
- <connection>
- <sender>customPages</sender>
- <signal>toggled(bool)</signal>
- <receiver>toPage</receiver>
- <slot>setEnabled(bool)</slot>
- </connection>
- <connection>
- <sender>customPages</sender>
- <signal>toggled(bool)</signal>
- <receiver>toPageL</receiver>
- <slot>setEnabled(bool)</slot>
- </connection>
- <slot access="protected">cancel_adaptor()</slot>
- <slot access="protected">enable_pagerange(int)</slot>
- <slot access="protected">browse_file()</slot>
- <slot access="protected">print()</slot>
- <slot access="protected">set_collate(int)</slot>
-</connections>
-</UI>
+++ /dev/null
-/**
- * \file printdlgimpl.C
- * Copyright 2001 LyX Team
- * see the file COPYING
- *
- * \author John Levon, moz@compsoc.man.ac.uk
- * \author Edwin Leuven, leuven@fee.uva.nl
- */
-
-#include "qfiledialog.h"
-#include "qcheckbox.h"
-#include "qlabel.h"
-#include "qlineedit.h"
-#include "qpushbutton.h"
-#include "qradiobutton.h"
-#include "qspinbox.h"
-
-#include "printdlgimpl.h"
-#include "FormPrint.h"
-
-#include <config.h>
-
-#include "support/filetools.h"
-#include "support/lstrings.h"
-#include "lyxrc.h"
-#include "PrinterParams.h"
-
-#include <gettext.h>
-#include <cstring>
-
-
-PrintDlgImpl::PrintDlgImpl( FormPrint *f, QWidget* parent, const char* name, bool modal, WFlags fl )
- : PrintDlg( parent, name, modal, fl ), form_(f)
-{
- setCaption(name);
-}
-
-
-PrintDlgImpl::~PrintDlgImpl()
-{
- // no need to delete child widgets, Qt does it all for us
-}
-
-
-const char * PrintDlgImpl::getFrom() {
- return fromPage->text();
-}
-
-
-const char * PrintDlgImpl::getTo() {
- return toPage->text();
-}
-
-
-PrinterParams::Target PrintDlgImpl::getTarget() {
- if (toPrinter->isChecked())
- return PrinterParams::PRINTER;
- else
- return PrinterParams::FILE;
-}
-
-
-const char * PrintDlgImpl::getPrinter() {
- return printerName->text();
-}
-
-const char * PrintDlgImpl::getFile() {
- return fileName->text();
-}
-
-PrinterParams::WhichPages PrintDlgImpl::getWhichPages() {
- if (oddPages->isChecked())
- return PrinterParams::ODD;
- else if (evenPages->isChecked())
- return PrinterParams::EVEN;
- else
- return PrinterParams::ALL;
-}
-
-bool PrintDlgImpl::getReverse() {
- return reverse->isChecked();
-}
-
-bool PrintDlgImpl::getSort() {
- return collate->isChecked();
-}
-
-const char * PrintDlgImpl::getCount() {
- return copies->text();
-}
-
-void PrintDlgImpl::setTarget(PrinterParams::Target t) {
- toPrinter->setChecked(t==PrinterParams::PRINTER);
- toFile->setChecked(t!=PrinterParams::PRINTER);
-}
-
-void PrintDlgImpl::setPrinter(const char * name) {
- printerName->setText(name);
-}
-
-void PrintDlgImpl::setFile(const char * name) {
- fileName->setText(name);
-}
-
-void PrintDlgImpl::setWhichPages(PrinterParams::WhichPages wp) {
- switch (wp) {
- case PrinterParams::ALL:
- allPages->setChecked(true);
- break;
- case PrinterParams::EVEN:
- evenPages->setChecked(true);
- break;
- case PrinterParams::ODD:
- oddPages->setChecked(true);
- break;
- }
-}
-
-
-void PrintDlgImpl::setReverse(bool on) {
- reverse->setChecked(on);
-}
-
-
-void PrintDlgImpl::setSort(bool on) {
- collate->setChecked(on);
-}
-
-
-void PrintDlgImpl::setCount(int num) {
- copies->setValue(num);
- collate->setEnabled(num > 1);
-}
-
-
-void PrintDlgImpl::setFrom(const char * text) {
- fromPage->setText(text);
-}
-
-
-void PrintDlgImpl::setTo(const char * text) {
- toPage->setText(text);
-}
-
-
-void PrintDlgImpl::browse_file()
-{
- QString d( OnlyPath(tostr(fileName->text())).c_str() );
- QString s( QFileDialog::getOpenFileName( d, "PostScript Files (*.ps)", this ) );
- if (!s.isNull())
- fileName->setText(s);
-}
-
-
-void PrintDlgImpl::print()
-{
- form_->print();
- form_->close();
- hide();
-}
-
-
-void PrintDlgImpl::cancel_adaptor()
-{
- form_->close();
- hide();
-}
-
-
-void PrintDlgImpl::set_collate(int copies)
-{
- collate->setEnabled(copies > 1);
-}
+++ /dev/null
-/**
- * \file printdlgimpl.h
- * Copyright 2001 LyX Team
- * see the file COPYING
- *
- * \author John Levon, moz@compsoc.man.ac.uk
- * \author Edwin Leuven, leuven@fee.uva.nl
- */
-
-#ifndef PRINTDLGIMPL_H
-#define PRINTDLGIMPL_H
-
-#include <config.h>
-
-#include "printdlg.h"
-#include "lyxrc.h"
-#include "PrinterParams.h"
-
-class FormPrint;
-
-class PrintDlgImpl : public PrintDlg
-{
- Q_OBJECT
-
-public:
- PrintDlgImpl( FormPrint *f, QWidget* parent = 0, const char* name = 0, bool modal = FALSE, WFlags fl = 0 );
- ~PrintDlgImpl();
-
- // FIXME: these should return std::string !
- const char * getFrom();
- const char * getTo();
- const char * getPrinter();
- const char * getFile();
- const char * getCount();
- PrinterParams::Target getTarget();
- PrinterParams::WhichPages getWhichPages();
- bool getReverse();
- bool getSort();
- void setFrom(const char *);
- void setTo(const char *);
- void setPrinter(const char *);
- void setFile(const char *);
- void setCount(int);
- void setTarget(PrinterParams::Target);
- void setWhichPages(PrinterParams::WhichPages);
- void setReverse(bool);
- void setSort(bool);
-
-
-protected slots:
- void cancel_adaptor();
- void browse_file();
- void print();
- void set_collate(int);
-
-private:
- FormPrint * form_;
-
-};
-
-#endif // PRINTDLGIMPL_H
// -*- C++ -*-
-/* This file is part of
- * ======================================================
- *
- * LyX, The Document Processor
- *
- * Copyright 2000-2001 The LyX Team.
- *
- * ======================================================
- *
+/**
* \file qt2BC.h
+ * Copyright 2001 the LyX Team
+ * Read the file COPYING
+ *
* \author Allan Rae, rae@lyx.org
* \author Angus Leeming, a.leeming@ic.ac.uk
* \author Baruch Even, baruch.even@writeme.com
+++ /dev/null
-/****************************************************************************
-** Form implementation generated from reading ui file 'searchdlg.ui'
-**
-** Created: Mon Mar 26 21:50:02 2001
-** by: The User Interface Compiler (uic)
-**
-** WARNING! All changes made in this file will be lost!
-****************************************************************************/
-#include "searchdlg.h"
-
-#include <config.h>
-#include <qcheckbox.h>
-#include <qcombobox.h>
-#include <qlabel.h>
-#include <qpushbutton.h>
-#include <qlayout.h>
-#include <qvariant.h>
-#include <qtooltip.h>
-#include <qwhatsthis.h>
-
-/*
- * Constructs a SearchDlg which is a child of 'parent', with the
- * name 'name' and widget flags set to 'f'
- *
- * The dialog will by default be modeless, unless you set 'modal' to
- * TRUE to construct a modal dialog.
- */
-SearchDlg::SearchDlg( QWidget* parent, const char* name, bool modal, WFlags fl )
- : QDialog( parent, name, modal, fl )
-{
- if ( !name )
- setName( "SearchDlg" );
- resize( 388, 168 );
- setCaption( tr( "Form1" ) );
- setSizeGripEnabled( TRUE );
- SearchDlgLayout = new QGridLayout( this );
- SearchDlgLayout->setSpacing( 6 );
- SearchDlgLayout->setMargin( 11 );
-
- findStrLabel = new QLabel( this, "findStrLabel" );
- findStrLabel->setText( tr( "Find:" ) );
-
- SearchDlgLayout->addWidget( findStrLabel, 0, 0 );
-
- find = new QComboBox( FALSE, this, "find" );
- find->setSizePolicy( QSizePolicy( (QSizePolicy::SizeType)3, (QSizePolicy::SizeType)0, find->sizePolicy().hasHeightForWidth() ) );
- find->setFocusPolicy( QComboBox::StrongFocus );
- find->setEditable( TRUE );
- find->setDuplicatesEnabled( TRUE );
-
- SearchDlgLayout->addMultiCellWidget( find, 0, 0, 1, 2 );
-
- replaceLabel = new QLabel( this, "replaceLabel" );
- replaceLabel->setText( tr( "Replace with:" ) );
-
- SearchDlgLayout->addWidget( replaceLabel, 1, 0 );
-
- replace = new QComboBox( FALSE, this, "replace" );
- replace->setSizePolicy( QSizePolicy( (QSizePolicy::SizeType)3, (QSizePolicy::SizeType)0, replace->sizePolicy().hasHeightForWidth() ) );
- replace->setEditable( TRUE );
-
- SearchDlgLayout->addMultiCellWidget( replace, 1, 1, 1, 2 );
-
- caseSensitive = new QCheckBox( this, "caseSensitive" );
- caseSensitive->setText( tr( "&Case sensitive" ) );
-
- SearchDlgLayout->addMultiCellWidget( caseSensitive, 2, 2, 0, 1 );
-
- matchWord = new QCheckBox( this, "matchWord" );
- matchWord->setText( tr( "Match whole words onl&y" ) );
-
- SearchDlgLayout->addMultiCellWidget( matchWord, 3, 4, 0, 1 );
- QSpacerItem* spacer = new QSpacerItem( 20, 20, QSizePolicy::Expanding, QSizePolicy::Minimum );
- SearchDlgLayout->addItem( spacer, 2, 2 );
- QSpacerItem* spacer_2 = new QSpacerItem( 20, 20, QSizePolicy::Minimum, QSizePolicy::Expanding );
- SearchDlgLayout->addMultiCell( spacer_2, 6, 6, 0, 1 );
- QSpacerItem* spacer_3 = new QSpacerItem( 20, 20, QSizePolicy::Minimum, QSizePolicy::Expanding );
- SearchDlgLayout->addItem( spacer_3, 6, 3 );
-
- findPB = new QPushButton( this, "findPB" );
- findPB->setText( tr( "Find &Next" ) );
-
- SearchDlgLayout->addWidget( findPB, 0, 3 );
-
- replacePB = new QPushButton( this, "replacePB" );
- replacePB->setText( tr( "&Replace" ) );
-
- SearchDlgLayout->addWidget( replacePB, 1, 3 );
-
- replaceAllPB = new QPushButton( this, "replaceAllPB" );
- replaceAllPB->setText( tr( "Replace &All " ) );
-
- SearchDlgLayout->addMultiCellWidget( replaceAllPB, 2, 3, 3, 3 );
-
- searchBack = new QCheckBox( this, "searchBack" );
- searchBack->setText( tr( "Search &backwards" ) );
-
- SearchDlgLayout->addMultiCellWidget( searchBack, 5, 5, 0, 1 );
-
- cancelPB = new QPushButton( this, "cancelPB" );
- cancelPB->setText( tr( "&Cancel" ) );
-
- SearchDlgLayout->addMultiCellWidget( cancelPB, 4, 5, 3, 3 );
-
- // signals and slots connections
- connect( findPB, SIGNAL( clicked() ), this, SLOT( Find() ) );
- connect( replacePB, SIGNAL( clicked() ), this, SLOT( Replace() ) );
- connect( replaceAllPB, SIGNAL( clicked() ), this, SLOT( ReplaceAll() ) );
- connect( cancelPB, SIGNAL( clicked() ), this, SLOT( cancel_adaptor() ) );
-
- // tab order
- setTabOrder( find, replace );
- setTabOrder( replace, caseSensitive );
- setTabOrder( caseSensitive, matchWord );
- setTabOrder( matchWord, searchBack );
- setTabOrder( searchBack, findPB );
- setTabOrder( findPB, replacePB );
- setTabOrder( replacePB, replaceAllPB );
- setTabOrder( replaceAllPB, cancelPB );
-}
-
-/*
- * Destroys the object and frees any allocated resources
- */
-SearchDlg::~SearchDlg()
-{
- // no need to delete child widgets, Qt does it all for us
-}
-
-void SearchDlg::Find()
-{
- qWarning( "SearchDlg::Find(): Not implemented yet!" );
-}
-
-void SearchDlg::Replace()
-{
- qWarning( "SearchDlg::Replace(): Not implemented yet!" );
-}
-
-void SearchDlg::ReplaceAll()
-{
- qWarning( "SearchDlg::ReplaceAll(): Not implemented yet!" );
-}
-
-void SearchDlg::cancel_adaptor()
-{
- qWarning( "SearchDlg::cancel_adaptor(): Not implemented yet!" );
-}
-
+++ /dev/null
-/****************************************************************************
-** Form interface generated from reading ui file 'searchdlg.ui'
-**
-** Created: Mon Mar 26 21:48:19 2001
-** by: The User Interface Compiler (uic)
-**
-** WARNING! All changes made in this file will be lost!
-****************************************************************************/
-#ifndef SEARCHDLG_H
-#define SEARCHDLG_H
-
-#include <qvariant.h>
-#include <qdialog.h>
-class QVBoxLayout;
-class QHBoxLayout;
-class QGridLayout;
-class QCheckBox;
-class QComboBox;
-class QLabel;
-class QPushButton;
-
-class SearchDlg : public QDialog
-{
- Q_OBJECT
-
-public:
- SearchDlg( QWidget* parent = 0, const char* name = 0, bool modal = FALSE, WFlags fl = 0 );
- ~SearchDlg();
-
- QLabel* findStrLabel;
- QComboBox* find;
- QLabel* replaceLabel;
- QComboBox* replace;
- QCheckBox* caseSensitive;
- QCheckBox* matchWord;
- QPushButton* findPB;
- QPushButton* replacePB;
- QPushButton* replaceAllPB;
- QCheckBox* searchBack;
- QPushButton* cancelPB;
-
-protected slots:
- virtual void Find();
- virtual void Replace();
- virtual void ReplaceAll();
- virtual void cancel_adaptor();
-
-protected:
- QGridLayout* SearchDlgLayout;
-};
-
-#endif // SEARCHDLG_H
+++ /dev/null
-<!DOCTYPE UI><UI>
-<class>SearchDlg</class>
-<include location="global">config.h</include>
-<widget>
- <class>QDialog</class>
- <property stdset="1">
- <name>name</name>
- <cstring>SearchDlg</cstring>
- </property>
- <property stdset="1">
- <name>geometry</name>
- <rect>
- <x>0</x>
- <y>0</y>
- <width>388</width>
- <height>168</height>
- </rect>
- </property>
- <property stdset="1">
- <name>caption</name>
- <string>Form1</string>
- </property>
- <property stdset="1">
- <name>sizeGripEnabled</name>
- <bool>true</bool>
- </property>
- <property>
- <name>layoutMargin</name>
- </property>
- <property>
- <name>layoutSpacing</name>
- </property>
- <grid>
- <property stdset="1">
- <name>margin</name>
- <number>11</number>
- </property>
- <property stdset="1">
- <name>spacing</name>
- <number>6</number>
- </property>
- <widget row="0" column="0" >
- <class>QLabel</class>
- <property stdset="1">
- <name>name</name>
- <cstring>findStrLabel</cstring>
- </property>
- <property stdset="1">
- <name>text</name>
- <string>Find:</string>
- </property>
- </widget>
- <widget row="0" column="1" rowspan="1" colspan="2" >
- <class>QComboBox</class>
- <property stdset="1">
- <name>name</name>
- <cstring>find</cstring>
- </property>
- <property stdset="1">
- <name>sizePolicy</name>
- <sizepolicy>
- <hsizetype>3</hsizetype>
- <vsizetype>0</vsizetype>
- </sizepolicy>
- </property>
- <property stdset="1">
- <name>focusPolicy</name>
- <enum>StrongFocus</enum>
- </property>
- <property stdset="1">
- <name>editable</name>
- <bool>true</bool>
- </property>
- <property stdset="1">
- <name>duplicatesEnabled</name>
- <bool>true</bool>
- </property>
- </widget>
- <widget row="1" column="0" >
- <class>QLabel</class>
- <property stdset="1">
- <name>name</name>
- <cstring>replaceLabel</cstring>
- </property>
- <property stdset="1">
- <name>text</name>
- <string>Replace with:</string>
- </property>
- </widget>
- <widget row="1" column="1" rowspan="1" colspan="2" >
- <class>QComboBox</class>
- <property stdset="1">
- <name>name</name>
- <cstring>replace</cstring>
- </property>
- <property stdset="1">
- <name>sizePolicy</name>
- <sizepolicy>
- <hsizetype>3</hsizetype>
- <vsizetype>0</vsizetype>
- </sizepolicy>
- </property>
- <property stdset="1">
- <name>editable</name>
- <bool>true</bool>
- </property>
- </widget>
- <widget row="2" column="0" rowspan="1" colspan="2" >
- <class>QCheckBox</class>
- <property stdset="1">
- <name>name</name>
- <cstring>caseSensitive</cstring>
- </property>
- <property stdset="1">
- <name>text</name>
- <string>&Case sensitive</string>
- </property>
- </widget>
- <widget row="3" column="0" rowspan="2" colspan="2" >
- <class>QCheckBox</class>
- <property stdset="1">
- <name>name</name>
- <cstring>matchWord</cstring>
- </property>
- <property stdset="1">
- <name>text</name>
- <string>Match whole words onl&y</string>
- </property>
- </widget>
- <spacer row="2" column="2" >
- <property>
- <name>name</name>
- <cstring>HSpacer1</cstring>
- </property>
- <property stdset="1">
- <name>orientation</name>
- <enum>Horizontal</enum>
- </property>
- <property stdset="1">
- <name>sizeType</name>
- <enum>Expanding</enum>
- </property>
- <property>
- <name>sizeHint</name>
- <size>
- <width>20</width>
- <height>20</height>
- </size>
- </property>
- </spacer>
- <spacer row="6" column="0" rowspan="1" colspan="2" >
- <property>
- <name>name</name>
- <cstring>VSpacer1</cstring>
- </property>
- <property stdset="1">
- <name>orientation</name>
- <enum>Vertical</enum>
- </property>
- <property stdset="1">
- <name>sizeType</name>
- <enum>Expanding</enum>
- </property>
- <property>
- <name>sizeHint</name>
- <size>
- <width>20</width>
- <height>20</height>
- </size>
- </property>
- </spacer>
- <spacer row="6" column="3" >
- <property>
- <name>name</name>
- <cstring>VSpacer2</cstring>
- </property>
- <property stdset="1">
- <name>orientation</name>
- <enum>Vertical</enum>
- </property>
- <property stdset="1">
- <name>sizeType</name>
- <enum>Expanding</enum>
- </property>
- <property>
- <name>sizeHint</name>
- <size>
- <width>20</width>
- <height>20</height>
- </size>
- </property>
- </spacer>
- <widget row="0" column="3" >
- <class>QPushButton</class>
- <property stdset="1">
- <name>name</name>
- <cstring>findPB</cstring>
- </property>
- <property stdset="1">
- <name>text</name>
- <string>Find &Next</string>
- </property>
- </widget>
- <widget row="1" column="3" >
- <class>QPushButton</class>
- <property stdset="1">
- <name>name</name>
- <cstring>replacePB</cstring>
- </property>
- <property stdset="1">
- <name>text</name>
- <string>&Replace</string>
- </property>
- </widget>
- <widget row="2" column="3" rowspan="2" colspan="1" >
- <class>QPushButton</class>
- <property stdset="1">
- <name>name</name>
- <cstring>replaceAllPB</cstring>
- </property>
- <property stdset="1">
- <name>text</name>
- <string>Replace &All </string>
- </property>
- </widget>
- <widget row="5" column="0" rowspan="1" colspan="2" >
- <class>QCheckBox</class>
- <property stdset="1">
- <name>name</name>
- <cstring>searchBack</cstring>
- </property>
- <property stdset="1">
- <name>text</name>
- <string>Search &backwards</string>
- </property>
- </widget>
- <widget row="4" column="3" rowspan="2" colspan="1" >
- <class>QPushButton</class>
- <property stdset="1">
- <name>name</name>
- <cstring>cancelPB</cstring>
- </property>
- <property stdset="1">
- <name>text</name>
- <string>&Cancel</string>
- </property>
- </widget>
- </grid>
-</widget>
-<connections>
- <connection>
- <sender>findPB</sender>
- <signal>clicked()</signal>
- <receiver>SearchDlg</receiver>
- <slot>Find()</slot>
- </connection>
- <connection>
- <sender>replacePB</sender>
- <signal>clicked()</signal>
- <receiver>SearchDlg</receiver>
- <slot>Replace()</slot>
- </connection>
- <connection>
- <sender>replaceAllPB</sender>
- <signal>clicked()</signal>
- <receiver>SearchDlg</receiver>
- <slot>ReplaceAll()</slot>
- </connection>
- <connection>
- <sender>cancelPB</sender>
- <signal>clicked()</signal>
- <receiver>SearchDlg</receiver>
- <slot>cancel_adaptor()</slot>
- </connection>
- <slot access="protected">Find()</slot>
- <slot access="protected">Replace()</slot>
- <slot access="protected">ReplaceAll()</slot>
- <slot access="protected">cancel_adaptor()</slot>
-</connections>
-<tabstops>
- <tabstop>find</tabstop>
- <tabstop>replace</tabstop>
- <tabstop>caseSensitive</tabstop>
- <tabstop>matchWord</tabstop>
- <tabstop>searchBack</tabstop>
- <tabstop>findPB</tabstop>
- <tabstop>replacePB</tabstop>
- <tabstop>replaceAllPB</tabstop>
- <tabstop>cancelPB</tabstop>
-</tabstops>
-</UI>
+++ /dev/null
-/**
- * \file searchdlgimpl.h
- * Copyright 2001 The LyX Team.
- * See the file COPYING.
- *
- * \author Edwin Leuven
- */
-
-#include <config.h>
-
-#include "searchdlgimpl.h"
-
-#include <qpushbutton.h>
-#include <qcombobox.h>
-#include <qcheckbox.h>
-#include <qlabel.h>
-
-
-SearchDlgImpl::SearchDlgImpl(FormSearch* form, QWidget* parent, const char* name, bool modal, WFlags fl )
- : SearchDlg( parent, name, modal, fl ), form_(form)
-{
- setCaption(name);
-}
-
-
-SearchDlgImpl::~SearchDlgImpl()
-{
-}
-
-
-void SearchDlgImpl::closeEvent(QCloseEvent * e)
-{
- form_->close();
- e->accept();
-}
-
-
-void SearchDlgImpl::setReadOnly(bool readonly)
-{
- replace->setEnabled(!readonly);
- replaceLabel->setEnabled(!readonly);
- replacePB->setEnabled(!readonly);
- replaceAllPB->setEnabled(!readonly);
-}
-
-
-void SearchDlgImpl::Find()
-{
- form_->find(tostr(find->currentText()).c_str(),
- caseSensitive->isChecked(),
- matchWord->isChecked(),
- !searchBack->isChecked());
-}
-
-
-void SearchDlgImpl::Replace(bool replaceall)
-{
- form_->replace(tostr(find->currentText()).c_str(),
- tostr(replace->currentText()).c_str(),
- caseSensitive->isChecked(),
- matchWord->isChecked(),
- !searchBack->isChecked(),
- replaceall);
-}
+++ /dev/null
-#ifndef SEARCHDLGIMPL_H
-#define SEARCHDLGIMPL_H
-
-#include <config.h>
-
-#include "searchdlg.h"
-#include "FormSearch.h"
-
-class QCloseEvent;
-
-class SearchDlgImpl : public SearchDlg
-{
- Q_OBJECT
-
-public:
- SearchDlgImpl(FormSearch * form, QWidget* parent = 0, const char* name = 0, bool modal = FALSE, WFlags fl = 0 );
-
- ~SearchDlgImpl();
-
- void setReadOnly(bool);
-
- void Replace(bool replaceall = false);
-
-protected:
-
- void closeEvent(QCloseEvent * e);
-
-private:
-
- FormSearch * form_;
-
-protected slots:
-
- void Find();
-
- void Replace() {
- Replace(false);
- };
-
- void ReplaceAll() {
- Replace(true);
- };
-
- void cancel_adaptor() {
- form_->close();
- hide();
- }
-
-};
-
-#endif // SEARCHDLGIMPL_H
+++ /dev/null
-/****************************************************************************
-** Form implementation generated from reading ui file 'tabularcreatedlg.ui'
-**
-** Created: Tue Feb 6 01:41:28 2001
-** by: The User Interface Compiler (uic)
-**
-** WARNING! All changes made in this file will be lost!
-****************************************************************************/
-#include "tabularcreatedlg.h"
-
-#include <qlabel.h>
-#include <qpushbutton.h>
-#include <qspinbox.h>
-#include "emptytable.h"
-#include <qlayout.h>
-#include <qvariant.h>
-#include <qtooltip.h>
-#include <qwhatsthis.h>
-
-/*
- * Constructs a InsertTabularDlg which is a child of 'parent', with the
- * name 'name' and widget flags set to 'f'
- *
- * The dialog will by default be modeless, unless you set 'modal' to
- * TRUE to construct a modal dialog.
- */
-InsertTabularDlg::InsertTabularDlg( QWidget* parent, const char* name, bool modal, WFlags fl )
- : QDialog( parent, name, modal, fl )
-{
- if ( !name )
- setName( "InsertTabularDlg" );
- resize( 245, 235 );
- setSizeGripEnabled( TRUE );
- setCaption( tr( "Form1" ) );
- InsertTabularDlgLayout = new QVBoxLayout( this );
- InsertTabularDlgLayout->setSpacing( 6 );
- InsertTabularDlgLayout->setMargin( 11 );
-
- Layout1 = new QHBoxLayout;
- Layout1->setSpacing( 6 );
- Layout1->setMargin( 0 );
-
- rowsL = new QLabel( this, "rowsL" );
- rowsL->setText( tr( "Rows:" ) );
- Layout1->addWidget( rowsL );
-
- rows = new QSpinBox( this, "rows" );
- rows->setMinValue( 1 );
- rows->setMaxValue( 511 );
- Layout1->addWidget( rows );
-
- columnsL = new QLabel( this, "columnsL" );
- columnsL->setText( tr( "Columns:" ) );
- Layout1->addWidget( columnsL );
-
- columns = new QSpinBox( this, "columns" );
- columns->setMinValue( 1 );
- columns->setMaxValue( 511 );
- Layout1->addWidget( columns );
- QSpacerItem* spacer = new QSpacerItem( 20, 20, QSizePolicy::Expanding, QSizePolicy::Minimum );
- Layout1->addItem( spacer );
- InsertTabularDlgLayout->addLayout( Layout1 );
-
- table = new EmptyTable( this, "table" );
- InsertTabularDlgLayout->addWidget( table );
-
- Layout2 = new QHBoxLayout;
- Layout2->setSpacing( 6 );
- Layout2->setMargin( 0 );
- QSpacerItem* spacer_2 = new QSpacerItem( 20, 20, QSizePolicy::Expanding, QSizePolicy::Minimum );
- Layout2->addItem( spacer_2 );
-
- insertPB = new QPushButton( this, "insertPB" );
- insertPB->setText( tr( "&Insert" ) );
- Layout2->addWidget( insertPB );
-
- cancelPB = new QPushButton( this, "cancelPB" );
- cancelPB->setText( tr( "&Cancel" ) );
- Layout2->addWidget( cancelPB );
- InsertTabularDlgLayout->addLayout( Layout2 );
-
- // signals and slots connections
- connect( table, SIGNAL( rowsChanged(int) ), rows, SLOT( setValue(int) ) );
- connect( table, SIGNAL( colsChanged(int) ), columns, SLOT( setValue(int) ) );
- connect( rows, SIGNAL( valueChanged(int) ), table, SLOT( setNumberRows(int) ) );
- connect( columns, SIGNAL( valueChanged(int) ), table, SLOT( setNumberColumns(int) ) );
- connect( insertPB, SIGNAL( clicked() ), this, SLOT( insert_tabular() ) );
- connect( cancelPB, SIGNAL( clicked() ), this, SLOT( cancel_adaptor() ) );
-}
-
-/*
- * Destroys the object and frees any allocated resources
- */
-InsertTabularDlg::~InsertTabularDlg()
-{
- // no need to delete child widgets, Qt does it all for us
-}
-
-void InsertTabularDlg::insert_tabular()
-{
- qWarning( "InsertTabularDlg::insert_tabular(): Not implemented yet!" );
-}
-
-void InsertTabularDlg::cancel_adaptor()
-{
- qWarning( "InsertTabularDlg::cancel_adaptor(): Not implemented yet!" );
-}
-
+++ /dev/null
-/****************************************************************************
-** Form interface generated from reading ui file 'tabularcreatedlg.ui'
-**
-** Created: Tue Feb 6 01:41:06 2001
-** by: The User Interface Compiler (uic)
-**
-** WARNING! All changes made in this file will be lost!
-****************************************************************************/
-#ifndef INSERTTABULARDLG_H
-#define INSERTTABULARDLG_H
-
-#include <qvariant.h>
-#include <qdialog.h>
-class QVBoxLayout;
-class QHBoxLayout;
-class QGridLayout;
-class EmptyTable;
-class QLabel;
-class QPushButton;
-class QSpinBox;
-
-class InsertTabularDlg : public QDialog
-{
- Q_OBJECT
-
-public:
- InsertTabularDlg( QWidget* parent = 0, const char* name = 0, bool modal = FALSE, WFlags fl = 0 );
- ~InsertTabularDlg();
-
- QLabel* rowsL;
- QSpinBox* rows;
- QLabel* columnsL;
- QSpinBox* columns;
- EmptyTable* table;
- QPushButton* insertPB;
- QPushButton* cancelPB;
-
-protected slots:
- virtual void insert_tabular();
- virtual void cancel_adaptor();
-
-protected:
- QVBoxLayout* InsertTabularDlgLayout;
- QHBoxLayout* Layout1;
- QHBoxLayout* Layout2;
-};
-
-#endif // INSERTTABULARDLG_H
+++ /dev/null
-<!DOCTYPE UI><UI>
-<class>InsertTabularDlg</class>
-<widget>
- <class>QDialog</class>
- <property stdset="1">
- <name>name</name>
- <cstring>InsertTabularDlg</cstring>
- </property>
- <property stdset="1">
- <name>geometry</name>
- <rect>
- <x>0</x>
- <y>0</y>
- <width>245</width>
- <height>235</height>
- </rect>
- </property>
- <property stdset="1">
- <name>sizeGripEnabled</name>
- <bool>true</bool>
- </property>
- <property stdset="1">
- <name>caption</name>
- <string>Form1</string>
- </property>
- <vbox>
- <property stdset="1">
- <name>margin</name>
- <number>11</number>
- </property>
- <property stdset="1">
- <name>spacing</name>
- <number>6</number>
- </property>
- <widget>
- <class>QLayoutWidget</class>
- <property stdset="1">
- <name>name</name>
- <cstring>Layout1</cstring>
- </property>
- <hbox>
- <property stdset="1">
- <name>margin</name>
- <number>0</number>
- </property>
- <property stdset="1">
- <name>spacing</name>
- <number>6</number>
- </property>
- <widget>
- <class>QLabel</class>
- <property stdset="1">
- <name>name</name>
- <cstring>rowsL</cstring>
- </property>
- <property stdset="1">
- <name>text</name>
- <string>Rows:</string>
- </property>
- </widget>
- <widget>
- <class>QSpinBox</class>
- <property stdset="1">
- <name>name</name>
- <cstring>rows</cstring>
- </property>
- <property stdset="1">
- <name>minValue</name>
- <number>1</number>
- </property>
- <property stdset="1">
- <name>maxValue</name>
- <number>511</number>
- </property>
- </widget>
- <widget>
- <class>QLabel</class>
- <property stdset="1">
- <name>name</name>
- <cstring>columnsL</cstring>
- </property>
- <property stdset="1">
- <name>text</name>
- <string>Columns:</string>
- </property>
- </widget>
- <widget>
- <class>QSpinBox</class>
- <property stdset="1">
- <name>name</name>
- <cstring>columns</cstring>
- </property>
- <property stdset="1">
- <name>minValue</name>
- <number>1</number>
- </property>
- <property stdset="1">
- <name>maxValue</name>
- <number>511</number>
- </property>
- </widget>
- <spacer>
- <property>
- <name>name</name>
- <cstring>Spacer1</cstring>
- </property>
- <property stdset="1">
- <name>orientation</name>
- <enum>Horizontal</enum>
- </property>
- <property stdset="1">
- <name>sizeType</name>
- <enum>Expanding</enum>
- </property>
- <property>
- <name>sizeHint</name>
- <size>
- <width>20</width>
- <height>20</height>
- </size>
- </property>
- </spacer>
- </hbox>
- </widget>
- <widget>
- <class>EmptyTable</class>
- <property stdset="1">
- <name>name</name>
- <cstring>table</cstring>
- </property>
- </widget>
- <widget>
- <class>QLayoutWidget</class>
- <property stdset="1">
- <name>name</name>
- <cstring>Layout2</cstring>
- </property>
- <hbox>
- <property stdset="1">
- <name>margin</name>
- <number>0</number>
- </property>
- <property stdset="1">
- <name>spacing</name>
- <number>6</number>
- </property>
- <spacer>
- <property>
- <name>name</name>
- <cstring>Spacer2</cstring>
- </property>
- <property stdset="1">
- <name>orientation</name>
- <enum>Horizontal</enum>
- </property>
- <property stdset="1">
- <name>sizeType</name>
- <enum>Expanding</enum>
- </property>
- <property>
- <name>sizeHint</name>
- <size>
- <width>20</width>
- <height>20</height>
- </size>
- </property>
- </spacer>
- <widget>
- <class>QPushButton</class>
- <property stdset="1">
- <name>name</name>
- <cstring>insertPB</cstring>
- </property>
- <property stdset="1">
- <name>text</name>
- <string>&Insert</string>
- </property>
- </widget>
- <widget>
- <class>QPushButton</class>
- <property stdset="1">
- <name>name</name>
- <cstring>cancelPB</cstring>
- </property>
- <property stdset="1">
- <name>text</name>
- <string>&Cancel</string>
- </property>
- </widget>
- </hbox>
- </widget>
- </vbox>
-</widget>
-<customwidgets>
- <customwidget>
- <class>EmptyTable</class>
- <header location="local">emptytable.h</header>
- <sizehint>
- <width>-1</width>
- <height>-1</height>
- </sizehint>
- <container>0</container>
- <sizepolicy>
- <hordata>5</hordata>
- <verdata>5</verdata>
- </sizepolicy>
- <pixmap>image0</pixmap>
- <signal>colsChanged(int)</signal>
- <signal>rowsChanged(int)</signal>
- <slot access="public">setNumberColumns(int)</slot>
- <slot access="public">setNumberRows(int)</slot>
- </customwidget>
-</customwidgets>
-<images>
- <image>
- <name>image0</name>
- <data format="XPM.GZ" length="646">789c6dd2c10ac2300c00d07bbf2234b7229d1be245fc04c5a3201e4615f430059d0711ff5ddb2e6bb236ec90eed134cb5a19d8ef36602af5ecdbfeeac05dda0798d3abebde87e3faa374d3807fa0d633a52d38d8de6f679fe33fc776e196f53cd010188256a3600a292882096246517815ca99884606e18044a3a40d91824820924265a7923a2e8bcd05f33db1173e002913175f2a6be6d3294871a2d95fa00e8a94ee017b69d339d90df1e77c57ea072ede6758</data>
- </image>
-</images>
-<connections>
- <connection>
- <sender>table</sender>
- <signal>rowsChanged(int)</signal>
- <receiver>rows</receiver>
- <slot>setValue(int)</slot>
- </connection>
- <connection>
- <sender>table</sender>
- <signal>colsChanged(int)</signal>
- <receiver>columns</receiver>
- <slot>setValue(int)</slot>
- </connection>
- <connection>
- <sender>rows</sender>
- <signal>valueChanged(int)</signal>
- <receiver>table</receiver>
- <slot>setNumberRows(int)</slot>
- </connection>
- <connection>
- <sender>columns</sender>
- <signal>valueChanged(int)</signal>
- <receiver>table</receiver>
- <slot>setNumberColumns(int)</slot>
- </connection>
- <connection>
- <sender>insertPB</sender>
- <signal>clicked()</signal>
- <receiver>InsertTabularDlg</receiver>
- <slot>insert_tabular()</slot>
- </connection>
- <connection>
- <sender>cancelPB</sender>
- <signal>clicked()</signal>
- <receiver>InsertTabularDlg</receiver>
- <slot>cancel_adaptor()</slot>
- </connection>
- <slot access="protected">insert_tabular()</slot>
- <slot access="protected">cancel_adaptor()</slot>
-</connections>
-</UI>
+++ /dev/null
-/**
- * \file tabularcreatedlgimpl.C
- * Copyright 2001 LyX Team
- * see the file COPYING
- *
- * \author John Levon, moz@compsoc.man.ac.uk
- * \author Edwin Leuven, leuven@fee.uva.nl
- */
-
-#include "tabularcreatedlg.h"
-
-#include <config.h>
-#include <gettext.h>
-#include <string>
-
-#include "tabularcreatedlgimpl.h"
-#include "FormTabularCreate.h"
-#include "support/lstrings.h"
-
-#include "qpushbutton.h"
-#include "qspinbox.h"
-#include "emptytable.h"
-#include "qpainter.h"
-#include "qtableview.h"
-#include "qtooltip.h"
-
-TabularCreateDlgImpl::TabularCreateDlgImpl(FormTabularCreate* form, QWidget* parent, const char* name, bool modal, WFlags fl )
- : InsertTabularDlg( parent, name, modal, fl ), form_(form)
-{
- setCaption(name);
- table->setMinimumSize(100,100);
- rows->setValue(5);
- columns->setValue(5);
- QToolTip::add(table, _("Drag with left mouse button to resize"));
-}
-
-TabularCreateDlgImpl::~TabularCreateDlgImpl()
-{
- // no need to delete child widgets, Qt does it all for us
-}
-
-void TabularCreateDlgImpl::insert_tabular()
-{
- form_->apply((rows->text()).toInt(), (columns->text()).toInt());
- form_->close();
- hide();
-}
-
-void TabularCreateDlgImpl::cancel_adaptor()
-{
- form_->close();
- hide();
-}
-
-void TabularCreateDlgImpl::colsChanged(int nr_cols)
-{
- if (nr_cols != (columns->text()).toInt())
- columns->setValue(nr_cols);
-}
-
-void TabularCreateDlgImpl::rowsChanged(int nr_rows)
-{
- if (nr_rows != (rows->text()).toInt())
- rows->setValue(nr_rows);
-}
+++ /dev/null
-/**
- * \file tabularcreatedlgimpl.h
- * Copyright 2001 LyX Team
- * see the file COPYING
- *
- * \author John Levon, moz@compsoc.man.ac.uk
- * \author Edwin Leuven, leuven@fee.uva.nl
- */
-
-#ifndef TABULARCREATEDLGIMPL_H
-#define TABULARCREATEDLGIMPL_H
-#include "tabularcreatedlg.h"
-
-class FormTabularCreate;
-
-class TabularCreateDlgImpl : public InsertTabularDlg
-{
- Q_OBJECT
-
-public:
- TabularCreateDlgImpl(FormTabularCreate *form, QWidget* parent = 0, const char* name = 0, bool modal = FALSE, WFlags fl = 0 );
- ~TabularCreateDlgImpl();
-
-protected slots:
- void insert_tabular();
- void cancel_adaptor();
- virtual void colsChanged(int);
- virtual void rowsChanged(int);
-
-private:
- FormTabularCreate * form_;
-};
-
-#endif // TABULARCREATEDLGIMPL_H
--- /dev/null
+Makefile.in
+Makefile
+*.deps
+*.lo
+.libs
+libqt2ui.la
+moc_*.C
+*_moc.C
+*.C
+*.h
--- /dev/null
+AUTOMAKE_OPTIONS = foreign 1.4
+DISTCLEANFILES= *.orig *.rej *~ *.bak core
+MAINTAINERCLEANFILES = $(srcdir)/Makefile.in
+noinst_LTLIBRARIES = libqt2ui.la
+BOOST_INCLUDES = -I$(top_srcdir)/boost
+INCLUDES = -I${top_srcdir}/src/ -I${top_srcdir}/src/frontends/ \
+ ${SIGC_CFLAGS} ${FRONTEND_INCLUDES} $(BOOST_INCLUDES) \
+ -I$(top_srcdir)/src/frontends/controllers
+DEFINES += -DQT_CLEAN_NAMESPACE
+ETAGS_ARGS = --lang=c++
+SUBDIRS=. moc
+
+include ../Makefile.dialogs
+
+DISTCLEANFILES = $(UIDIALOGS) *.orig *.rej *~ *.bak core
+
+libqt2ui_la_DEPENDENCIES = moc/libqt2uimoc.la
+libqt2ui_la_OBJADD = moc/libqt2uimoc.la
+
+libqt2ui_la_SOURCES = $(UIDIALOGS)
+
+%Base.h: %.ui
+ $(UIC) $< -o $@
+%Base.C: %Base.h %.ui
+ $(UIC) -impl $^ -o $@
--- /dev/null
+<!DOCTYPE UI><UI>
+<class>QAboutDialogBase</class>
+<widget>
+ <class>QDialog</class>
+ <property stdset="1">
+ <name>name</name>
+ <cstring>AboutDialog</cstring>
+ </property>
+ <property stdset="1">
+ <name>geometry</name>
+ <rect>
+ <x>0</x>
+ <y>0</y>
+ <width>464</width>
+ <height>454</height>
+ </rect>
+ </property>
+ <property stdset="1">
+ <name>caption</name>
+ <string>About LyX</string>
+ </property>
+ <vbox>
+ <property stdset="1">
+ <name>margin</name>
+ <number>11</number>
+ </property>
+ <property stdset="1">
+ <name>spacing</name>
+ <number>6</number>
+ </property>
+ <widget>
+ <class>QLabel</class>
+ <property stdset="1">
+ <name>name</name>
+ <cstring>copyrightLA</cstring>
+ </property>
+ <property stdset="1">
+ <name>frameShape</name>
+ <enum>Box</enum>
+ </property>
+ <property stdset="1">
+ <name>frameShadow</name>
+ <enum>Sunken</enum>
+ </property>
+ <property stdset="1">
+ <name>margin</name>
+ <number>6</number>
+ </property>
+ <property stdset="1">
+ <name>text</name>
+ <string>LyX is Copyright (C) 1995 by Matthias Ettrich,
+1995-2001 by LyX Team</string>
+ </property>
+ <property stdset="1">
+ <name>alignment</name>
+ <set>AlignCenter</set>
+ </property>
+ <property>
+ <name>hAlign</name>
+ </property>
+ </widget>
+ <widget>
+ <class>QLabel</class>
+ <property stdset="1">
+ <name>name</name>
+ <cstring>licenseLA</cstring>
+ </property>
+ <property stdset="1">
+ <name>sizePolicy</name>
+ <sizepolicy>
+ <hsizetype>5</hsizetype>
+ <vsizetype>5</vsizetype>
+ </sizepolicy>
+ </property>
+ <property stdset="1">
+ <name>frameShape</name>
+ <enum>Box</enum>
+ </property>
+ <property stdset="1">
+ <name>frameShadow</name>
+ <enum>Sunken</enum>
+ </property>
+ <property stdset="1">
+ <name>margin</name>
+ <number>6</number>
+ </property>
+ <property stdset="1">
+ <name>text</name>
+ <string>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.</string>
+ </property>
+ <property stdset="1">
+ <name>alignment</name>
+ <set>WordBreak|AlignCenter</set>
+ </property>
+ <property>
+ <name>hAlign</name>
+ </property>
+ <property>
+ <name>wordwrap</name>
+ </property>
+ </widget>
+ <widget>
+ <class>QLabel</class>
+ <property stdset="1">
+ <name>name</name>
+ <cstring>disclaimerLA</cstring>
+ </property>
+ <property stdset="1">
+ <name>sizePolicy</name>
+ <sizepolicy>
+ <hsizetype>5</hsizetype>
+ <vsizetype>5</vsizetype>
+ </sizepolicy>
+ </property>
+ <property stdset="1">
+ <name>minimumSize</name>
+ <size>
+ <width>0</width>
+ <height>0</height>
+ </size>
+ </property>
+ <property stdset="1">
+ <name>frameShape</name>
+ <enum>Box</enum>
+ </property>
+ <property stdset="1">
+ <name>frameShadow</name>
+ <enum>Sunken</enum>
+ </property>
+ <property stdset="1">
+ <name>margin</name>
+ <number>6</number>
+ </property>
+ <property stdset="1">
+ <name>text</name>
+ <string>LyX is distributed in the hope that it will be
+useful, but WITHOUT ANY WARRANTY,
+without even the implied warranty of
+MERCHANTABILITY or FITNESS FOR A
+PARTICULAR PURPOSE. See the GNU General
+Public License for more details.
+You should have received a copy of the GNU
+General Public License along with this program;
+if not, write to the Free Software Foundation, Inc.,
+675 Mass Ave, Cambridge, MA 02139, USA.</string>
+ </property>
+ <property stdset="1">
+ <name>alignment</name>
+ <set>WordBreak|AlignCenter</set>
+ </property>
+ <property>
+ <name>hAlign</name>
+ </property>
+ <property>
+ <name>wordwrap</name>
+ </property>
+ </widget>
+ <widget>
+ <class>QPushButton</class>
+ <property stdset="1">
+ <name>name</name>
+ <cstring>closePB</cstring>
+ </property>
+ <property stdset="1">
+ <name>text</name>
+ <string>&Close</string>
+ </property>
+ <property stdset="1">
+ <name>sizePolicy</name>
+ <sizepolicy>
+ <hsizetype>0</hsizetype>
+ <vsizetype>0</vsizetype>
+ </sizepolicy>
+ </property>
+ <property stdset="1">
+ <name>default</name>
+ <bool>true</bool>
+ </property>
+ </widget>
+ </vbox>
+</widget>
+<connections>
+ <connection>
+ <sender>closePB</sender>
+ <signal>clicked()</signal>
+ <receiver>AboutDialog</receiver>
+ <slot>reject()</slot>
+ </connection>
+</connections>
+</UI>
--- /dev/null
+<!DOCTYPE UI><UI>
+<class>QCharacterDialogBase</class>
+<widget>
+ <class>QDialog</class>
+ <property stdset="1">
+ <name>name</name>
+ <cstring>QCharacterDialogBase</cstring>
+ </property>
+ <property stdset="1">
+ <name>geometry</name>
+ <rect>
+ <x>0</x>
+ <y>0</y>
+ <width>412</width>
+ <height>291</height>
+ </rect>
+ </property>
+ <property stdset="1">
+ <name>caption</name>
+ <string>Character</string>
+ </property>
+ <property stdset="1">
+ <name>sizeGripEnabled</name>
+ <bool>true</bool>
+ </property>
+ <property>
+ <name>layoutMargin</name>
+ </property>
+ <property>
+ <name>layoutSpacing</name>
+ </property>
+ <grid>
+ <property stdset="1">
+ <name>margin</name>
+ <number>11</number>
+ </property>
+ <property stdset="1">
+ <name>spacing</name>
+ <number>6</number>
+ </property>
+ <widget row="0" column="1" >
+ <class>QGroupBox</class>
+ <property stdset="1">
+ <name>name</name>
+ <cstring>sizeGB</cstring>
+ </property>
+ <property stdset="1">
+ <name>title</name>
+ <string>Never toggled</string>
+ </property>
+ <property>
+ <name>layoutMargin</name>
+ </property>
+ <hbox>
+ <property stdset="1">
+ <name>margin</name>
+ <number>11</number>
+ </property>
+ <property stdset="1">
+ <name>spacing</name>
+ <number>6</number>
+ </property>
+ <widget>
+ <class>QLabel</class>
+ <property stdset="1">
+ <name>name</name>
+ <cstring>sizeL</cstring>
+ </property>
+ <property stdset="1">
+ <name>text</name>
+ <string>Size:</string>
+ </property>
+ </widget>
+ <widget>
+ <class>QComboBox</class>
+ <item>
+ <property>
+ <name>text</name>
+ <string>No Change</string>
+ </property>
+ </item>
+ <item>
+ <property>
+ <name>text</name>
+ <string>Reset</string>
+ </property>
+ </item>
+ <item>
+ <property>
+ <name>text</name>
+ <string>Tiny</string>
+ </property>
+ </item>
+ <item>
+ <property>
+ <name>text</name>
+ <string>Smallest</string>
+ </property>
+ </item>
+ <item>
+ <property>
+ <name>text</name>
+ <string>Smaller</string>
+ </property>
+ </item>
+ <item>
+ <property>
+ <name>text</name>
+ <string>Small</string>
+ </property>
+ </item>
+ <item>
+ <property>
+ <name>text</name>
+ <string>Normal</string>
+ </property>
+ </item>
+ <item>
+ <property>
+ <name>text</name>
+ <string>Large</string>
+ </property>
+ </item>
+ <item>
+ <property>
+ <name>text</name>
+ <string>Larger</string>
+ </property>
+ </item>
+ <item>
+ <property>
+ <name>text</name>
+ <string>Largest</string>
+ </property>
+ </item>
+ <item>
+ <property>
+ <name>text</name>
+ <string>Huge</string>
+ </property>
+ </item>
+ <item>
+ <property>
+ <name>text</name>
+ <string>Huger</string>
+ </property>
+ </item>
+ <item>
+ <property>
+ <name>text</name>
+ <string>Increase</string>
+ </property>
+ </item>
+ <item>
+ <property>
+ <name>text</name>
+ <string>Decrease</string>
+ </property>
+ </item>
+ <property stdset="1">
+ <name>name</name>
+ <cstring>size</cstring>
+ </property>
+ </widget>
+ </hbox>
+ </widget>
+ <widget row="1" column="1" >
+ <class>QGroupBox</class>
+ <property stdset="1">
+ <name>name</name>
+ <cstring>miscGB</cstring>
+ </property>
+ <property stdset="1">
+ <name>title</name>
+ <string>Always toggled</string>
+ </property>
+ <property>
+ <name>layoutMargin</name>
+ </property>
+ <hbox>
+ <property stdset="1">
+ <name>margin</name>
+ <number>11</number>
+ </property>
+ <property stdset="1">
+ <name>spacing</name>
+ <number>6</number>
+ </property>
+ <widget>
+ <class>QLabel</class>
+ <property stdset="1">
+ <name>name</name>
+ <cstring>always_toggledL</cstring>
+ </property>
+ <property stdset="1">
+ <name>text</name>
+ <string>Misc:</string>
+ </property>
+ </widget>
+ <widget>
+ <class>QComboBox</class>
+ <item>
+ <property>
+ <name>text</name>
+ <string>No Change</string>
+ </property>
+ </item>
+ <item>
+ <property>
+ <name>text</name>
+ <string>Reset</string>
+ </property>
+ </item>
+ <item>
+ <property>
+ <name>text</name>
+ <string>Emph</string>
+ </property>
+ </item>
+ <item>
+ <property>
+ <name>text</name>
+ <string>Underbar</string>
+ </property>
+ </item>
+ <item>
+ <property>
+ <name>text</name>
+ <string>Noun</string>
+ </property>
+ </item>
+ <item>
+ <property>
+ <name>text</name>
+ <string>LaTeX Mode</string>
+ </property>
+ </item>
+ <property stdset="1">
+ <name>name</name>
+ <cstring>misc</cstring>
+ </property>
+ </widget>
+ </hbox>
+ </widget>
+ <widget row="0" column="0" rowspan="3" colspan="1" >
+ <class>QGroupBox</class>
+ <property stdset="1">
+ <name>name</name>
+ <cstring>charGB</cstring>
+ </property>
+ <property stdset="1">
+ <name>title</name>
+ <string>Character</string>
+ </property>
+ <property stdset="1">
+ <name>sizePolicy</name>
+ <sizepolicy>
+ <hsizetype>5</hsizetype>
+ <vsizetype>5</vsizetype>
+ </sizepolicy>
+ </property>
+ <property>
+ <name>layoutMargin</name>
+ </property>
+ <grid>
+ <property stdset="1">
+ <name>margin</name>
+ <number>11</number>
+ </property>
+ <property stdset="1">
+ <name>spacing</name>
+ <number>6</number>
+ </property>
+ <widget row="0" column="0" >
+ <class>QLabel</class>
+ <property stdset="1">
+ <name>name</name>
+ <cstring>familyL</cstring>
+ </property>
+ <property stdset="1">
+ <name>text</name>
+ <string>Family:</string>
+ </property>
+ </widget>
+ <widget row="0" column="1" >
+ <class>QComboBox</class>
+ <item>
+ <property>
+ <name>text</name>
+ <string>No Change</string>
+ </property>
+ </item>
+ <item>
+ <property>
+ <name>text</name>
+ <string>Reset</string>
+ </property>
+ </item>
+ <item>
+ <property>
+ <name>text</name>
+ <string>Roman</string>
+ </property>
+ </item>
+ <item>
+ <property>
+ <name>text</name>
+ <string>Sans Serif</string>
+ </property>
+ </item>
+ <item>
+ <property>
+ <name>text</name>
+ <string>Typewriter</string>
+ </property>
+ </item>
+ <property stdset="1">
+ <name>name</name>
+ <cstring>family</cstring>
+ </property>
+ </widget>
+ <widget row="1" column="0" >
+ <class>QLabel</class>
+ <property stdset="1">
+ <name>name</name>
+ <cstring>seriesL</cstring>
+ </property>
+ <property stdset="1">
+ <name>text</name>
+ <string>Series:</string>
+ </property>
+ </widget>
+ <widget row="4" column="0" >
+ <class>QLabel</class>
+ <property stdset="1">
+ <name>name</name>
+ <cstring>langL</cstring>
+ </property>
+ <property stdset="1">
+ <name>text</name>
+ <string>Language:</string>
+ </property>
+ </widget>
+ <widget row="2" column="1" >
+ <class>QComboBox</class>
+ <item>
+ <property>
+ <name>text</name>
+ <string>No Change</string>
+ </property>
+ </item>
+ <item>
+ <property>
+ <name>text</name>
+ <string>Reset</string>
+ </property>
+ </item>
+ <item>
+ <property>
+ <name>text</name>
+ <string>Upright</string>
+ </property>
+ </item>
+ <item>
+ <property>
+ <name>text</name>
+ <string>Italic</string>
+ </property>
+ </item>
+ <item>
+ <property>
+ <name>text</name>
+ <string>Slanted</string>
+ </property>
+ </item>
+ <item>
+ <property>
+ <name>text</name>
+ <string>Small Caps</string>
+ </property>
+ </item>
+ <property stdset="1">
+ <name>name</name>
+ <cstring>shape</cstring>
+ </property>
+ </widget>
+ <widget row="3" column="1" >
+ <class>QComboBox</class>
+ <item>
+ <property>
+ <name>text</name>
+ <string>No Change</string>
+ </property>
+ </item>
+ <item>
+ <property>
+ <name>text</name>
+ <string>Reset</string>
+ </property>
+ </item>
+ <item>
+ <property>
+ <name>text</name>
+ <string>No Color</string>
+ </property>
+ </item>
+ <item>
+ <property>
+ <name>text</name>
+ <string>Black</string>
+ </property>
+ </item>
+ <item>
+ <property>
+ <name>text</name>
+ <string>White</string>
+ </property>
+ </item>
+ <item>
+ <property>
+ <name>text</name>
+ <string>Red</string>
+ </property>
+ </item>
+ <item>
+ <property>
+ <name>text</name>
+ <string>Green</string>
+ </property>
+ </item>
+ <item>
+ <property>
+ <name>text</name>
+ <string>Blue</string>
+ </property>
+ </item>
+ <item>
+ <property>
+ <name>text</name>
+ <string>Cyan</string>
+ </property>
+ </item>
+ <item>
+ <property>
+ <name>text</name>
+ <string>Yellow</string>
+ </property>
+ </item>
+ <item>
+ <property>
+ <name>text</name>
+ <string>Magenta</string>
+ </property>
+ </item>
+ <property stdset="1">
+ <name>name</name>
+ <cstring>color</cstring>
+ </property>
+ </widget>
+ <widget row="2" column="0" >
+ <class>QLabel</class>
+ <property stdset="1">
+ <name>name</name>
+ <cstring>shapeL</cstring>
+ </property>
+ <property stdset="1">
+ <name>text</name>
+ <string>Shape:</string>
+ </property>
+ </widget>
+ <widget row="1" column="1" >
+ <class>QComboBox</class>
+ <item>
+ <property>
+ <name>text</name>
+ <string>No Change</string>
+ </property>
+ </item>
+ <item>
+ <property>
+ <name>text</name>
+ <string>Reset</string>
+ </property>
+ </item>
+ <item>
+ <property>
+ <name>text</name>
+ <string>Medium</string>
+ </property>
+ </item>
+ <item>
+ <property>
+ <name>text</name>
+ <string>Bold</string>
+ </property>
+ </item>
+ <property stdset="1">
+ <name>name</name>
+ <cstring>series</cstring>
+ </property>
+ </widget>
+ <widget row="3" column="0" >
+ <class>QLabel</class>
+ <property stdset="1">
+ <name>name</name>
+ <cstring>colorL</cstring>
+ </property>
+ <property stdset="1">
+ <name>enabled</name>
+ <bool>true</bool>
+ </property>
+ <property stdset="1">
+ <name>text</name>
+ <string>Color:</string>
+ </property>
+ </widget>
+ <widget row="4" column="1" >
+ <class>QComboBox</class>
+ <item>
+ <property>
+ <name>text</name>
+ <string>No Change</string>
+ </property>
+ </item>
+ <item>
+ <property>
+ <name>text</name>
+ <string>Reset</string>
+ </property>
+ </item>
+ <property stdset="1">
+ <name>name</name>
+ <cstring>lang</cstring>
+ </property>
+ </widget>
+ <widget row="5" column="1" >
+ <class>QCheckBox</class>
+ <property stdset="1">
+ <name>name</name>
+ <cstring>toggleall</cstring>
+ </property>
+ <property stdset="1">
+ <name>text</name>
+ <string>Toggle all</string>
+ </property>
+ </widget>
+ <spacer row="6" column="1" >
+ <property>
+ <name>name</name>
+ <cstring>Spacer2</cstring>
+ </property>
+ <property stdset="1">
+ <name>orientation</name>
+ <enum>Vertical</enum>
+ </property>
+ <property stdset="1">
+ <name>sizeType</name>
+ <enum>Expanding</enum>
+ </property>
+ <property>
+ <name>sizeHint</name>
+ <size>
+ <width>20</width>
+ <height>20</height>
+ </size>
+ </property>
+ </spacer>
+ </grid>
+ </widget>
+ <spacer row="2" column="1" >
+ <property>
+ <name>name</name>
+ <cstring>Spacer3</cstring>
+ </property>
+ <property stdset="1">
+ <name>orientation</name>
+ <enum>Vertical</enum>
+ </property>
+ <property stdset="1">
+ <name>sizeType</name>
+ <enum>Expanding</enum>
+ </property>
+ <property>
+ <name>sizeHint</name>
+ <size>
+ <width>20</width>
+ <height>20</height>
+ </size>
+ </property>
+ </spacer>
+ <widget row="3" column="0" rowspan="1" colspan="2" >
+ <class>QLayoutWidget</class>
+ <property stdset="1">
+ <name>name</name>
+ <cstring>Layout9</cstring>
+ </property>
+ <hbox>
+ <property stdset="1">
+ <name>margin</name>
+ <number>0</number>
+ </property>
+ <property stdset="1">
+ <name>spacing</name>
+ <number>6</number>
+ </property>
+ <spacer>
+ <property>
+ <name>name</name>
+ <cstring>Spacer2_2</cstring>
+ </property>
+ <property stdset="1">
+ <name>orientation</name>
+ <enum>Horizontal</enum>
+ </property>
+ <property stdset="1">
+ <name>sizeType</name>
+ <enum>Expanding</enum>
+ </property>
+ <property>
+ <name>sizeHint</name>
+ <size>
+ <width>20</width>
+ <height>20</height>
+ </size>
+ </property>
+ </spacer>
+ <widget>
+ <class>QPushButton</class>
+ <property stdset="1">
+ <name>name</name>
+ <cstring>applyPB</cstring>
+ </property>
+ <property stdset="1">
+ <name>text</name>
+ <string>&Apply</string>
+ </property>
+ </widget>
+ <widget>
+ <class>QPushButton</class>
+ <property stdset="1">
+ <name>name</name>
+ <cstring>okPB</cstring>
+ </property>
+ <property stdset="1">
+ <name>text</name>
+ <string>&OK</string>
+ </property>
+ </widget>
+ <widget>
+ <class>QPushButton</class>
+ <property stdset="1">
+ <name>name</name>
+ <cstring>cancelPB</cstring>
+ </property>
+ <property stdset="1">
+ <name>text</name>
+ <string>&Cancel</string>
+ </property>
+ <property stdset="1">
+ <name>default</name>
+ <bool>true</bool>
+ </property>
+ </widget>
+ </hbox>
+ </widget>
+ </grid>
+</widget>
+<connections>
+ <connection>
+ <sender>cancelPB</sender>
+ <signal>clicked()</signal>
+ <receiver>QCharacterDialogBase</receiver>
+ <slot>cancel_adaptor()</slot>
+ </connection>
+ <connection>
+ <sender>okPB</sender>
+ <signal>clicked()</signal>
+ <receiver>QCharacterDialogBase</receiver>
+ <slot>close_adaptor()</slot>
+ </connection>
+ <connection>
+ <sender>applyPB</sender>
+ <signal>clicked()</signal>
+ <receiver>QCharacterDialogBase</receiver>
+ <slot>apply_adaptor()</slot>
+ </connection>
+ <slot access="protected">apply_adaptor()</slot>
+ <slot access="protected">cancel_adaptor()</slot>
+ <slot access="protected">close_adaptor()</slot>
+</connections>
+<tabstops>
+ <tabstop>family</tabstop>
+ <tabstop>series</tabstop>
+ <tabstop>shape</tabstop>
+ <tabstop>color</tabstop>
+ <tabstop>lang</tabstop>
+ <tabstop>toggleall</tabstop>
+ <tabstop>size</tabstop>
+ <tabstop>misc</tabstop>
+ <tabstop>applyPB</tabstop>
+ <tabstop>okPB</tabstop>
+ <tabstop>cancelPB</tabstop>
+</tabstops>
+</UI>
--- /dev/null
+<!DOCTYPE UI><UI>
+<class>QCitationDialogBase</class>
+<widget>
+ <class>QDialog</class>
+ <property stdset="1">
+ <name>name</name>
+ <cstring>QCitationDialogBase</cstring>
+ </property>
+ <property stdset="1">
+ <name>geometry</name>
+ <rect>
+ <x>0</x>
+ <y>0</y>
+ <width>487</width>
+ <height>585</height>
+ </rect>
+ </property>
+ <property stdset="1">
+ <name>caption</name>
+ <string>Citation</string>
+ </property>
+ <vbox>
+ <property stdset="1">
+ <name>margin</name>
+ <number>11</number>
+ </property>
+ <property stdset="1">
+ <name>spacing</name>
+ <number>6</number>
+ </property>
+ <widget>
+ <class>QLayoutWidget</class>
+ <property stdset="1">
+ <name>name</name>
+ <cstring>Layout24</cstring>
+ </property>
+ <grid>
+ <property stdset="1">
+ <name>margin</name>
+ <number>0</number>
+ </property>
+ <property stdset="1">
+ <name>spacing</name>
+ <number>6</number>
+ </property>
+ <widget row="1" column="1" >
+ <class>QLayoutWidget</class>
+ <property stdset="1">
+ <name>name</name>
+ <cstring>Layout1</cstring>
+ </property>
+ <vbox>
+ <property stdset="1">
+ <name>margin</name>
+ <number>0</number>
+ </property>
+ <property stdset="1">
+ <name>spacing</name>
+ <number>6</number>
+ </property>
+ <widget>
+ <class>QPushButton</class>
+ <property stdset="1">
+ <name>name</name>
+ <cstring>addPB</cstring>
+ </property>
+ <property stdset="1">
+ <name>text</name>
+ <string></string>
+ </property>
+ <property stdset="1">
+ <name>sizePolicy</name>
+ <sizepolicy>
+ <hsizetype>0</hsizetype>
+ <vsizetype>0</vsizetype>
+ </sizepolicy>
+ </property>
+ <property stdset="1">
+ <name>pixmap</name>
+ <pixmap>image0</pixmap>
+ </property>
+ </widget>
+ <widget>
+ <class>QPushButton</class>
+ <property stdset="1">
+ <name>name</name>
+ <cstring>delPB</cstring>
+ </property>
+ <property stdset="1">
+ <name>text</name>
+ <string></string>
+ </property>
+ <property stdset="1">
+ <name>sizePolicy</name>
+ <sizepolicy>
+ <hsizetype>0</hsizetype>
+ <vsizetype>0</vsizetype>
+ </sizepolicy>
+ </property>
+ <property stdset="1">
+ <name>pixmap</name>
+ <pixmap>image1</pixmap>
+ </property>
+ </widget>
+ <widget>
+ <class>QPushButton</class>
+ <property stdset="1">
+ <name>name</name>
+ <cstring>upPB</cstring>
+ </property>
+ <property stdset="1">
+ <name>text</name>
+ <string></string>
+ </property>
+ <property stdset="1">
+ <name>sizePolicy</name>
+ <sizepolicy>
+ <hsizetype>0</hsizetype>
+ <vsizetype>0</vsizetype>
+ </sizepolicy>
+ </property>
+ <property stdset="1">
+ <name>pixmap</name>
+ <pixmap>image2</pixmap>
+ </property>
+ </widget>
+ <widget>
+ <class>QPushButton</class>
+ <property stdset="1">
+ <name>name</name>
+ <cstring>downPB</cstring>
+ </property>
+ <property stdset="1">
+ <name>text</name>
+ <string></string>
+ </property>
+ <property stdset="1">
+ <name>sizePolicy</name>
+ <sizepolicy>
+ <hsizetype>0</hsizetype>
+ <vsizetype>0</vsizetype>
+ </sizepolicy>
+ </property>
+ <property stdset="1">
+ <name>pixmap</name>
+ <pixmap>image3</pixmap>
+ </property>
+ </widget>
+ </vbox>
+ </widget>
+ <widget row="0" column="2" >
+ <class>QLabel</class>
+ <property stdset="1">
+ <name>name</name>
+ <cstring>bibliographyKeysLA</cstring>
+ </property>
+ <property stdset="1">
+ <name>text</name>
+ <string>Bibliography keys</string>
+ </property>
+ </widget>
+ <widget row="0" column="0" >
+ <class>QLabel</class>
+ <property stdset="1">
+ <name>name</name>
+ <cstring>insetKeysLA</cstring>
+ </property>
+ <property stdset="1">
+ <name>text</name>
+ <string>Inset keys</string>
+ </property>
+ </widget>
+ <widget row="1" column="2" >
+ <class>QListBox</class>
+ <item>
+ <property>
+ <name>text</name>
+ <string>New Item</string>
+ </property>
+ </item>
+ <property stdset="1">
+ <name>name</name>
+ <cstring>bibLB</cstring>
+ </property>
+ <property>
+ <name>toolTip</name>
+ <string>Reference keys available</string>
+ </property>
+ </widget>
+ <widget row="1" column="0" >
+ <class>QListBox</class>
+ <item>
+ <property>
+ <name>text</name>
+ <string>New Item</string>
+ </property>
+ </item>
+ <property stdset="1">
+ <name>name</name>
+ <cstring>citeLB</cstring>
+ </property>
+ <property stdset="1">
+ <name>selectionMode</name>
+ <enum>Single</enum>
+ </property>
+ <property>
+ <name>toolTip</name>
+ <string>Keys currently selected</string>
+ </property>
+ </widget>
+ </grid>
+ </widget>
+ <spacer>
+ <property>
+ <name>name</name>
+ <cstring>Spacer2</cstring>
+ </property>
+ <property stdset="1">
+ <name>orientation</name>
+ <enum>Vertical</enum>
+ </property>
+ <property stdset="1">
+ <name>sizeType</name>
+ <enum>Expanding</enum>
+ </property>
+ <property>
+ <name>sizeHint</name>
+ <size>
+ <width>20</width>
+ <height>20</height>
+ </size>
+ </property>
+ </spacer>
+ <widget>
+ <class>QLabel</class>
+ <property stdset="1">
+ <name>name</name>
+ <cstring>infoLA</cstring>
+ </property>
+ <property stdset="1">
+ <name>text</name>
+ <string>Info</string>
+ </property>
+ </widget>
+ <widget>
+ <class>QMultiLineEdit</class>
+ <property stdset="1">
+ <name>name</name>
+ <cstring>infoML</cstring>
+ </property>
+ <property stdset="1">
+ <name>wordWrap</name>
+ <enum>WidgetWidth</enum>
+ </property>
+ <property>
+ <name>toolTip</name>
+ <string>Reference entry text</string>
+ </property>
+ </widget>
+ <spacer>
+ <property>
+ <name>name</name>
+ <cstring>Spacer3</cstring>
+ </property>
+ <property stdset="1">
+ <name>orientation</name>
+ <enum>Vertical</enum>
+ </property>
+ <property stdset="1">
+ <name>sizeType</name>
+ <enum>Expanding</enum>
+ </property>
+ <property>
+ <name>sizeHint</name>
+ <size>
+ <width>20</width>
+ <height>20</height>
+ </size>
+ </property>
+ </spacer>
+ <widget>
+ <class>QGroupBox</class>
+ <property stdset="1">
+ <name>name</name>
+ <cstring>GroupBox4</cstring>
+ </property>
+ <property stdset="1">
+ <name>title</name>
+ <string>Search</string>
+ </property>
+ <vbox>
+ <property stdset="1">
+ <name>margin</name>
+ <number>11</number>
+ </property>
+ <property stdset="1">
+ <name>spacing</name>
+ <number>6</number>
+ </property>
+ <widget>
+ <class>QLineEdit</class>
+ <property stdset="1">
+ <name>name</name>
+ <cstring>searchED</cstring>
+ </property>
+ </widget>
+ <widget>
+ <class>QLayoutWidget</class>
+ <property stdset="1">
+ <name>name</name>
+ <cstring>Layout37</cstring>
+ </property>
+ <hbox>
+ <property stdset="1">
+ <name>margin</name>
+ <number>0</number>
+ </property>
+ <property stdset="1">
+ <name>spacing</name>
+ <number>6</number>
+ </property>
+ <widget>
+ <class>QCheckBox</class>
+ <property stdset="1">
+ <name>name</name>
+ <cstring>searchTypeCB</cstring>
+ </property>
+ <property stdset="1">
+ <name>text</name>
+ <string>Regular E&xpression</string>
+ </property>
+ </widget>
+ <spacer>
+ <property>
+ <name>name</name>
+ <cstring>Spacer2_2</cstring>
+ </property>
+ <property stdset="1">
+ <name>orientation</name>
+ <enum>Horizontal</enum>
+ </property>
+ <property stdset="1">
+ <name>sizeType</name>
+ <enum>Expanding</enum>
+ </property>
+ <property>
+ <name>sizeHint</name>
+ <size>
+ <width>20</width>
+ <height>20</height>
+ </size>
+ </property>
+ </spacer>
+ <widget>
+ <class>QPushButton</class>
+ <property stdset="1">
+ <name>name</name>
+ <cstring>previousPB</cstring>
+ </property>
+ <property stdset="1">
+ <name>text</name>
+ <string>&Previous</string>
+ </property>
+ </widget>
+ </hbox>
+ </widget>
+ <widget>
+ <class>QLayoutWidget</class>
+ <property stdset="1">
+ <name>name</name>
+ <cstring>Layout38</cstring>
+ </property>
+ <hbox>
+ <property stdset="1">
+ <name>margin</name>
+ <number>0</number>
+ </property>
+ <property stdset="1">
+ <name>spacing</name>
+ <number>6</number>
+ </property>
+ <widget>
+ <class>QCheckBox</class>
+ <property stdset="1">
+ <name>name</name>
+ <cstring>searchCaseCB</cstring>
+ </property>
+ <property stdset="1">
+ <name>text</name>
+ <string>&Case sensitive</string>
+ </property>
+ </widget>
+ <spacer>
+ <property>
+ <name>name</name>
+ <cstring>Spacer3_2</cstring>
+ </property>
+ <property stdset="1">
+ <name>orientation</name>
+ <enum>Horizontal</enum>
+ </property>
+ <property stdset="1">
+ <name>sizeType</name>
+ <enum>Expanding</enum>
+ </property>
+ <property>
+ <name>sizeHint</name>
+ <size>
+ <width>20</width>
+ <height>20</height>
+ </size>
+ </property>
+ </spacer>
+ <widget>
+ <class>QPushButton</class>
+ <property stdset="1">
+ <name>name</name>
+ <cstring>nextPB</cstring>
+ </property>
+ <property stdset="1">
+ <name>text</name>
+ <string>&Next</string>
+ </property>
+ </widget>
+ </hbox>
+ </widget>
+ </vbox>
+ </widget>
+ <spacer>
+ <property>
+ <name>name</name>
+ <cstring>Spacer1</cstring>
+ </property>
+ <property stdset="1">
+ <name>orientation</name>
+ <enum>Vertical</enum>
+ </property>
+ <property stdset="1">
+ <name>sizeType</name>
+ <enum>Expanding</enum>
+ </property>
+ <property>
+ <name>sizeHint</name>
+ <size>
+ <width>20</width>
+ <height>20</height>
+ </size>
+ </property>
+ </spacer>
+ <widget>
+ <class>QLayoutWidget</class>
+ <property stdset="1">
+ <name>name</name>
+ <cstring>Layout25</cstring>
+ </property>
+ <hbox>
+ <property stdset="1">
+ <name>margin</name>
+ <number>0</number>
+ </property>
+ <property stdset="1">
+ <name>spacing</name>
+ <number>6</number>
+ </property>
+ <widget>
+ <class>QLabel</class>
+ <property stdset="1">
+ <name>name</name>
+ <cstring>citationStyleLA</cstring>
+ </property>
+ <property stdset="1">
+ <name>text</name>
+ <string>Citation style</string>
+ </property>
+ </widget>
+ <widget>
+ <class>QComboBox</class>
+ <property stdset="1">
+ <name>name</name>
+ <cstring>citationStyleCO</cstring>
+ </property>
+ </widget>
+ <spacer>
+ <property>
+ <name>name</name>
+ <cstring>Spacer8</cstring>
+ </property>
+ <property stdset="1">
+ <name>orientation</name>
+ <enum>Horizontal</enum>
+ </property>
+ <property stdset="1">
+ <name>sizeType</name>
+ <enum>Expanding</enum>
+ </property>
+ <property>
+ <name>sizeHint</name>
+ <size>
+ <width>20</width>
+ <height>20</height>
+ </size>
+ </property>
+ </spacer>
+ </hbox>
+ </widget>
+ <widget>
+ <class>QLayoutWidget</class>
+ <property stdset="1">
+ <name>name</name>
+ <cstring>Layout9</cstring>
+ </property>
+ <grid>
+ <property stdset="1">
+ <name>margin</name>
+ <number>0</number>
+ </property>
+ <property stdset="1">
+ <name>spacing</name>
+ <number>6</number>
+ </property>
+ <widget row="0" column="0" >
+ <class>QLabel</class>
+ <property stdset="1">
+ <name>name</name>
+ <cstring>textBeforeLA</cstring>
+ </property>
+ <property stdset="1">
+ <name>text</name>
+ <string>Text before</string>
+ </property>
+ </widget>
+ <widget row="1" column="0" >
+ <class>QLabel</class>
+ <property stdset="1">
+ <name>name</name>
+ <cstring>textAfterLA</cstring>
+ </property>
+ <property stdset="1">
+ <name>text</name>
+ <string>Text after</string>
+ </property>
+ </widget>
+ <widget row="0" column="1" >
+ <class>QLineEdit</class>
+ <property stdset="1">
+ <name>name</name>
+ <cstring>textBeforeED</cstring>
+ </property>
+ <property>
+ <name>toolTip</name>
+ <string>Text to place before citation</string>
+ </property>
+ </widget>
+ <widget row="1" column="1" >
+ <class>QLineEdit</class>
+ <property stdset="1">
+ <name>name</name>
+ <cstring>textAfterED</cstring>
+ </property>
+ <property>
+ <name>toolTip</name>
+ <string>Text to place after citation</string>
+ </property>
+ </widget>
+ </grid>
+ </widget>
+ <widget>
+ <class>QLayoutWidget</class>
+ <property stdset="1">
+ <name>name</name>
+ <cstring>Layout6</cstring>
+ </property>
+ <hbox>
+ <property stdset="1">
+ <name>margin</name>
+ <number>0</number>
+ </property>
+ <property stdset="1">
+ <name>spacing</name>
+ <number>6</number>
+ </property>
+ <widget>
+ <class>QPushButton</class>
+ <property stdset="1">
+ <name>name</name>
+ <cstring>restorePB</cstring>
+ </property>
+ <property stdset="1">
+ <name>text</name>
+ <string>&Restore</string>
+ </property>
+ </widget>
+ <spacer>
+ <property>
+ <name>name</name>
+ <cstring>Spacer4</cstring>
+ </property>
+ <property stdset="1">
+ <name>orientation</name>
+ <enum>Horizontal</enum>
+ </property>
+ <property stdset="1">
+ <name>sizeType</name>
+ <enum>Expanding</enum>
+ </property>
+ <property>
+ <name>sizeHint</name>
+ <size>
+ <width>20</width>
+ <height>20</height>
+ </size>
+ </property>
+ </spacer>
+ <widget>
+ <class>QPushButton</class>
+ <property stdset="1">
+ <name>name</name>
+ <cstring>okPB</cstring>
+ </property>
+ <property stdset="1">
+ <name>text</name>
+ <string>OK</string>
+ </property>
+ <property stdset="1">
+ <name>default</name>
+ <bool>true</bool>
+ </property>
+ </widget>
+ <widget>
+ <class>QPushButton</class>
+ <property stdset="1">
+ <name>name</name>
+ <cstring>applyPB</cstring>
+ </property>
+ <property stdset="1">
+ <name>text</name>
+ <string>&Apply</string>
+ </property>
+ </widget>
+ <widget>
+ <class>QPushButton</class>
+ <property stdset="1">
+ <name>name</name>
+ <cstring>cancelPB</cstring>
+ </property>
+ <property stdset="1">
+ <name>text</name>
+ <string>Cancel</string>
+ </property>
+ </widget>
+ </hbox>
+ </widget>
+ </vbox>
+</widget>
+<images>
+ <image>
+ <name>image0</name>
+ <data format="XPM.GZ" length="2333">789cadd4c96edb301006e0bb9f42086f413191a895287ac8be3b71f6a4e88112a57889b33a7116f4dd4bcd8c18a0755119a8193bf8cc9f22458ebcb4e85d1cee7b8b4b9da7899e0c0aafe8eb476fd13c8fc76fdf7f7cfbe82c48e9d9bf34f5e4c297ce426fe2155ef7eeb6ac01da42f8f84217ce197acc8ec862c4ce02ca1fb00b76e64ce3a7e4c0676fb1238979c1f3059954e81c9d05051904392c625c3c04e4c88f355ab123b2308d13cc8b21bb2043ea4ce3cfc8b14f1603b64973f43539515988f92edb64d4df27a7015bb3958a307fcf36aac0fe929c0564906ca5312f2ab621c3b933e523b23239f51f917359c4e81d67835e6627eca476e0a701af2f66c7ec1e59c57cfd53b28e731a7f41ce4b43f3bd930bc93e616b83f52500fd397fc8d6ec63b2e13c6cd6967eb39ff04476f35d928de43cd68b54cdf9c10b5ba5745e37e4e6bce0b07618b8fe15b25bff2e3b613fb29bf5bd91ddfc13b4d225efff3eb9d97f21c8a52c13ecbfaa1d05ce3e3b61633d45daadf78eecf66ba376acdd7e603d25b2a92fd823bbf5e2f390681df0f9617da5a1527cbedbeca69e1ed0b935e50764377e956cca92aeff5a3b0bddfd8fc86e7deb647bbf94bf45e7a6b9ff35729954e4e7da85a96455a1f1f933a5333ecf15bee8c7ac7dfb7f7910a0dbe76d3a87a26ddea60d946df3365dc135f4dbe56d7a004318c10d8cff9de7f42ddcc13d68aba68d67e5edf70f987e842798d8ffcf5643fbf902d33ff336fd8ae93778876558815558b36d1d366013b67ecfdbf4b6bdcbfadaefb063db32ecc21eb67de8cec81fc021f4e0088ee104f39fed7456de8e98c2199cdbfe7ac4857d5fc215f8a899791c118084d0a64e208218127c772185ec2ffb390505d26ea0105ae4a2a0065bcdd9cd38afa930a21495b86e735ecdaa445f0ce6a8b70c9418b6cfe3eece55ffbd8918cd979fdde6cefffcdaf90529306585</data>
+ </image>
+ <image>
+ <name>image1</name>
+ <data format="XPM.GZ" length="1367">789c75d25b6fda301407f0773e45046f68a2498843a2690f40c325e5d6945693a63d247602e65eee61da779f8f8fbd02dd0e28ca8fbf8f6d9c3c948defa3be517e28ecf6f19e53834ee3ad516687e532fff1f3dbaf42d1b60df125a66115bf148a15831a83f52a85fb89b82f99b28025a0e599e2038c81b6a93995f44d8a4c8055cb322dd9bb0192d8f66cc933d04bf4e00ce95a24060e803e351d5cf7048ca9dec61a98380e75e486fb924c0f1e232d07d70d91b6e211a9170a80945469554e1521f5cc5d24319107a4eb63ef5ed3b5813b45867c43d6582d013e4a3242884c9b8a0cd941ea5d6d9135cb954c91499a306003c8884b70705d516de3a2a8b6d143eaa95e1449ad0a1c2afac895a2da732e99eadeb6a2ea1d2932e412e9114f922afa9e9c6a81f42de4133075756feb2f653a47fa0407cf1499ef005f91cc6604f82e99ea9401b32c8d53f9023f23b338cb805c314356fe591f492956759f2494c94ab3c96d32a57c369b2f16cbd57a33b94e44f0beddeef687c3f174c6089384f2459ee7977aa3f918a8482625d191e7bcd5ce2f1dde0d319249cc664f39e722ea896bb73fb84e86794bfc38e2cfbc19dc24f3e1a50d11e7cde836590ceb797b24824eb77b97bc342e3dd91305e3aba4c456db6647acd11151d8bfee795d1d0358a31bc9e82a795b9fc280475110865cb47cfc9fca64733e85a2c6613f54813e3788fa58839b7393d100eb7c7bd610e9ba7b3e22d2f5e969ffff3df894fcfe5af8036ac14b55</data>
+ </image>
+ <image>
+ <name>image2</name>
+ <data format="XPM.GZ" length="2333">789cc5d4c96edb301006e0bb9f42086f413191686d44d143f67ddf53f4409192b7388be3c4498abe7ba99911112768e34b5133877ce63f143779613eb838d80de6175a0f633dee99c074f52898b78fc3e1cbf71fdf7eb6e6a40cdc5f960572ee4b6bee701c9860eff6a6ac01a18308f1838ebc73b464c7ec2b761e515eb30d7bc59bf2961c85643160c712f3a260e752613e43e791610b72db243879b821c761a2d16376cc7e699c52fe926dc8a2ef4df92e3909d9176c9b15e87372aaf236d677d836a7fe5d7216b1cfd84ac5e823b65506bd4cce23f6035b69caefb02d7be84df953b2b205f55f930b6912f4c8dba237d92959e079456116f1fc5276c2ee905542e38b8aac9382c6db2217a5a5e73d918d644fd8dad2fd5a42fbe7c3335bb3efc996f3a2575b867e3f37c8fe7909d94a1e7f0fad9af3135db6caf0bce090eccfcbd46e47beff84ece71fb353f61dbb59cf23d93fff18ad7449fb2f4ab2dfff6d7229cb14fbf13ec751635864a7ec03b4f6f35d2737fb25f07d4ab4df8ffddaa96cee9700b29fef2a5aeb88cfefb576d6568aef4fc16eee13ee7f563853fe96ecebdb645b96343eae376f37eb873572333f61c86ebd94c7f73f2f6cb37e452ed38a9cd736b6925585c6fb674b6f7c7f2bfcd08fd9eced7fe541809e3defd20518b0b3e55dba840a3ad0fd58f131efd23de8c300ae610837ef2bdee75dfa16d377700f237880f174c574dea71fe10926aee2d955bcbcad789b77e9571efbc98d3d72158bb004cb6e562b1ff32ebdea56b906ebb0019b98df7215dbb003bb6e567a3aefd27bb00f07700847700c2758318153388373b8804bd77f35950f21c226dd7f036843ecf209a490b96feaef4308ffb89f3928013012426851ccb0ff7dcabbd5a6b3e585c1fcfd8ce3e7c28a525430119d59f2a22b7a2e59b7be187c9a9760c5801aac40f459feefed9fe77f7d6dfd06af616644</data>
+ </image>
+ <image>
+ <name>image3</name>
+ <data format="XPM.GZ" length="1337">789ca5d2cb6ee2301480e13d4f11c10e8da6101293a89a45e9fd02a59745a5aa0bc7760ab4909424b4a1eabbd7e71c9b409559d562914fbf8d4dcc5edb79180f9df65e23cb793e158e98f0a5d396c57c5e3e3efdfb6c345dd7d11f2f70bacd3f8de65f4738a364a1e059e9e7560707b0850c7ac27781d744cf63c80b43c138b024f6fdd003ae0c43e288188611f2c45046129811235720ef0c193131e4c46343257d6041142ef114d8ed301944c017a23dd587a10c05f01c19b06e1f279f19fa410f288981cf71ed3dd1eebb24da7d5343538f806e27e2c4055130e21019dab5b7c05ed7324786924bbc140ef45dce05d60324b7efea90a8bf1927df001997ae62c035b0dfb3c778230a45754eb49367c020928c3801869ead0343ae70a367a4b093a740ee4945758cd4fbc458df8191548c780514bee2c44b62ecc6313002ca4d8d81b092aa00c61bbe2271e09fb976fcb2b4cca8293c1242ffae9a123f4fa6b397baf23a5f24697d795b66f97f4a91e5abdd42877ad725fd50386c51e57a7dc0078747d9f1c9eaf4ecfc625374ba8caf06c324cb92341d5dabad7d5439beb9d5212b720ad509742a92adb07536487755d83eb54ef755d879d7aa9c5561f7165459851ff7a3aaf0db3bfd59bef61bdf12452a24</data>
+ </image>
+</images>
+<connections>
+ <connection>
+ <sender>addPB</sender>
+ <signal>clicked()</signal>
+ <receiver>QCitationDialogBase</receiver>
+ <slot>slotAddClicked()</slot>
+ </connection>
+ <connection>
+ <sender>delPB</sender>
+ <signal>clicked()</signal>
+ <receiver>QCitationDialogBase</receiver>
+ <slot>slotDelClicked()</slot>
+ </connection>
+ <connection>
+ <sender>downPB</sender>
+ <signal>clicked()</signal>
+ <receiver>QCitationDialogBase</receiver>
+ <slot>slotDownClicked()</slot>
+ </connection>
+ <connection>
+ <sender>restorePB</sender>
+ <signal>clicked()</signal>
+ <receiver>QCitationDialogBase</receiver>
+ <slot>slotRestoreClicked()</slot>
+ </connection>
+ <connection>
+ <sender>previousPB</sender>
+ <signal>clicked()</signal>
+ <receiver>QCitationDialogBase</receiver>
+ <slot>slotPreviousClicked()</slot>
+ </connection>
+ <connection>
+ <sender>nextPB</sender>
+ <signal>clicked()</signal>
+ <receiver>QCitationDialogBase</receiver>
+ <slot>slotNextClicked()</slot>
+ </connection>
+ <connection>
+ <sender>citationStyleCO</sender>
+ <signal>activated(int)</signal>
+ <receiver>QCitationDialogBase</receiver>
+ <slot>slotCitationStyleSelected(int)</slot>
+ </connection>
+ <connection>
+ <sender>textBeforeED</sender>
+ <signal>returnPressed()</signal>
+ <receiver>QCitationDialogBase</receiver>
+ <slot>slotTextBeforeReturn()</slot>
+ </connection>
+ <connection>
+ <sender>textAfterED</sender>
+ <signal>returnPressed()</signal>
+ <receiver>QCitationDialogBase</receiver>
+ <slot>slotTextAfterReturn()</slot>
+ </connection>
+ <connection>
+ <sender>bibLB</sender>
+ <signal>highlighted(int)</signal>
+ <receiver>QCitationDialogBase</receiver>
+ <slot>slotBibSelected(int)</slot>
+ </connection>
+ <connection>
+ <sender>citeLB</sender>
+ <signal>highlighted(int)</signal>
+ <receiver>QCitationDialogBase</receiver>
+ <slot>slotCiteSelected(int)</slot>
+ </connection>
+ <connection>
+ <sender>upPB</sender>
+ <signal>clicked()</signal>
+ <receiver>QCitationDialogBase</receiver>
+ <slot>slotUpClicked()</slot>
+ </connection>
+ <slot access="protected">slotAddClicked()</slot>
+ <slot access="protected">slotBibSelected(int)</slot>
+ <slot access="protected">slotCitationStyleSelected(int)</slot>
+ <slot access="protected">slotCiteSelected(int)</slot>
+ <slot access="protected">slotDelClicked()</slot>
+ <slot access="protected">slotDownClicked()</slot>
+ <slot access="protected">slotUpClicked()</slot>
+ <slot access="protected">slotNextClicked()</slot>
+ <slot access="protected">slotPreviousClicked()</slot>
+ <slot access="protected">slotRestoreClicked()</slot>
+ <slot access="protected">slotSearchTypeSelected(bool)</slot>
+ <slot access="protected">slotTextAfterReturn()</slot>
+ <slot access="protected">slotTextBeforeReturn()</slot>
+</connections>
+</UI>
--- /dev/null
+<!DOCTYPE UI><UI>
+<class>QDocumentDialogBase</class>
+<widget>
+ <class>QDialog</class>
+ <property stdset="1">
+ <name>name</name>
+ <cstring>QDocumentDialogBase</cstring>
+ </property>
+ <property stdset="1">
+ <name>geometry</name>
+ <rect>
+ <x>0</x>
+ <y>0</y>
+ <width>538</width>
+ <height>437</height>
+ </rect>
+ </property>
+ <property stdset="1">
+ <name>caption</name>
+ <string>Document Layout</string>
+ </property>
+ <vbox>
+ <property stdset="1">
+ <name>margin</name>
+ <number>11</number>
+ </property>
+ <property stdset="1">
+ <name>spacing</name>
+ <number>6</number>
+ </property>
+ <widget>
+ <class>QTabWidget</class>
+ <property stdset="1">
+ <name>name</name>
+ <cstring>TabWidget2</cstring>
+ </property>
+ <property>
+ <name>layoutMargin</name>
+ </property>
+ <widget>
+ <class>QWidget</class>
+ <property stdset="1">
+ <name>name</name>
+ <cstring>Widget2</cstring>
+ </property>
+ <attribute>
+ <name>title</name>
+ <string>Document</string>
+ </attribute>
+ <hbox>
+ <property stdset="1">
+ <name>margin</name>
+ <number>-1</number>
+ </property>
+ <property stdset="1">
+ <name>spacing</name>
+ <number>-1</number>
+ </property>
+ <widget>
+ <class>QLayoutWidget</class>
+ <property stdset="1">
+ <name>name</name>
+ <cstring>Layout33</cstring>
+ </property>
+ <vbox>
+ <property stdset="1">
+ <name>margin</name>
+ <number>0</number>
+ </property>
+ <property stdset="1">
+ <name>spacing</name>
+ <number>6</number>
+ </property>
+ <widget>
+ <class>QLayoutWidget</class>
+ <property stdset="1">
+ <name>name</name>
+ <cstring>Layout32</cstring>
+ </property>
+ <grid>
+ <property stdset="1">
+ <name>margin</name>
+ <number>0</number>
+ </property>
+ <property stdset="1">
+ <name>spacing</name>
+ <number>6</number>
+ </property>
+ <widget row="4" column="1" >
+ <class>QLineEdit</class>
+ <property stdset="1">
+ <name>name</name>
+ <cstring>docExtraED</cstring>
+ </property>
+ </widget>
+ <widget row="2" column="0" >
+ <class>QLabel</class>
+ <property stdset="1">
+ <name>name</name>
+ <cstring>fontsLA</cstring>
+ </property>
+ <property stdset="1">
+ <name>text</name>
+ <string>&Fonts:</string>
+ </property>
+ <property>
+ <name>buddy</name>
+ <cstring>fontsCO</cstring>
+ </property>
+ </widget>
+ <widget row="1" column="0" >
+ <class>QLabel</class>
+ <property stdset="1">
+ <name>name</name>
+ <cstring>pagestyleLA</cstring>
+ </property>
+ <property stdset="1">
+ <name>text</name>
+ <string>&Pagestyle:</string>
+ </property>
+ <property>
+ <name>buddy</name>
+ <cstring>pagestyleCO</cstring>
+ </property>
+ </widget>
+ <widget row="5" column="0" >
+ <class>QLabel</class>
+ <property stdset="1">
+ <name>name</name>
+ <cstring>defaultSkipLA</cstring>
+ </property>
+ <property stdset="1">
+ <name>text</name>
+ <string>Defa&ult Skip:</string>
+ </property>
+ <property>
+ <name>buddy</name>
+ <cstring>defaultSkipCO</cstring>
+ </property>
+ </widget>
+ <widget row="3" column="0" >
+ <class>QLabel</class>
+ <property stdset="1">
+ <name>name</name>
+ <cstring>fontSizeLA</cstring>
+ </property>
+ <property stdset="1">
+ <name>text</name>
+ <string>F&ont Size:</string>
+ </property>
+ <property>
+ <name>buddy</name>
+ <cstring>fontSizeCO</cstring>
+ </property>
+ </widget>
+ <widget row="1" column="1" >
+ <class>QComboBox</class>
+ <item>
+ <property>
+ <name>text</name>
+ <string>default</string>
+ </property>
+ </item>
+ <item>
+ <property>
+ <name>text</name>
+ <string>empty</string>
+ </property>
+ </item>
+ <item>
+ <property>
+ <name>text</name>
+ <string>plain</string>
+ </property>
+ </item>
+ <item>
+ <property>
+ <name>text</name>
+ <string>headings</string>
+ </property>
+ </item>
+ <item>
+ <property>
+ <name>text</name>
+ <string>fancy</string>
+ </property>
+ </item>
+ <property stdset="1">
+ <name>name</name>
+ <cstring>docPagestyleCO</cstring>
+ </property>
+ </widget>
+ <widget row="6" column="0" >
+ <class>QLabel</class>
+ <property stdset="1">
+ <name>name</name>
+ <cstring>spacingLA</cstring>
+ </property>
+ <property stdset="1">
+ <name>text</name>
+ <string>Spacin&g:</string>
+ </property>
+ <property>
+ <name>buddy</name>
+ <cstring>spacingCO</cstring>
+ </property>
+ </widget>
+ <widget row="4" column="0" >
+ <class>QLabel</class>
+ <property stdset="1">
+ <name>name</name>
+ <cstring>extraOptionsLA</cstring>
+ </property>
+ <property stdset="1">
+ <name>text</name>
+ <string>E&xtra Options:</string>
+ </property>
+ <property>
+ <name>buddy</name>
+ <cstring>extraOptionsED</cstring>
+ </property>
+ </widget>
+ <widget row="0" column="0" >
+ <class>QLabel</class>
+ <property stdset="1">
+ <name>name</name>
+ <cstring>classesLA</cstring>
+ </property>
+ <property stdset="1">
+ <name>text</name>
+ <string>&Class:</string>
+ </property>
+ <property>
+ <name>buddy</name>
+ <cstring>classesCO</cstring>
+ </property>
+ </widget>
+ <widget row="5" column="1" >
+ <class>QLayoutWidget</class>
+ <property stdset="1">
+ <name>name</name>
+ <cstring>Layout13</cstring>
+ </property>
+ <hbox>
+ <property stdset="1">
+ <name>margin</name>
+ <number>0</number>
+ </property>
+ <property stdset="1">
+ <name>spacing</name>
+ <number>6</number>
+ </property>
+ <widget>
+ <class>QComboBox</class>
+ <item>
+ <property>
+ <name>text</name>
+ <string>smallskip</string>
+ </property>
+ </item>
+ <item>
+ <property>
+ <name>text</name>
+ <string>medskip</string>
+ </property>
+ </item>
+ <item>
+ <property>
+ <name>text</name>
+ <string>bigskip</string>
+ </property>
+ </item>
+ <item>
+ <property>
+ <name>text</name>
+ <string>length</string>
+ </property>
+ </item>
+ <property stdset="1">
+ <name>name</name>
+ <cstring>docSkipCO</cstring>
+ </property>
+ </widget>
+ <widget>
+ <class>QLineEdit</class>
+ <property stdset="1">
+ <name>name</name>
+ <cstring>docSkipED</cstring>
+ </property>
+ </widget>
+ </hbox>
+ </widget>
+ <widget row="6" column="1" >
+ <class>QLayoutWidget</class>
+ <property stdset="1">
+ <name>name</name>
+ <cstring>Layout31</cstring>
+ </property>
+ <hbox>
+ <property stdset="1">
+ <name>margin</name>
+ <number>0</number>
+ </property>
+ <property stdset="1">
+ <name>spacing</name>
+ <number>6</number>
+ </property>
+ <widget>
+ <class>QComboBox</class>
+ <item>
+ <property>
+ <name>text</name>
+ <string>Single</string>
+ </property>
+ </item>
+ <item>
+ <property>
+ <name>text</name>
+ <string>OneHalf</string>
+ </property>
+ </item>
+ <item>
+ <property>
+ <name>text</name>
+ <string>Double</string>
+ </property>
+ </item>
+ <item>
+ <property>
+ <name>text</name>
+ <string>Other</string>
+ </property>
+ </item>
+ <property stdset="1">
+ <name>name</name>
+ <cstring>docSpacingCO</cstring>
+ </property>
+ </widget>
+ <widget>
+ <class>QLineEdit</class>
+ <property stdset="1">
+ <name>name</name>
+ <cstring>docSpacingED</cstring>
+ </property>
+ </widget>
+ </hbox>
+ </widget>
+ <widget row="2" column="1" >
+ <class>QComboBox</class>
+ <property stdset="1">
+ <name>name</name>
+ <cstring>docFontsCO</cstring>
+ </property>
+ </widget>
+ <widget row="0" column="1" >
+ <class>QComboBox</class>
+ <property stdset="1">
+ <name>name</name>
+ <cstring>docClassCO</cstring>
+ </property>
+ </widget>
+ <widget row="3" column="1" >
+ <class>QComboBox</class>
+ <item>
+ <property>
+ <name>text</name>
+ <string>default</string>
+ </property>
+ </item>
+ <item>
+ <property>
+ <name>text</name>
+ <string>10</string>
+ </property>
+ </item>
+ <item>
+ <property>
+ <name>text</name>
+ <string>11</string>
+ </property>
+ </item>
+ <item>
+ <property>
+ <name>text</name>
+ <string>12</string>
+ </property>
+ </item>
+ <property stdset="1">
+ <name>name</name>
+ <cstring>docFontSizeCO</cstring>
+ </property>
+ </widget>
+ </grid>
+ </widget>
+ <spacer>
+ <property>
+ <name>name</name>
+ <cstring>Spacer2_2</cstring>
+ </property>
+ <property stdset="1">
+ <name>orientation</name>
+ <enum>Vertical</enum>
+ </property>
+ <property stdset="1">
+ <name>sizeType</name>
+ <enum>Expanding</enum>
+ </property>
+ <property>
+ <name>sizeHint</name>
+ <size>
+ <width>20</width>
+ <height>20</height>
+ </size>
+ </property>
+ </spacer>
+ </vbox>
+ </widget>
+ <widget>
+ <class>QLayoutWidget</class>
+ <property stdset="1">
+ <name>name</name>
+ <cstring>Layout52</cstring>
+ </property>
+ <vbox>
+ <property stdset="1">
+ <name>margin</name>
+ <number>0</number>
+ </property>
+ <property stdset="1">
+ <name>spacing</name>
+ <number>6</number>
+ </property>
+ <widget>
+ <class>QButtonGroup</class>
+ <property stdset="1">
+ <name>name</name>
+ <cstring>sidesBG</cstring>
+ </property>
+ <property stdset="1">
+ <name>title</name>
+ <string>Sides</string>
+ </property>
+ <vbox>
+ <property stdset="1">
+ <name>margin</name>
+ <number>11</number>
+ </property>
+ <property stdset="1">
+ <name>spacing</name>
+ <number>6</number>
+ </property>
+ <widget>
+ <class>QRadioButton</class>
+ <property stdset="1">
+ <name>name</name>
+ <cstring>docSidesOneRB</cstring>
+ </property>
+ <property stdset="1">
+ <name>text</name>
+ <string>O&ne</string>
+ </property>
+ </widget>
+ <widget>
+ <class>QRadioButton</class>
+ <property stdset="1">
+ <name>name</name>
+ <cstring>docSidesTwoRB</cstring>
+ </property>
+ <property stdset="1">
+ <name>text</name>
+ <string>&Two</string>
+ </property>
+ </widget>
+ </vbox>
+ </widget>
+ <widget>
+ <class>QButtonGroup</class>
+ <property stdset="1">
+ <name>name</name>
+ <cstring>columnsBG</cstring>
+ </property>
+ <property stdset="1">
+ <name>title</name>
+ <string>Columns</string>
+ </property>
+ <vbox>
+ <property stdset="1">
+ <name>margin</name>
+ <number>11</number>
+ </property>
+ <property stdset="1">
+ <name>spacing</name>
+ <number>6</number>
+ </property>
+ <widget>
+ <class>QRadioButton</class>
+ <property stdset="1">
+ <name>name</name>
+ <cstring>docColumnsOneRB</cstring>
+ </property>
+ <property stdset="1">
+ <name>text</name>
+ <string>On&e</string>
+ </property>
+ </widget>
+ <widget>
+ <class>QRadioButton</class>
+ <property stdset="1">
+ <name>name</name>
+ <cstring>docColumnsTwoRB</cstring>
+ </property>
+ <property stdset="1">
+ <name>text</name>
+ <string>T&wo</string>
+ </property>
+ </widget>
+ </vbox>
+ </widget>
+ <widget>
+ <class>QButtonGroup</class>
+ <property stdset="1">
+ <name>name</name>
+ <cstring>separationBG</cstring>
+ </property>
+ <property stdset="1">
+ <name>title</name>
+ <string>Separation</string>
+ </property>
+ <vbox>
+ <property stdset="1">
+ <name>margin</name>
+ <number>11</number>
+ </property>
+ <property stdset="1">
+ <name>spacing</name>
+ <number>6</number>
+ </property>
+ <widget>
+ <class>QRadioButton</class>
+ <property stdset="1">
+ <name>name</name>
+ <cstring>docIndentRB</cstring>
+ </property>
+ <property stdset="1">
+ <name>text</name>
+ <string>&Indent</string>
+ </property>
+ </widget>
+ <widget>
+ <class>QRadioButton</class>
+ <property stdset="1">
+ <name>name</name>
+ <cstring>docSkipRB</cstring>
+ </property>
+ <property stdset="1">
+ <name>text</name>
+ <string>S&kip</string>
+ </property>
+ </widget>
+ </vbox>
+ </widget>
+ <spacer>
+ <property>
+ <name>name</name>
+ <cstring>Spacer33</cstring>
+ </property>
+ <property stdset="1">
+ <name>orientation</name>
+ <enum>Vertical</enum>
+ </property>
+ <property stdset="1">
+ <name>sizeType</name>
+ <enum>Expanding</enum>
+ </property>
+ <property>
+ <name>sizeHint</name>
+ <size>
+ <width>20</width>
+ <height>20</height>
+ </size>
+ </property>
+ </spacer>
+ </vbox>
+ </widget>
+ </hbox>
+ </widget>
+ <widget>
+ <class>QWidget</class>
+ <property stdset="1">
+ <name>name</name>
+ <cstring>Widget3</cstring>
+ </property>
+ <attribute>
+ <name>title</name>
+ <string>Paper</string>
+ </attribute>
+ <vbox>
+ <property stdset="1">
+ <name>margin</name>
+ <number>11</number>
+ </property>
+ <property stdset="1">
+ <name>spacing</name>
+ <number>6</number>
+ </property>
+ <spacer>
+ <property>
+ <name>name</name>
+ <cstring>Spacer34</cstring>
+ </property>
+ <property stdset="1">
+ <name>orientation</name>
+ <enum>Vertical</enum>
+ </property>
+ <property stdset="1">
+ <name>sizeType</name>
+ <enum>Expanding</enum>
+ </property>
+ <property>
+ <name>sizeHint</name>
+ <size>
+ <width>20</width>
+ <height>20</height>
+ </size>
+ </property>
+ </spacer>
+ <widget>
+ <class>QLayoutWidget</class>
+ <property stdset="1">
+ <name>name</name>
+ <cstring>Layout19</cstring>
+ </property>
+ <hbox>
+ <property stdset="1">
+ <name>margin</name>
+ <number>0</number>
+ </property>
+ <property stdset="1">
+ <name>spacing</name>
+ <number>6</number>
+ </property>
+ <widget>
+ <class>QLabel</class>
+ <property stdset="1">
+ <name>name</name>
+ <cstring>papersizeLA</cstring>
+ </property>
+ <property stdset="1">
+ <name>text</name>
+ <string>&Papersize:</string>
+ </property>
+ <property>
+ <name>buddy</name>
+ <cstring>papersizeCO</cstring>
+ </property>
+ </widget>
+ <widget>
+ <class>QComboBox</class>
+ <item>
+ <property>
+ <name>text</name>
+ <string>Default</string>
+ </property>
+ </item>
+ <item>
+ <property>
+ <name>text</name>
+ <string>Custom</string>
+ </property>
+ </item>
+ <item>
+ <property>
+ <name>text</name>
+ <string>USletter</string>
+ </property>
+ </item>
+ <item>
+ <property>
+ <name>text</name>
+ <string>USlegal</string>
+ </property>
+ </item>
+ <item>
+ <property>
+ <name>text</name>
+ <string>USexecutive</string>
+ </property>
+ </item>
+ <item>
+ <property>
+ <name>text</name>
+ <string>A3</string>
+ </property>
+ </item>
+ <item>
+ <property>
+ <name>text</name>
+ <string>A5</string>
+ </property>
+ </item>
+ <item>
+ <property>
+ <name>text</name>
+ <string>B3</string>
+ </property>
+ </item>
+ <item>
+ <property>
+ <name>text</name>
+ <string>B4</string>
+ </property>
+ </item>
+ <item>
+ <property>
+ <name>text</name>
+ <string>B5</string>
+ </property>
+ </item>
+ <property stdset="1">
+ <name>name</name>
+ <cstring>papersize2CO</cstring>
+ </property>
+ </widget>
+ <spacer>
+ <property>
+ <name>name</name>
+ <cstring>Spacer5</cstring>
+ </property>
+ <property stdset="1">
+ <name>orientation</name>
+ <enum>Horizontal</enum>
+ </property>
+ <property stdset="1">
+ <name>sizeType</name>
+ <enum>Expanding</enum>
+ </property>
+ <property>
+ <name>sizeHint</name>
+ <size>
+ <width>20</width>
+ <height>20</height>
+ </size>
+ </property>
+ </spacer>
+ <widget>
+ <class>QLabel</class>
+ <property stdset="1">
+ <name>name</name>
+ <cstring>specialLA</cstring>
+ </property>
+ <property stdset="1">
+ <name>text</name>
+ <string>&Special:</string>
+ </property>
+ <property>
+ <name>buddy</name>
+ <cstring>specialCO</cstring>
+ </property>
+ </widget>
+ <widget>
+ <class>QComboBox</class>
+ <item>
+ <property>
+ <name>text</name>
+ <string>None</string>
+ </property>
+ </item>
+ <item>
+ <property>
+ <name>text</name>
+ <string>A4 small Margins (only portrait)</string>
+ </property>
+ </item>
+ <item>
+ <property>
+ <name>text</name>
+ <string>A4 very small Margins (only portrait)</string>
+ </property>
+ </item>
+ <item>
+ <property>
+ <name>text</name>
+ <string>A4 very wide margins (only portrait)</string>
+ </property>
+ </item>
+ <property stdset="1">
+ <name>name</name>
+ <cstring>paperPackageCO</cstring>
+ </property>
+ </widget>
+ </hbox>
+ </widget>
+ <spacer>
+ <property>
+ <name>name</name>
+ <cstring>Spacer35</cstring>
+ </property>
+ <property stdset="1">
+ <name>orientation</name>
+ <enum>Vertical</enum>
+ </property>
+ <property stdset="1">
+ <name>sizeType</name>
+ <enum>Expanding</enum>
+ </property>
+ <property>
+ <name>sizeHint</name>
+ <size>
+ <width>20</width>
+ <height>20</height>
+ </size>
+ </property>
+ </spacer>
+ <widget>
+ <class>QLayoutWidget</class>
+ <property stdset="1">
+ <name>name</name>
+ <cstring>Layout23</cstring>
+ </property>
+ <hbox>
+ <property stdset="1">
+ <name>margin</name>
+ <number>0</number>
+ </property>
+ <property stdset="1">
+ <name>spacing</name>
+ <number>6</number>
+ </property>
+ <spacer>
+ <property>
+ <name>name</name>
+ <cstring>Spacer6</cstring>
+ </property>
+ <property stdset="1">
+ <name>orientation</name>
+ <enum>Horizontal</enum>
+ </property>
+ <property stdset="1">
+ <name>sizeType</name>
+ <enum>Expanding</enum>
+ </property>
+ <property>
+ <name>sizeHint</name>
+ <size>
+ <width>20</width>
+ <height>20</height>
+ </size>
+ </property>
+ </spacer>
+ <widget>
+ <class>QCheckBox</class>
+ <property stdset="1">
+ <name>name</name>
+ <cstring>useGeometryCB</cstring>
+ </property>
+ <property stdset="1">
+ <name>text</name>
+ <string>&Use Geometry Package</string>
+ </property>
+ </widget>
+ <spacer>
+ <property>
+ <name>name</name>
+ <cstring>Spacer7</cstring>
+ </property>
+ <property stdset="1">
+ <name>orientation</name>
+ <enum>Horizontal</enum>
+ </property>
+ <property stdset="1">
+ <name>sizeType</name>
+ <enum>Expanding</enum>
+ </property>
+ <property>
+ <name>sizeHint</name>
+ <size>
+ <width>20</width>
+ <height>20</height>
+ </size>
+ </property>
+ </spacer>
+ </hbox>
+ </widget>
+ <spacer>
+ <property>
+ <name>name</name>
+ <cstring>Spacer36</cstring>
+ </property>
+ <property stdset="1">
+ <name>orientation</name>
+ <enum>Vertical</enum>
+ </property>
+ <property stdset="1">
+ <name>sizeType</name>
+ <enum>Expanding</enum>
+ </property>
+ <property>
+ <name>sizeHint</name>
+ <size>
+ <width>20</width>
+ <height>20</height>
+ </size>
+ </property>
+ </spacer>
+ <widget>
+ <class>QLayoutWidget</class>
+ <property stdset="1">
+ <name>name</name>
+ <cstring>Layout22</cstring>
+ </property>
+ <hbox>
+ <property stdset="1">
+ <name>margin</name>
+ <number>0</number>
+ </property>
+ <property stdset="1">
+ <name>spacing</name>
+ <number>6</number>
+ </property>
+ <widget>
+ <class>QLayoutWidget</class>
+ <property stdset="1">
+ <name>name</name>
+ <cstring>Layout20</cstring>
+ </property>
+ <vbox>
+ <property stdset="1">
+ <name>margin</name>
+ <number>0</number>
+ </property>
+ <property stdset="1">
+ <name>spacing</name>
+ <number>6</number>
+ </property>
+ <widget>
+ <class>QButtonGroup</class>
+ <property stdset="1">
+ <name>name</name>
+ <cstring>orientationBG</cstring>
+ </property>
+ <property stdset="1">
+ <name>title</name>
+ <string>Orientation</string>
+ </property>
+ <vbox>
+ <property stdset="1">
+ <name>margin</name>
+ <number>11</number>
+ </property>
+ <property stdset="1">
+ <name>spacing</name>
+ <number>6</number>
+ </property>
+ <widget>
+ <class>QRadioButton</class>
+ <property stdset="1">
+ <name>name</name>
+ <cstring>portraitRB</cstring>
+ </property>
+ <property stdset="1">
+ <name>text</name>
+ <string>P&ortrait</string>
+ </property>
+ </widget>
+ <widget>
+ <class>QRadioButton</class>
+ <property stdset="1">
+ <name>name</name>
+ <cstring>landscapeRB</cstring>
+ </property>
+ <property stdset="1">
+ <name>text</name>
+ <string>&Landscape</string>
+ </property>
+ </widget>
+ </vbox>
+ </widget>
+ <widget>
+ <class>QGroupBox</class>
+ <property stdset="1">
+ <name>name</name>
+ <cstring>marginsGB</cstring>
+ </property>
+ <property stdset="1">
+ <name>title</name>
+ <string>Margins</string>
+ </property>
+ <grid>
+ <property stdset="1">
+ <name>margin</name>
+ <number>11</number>
+ </property>
+ <property stdset="1">
+ <name>spacing</name>
+ <number>6</number>
+ </property>
+ <widget row="3" column="0" >
+ <class>QLabel</class>
+ <property stdset="1">
+ <name>name</name>
+ <cstring>marginRightLA</cstring>
+ </property>
+ <property stdset="1">
+ <name>text</name>
+ <string>&Right:</string>
+ </property>
+ <property>
+ <name>buddy</name>
+ <cstring>marginRightED</cstring>
+ </property>
+ </widget>
+ <widget row="2" column="1" >
+ <class>QLineEdit</class>
+ <property stdset="1">
+ <name>name</name>
+ <cstring>leftMarginED</cstring>
+ </property>
+ </widget>
+ <widget row="1" column="1" >
+ <class>QLineEdit</class>
+ <property stdset="1">
+ <name>name</name>
+ <cstring>bottomMarginED</cstring>
+ </property>
+ </widget>
+ <widget row="3" column="1" >
+ <class>QLineEdit</class>
+ <property stdset="1">
+ <name>name</name>
+ <cstring>rightMarginED</cstring>
+ </property>
+ </widget>
+ <widget row="1" column="0" >
+ <class>QLabel</class>
+ <property stdset="1">
+ <name>name</name>
+ <cstring>marginBottomLA</cstring>
+ </property>
+ <property stdset="1">
+ <name>text</name>
+ <string>&Bottom:</string>
+ </property>
+ <property>
+ <name>buddy</name>
+ <cstring>marginBottomED</cstring>
+ </property>
+ </widget>
+ <widget row="0" column="1" >
+ <class>QLineEdit</class>
+ <property stdset="1">
+ <name>name</name>
+ <cstring>topMarginED</cstring>
+ </property>
+ </widget>
+ <widget row="2" column="0" >
+ <class>QLabel</class>
+ <property stdset="1">
+ <name>name</name>
+ <cstring>marginLeftL</cstring>
+ </property>
+ <property stdset="1">
+ <name>text</name>
+ <string>L&eft:</string>
+ </property>
+ <property>
+ <name>buddy</name>
+ <cstring>marginLeftED</cstring>
+ </property>
+ </widget>
+ <widget row="0" column="0" >
+ <class>QLabel</class>
+ <property stdset="1">
+ <name>name</name>
+ <cstring>marginTopLA</cstring>
+ </property>
+ <property stdset="1">
+ <name>text</name>
+ <string>&Top:</string>
+ </property>
+ <property>
+ <name>buddy</name>
+ <cstring>marginTopED</cstring>
+ </property>
+ </widget>
+ </grid>
+ </widget>
+ </vbox>
+ </widget>
+ <widget>
+ <class>QLayoutWidget</class>
+ <property stdset="1">
+ <name>name</name>
+ <cstring>Layout21</cstring>
+ </property>
+ <vbox>
+ <property stdset="1">
+ <name>margin</name>
+ <number>0</number>
+ </property>
+ <property stdset="1">
+ <name>spacing</name>
+ <number>6</number>
+ </property>
+ <widget>
+ <class>QGroupBox</class>
+ <property stdset="1">
+ <name>name</name>
+ <cstring>customPapersizeGB</cstring>
+ </property>
+ <property stdset="1">
+ <name>title</name>
+ <string>Custom Papersize</string>
+ </property>
+ <grid>
+ <property stdset="1">
+ <name>margin</name>
+ <number>11</number>
+ </property>
+ <property stdset="1">
+ <name>spacing</name>
+ <number>6</number>
+ </property>
+ <widget row="0" column="0" >
+ <class>QLabel</class>
+ <property stdset="1">
+ <name>name</name>
+ <cstring>customWidthLA</cstring>
+ </property>
+ <property stdset="1">
+ <name>text</name>
+ <string>&Width:</string>
+ </property>
+ <property>
+ <name>buddy</name>
+ <cstring>customWidthED</cstring>
+ </property>
+ </widget>
+ <widget row="0" column="1" >
+ <class>QLineEdit</class>
+ <property stdset="1">
+ <name>name</name>
+ <cstring>customWidthED</cstring>
+ </property>
+ </widget>
+ <widget row="1" column="1" >
+ <class>QLineEdit</class>
+ <property stdset="1">
+ <name>name</name>
+ <cstring>customHeightED</cstring>
+ </property>
+ </widget>
+ <widget row="1" column="0" >
+ <class>QLabel</class>
+ <property stdset="1">
+ <name>name</name>
+ <cstring>customHeightLA</cstring>
+ </property>
+ <property stdset="1">
+ <name>text</name>
+ <string>&Height:</string>
+ </property>
+ <property>
+ <name>buddy</name>
+ <cstring>customHeightED</cstring>
+ </property>
+ </widget>
+ </grid>
+ </widget>
+ <widget>
+ <class>QGroupBox</class>
+ <property stdset="1">
+ <name>name</name>
+ <cstring>headsepBG</cstring>
+ </property>
+ <property stdset="1">
+ <name>title</name>
+ <string>Foot/Head Margins</string>
+ </property>
+ <grid>
+ <property stdset="1">
+ <name>margin</name>
+ <number>11</number>
+ </property>
+ <property stdset="1">
+ <name>spacing</name>
+ <number>6</number>
+ </property>
+ <widget row="0" column="1" >
+ <class>QLineEdit</class>
+ <property stdset="1">
+ <name>name</name>
+ <cstring>headHeightED</cstring>
+ </property>
+ </widget>
+ <widget row="1" column="1" >
+ <class>QLineEdit</class>
+ <property stdset="1">
+ <name>name</name>
+ <cstring>headSepED</cstring>
+ </property>
+ </widget>
+ <widget row="2" column="1" >
+ <class>QLineEdit</class>
+ <property stdset="1">
+ <name>name</name>
+ <cstring>footSkipED</cstring>
+ </property>
+ </widget>
+ <widget row="2" column="0" >
+ <class>QLabel</class>
+ <property stdset="1">
+ <name>name</name>
+ <cstring>footskipLA</cstring>
+ </property>
+ <property stdset="1">
+ <name>text</name>
+ <string>&Footskip:</string>
+ </property>
+ <property>
+ <name>buddy</name>
+ <cstring>footskipED</cstring>
+ </property>
+ </widget>
+ <widget row="1" column="0" >
+ <class>QLabel</class>
+ <property stdset="1">
+ <name>name</name>
+ <cstring>headsepLA</cstring>
+ </property>
+ <property stdset="1">
+ <name>text</name>
+ <string>Hea&dsep:</string>
+ </property>
+ <property>
+ <name>buddy</name>
+ <cstring>headsepED</cstring>
+ </property>
+ </widget>
+ <widget row="0" column="0" >
+ <class>QLabel</class>
+ <property stdset="1">
+ <name>name</name>
+ <cstring>headheightLA</cstring>
+ </property>
+ <property stdset="1">
+ <name>text</name>
+ <string>Headhe&ight:</string>
+ </property>
+ <property>
+ <name>buddy</name>
+ <cstring>headheightED</cstring>
+ </property>
+ </widget>
+ </grid>
+ </widget>
+ </vbox>
+ </widget>
+ </hbox>
+ </widget>
+ <spacer>
+ <property>
+ <name>name</name>
+ <cstring>Spacer37</cstring>
+ </property>
+ <property stdset="1">
+ <name>orientation</name>
+ <enum>Vertical</enum>
+ </property>
+ <property stdset="1">
+ <name>sizeType</name>
+ <enum>Expanding</enum>
+ </property>
+ <property>
+ <name>sizeHint</name>
+ <size>
+ <width>20</width>
+ <height>20</height>
+ </size>
+ </property>
+ </spacer>
+ </vbox>
+ </widget>
+ <widget>
+ <class>QWidget</class>
+ <property stdset="1">
+ <name>name</name>
+ <cstring>Widget4</cstring>
+ </property>
+ <attribute>
+ <name>title</name>
+ <string>Language</string>
+ </attribute>
+ <hbox>
+ <property stdset="1">
+ <name>margin</name>
+ <number>11</number>
+ </property>
+ <property stdset="1">
+ <name>spacing</name>
+ <number>6</number>
+ </property>
+ <spacer>
+ <property>
+ <name>name</name>
+ <cstring>Spacer10</cstring>
+ </property>
+ <property stdset="1">
+ <name>orientation</name>
+ <enum>Horizontal</enum>
+ </property>
+ <property stdset="1">
+ <name>sizeType</name>
+ <enum>Expanding</enum>
+ </property>
+ <property>
+ <name>sizeHint</name>
+ <size>
+ <width>20</width>
+ <height>20</height>
+ </size>
+ </property>
+ </spacer>
+ <widget>
+ <class>QLayoutWidget</class>
+ <property stdset="1">
+ <name>name</name>
+ <cstring>Layout53</cstring>
+ </property>
+ <vbox>
+ <property stdset="1">
+ <name>margin</name>
+ <number>0</number>
+ </property>
+ <property stdset="1">
+ <name>spacing</name>
+ <number>6</number>
+ </property>
+ <spacer>
+ <property>
+ <name>name</name>
+ <cstring>Spacer12</cstring>
+ </property>
+ <property stdset="1">
+ <name>orientation</name>
+ <enum>Vertical</enum>
+ </property>
+ <property stdset="1">
+ <name>sizeType</name>
+ <enum>Expanding</enum>
+ </property>
+ <property>
+ <name>sizeHint</name>
+ <size>
+ <width>20</width>
+ <height>20</height>
+ </size>
+ </property>
+ </spacer>
+ <widget>
+ <class>QLayoutWidget</class>
+ <property stdset="1">
+ <name>name</name>
+ <cstring>Layout26</cstring>
+ </property>
+ <hbox>
+ <property stdset="1">
+ <name>margin</name>
+ <number>0</number>
+ </property>
+ <property stdset="1">
+ <name>spacing</name>
+ <number>6</number>
+ </property>
+ <widget>
+ <class>QLabel</class>
+ <property stdset="1">
+ <name>name</name>
+ <cstring>languageLA</cstring>
+ </property>
+ <property stdset="1">
+ <name>text</name>
+ <string>&Language:</string>
+ </property>
+ <property>
+ <name>buddy</name>
+ <cstring>languageCO</cstring>
+ </property>
+ </widget>
+ <widget>
+ <class>QComboBox</class>
+ <property stdset="1">
+ <name>name</name>
+ <cstring>languageCO</cstring>
+ </property>
+ </widget>
+ </hbox>
+ </widget>
+ <spacer>
+ <property>
+ <name>name</name>
+ <cstring>Spacer38</cstring>
+ </property>
+ <property stdset="1">
+ <name>orientation</name>
+ <enum>Vertical</enum>
+ </property>
+ <property stdset="1">
+ <name>sizeType</name>
+ <enum>Expanding</enum>
+ </property>
+ <property>
+ <name>sizeHint</name>
+ <size>
+ <width>20</width>
+ <height>20</height>
+ </size>
+ </property>
+ </spacer>
+ <widget>
+ <class>QLayoutWidget</class>
+ <property stdset="1">
+ <name>name</name>
+ <cstring>Layout27</cstring>
+ </property>
+ <hbox>
+ <property stdset="1">
+ <name>margin</name>
+ <number>0</number>
+ </property>
+ <property stdset="1">
+ <name>spacing</name>
+ <number>6</number>
+ </property>
+ <widget>
+ <class>QLabel</class>
+ <property stdset="1">
+ <name>name</name>
+ <cstring>encodingLA</cstring>
+ </property>
+ <property stdset="1">
+ <name>text</name>
+ <string>Enco&ding:</string>
+ </property>
+ <property>
+ <name>buddy</name>
+ <cstring>encodingCO</cstring>
+ </property>
+ </widget>
+ <widget>
+ <class>QComboBox</class>
+ <item>
+ <property>
+ <name>text</name>
+ <string>default</string>
+ </property>
+ </item>
+ <item>
+ <property>
+ <name>text</name>
+ <string>auto</string>
+ </property>
+ </item>
+ <item>
+ <property>
+ <name>text</name>
+ <string>latin1</string>
+ </property>
+ </item>
+ <item>
+ <property>
+ <name>text</name>
+ <string>latin2</string>
+ </property>
+ </item>
+ <item>
+ <property>
+ <name>text</name>
+ <string>latin5</string>
+ </property>
+ </item>
+ <item>
+ <property>
+ <name>text</name>
+ <string>koi8-r</string>
+ </property>
+ </item>
+ <item>
+ <property>
+ <name>text</name>
+ <string>koi8-u</string>
+ </property>
+ </item>
+ <item>
+ <property>
+ <name>text</name>
+ <string>cp866</string>
+ </property>
+ </item>
+ <item>
+ <property>
+ <name>text</name>
+ <string>cp1251</string>
+ </property>
+ </item>
+ <item>
+ <property>
+ <name>text</name>
+ <string>iso88595</string>
+ </property>
+ </item>
+ <property stdset="1">
+ <name>name</name>
+ <cstring>inputEncCO</cstring>
+ </property>
+ </widget>
+ </hbox>
+ </widget>
+ <spacer>
+ <property>
+ <name>name</name>
+ <cstring>Spacer9</cstring>
+ </property>
+ <property stdset="1">
+ <name>orientation</name>
+ <enum>Vertical</enum>
+ </property>
+ <property stdset="1">
+ <name>sizeType</name>
+ <enum>Expanding</enum>
+ </property>
+ <property>
+ <name>sizeHint</name>
+ <size>
+ <width>20</width>
+ <height>20</height>
+ </size>
+ </property>
+ </spacer>
+ <widget>
+ <class>QButtonGroup</class>
+ <property stdset="1">
+ <name>name</name>
+ <cstring>quoteStyleBG</cstring>
+ </property>
+ <property stdset="1">
+ <name>title</name>
+ <string>Quote Style</string>
+ </property>
+ <vbox>
+ <property stdset="1">
+ <name>margin</name>
+ <number>11</number>
+ </property>
+ <property stdset="1">
+ <name>spacing</name>
+ <number>6</number>
+ </property>
+ <widget>
+ <class>QLayoutWidget</class>
+ <property stdset="1">
+ <name>name</name>
+ <cstring>Layout28</cstring>
+ </property>
+ <hbox>
+ <property stdset="1">
+ <name>margin</name>
+ <number>0</number>
+ </property>
+ <property stdset="1">
+ <name>spacing</name>
+ <number>6</number>
+ </property>
+ <widget>
+ <class>QLabel</class>
+ <property stdset="1">
+ <name>name</name>
+ <cstring>quoteStyleTypeLA</cstring>
+ </property>
+ <property stdset="1">
+ <name>text</name>
+ <string>&Type:</string>
+ </property>
+ <property>
+ <name>buddy</name>
+ <cstring>quoteStyleTypeCO</cstring>
+ </property>
+ </widget>
+ <widget>
+ <class>QComboBox</class>
+ <item>
+ <property>
+ <name>text</name>
+ <string>``text''</string>
+ </property>
+ </item>
+ <item>
+ <property>
+ <name>text</name>
+ <string>''text''</string>
+ </property>
+ </item>
+ <item>
+ <property>
+ <name>text</name>
+ <string>,,text``</string>
+ </property>
+ </item>
+ <item>
+ <property>
+ <name>text</name>
+ <string>,,text''</string>
+ </property>
+ </item>
+ <item>
+ <property>
+ <name>text</name>
+ <string>«text»</string>
+ </property>
+ </item>
+ <item>
+ <property>
+ <name>text</name>
+ <string>»text«</string>
+ </property>
+ </item>
+ <property stdset="1">
+ <name>name</name>
+ <cstring>quotesLanguageCO</cstring>
+ </property>
+ </widget>
+ </hbox>
+ </widget>
+ <widget>
+ <class>QLayoutWidget</class>
+ <property stdset="1">
+ <name>name</name>
+ <cstring>Layout29</cstring>
+ </property>
+ <hbox>
+ <property stdset="1">
+ <name>margin</name>
+ <number>0</number>
+ </property>
+ <property stdset="1">
+ <name>spacing</name>
+ <number>6</number>
+ </property>
+ <widget>
+ <class>QRadioButton</class>
+ <property stdset="1">
+ <name>name</name>
+ <cstring>singleRB</cstring>
+ </property>
+ <property stdset="1">
+ <name>text</name>
+ <string>&Single</string>
+ </property>
+ </widget>
+ <widget>
+ <class>QRadioButton</class>
+ <property stdset="1">
+ <name>name</name>
+ <cstring>doubleRB</cstring>
+ </property>
+ <property stdset="1">
+ <name>text</name>
+ <string>&Double</string>
+ </property>
+ </widget>
+ </hbox>
+ </widget>
+ </vbox>
+ </widget>
+ <spacer>
+ <property>
+ <name>name</name>
+ <cstring>Spacer13</cstring>
+ </property>
+ <property stdset="1">
+ <name>orientation</name>
+ <enum>Vertical</enum>
+ </property>
+ <property stdset="1">
+ <name>sizeType</name>
+ <enum>Expanding</enum>
+ </property>
+ <property>
+ <name>sizeHint</name>
+ <size>
+ <width>20</width>
+ <height>20</height>
+ </size>
+ </property>
+ </spacer>
+ </vbox>
+ </widget>
+ <spacer>
+ <property>
+ <name>name</name>
+ <cstring>Spacer11</cstring>
+ </property>
+ <property stdset="1">
+ <name>orientation</name>
+ <enum>Horizontal</enum>
+ </property>
+ <property stdset="1">
+ <name>sizeType</name>
+ <enum>Expanding</enum>
+ </property>
+ <property>
+ <name>sizeHint</name>
+ <size>
+ <width>20</width>
+ <height>20</height>
+ </size>
+ </property>
+ </spacer>
+ </hbox>
+ </widget>
+ <widget>
+ <class>QWidget</class>
+ <property stdset="1">
+ <name>name</name>
+ <cstring>Widget5</cstring>
+ </property>
+ <attribute>
+ <name>title</name>
+ <string>Extra</string>
+ </attribute>
+ <hbox>
+ <property stdset="1">
+ <name>margin</name>
+ <number>11</number>
+ </property>
+ <property stdset="1">
+ <name>spacing</name>
+ <number>6</number>
+ </property>
+ <spacer>
+ <property>
+ <name>name</name>
+ <cstring>Spacer24</cstring>
+ </property>
+ <property stdset="1">
+ <name>orientation</name>
+ <enum>Horizontal</enum>
+ </property>
+ <property stdset="1">
+ <name>sizeType</name>
+ <enum>Expanding</enum>
+ </property>
+ <property>
+ <name>sizeHint</name>
+ <size>
+ <width>20</width>
+ <height>20</height>
+ </size>
+ </property>
+ </spacer>
+ <widget>
+ <class>QLayoutWidget</class>
+ <property stdset="1">
+ <name>name</name>
+ <cstring>Layout39</cstring>
+ </property>
+ <vbox>
+ <property stdset="1">
+ <name>margin</name>
+ <number>0</number>
+ </property>
+ <property stdset="1">
+ <name>spacing</name>
+ <number>6</number>
+ </property>
+ <spacer>
+ <property>
+ <name>name</name>
+ <cstring>Spacer18</cstring>
+ </property>
+ <property stdset="1">
+ <name>orientation</name>
+ <enum>Vertical</enum>
+ </property>
+ <property stdset="1">
+ <name>sizeType</name>
+ <enum>Expanding</enum>
+ </property>
+ <property>
+ <name>sizeHint</name>
+ <size>
+ <width>20</width>
+ <height>20</height>
+ </size>
+ </property>
+ </spacer>
+ <widget>
+ <class>QLayoutWidget</class>
+ <property stdset="1">
+ <name>name</name>
+ <cstring>Layout33</cstring>
+ </property>
+ <hbox>
+ <property stdset="1">
+ <name>margin</name>
+ <number>0</number>
+ </property>
+ <property stdset="1">
+ <name>spacing</name>
+ <number>6</number>
+ </property>
+ <widget>
+ <class>QLabel</class>
+ <property stdset="1">
+ <name>name</name>
+ <cstring>TextLabel28</cstring>
+ </property>
+ <property stdset="1">
+ <name>text</name>
+ <string>F&loat Placement:</string>
+ </property>
+ <property>
+ <name>buddy</name>
+ <cstring>floatPlacementED</cstring>
+ </property>
+ </widget>
+ <widget>
+ <class>QLineEdit</class>
+ <property stdset="1">
+ <name>name</name>
+ <cstring>floatPlacementED</cstring>
+ </property>
+ </widget>
+ </hbox>
+ </widget>
+ <spacer>
+ <property>
+ <name>name</name>
+ <cstring>Spacer14</cstring>
+ </property>
+ <property stdset="1">
+ <name>orientation</name>
+ <enum>Vertical</enum>
+ </property>
+ <property stdset="1">
+ <name>sizeType</name>
+ <enum>Expanding</enum>
+ </property>
+ <property>
+ <name>sizeHint</name>
+ <size>
+ <width>20</width>
+ <height>20</height>
+ </size>
+ </property>
+ </spacer>
+ <widget>
+ <class>QLayoutWidget</class>
+ <property stdset="1">
+ <name>name</name>
+ <cstring>Layout34</cstring>
+ </property>
+ <hbox>
+ <property stdset="1">
+ <name>margin</name>
+ <number>0</number>
+ </property>
+ <property stdset="1">
+ <name>spacing</name>
+ <number>6</number>
+ </property>
+ <widget>
+ <class>QLabel</class>
+ <property stdset="1">
+ <name>name</name>
+ <cstring>sectionNumberDepthLA</cstring>
+ </property>
+ <property stdset="1">
+ <name>text</name>
+ <string>S&ection number depth:</string>
+ </property>
+ <property>
+ <name>buddy</name>
+ <cstring>sectionNumberDepthSB</cstring>
+ </property>
+ </widget>
+ <widget>
+ <class>QSpinBox</class>
+ <property stdset="1">
+ <name>name</name>
+ <cstring>secNumDepthSB</cstring>
+ </property>
+ <property stdset="1">
+ <name>maxValue</name>
+ <number>5</number>
+ </property>
+ <property stdset="1">
+ <name>minValue</name>
+ <number>-2</number>
+ </property>
+ </widget>
+ </hbox>
+ </widget>
+ <spacer>
+ <property>
+ <name>name</name>
+ <cstring>Spacer15</cstring>
+ </property>
+ <property stdset="1">
+ <name>orientation</name>
+ <enum>Vertical</enum>
+ </property>
+ <property stdset="1">
+ <name>sizeType</name>
+ <enum>Expanding</enum>
+ </property>
+ <property>
+ <name>sizeHint</name>
+ <size>
+ <width>20</width>
+ <height>20</height>
+ </size>
+ </property>
+ </spacer>
+ <widget>
+ <class>QLayoutWidget</class>
+ <property stdset="1">
+ <name>name</name>
+ <cstring>Layout35</cstring>
+ </property>
+ <hbox>
+ <property stdset="1">
+ <name>margin</name>
+ <number>0</number>
+ </property>
+ <property stdset="1">
+ <name>spacing</name>
+ <number>6</number>
+ </property>
+ <widget>
+ <class>QLabel</class>
+ <property stdset="1">
+ <name>name</name>
+ <cstring>tocDepthLA</cstring>
+ </property>
+ <property stdset="1">
+ <name>text</name>
+ <string>&Table of contents depth:</string>
+ </property>
+ <property>
+ <name>buddy</name>
+ <cstring>tocDepthSB</cstring>
+ </property>
+ </widget>
+ <widget>
+ <class>QSpinBox</class>
+ <property stdset="1">
+ <name>name</name>
+ <cstring>tocDepthSB</cstring>
+ </property>
+ <property stdset="1">
+ <name>maxValue</name>
+ <number>5</number>
+ </property>
+ <property stdset="1">
+ <name>minValue</name>
+ <number>-1</number>
+ </property>
+ </widget>
+ </hbox>
+ </widget>
+ <spacer>
+ <property>
+ <name>name</name>
+ <cstring>Spacer16</cstring>
+ </property>
+ <property stdset="1">
+ <name>orientation</name>
+ <enum>Vertical</enum>
+ </property>
+ <property stdset="1">
+ <name>sizeType</name>
+ <enum>Expanding</enum>
+ </property>
+ <property>
+ <name>sizeHint</name>
+ <size>
+ <width>20</width>
+ <height>20</height>
+ </size>
+ </property>
+ </spacer>
+ <widget>
+ <class>QLayoutWidget</class>
+ <property stdset="1">
+ <name>name</name>
+ <cstring>Layout36</cstring>
+ </property>
+ <hbox>
+ <property stdset="1">
+ <name>margin</name>
+ <number>0</number>
+ </property>
+ <property stdset="1">
+ <name>spacing</name>
+ <number>6</number>
+ </property>
+ <widget>
+ <class>QLabel</class>
+ <property stdset="1">
+ <name>name</name>
+ <cstring>psDriverLA</cstring>
+ </property>
+ <property stdset="1">
+ <name>text</name>
+ <string>P&S Driver:</string>
+ </property>
+ <property>
+ <name>buddy</name>
+ <cstring>psDriverCO</cstring>
+ </property>
+ </widget>
+ <widget>
+ <class>QComboBox</class>
+ <property stdset="1">
+ <name>name</name>
+ <cstring>postscriptDriverCO</cstring>
+ </property>
+ </widget>
+ </hbox>
+ </widget>
+ <spacer>
+ <property>
+ <name>name</name>
+ <cstring>Spacer17</cstring>
+ </property>
+ <property stdset="1">
+ <name>orientation</name>
+ <enum>Vertical</enum>
+ </property>
+ <property stdset="1">
+ <name>sizeType</name>
+ <enum>Expanding</enum>
+ </property>
+ <property>
+ <name>sizeHint</name>
+ <size>
+ <width>20</width>
+ <height>20</height>
+ </size>
+ </property>
+ </spacer>
+ <widget>
+ <class>QLayoutWidget</class>
+ <property stdset="1">
+ <name>name</name>
+ <cstring>Layout38</cstring>
+ </property>
+ <hbox>
+ <property stdset="1">
+ <name>margin</name>
+ <number>0</number>
+ </property>
+ <property stdset="1">
+ <name>spacing</name>
+ <number>6</number>
+ </property>
+ <spacer>
+ <property>
+ <name>name</name>
+ <cstring>Spacer23</cstring>
+ </property>
+ <property stdset="1">
+ <name>orientation</name>
+ <enum>Horizontal</enum>
+ </property>
+ <property stdset="1">
+ <name>sizeType</name>
+ <enum>Expanding</enum>
+ </property>
+ <property>
+ <name>sizeHint</name>
+ <size>
+ <width>20</width>
+ <height>20</height>
+ </size>
+ </property>
+ </spacer>
+ <widget>
+ <class>QCheckBox</class>
+ <property stdset="1">
+ <name>name</name>
+ <cstring>useAmsMathCB</cstring>
+ </property>
+ <property stdset="1">
+ <name>text</name>
+ <string>Use A&MS Math</string>
+ </property>
+ </widget>
+ <spacer>
+ <property>
+ <name>name</name>
+ <cstring>Spacer22</cstring>
+ </property>
+ <property stdset="1">
+ <name>orientation</name>
+ <enum>Horizontal</enum>
+ </property>
+ <property stdset="1">
+ <name>sizeType</name>
+ <enum>Expanding</enum>
+ </property>
+ <property>
+ <name>sizeHint</name>
+ <size>
+ <width>20</width>
+ <height>20</height>
+ </size>
+ </property>
+ </spacer>
+ </hbox>
+ </widget>
+ <spacer>
+ <property>
+ <name>name</name>
+ <cstring>Spacer19</cstring>
+ </property>
+ <property stdset="1">
+ <name>orientation</name>
+ <enum>Vertical</enum>
+ </property>
+ <property stdset="1">
+ <name>sizeType</name>
+ <enum>Expanding</enum>
+ </property>
+ <property>
+ <name>sizeHint</name>
+ <size>
+ <width>20</width>
+ <height>20</height>
+ </size>
+ </property>
+ </spacer>
+ </vbox>
+ </widget>
+ <spacer>
+ <property>
+ <name>name</name>
+ <cstring>Spacer25</cstring>
+ </property>
+ <property stdset="1">
+ <name>orientation</name>
+ <enum>Horizontal</enum>
+ </property>
+ <property stdset="1">
+ <name>sizeType</name>
+ <enum>Expanding</enum>
+ </property>
+ <property>
+ <name>sizeHint</name>
+ <size>
+ <width>20</width>
+ <height>20</height>
+ </size>
+ </property>
+ </spacer>
+ </hbox>
+ </widget>
+ <widget>
+ <class>QWidget</class>
+ <property stdset="1">
+ <name>name</name>
+ <cstring>Widget6</cstring>
+ </property>
+ <attribute>
+ <name>title</name>
+ <string>Bullets</string>
+ </attribute>
+ <vbox>
+ <property stdset="1">
+ <name>margin</name>
+ <number>6</number>
+ </property>
+ <property stdset="1">
+ <name>spacing</name>
+ <number>-1</number>
+ </property>
+ <widget>
+ <class>QLayoutWidget</class>
+ <property stdset="1">
+ <name>name</name>
+ <cstring>Layout51</cstring>
+ </property>
+ <hbox>
+ <property stdset="1">
+ <name>margin</name>
+ <number>0</number>
+ </property>
+ <property stdset="1">
+ <name>spacing</name>
+ <number>6</number>
+ </property>
+ <widget>
+ <class>QLayoutWidget</class>
+ <property stdset="1">
+ <name>name</name>
+ <cstring>Layout48</cstring>
+ </property>
+ <vbox>
+ <property stdset="1">
+ <name>margin</name>
+ <number>0</number>
+ </property>
+ <property stdset="1">
+ <name>spacing</name>
+ <number>6</number>
+ </property>
+ <spacer>
+ <property>
+ <name>name</name>
+ <cstring>Spacer31</cstring>
+ </property>
+ <property stdset="1">
+ <name>orientation</name>
+ <enum>Vertical</enum>
+ </property>
+ <property stdset="1">
+ <name>sizeType</name>
+ <enum>Expanding</enum>
+ </property>
+ <property>
+ <name>sizeHint</name>
+ <size>
+ <width>20</width>
+ <height>20</height>
+ </size>
+ </property>
+ </spacer>
+ <widget>
+ <class>QLabel</class>
+ <property stdset="1">
+ <name>name</name>
+ <cstring>bulletSizeLA</cstring>
+ </property>
+ <property stdset="1">
+ <name>text</name>
+ <string>Si&ze</string>
+ </property>
+ <property>
+ <name>buddy</name>
+ <cstring>bulletSizeCO</cstring>
+ </property>
+ </widget>
+ <widget>
+ <class>QComboBox</class>
+ <item>
+ <property>
+ <name>text</name>
+ <string>default</string>
+ </property>
+ </item>
+ <item>
+ <property>
+ <name>text</name>
+ <string>tiny</string>
+ </property>
+ </item>
+ <item>
+ <property>
+ <name>text</name>
+ <string>script</string>
+ </property>
+ </item>
+ <item>
+ <property>
+ <name>text</name>
+ <string>footnote</string>
+ </property>
+ </item>
+ <item>
+ <property>
+ <name>text</name>
+ <string>small</string>
+ </property>
+ </item>
+ <item>
+ <property>
+ <name>text</name>
+ <string>normal</string>
+ </property>
+ </item>
+ <item>
+ <property>
+ <name>text</name>
+ <string>large</string>
+ </property>
+ </item>
+ <item>
+ <property>
+ <name>text</name>
+ <string>Large</string>
+ </property>
+ </item>
+ <item>
+ <property>
+ <name>text</name>
+ <string>LARGE</string>
+ </property>
+ </item>
+ <item>
+ <property>
+ <name>text</name>
+ <string>huge</string>
+ </property>
+ </item>
+ <item>
+ <property>
+ <name>text</name>
+ <string>Huge</string>
+ </property>
+ </item>
+ <property stdset="1">
+ <name>name</name>
+ <cstring>bulletSizeCO</cstring>
+ </property>
+ </widget>
+ </vbox>
+ </widget>
+ <widget>
+ <class>QLayoutWidget</class>
+ <property stdset="1">
+ <name>name</name>
+ <cstring>Layout50</cstring>
+ </property>
+ <vbox>
+ <property stdset="1">
+ <name>margin</name>
+ <number>0</number>
+ </property>
+ <property stdset="1">
+ <name>spacing</name>
+ <number>6</number>
+ </property>
+ <spacer>
+ <property>
+ <name>name</name>
+ <cstring>Spacer32</cstring>
+ </property>
+ <property stdset="1">
+ <name>orientation</name>
+ <enum>Vertical</enum>
+ </property>
+ <property stdset="1">
+ <name>sizeType</name>
+ <enum>Expanding</enum>
+ </property>
+ <property>
+ <name>sizeHint</name>
+ <size>
+ <width>20</width>
+ <height>20</height>
+ </size>
+ </property>
+ </spacer>
+ <widget>
+ <class>QButtonGroup</class>
+ <property stdset="1">
+ <name>name</name>
+ <cstring>bulletDepthBG</cstring>
+ </property>
+ <property stdset="1">
+ <name>title</name>
+ <string>Bullet Depth</string>
+ </property>
+ <property stdset="1">
+ <name>exclusive</name>
+ <bool>true</bool>
+ </property>
+ <hbox>
+ <property stdset="1">
+ <name>margin</name>
+ <number>11</number>
+ </property>
+ <property stdset="1">
+ <name>spacing</name>
+ <number>6</number>
+ </property>
+ <widget>
+ <class>QToolButton</class>
+ <property stdset="1">
+ <name>name</name>
+ <cstring>bulletDepth1PB</cstring>
+ </property>
+ <property stdset="1">
+ <name>text</name>
+ <string>&1</string>
+ </property>
+ <property stdset="1">
+ <name>toggleButton</name>
+ <bool>true</bool>
+ </property>
+ </widget>
+ <widget>
+ <class>QToolButton</class>
+ <property stdset="1">
+ <name>name</name>
+ <cstring>bulletDepth2PB</cstring>
+ </property>
+ <property stdset="1">
+ <name>text</name>
+ <string>&2</string>
+ </property>
+ <property stdset="1">
+ <name>toggleButton</name>
+ <bool>true</bool>
+ </property>
+ </widget>
+ <widget>
+ <class>QToolButton</class>
+ <property stdset="1">
+ <name>name</name>
+ <cstring>bulletDepth3PB</cstring>
+ </property>
+ <property stdset="1">
+ <name>text</name>
+ <string>&3</string>
+ </property>
+ <property stdset="1">
+ <name>toggleButton</name>
+ <bool>true</bool>
+ </property>
+ </widget>
+ <widget>
+ <class>QToolButton</class>
+ <property stdset="1">
+ <name>name</name>
+ <cstring>bulletDepth4PB</cstring>
+ </property>
+ <property stdset="1">
+ <name>text</name>
+ <string>&4</string>
+ </property>
+ <property stdset="1">
+ <name>toggleButton</name>
+ <bool>true</bool>
+ </property>
+ </widget>
+ </hbox>
+ </widget>
+ </vbox>
+ </widget>
+ </hbox>
+ </widget>
+ <spacer>
+ <property>
+ <name>name</name>
+ <cstring>Spacer1</cstring>
+ </property>
+ <property stdset="1">
+ <name>orientation</name>
+ <enum>Vertical</enum>
+ </property>
+ <property stdset="1">
+ <name>sizeType</name>
+ <enum>Expanding</enum>
+ </property>
+ <property>
+ <name>sizeHint</name>
+ <size>
+ <width>20</width>
+ <height>20</height>
+ </size>
+ </property>
+ </spacer>
+ <widget>
+ <class>QLayoutWidget</class>
+ <property stdset="1">
+ <name>name</name>
+ <cstring>Layout47</cstring>
+ </property>
+ <hbox>
+ <property stdset="1">
+ <name>margin</name>
+ <number>0</number>
+ </property>
+ <property stdset="1">
+ <name>spacing</name>
+ <number>6</number>
+ </property>
+ <spacer>
+ <property>
+ <name>name</name>
+ <cstring>Spacer27</cstring>
+ </property>
+ <property stdset="1">
+ <name>orientation</name>
+ <enum>Horizontal</enum>
+ </property>
+ <property stdset="1">
+ <name>sizeType</name>
+ <enum>Expanding</enum>
+ </property>
+ <property>
+ <name>sizeHint</name>
+ <size>
+ <width>20</width>
+ <height>20</height>
+ </size>
+ </property>
+ </spacer>
+ <widget>
+ <class>QButtonGroup</class>
+ <property stdset="1">
+ <name>name</name>
+ <cstring>bulletTypeBG</cstring>
+ </property>
+ <property stdset="1">
+ <name>title</name>
+ <string></string>
+ </property>
+ <property stdset="1">
+ <name>frameShape</name>
+ <enum>NoFrame</enum>
+ </property>
+ <property stdset="1">
+ <name>radioButtonExclusive</name>
+ <bool>false</bool>
+ </property>
+ <property>
+ <name>layoutSpacing</name>
+ </property>
+ <spacer>
+ <property>
+ <name>name</name>
+ <cstring>Spacer26</cstring>
+ </property>
+ <property stdset="1">
+ <name>geometry</name>
+ <rect>
+ <x>0</x>
+ <y>0</y>
+ <width>20</width>
+ <height>20</height>
+ </rect>
+ </property>
+ <property stdset="1">
+ <name>orientation</name>
+ <enum>Horizontal</enum>
+ </property>
+ <property stdset="1">
+ <name>sizeType</name>
+ <enum>Fixed</enum>
+ </property>
+ <property>
+ <name>sizeHint</name>
+ <size>
+ <width>20</width>
+ <height>20</height>
+ </size>
+ </property>
+ </spacer>
+ <widget>
+ <class>QToolButton</class>
+ <property stdset="1">
+ <name>name</name>
+ <cstring>bullet10PB</cstring>
+ </property>
+ <property stdset="1">
+ <name>geometry</name>
+ <rect>
+ <x>98</x>
+ <y>33</y>
+ <width>23</width>
+ <height>22</height>
+ </rect>
+ </property>
+ <property stdset="1">
+ <name>text</name>
+ <string></string>
+ </property>
+ <property stdset="1">
+ <name>sizePolicy</name>
+ <sizepolicy>
+ <hsizetype>0</hsizetype>
+ <vsizetype>0</vsizetype>
+ </sizepolicy>
+ </property>
+ <property stdset="1">
+ <name>toggleButton</name>
+ <bool>true</bool>
+ </property>
+ </widget>
+ <widget>
+ <class>QToolButton</class>
+ <property stdset="1">
+ <name>name</name>
+ <cstring>bullet11PB</cstring>
+ </property>
+ <property stdset="1">
+ <name>geometry</name>
+ <rect>
+ <x>121</x>
+ <y>33</y>
+ <width>23</width>
+ <height>22</height>
+ </rect>
+ </property>
+ <property stdset="1">
+ <name>text</name>
+ <string></string>
+ </property>
+ <property stdset="1">
+ <name>sizePolicy</name>
+ <sizepolicy>
+ <hsizetype>0</hsizetype>
+ <vsizetype>0</vsizetype>
+ </sizepolicy>
+ </property>
+ <property stdset="1">
+ <name>toggleButton</name>
+ <bool>true</bool>
+ </property>
+ </widget>
+ <widget>
+ <class>QToolButton</class>
+ <property stdset="1">
+ <name>name</name>
+ <cstring>bullet12PB</cstring>
+ </property>
+ <property stdset="1">
+ <name>geometry</name>
+ <rect>
+ <x>144</x>
+ <y>33</y>
+ <width>23</width>
+ <height>22</height>
+ </rect>
+ </property>
+ <property stdset="1">
+ <name>text</name>
+ <string></string>
+ </property>
+ <property stdset="1">
+ <name>sizePolicy</name>
+ <sizepolicy>
+ <hsizetype>0</hsizetype>
+ <vsizetype>0</vsizetype>
+ </sizepolicy>
+ </property>
+ <property stdset="1">
+ <name>toggleButton</name>
+ <bool>true</bool>
+ </property>
+ </widget>
+ <widget>
+ <class>QToolButton</class>
+ <property stdset="1">
+ <name>name</name>
+ <cstring>bullet13PB</cstring>
+ </property>
+ <property stdset="1">
+ <name>geometry</name>
+ <rect>
+ <x>167</x>
+ <y>33</y>
+ <width>23</width>
+ <height>22</height>
+ </rect>
+ </property>
+ <property stdset="1">
+ <name>text</name>
+ <string></string>
+ </property>
+ <property stdset="1">
+ <name>sizePolicy</name>
+ <sizepolicy>
+ <hsizetype>0</hsizetype>
+ <vsizetype>0</vsizetype>
+ </sizepolicy>
+ </property>
+ <property stdset="1">
+ <name>toggleButton</name>
+ <bool>true</bool>
+ </property>
+ </widget>
+ <widget>
+ <class>QToolButton</class>
+ <property stdset="1">
+ <name>name</name>
+ <cstring>bullet14PB</cstring>
+ </property>
+ <property stdset="1">
+ <name>geometry</name>
+ <rect>
+ <x>190</x>
+ <y>33</y>
+ <width>23</width>
+ <height>22</height>
+ </rect>
+ </property>
+ <property stdset="1">
+ <name>text</name>
+ <string></string>
+ </property>
+ <property stdset="1">
+ <name>sizePolicy</name>
+ <sizepolicy>
+ <hsizetype>0</hsizetype>
+ <vsizetype>0</vsizetype>
+ </sizepolicy>
+ </property>
+ <property stdset="1">
+ <name>toggleButton</name>
+ <bool>true</bool>
+ </property>
+ </widget>
+ <widget>
+ <class>QToolButton</class>
+ <property stdset="1">
+ <name>name</name>
+ <cstring>bullet15PB</cstring>
+ </property>
+ <property stdset="1">
+ <name>geometry</name>
+ <rect>
+ <x>213</x>
+ <y>33</y>
+ <width>23</width>
+ <height>22</height>
+ </rect>
+ </property>
+ <property stdset="1">
+ <name>text</name>
+ <string></string>
+ </property>
+ <property stdset="1">
+ <name>sizePolicy</name>
+ <sizepolicy>
+ <hsizetype>0</hsizetype>
+ <vsizetype>0</vsizetype>
+ </sizepolicy>
+ </property>
+ <property stdset="1">
+ <name>toggleButton</name>
+ <bool>true</bool>
+ </property>
+ </widget>
+ <widget>
+ <class>QToolButton</class>
+ <property stdset="1">
+ <name>name</name>
+ <cstring>bullet21PB</cstring>
+ </property>
+ <property stdset="1">
+ <name>geometry</name>
+ <rect>
+ <x>121</x>
+ <y>55</y>
+ <width>23</width>
+ <height>22</height>
+ </rect>
+ </property>
+ <property stdset="1">
+ <name>text</name>
+ <string></string>
+ </property>
+ <property stdset="1">
+ <name>sizePolicy</name>
+ <sizepolicy>
+ <hsizetype>0</hsizetype>
+ <vsizetype>0</vsizetype>
+ </sizepolicy>
+ </property>
+ <property stdset="1">
+ <name>toggleButton</name>
+ <bool>true</bool>
+ </property>
+ </widget>
+ <widget>
+ <class>QToolButton</class>
+ <property stdset="1">
+ <name>name</name>
+ <cstring>bullet20PB</cstring>
+ </property>
+ <property stdset="1">
+ <name>geometry</name>
+ <rect>
+ <x>98</x>
+ <y>55</y>
+ <width>23</width>
+ <height>22</height>
+ </rect>
+ </property>
+ <property stdset="1">
+ <name>text</name>
+ <string></string>
+ </property>
+ <property stdset="1">
+ <name>sizePolicy</name>
+ <sizepolicy>
+ <hsizetype>0</hsizetype>
+ <vsizetype>0</vsizetype>
+ </sizepolicy>
+ </property>
+ <property stdset="1">
+ <name>toggleButton</name>
+ <bool>true</bool>
+ </property>
+ </widget>
+ <widget>
+ <class>QToolButton</class>
+ <property stdset="1">
+ <name>name</name>
+ <cstring>bullet22PB</cstring>
+ </property>
+ <property stdset="1">
+ <name>geometry</name>
+ <rect>
+ <x>144</x>
+ <y>55</y>
+ <width>23</width>
+ <height>22</height>
+ </rect>
+ </property>
+ <property stdset="1">
+ <name>text</name>
+ <string></string>
+ </property>
+ <property stdset="1">
+ <name>sizePolicy</name>
+ <sizepolicy>
+ <hsizetype>0</hsizetype>
+ <vsizetype>0</vsizetype>
+ </sizepolicy>
+ </property>
+ <property stdset="1">
+ <name>toggleButton</name>
+ <bool>true</bool>
+ </property>
+ </widget>
+ <widget>
+ <class>QToolButton</class>
+ <property stdset="1">
+ <name>name</name>
+ <cstring>bullet23PB</cstring>
+ </property>
+ <property stdset="1">
+ <name>geometry</name>
+ <rect>
+ <x>167</x>
+ <y>55</y>
+ <width>23</width>
+ <height>22</height>
+ </rect>
+ </property>
+ <property stdset="1">
+ <name>text</name>
+ <string></string>
+ </property>
+ <property stdset="1">
+ <name>sizePolicy</name>
+ <sizepolicy>
+ <hsizetype>0</hsizetype>
+ <vsizetype>0</vsizetype>
+ </sizepolicy>
+ </property>
+ <property stdset="1">
+ <name>toggleButton</name>
+ <bool>true</bool>
+ </property>
+ </widget>
+ <widget>
+ <class>QToolButton</class>
+ <property stdset="1">
+ <name>name</name>
+ <cstring>bullet24PB</cstring>
+ </property>
+ <property stdset="1">
+ <name>geometry</name>
+ <rect>
+ <x>190</x>
+ <y>55</y>
+ <width>23</width>
+ <height>22</height>
+ </rect>
+ </property>
+ <property stdset="1">
+ <name>text</name>
+ <string></string>
+ </property>
+ <property stdset="1">
+ <name>sizePolicy</name>
+ <sizepolicy>
+ <hsizetype>0</hsizetype>
+ <vsizetype>0</vsizetype>
+ </sizepolicy>
+ </property>
+ <property stdset="1">
+ <name>toggleButton</name>
+ <bool>true</bool>
+ </property>
+ </widget>
+ <widget>
+ <class>QToolButton</class>
+ <property stdset="1">
+ <name>name</name>
+ <cstring>bullet25PB</cstring>
+ </property>
+ <property stdset="1">
+ <name>geometry</name>
+ <rect>
+ <x>213</x>
+ <y>55</y>
+ <width>23</width>
+ <height>22</height>
+ </rect>
+ </property>
+ <property stdset="1">
+ <name>text</name>
+ <string></string>
+ </property>
+ <property stdset="1">
+ <name>sizePolicy</name>
+ <sizepolicy>
+ <hsizetype>0</hsizetype>
+ <vsizetype>0</vsizetype>
+ </sizepolicy>
+ </property>
+ <property stdset="1">
+ <name>toggleButton</name>
+ <bool>true</bool>
+ </property>
+ </widget>
+ <widget>
+ <class>QToolButton</class>
+ <property stdset="1">
+ <name>name</name>
+ <cstring>bullet30PB</cstring>
+ </property>
+ <property stdset="1">
+ <name>geometry</name>
+ <rect>
+ <x>98</x>
+ <y>77</y>
+ <width>23</width>
+ <height>22</height>
+ </rect>
+ </property>
+ <property stdset="1">
+ <name>text</name>
+ <string></string>
+ </property>
+ <property stdset="1">
+ <name>sizePolicy</name>
+ <sizepolicy>
+ <hsizetype>0</hsizetype>
+ <vsizetype>0</vsizetype>
+ </sizepolicy>
+ </property>
+ <property stdset="1">
+ <name>toggleButton</name>
+ <bool>true</bool>
+ </property>
+ </widget>
+ <widget>
+ <class>QToolButton</class>
+ <property stdset="1">
+ <name>name</name>
+ <cstring>bullet31PB</cstring>
+ </property>
+ <property stdset="1">
+ <name>geometry</name>
+ <rect>
+ <x>121</x>
+ <y>77</y>
+ <width>23</width>
+ <height>22</height>
+ </rect>
+ </property>
+ <property stdset="1">
+ <name>text</name>
+ <string></string>
+ </property>
+ <property stdset="1">
+ <name>sizePolicy</name>
+ <sizepolicy>
+ <hsizetype>0</hsizetype>
+ <vsizetype>0</vsizetype>
+ </sizepolicy>
+ </property>
+ <property stdset="1">
+ <name>toggleButton</name>
+ <bool>true</bool>
+ </property>
+ </widget>
+ <widget>
+ <class>QToolButton</class>
+ <property stdset="1">
+ <name>name</name>
+ <cstring>bullet32PB</cstring>
+ </property>
+ <property stdset="1">
+ <name>geometry</name>
+ <rect>
+ <x>144</x>
+ <y>77</y>
+ <width>23</width>
+ <height>22</height>
+ </rect>
+ </property>
+ <property stdset="1">
+ <name>text</name>
+ <string></string>
+ </property>
+ <property stdset="1">
+ <name>sizePolicy</name>
+ <sizepolicy>
+ <hsizetype>0</hsizetype>
+ <vsizetype>0</vsizetype>
+ </sizepolicy>
+ </property>
+ <property stdset="1">
+ <name>toggleButton</name>
+ <bool>true</bool>
+ </property>
+ </widget>
+ <widget>
+ <class>QToolButton</class>
+ <property stdset="1">
+ <name>name</name>
+ <cstring>bullet34PB</cstring>
+ </property>
+ <property stdset="1">
+ <name>geometry</name>
+ <rect>
+ <x>190</x>
+ <y>77</y>
+ <width>23</width>
+ <height>22</height>
+ </rect>
+ </property>
+ <property stdset="1">
+ <name>text</name>
+ <string></string>
+ </property>
+ <property stdset="1">
+ <name>sizePolicy</name>
+ <sizepolicy>
+ <hsizetype>0</hsizetype>
+ <vsizetype>0</vsizetype>
+ </sizepolicy>
+ </property>
+ <property stdset="1">
+ <name>toggleButton</name>
+ <bool>true</bool>
+ </property>
+ </widget>
+ <widget>
+ <class>QToolButton</class>
+ <property stdset="1">
+ <name>name</name>
+ <cstring>bullet35PB</cstring>
+ </property>
+ <property stdset="1">
+ <name>geometry</name>
+ <rect>
+ <x>213</x>
+ <y>77</y>
+ <width>23</width>
+ <height>22</height>
+ </rect>
+ </property>
+ <property stdset="1">
+ <name>text</name>
+ <string></string>
+ </property>
+ <property stdset="1">
+ <name>sizePolicy</name>
+ <sizepolicy>
+ <hsizetype>0</hsizetype>
+ <vsizetype>0</vsizetype>
+ </sizepolicy>
+ </property>
+ <property stdset="1">
+ <name>toggleButton</name>
+ <bool>true</bool>
+ </property>
+ </widget>
+ <widget>
+ <class>QToolButton</class>
+ <property stdset="1">
+ <name>name</name>
+ <cstring>bullet42PB</cstring>
+ </property>
+ <property stdset="1">
+ <name>geometry</name>
+ <rect>
+ <x>144</x>
+ <y>99</y>
+ <width>23</width>
+ <height>22</height>
+ </rect>
+ </property>
+ <property stdset="1">
+ <name>text</name>
+ <string></string>
+ </property>
+ <property stdset="1">
+ <name>sizePolicy</name>
+ <sizepolicy>
+ <hsizetype>0</hsizetype>
+ <vsizetype>0</vsizetype>
+ </sizepolicy>
+ </property>
+ <property stdset="1">
+ <name>toggleButton</name>
+ <bool>true</bool>
+ </property>
+ </widget>
+ <widget>
+ <class>QToolButton</class>
+ <property stdset="1">
+ <name>name</name>
+ <cstring>bullet43PB</cstring>
+ </property>
+ <property stdset="1">
+ <name>geometry</name>
+ <rect>
+ <x>167</x>
+ <y>99</y>
+ <width>23</width>
+ <height>22</height>
+ </rect>
+ </property>
+ <property stdset="1">
+ <name>text</name>
+ <string></string>
+ </property>
+ <property stdset="1">
+ <name>sizePolicy</name>
+ <sizepolicy>
+ <hsizetype>0</hsizetype>
+ <vsizetype>0</vsizetype>
+ </sizepolicy>
+ </property>
+ <property stdset="1">
+ <name>toggleButton</name>
+ <bool>true</bool>
+ </property>
+ </widget>
+ <widget>
+ <class>QToolButton</class>
+ <property stdset="1">
+ <name>name</name>
+ <cstring>bullet44PB</cstring>
+ </property>
+ <property stdset="1">
+ <name>geometry</name>
+ <rect>
+ <x>190</x>
+ <y>99</y>
+ <width>23</width>
+ <height>22</height>
+ </rect>
+ </property>
+ <property stdset="1">
+ <name>text</name>
+ <string></string>
+ </property>
+ <property stdset="1">
+ <name>sizePolicy</name>
+ <sizepolicy>
+ <hsizetype>0</hsizetype>
+ <vsizetype>0</vsizetype>
+ </sizepolicy>
+ </property>
+ <property stdset="1">
+ <name>toggleButton</name>
+ <bool>true</bool>
+ </property>
+ </widget>
+ <widget>
+ <class>QToolButton</class>
+ <property stdset="1">
+ <name>name</name>
+ <cstring>bullet45PB</cstring>
+ </property>
+ <property stdset="1">
+ <name>geometry</name>
+ <rect>
+ <x>213</x>
+ <y>99</y>
+ <width>23</width>
+ <height>22</height>
+ </rect>
+ </property>
+ <property stdset="1">
+ <name>text</name>
+ <string></string>
+ </property>
+ <property stdset="1">
+ <name>sizePolicy</name>
+ <sizepolicy>
+ <hsizetype>0</hsizetype>
+ <vsizetype>0</vsizetype>
+ </sizepolicy>
+ </property>
+ <property stdset="1">
+ <name>toggleButton</name>
+ <bool>true</bool>
+ </property>
+ </widget>
+ <widget>
+ <class>QToolButton</class>
+ <property stdset="1">
+ <name>name</name>
+ <cstring>bullet50PB</cstring>
+ </property>
+ <property stdset="1">
+ <name>geometry</name>
+ <rect>
+ <x>98</x>
+ <y>121</y>
+ <width>23</width>
+ <height>22</height>
+ </rect>
+ </property>
+ <property stdset="1">
+ <name>text</name>
+ <string></string>
+ </property>
+ <property stdset="1">
+ <name>sizePolicy</name>
+ <sizepolicy>
+ <hsizetype>0</hsizetype>
+ <vsizetype>0</vsizetype>
+ </sizepolicy>
+ </property>
+ <property stdset="1">
+ <name>toggleButton</name>
+ <bool>true</bool>
+ </property>
+ </widget>
+ <widget>
+ <class>QToolButton</class>
+ <property stdset="1">
+ <name>name</name>
+ <cstring>bullet51PB</cstring>
+ </property>
+ <property stdset="1">
+ <name>geometry</name>
+ <rect>
+ <x>121</x>
+ <y>121</y>
+ <width>23</width>
+ <height>22</height>
+ </rect>
+ </property>
+ <property stdset="1">
+ <name>text</name>
+ <string></string>
+ </property>
+ <property stdset="1">
+ <name>sizePolicy</name>
+ <sizepolicy>
+ <hsizetype>0</hsizetype>
+ <vsizetype>0</vsizetype>
+ </sizepolicy>
+ </property>
+ <property stdset="1">
+ <name>toggleButton</name>
+ <bool>true</bool>
+ </property>
+ </widget>
+ <widget>
+ <class>QToolButton</class>
+ <property stdset="1">
+ <name>name</name>
+ <cstring>bullet52PB</cstring>
+ </property>
+ <property stdset="1">
+ <name>geometry</name>
+ <rect>
+ <x>144</x>
+ <y>121</y>
+ <width>23</width>
+ <height>22</height>
+ </rect>
+ </property>
+ <property stdset="1">
+ <name>text</name>
+ <string></string>
+ </property>
+ <property stdset="1">
+ <name>sizePolicy</name>
+ <sizepolicy>
+ <hsizetype>0</hsizetype>
+ <vsizetype>0</vsizetype>
+ </sizepolicy>
+ </property>
+ <property stdset="1">
+ <name>toggleButton</name>
+ <bool>true</bool>
+ </property>
+ </widget>
+ <widget>
+ <class>QToolButton</class>
+ <property stdset="1">
+ <name>name</name>
+ <cstring>bullet53PB</cstring>
+ </property>
+ <property stdset="1">
+ <name>geometry</name>
+ <rect>
+ <x>167</x>
+ <y>121</y>
+ <width>23</width>
+ <height>22</height>
+ </rect>
+ </property>
+ <property stdset="1">
+ <name>text</name>
+ <string></string>
+ </property>
+ <property stdset="1">
+ <name>sizePolicy</name>
+ <sizepolicy>
+ <hsizetype>0</hsizetype>
+ <vsizetype>0</vsizetype>
+ </sizepolicy>
+ </property>
+ <property stdset="1">
+ <name>toggleButton</name>
+ <bool>true</bool>
+ </property>
+ </widget>
+ <widget>
+ <class>QToolButton</class>
+ <property stdset="1">
+ <name>name</name>
+ <cstring>bullet54PB</cstring>
+ </property>
+ <property stdset="1">
+ <name>geometry</name>
+ <rect>
+ <x>190</x>
+ <y>121</y>
+ <width>23</width>
+ <height>22</height>
+ </rect>
+ </property>
+ <property stdset="1">
+ <name>text</name>
+ <string></string>
+ </property>
+ <property stdset="1">
+ <name>sizePolicy</name>
+ <sizepolicy>
+ <hsizetype>0</hsizetype>
+ <vsizetype>0</vsizetype>
+ </sizepolicy>
+ </property>
+ <property stdset="1">
+ <name>toggleButton</name>
+ <bool>true</bool>
+ </property>
+ </widget>
+ <widget>
+ <class>QToolButton</class>
+ <property stdset="1">
+ <name>name</name>
+ <cstring>bullet55PB</cstring>
+ </property>
+ <property stdset="1">
+ <name>geometry</name>
+ <rect>
+ <x>213</x>
+ <y>121</y>
+ <width>23</width>
+ <height>22</height>
+ </rect>
+ </property>
+ <property stdset="1">
+ <name>text</name>
+ <string></string>
+ </property>
+ <property stdset="1">
+ <name>sizePolicy</name>
+ <sizepolicy>
+ <hsizetype>0</hsizetype>
+ <vsizetype>0</vsizetype>
+ </sizepolicy>
+ </property>
+ <property stdset="1">
+ <name>toggleButton</name>
+ <bool>true</bool>
+ </property>
+ </widget>
+ <widget>
+ <class>QToolButton</class>
+ <property stdset="1">
+ <name>name</name>
+ <cstring>bullet40PB</cstring>
+ </property>
+ <property stdset="1">
+ <name>geometry</name>
+ <rect>
+ <x>98</x>
+ <y>99</y>
+ <width>23</width>
+ <height>22</height>
+ </rect>
+ </property>
+ <property stdset="1">
+ <name>text</name>
+ <string></string>
+ </property>
+ <property stdset="1">
+ <name>sizePolicy</name>
+ <sizepolicy>
+ <hsizetype>0</hsizetype>
+ <vsizetype>0</vsizetype>
+ </sizepolicy>
+ </property>
+ <property stdset="1">
+ <name>toggleButton</name>
+ <bool>true</bool>
+ </property>
+ </widget>
+ <widget>
+ <class>QToolButton</class>
+ <property stdset="1">
+ <name>name</name>
+ <cstring>bullet41PB</cstring>
+ </property>
+ <property stdset="1">
+ <name>geometry</name>
+ <rect>
+ <x>121</x>
+ <y>99</y>
+ <width>23</width>
+ <height>22</height>
+ </rect>
+ </property>
+ <property stdset="1">
+ <name>text</name>
+ <string></string>
+ </property>
+ <property stdset="1">
+ <name>sizePolicy</name>
+ <sizepolicy>
+ <hsizetype>0</hsizetype>
+ <vsizetype>0</vsizetype>
+ </sizepolicy>
+ </property>
+ <property stdset="1">
+ <name>toggleButton</name>
+ <bool>true</bool>
+ </property>
+ </widget>
+ <widget>
+ <class>QToolButton</class>
+ <property stdset="1">
+ <name>name</name>
+ <cstring>bulletPanelStandardPB</cstring>
+ </property>
+ <property stdset="1">
+ <name>geometry</name>
+ <rect>
+ <x>11</x>
+ <y>11</y>
+ <width>66</width>
+ <height>22</height>
+ </rect>
+ </property>
+ <property stdset="1">
+ <name>text</name>
+ <string>&Standard</string>
+ </property>
+ <property stdset="1">
+ <name>toggleButton</name>
+ <bool>true</bool>
+ </property>
+ </widget>
+ <widget>
+ <class>QToolButton</class>
+ <property stdset="1">
+ <name>name</name>
+ <cstring>bulletPanelMathsPB</cstring>
+ </property>
+ <property stdset="1">
+ <name>geometry</name>
+ <rect>
+ <x>11</x>
+ <y>33</y>
+ <width>66</width>
+ <height>22</height>
+ </rect>
+ </property>
+ <property stdset="1">
+ <name>text</name>
+ <string>&Maths</string>
+ </property>
+ <property stdset="1">
+ <name>toggleButton</name>
+ <bool>true</bool>
+ </property>
+ </widget>
+ <widget>
+ <class>QToolButton</class>
+ <property stdset="1">
+ <name>name</name>
+ <cstring>bulletPanelDing1PB</cstring>
+ </property>
+ <property stdset="1">
+ <name>geometry</name>
+ <rect>
+ <x>11</x>
+ <y>55</y>
+ <width>66</width>
+ <height>22</height>
+ </rect>
+ </property>
+ <property stdset="1">
+ <name>text</name>
+ <string>&Ding 1</string>
+ </property>
+ <property stdset="1">
+ <name>toggleButton</name>
+ <bool>true</bool>
+ </property>
+ </widget>
+ <widget>
+ <class>QToolButton</class>
+ <property stdset="1">
+ <name>name</name>
+ <cstring>bulletPanelDing2PB</cstring>
+ </property>
+ <property stdset="1">
+ <name>geometry</name>
+ <rect>
+ <x>11</x>
+ <y>77</y>
+ <width>66</width>
+ <height>22</height>
+ </rect>
+ </property>
+ <property stdset="1">
+ <name>text</name>
+ <string>D&ing 2</string>
+ </property>
+ <property stdset="1">
+ <name>toggleButton</name>
+ <bool>true</bool>
+ </property>
+ </widget>
+ <widget>
+ <class>QToolButton</class>
+ <property stdset="1">
+ <name>name</name>
+ <cstring>bulletPanelDing3PB</cstring>
+ </property>
+ <property stdset="1">
+ <name>geometry</name>
+ <rect>
+ <x>11</x>
+ <y>99</y>
+ <width>66</width>
+ <height>22</height>
+ </rect>
+ </property>
+ <property stdset="1">
+ <name>text</name>
+ <string>Di&ng 3</string>
+ </property>
+ <property stdset="1">
+ <name>toggleButton</name>
+ <bool>true</bool>
+ </property>
+ </widget>
+ <widget>
+ <class>QToolButton</class>
+ <property stdset="1">
+ <name>name</name>
+ <cstring>bulletDing4PB</cstring>
+ </property>
+ <property stdset="1">
+ <name>geometry</name>
+ <rect>
+ <x>11</x>
+ <y>121</y>
+ <width>66</width>
+ <height>22</height>
+ </rect>
+ </property>
+ <property stdset="1">
+ <name>text</name>
+ <string>Din&g 4</string>
+ </property>
+ </widget>
+ <widget>
+ <class>QToolButton</class>
+ <property stdset="1">
+ <name>name</name>
+ <cstring>bullet33PB</cstring>
+ </property>
+ <property stdset="1">
+ <name>geometry</name>
+ <rect>
+ <x>167</x>
+ <y>77</y>
+ <width>23</width>
+ <height>22</height>
+ </rect>
+ </property>
+ <property stdset="1">
+ <name>text</name>
+ <string></string>
+ </property>
+ <property stdset="1">
+ <name>sizePolicy</name>
+ <sizepolicy>
+ <hsizetype>0</hsizetype>
+ <vsizetype>0</vsizetype>
+ </sizepolicy>
+ </property>
+ <property stdset="1">
+ <name>toggleButton</name>
+ <bool>true</bool>
+ </property>
+ </widget>
+ <widget>
+ <class>QToolButton</class>
+ <property stdset="1">
+ <name>name</name>
+ <cstring>bullet00PB</cstring>
+ </property>
+ <property stdset="1">
+ <name>geometry</name>
+ <rect>
+ <x>98</x>
+ <y>11</y>
+ <width>23</width>
+ <height>22</height>
+ </rect>
+ </property>
+ <property stdset="1">
+ <name>text</name>
+ <string></string>
+ </property>
+ <property stdset="1">
+ <name>sizePolicy</name>
+ <sizepolicy>
+ <hsizetype>0</hsizetype>
+ <vsizetype>0</vsizetype>
+ </sizepolicy>
+ </property>
+ <property stdset="1">
+ <name>toggleButton</name>
+ <bool>true</bool>
+ </property>
+ </widget>
+ <widget>
+ <class>QToolButton</class>
+ <property stdset="1">
+ <name>name</name>
+ <cstring>bullet01PB</cstring>
+ </property>
+ <property stdset="1">
+ <name>geometry</name>
+ <rect>
+ <x>121</x>
+ <y>11</y>
+ <width>23</width>
+ <height>22</height>
+ </rect>
+ </property>
+ <property stdset="1">
+ <name>text</name>
+ <string></string>
+ </property>
+ <property stdset="1">
+ <name>sizePolicy</name>
+ <sizepolicy>
+ <hsizetype>0</hsizetype>
+ <vsizetype>0</vsizetype>
+ </sizepolicy>
+ </property>
+ <property stdset="1">
+ <name>toggleButton</name>
+ <bool>true</bool>
+ </property>
+ </widget>
+ <widget>
+ <class>QToolButton</class>
+ <property stdset="1">
+ <name>name</name>
+ <cstring>bullet02PB</cstring>
+ </property>
+ <property stdset="1">
+ <name>geometry</name>
+ <rect>
+ <x>144</x>
+ <y>11</y>
+ <width>23</width>
+ <height>22</height>
+ </rect>
+ </property>
+ <property stdset="1">
+ <name>text</name>
+ <string></string>
+ </property>
+ <property stdset="1">
+ <name>sizePolicy</name>
+ <sizepolicy>
+ <hsizetype>0</hsizetype>
+ <vsizetype>0</vsizetype>
+ </sizepolicy>
+ </property>
+ <property stdset="1">
+ <name>toggleButton</name>
+ <bool>true</bool>
+ </property>
+ </widget>
+ <widget>
+ <class>QToolButton</class>
+ <property stdset="1">
+ <name>name</name>
+ <cstring>bullet03PB</cstring>
+ </property>
+ <property stdset="1">
+ <name>geometry</name>
+ <rect>
+ <x>167</x>
+ <y>11</y>
+ <width>23</width>
+ <height>22</height>
+ </rect>
+ </property>
+ <property stdset="1">
+ <name>text</name>
+ <string></string>
+ </property>
+ <property stdset="1">
+ <name>sizePolicy</name>
+ <sizepolicy>
+ <hsizetype>0</hsizetype>
+ <vsizetype>0</vsizetype>
+ </sizepolicy>
+ </property>
+ <property stdset="1">
+ <name>toggleButton</name>
+ <bool>true</bool>
+ </property>
+ </widget>
+ <widget>
+ <class>QToolButton</class>
+ <property stdset="1">
+ <name>name</name>
+ <cstring>bullet04PB</cstring>
+ </property>
+ <property stdset="1">
+ <name>geometry</name>
+ <rect>
+ <x>190</x>
+ <y>11</y>
+ <width>23</width>
+ <height>22</height>
+ </rect>
+ </property>
+ <property stdset="1">
+ <name>text</name>
+ <string></string>
+ </property>
+ <property stdset="1">
+ <name>sizePolicy</name>
+ <sizepolicy>
+ <hsizetype>0</hsizetype>
+ <vsizetype>0</vsizetype>
+ </sizepolicy>
+ </property>
+ <property stdset="1">
+ <name>toggleButton</name>
+ <bool>true</bool>
+ </property>
+ </widget>
+ <widget>
+ <class>QToolButton</class>
+ <property stdset="1">
+ <name>name</name>
+ <cstring>bullet05PB</cstring>
+ </property>
+ <property stdset="1">
+ <name>geometry</name>
+ <rect>
+ <x>213</x>
+ <y>11</y>
+ <width>23</width>
+ <height>22</height>
+ </rect>
+ </property>
+ <property stdset="1">
+ <name>text</name>
+ <string></string>
+ </property>
+ <property stdset="1">
+ <name>sizePolicy</name>
+ <sizepolicy>
+ <hsizetype>0</hsizetype>
+ <vsizetype>0</vsizetype>
+ </sizepolicy>
+ </property>
+ <property stdset="1">
+ <name>toggleButton</name>
+ <bool>true</bool>
+ </property>
+ </widget>
+ </widget>
+ <spacer>
+ <property>
+ <name>name</name>
+ <cstring>Spacer28</cstring>
+ </property>
+ <property stdset="1">
+ <name>orientation</name>
+ <enum>Horizontal</enum>
+ </property>
+ <property stdset="1">
+ <name>sizeType</name>
+ <enum>Expanding</enum>
+ </property>
+ <property>
+ <name>sizeHint</name>
+ <size>
+ <width>20</width>
+ <height>20</height>
+ </size>
+ </property>
+ </spacer>
+ </hbox>
+ </widget>
+ <spacer>
+ <property>
+ <name>name</name>
+ <cstring>Spacer2</cstring>
+ </property>
+ <property stdset="1">
+ <name>orientation</name>
+ <enum>Vertical</enum>
+ </property>
+ <property stdset="1">
+ <name>sizeType</name>
+ <enum>Expanding</enum>
+ </property>
+ <property>
+ <name>sizeHint</name>
+ <size>
+ <width>20</width>
+ <height>20</height>
+ </size>
+ </property>
+ </spacer>
+ <widget>
+ <class>QLayoutWidget</class>
+ <property stdset="1">
+ <name>name</name>
+ <cstring>Layout45</cstring>
+ </property>
+ <hbox>
+ <property stdset="1">
+ <name>margin</name>
+ <number>0</number>
+ </property>
+ <property stdset="1">
+ <name>spacing</name>
+ <number>6</number>
+ </property>
+ <spacer>
+ <property>
+ <name>name</name>
+ <cstring>Spacer29</cstring>
+ </property>
+ <property stdset="1">
+ <name>orientation</name>
+ <enum>Horizontal</enum>
+ </property>
+ <property stdset="1">
+ <name>sizeType</name>
+ <enum>Expanding</enum>
+ </property>
+ <property>
+ <name>sizeHint</name>
+ <size>
+ <width>20</width>
+ <height>20</height>
+ </size>
+ </property>
+ </spacer>
+ <widget>
+ <class>QLayoutWidget</class>
+ <property stdset="1">
+ <name>name</name>
+ <cstring>Layout42</cstring>
+ </property>
+ <hbox>
+ <property stdset="1">
+ <name>margin</name>
+ <number>0</number>
+ </property>
+ <property stdset="1">
+ <name>spacing</name>
+ <number>6</number>
+ </property>
+ <widget>
+ <class>QLabel</class>
+ <property stdset="1">
+ <name>name</name>
+ <cstring>latexLA</cstring>
+ </property>
+ <property stdset="1">
+ <name>text</name>
+ <string>&LaTeX</string>
+ </property>
+ <property>
+ <name>buddy</name>
+ <cstring>latexED</cstring>
+ </property>
+ </widget>
+ <widget>
+ <class>QLineEdit</class>
+ <property stdset="1">
+ <name>name</name>
+ <cstring>latexED</cstring>
+ </property>
+ <property stdset="1">
+ <name>maxLength</name>
+ <number>80</number>
+ </property>
+ </widget>
+ </hbox>
+ </widget>
+ <spacer>
+ <property>
+ <name>name</name>
+ <cstring>Spacer30</cstring>
+ </property>
+ <property stdset="1">
+ <name>orientation</name>
+ <enum>Horizontal</enum>
+ </property>
+ <property stdset="1">
+ <name>sizeType</name>
+ <enum>Expanding</enum>
+ </property>
+ <property>
+ <name>sizeHint</name>
+ <size>
+ <width>20</width>
+ <height>20</height>
+ </size>
+ </property>
+ </spacer>
+ </hbox>
+ </widget>
+ </vbox>
+ </widget>
+ </widget>
+ <widget>
+ <class>QLabel</class>
+ <property stdset="1">
+ <name>name</name>
+ <cstring>warningLA</cstring>
+ </property>
+ <property stdset="1">
+ <name>palette</name>
+ <palette>
+ <active>
+ <color>
+ <red>0</red>
+ <green>0</green>
+ <blue>0</blue>
+ </color>
+ <color>
+ <red>220</red>
+ <green>220</green>
+ <blue>220</blue>
+ </color>
+ <color>
+ <red>255</red>
+ <green>255</green>
+ <blue>255</blue>
+ </color>
+ <color>
+ <red>237</red>
+ <green>237</green>
+ <blue>237</blue>
+ </color>
+ <color>
+ <red>110</red>
+ <green>110</green>
+ <blue>110</blue>
+ </color>
+ <color>
+ <red>146</red>
+ <green>146</green>
+ <blue>146</blue>
+ </color>
+ <color>
+ <red>255</red>
+ <green>0</green>
+ <blue>0</blue>
+ </color>
+ <color>
+ <red>255</red>
+ <green>255</green>
+ <blue>255</blue>
+ </color>
+ <color>
+ <red>0</red>
+ <green>0</green>
+ <blue>0</blue>
+ </color>
+ <color>
+ <red>255</red>
+ <green>255</green>
+ <blue>255</blue>
+ </color>
+ <color>
+ <red>220</red>
+ <green>220</green>
+ <blue>220</blue>
+ </color>
+ <color>
+ <red>0</red>
+ <green>0</green>
+ <blue>0</blue>
+ </color>
+ <color>
+ <red>0</red>
+ <green>128</green>
+ <blue>128</blue>
+ </color>
+ <color>
+ <red>255</red>
+ <green>255</green>
+ <blue>255</blue>
+ </color>
+ </active>
+ <disabled>
+ <color>
+ <red>128</red>
+ <green>128</green>
+ <blue>128</blue>
+ </color>
+ <color>
+ <red>220</red>
+ <green>220</green>
+ <blue>220</blue>
+ </color>
+ <color>
+ <red>255</red>
+ <green>255</green>
+ <blue>255</blue>
+ </color>
+ <color>
+ <red>253</red>
+ <green>253</green>
+ <blue>253</blue>
+ </color>
+ <color>
+ <red>110</red>
+ <green>110</green>
+ <blue>110</blue>
+ </color>
+ <color>
+ <red>146</red>
+ <green>146</green>
+ <blue>146</blue>
+ </color>
+ <color>
+ <red>255</red>
+ <green>0</green>
+ <blue>0</blue>
+ </color>
+ <color>
+ <red>255</red>
+ <green>255</green>
+ <blue>255</blue>
+ </color>
+ <color>
+ <red>128</red>
+ <green>128</green>
+ <blue>128</blue>
+ </color>
+ <color>
+ <red>255</red>
+ <green>255</green>
+ <blue>255</blue>
+ </color>
+ <color>
+ <red>220</red>
+ <green>220</green>
+ <blue>220</blue>
+ </color>
+ <color>
+ <red>0</red>
+ <green>0</green>
+ <blue>0</blue>
+ </color>
+ <color>
+ <red>0</red>
+ <green>128</green>
+ <blue>128</blue>
+ </color>
+ <color>
+ <red>255</red>
+ <green>255</green>
+ <blue>255</blue>
+ </color>
+ </disabled>
+ <inactive>
+ <color>
+ <red>0</red>
+ <green>0</green>
+ <blue>0</blue>
+ </color>
+ <color>
+ <red>220</red>
+ <green>220</green>
+ <blue>220</blue>
+ </color>
+ <color>
+ <red>255</red>
+ <green>255</green>
+ <blue>255</blue>
+ </color>
+ <color>
+ <red>253</red>
+ <green>253</green>
+ <blue>253</blue>
+ </color>
+ <color>
+ <red>110</red>
+ <green>110</green>
+ <blue>110</blue>
+ </color>
+ <color>
+ <red>146</red>
+ <green>146</green>
+ <blue>146</blue>
+ </color>
+ <color>
+ <red>255</red>
+ <green>0</green>
+ <blue>0</blue>
+ </color>
+ <color>
+ <red>255</red>
+ <green>255</green>
+ <blue>255</blue>
+ </color>
+ <color>
+ <red>0</red>
+ <green>0</green>
+ <blue>0</blue>
+ </color>
+ <color>
+ <red>255</red>
+ <green>255</green>
+ <blue>255</blue>
+ </color>
+ <color>
+ <red>220</red>
+ <green>220</green>
+ <blue>220</blue>
+ </color>
+ <color>
+ <red>0</red>
+ <green>0</green>
+ <blue>0</blue>
+ </color>
+ <color>
+ <red>0</red>
+ <green>128</green>
+ <blue>128</blue>
+ </color>
+ <color>
+ <red>255</red>
+ <green>255</green>
+ <blue>255</blue>
+ </color>
+ </inactive>
+ </palette>
+ </property>
+ <property stdset="1">
+ <name>font</name>
+ <font>
+ <bold>1</bold>
+ </font>
+ </property>
+ <property stdset="1">
+ <name>text</name>
+ <string></string>
+ </property>
+ <property stdset="1">
+ <name>alignment</name>
+ <set>AlignCenter</set>
+ </property>
+ <property>
+ <name>hAlign</name>
+ </property>
+ </widget>
+ <widget>
+ <class>QLayoutWidget</class>
+ <property stdset="1">
+ <name>name</name>
+ <cstring>Layout54</cstring>
+ </property>
+ <hbox>
+ <property stdset="1">
+ <name>margin</name>
+ <number>0</number>
+ </property>
+ <property stdset="1">
+ <name>spacing</name>
+ <number>6</number>
+ </property>
+ <spacer>
+ <property>
+ <name>name</name>
+ <cstring>Spacer39</cstring>
+ </property>
+ <property stdset="1">
+ <name>orientation</name>
+ <enum>Horizontal</enum>
+ </property>
+ <property stdset="1">
+ <name>sizeType</name>
+ <enum>Expanding</enum>
+ </property>
+ <property>
+ <name>sizeHint</name>
+ <size>
+ <width>20</width>
+ <height>20</height>
+ </size>
+ </property>
+ </spacer>
+ <widget>
+ <class>QPushButton</class>
+ <property stdset="1">
+ <name>name</name>
+ <cstring>restorePB</cstring>
+ </property>
+ <property stdset="1">
+ <name>text</name>
+ <string>&Restore</string>
+ </property>
+ </widget>
+ <widget>
+ <class>QPushButton</class>
+ <property stdset="1">
+ <name>name</name>
+ <cstring>okPB</cstring>
+ </property>
+ <property stdset="1">
+ <name>text</name>
+ <string>OK</string>
+ </property>
+ <property stdset="1">
+ <name>default</name>
+ <bool>true</bool>
+ </property>
+ </widget>
+ <widget>
+ <class>QPushButton</class>
+ <property stdset="1">
+ <name>name</name>
+ <cstring>applyPB</cstring>
+ </property>
+ <property stdset="1">
+ <name>text</name>
+ <string>&Apply</string>
+ </property>
+ </widget>
+ <widget>
+ <class>QPushButton</class>
+ <property stdset="1">
+ <name>name</name>
+ <cstring>cancelPB</cstring>
+ </property>
+ <property stdset="1">
+ <name>text</name>
+ <string>Cancel</string>
+ </property>
+ </widget>
+ </hbox>
+ </widget>
+ </vbox>
+</widget>
+<connections>
+ <connection>
+ <sender>okPB</sender>
+ <signal>clicked()</signal>
+ <receiver>QDocumentDialogBase</receiver>
+ <slot>slotOK()</slot>
+ </connection>
+ <connection>
+ <sender>restorePB</sender>
+ <signal>clicked()</signal>
+ <receiver>QDocumentDialogBase</receiver>
+ <slot>slotRestore()</slot>
+ </connection>
+ <connection>
+ <sender>paperPackageCO</sender>
+ <signal>activated(int)</signal>
+ <receiver>QDocumentDialogBase</receiver>
+ <slot>slotSpecialPaperPackage(int)</slot>
+ </connection>
+ <connection>
+ <sender>orientationBG</sender>
+ <signal>clicked(int)</signal>
+ <receiver>QDocumentDialogBase</receiver>
+ <slot>slotOrientation(int)</slot>
+ </connection>
+ <connection>
+ <sender>papersize2CO</sender>
+ <signal>activated(int)</signal>
+ <receiver>QDocumentDialogBase</receiver>
+ <slot>slotPapersize(int)</slot>
+ </connection>
+ <connection>
+ <sender>useGeometryCB</sender>
+ <signal>toggled(bool)</signal>
+ <receiver>QDocumentDialogBase</receiver>
+ <slot>slotUseGeometryPackage(bool)</slot>
+ </connection>
+ <connection>
+ <sender>customWidthED</sender>
+ <signal>textChanged(const QString&)</signal>
+ <receiver>QDocumentDialogBase</receiver>
+ <slot>slotWidth(const QString&)</slot>
+ </connection>
+ <connection>
+ <sender>customHeightED</sender>
+ <signal>textChanged(const QString&)</signal>
+ <receiver>QDocumentDialogBase</receiver>
+ <slot>slotHeight(const QString&)</slot>
+ </connection>
+ <connection>
+ <sender>topMarginED</sender>
+ <signal>textChanged(const QString&)</signal>
+ <receiver>QDocumentDialogBase</receiver>
+ <slot>slotMarginTop(const QString&)</slot>
+ </connection>
+ <connection>
+ <sender>bottomMarginED</sender>
+ <signal>textChanged(const QString&)</signal>
+ <receiver>QDocumentDialogBase</receiver>
+ <slot>slotMarginBottom(const QString&)</slot>
+ </connection>
+ <connection>
+ <sender>leftMarginED</sender>
+ <signal>textChanged(const QString&)</signal>
+ <receiver>QDocumentDialogBase</receiver>
+ <slot>slotMarginLeft(const QString&)</slot>
+ </connection>
+ <connection>
+ <sender>rightMarginED</sender>
+ <signal>textChanged(const QString&)</signal>
+ <receiver>QDocumentDialogBase</receiver>
+ <slot>slotMarginRight(const QString&)</slot>
+ </connection>
+ <connection>
+ <sender>headHeightED</sender>
+ <signal>textChanged(const QString&)</signal>
+ <receiver>QDocumentDialogBase</receiver>
+ <slot>slotHeadheight(const QString&)</slot>
+ </connection>
+ <connection>
+ <sender>headSepED</sender>
+ <signal>textChanged(const QString&)</signal>
+ <receiver>QDocumentDialogBase</receiver>
+ <slot>slotHeadsep(const QString&)</slot>
+ </connection>
+ <connection>
+ <sender>footSkipED</sender>
+ <signal>textChanged(const QString&)</signal>
+ <receiver>QDocumentDialogBase</receiver>
+ <slot>slotFootskip(const QString&)</slot>
+ </connection>
+ <connection>
+ <sender>docClassCO</sender>
+ <signal>activated(int)</signal>
+ <receiver>QDocumentDialogBase</receiver>
+ <slot>slotClass(int)</slot>
+ </connection>
+ <connection>
+ <sender>docPagestyleCO</sender>
+ <signal>activated(int)</signal>
+ <receiver>QDocumentDialogBase</receiver>
+ <slot>slotPageStyle(int)</slot>
+ </connection>
+ <connection>
+ <sender>docFontsCO</sender>
+ <signal>activated(int)</signal>
+ <receiver>QDocumentDialogBase</receiver>
+ <slot>slotFont(int)</slot>
+ </connection>
+ <connection>
+ <sender>docFontSizeCO</sender>
+ <signal>activated(int)</signal>
+ <receiver>QDocumentDialogBase</receiver>
+ <slot>slotFontSize(int)</slot>
+ </connection>
+ <connection>
+ <sender>docExtraED</sender>
+ <signal>textChanged(const QString&)</signal>
+ <receiver>QDocumentDialogBase</receiver>
+ <slot>slotExtraOptions(const QString&)</slot>
+ </connection>
+ <connection>
+ <sender>docSkipCO</sender>
+ <signal>activated(int)</signal>
+ <receiver>QDocumentDialogBase</receiver>
+ <slot>slotDefaultSkip(int)</slot>
+ </connection>
+ <connection>
+ <sender>docSkipED</sender>
+ <signal>textChanged(const QString&)</signal>
+ <receiver>QDocumentDialogBase</receiver>
+ <slot>slotDefaultSkip(const QString&)</slot>
+ </connection>
+ <connection>
+ <sender>docSpacingCO</sender>
+ <signal>activated(int)</signal>
+ <receiver>QDocumentDialogBase</receiver>
+ <slot>slotSpacing(int)</slot>
+ </connection>
+ <connection>
+ <sender>docSpacingED</sender>
+ <signal>textChanged(const QString&)</signal>
+ <receiver>QDocumentDialogBase</receiver>
+ <slot>slotSpacing(const QString&)</slot>
+ </connection>
+ <connection>
+ <sender>sidesBG</sender>
+ <signal>clicked(int)</signal>
+ <receiver>QDocumentDialogBase</receiver>
+ <slot>slotSides(int)</slot>
+ </connection>
+ <connection>
+ <sender>columnsBG</sender>
+ <signal>clicked(int)</signal>
+ <receiver>QDocumentDialogBase</receiver>
+ <slot>slotColumns(int)</slot>
+ </connection>
+ <connection>
+ <sender>separationBG</sender>
+ <signal>clicked(int)</signal>
+ <receiver>QDocumentDialogBase</receiver>
+ <slot>slotSeparation(int)</slot>
+ </connection>
+ <connection>
+ <sender>languageCO</sender>
+ <signal>activated(int)</signal>
+ <receiver>QDocumentDialogBase</receiver>
+ <slot>slotLanguage(int)</slot>
+ </connection>
+ <connection>
+ <sender>inputEncCO</sender>
+ <signal>activated(int)</signal>
+ <receiver>QDocumentDialogBase</receiver>
+ <slot>slotEncoding(int)</slot>
+ </connection>
+ <connection>
+ <sender>quotesLanguageCO</sender>
+ <signal>activated(int)</signal>
+ <receiver>QDocumentDialogBase</receiver>
+ <slot>slotQuoteStyle(int)</slot>
+ </connection>
+ <connection>
+ <sender>quoteStyleBG</sender>
+ <signal>clicked(int)</signal>
+ <receiver>QDocumentDialogBase</receiver>
+ <slot>slotQuoteStyle(int)</slot>
+ </connection>
+ <connection>
+ <sender>floatPlacementED</sender>
+ <signal>textChanged(const QString&)</signal>
+ <receiver>QDocumentDialogBase</receiver>
+ <slot>slotFloatPlacement(const QString&)</slot>
+ </connection>
+ <connection>
+ <sender>secNumDepthSB</sender>
+ <signal>valueChanged(int)</signal>
+ <receiver>QDocumentDialogBase</receiver>
+ <slot>slotSectionNumberDepth(int)</slot>
+ </connection>
+ <connection>
+ <sender>tocDepthSB</sender>
+ <signal>valueChanged(int)</signal>
+ <receiver>QDocumentDialogBase</receiver>
+ <slot>slotTOCDepth(int)</slot>
+ </connection>
+ <connection>
+ <sender>postscriptDriverCO</sender>
+ <signal>activated(int)</signal>
+ <receiver>QDocumentDialogBase</receiver>
+ <slot>slotPSDriver(int)</slot>
+ </connection>
+ <connection>
+ <sender>useAmsMathCB</sender>
+ <signal>toggled(bool)</signal>
+ <receiver>QDocumentDialogBase</receiver>
+ <slot>slotAMSMath(bool)</slot>
+ </connection>
+ <connection>
+ <sender>applyPB</sender>
+ <signal>clicked()</signal>
+ <receiver>QDocumentDialogBase</receiver>
+ <slot>slotApply()</slot>
+ </connection>
+ <connection>
+ <sender>cancelPB</sender>
+ <signal>clicked()</signal>
+ <receiver>QDocumentDialogBase</receiver>
+ <slot>slotClose()</slot>
+ </connection>
+ <connection>
+ <sender>latexED</sender>
+ <signal>textChanged(const QString&)</signal>
+ <receiver>QDocumentDialogBase</receiver>
+ <slot>slotBulletLaTeX(const QString&)</slot>
+ </connection>
+ <connection>
+ <sender>bulletPanelStandardPB</sender>
+ <signal>clicked()</signal>
+ <receiver>QDocumentDialogBase</receiver>
+ <slot>slotBulletStandard()</slot>
+ </connection>
+ <connection>
+ <sender>bulletPanelMathsPB</sender>
+ <signal>clicked()</signal>
+ <receiver>QDocumentDialogBase</receiver>
+ <slot>slotBulletMaths()</slot>
+ </connection>
+ <connection>
+ <sender>bulletPanelDing1PB</sender>
+ <signal>clicked()</signal>
+ <receiver>QDocumentDialogBase</receiver>
+ <slot>slotBulletDing1()</slot>
+ </connection>
+ <connection>
+ <sender>bulletPanelDing2PB</sender>
+ <signal>clicked()</signal>
+ <receiver>QDocumentDialogBase</receiver>
+ <slot>slotBulletDing2()</slot>
+ </connection>
+ <connection>
+ <sender>bulletPanelDing3PB</sender>
+ <signal>clicked()</signal>
+ <receiver>QDocumentDialogBase</receiver>
+ <slot>slotBulletDing3()</slot>
+ </connection>
+ <connection>
+ <sender>bulletDing4PB</sender>
+ <signal>clicked()</signal>
+ <receiver>QDocumentDialogBase</receiver>
+ <slot>slotBulletDing4()</slot>
+ </connection>
+ <connection>
+ <sender>bulletTypeBG</sender>
+ <signal>clicked(int)</signal>
+ <receiver>QDocumentDialogBase</receiver>
+ <slot>slotBulletSymbol(int)</slot>
+ </connection>
+ <connection>
+ <sender>bulletSizeCO</sender>
+ <signal>activated(int)</signal>
+ <receiver>QDocumentDialogBase</receiver>
+ <slot>slotBulletSize(int)</slot>
+ </connection>
+ <connection>
+ <sender>bulletDepth1PB</sender>
+ <signal>clicked()</signal>
+ <receiver>QDocumentDialogBase</receiver>
+ <slot>slotBulletDepth1()</slot>
+ </connection>
+ <connection>
+ <sender>bulletDepth2PB</sender>
+ <signal>clicked()</signal>
+ <receiver>QDocumentDialogBase</receiver>
+ <slot>slotBulletDepth2()</slot>
+ </connection>
+ <connection>
+ <sender>bulletDepth3PB</sender>
+ <signal>clicked()</signal>
+ <receiver>QDocumentDialogBase</receiver>
+ <slot>slotBulletDing3()</slot>
+ </connection>
+ <connection>
+ <sender>bulletDepth4PB</sender>
+ <signal>clicked()</signal>
+ <receiver>QDocumentDialogBase</receiver>
+ <slot>slotBulletDepth4()</slot>
+ </connection>
+ <slot access="public">slotAMSMath(bool)</slot>
+ <slot access="public">slotApply()</slot>
+ <slot access="public">slotBulletDepth1()</slot>
+ <slot access="public">slotBulletDepth2()</slot>
+ <slot access="public">slotBulletDepth3()</slot>
+ <slot access="public">slotBulletDepth4()</slot>
+ <slot access="public">slotBulletDing1()</slot>
+ <slot access="public">slotBulletDing2()</slot>
+ <slot access="public">slotBulletDing3()</slot>
+ <slot access="public">slotBulletDing4()</slot>
+ <slot access="public">slotBulletLaTeX(const QString&)</slot>
+ <slot access="public">slotBulletMaths()</slot>
+ <slot access="public">slotBulletSize(int)</slot>
+ <slot access="public">slotBulletStandard()</slot>
+ <slot access="public">slotBulletSymbol(int)</slot>
+ <slot access="public">slotClass(int)</slot>
+ <slot access="public">slotClose()</slot>
+ <slot access="public">slotColumns(int)</slot>
+ <slot access="public">slotDefaultSkip(const QString&)</slot>
+ <slot access="public">slotDefaultSkip(int)</slot>
+ <slot access="public">slotEncoding(int)</slot>
+ <slot access="public">slotExtraOptions(const QString&)</slot>
+ <slot access="public">slotFloatPlacement(const QString&)</slot>
+ <slot access="public">slotFont(int)</slot>
+ <slot access="public">slotFontSize(int)</slot>
+ <slot access="public">slotFootskip(const QString&)</slot>
+ <slot access="public">slotHeadheight(const QString&)</slot>
+ <slot access="public">slotHeadsep(const QString&)</slot>
+ <slot access="public">slotHeight(const QString&)</slot>
+ <slot access="public">slotLanguage(int)</slot>
+ <slot access="public">slotMarginBottom(const QString&)</slot>
+ <slot access="public">slotMarginLeft(const QString&)</slot>
+ <slot access="public">slotMarginRight(const QString&)</slot>
+ <slot access="public">slotMarginTop(const QString&)</slot>
+ <slot access="public">slotOK()</slot>
+ <slot access="public">slotOrientation(int)</slot>
+ <slot access="public">slotPSDriver(int)</slot>
+ <slot access="public">slotPageStyle(int)</slot>
+ <slot access="public">slotPapersize(int)</slot>
+ <slot access="public">slotQuoteStyle(int)</slot>
+ <slot access="public">slotQuoteType(int)</slot>
+ <slot access="public">slotRestore()</slot>
+ <slot access="public">slotSectionNumberDepth(int)</slot>
+ <slot access="public">slotSeparation(int)</slot>
+ <slot access="public">slotSides(int)</slot>
+ <slot access="public">slotSpacing(const QString&)</slot>
+ <slot access="public">slotSpacing(int)</slot>
+ <slot access="public">slotSpecialPaperPackage(int)</slot>
+ <slot access="public">slotTOCDepth(int)</slot>
+ <slot access="public">slotUseGeometryPackage(bool)</slot>
+ <slot access="public">slotWidth(const QString&)</slot>
+</connections>
+<tabstops>
+ <tabstop>docClassCO</tabstop>
+ <tabstop>docPagestyleCO</tabstop>
+ <tabstop>docFontsCO</tabstop>
+ <tabstop>docFontSizeCO</tabstop>
+ <tabstop>docExtraED</tabstop>
+ <tabstop>docSkipCO</tabstop>
+ <tabstop>docSkipED</tabstop>
+ <tabstop>docSpacingCO</tabstop>
+ <tabstop>docSpacingED</tabstop>
+ <tabstop>docSidesOneRB</tabstop>
+ <tabstop>docSidesTwoRB</tabstop>
+ <tabstop>docColumnsOneRB</tabstop>
+ <tabstop>docColumnsTwoRB</tabstop>
+ <tabstop>docIndentRB</tabstop>
+ <tabstop>docSkipRB</tabstop>
+ <tabstop>papersize2CO</tabstop>
+ <tabstop>paperPackageCO</tabstop>
+ <tabstop>useGeometryCB</tabstop>
+ <tabstop>portraitRB</tabstop>
+ <tabstop>landscapeRB</tabstop>
+ <tabstop>topMarginED</tabstop>
+ <tabstop>bottomMarginED</tabstop>
+ <tabstop>leftMarginED</tabstop>
+ <tabstop>rightMarginED</tabstop>
+ <tabstop>customWidthED</tabstop>
+ <tabstop>customHeightED</tabstop>
+ <tabstop>headHeightED</tabstop>
+ <tabstop>headSepED</tabstop>
+ <tabstop>footSkipED</tabstop>
+ <tabstop>languageCO</tabstop>
+ <tabstop>inputEncCO</tabstop>
+ <tabstop>quotesLanguageCO</tabstop>
+ <tabstop>singleRB</tabstop>
+ <tabstop>doubleRB</tabstop>
+ <tabstop>floatPlacementED</tabstop>
+ <tabstop>secNumDepthSB</tabstop>
+ <tabstop>tocDepthSB</tabstop>
+ <tabstop>postscriptDriverCO</tabstop>
+ <tabstop>useAmsMathCB</tabstop>
+ <tabstop>bulletSizeCO</tabstop>
+ <tabstop>latexED</tabstop>
+ <tabstop>restorePB</tabstop>
+ <tabstop>okPB</tabstop>
+ <tabstop>applyPB</tabstop>
+ <tabstop>cancelPB</tabstop>
+ <tabstop>TabWidget2</tabstop>
+</tabstops>
+</UI>
--- /dev/null
+<!DOCTYPE UI><UI>
+<class>QIndexDialogBase</class>
+<widget>
+ <class>QDialog</class>
+ <property stdset="1">
+ <name>name</name>
+ <cstring>QIndexDialogBase</cstring>
+ </property>
+ <property stdset="1">
+ <name>geometry</name>
+ <rect>
+ <x>0</x>
+ <y>0</y>
+ <width>212</width>
+ <height>82</height>
+ </rect>
+ </property>
+ <property stdset="1">
+ <name>caption</name>
+ <string>Index</string>
+ </property>
+ <vbox>
+ <property stdset="1">
+ <name>margin</name>
+ <number>11</number>
+ </property>
+ <property stdset="1">
+ <name>spacing</name>
+ <number>6</number>
+ </property>
+ <widget>
+ <class>QLayoutWidget</class>
+ <property stdset="1">
+ <name>name</name>
+ <cstring>Layout28</cstring>
+ </property>
+ <hbox>
+ <property stdset="1">
+ <name>margin</name>
+ <number>0</number>
+ </property>
+ <property stdset="1">
+ <name>spacing</name>
+ <number>6</number>
+ </property>
+ <widget>
+ <class>QLabel</class>
+ <property stdset="1">
+ <name>name</name>
+ <cstring>keywordLA</cstring>
+ </property>
+ <property stdset="1">
+ <name>text</name>
+ <string>&Keyword</string>
+ </property>
+ <property>
+ <name>buddy</name>
+ <cstring>keywordED</cstring>
+ </property>
+ <property>
+ <name>toolTip</name>
+ <string>Index entry</string>
+ </property>
+ </widget>
+ <widget>
+ <class>QLineEdit</class>
+ <property stdset="1">
+ <name>name</name>
+ <cstring>keywordED</cstring>
+ </property>
+ <property>
+ <name>toolTip</name>
+ <string>Index entry</string>
+ </property>
+ </widget>
+ </hbox>
+ </widget>
+ <widget>
+ <class>QLayoutWidget</class>
+ <property stdset="1">
+ <name>name</name>
+ <cstring>Layout27</cstring>
+ </property>
+ <hbox>
+ <property stdset="1">
+ <name>margin</name>
+ <number>0</number>
+ </property>
+ <property stdset="1">
+ <name>spacing</name>
+ <number>6</number>
+ </property>
+ <spacer>
+ <property>
+ <name>name</name>
+ <cstring>Spacer3</cstring>
+ </property>
+ <property stdset="1">
+ <name>orientation</name>
+ <enum>Horizontal</enum>
+ </property>
+ <property stdset="1">
+ <name>sizeType</name>
+ <enum>Expanding</enum>
+ </property>
+ <property>
+ <name>sizeHint</name>
+ <size>
+ <width>20</width>
+ <height>20</height>
+ </size>
+ </property>
+ </spacer>
+ <widget>
+ <class>QPushButton</class>
+ <property stdset="1">
+ <name>name</name>
+ <cstring>okPB</cstring>
+ </property>
+ <property stdset="1">
+ <name>text</name>
+ <string>OK</string>
+ </property>
+ <property stdset="1">
+ <name>default</name>
+ <bool>true</bool>
+ </property>
+ </widget>
+ <widget>
+ <class>QPushButton</class>
+ <property stdset="1">
+ <name>name</name>
+ <cstring>cancelPB</cstring>
+ </property>
+ <property stdset="1">
+ <name>text</name>
+ <string>Cancel</string>
+ </property>
+ </widget>
+ </hbox>
+ </widget>
+ </vbox>
+</widget>
+<connections>
+ <connection>
+ <sender>okPB</sender>
+ <signal>clicked()</signal>
+ <receiver>QIndexDialogBase</receiver>
+ <slot>apply_adaptor()</slot>
+ </connection>
+ <connection>
+ <sender>cancelPB</sender>
+ <signal>clicked()</signal>
+ <receiver>QIndexDialogBase</receiver>
+ <slot>close_adaptor()</slot>
+ </connection>
+ <slot access="public">apply_adaptor()</slot>
+ <slot access="public">close_adaptor()</slot>
+</connections>
+</UI>
--- /dev/null
+<!DOCTYPE UI><UI>
+<class>QParagraphDialogBase</class>
+<widget>
+ <class>QDialog</class>
+ <property stdset="1">
+ <name>name</name>
+ <cstring>QParagraphDialogBase</cstring>
+ </property>
+ <property stdset="1">
+ <name>geometry</name>
+ <rect>
+ <x>0</x>
+ <y>0</y>
+ <width>567</width>
+ <height>387</height>
+ </rect>
+ </property>
+ <property stdset="1">
+ <name>sizePolicy</name>
+ <sizepolicy>
+ <hsizetype>1</hsizetype>
+ <vsizetype>1</vsizetype>
+ </sizepolicy>
+ </property>
+ <property stdset="1">
+ <name>caption</name>
+ <string>Paragraph</string>
+ </property>
+ <property stdset="1">
+ <name>sizeGripEnabled</name>
+ <bool>true</bool>
+ </property>
+ <property>
+ <name>layoutMargin</name>
+ </property>
+ <property>
+ <name>layoutSpacing</name>
+ </property>
+ <vbox>
+ <property stdset="1">
+ <name>margin</name>
+ <number>11</number>
+ </property>
+ <property stdset="1">
+ <name>spacing</name>
+ <number>6</number>
+ </property>
+ <widget>
+ <class>QTabWidget</class>
+ <property stdset="1">
+ <name>name</name>
+ <cstring>TabsParagraph</cstring>
+ </property>
+ <property>
+ <name>layoutMargin</name>
+ </property>
+ <property>
+ <name>layoutSpacing</name>
+ </property>
+ <widget>
+ <class>QWidget</class>
+ <property stdset="1">
+ <name>name</name>
+ <cstring>tab</cstring>
+ </property>
+ <attribute>
+ <name>title</name>
+ <string>&Alignment and Spacing</string>
+ </attribute>
+ <vbox>
+ <property stdset="1">
+ <name>margin</name>
+ <number>11</number>
+ </property>
+ <property stdset="1">
+ <name>spacing</name>
+ <number>6</number>
+ </property>
+ <widget>
+ <class>QLayoutWidget</class>
+ <property stdset="1">
+ <name>name</name>
+ <cstring>Layout6</cstring>
+ </property>
+ <hbox>
+ <property stdset="1">
+ <name>margin</name>
+ <number>0</number>
+ </property>
+ <property stdset="1">
+ <name>spacing</name>
+ <number>6</number>
+ </property>
+ <widget>
+ <class>QLabel</class>
+ <property stdset="1">
+ <name>name</name>
+ <cstring>alignmentL</cstring>
+ </property>
+ <property stdset="1">
+ <name>text</name>
+ <string>Alignment:</string>
+ </property>
+ <property stdset="1">
+ <name>sizePolicy</name>
+ <sizepolicy>
+ <hsizetype>1</hsizetype>
+ <vsizetype>1</vsizetype>
+ </sizepolicy>
+ </property>
+ </widget>
+ <widget>
+ <class>QComboBox</class>
+ <item>
+ <property>
+ <name>text</name>
+ <string>Justified</string>
+ </property>
+ </item>
+ <item>
+ <property>
+ <name>text</name>
+ <string>Left</string>
+ </property>
+ </item>
+ <item>
+ <property>
+ <name>text</name>
+ <string>Right</string>
+ </property>
+ </item>
+ <item>
+ <property>
+ <name>text</name>
+ <string>Centered</string>
+ </property>
+ </item>
+ <property stdset="1">
+ <name>name</name>
+ <cstring>alignment</cstring>
+ </property>
+ <property stdset="1">
+ <name>insertionPolicy</name>
+ <enum>AtBottom</enum>
+ </property>
+ <property stdset="1">
+ <name>autoCompletion</name>
+ <bool>false</bool>
+ </property>
+ </widget>
+ <spacer>
+ <property>
+ <name>name</name>
+ <cstring>Spacer3</cstring>
+ </property>
+ <property stdset="1">
+ <name>orientation</name>
+ <enum>Horizontal</enum>
+ </property>
+ <property stdset="1">
+ <name>sizeType</name>
+ <enum>Expanding</enum>
+ </property>
+ <property>
+ <name>sizeHint</name>
+ <size>
+ <width>20</width>
+ <height>20</height>
+ </size>
+ </property>
+ </spacer>
+ <widget>
+ <class>QCheckBox</class>
+ <property stdset="1">
+ <name>name</name>
+ <cstring>noIndent</cstring>
+ </property>
+ <property stdset="1">
+ <name>text</name>
+ <string>No indentation</string>
+ </property>
+ </widget>
+ </hbox>
+ </widget>
+ <widget>
+ <class>QGroupBox</class>
+ <property stdset="1">
+ <name>name</name>
+ <cstring>spacingOptions</cstring>
+ </property>
+ <property stdset="1">
+ <name>title</name>
+ <string>Spacing</string>
+ </property>
+ <property stdset="1">
+ <name>enabled</name>
+ <bool>true</bool>
+ </property>
+ <property>
+ <name>layoutSpacing</name>
+ </property>
+ <grid>
+ <property stdset="1">
+ <name>margin</name>
+ <number>11</number>
+ </property>
+ <property stdset="1">
+ <name>spacing</name>
+ <number>6</number>
+ </property>
+ <widget row="4" column="2" >
+ <class>QComboBox</class>
+ <item>
+ <property>
+ <name>text</name>
+ <string>Centimetres</string>
+ </property>
+ </item>
+ <item>
+ <property>
+ <name>text</name>
+ <string>Inches</string>
+ </property>
+ </item>
+ <item>
+ <property>
+ <name>text</name>
+ <string>Points</string>
+ </property>
+ </item>
+ <item>
+ <property>
+ <name>text</name>
+ <string>Millimetres</string>
+ </property>
+ </item>
+ <item>
+ <property>
+ <name>text</name>
+ <string>Picas</string>
+ </property>
+ </item>
+ <item>
+ <property>
+ <name>text</name>
+ <string>ex Units</string>
+ </property>
+ </item>
+ <item>
+ <property>
+ <name>text</name>
+ <string>em Units</string>
+ </property>
+ </item>
+ <item>
+ <property>
+ <name>text</name>
+ <string>Scaled Points</string>
+ </property>
+ </item>
+ <item>
+ <property>
+ <name>text</name>
+ <string>Big/PS Points</string>
+ </property>
+ </item>
+ <item>
+ <property>
+ <name>text</name>
+ <string>Didot Points</string>
+ </property>
+ </item>
+ <item>
+ <property>
+ <name>text</name>
+ <string>Cicero Points</string>
+ </property>
+ </item>
+ <property stdset="1">
+ <name>name</name>
+ <cstring>spacingBelowValueUnit</cstring>
+ </property>
+ <property stdset="1">
+ <name>enabled</name>
+ <bool>false</bool>
+ </property>
+ <property stdset="1">
+ <name>sizePolicy</name>
+ <sizepolicy>
+ <hsizetype>3</hsizetype>
+ <vsizetype>0</vsizetype>
+ </sizepolicy>
+ </property>
+ </widget>
+ <widget row="4" column="3" >
+ <class>QComboBox</class>
+ <item>
+ <property>
+ <name>text</name>
+ <string>Centimetres</string>
+ </property>
+ </item>
+ <item>
+ <property>
+ <name>text</name>
+ <string>Inches</string>
+ </property>
+ </item>
+ <item>
+ <property>
+ <name>text</name>
+ <string>Points</string>
+ </property>
+ </item>
+ <item>
+ <property>
+ <name>text</name>
+ <string>Millimetres</string>
+ </property>
+ </item>
+ <item>
+ <property>
+ <name>text</name>
+ <string>Picas</string>
+ </property>
+ </item>
+ <item>
+ <property>
+ <name>text</name>
+ <string>ex Units</string>
+ </property>
+ </item>
+ <item>
+ <property>
+ <name>text</name>
+ <string>em Units</string>
+ </property>
+ </item>
+ <item>
+ <property>
+ <name>text</name>
+ <string>Scaled Points</string>
+ </property>
+ </item>
+ <item>
+ <property>
+ <name>text</name>
+ <string>Big/PS Points</string>
+ </property>
+ </item>
+ <item>
+ <property>
+ <name>text</name>
+ <string>Didot Points</string>
+ </property>
+ </item>
+ <item>
+ <property>
+ <name>text</name>
+ <string>Cicero Points</string>
+ </property>
+ </item>
+ <property stdset="1">
+ <name>name</name>
+ <cstring>spacingBelowPlusUnit</cstring>
+ </property>
+ <property stdset="1">
+ <name>enabled</name>
+ <bool>false</bool>
+ </property>
+ <property stdset="1">
+ <name>sizePolicy</name>
+ <sizepolicy>
+ <hsizetype>3</hsizetype>
+ <vsizetype>0</vsizetype>
+ </sizepolicy>
+ </property>
+ </widget>
+ <widget row="4" column="4" >
+ <class>QComboBox</class>
+ <item>
+ <property>
+ <name>text</name>
+ <string>Centimetres</string>
+ </property>
+ </item>
+ <item>
+ <property>
+ <name>text</name>
+ <string>Inches</string>
+ </property>
+ </item>
+ <item>
+ <property>
+ <name>text</name>
+ <string>Points</string>
+ </property>
+ </item>
+ <item>
+ <property>
+ <name>text</name>
+ <string>Millimetres</string>
+ </property>
+ </item>
+ <item>
+ <property>
+ <name>text</name>
+ <string>Picas</string>
+ </property>
+ </item>
+ <item>
+ <property>
+ <name>text</name>
+ <string>ex Units</string>
+ </property>
+ </item>
+ <item>
+ <property>
+ <name>text</name>
+ <string>em Units</string>
+ </property>
+ </item>
+ <item>
+ <property>
+ <name>text</name>
+ <string>Scaled Points</string>
+ </property>
+ </item>
+ <item>
+ <property>
+ <name>text</name>
+ <string>Big/PS Points</string>
+ </property>
+ </item>
+ <item>
+ <property>
+ <name>text</name>
+ <string>Didot Points</string>
+ </property>
+ </item>
+ <item>
+ <property>
+ <name>text</name>
+ <string>Cicero Points</string>
+ </property>
+ </item>
+ <property stdset="1">
+ <name>name</name>
+ <cstring>spacingBelowMinusUnit</cstring>
+ </property>
+ <property stdset="1">
+ <name>enabled</name>
+ <bool>false</bool>
+ </property>
+ <property stdset="1">
+ <name>sizePolicy</name>
+ <sizepolicy>
+ <hsizetype>3</hsizetype>
+ <vsizetype>0</vsizetype>
+ </sizepolicy>
+ </property>
+ </widget>
+ <widget row="2" column="3" >
+ <class>QComboBox</class>
+ <item>
+ <property>
+ <name>text</name>
+ <string>Centimetres</string>
+ </property>
+ </item>
+ <item>
+ <property>
+ <name>text</name>
+ <string>Inches</string>
+ </property>
+ </item>
+ <item>
+ <property>
+ <name>text</name>
+ <string>Points</string>
+ </property>
+ </item>
+ <item>
+ <property>
+ <name>text</name>
+ <string>Millimetres</string>
+ </property>
+ </item>
+ <item>
+ <property>
+ <name>text</name>
+ <string>Picas</string>
+ </property>
+ </item>
+ <item>
+ <property>
+ <name>text</name>
+ <string>ex Units</string>
+ </property>
+ </item>
+ <item>
+ <property>
+ <name>text</name>
+ <string>em Units</string>
+ </property>
+ </item>
+ <item>
+ <property>
+ <name>text</name>
+ <string>Scaled Points</string>
+ </property>
+ </item>
+ <item>
+ <property>
+ <name>text</name>
+ <string>Big/PS Points</string>
+ </property>
+ </item>
+ <item>
+ <property>
+ <name>text</name>
+ <string>Didot Points</string>
+ </property>
+ </item>
+ <item>
+ <property>
+ <name>text</name>
+ <string>Cicero Points</string>
+ </property>
+ </item>
+ <property stdset="1">
+ <name>name</name>
+ <cstring>spacingAbovePlusUnit</cstring>
+ </property>
+ <property stdset="1">
+ <name>enabled</name>
+ <bool>false</bool>
+ </property>
+ <property stdset="1">
+ <name>sizePolicy</name>
+ <sizepolicy>
+ <hsizetype>3</hsizetype>
+ <vsizetype>0</vsizetype>
+ </sizepolicy>
+ </property>
+ </widget>
+ <widget row="2" column="2" >
+ <class>QComboBox</class>
+ <item>
+ <property>
+ <name>text</name>
+ <string>Centimetres</string>
+ </property>
+ </item>
+ <item>
+ <property>
+ <name>text</name>
+ <string>Inches</string>
+ </property>
+ </item>
+ <item>
+ <property>
+ <name>text</name>
+ <string>Points</string>
+ </property>
+ </item>
+ <item>
+ <property>
+ <name>text</name>
+ <string>Millimetres</string>
+ </property>
+ </item>
+ <item>
+ <property>
+ <name>text</name>
+ <string>Picas</string>
+ </property>
+ </item>
+ <item>
+ <property>
+ <name>text</name>
+ <string>ex Units</string>
+ </property>
+ </item>
+ <item>
+ <property>
+ <name>text</name>
+ <string>em Units</string>
+ </property>
+ </item>
+ <item>
+ <property>
+ <name>text</name>
+ <string>Scaled Points</string>
+ </property>
+ </item>
+ <item>
+ <property>
+ <name>text</name>
+ <string>Big/PS Points</string>
+ </property>
+ </item>
+ <item>
+ <property>
+ <name>text</name>
+ <string>Didot Points</string>
+ </property>
+ </item>
+ <item>
+ <property>
+ <name>text</name>
+ <string>Cicero Points</string>
+ </property>
+ </item>
+ <property stdset="1">
+ <name>name</name>
+ <cstring>spacingAboveValueUnit</cstring>
+ </property>
+ <property stdset="1">
+ <name>enabled</name>
+ <bool>false</bool>
+ </property>
+ <property stdset="1">
+ <name>sizePolicy</name>
+ <sizepolicy>
+ <hsizetype>3</hsizetype>
+ <vsizetype>0</vsizetype>
+ </sizepolicy>
+ </property>
+ </widget>
+ <widget row="3" column="2" >
+ <class>QLineEdit</class>
+ <property stdset="1">
+ <name>name</name>
+ <cstring>spacingBelowValue</cstring>
+ </property>
+ <property stdset="1">
+ <name>enabled</name>
+ <bool>false</bool>
+ </property>
+ </widget>
+ <widget row="3" column="3" >
+ <class>QLineEdit</class>
+ <property stdset="1">
+ <name>name</name>
+ <cstring>spacingBelowPlus</cstring>
+ </property>
+ <property stdset="1">
+ <name>enabled</name>
+ <bool>false</bool>
+ </property>
+ </widget>
+ <widget row="2" column="4" >
+ <class>QComboBox</class>
+ <item>
+ <property>
+ <name>text</name>
+ <string>Centimetres</string>
+ </property>
+ </item>
+ <item>
+ <property>
+ <name>text</name>
+ <string>Inches</string>
+ </property>
+ </item>
+ <item>
+ <property>
+ <name>text</name>
+ <string>Points</string>
+ </property>
+ </item>
+ <item>
+ <property>
+ <name>text</name>
+ <string>Millimetres</string>
+ </property>
+ </item>
+ <item>
+ <property>
+ <name>text</name>
+ <string>Picas</string>
+ </property>
+ </item>
+ <item>
+ <property>
+ <name>text</name>
+ <string>ex Units</string>
+ </property>
+ </item>
+ <item>
+ <property>
+ <name>text</name>
+ <string>em Units</string>
+ </property>
+ </item>
+ <item>
+ <property>
+ <name>text</name>
+ <string>Scaled Points</string>
+ </property>
+ </item>
+ <item>
+ <property>
+ <name>text</name>
+ <string>Big/PS Points</string>
+ </property>
+ </item>
+ <item>
+ <property>
+ <name>text</name>
+ <string>Didot Points</string>
+ </property>
+ </item>
+ <item>
+ <property>
+ <name>text</name>
+ <string>Cicero Points</string>
+ </property>
+ </item>
+ <property stdset="1">
+ <name>name</name>
+ <cstring>spacingAboveMinusUnit</cstring>
+ </property>
+ <property stdset="1">
+ <name>enabled</name>
+ <bool>false</bool>
+ </property>
+ <property stdset="1">
+ <name>sizePolicy</name>
+ <sizepolicy>
+ <hsizetype>3</hsizetype>
+ <vsizetype>0</vsizetype>
+ </sizepolicy>
+ </property>
+ </widget>
+ <widget row="1" column="2" >
+ <class>QLineEdit</class>
+ <property stdset="1">
+ <name>name</name>
+ <cstring>spacingAboveValue</cstring>
+ </property>
+ <property stdset="1">
+ <name>enabled</name>
+ <bool>false</bool>
+ </property>
+ </widget>
+ <widget row="1" column="3" >
+ <class>QLineEdit</class>
+ <property stdset="1">
+ <name>name</name>
+ <cstring>spacingAbovePlus</cstring>
+ </property>
+ <property stdset="1">
+ <name>enabled</name>
+ <bool>false</bool>
+ </property>
+ </widget>
+ <widget row="1" column="4" >
+ <class>QLineEdit</class>
+ <property stdset="1">
+ <name>name</name>
+ <cstring>spacingAboveMinus</cstring>
+ </property>
+ <property stdset="1">
+ <name>enabled</name>
+ <bool>false</bool>
+ </property>
+ </widget>
+ <widget row="3" column="4" >
+ <class>QLineEdit</class>
+ <property stdset="1">
+ <name>name</name>
+ <cstring>spacingBelowMinus</cstring>
+ </property>
+ <property stdset="1">
+ <name>enabled</name>
+ <bool>false</bool>
+ </property>
+ </widget>
+ <widget row="4" column="1" >
+ <class>QLayoutWidget</class>
+ <property stdset="1">
+ <name>name</name>
+ <cstring>Layout2_1</cstring>
+ </property>
+ <hbox>
+ <property stdset="1">
+ <name>margin</name>
+ <number>0</number>
+ </property>
+ <property stdset="1">
+ <name>spacing</name>
+ <number>6</number>
+ </property>
+ <spacer>
+ <property>
+ <name>name</name>
+ <cstring>Spacer2_1_1</cstring>
+ </property>
+ <property stdset="1">
+ <name>orientation</name>
+ <enum>Horizontal</enum>
+ </property>
+ <property stdset="1">
+ <name>sizeType</name>
+ <enum>Expanding</enum>
+ </property>
+ <property>
+ <name>sizeHint</name>
+ <size>
+ <width>20</width>
+ <height>20</height>
+ </size>
+ </property>
+ </spacer>
+ <widget>
+ <class>QLabel</class>
+ <property stdset="1">
+ <name>name</name>
+ <cstring>spacingBelowUnitsL</cstring>
+ </property>
+ <property stdset="1">
+ <name>text</name>
+ <string>Units:</string>
+ </property>
+ <property stdset="1">
+ <name>sizePolicy</name>
+ <sizepolicy>
+ <hsizetype>1</hsizetype>
+ <vsizetype>1</vsizetype>
+ </sizepolicy>
+ </property>
+ <property stdset="1">
+ <name>enabled</name>
+ <bool>false</bool>
+ </property>
+ <property>
+ <name>toolTip</name>
+ <string>Unit of Size, Stretch and Slink</string>
+ </property>
+ </widget>
+ </hbox>
+ </widget>
+ <widget row="2" column="1" >
+ <class>QLayoutWidget</class>
+ <property stdset="1">
+ <name>name</name>
+ <cstring>Layout2_1_2</cstring>
+ </property>
+ <hbox>
+ <property stdset="1">
+ <name>margin</name>
+ <number>0</number>
+ </property>
+ <property stdset="1">
+ <name>spacing</name>
+ <number>6</number>
+ </property>
+ <spacer>
+ <property>
+ <name>name</name>
+ <cstring>Spacer2_1_1_2</cstring>
+ </property>
+ <property stdset="1">
+ <name>orientation</name>
+ <enum>Horizontal</enum>
+ </property>
+ <property stdset="1">
+ <name>sizeType</name>
+ <enum>Expanding</enum>
+ </property>
+ <property>
+ <name>sizeHint</name>
+ <size>
+ <width>20</width>
+ <height>20</height>
+ </size>
+ </property>
+ </spacer>
+ <widget>
+ <class>QLabel</class>
+ <property stdset="1">
+ <name>name</name>
+ <cstring>spacingAboveUnitsL</cstring>
+ </property>
+ <property stdset="1">
+ <name>text</name>
+ <string>Units:</string>
+ </property>
+ <property stdset="1">
+ <name>sizePolicy</name>
+ <sizepolicy>
+ <hsizetype>1</hsizetype>
+ <vsizetype>1</vsizetype>
+ </sizepolicy>
+ </property>
+ <property stdset="1">
+ <name>enabled</name>
+ <bool>false</bool>
+ </property>
+ <property>
+ <name>toolTip</name>
+ <string>Unit of Size, Stretch and Slink</string>
+ </property>
+ </widget>
+ </hbox>
+ </widget>
+ <widget row="0" column="2" >
+ <class>QLabel</class>
+ <property stdset="1">
+ <name>name</name>
+ <cstring>spacingValueL</cstring>
+ </property>
+ <property stdset="1">
+ <name>sizePolicy</name>
+ <sizepolicy>
+ <hsizetype>1</hsizetype>
+ <vsizetype>1</vsizetype>
+ </sizepolicy>
+ </property>
+ <property stdset="1">
+ <name>text</name>
+ <string>Value:</string>
+ </property>
+ <property stdset="1">
+ <name>enabled</name>
+ <bool>false</bool>
+ </property>
+ <property>
+ <name>toolTip</name>
+ <string>Amount of spacing</string>
+ </property>
+ </widget>
+ <widget row="0" column="3" >
+ <class>QLabel</class>
+ <property stdset="1">
+ <name>name</name>
+ <cstring>spacingPlusL</cstring>
+ </property>
+ <property stdset="1">
+ <name>sizePolicy</name>
+ <sizepolicy>
+ <hsizetype>1</hsizetype>
+ <vsizetype>1</vsizetype>
+ </sizepolicy>
+ </property>
+ <property stdset="1">
+ <name>text</name>
+ <string>Stretch:</string>
+ </property>
+ <property stdset="1">
+ <name>enabled</name>
+ <bool>false</bool>
+ </property>
+ <property>
+ <name>toolTip</name>
+ <string>Margin by with paragraph is allowed to increase</string>
+ </property>
+ </widget>
+ <widget row="0" column="4" >
+ <class>QLabel</class>
+ <property stdset="1">
+ <name>name</name>
+ <cstring>spacingMinusL</cstring>
+ </property>
+ <property stdset="1">
+ <name>sizePolicy</name>
+ <sizepolicy>
+ <hsizetype>1</hsizetype>
+ <vsizetype>1</vsizetype>
+ </sizepolicy>
+ </property>
+ <property stdset="1">
+ <name>text</name>
+ <string>Shrink:</string>
+ </property>
+ <property stdset="1">
+ <name>enabled</name>
+ <bool>false</bool>
+ </property>
+ <property>
+ <name>toolTip</name>
+ <string>Margin by with paragraph is allowed to increase</string>
+ </property>
+ </widget>
+ <widget row="1" column="1" >
+ <class>QComboBox</class>
+ <item>
+ <property>
+ <name>text</name>
+ <string>None</string>
+ </property>
+ </item>
+ <item>
+ <property>
+ <name>text</name>
+ <string>DefSkip</string>
+ </property>
+ </item>
+ <item>
+ <property>
+ <name>text</name>
+ <string>SmallSkip</string>
+ </property>
+ </item>
+ <item>
+ <property>
+ <name>text</name>
+ <string>MedSkip</string>
+ </property>
+ </item>
+ <item>
+ <property>
+ <name>text</name>
+ <string>BigSkip</string>
+ </property>
+ </item>
+ <item>
+ <property>
+ <name>text</name>
+ <string>VFill</string>
+ </property>
+ </item>
+ <item>
+ <property>
+ <name>text</name>
+ <string>Custom</string>
+ </property>
+ </item>
+ <property stdset="1">
+ <name>name</name>
+ <cstring>spacingAbove</cstring>
+ </property>
+ <property stdset="1">
+ <name>sizePolicy</name>
+ <sizepolicy>
+ <hsizetype>3</hsizetype>
+ <vsizetype>0</vsizetype>
+ </sizepolicy>
+ </property>
+ </widget>
+ <widget row="1" column="0" >
+ <class>QLabel</class>
+ <property stdset="1">
+ <name>name</name>
+ <cstring>spacingAboveL</cstring>
+ </property>
+ <property stdset="1">
+ <name>text</name>
+ <string>Above:</string>
+ </property>
+ <property>
+ <name>buddy</name>
+ <cstring></cstring>
+ </property>
+ </widget>
+ <widget row="3" column="0" >
+ <class>QLabel</class>
+ <property stdset="1">
+ <name>name</name>
+ <cstring>spacingBelowL</cstring>
+ </property>
+ <property stdset="1">
+ <name>text</name>
+ <string>Below:</string>
+ </property>
+ <property>
+ <name>buddy</name>
+ <cstring></cstring>
+ </property>
+ </widget>
+ <widget row="3" column="1" >
+ <class>QComboBox</class>
+ <item>
+ <property>
+ <name>text</name>
+ <string>None</string>
+ </property>
+ </item>
+ <item>
+ <property>
+ <name>text</name>
+ <string>DefSkip</string>
+ </property>
+ </item>
+ <item>
+ <property>
+ <name>text</name>
+ <string>SmallSkip</string>
+ </property>
+ </item>
+ <item>
+ <property>
+ <name>text</name>
+ <string>MedSkip</string>
+ </property>
+ </item>
+ <item>
+ <property>
+ <name>text</name>
+ <string>BigSkip</string>
+ </property>
+ </item>
+ <item>
+ <property>
+ <name>text</name>
+ <string>VFill</string>
+ </property>
+ </item>
+ <item>
+ <property>
+ <name>text</name>
+ <string>Custom</string>
+ </property>
+ </item>
+ <property stdset="1">
+ <name>name</name>
+ <cstring>spacingBelow</cstring>
+ </property>
+ <property stdset="1">
+ <name>sizePolicy</name>
+ <sizepolicy>
+ <hsizetype>3</hsizetype>
+ <vsizetype>0</vsizetype>
+ </sizepolicy>
+ </property>
+ </widget>
+ <widget row="5" column="1" rowspan="1" colspan="2" >
+ <class>QCheckBox</class>
+ <property stdset="1">
+ <name>name</name>
+ <cstring>spacingAboveKeep</cstring>
+ </property>
+ <property stdset="1">
+ <name>text</name>
+ <string>Keep space at the top of the page</string>
+ </property>
+ <property stdset="1">
+ <name>enabled</name>
+ <bool>true</bool>
+ </property>
+ <property>
+ <name>toolTip</name>
+ <string>Keep space at top of the page</string>
+ </property>
+ </widget>
+ <widget row="5" column="3" rowspan="1" colspan="2" >
+ <class>QCheckBox</class>
+ <property stdset="1">
+ <name>name</name>
+ <cstring>spacingBelowKeep</cstring>
+ </property>
+ <property stdset="1">
+ <name>text</name>
+ <string>Keep space at the bottom of the page</string>
+ </property>
+ <property stdset="1">
+ <name>enabled</name>
+ <bool>true</bool>
+ </property>
+ <property>
+ <name>toolTip</name>
+ <string>Keep space at the bottom of the page</string>
+ </property>
+ </widget>
+ </grid>
+ </widget>
+ <widget>
+ <class>QGroupBox</class>
+ <property stdset="1">
+ <name>name</name>
+ <cstring>listOptions</cstring>
+ </property>
+ <property stdset="1">
+ <name>title</name>
+ <string>List environment</string>
+ </property>
+ <property stdset="1">
+ <name>enabled</name>
+ <bool>false</bool>
+ </property>
+ <hbox>
+ <property stdset="1">
+ <name>margin</name>
+ <number>11</number>
+ </property>
+ <property stdset="1">
+ <name>spacing</name>
+ <number>6</number>
+ </property>
+ <widget>
+ <class>QLabel</class>
+ <property stdset="1">
+ <name>name</name>
+ <cstring>labelWidthL</cstring>
+ </property>
+ <property stdset="1">
+ <name>text</name>
+ <string>Label width:</string>
+ </property>
+ <property stdset="1">
+ <name>enabled</name>
+ <bool>false</bool>
+ </property>
+ <property>
+ <name>toolTip</name>
+ <string>Label width in list environment</string>
+ </property>
+ </widget>
+ <widget>
+ <class>QLineEdit</class>
+ <property stdset="1">
+ <name>name</name>
+ <cstring>labelWidth</cstring>
+ </property>
+ <property stdset="1">
+ <name>enabled</name>
+ <bool>false</bool>
+ </property>
+ </widget>
+ <spacer>
+ <property>
+ <name>name</name>
+ <cstring>Spacer7</cstring>
+ </property>
+ <property stdset="1">
+ <name>orientation</name>
+ <enum>Horizontal</enum>
+ </property>
+ <property stdset="1">
+ <name>sizeType</name>
+ <enum>Expanding</enum>
+ </property>
+ <property>
+ <name>sizeHint</name>
+ <size>
+ <width>20</width>
+ <height>20</height>
+ </size>
+ </property>
+ </spacer>
+ </hbox>
+ </widget>
+ <spacer>
+ <property>
+ <name>name</name>
+ <cstring>Spacer1_5</cstring>
+ </property>
+ <property stdset="1">
+ <name>orientation</name>
+ <enum>Vertical</enum>
+ </property>
+ <property stdset="1">
+ <name>sizeType</name>
+ <enum>Expanding</enum>
+ </property>
+ <property>
+ <name>sizeHint</name>
+ <size>
+ <width>20</width>
+ <height>20</height>
+ </size>
+ </property>
+ </spacer>
+ </vbox>
+ </widget>
+ <widget>
+ <class>QWidget</class>
+ <property stdset="1">
+ <name>name</name>
+ <cstring>tab</cstring>
+ </property>
+ <attribute>
+ <name>title</name>
+ <string>&Lines and Page breaks</string>
+ </attribute>
+ <grid>
+ <property stdset="1">
+ <name>margin</name>
+ <number>11</number>
+ </property>
+ <property stdset="1">
+ <name>spacing</name>
+ <number>6</number>
+ </property>
+ <widget row="0" column="1" >
+ <class>QGroupBox</class>
+ <property stdset="1">
+ <name>name</name>
+ <cstring>pagebreakOptions</cstring>
+ </property>
+ <property stdset="1">
+ <name>title</name>
+ <string>Page break</string>
+ </property>
+ <property stdset="1">
+ <name>orientation</name>
+ <enum>Vertical</enum>
+ </property>
+ <vbox>
+ <property stdset="1">
+ <name>margin</name>
+ <number>11</number>
+ </property>
+ <property stdset="1">
+ <name>spacing</name>
+ <number>6</number>
+ </property>
+ <widget>
+ <class>QCheckBox</class>
+ <property stdset="1">
+ <name>name</name>
+ <cstring>pagebreakAbove</cstring>
+ </property>
+ <property stdset="1">
+ <name>text</name>
+ <string>above paragraph</string>
+ </property>
+ </widget>
+ <widget>
+ <class>QCheckBox</class>
+ <property stdset="1">
+ <name>name</name>
+ <cstring>pagebreakBelow</cstring>
+ </property>
+ <property stdset="1">
+ <name>text</name>
+ <string>below paragraph</string>
+ </property>
+ </widget>
+ </vbox>
+ </widget>
+ <spacer row="0" column="2" >
+ <property>
+ <name>name</name>
+ <cstring>Spacer1_2</cstring>
+ </property>
+ <property stdset="1">
+ <name>orientation</name>
+ <enum>Horizontal</enum>
+ </property>
+ <property stdset="1">
+ <name>sizeType</name>
+ <enum>Expanding</enum>
+ </property>
+ <property>
+ <name>sizeHint</name>
+ <size>
+ <width>20</width>
+ <height>20</height>
+ </size>
+ </property>
+ <property>
+ <name>toolTip</name>
+ <string>Index entry</string>
+ </property>
+ </spacer>
+ <spacer row="1" column="2" >
+ <property>
+ <name>name</name>
+ <cstring>Spacer2</cstring>
+ </property>
+ <property stdset="1">
+ <name>orientation</name>
+ <enum>Vertical</enum>
+ </property>
+ <property stdset="1">
+ <name>sizeType</name>
+ <enum>Expanding</enum>
+ </property>
+ <property>
+ <name>sizeHint</name>
+ <size>
+ <width>20</width>
+ <height>20</height>
+ </size>
+ </property>
+ </spacer>
+ <widget row="0" column="0" >
+ <class>QGroupBox</class>
+ <property stdset="1">
+ <name>name</name>
+ <cstring>lineOptions</cstring>
+ </property>
+ <property stdset="1">
+ <name>title</name>
+ <string>Line</string>
+ </property>
+ <vbox>
+ <property stdset="1">
+ <name>margin</name>
+ <number>11</number>
+ </property>
+ <property stdset="1">
+ <name>spacing</name>
+ <number>6</number>
+ </property>
+ <widget>
+ <class>QCheckBox</class>
+ <property stdset="1">
+ <name>name</name>
+ <cstring>lineAbove</cstring>
+ </property>
+ <property stdset="1">
+ <name>text</name>
+ <string>above paragraph</string>
+ </property>
+ </widget>
+ <widget>
+ <class>QCheckBox</class>
+ <property stdset="1">
+ <name>name</name>
+ <cstring>lineBelow</cstring>
+ </property>
+ <property stdset="1">
+ <name>text</name>
+ <string>below paragraph</string>
+ </property>
+ </widget>
+ </vbox>
+ </widget>
+ </grid>
+ </widget>
+ <widget>
+ <class>QWidget</class>
+ <property stdset="1">
+ <name>name</name>
+ <cstring>tab</cstring>
+ </property>
+ <attribute>
+ <name>title</name>
+ <string>&Extra options</string>
+ </attribute>
+ <grid>
+ <property stdset="1">
+ <name>margin</name>
+ <number>11</number>
+ </property>
+ <property stdset="1">
+ <name>spacing</name>
+ <number>6</number>
+ </property>
+ <spacer row="1" column="1" >
+ <property>
+ <name>name</name>
+ <cstring>Spacer1_4</cstring>
+ </property>
+ <property stdset="1">
+ <name>orientation</name>
+ <enum>Horizontal</enum>
+ </property>
+ <property stdset="1">
+ <name>sizeType</name>
+ <enum>Expanding</enum>
+ </property>
+ <property>
+ <name>sizeHint</name>
+ <size>
+ <width>20</width>
+ <height>20</height>
+ </size>
+ </property>
+ </spacer>
+ <widget row="0" column="0" >
+ <class>QLayoutWidget</class>
+ <property stdset="1">
+ <name>name</name>
+ <cstring>Layout7</cstring>
+ </property>
+ <grid>
+ <property stdset="1">
+ <name>margin</name>
+ <number>0</number>
+ </property>
+ <property stdset="1">
+ <name>spacing</name>
+ <number>6</number>
+ </property>
+ <widget row="0" column="2" >
+ <class>QLabel</class>
+ <property stdset="1">
+ <name>name</name>
+ <cstring>extraUnitL</cstring>
+ </property>
+ <property stdset="1">
+ <name>text</name>
+ <string>Unit:</string>
+ </property>
+ <property stdset="1">
+ <name>enabled</name>
+ <bool>false</bool>
+ </property>
+ </widget>
+ <widget row="1" column="2" >
+ <class>QComboBox</class>
+ <item>
+ <property>
+ <name>text</name>
+ <string>Centimetres</string>
+ </property>
+ </item>
+ <item>
+ <property>
+ <name>text</name>
+ <string>Inches</string>
+ </property>
+ </item>
+ <item>
+ <property>
+ <name>text</name>
+ <string>Points</string>
+ </property>
+ </item>
+ <item>
+ <property>
+ <name>text</name>
+ <string>Millimetres</string>
+ </property>
+ </item>
+ <item>
+ <property>
+ <name>text</name>
+ <string>Picas</string>
+ </property>
+ </item>
+ <item>
+ <property>
+ <name>text</name>
+ <string>ex Units</string>
+ </property>
+ </item>
+ <item>
+ <property>
+ <name>text</name>
+ <string>em Units</string>
+ </property>
+ </item>
+ <item>
+ <property>
+ <name>text</name>
+ <string>Scaled Points</string>
+ </property>
+ </item>
+ <item>
+ <property>
+ <name>text</name>
+ <string>Big/PS Points</string>
+ </property>
+ </item>
+ <item>
+ <property>
+ <name>text</name>
+ <string>Didot Points</string>
+ </property>
+ </item>
+ <item>
+ <property>
+ <name>text</name>
+ <string>Cicero Points</string>
+ </property>
+ </item>
+ <property stdset="1">
+ <name>name</name>
+ <cstring>extraUnit</cstring>
+ </property>
+ <property stdset="1">
+ <name>focusPolicy</name>
+ <enum>TabFocus</enum>
+ </property>
+ <property stdset="1">
+ <name>enabled</name>
+ <bool>false</bool>
+ </property>
+ </widget>
+ <widget row="1" column="1" >
+ <class>QLineEdit</class>
+ <property stdset="1">
+ <name>name</name>
+ <cstring>extraWidth</cstring>
+ </property>
+ <property stdset="1">
+ <name>enabled</name>
+ <bool>false</bool>
+ </property>
+ </widget>
+ <widget row="1" column="0" >
+ <class>QComboBox</class>
+ <item>
+ <property>
+ <name>text</name>
+ <string>None</string>
+ </property>
+ </item>
+ <item>
+ <property>
+ <name>text</name>
+ <string>Minipage</string>
+ </property>
+ </item>
+ <item>
+ <property>
+ <name>text</name>
+ <string>Wrap text around floats</string>
+ </property>
+ </item>
+ <item>
+ <property>
+ <name>text</name>
+ <string>Indent whole paragraph</string>
+ </property>
+ </item>
+ <property stdset="1">
+ <name>name</name>
+ <cstring>extraType</cstring>
+ </property>
+ </widget>
+ <widget row="0" column="1" >
+ <class>QLabel</class>
+ <property stdset="1">
+ <name>name</name>
+ <cstring>extraWidthL</cstring>
+ </property>
+ <property stdset="1">
+ <name>text</name>
+ <string>Width:</string>
+ </property>
+ <property stdset="1">
+ <name>enabled</name>
+ <bool>false</bool>
+ </property>
+ </widget>
+ </grid>
+ </widget>
+ <widget row="1" column="0" >
+ <class>QGroupBox</class>
+ <property stdset="1">
+ <name>name</name>
+ <cstring>minipageOptions</cstring>
+ </property>
+ <property stdset="1">
+ <name>title</name>
+ <string>Minipage options</string>
+ </property>
+ <property stdset="1">
+ <name>enabled</name>
+ <bool>false</bool>
+ </property>
+ <vbox>
+ <property stdset="1">
+ <name>margin</name>
+ <number>11</number>
+ </property>
+ <property stdset="1">
+ <name>spacing</name>
+ <number>6</number>
+ </property>
+ <widget>
+ <class>QCheckBox</class>
+ <property stdset="1">
+ <name>name</name>
+ <cstring>minipageStart</cstring>
+ </property>
+ <property stdset="1">
+ <name>text</name>
+ <string>Start new minipage</string>
+ </property>
+ <property stdset="1">
+ <name>enabled</name>
+ <bool>false</bool>
+ </property>
+ </widget>
+ <widget>
+ <class>QCheckBox</class>
+ <property stdset="1">
+ <name>name</name>
+ <cstring>minipageHfill</cstring>
+ </property>
+ <property stdset="1">
+ <name>text</name>
+ <string>HFill between minipage paragraphs</string>
+ </property>
+ <property stdset="1">
+ <name>enabled</name>
+ <bool>false</bool>
+ </property>
+ </widget>
+ <widget>
+ <class>QLayoutWidget</class>
+ <property stdset="1">
+ <name>name</name>
+ <cstring>Layout15</cstring>
+ </property>
+ <hbox>
+ <property stdset="1">
+ <name>margin</name>
+ <number>0</number>
+ </property>
+ <property stdset="1">
+ <name>spacing</name>
+ <number>6</number>
+ </property>
+ <widget>
+ <class>QLabel</class>
+ <property stdset="1">
+ <name>name</name>
+ <cstring>minipageValignL</cstring>
+ </property>
+ <property stdset="1">
+ <name>text</name>
+ <string>Vertical Alignment:</string>
+ </property>
+ </widget>
+ <widget>
+ <class>QComboBox</class>
+ <item>
+ <property>
+ <name>text</name>
+ <string>Top</string>
+ </property>
+ </item>
+ <item>
+ <property>
+ <name>text</name>
+ <string>Middle</string>
+ </property>
+ </item>
+ <item>
+ <property>
+ <name>text</name>
+ <string>Bottom</string>
+ </property>
+ </item>
+ <property stdset="1">
+ <name>name</name>
+ <cstring>minipageValign</cstring>
+ </property>
+ </widget>
+ <spacer>
+ <property>
+ <name>name</name>
+ <cstring>Spacer8</cstring>
+ </property>
+ <property stdset="1">
+ <name>orientation</name>
+ <enum>Horizontal</enum>
+ </property>
+ <property stdset="1">
+ <name>sizeType</name>
+ <enum>Expanding</enum>
+ </property>
+ <property>
+ <name>sizeHint</name>
+ <size>
+ <width>20</width>
+ <height>20</height>
+ </size>
+ </property>
+ </spacer>
+ </hbox>
+ </widget>
+ </vbox>
+ </widget>
+ <spacer row="2" column="0" >
+ <property>
+ <name>name</name>
+ <cstring>Spacer6</cstring>
+ </property>
+ <property stdset="1">
+ <name>orientation</name>
+ <enum>Vertical</enum>
+ </property>
+ <property stdset="1">
+ <name>sizeType</name>
+ <enum>Expanding</enum>
+ </property>
+ <property>
+ <name>sizeHint</name>
+ <size>
+ <width>20</width>
+ <height>20</height>
+ </size>
+ </property>
+ </spacer>
+ </grid>
+ </widget>
+ </widget>
+ <widget>
+ <class>QLayoutWidget</class>
+ <property stdset="1">
+ <name>name</name>
+ <cstring>Layout1</cstring>
+ </property>
+ <hbox>
+ <property stdset="1">
+ <name>margin</name>
+ <number>0</number>
+ </property>
+ <property stdset="1">
+ <name>spacing</name>
+ <number>6</number>
+ </property>
+ <widget>
+ <class>QPushButton</class>
+ <property stdset="1">
+ <name>name</name>
+ <cstring>defaultsPB</cstring>
+ </property>
+ <property stdset="1">
+ <name>text</name>
+ <string>&Restore</string>
+ </property>
+ </widget>
+ <spacer>
+ <property>
+ <name>name</name>
+ <cstring>Spacer1</cstring>
+ </property>
+ <property stdset="1">
+ <name>orientation</name>
+ <enum>Horizontal</enum>
+ </property>
+ <property stdset="1">
+ <name>sizeType</name>
+ <enum>Expanding</enum>
+ </property>
+ <property>
+ <name>sizeHint</name>
+ <size>
+ <width>20</width>
+ <height>20</height>
+ </size>
+ </property>
+ </spacer>
+ <widget>
+ <class>QPushButton</class>
+ <property stdset="1">
+ <name>name</name>
+ <cstring>applyPB</cstring>
+ </property>
+ <property stdset="1">
+ <name>text</name>
+ <string>&Apply</string>
+ </property>
+ </widget>
+ <widget>
+ <class>QPushButton</class>
+ <property stdset="1">
+ <name>name</name>
+ <cstring>okPB</cstring>
+ </property>
+ <property stdset="1">
+ <name>text</name>
+ <string>&OK</string>
+ </property>
+ <property stdset="1">
+ <name>flat</name>
+ <bool>false</bool>
+ </property>
+ <property stdset="1">
+ <name>default</name>
+ <bool>false</bool>
+ </property>
+ </widget>
+ <widget>
+ <class>QPushButton</class>
+ <property stdset="1">
+ <name>name</name>
+ <cstring>cancelPB</cstring>
+ </property>
+ <property stdset="1">
+ <name>text</name>
+ <string>&Cancel</string>
+ </property>
+ <property stdset="1">
+ <name>default</name>
+ <bool>true</bool>
+ </property>
+ </widget>
+ </hbox>
+ </widget>
+ </vbox>
+</widget>
+<connections>
+ <connection>
+ <sender>defaultsPB</sender>
+ <signal>clicked()</signal>
+ <receiver>QParagraphDialogBase</receiver>
+ <slot>restore_adaptor()</slot>
+ </connection>
+ <connection>
+ <sender>applyPB</sender>
+ <signal>clicked()</signal>
+ <receiver>QParagraphDialogBase</receiver>
+ <slot>apply_adaptor()</slot>
+ </connection>
+ <connection>
+ <sender>cancelPB</sender>
+ <signal>clicked()</signal>
+ <receiver>QParagraphDialogBase</receiver>
+ <slot>cancel_adaptor()</slot>
+ </connection>
+ <connection>
+ <sender>okPB</sender>
+ <signal>clicked()</signal>
+ <receiver>QParagraphDialogBase</receiver>
+ <slot>ok_adaptor()</slot>
+ </connection>
+ <connection>
+ <sender>spacingAbove</sender>
+ <signal>activated(int)</signal>
+ <receiver>QParagraphDialogBase</receiver>
+ <slot>enable_spacingAbove(int)</slot>
+ </connection>
+ <connection>
+ <sender>spacingBelow</sender>
+ <signal>activated(int)</signal>
+ <receiver>QParagraphDialogBase</receiver>
+ <slot>enable_spacingBelow(int)</slot>
+ </connection>
+ <connection>
+ <sender>extraType</sender>
+ <signal>activated(int)</signal>
+ <receiver>QParagraphDialogBase</receiver>
+ <slot>enable_minipageOptions(int)</slot>
+ </connection>
+ <connection>
+ <sender>extraType</sender>
+ <signal>activated(int)</signal>
+ <receiver>QParagraphDialogBase</receiver>
+ <slot>enable_extraOptions(int)</slot>
+ </connection>
+ <slot access="protected">apply_adaptor()</slot>
+ <slot access="protected">cancel_adaptor()</slot>
+ <slot access="protected">enable_extraOptions(int)</slot>
+ <slot access="protected">enable_minipageOptions(int)</slot>
+ <slot access="protected">enable_spacingAbove(int)</slot>
+ <slot access="protected">enable_spacingBelow(int)</slot>
+ <slot access="protected">ok_adaptor()</slot>
+ <slot access="protected">restore_adaptor()</slot>
+</connections>
+<tabstops>
+ <tabstop>TabsParagraph</tabstop>
+ <tabstop>alignment</tabstop>
+ <tabstop>noIndent</tabstop>
+ <tabstop>spacingAbove</tabstop>
+ <tabstop>spacingAboveValue</tabstop>
+ <tabstop>spacingAbovePlus</tabstop>
+ <tabstop>spacingAboveMinus</tabstop>
+ <tabstop>spacingAboveKeep</tabstop>
+ <tabstop>spacingAboveValueUnit</tabstop>
+ <tabstop>spacingAbovePlusUnit</tabstop>
+ <tabstop>spacingAboveMinusUnit</tabstop>
+ <tabstop>spacingBelow</tabstop>
+ <tabstop>spacingBelowValue</tabstop>
+ <tabstop>spacingBelowPlus</tabstop>
+ <tabstop>spacingBelowMinus</tabstop>
+ <tabstop>spacingBelowKeep</tabstop>
+ <tabstop>spacingBelowValueUnit</tabstop>
+ <tabstop>spacingBelowPlusUnit</tabstop>
+ <tabstop>spacingBelowMinusUnit</tabstop>
+ <tabstop>labelWidth</tabstop>
+ <tabstop>lineAbove</tabstop>
+ <tabstop>lineBelow</tabstop>
+ <tabstop>pagebreakAbove</tabstop>
+ <tabstop>pagebreakBelow</tabstop>
+ <tabstop>extraType</tabstop>
+ <tabstop>extraWidth</tabstop>
+ <tabstop>extraUnit</tabstop>
+ <tabstop>minipageStart</tabstop>
+ <tabstop>minipageHfill</tabstop>
+ <tabstop>minipageValign</tabstop>
+ <tabstop>cancelPB</tabstop>
+ <tabstop>okPB</tabstop>
+ <tabstop>applyPB</tabstop>
+ <tabstop>defaultsPB</tabstop>
+</tabstops>
+</UI>
--- /dev/null
+<!DOCTYPE UI><UI>
+<class>QPrintDialogBase</class>
+<widget>
+ <class>QDialog</class>
+ <property stdset="1">
+ <name>name</name>
+ <cstring>QPrintDialogBase</cstring>
+ </property>
+ <property stdset="1">
+ <name>geometry</name>
+ <rect>
+ <x>0</x>
+ <y>0</y>
+ <width>359</width>
+ <height>342</height>
+ </rect>
+ </property>
+ <property stdset="1">
+ <name>caption</name>
+ <string>Form1</string>
+ </property>
+ <vbox>
+ <property stdset="1">
+ <name>margin</name>
+ <number>11</number>
+ </property>
+ <property stdset="1">
+ <name>spacing</name>
+ <number>6</number>
+ </property>
+ <widget>
+ <class>QButtonGroup</class>
+ <property stdset="1">
+ <name>name</name>
+ <cstring>ButtonGroup1</cstring>
+ </property>
+ <property stdset="1">
+ <name>title</name>
+ <string>Print Destination</string>
+ </property>
+ <property>
+ <name>layoutSpacing</name>
+ </property>
+ <grid>
+ <property stdset="1">
+ <name>margin</name>
+ <number>11</number>
+ </property>
+ <property stdset="1">
+ <name>spacing</name>
+ <number>3</number>
+ </property>
+ <widget row="0" column="0" >
+ <class>QRadioButton</class>
+ <property stdset="1">
+ <name>name</name>
+ <cstring>toPrinter</cstring>
+ </property>
+ <property stdset="1">
+ <name>text</name>
+ <string>&Printer</string>
+ </property>
+ <property stdset="1">
+ <name>checked</name>
+ <bool>true</bool>
+ </property>
+ </widget>
+ <widget row="1" column="0" >
+ <class>QRadioButton</class>
+ <property stdset="1">
+ <name>name</name>
+ <cstring>toFile</cstring>
+ </property>
+ <property stdset="1">
+ <name>text</name>
+ <string>&File</string>
+ </property>
+ </widget>
+ <widget row="0" column="1" >
+ <class>QLineEdit</class>
+ <property stdset="1">
+ <name>name</name>
+ <cstring>printerName</cstring>
+ </property>
+ </widget>
+ <widget row="1" column="1" >
+ <class>QLineEdit</class>
+ <property stdset="1">
+ <name>name</name>
+ <cstring>fileName</cstring>
+ </property>
+ <property stdset="1">
+ <name>enabled</name>
+ <bool>false</bool>
+ </property>
+ </widget>
+ <widget row="1" column="2" >
+ <class>QPushButton</class>
+ <property stdset="1">
+ <name>name</name>
+ <cstring>browsePB</cstring>
+ </property>
+ <property stdset="1">
+ <name>text</name>
+ <string>&Browse...</string>
+ </property>
+ <property stdset="1">
+ <name>enabled</name>
+ <bool>false</bool>
+ </property>
+ </widget>
+ </grid>
+ </widget>
+ <widget>
+ <class>QButtonGroup</class>
+ <property stdset="1">
+ <name>name</name>
+ <cstring>ButtonGroup3</cstring>
+ </property>
+ <property stdset="1">
+ <name>title</name>
+ <string>Pages</string>
+ </property>
+ <property>
+ <name>layoutSpacing</name>
+ </property>
+ <grid>
+ <property stdset="1">
+ <name>margin</name>
+ <number>11</number>
+ </property>
+ <property stdset="1">
+ <name>spacing</name>
+ <number>3</number>
+ </property>
+ <widget row="0" column="0" >
+ <class>QRadioButton</class>
+ <property stdset="1">
+ <name>name</name>
+ <cstring>allPages</cstring>
+ </property>
+ <property stdset="1">
+ <name>text</name>
+ <string>All</string>
+ </property>
+ <property stdset="1">
+ <name>checked</name>
+ <bool>true</bool>
+ </property>
+ </widget>
+ <widget row="1" column="0" >
+ <class>QRadioButton</class>
+ <property stdset="1">
+ <name>name</name>
+ <cstring>oddPages</cstring>
+ </property>
+ <property stdset="1">
+ <name>text</name>
+ <string>Odd</string>
+ </property>
+ </widget>
+ <widget row="2" column="0" >
+ <class>QRadioButton</class>
+ <property stdset="1">
+ <name>name</name>
+ <cstring>evenPages</cstring>
+ </property>
+ <property stdset="1">
+ <name>text</name>
+ <string>Even</string>
+ </property>
+ </widget>
+ <widget row="3" column="1" >
+ <class>QLabel</class>
+ <property stdset="1">
+ <name>name</name>
+ <cstring>fromPageL</cstring>
+ </property>
+ <property stdset="1">
+ <name>text</name>
+ <string>Starting range:</string>
+ </property>
+ <property stdset="1">
+ <name>enabled</name>
+ <bool>false</bool>
+ </property>
+ </widget>
+ <widget row="3" column="2" >
+ <class>QLabel</class>
+ <property stdset="1">
+ <name>name</name>
+ <cstring>toPageL</cstring>
+ </property>
+ <property stdset="1">
+ <name>text</name>
+ <string>Last page:</string>
+ </property>
+ <property stdset="1">
+ <name>enabled</name>
+ <bool>false</bool>
+ </property>
+ </widget>
+ <widget row="4" column="2" >
+ <class>QLineEdit</class>
+ <property stdset="1">
+ <name>name</name>
+ <cstring>toPage</cstring>
+ </property>
+ <property stdset="1">
+ <name>enabled</name>
+ <bool>false</bool>
+ </property>
+ </widget>
+ <widget row="0" column="2" >
+ <class>QCheckBox</class>
+ <property stdset="1">
+ <name>name</name>
+ <cstring>reverse</cstring>
+ </property>
+ <property stdset="1">
+ <name>text</name>
+ <string>&Reverse order</string>
+ </property>
+ </widget>
+ <widget row="4" column="1" >
+ <class>QLineEdit</class>
+ <property stdset="1">
+ <name>name</name>
+ <cstring>fromPage</cstring>
+ </property>
+ <property stdset="1">
+ <name>enabled</name>
+ <bool>false</bool>
+ </property>
+ </widget>
+ <widget row="4" column="0" >
+ <class>QRadioButton</class>
+ <property stdset="1">
+ <name>name</name>
+ <cstring>customPages</cstring>
+ </property>
+ <property stdset="1">
+ <name>text</name>
+ <string>Pages:</string>
+ </property>
+ </widget>
+ </grid>
+ </widget>
+ <widget>
+ <class>QGroupBox</class>
+ <property stdset="1">
+ <name>name</name>
+ <cstring>GroupBox3</cstring>
+ </property>
+ <property stdset="1">
+ <name>title</name>
+ <string>Copies</string>
+ </property>
+ <hbox>
+ <property stdset="1">
+ <name>margin</name>
+ <number>11</number>
+ </property>
+ <property stdset="1">
+ <name>spacing</name>
+ <number>6</number>
+ </property>
+ <widget>
+ <class>QSpinBox</class>
+ <property stdset="1">
+ <name>name</name>
+ <cstring>copies</cstring>
+ </property>
+ <property stdset="1">
+ <name>minValue</name>
+ <number>1</number>
+ </property>
+ <property stdset="1">
+ <name>value</name>
+ <number>1</number>
+ </property>
+ </widget>
+ <widget>
+ <class>QCheckBox</class>
+ <property stdset="1">
+ <name>name</name>
+ <cstring>collate</cstring>
+ </property>
+ <property stdset="1">
+ <name>text</name>
+ <string>Co&llate</string>
+ </property>
+ <property stdset="1">
+ <name>enabled</name>
+ <bool>false</bool>
+ </property>
+ </widget>
+ <spacer>
+ <property>
+ <name>name</name>
+ <cstring>Spacer1_2</cstring>
+ </property>
+ <property stdset="1">
+ <name>orientation</name>
+ <enum>Horizontal</enum>
+ </property>
+ <property stdset="1">
+ <name>sizeType</name>
+ <enum>Expanding</enum>
+ </property>
+ <property>
+ <name>sizeHint</name>
+ <size>
+ <width>20</width>
+ <height>20</height>
+ </size>
+ </property>
+ </spacer>
+ </hbox>
+ </widget>
+ <widget>
+ <class>QLayoutWidget</class>
+ <property stdset="1">
+ <name>name</name>
+ <cstring>Layout1</cstring>
+ </property>
+ <hbox>
+ <property stdset="1">
+ <name>margin</name>
+ <number>0</number>
+ </property>
+ <property stdset="1">
+ <name>spacing</name>
+ <number>6</number>
+ </property>
+ <spacer>
+ <property>
+ <name>name</name>
+ <cstring>Spacer1</cstring>
+ </property>
+ <property stdset="1">
+ <name>orientation</name>
+ <enum>Horizontal</enum>
+ </property>
+ <property stdset="1">
+ <name>sizeType</name>
+ <enum>Expanding</enum>
+ </property>
+ <property>
+ <name>sizeHint</name>
+ <size>
+ <width>20</width>
+ <height>20</height>
+ </size>
+ </property>
+ </spacer>
+ <widget>
+ <class>QPushButton</class>
+ <property stdset="1">
+ <name>name</name>
+ <cstring>printPB</cstring>
+ </property>
+ <property stdset="1">
+ <name>text</name>
+ <string>&Print</string>
+ </property>
+ </widget>
+ <widget>
+ <class>QPushButton</class>
+ <property stdset="1">
+ <name>name</name>
+ <cstring>cancelPB</cstring>
+ </property>
+ <property stdset="1">
+ <name>text</name>
+ <string>&Cancel</string>
+ </property>
+ <property stdset="1">
+ <name>default</name>
+ <bool>true</bool>
+ </property>
+ </widget>
+ </hbox>
+ </widget>
+ </vbox>
+</widget>
+<connections>
+ <connection>
+ <sender>toFile</sender>
+ <signal>toggled(bool)</signal>
+ <receiver>browsePB</receiver>
+ <slot>setEnabled(bool)</slot>
+ </connection>
+ <connection>
+ <sender>toFile</sender>
+ <signal>toggled(bool)</signal>
+ <receiver>fileName</receiver>
+ <slot>setEnabled(bool)</slot>
+ </connection>
+ <connection>
+ <sender>toFile</sender>
+ <signal>toggled(bool)</signal>
+ <receiver>printerName</receiver>
+ <slot>setDisabled(bool)</slot>
+ </connection>
+ <connection>
+ <sender>printPB</sender>
+ <signal>clicked()</signal>
+ <receiver>QPrintDialogBase</receiver>
+ <slot>print()</slot>
+ </connection>
+ <connection>
+ <sender>cancelPB</sender>
+ <signal>clicked()</signal>
+ <receiver>QPrintDialogBase</receiver>
+ <slot>cancel_adaptor()</slot>
+ </connection>
+ <connection>
+ <sender>copies</sender>
+ <signal>valueChanged(int)</signal>
+ <receiver>QPrintDialogBase</receiver>
+ <slot>set_collate(int)</slot>
+ </connection>
+ <connection>
+ <sender>browsePB</sender>
+ <signal>clicked()</signal>
+ <receiver>QPrintDialogBase</receiver>
+ <slot>browse_file()</slot>
+ </connection>
+ <connection>
+ <sender>customPages</sender>
+ <signal>toggled(bool)</signal>
+ <receiver>fromPage</receiver>
+ <slot>setEnabled(bool)</slot>
+ </connection>
+ <connection>
+ <sender>customPages</sender>
+ <signal>toggled(bool)</signal>
+ <receiver>fromPageL</receiver>
+ <slot>setEnabled(bool)</slot>
+ </connection>
+ <connection>
+ <sender>customPages</sender>
+ <signal>toggled(bool)</signal>
+ <receiver>toPage</receiver>
+ <slot>setEnabled(bool)</slot>
+ </connection>
+ <connection>
+ <sender>customPages</sender>
+ <signal>toggled(bool)</signal>
+ <receiver>toPageL</receiver>
+ <slot>setEnabled(bool)</slot>
+ </connection>
+ <slot access="protected">cancel_adaptor()</slot>
+ <slot access="protected">enable_pagerange(int)</slot>
+ <slot access="protected">browse_file()</slot>
+ <slot access="protected">print()</slot>
+ <slot access="protected">set_collate(int)</slot>
+</connections>
+</UI>
--- /dev/null
+<!DOCTYPE UI><UI>
+<class>QRefDialogBase</class>
+<widget>
+ <class>QDialog</class>
+ <property stdset="1">
+ <name>name</name>
+ <cstring>QRefDialogBase</cstring>
+ </property>
+ <property stdset="1">
+ <name>geometry</name>
+ <rect>
+ <x>0</x>
+ <y>0</y>
+ <width>417</width>
+ <height>277</height>
+ </rect>
+ </property>
+ <property stdset="1">
+ <name>caption</name>
+ <string>Reference</string>
+ </property>
+ <hbox>
+ <property stdset="1">
+ <name>margin</name>
+ <number>11</number>
+ </property>
+ <property stdset="1">
+ <name>spacing</name>
+ <number>6</number>
+ </property>
+ <widget>
+ <class>QLayoutWidget</class>
+ <property stdset="1">
+ <name>name</name>
+ <cstring>Layout30</cstring>
+ </property>
+ <vbox>
+ <property stdset="1">
+ <name>margin</name>
+ <number>0</number>
+ </property>
+ <property stdset="1">
+ <name>spacing</name>
+ <number>6</number>
+ </property>
+ <widget>
+ <class>QListBox</class>
+ <property stdset="1">
+ <name>name</name>
+ <cstring>refsLB</cstring>
+ </property>
+ </widget>
+ <widget>
+ <class>QLayoutWidget</class>
+ <property stdset="1">
+ <name>name</name>
+ <cstring>Layout29</cstring>
+ </property>
+ <hbox>
+ <property stdset="1">
+ <name>margin</name>
+ <number>0</number>
+ </property>
+ <property stdset="1">
+ <name>spacing</name>
+ <number>6</number>
+ </property>
+ <spacer>
+ <property>
+ <name>name</name>
+ <cstring>Spacer4</cstring>
+ </property>
+ <property stdset="1">
+ <name>orientation</name>
+ <enum>Horizontal</enum>
+ </property>
+ <property stdset="1">
+ <name>sizeType</name>
+ <enum>Expanding</enum>
+ </property>
+ <property>
+ <name>sizeHint</name>
+ <size>
+ <width>20</width>
+ <height>20</height>
+ </size>
+ </property>
+ </spacer>
+ <widget>
+ <class>QPushButton</class>
+ <property stdset="1">
+ <name>name</name>
+ <cstring>updatePB</cstring>
+ </property>
+ <property stdset="1">
+ <name>text</name>
+ <string>&Update</string>
+ </property>
+ </widget>
+ <spacer>
+ <property>
+ <name>name</name>
+ <cstring>Spacer5</cstring>
+ </property>
+ <property stdset="1">
+ <name>orientation</name>
+ <enum>Horizontal</enum>
+ </property>
+ <property stdset="1">
+ <name>sizeType</name>
+ <enum>Expanding</enum>
+ </property>
+ <property>
+ <name>sizeHint</name>
+ <size>
+ <width>20</width>
+ <height>20</height>
+ </size>
+ </property>
+ </spacer>
+ <widget>
+ <class>QCheckBox</class>
+ <property stdset="1">
+ <name>name</name>
+ <cstring>sortCB</cstring>
+ </property>
+ <property stdset="1">
+ <name>text</name>
+ <string>Sort</string>
+ </property>
+ <property>
+ <name>toolTip</name>
+ <string>Sort references in alphabetical order ?</string>
+ </property>
+ </widget>
+ <spacer>
+ <property>
+ <name>name</name>
+ <cstring>Spacer6</cstring>
+ </property>
+ <property stdset="1">
+ <name>orientation</name>
+ <enum>Horizontal</enum>
+ </property>
+ <property stdset="1">
+ <name>sizeType</name>
+ <enum>Expanding</enum>
+ </property>
+ <property>
+ <name>sizeHint</name>
+ <size>
+ <width>20</width>
+ <height>20</height>
+ </size>
+ </property>
+ </spacer>
+ </hbox>
+ </widget>
+ </vbox>
+ </widget>
+ <widget>
+ <class>QLayoutWidget</class>
+ <property stdset="1">
+ <name>name</name>
+ <cstring>Layout35</cstring>
+ </property>
+ <vbox>
+ <property stdset="1">
+ <name>margin</name>
+ <number>0</number>
+ </property>
+ <property stdset="1">
+ <name>spacing</name>
+ <number>6</number>
+ </property>
+ <widget>
+ <class>QLayoutWidget</class>
+ <property stdset="1">
+ <name>name</name>
+ <cstring>Layout31</cstring>
+ </property>
+ <hbox>
+ <property stdset="1">
+ <name>margin</name>
+ <number>0</number>
+ </property>
+ <property stdset="1">
+ <name>spacing</name>
+ <number>6</number>
+ </property>
+ <widget>
+ <class>QLabel</class>
+ <property stdset="1">
+ <name>name</name>
+ <cstring>nameL</cstring>
+ </property>
+ <property stdset="1">
+ <name>text</name>
+ <string>&Name:</string>
+ </property>
+ <property>
+ <name>buddy</name>
+ <cstring>nameED</cstring>
+ </property>
+ </widget>
+ <widget>
+ <class>QLineEdit</class>
+ <property stdset="1">
+ <name>name</name>
+ <cstring>nameED</cstring>
+ </property>
+ </widget>
+ </hbox>
+ </widget>
+ <widget>
+ <class>QLayoutWidget</class>
+ <property stdset="1">
+ <name>name</name>
+ <cstring>Layout32</cstring>
+ </property>
+ <hbox>
+ <property stdset="1">
+ <name>margin</name>
+ <number>0</number>
+ </property>
+ <property stdset="1">
+ <name>spacing</name>
+ <number>6</number>
+ </property>
+ <widget>
+ <class>QLabel</class>
+ <property stdset="1">
+ <name>name</name>
+ <cstring>referenceL</cstring>
+ </property>
+ <property stdset="1">
+ <name>text</name>
+ <string>&Reference:</string>
+ </property>
+ <property>
+ <name>buddy</name>
+ <cstring>referenceED</cstring>
+ </property>
+ </widget>
+ <widget>
+ <class>QLineEdit</class>
+ <property stdset="1">
+ <name>name</name>
+ <cstring>referenceED</cstring>
+ </property>
+ </widget>
+ </hbox>
+ </widget>
+ <spacer>
+ <property>
+ <name>name</name>
+ <cstring>Spacer7</cstring>
+ </property>
+ <property stdset="1">
+ <name>orientation</name>
+ <enum>Vertical</enum>
+ </property>
+ <property stdset="1">
+ <name>sizeType</name>
+ <enum>Expanding</enum>
+ </property>
+ <property>
+ <name>sizeHint</name>
+ <size>
+ <width>20</width>
+ <height>20</height>
+ </size>
+ </property>
+ </spacer>
+ <widget>
+ <class>QLayoutWidget</class>
+ <property stdset="1">
+ <name>name</name>
+ <cstring>Layout33</cstring>
+ </property>
+ <vbox>
+ <property stdset="1">
+ <name>margin</name>
+ <number>0</number>
+ </property>
+ <property stdset="1">
+ <name>spacing</name>
+ <number>6</number>
+ </property>
+ <widget>
+ <class>QLabel</class>
+ <property stdset="1">
+ <name>name</name>
+ <cstring>typeLA</cstring>
+ </property>
+ <property stdset="1">
+ <name>text</name>
+ <string>Reference &type</string>
+ </property>
+ <property>
+ <name>buddy</name>
+ <cstring>typeLA</cstring>
+ </property>
+ <property stdset="1">
+ <name>alignment</name>
+ <set>AlignCenter</set>
+ </property>
+ <property>
+ <name>hAlign</name>
+ </property>
+ </widget>
+ <widget>
+ <class>QComboBox</class>
+ <item>
+ <property>
+ <name>text</name>
+ <string>Reference</string>
+ </property>
+ </item>
+ <item>
+ <property>
+ <name>text</name>
+ <string>Page number</string>
+ </property>
+ </item>
+ <item>
+ <property>
+ <name>text</name>
+ <string>Ref on page xxx</string>
+ </property>
+ </item>
+ <item>
+ <property>
+ <name>text</name>
+ <string>On page xxx</string>
+ </property>
+ </item>
+ <item>
+ <property>
+ <name>text</name>
+ <string>Pretty reference</string>
+ </property>
+ </item>
+ <property stdset="1">
+ <name>name</name>
+ <cstring>typeCO</cstring>
+ </property>
+ <property>
+ <name>toolTip</name>
+ <string>Reference as it appears in output</string>
+ </property>
+ </widget>
+ </vbox>
+ </widget>
+ <spacer>
+ <property>
+ <name>name</name>
+ <cstring>Spacer8</cstring>
+ </property>
+ <property stdset="1">
+ <name>orientation</name>
+ <enum>Vertical</enum>
+ </property>
+ <property stdset="1">
+ <name>sizeType</name>
+ <enum>Expanding</enum>
+ </property>
+ <property>
+ <name>sizeHint</name>
+ <size>
+ <width>20</width>
+ <height>20</height>
+ </size>
+ </property>
+ </spacer>
+ <widget>
+ <class>QPushButton</class>
+ <property stdset="1">
+ <name>name</name>
+ <cstring>gotoPB</cstring>
+ </property>
+ <property stdset="1">
+ <name>text</name>
+ <string>&Goto reference</string>
+ </property>
+ </widget>
+ <spacer>
+ <property>
+ <name>name</name>
+ <cstring>Spacer9</cstring>
+ </property>
+ <property stdset="1">
+ <name>orientation</name>
+ <enum>Vertical</enum>
+ </property>
+ <property stdset="1">
+ <name>sizeType</name>
+ <enum>Expanding</enum>
+ </property>
+ <property>
+ <name>sizeHint</name>
+ <size>
+ <width>20</width>
+ <height>20</height>
+ </size>
+ </property>
+ </spacer>
+ <widget>
+ <class>QLayoutWidget</class>
+ <property stdset="1">
+ <name>name</name>
+ <cstring>Layout34</cstring>
+ </property>
+ <hbox>
+ <property stdset="1">
+ <name>margin</name>
+ <number>0</number>
+ </property>
+ <property stdset="1">
+ <name>spacing</name>
+ <number>6</number>
+ </property>
+ <widget>
+ <class>QPushButton</class>
+ <property stdset="1">
+ <name>name</name>
+ <cstring>okPB</cstring>
+ </property>
+ <property stdset="1">
+ <name>text</name>
+ <string>&OK</string>
+ </property>
+ <property stdset="1">
+ <name>default</name>
+ <bool>true</bool>
+ </property>
+ </widget>
+ <widget>
+ <class>QPushButton</class>
+ <property stdset="1">
+ <name>name</name>
+ <cstring>cancelPB</cstring>
+ </property>
+ <property stdset="1">
+ <name>text</name>
+ <string>&Cancel</string>
+ </property>
+ </widget>
+ </hbox>
+ </widget>
+ </vbox>
+ </widget>
+ </hbox>
+</widget>
+<connections>
+ <connection>
+ <sender>refsLB</sender>
+ <signal>highlighted(const QString&)</signal>
+ <receiver>QRefDialogBase</receiver>
+ <slot>highlight_adaptor(const QString&)</slot>
+ </connection>
+ <connection>
+ <sender>refsLB</sender>
+ <signal>selected(const QString&)</signal>
+ <receiver>QRefDialogBase</receiver>
+ <slot>select_adaptor(const QString&)</slot>
+ </connection>
+ <connection>
+ <sender>sortCB</sender>
+ <signal>toggled(bool)</signal>
+ <receiver>QRefDialogBase</receiver>
+ <slot>sort_adaptor(bool)</slot>
+ </connection>
+ <connection>
+ <sender>updatePB</sender>
+ <signal>clicked()</signal>
+ <receiver>QRefDialogBase</receiver>
+ <slot>update_adaptor()</slot>
+ </connection>
+ <connection>
+ <sender>okPB</sender>
+ <signal>clicked()</signal>
+ <receiver>QRefDialogBase</receiver>
+ <slot>apply_adaptor()</slot>
+ </connection>
+ <connection>
+ <sender>cancelPB</sender>
+ <signal>clicked()</signal>
+ <receiver>QRefDialogBase</receiver>
+ <slot>close_adaptor()</slot>
+ </connection>
+ <connection>
+ <sender>gotoPB</sender>
+ <signal>clicked()</signal>
+ <receiver>QRefDialogBase</receiver>
+ <slot>goto_adaptor()</slot>
+ </connection>
+ <slot access="public">apply_adaptor()</slot>
+ <slot access="public">goto_adaptor()</slot>
+ <slot access="public">highlight_adaptor(const QString&)</slot>
+ <slot access="public">close_adaptor()</slot>
+ <slot access="public">select_adaptor(const QString&)</slot>
+ <slot access="public">sort_adaptor(bool)</slot>
+ <slot access="public">update_adaptor()</slot>
+</connections>
+</UI>
--- /dev/null
+<!DOCTYPE UI><UI>
+<class>QSearchDialogBase</class>
+<include location="global">config.h</include>
+<widget>
+ <class>QDialog</class>
+ <property stdset="1">
+ <name>name</name>
+ <cstring>QSearchDialogBase</cstring>
+ </property>
+ <property stdset="1">
+ <name>geometry</name>
+ <rect>
+ <x>0</x>
+ <y>0</y>
+ <width>384</width>
+ <height>168</height>
+ </rect>
+ </property>
+ <property stdset="1">
+ <name>caption</name>
+ <string>Form1</string>
+ </property>
+ <property stdset="1">
+ <name>sizeGripEnabled</name>
+ <bool>true</bool>
+ </property>
+ <property>
+ <name>layoutMargin</name>
+ </property>
+ <property>
+ <name>layoutSpacing</name>
+ </property>
+ <grid>
+ <property stdset="1">
+ <name>margin</name>
+ <number>11</number>
+ </property>
+ <property stdset="1">
+ <name>spacing</name>
+ <number>6</number>
+ </property>
+ <widget row="0" column="0" >
+ <class>QLabel</class>
+ <property stdset="1">
+ <name>name</name>
+ <cstring>findStrLabel</cstring>
+ </property>
+ <property stdset="1">
+ <name>text</name>
+ <string>Find:</string>
+ </property>
+ </widget>
+ <widget row="0" column="1" rowspan="1" colspan="2" >
+ <class>QComboBox</class>
+ <property stdset="1">
+ <name>name</name>
+ <cstring>find</cstring>
+ </property>
+ <property stdset="1">
+ <name>sizePolicy</name>
+ <sizepolicy>
+ <hsizetype>3</hsizetype>
+ <vsizetype>0</vsizetype>
+ </sizepolicy>
+ </property>
+ <property stdset="1">
+ <name>focusPolicy</name>
+ <enum>StrongFocus</enum>
+ </property>
+ <property stdset="1">
+ <name>editable</name>
+ <bool>true</bool>
+ </property>
+ <property stdset="1">
+ <name>duplicatesEnabled</name>
+ <bool>true</bool>
+ </property>
+ </widget>
+ <widget row="1" column="0" >
+ <class>QLabel</class>
+ <property stdset="1">
+ <name>name</name>
+ <cstring>replaceLabel</cstring>
+ </property>
+ <property stdset="1">
+ <name>text</name>
+ <string>Replace with:</string>
+ </property>
+ </widget>
+ <widget row="1" column="1" rowspan="1" colspan="2" >
+ <class>QComboBox</class>
+ <property stdset="1">
+ <name>name</name>
+ <cstring>replace</cstring>
+ </property>
+ <property stdset="1">
+ <name>sizePolicy</name>
+ <sizepolicy>
+ <hsizetype>3</hsizetype>
+ <vsizetype>0</vsizetype>
+ </sizepolicy>
+ </property>
+ <property stdset="1">
+ <name>editable</name>
+ <bool>true</bool>
+ </property>
+ </widget>
+ <widget row="2" column="0" rowspan="1" colspan="2" >
+ <class>QCheckBox</class>
+ <property stdset="1">
+ <name>name</name>
+ <cstring>caseSensitive</cstring>
+ </property>
+ <property stdset="1">
+ <name>text</name>
+ <string>&Case sensitive</string>
+ </property>
+ </widget>
+ <widget row="3" column="0" rowspan="2" colspan="2" >
+ <class>QCheckBox</class>
+ <property stdset="1">
+ <name>name</name>
+ <cstring>matchWord</cstring>
+ </property>
+ <property stdset="1">
+ <name>text</name>
+ <string>Match whole words onl&y</string>
+ </property>
+ </widget>
+ <spacer row="2" column="2" >
+ <property>
+ <name>name</name>
+ <cstring>HSpacer1</cstring>
+ </property>
+ <property stdset="1">
+ <name>orientation</name>
+ <enum>Horizontal</enum>
+ </property>
+ <property stdset="1">
+ <name>sizeType</name>
+ <enum>Expanding</enum>
+ </property>
+ <property>
+ <name>sizeHint</name>
+ <size>
+ <width>20</width>
+ <height>20</height>
+ </size>
+ </property>
+ </spacer>
+ <spacer row="6" column="0" rowspan="1" colspan="2" >
+ <property>
+ <name>name</name>
+ <cstring>VSpacer1</cstring>
+ </property>
+ <property stdset="1">
+ <name>orientation</name>
+ <enum>Vertical</enum>
+ </property>
+ <property stdset="1">
+ <name>sizeType</name>
+ <enum>Expanding</enum>
+ </property>
+ <property>
+ <name>sizeHint</name>
+ <size>
+ <width>20</width>
+ <height>20</height>
+ </size>
+ </property>
+ </spacer>
+ <spacer row="6" column="3" >
+ <property>
+ <name>name</name>
+ <cstring>VSpacer2</cstring>
+ </property>
+ <property stdset="1">
+ <name>orientation</name>
+ <enum>Vertical</enum>
+ </property>
+ <property stdset="1">
+ <name>sizeType</name>
+ <enum>Expanding</enum>
+ </property>
+ <property>
+ <name>sizeHint</name>
+ <size>
+ <width>20</width>
+ <height>20</height>
+ </size>
+ </property>
+ </spacer>
+ <widget row="0" column="3" >
+ <class>QPushButton</class>
+ <property stdset="1">
+ <name>name</name>
+ <cstring>findPB</cstring>
+ </property>
+ <property stdset="1">
+ <name>text</name>
+ <string>Find &Next</string>
+ </property>
+ </widget>
+ <widget row="1" column="3" >
+ <class>QPushButton</class>
+ <property stdset="1">
+ <name>name</name>
+ <cstring>replacePB</cstring>
+ </property>
+ <property stdset="1">
+ <name>text</name>
+ <string>&Replace</string>
+ </property>
+ </widget>
+ <widget row="2" column="3" rowspan="2" colspan="1" >
+ <class>QPushButton</class>
+ <property stdset="1">
+ <name>name</name>
+ <cstring>replaceAllPB</cstring>
+ </property>
+ <property stdset="1">
+ <name>text</name>
+ <string>Replace &All </string>
+ </property>
+ </widget>
+ <widget row="5" column="0" rowspan="1" colspan="2" >
+ <class>QCheckBox</class>
+ <property stdset="1">
+ <name>name</name>
+ <cstring>searchBack</cstring>
+ </property>
+ <property stdset="1">
+ <name>text</name>
+ <string>Search &backwards</string>
+ </property>
+ </widget>
+ <widget row="4" column="3" rowspan="2" colspan="1" >
+ <class>QPushButton</class>
+ <property stdset="1">
+ <name>name</name>
+ <cstring>cancelPB</cstring>
+ </property>
+ <property stdset="1">
+ <name>text</name>
+ <string>&Cancel</string>
+ </property>
+ </widget>
+ </grid>
+</widget>
+<connections>
+ <connection>
+ <sender>findPB</sender>
+ <signal>clicked()</signal>
+ <receiver>QSearchDialogBase</receiver>
+ <slot>Find()</slot>
+ </connection>
+ <connection>
+ <sender>replacePB</sender>
+ <signal>clicked()</signal>
+ <receiver>QSearchDialogBase</receiver>
+ <slot>Replace()</slot>
+ </connection>
+ <connection>
+ <sender>replaceAllPB</sender>
+ <signal>clicked()</signal>
+ <receiver>QSearchDialogBase</receiver>
+ <slot>ReplaceAll()</slot>
+ </connection>
+ <connection>
+ <sender>cancelPB</sender>
+ <signal>clicked()</signal>
+ <receiver>QSearchDialogBase</receiver>
+ <slot>cancel_adaptor()</slot>
+ </connection>
+ <slot access="protected">Find()</slot>
+ <slot access="protected">Replace()</slot>
+ <slot access="protected">ReplaceAll()</slot>
+ <slot access="protected">cancel_adaptor()</slot>
+</connections>
+<tabstops>
+ <tabstop>find</tabstop>
+ <tabstop>replace</tabstop>
+ <tabstop>caseSensitive</tabstop>
+ <tabstop>matchWord</tabstop>
+ <tabstop>searchBack</tabstop>
+ <tabstop>findPB</tabstop>
+ <tabstop>replacePB</tabstop>
+ <tabstop>replaceAllPB</tabstop>
+ <tabstop>cancelPB</tabstop>
+</tabstops>
+</UI>
--- /dev/null
+<!DOCTYPE UI><UI>
+<class>QTabularCreateDialogBase</class>
+<widget>
+ <class>QDialog</class>
+ <property stdset="1">
+ <name>name</name>
+ <cstring>QTabularCreateDialogBase</cstring>
+ </property>
+ <property stdset="1">
+ <name>geometry</name>
+ <rect>
+ <x>0</x>
+ <y>0</y>
+ <width>245</width>
+ <height>235</height>
+ </rect>
+ </property>
+ <property stdset="1">
+ <name>sizeGripEnabled</name>
+ <bool>true</bool>
+ </property>
+ <property stdset="1">
+ <name>caption</name>
+ <string>Form1</string>
+ </property>
+ <vbox>
+ <property stdset="1">
+ <name>margin</name>
+ <number>11</number>
+ </property>
+ <property stdset="1">
+ <name>spacing</name>
+ <number>6</number>
+ </property>
+ <widget>
+ <class>QLayoutWidget</class>
+ <property stdset="1">
+ <name>name</name>
+ <cstring>Layout1</cstring>
+ </property>
+ <hbox>
+ <property stdset="1">
+ <name>margin</name>
+ <number>0</number>
+ </property>
+ <property stdset="1">
+ <name>spacing</name>
+ <number>6</number>
+ </property>
+ <widget>
+ <class>QLabel</class>
+ <property stdset="1">
+ <name>name</name>
+ <cstring>rowsL</cstring>
+ </property>
+ <property stdset="1">
+ <name>text</name>
+ <string>Rows:</string>
+ </property>
+ </widget>
+ <widget>
+ <class>QSpinBox</class>
+ <property stdset="1">
+ <name>name</name>
+ <cstring>rows</cstring>
+ </property>
+ <property stdset="1">
+ <name>minValue</name>
+ <number>1</number>
+ </property>
+ <property stdset="1">
+ <name>maxValue</name>
+ <number>511</number>
+ </property>
+ </widget>
+ <widget>
+ <class>QLabel</class>
+ <property stdset="1">
+ <name>name</name>
+ <cstring>columnsL</cstring>
+ </property>
+ <property stdset="1">
+ <name>text</name>
+ <string>Columns:</string>
+ </property>
+ </widget>
+ <widget>
+ <class>QSpinBox</class>
+ <property stdset="1">
+ <name>name</name>
+ <cstring>columns</cstring>
+ </property>
+ <property stdset="1">
+ <name>minValue</name>
+ <number>1</number>
+ </property>
+ <property stdset="1">
+ <name>maxValue</name>
+ <number>511</number>
+ </property>
+ </widget>
+ <spacer>
+ <property>
+ <name>name</name>
+ <cstring>Spacer1</cstring>
+ </property>
+ <property stdset="1">
+ <name>orientation</name>
+ <enum>Horizontal</enum>
+ </property>
+ <property stdset="1">
+ <name>sizeType</name>
+ <enum>Expanding</enum>
+ </property>
+ <property>
+ <name>sizeHint</name>
+ <size>
+ <width>20</width>
+ <height>20</height>
+ </size>
+ </property>
+ </spacer>
+ </hbox>
+ </widget>
+ <widget>
+ <class>EmptyTable</class>
+ <property stdset="1">
+ <name>name</name>
+ <cstring>table</cstring>
+ </property>
+ </widget>
+ <widget>
+ <class>QLayoutWidget</class>
+ <property stdset="1">
+ <name>name</name>
+ <cstring>Layout2</cstring>
+ </property>
+ <hbox>
+ <property stdset="1">
+ <name>margin</name>
+ <number>0</number>
+ </property>
+ <property stdset="1">
+ <name>spacing</name>
+ <number>6</number>
+ </property>
+ <spacer>
+ <property>
+ <name>name</name>
+ <cstring>Spacer2</cstring>
+ </property>
+ <property stdset="1">
+ <name>orientation</name>
+ <enum>Horizontal</enum>
+ </property>
+ <property stdset="1">
+ <name>sizeType</name>
+ <enum>Expanding</enum>
+ </property>
+ <property>
+ <name>sizeHint</name>
+ <size>
+ <width>20</width>
+ <height>20</height>
+ </size>
+ </property>
+ </spacer>
+ <widget>
+ <class>QPushButton</class>
+ <property stdset="1">
+ <name>name</name>
+ <cstring>insertPB</cstring>
+ </property>
+ <property stdset="1">
+ <name>text</name>
+ <string>&Insert</string>
+ </property>
+ </widget>
+ <widget>
+ <class>QPushButton</class>
+ <property stdset="1">
+ <name>name</name>
+ <cstring>cancelPB</cstring>
+ </property>
+ <property stdset="1">
+ <name>text</name>
+ <string>&Cancel</string>
+ </property>
+ </widget>
+ </hbox>
+ </widget>
+ </vbox>
+</widget>
+<customwidgets>
+ <customwidget>
+ <class>EmptyTable</class>
+ <header location="local">../emptytable.h</header>
+ <sizehint>
+ <width>-1</width>
+ <height>-1</height>
+ </sizehint>
+ <container>0</container>
+ <sizepolicy>
+ <hordata>5</hordata>
+ <verdata>5</verdata>
+ </sizepolicy>
+ <pixmap>image0</pixmap>
+ <signal>colsChanged(int)</signal>
+ <signal>rowsChanged(int)</signal>
+ <slot access="public">setNumberColumns(int)</slot>
+ <slot access="public">setNumberRows(int)</slot>
+ </customwidget>
+</customwidgets>
+<images>
+ <image>
+ <name>image0</name>
+ <data format="XPM.GZ" length="646">789c6dd2c10ac2300c00d07bbf2234b7229d1be245fc04c5a3201e4615f430059d0711ff5ddb2e6bb236ec90eed134cb5a19d8ef36602af5ecdbfeeac05dda0798d3abebde87e3faa374d3807fa0d633a52d38d8de6f679fe33fc776e196f53cd010188256a3600a292882096246517815ca99884606e18044a3a40d91824820924265a7923a2e8bcd05f33db1173e002913175f2a6be6d3294871a2d95fa00e8a94ee017b69d339d90df1e77c57ea072ede6758</data>
+ </image>
+</images>
+<connections>
+ <connection>
+ <sender>table</sender>
+ <signal>rowsChanged(int)</signal>
+ <receiver>rows</receiver>
+ <slot>setValue(int)</slot>
+ </connection>
+ <connection>
+ <sender>table</sender>
+ <signal>colsChanged(int)</signal>
+ <receiver>columns</receiver>
+ <slot>setValue(int)</slot>
+ </connection>
+ <connection>
+ <sender>rows</sender>
+ <signal>valueChanged(int)</signal>
+ <receiver>table</receiver>
+ <slot>setNumberRows(int)</slot>
+ </connection>
+ <connection>
+ <sender>columns</sender>
+ <signal>valueChanged(int)</signal>
+ <receiver>table</receiver>
+ <slot>setNumberColumns(int)</slot>
+ </connection>
+ <connection>
+ <sender>insertPB</sender>
+ <signal>clicked()</signal>
+ <receiver>QTabularCreateDialogBase</receiver>
+ <slot>insert_tabular()</slot>
+ </connection>
+ <connection>
+ <sender>cancelPB</sender>
+ <signal>clicked()</signal>
+ <receiver>QTabularCreateDialogBase</receiver>
+ <slot>cancel_adaptor()</slot>
+ </connection>
+ <slot access="protected">insert_tabular()</slot>
+ <slot access="protected">cancel_adaptor()</slot>
+</connections>
+</UI>
--- /dev/null
+<!DOCTYPE UI><UI>
+<class>QTocDialogBase</class>
+<widget>
+ <class>QDialog</class>
+ <property stdset="1">
+ <name>name</name>
+ <cstring>QTocDialogBase</cstring>
+ </property>
+ <property stdset="1">
+ <name>geometry</name>
+ <rect>
+ <x>0</x>
+ <y>0</y>
+ <width>369</width>
+ <height>313</height>
+ </rect>
+ </property>
+ <property stdset="1">
+ <name>caption</name>
+ <string>Table Of Contents</string>
+ </property>
+ <vbox>
+ <property stdset="1">
+ <name>margin</name>
+ <number>11</number>
+ </property>
+ <property stdset="1">
+ <name>spacing</name>
+ <number>6</number>
+ </property>
+ <widget>
+ <class>QListView</class>
+ <column>
+ <property>
+ <name>text</name>
+ <string>Table Of Contents</string>
+ </property>
+ <property>
+ <name>clickable</name>
+ <bool>true</bool>
+ </property>
+ <property>
+ <name>resizeable</name>
+ <bool>true</bool>
+ </property>
+ </column>
+ <property stdset="1">
+ <name>name</name>
+ <cstring>tocLV</cstring>
+ </property>
+ </widget>
+ <widget>
+ <class>QSlider</class>
+ <property stdset="1">
+ <name>name</name>
+ <cstring>depthSL</cstring>
+ </property>
+ <property stdset="1">
+ <name>orientation</name>
+ <enum>Horizontal</enum>
+ </property>
+ <property stdset="1">
+ <name>maxValue</name>
+ <number>5</number>
+ </property>
+ <property stdset="1">
+ <name>pageStep</name>
+ <number>1</number>
+ </property>
+ </widget>
+ <widget>
+ <class>QLayoutWidget</class>
+ <property stdset="1">
+ <name>name</name>
+ <cstring>Layout39</cstring>
+ </property>
+ <hbox>
+ <property stdset="1">
+ <name>margin</name>
+ <number>0</number>
+ </property>
+ <property stdset="1">
+ <name>spacing</name>
+ <number>6</number>
+ </property>
+ <spacer>
+ <property>
+ <name>name</name>
+ <cstring>Spacer11</cstring>
+ </property>
+ <property stdset="1">
+ <name>orientation</name>
+ <enum>Horizontal</enum>
+ </property>
+ <property stdset="1">
+ <name>sizeType</name>
+ <enum>Expanding</enum>
+ </property>
+ <property>
+ <name>sizeHint</name>
+ <size>
+ <width>20</width>
+ <height>20</height>
+ </size>
+ </property>
+ </spacer>
+ <widget>
+ <class>QLabel</class>
+ <property stdset="1">
+ <name>name</name>
+ <cstring>typeLA</cstring>
+ </property>
+ <property stdset="1">
+ <name>text</name>
+ <string>&Type</string>
+ </property>
+ <property>
+ <name>buddy</name>
+ <cstring>typeCO</cstring>
+ </property>
+ </widget>
+ <widget>
+ <class>QComboBox</class>
+ <item>
+ <property>
+ <name>text</name>
+ <string>Table of Contents</string>
+ </property>
+ </item>
+ <item>
+ <property>
+ <name>text</name>
+ <string>List of Figures</string>
+ </property>
+ </item>
+ <item>
+ <property>
+ <name>text</name>
+ <string>List of Tables</string>
+ </property>
+ </item>
+ <item>
+ <property>
+ <name>text</name>
+ <string>List of Algorithms</string>
+ </property>
+ </item>
+ <property stdset="1">
+ <name>name</name>
+ <cstring>typeCO</cstring>
+ </property>
+ </widget>
+ <widget>
+ <class>QPushButton</class>
+ <property stdset="1">
+ <name>name</name>
+ <cstring>updatePB</cstring>
+ </property>
+ <property stdset="1">
+ <name>text</name>
+ <string>&Update</string>
+ </property>
+ </widget>
+ <widget>
+ <class>QPushButton</class>
+ <property stdset="1">
+ <name>name</name>
+ <cstring>closePB</cstring>
+ </property>
+ <property stdset="1">
+ <name>text</name>
+ <string>&Close</string>
+ </property>
+ <property stdset="1">
+ <name>default</name>
+ <bool>true</bool>
+ </property>
+ </widget>
+ </hbox>
+ </widget>
+ </vbox>
+</widget>
+<connections>
+ <connection>
+ <sender>tocLV</sender>
+ <signal>selectionChanged(QListViewItem*)</signal>
+ <receiver>QTocDialogBase</receiver>
+ <slot>select_adaptor(QListViewItem*)</slot>
+ </connection>
+ <connection>
+ <sender>typeCO</sender>
+ <signal>activated(int)</signal>
+ <receiver>QTocDialogBase</receiver>
+ <slot>activate_adaptor(int)</slot>
+ </connection>
+ <connection>
+ <sender>updatePB</sender>
+ <signal>clicked()</signal>
+ <receiver>QTocDialogBase</receiver>
+ <slot>update_adaptor()</slot>
+ </connection>
+ <connection>
+ <sender>closePB</sender>
+ <signal>clicked()</signal>
+ <receiver>QTocDialogBase</receiver>
+ <slot>close_adaptor()</slot>
+ </connection>
+ <connection>
+ <sender>depthSL</sender>
+ <signal>valueChanged(int)</signal>
+ <receiver>QTocDialogBase</receiver>
+ <slot>depth_adaptor(int)</slot>
+ </connection>
+ <slot access="public">activate_adaptor(int)</slot>
+ <slot access="public">close_adaptor()</slot>
+ <slot access="public">depth_adaptor(int)</slot>
+ <slot access="public">select_adaptor(QListViewItem*)</slot>
+ <slot access="public">update_adaptor()</slot>
+</connections>
+</UI>
--- /dev/null
+<!DOCTYPE UI><UI>
+<class>QURLDialogBase</class>
+<widget>
+ <class>QDialog</class>
+ <property stdset="1">
+ <name>name</name>
+ <cstring>QURLDialogBase</cstring>
+ </property>
+ <property stdset="1">
+ <name>geometry</name>
+ <rect>
+ <x>0</x>
+ <y>0</y>
+ <width>325</width>
+ <height>113</height>
+ </rect>
+ </property>
+ <property stdset="1">
+ <name>caption</name>
+ <string>Url</string>
+ </property>
+ <vbox>
+ <property stdset="1">
+ <name>margin</name>
+ <number>11</number>
+ </property>
+ <property stdset="1">
+ <name>spacing</name>
+ <number>6</number>
+ </property>
+ <widget>
+ <class>QLayoutWidget</class>
+ <property stdset="1">
+ <name>name</name>
+ <cstring>Layout2</cstring>
+ </property>
+ <hbox>
+ <property stdset="1">
+ <name>margin</name>
+ <number>0</number>
+ </property>
+ <property stdset="1">
+ <name>spacing</name>
+ <number>6</number>
+ </property>
+ <widget>
+ <class>QLabel</class>
+ <property stdset="1">
+ <name>name</name>
+ <cstring>urlLA</cstring>
+ </property>
+ <property stdset="1">
+ <name>text</name>
+ <string>&Url</string>
+ </property>
+ <property>
+ <name>buddy</name>
+ <cstring>urlED</cstring>
+ </property>
+ <property>
+ <name>toolTip</name>
+ <string>URL</string>
+ </property>
+ </widget>
+ <widget>
+ <class>QLineEdit</class>
+ <property stdset="1">
+ <name>name</name>
+ <cstring>urlED</cstring>
+ </property>
+ <property>
+ <name>toolTip</name>
+ <string>URL</string>
+ </property>
+ </widget>
+ </hbox>
+ </widget>
+ <widget>
+ <class>QLayoutWidget</class>
+ <property stdset="1">
+ <name>name</name>
+ <cstring>Layout3</cstring>
+ </property>
+ <hbox>
+ <property stdset="1">
+ <name>margin</name>
+ <number>0</number>
+ </property>
+ <property stdset="1">
+ <name>spacing</name>
+ <number>6</number>
+ </property>
+ <widget>
+ <class>QLabel</class>
+ <property stdset="1">
+ <name>name</name>
+ <cstring>nameLA</cstring>
+ </property>
+ <property stdset="1">
+ <name>text</name>
+ <string>&Name</string>
+ </property>
+ <property>
+ <name>buddy</name>
+ <cstring>nameED</cstring>
+ </property>
+ <property>
+ <name>toolTip</name>
+ <string>Name associated with the URL</string>
+ </property>
+ </widget>
+ <widget>
+ <class>QLineEdit</class>
+ <property stdset="1">
+ <name>name</name>
+ <cstring>nameED</cstring>
+ </property>
+ <property>
+ <name>toolTip</name>
+ <string>Name associated with the URL</string>
+ </property>
+ </widget>
+ </hbox>
+ </widget>
+ <widget>
+ <class>QLayoutWidget</class>
+ <property stdset="1">
+ <name>name</name>
+ <cstring>Layout4</cstring>
+ </property>
+ <hbox>
+ <property stdset="1">
+ <name>margin</name>
+ <number>0</number>
+ </property>
+ <property stdset="1">
+ <name>spacing</name>
+ <number>6</number>
+ </property>
+ <widget>
+ <class>QCheckBox</class>
+ <property stdset="1">
+ <name>name</name>
+ <cstring>hyperlinkCB</cstring>
+ </property>
+ <property stdset="1">
+ <name>text</name>
+ <string>&Generate hyperlink</string>
+ </property>
+ <property>
+ <name>toolTip</name>
+ <string>Output as a hyperlink ?</string>
+ </property>
+ </widget>
+ <widget>
+ <class>QPushButton</class>
+ <property stdset="1">
+ <name>name</name>
+ <cstring>okPB</cstring>
+ </property>
+ <property stdset="1">
+ <name>text</name>
+ <string>&OK</string>
+ </property>
+ <property stdset="1">
+ <name>default</name>
+ <bool>true</bool>
+ </property>
+ </widget>
+ <widget>
+ <class>QPushButton</class>
+ <property stdset="1">
+ <name>name</name>
+ <cstring>cancelPB</cstring>
+ </property>
+ <property stdset="1">
+ <name>text</name>
+ <string>&Cancel</string>
+ </property>
+ </widget>
+ </hbox>
+ </widget>
+ </vbox>
+</widget>
+<connections>
+ <connection>
+ <sender>okPB</sender>
+ <signal>clicked()</signal>
+ <receiver>QURLDialogBase</receiver>
+ <slot>apply_adaptor()</slot>
+ </connection>
+ <connection>
+ <sender>cancelPB</sender>
+ <signal>clicked()</signal>
+ <receiver>QURLDialogBase</receiver>
+ <slot>close_adaptor()</slot>
+ </connection>
+ <slot access="public">apply_adaptor()</slot>
+ <slot access="public">close_adaptor()</slot>
+</connections>
+</UI>
--- /dev/null
+Makefile.in
+Makefile
+*.deps
+*.lo
+.libs
+libqt2uimoc.la
+moc_*.C
+*_moc.C
+*.C
+*.h
--- /dev/null
+AUTOMAKE_OPTIONS = foreign 1.4
+MAINTAINERCLEANFILES = $(srcdir)/Makefile.in
+noinst_LTLIBRARIES = libqt2uimoc.la
+BOOST_INCLUDES = -I$(top_srcdir)/boost
+INCLUDES = -I${top_srcdir}/src/ \
+ -I${top_srcdir}/src/frontends/ \
+ -I${top_srcdir}/src/frontends/controllers \
+ ${SIGC_CFLAGS} \
+ ${FRONTEND_INCLUDES} \
+ $(BOOST_INCLUDES)
+
+include ../../Makefile.dialogs
+
+libqt2uimoc_la_SOURCES := $(UIMOCDIALOGS)
+ #$(patsubst, %, %Dialog_moc.C, $(DIALOGS))
+
+DISTCLEANFILES = $(libqt2uimoc_la_SOURCES) *.orig *.rej *~ *.bak core
+
+ETAGS_ARGS = --lang=c++
+
+%_moc.C: ../%.h
+ $(MOC) -o $@ $<
+