mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-11-23 10:18:50 +00:00
add minipage dialog
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@2610 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
parent
7e1ba5f1f9
commit
ead11eb6b5
@ -1,3 +1,14 @@
|
|||||||
|
2001-08-29 John Levon <moz@compsoc.man.ac.uk>
|
||||||
|
|
||||||
|
* QMinipage.[Ch]:
|
||||||
|
* QMinipageDialog.[Ch]:
|
||||||
|
* ui/QMinipageDialog.ui:
|
||||||
|
* lengthcombo.[Ch]:
|
||||||
|
* Makefile.am:
|
||||||
|
* moc/Makefile.am:
|
||||||
|
* Makefile.dialogs:
|
||||||
|
* Dialogs.C: add minipage and prototype length combo widget
|
||||||
|
|
||||||
2001-08-29 John Levon <moz@compsoc.man.ac.uk>
|
2001-08-29 John Levon <moz@compsoc.man.ac.uk>
|
||||||
|
|
||||||
* QLog.[Ch]:
|
* QLog.[Ch]:
|
||||||
|
@ -21,15 +21,16 @@
|
|||||||
#include "QERTDialog.h"
|
#include "QERTDialog.h"
|
||||||
#include "QExternalDialog.h"
|
#include "QExternalDialog.h"
|
||||||
#include "QGraphicsDialog.h"
|
#include "QGraphicsDialog.h"
|
||||||
#include "QIncludeDialog.h"
|
#include "QIncludeDialog.h"
|
||||||
#include "QIndexDialog.h"
|
#include "QIndexDialog.h"
|
||||||
#include "QLogDialog.h"
|
#include "QLogDialog.h"
|
||||||
|
#include "QMinipageDialog.h"
|
||||||
#include "QRefDialog.h"
|
#include "QRefDialog.h"
|
||||||
#include "QTabularCreateDialog.h"
|
#include "QTabularCreateDialog.h"
|
||||||
#include "QThesaurusDialog.h"
|
#include "QThesaurusDialog.h"
|
||||||
#include "QURLDialog.h"
|
#include "QURLDialog.h"
|
||||||
#include "QVCLogDialog.h"
|
#include "QVCLogDialog.h"
|
||||||
|
|
||||||
#include "QAbout.h"
|
#include "QAbout.h"
|
||||||
#include "QBibitem.h"
|
#include "QBibitem.h"
|
||||||
#include "QBibtex.h"
|
#include "QBibtex.h"
|
||||||
@ -42,6 +43,7 @@
|
|||||||
#include "QInclude.h"
|
#include "QInclude.h"
|
||||||
#include "QIndex.h"
|
#include "QIndex.h"
|
||||||
#include "QLog.h"
|
#include "QLog.h"
|
||||||
|
#include "QMinipage.h"
|
||||||
#include "QParagraph.h"
|
#include "QParagraph.h"
|
||||||
#include "QPrint.h"
|
#include "QPrint.h"
|
||||||
#include "QRef.h"
|
#include "QRef.h"
|
||||||
@ -52,7 +54,7 @@
|
|||||||
#include "QURL.h"
|
#include "QURL.h"
|
||||||
#include "QVCLog.h"
|
#include "QVCLog.h"
|
||||||
|
|
||||||
#include "QtLyXView.h"
|
#include "QtLyXView.h"
|
||||||
#include "Dialogs.h"
|
#include "Dialogs.h"
|
||||||
#include "BufferView.h"
|
#include "BufferView.h"
|
||||||
#include "buffer.h"
|
#include "buffer.h"
|
||||||
@ -71,18 +73,18 @@
|
|||||||
#include "controllers/ControlInclude.h"
|
#include "controllers/ControlInclude.h"
|
||||||
#include "controllers/ControlIndex.h"
|
#include "controllers/ControlIndex.h"
|
||||||
#include "controllers/ControlLog.h"
|
#include "controllers/ControlLog.h"
|
||||||
|
#include "controllers/ControlMinipage.h"
|
||||||
#include "controllers/ControlRef.h"
|
#include "controllers/ControlRef.h"
|
||||||
#include "controllers/ControlSplash.h"
|
#include "controllers/ControlSplash.h"
|
||||||
#include "controllers/ControlTabularCreate.h"
|
#include "controllers/ControlTabularCreate.h"
|
||||||
#include "controllers/ControlThesaurus.h"
|
#include "controllers/ControlThesaurus.h"
|
||||||
#include "controllers/ControlUrl.h"
|
#include "controllers/ControlUrl.h"
|
||||||
#include "controllers/ControlVCLog.h"
|
#include "controllers/ControlVCLog.h"
|
||||||
#if 0
|
#if 0
|
||||||
#include "controllers/ControlButtons.h"
|
#include "controllers/ControlButtons.h"
|
||||||
#include "controllers/ControlCitation.h"
|
#include "controllers/ControlCitation.h"
|
||||||
#include "controllers/ControlFloat.h"
|
#include "controllers/ControlFloat.h"
|
||||||
#include "controllers/ControlLabel.h"
|
#include "controllers/ControlLabel.h"
|
||||||
#include "controllers/ControlMinipage.h"
|
|
||||||
#include "controllers/ControlPreamble.h"
|
#include "controllers/ControlPreamble.h"
|
||||||
#include "controllers/ControlPrint.h"
|
#include "controllers/ControlPrint.h"
|
||||||
#include "controllers/ControlRef.h"
|
#include "controllers/ControlRef.h"
|
||||||
@ -92,7 +94,7 @@
|
|||||||
#endif
|
#endif
|
||||||
|
|
||||||
#include "GUI.h"
|
#include "GUI.h"
|
||||||
|
|
||||||
// this makes no real sense for Qt2
|
// this makes no real sense for Qt2
|
||||||
SigC::Signal0<void> Dialogs::redrawGUI;
|
SigC::Signal0<void> Dialogs::redrawGUI;
|
||||||
|
|
||||||
@ -107,16 +109,17 @@ Dialogs::Dialogs(LyXView * lv)
|
|||||||
add(new GUIBibitem<QBibitem, Qt2BC>(*lv, *this));
|
add(new GUIBibitem<QBibitem, Qt2BC>(*lv, *this));
|
||||||
add(new GUIBibtex<QBibtex, Qt2BC>(*lv, *this));
|
add(new GUIBibtex<QBibtex, Qt2BC>(*lv, *this));
|
||||||
add(new GUICharacter<QCharacter, Qt2BC>(*lv, *this));
|
add(new GUICharacter<QCharacter, Qt2BC>(*lv, *this));
|
||||||
add(new GUIError<QError, Qt2BC>(*lv, *this));
|
add(new GUIError<QError, Qt2BC>(*lv, *this));
|
||||||
add(new GUIERT<QERT, Qt2BC>(*lv, *this));
|
add(new GUIERT<QERT, Qt2BC>(*lv, *this));
|
||||||
add(new GUIExternal<QExternal, Qt2BC>(*lv, *this));
|
add(new GUIExternal<QExternal, Qt2BC>(*lv, *this));
|
||||||
add(new GUIGraphics<QGraphics, Qt2BC>(*lv, *this));
|
add(new GUIGraphics<QGraphics, Qt2BC>(*lv, *this));
|
||||||
add(new GUIInclude<QInclude, Qt2BC>(*lv, *this));
|
add(new GUIInclude<QInclude, Qt2BC>(*lv, *this));
|
||||||
add(new GUIIndex<QIndex, Qt2BC>(*lv, *this));
|
add(new GUIIndex<QIndex, Qt2BC>(*lv, *this));
|
||||||
add(new GUILog<QLog, Qt2BC>(*lv, *this));
|
add(new GUILog<QLog, Qt2BC>(*lv, *this));
|
||||||
|
add(new GUIMinipage<QMinipage, Qt2BC>(*lv, *this));
|
||||||
add(new GUIRef<QRef, Qt2BC>(*lv, *this));
|
add(new GUIRef<QRef, Qt2BC>(*lv, *this));
|
||||||
add(new GUITabularCreate<QTabularCreate, Qt2BC>(*lv, *this));
|
add(new GUITabularCreate<QTabularCreate, Qt2BC>(*lv, *this));
|
||||||
add(new GUIThesaurus<QThesaurus, Qt2BC>(*lv, *this));
|
add(new GUIThesaurus<QThesaurus, Qt2BC>(*lv, *this));
|
||||||
add(new GUIUrl<QURL, Qt2BC>(*lv, *this));
|
add(new GUIUrl<QURL, Qt2BC>(*lv, *this));
|
||||||
add(new GUIVCLog<QVCLog, Qt2BC>(*lv, *this));
|
add(new GUIVCLog<QVCLog, Qt2BC>(*lv, *this));
|
||||||
|
|
||||||
|
@ -27,7 +27,6 @@ libqt2_la_OBJADD = \
|
|||||||
../xforms/FormDocument.lo \
|
../xforms/FormDocument.lo \
|
||||||
../xforms/FormIndex.lo \
|
../xforms/FormIndex.lo \
|
||||||
../xforms/FormInset.lo \
|
../xforms/FormInset.lo \
|
||||||
../xforms/FormMinipage.lo \
|
|
||||||
../xforms/FormPreamble.lo \
|
../xforms/FormPreamble.lo \
|
||||||
../xforms/FormPreferences.lo \
|
../xforms/FormPreferences.lo \
|
||||||
../xforms/FormRef.lo \
|
../xforms/FormRef.lo \
|
||||||
@ -77,4 +76,6 @@ libqt2_la_SOURCES = \
|
|||||||
Qt2BC.C \
|
Qt2BC.C \
|
||||||
Qt2BC.h \
|
Qt2BC.h \
|
||||||
emptytable.C \
|
emptytable.C \
|
||||||
emptytable.h
|
emptytable.h \
|
||||||
|
lengthcombo.C \
|
||||||
|
lengthcombo.h
|
||||||
|
@ -14,6 +14,7 @@ DIALOGS = \
|
|||||||
QInclude \
|
QInclude \
|
||||||
QIndex \
|
QIndex \
|
||||||
QLog \
|
QLog \
|
||||||
|
QMinipage \
|
||||||
QParagraph \
|
QParagraph \
|
||||||
QPrint \
|
QPrint \
|
||||||
QRef \
|
QRef \
|
||||||
@ -52,6 +53,8 @@ DIALOGSOURCES = \
|
|||||||
QIndex.C QIndexDialog.C \
|
QIndex.C QIndexDialog.C \
|
||||||
QLog.h QLogDialog.h \
|
QLog.h QLogDialog.h \
|
||||||
QLog.C QLogDialog.C \
|
QLog.C QLogDialog.C \
|
||||||
|
QMinipage.h QMinipageDialog.h \
|
||||||
|
QMinipage.C QMinipageDialog.C \
|
||||||
QParagraph.h QParagraphDialog.h \
|
QParagraph.h QParagraphDialog.h \
|
||||||
QParagraph.C QParagraphDialog.C \
|
QParagraph.C QParagraphDialog.C \
|
||||||
QPrint.h QPrintDialog.h \
|
QPrint.h QPrintDialog.h \
|
||||||
@ -87,6 +90,7 @@ MOCDIALOGS = \
|
|||||||
QIncludeDialog_moc.C \
|
QIncludeDialog_moc.C \
|
||||||
QIndexDialog_moc.C \
|
QIndexDialog_moc.C \
|
||||||
QLogDialog_moc.C \
|
QLogDialog_moc.C \
|
||||||
|
QMinipageDialog_moc.C \
|
||||||
QParagraphDialog_moc.C \
|
QParagraphDialog_moc.C \
|
||||||
QPrintDialog_moc.C \
|
QPrintDialog_moc.C \
|
||||||
QRefDialog_moc.C \
|
QRefDialog_moc.C \
|
||||||
@ -125,6 +129,8 @@ UIDIALOGS = \
|
|||||||
QIndexDialogBase.C \
|
QIndexDialogBase.C \
|
||||||
QLogDialogBase.h \
|
QLogDialogBase.h \
|
||||||
QLogDialogBase.C \
|
QLogDialogBase.C \
|
||||||
|
QMinipageDialogBase.h \
|
||||||
|
QMinipageDialogBase.C \
|
||||||
QParagraphDialogBase.h \
|
QParagraphDialogBase.h \
|
||||||
QParagraphDialogBase.C \
|
QParagraphDialogBase.C \
|
||||||
QPrintDialogBase.h \
|
QPrintDialogBase.h \
|
||||||
@ -158,6 +164,7 @@ UIMOCDIALOGS = \
|
|||||||
QIncludeDialogBase_moc.C \
|
QIncludeDialogBase_moc.C \
|
||||||
QIndexDialogBase_moc.C \
|
QIndexDialogBase_moc.C \
|
||||||
QLogDialogBase_moc.C \
|
QLogDialogBase_moc.C \
|
||||||
|
QMinipageDialogBase_moc.C \
|
||||||
QParagraphDialogBase_moc.C \
|
QParagraphDialogBase_moc.C \
|
||||||
QPrintDialogBase_moc.C \
|
QPrintDialogBase_moc.C \
|
||||||
QRefDialogBase_moc.C \
|
QRefDialogBase_moc.C \
|
||||||
|
101
src/frontends/qt2/QMinipage.C
Normal file
101
src/frontends/qt2/QMinipage.C
Normal file
@ -0,0 +1,101 @@
|
|||||||
|
/**
|
||||||
|
* \file QMinipage.C
|
||||||
|
* Copyright 2001 the LyX Team
|
||||||
|
* Read the file COPYING
|
||||||
|
*
|
||||||
|
* \author John Levon <moz@compsoc.man.ac.uk>
|
||||||
|
*/
|
||||||
|
|
||||||
|
#include <config.h>
|
||||||
|
|
||||||
|
#ifdef __GNUG__
|
||||||
|
#pragma implementation
|
||||||
|
#endif
|
||||||
|
|
||||||
|
#include <qpushbutton.h>
|
||||||
|
#include <qradiobutton.h>
|
||||||
|
#include <qlineedit.h>
|
||||||
|
#include "lengthcombo.h"
|
||||||
|
|
||||||
|
#include "QMinipageDialog.h"
|
||||||
|
#include "QMinipage.h"
|
||||||
|
#include "Qt2BC.h"
|
||||||
|
#include "gettext.h"
|
||||||
|
#include "support/lstrings.h"
|
||||||
|
|
||||||
|
#include "QtLyXView.h"
|
||||||
|
#include "ControlMinipage.h"
|
||||||
|
|
||||||
|
typedef Qt2CB<ControlMinipage, Qt2DB<QMinipageDialog> > base_class;
|
||||||
|
|
||||||
|
QMinipage::QMinipage(ControlMinipage & c)
|
||||||
|
: base_class(c, _("Minipage"))
|
||||||
|
{
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
void QMinipage::build_dialog()
|
||||||
|
{
|
||||||
|
dialog_.reset(new QMinipageDialog(this));
|
||||||
|
|
||||||
|
bc().setRestore(dialog_->restorePB);
|
||||||
|
bc().setOK(dialog_->okPB);
|
||||||
|
bc().setApply(dialog_->applyPB);
|
||||||
|
bc().setCancel(dialog_->closePB);
|
||||||
|
|
||||||
|
bc().addReadOnly(dialog_->widthED);
|
||||||
|
bc().addReadOnly(dialog_->unitsLC);
|
||||||
|
bc().addReadOnly(dialog_->topRB);
|
||||||
|
bc().addReadOnly(dialog_->bottomRB);
|
||||||
|
bc().addReadOnly(dialog_->middleRB);
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
void QMinipage::apply()
|
||||||
|
{
|
||||||
|
double value = strToDbl(dialog_->widthED->text().latin1());
|
||||||
|
LyXLength::UNIT unit = dialog_->unitsLC->currentLengthItem();
|
||||||
|
if (string(dialog_->widthED->text().latin1()).empty())
|
||||||
|
unit = LyXLength::UNIT_NONE;
|
||||||
|
|
||||||
|
LyXLength len(value, unit);
|
||||||
|
|
||||||
|
controller().params().width = len.asString();
|
||||||
|
|
||||||
|
if (dialog_->topRB->isChecked())
|
||||||
|
controller().params().pos = InsetMinipage::top;
|
||||||
|
else if (dialog_->middleRB->isChecked())
|
||||||
|
controller().params().pos = InsetMinipage::center;
|
||||||
|
else
|
||||||
|
controller().params().pos = InsetMinipage::bottom;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
namespace {
|
||||||
|
string const numtostr(double val) {
|
||||||
|
string a(tostr(val));
|
||||||
|
if (a == "0")
|
||||||
|
a = "";
|
||||||
|
return a;
|
||||||
|
}
|
||||||
|
} // namespace anon
|
||||||
|
|
||||||
|
|
||||||
|
void QMinipage::update_contents()
|
||||||
|
{
|
||||||
|
LyXLength len(controller().params().width.c_str());
|
||||||
|
dialog_->widthED->setText(numtostr(len.value()).c_str());
|
||||||
|
dialog_->unitsLC->setCurrentItem(len.unit());
|
||||||
|
|
||||||
|
QRadioButton * button = dialog_->topRB;
|
||||||
|
|
||||||
|
switch (controller().params().pos) {
|
||||||
|
case InsetMinipage::center:
|
||||||
|
button = dialog_->middleRB;
|
||||||
|
break;
|
||||||
|
case InsetMinipage::bottom:
|
||||||
|
button = dialog_->bottomRB;
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
button->setChecked(true);
|
||||||
|
}
|
41
src/frontends/qt2/QMinipage.h
Normal file
41
src/frontends/qt2/QMinipage.h
Normal file
@ -0,0 +1,41 @@
|
|||||||
|
// -*- C++ -*-
|
||||||
|
/**
|
||||||
|
* \file QMinipage.h
|
||||||
|
* Copyright 2001 the LyX Team
|
||||||
|
* Read the file COPYING
|
||||||
|
*
|
||||||
|
* \author John Levon <moz@compsoc.man.ac.uk>
|
||||||
|
*/
|
||||||
|
|
||||||
|
#ifndef QMINIPAGE_H
|
||||||
|
#define QMINIPAGE_H
|
||||||
|
|
||||||
|
#ifdef __GNUG__
|
||||||
|
#pragma interface
|
||||||
|
#endif
|
||||||
|
|
||||||
|
#include "Qt2Base.h"
|
||||||
|
|
||||||
|
class ControlMinipage;
|
||||||
|
class QMinipageDialog;
|
||||||
|
|
||||||
|
///
|
||||||
|
class QMinipage
|
||||||
|
: public Qt2CB<ControlMinipage, Qt2DB<QMinipageDialog> >
|
||||||
|
{
|
||||||
|
public:
|
||||||
|
///
|
||||||
|
friend class QMinipageDialog;
|
||||||
|
///
|
||||||
|
QMinipage(ControlMinipage &);
|
||||||
|
|
||||||
|
private:
|
||||||
|
/// Apply changes
|
||||||
|
virtual void apply();
|
||||||
|
/// update
|
||||||
|
virtual void update_contents();
|
||||||
|
/// build the dialog
|
||||||
|
virtual void build_dialog();
|
||||||
|
};
|
||||||
|
|
||||||
|
#endif // QMINIPAGE_H
|
48
src/frontends/qt2/QMinipageDialog.C
Normal file
48
src/frontends/qt2/QMinipageDialog.C
Normal file
@ -0,0 +1,48 @@
|
|||||||
|
/**
|
||||||
|
* \file QMinipageDialog.C
|
||||||
|
* Copyright 2001 the LyX Team
|
||||||
|
* Read the file COPYING
|
||||||
|
*
|
||||||
|
* \author John Levon <moz@compsoc.man.ac.uk>
|
||||||
|
*/
|
||||||
|
|
||||||
|
#include <config.h>
|
||||||
|
#include <vector>
|
||||||
|
|
||||||
|
#include <qpushbutton.h>
|
||||||
|
#include <qtextview.h>
|
||||||
|
#include "lengthcombo.h"
|
||||||
|
|
||||||
|
#include "QMinipageDialog.h"
|
||||||
|
#include "Dialogs.h"
|
||||||
|
#include "QMinipage.h"
|
||||||
|
|
||||||
|
#include "QtLyXView.h"
|
||||||
|
#include "ControlMinipage.h"
|
||||||
|
|
||||||
|
QMinipageDialog::QMinipageDialog(QMinipage * form)
|
||||||
|
: QMinipageDialogBase(0, 0, false, 0),
|
||||||
|
form_(form)
|
||||||
|
{
|
||||||
|
connect(restorePB, SIGNAL(clicked()),
|
||||||
|
form, SLOT(slotRestore()));
|
||||||
|
connect(okPB, SIGNAL(clicked()),
|
||||||
|
form, SLOT(slotOK()));
|
||||||
|
connect(applyPB, SIGNAL(clicked()),
|
||||||
|
form, SLOT(slotApply()));
|
||||||
|
connect(closePB, SIGNAL(clicked()),
|
||||||
|
form, SLOT(slotClose()));
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
void QMinipageDialog::closeEvent(QCloseEvent * e)
|
||||||
|
{
|
||||||
|
form_->slotWMHide();
|
||||||
|
e->accept();
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
void QMinipageDialog::change_adaptor()
|
||||||
|
{
|
||||||
|
form_->changed();
|
||||||
|
}
|
34
src/frontends/qt2/QMinipageDialog.h
Normal file
34
src/frontends/qt2/QMinipageDialog.h
Normal file
@ -0,0 +1,34 @@
|
|||||||
|
/**
|
||||||
|
* \file QMinipageDialog.h
|
||||||
|
* Copyright 2001 the LyX Team
|
||||||
|
* Read the file COPYING
|
||||||
|
*
|
||||||
|
* \author John Levon <moz@compsoc.man.ac.uk>
|
||||||
|
*/
|
||||||
|
|
||||||
|
#ifndef QMINIPAGEDIALOG_H
|
||||||
|
#define QMINIPAGEDIALOG_H
|
||||||
|
|
||||||
|
#include <config.h>
|
||||||
|
|
||||||
|
#include "ui/QMinipageDialogBase.h"
|
||||||
|
|
||||||
|
class QMinipage;
|
||||||
|
|
||||||
|
class QMinipageDialog : public QMinipageDialogBase
|
||||||
|
{ Q_OBJECT
|
||||||
|
|
||||||
|
public:
|
||||||
|
QMinipageDialog(QMinipage * form);
|
||||||
|
|
||||||
|
protected slots:
|
||||||
|
virtual void change_adaptor();
|
||||||
|
|
||||||
|
protected:
|
||||||
|
virtual void closeEvent(QCloseEvent * e);
|
||||||
|
|
||||||
|
private:
|
||||||
|
QMinipage * form_;
|
||||||
|
};
|
||||||
|
|
||||||
|
#endif // QMINIPAGEDIALOG_H
|
98
src/frontends/qt2/lengthcombo.C
Normal file
98
src/frontends/qt2/lengthcombo.C
Normal file
@ -0,0 +1,98 @@
|
|||||||
|
/**
|
||||||
|
* \file lengthcombo.C
|
||||||
|
* Copyright 2001 the LyX Team
|
||||||
|
* Read the file COPYING
|
||||||
|
*
|
||||||
|
* \author John Levon
|
||||||
|
*/
|
||||||
|
|
||||||
|
#include <config.h>
|
||||||
|
#include "gettext.h"
|
||||||
|
|
||||||
|
#include "lengthcombo.h"
|
||||||
|
|
||||||
|
#include <qwhatsthis.h>
|
||||||
|
|
||||||
|
LengthCombo::LengthCombo(QWidget * parent, char * name)
|
||||||
|
: QComboBox(parent, name)
|
||||||
|
{
|
||||||
|
insertItem(_("Centimetres"));
|
||||||
|
insertItem(_("Inches"));
|
||||||
|
insertItem(_("Points"));
|
||||||
|
insertItem(_("Millimetres"));
|
||||||
|
insertItem(_("Picas"));
|
||||||
|
insertItem(_("ex units"));
|
||||||
|
insertItem(_("em units"));
|
||||||
|
insertItem(_("Scaled points"));
|
||||||
|
insertItem(_("Big/PS points"));
|
||||||
|
insertItem(_("Didot points"));
|
||||||
|
insertItem(_("Cicero points"));
|
||||||
|
insertItem(_("Mathematical units"));
|
||||||
|
insertItem(_("Percent of page"));
|
||||||
|
insertItem(_("Percent of column"));
|
||||||
|
insertItem(_("Percent of line width"));
|
||||||
|
|
||||||
|
connect(this, SIGNAL(activated(int)),
|
||||||
|
this, SLOT(has_activated(int)));
|
||||||
|
|
||||||
|
QWhatsThis::add(this, _("FIXME - describe the units."));
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
LyXLength::UNIT LengthCombo::currentLengthItem() const
|
||||||
|
{
|
||||||
|
LyXLength::UNIT unit;
|
||||||
|
int i = currentItem();
|
||||||
|
switch (i) {
|
||||||
|
default:
|
||||||
|
case 0: unit = LyXLength::CM; break;
|
||||||
|
case 1: unit = LyXLength::IN; break;
|
||||||
|
case 2: unit = LyXLength::PT; break;
|
||||||
|
case 3: unit = LyXLength::MM; break;
|
||||||
|
case 4: unit = LyXLength::PC; break;
|
||||||
|
case 5: unit = LyXLength::EX; break;
|
||||||
|
case 6: unit = LyXLength::EM; break;
|
||||||
|
case 7: unit = LyXLength::SP; break;
|
||||||
|
case 8: unit = LyXLength::BP; break;
|
||||||
|
case 9: unit = LyXLength::DD; break;
|
||||||
|
case 10: unit = LyXLength::CC; break;
|
||||||
|
case 11: unit = LyXLength::MU; break;
|
||||||
|
case 12: unit = LyXLength::PP; break;
|
||||||
|
case 13: unit = LyXLength::PW; break;
|
||||||
|
case 14: unit = LyXLength::PL; break;
|
||||||
|
// FIXME: LyXLength::PE ?
|
||||||
|
};
|
||||||
|
return unit;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
void LengthCombo::has_activated(int)
|
||||||
|
{
|
||||||
|
emit selectionChanged(currentLengthItem());
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
void LengthCombo::setCurrentItem(LyXLength::UNIT unit)
|
||||||
|
{
|
||||||
|
int i;
|
||||||
|
switch (unit) {
|
||||||
|
default:
|
||||||
|
case LyXLength::CM: i = 0; break;
|
||||||
|
case LyXLength::IN: i = 1; break;
|
||||||
|
case LyXLength::PT: i = 2; break;
|
||||||
|
case LyXLength::MM: i = 3; break;
|
||||||
|
case LyXLength::PC: i = 4; break;
|
||||||
|
case LyXLength::EX: i = 5; break;
|
||||||
|
case LyXLength::EM: i = 6; break;
|
||||||
|
case LyXLength::SP: i = 7; break;
|
||||||
|
case LyXLength::BP: i = 8; break;
|
||||||
|
case LyXLength::DD: i = 9; break;
|
||||||
|
case LyXLength::CC: i = 10; break;
|
||||||
|
case LyXLength::MU: i = 11; break;
|
||||||
|
case LyXLength::PP: i = 12; break;
|
||||||
|
case LyXLength::PW: i = 13; break;
|
||||||
|
case LyXLength::PL: i = 14; break;
|
||||||
|
// FIXME: LyXLength::PE ?
|
||||||
|
}
|
||||||
|
QComboBox::setCurrentItem(i);
|
||||||
|
}
|
41
src/frontends/qt2/lengthcombo.h
Normal file
41
src/frontends/qt2/lengthcombo.h
Normal file
@ -0,0 +1,41 @@
|
|||||||
|
/**
|
||||||
|
* \file lengthcombo.h
|
||||||
|
* Copyright 2001 the LyX Team
|
||||||
|
* Read the file COPYING
|
||||||
|
*
|
||||||
|
* \author John Levon
|
||||||
|
*/
|
||||||
|
|
||||||
|
#ifndef LENGTHCOMBO_H
|
||||||
|
#define LENGTHCOMBO_H
|
||||||
|
|
||||||
|
#include <config.h>
|
||||||
|
|
||||||
|
#include <qcombobox.h>
|
||||||
|
|
||||||
|
#include "vspace.h"
|
||||||
|
|
||||||
|
/**
|
||||||
|
* A combo box for selecting LyXLength::UNIT types.
|
||||||
|
*/
|
||||||
|
class LengthCombo : public QComboBox {
|
||||||
|
Q_OBJECT
|
||||||
|
public:
|
||||||
|
LengthCombo(QWidget * parent, char * name);
|
||||||
|
|
||||||
|
/// set the current item
|
||||||
|
virtual void setCurrentItem(LyXLength::UNIT unit);
|
||||||
|
|
||||||
|
/// get the current item
|
||||||
|
LyXLength::UNIT currentLengthItem() const;
|
||||||
|
|
||||||
|
protected slots:
|
||||||
|
virtual void has_activated(int index);
|
||||||
|
|
||||||
|
signals:
|
||||||
|
/// the current selection has changed
|
||||||
|
void selectionChanged(LyXLength::UNIT unit);
|
||||||
|
|
||||||
|
};
|
||||||
|
|
||||||
|
#endif
|
@ -14,6 +14,7 @@ include ../Makefile.dialogs
|
|||||||
|
|
||||||
libqt2moc_la_SOURCES := FileDialog_private_moc.C \
|
libqt2moc_la_SOURCES := FileDialog_private_moc.C \
|
||||||
emptytable_moc.C \
|
emptytable_moc.C \
|
||||||
|
lengthcombo_moc.C \
|
||||||
Qt2Base_moc.C \
|
Qt2Base_moc.C \
|
||||||
$(MOCDIALOGS)
|
$(MOCDIALOGS)
|
||||||
|
|
||||||
|
543
src/frontends/qt2/ui/QMinipageDialog.ui
Normal file
543
src/frontends/qt2/ui/QMinipageDialog.ui
Normal file
@ -0,0 +1,543 @@
|
|||||||
|
<!DOCTYPE UI><UI>
|
||||||
|
<class>QMinipageDialogBase</class>
|
||||||
|
<include location="global">config.h</include>
|
||||||
|
<include location="local">gettext.h</include>
|
||||||
|
<include location="local">vspace.h</include>
|
||||||
|
<widget>
|
||||||
|
<class>QDialog</class>
|
||||||
|
<property stdset="1">
|
||||||
|
<name>name</name>
|
||||||
|
<cstring>QMinipageDialogBase</cstring>
|
||||||
|
</property>
|
||||||
|
<property stdset="1">
|
||||||
|
<name>geometry</name>
|
||||||
|
<rect>
|
||||||
|
<x>0</x>
|
||||||
|
<y>0</y>
|
||||||
|
<width>412</width>
|
||||||
|
<height>328</height>
|
||||||
|
</rect>
|
||||||
|
</property>
|
||||||
|
<property stdset="1">
|
||||||
|
<name>caption</name>
|
||||||
|
<string>Minipage settings</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>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>QButtonGroup</class>
|
||||||
|
<property stdset="1">
|
||||||
|
<name>name</name>
|
||||||
|
<cstring>alignmentBG</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>title</name>
|
||||||
|
<string>&Vertical alignment</string>
|
||||||
|
</property>
|
||||||
|
<property>
|
||||||
|
<name>toolTip</name>
|
||||||
|
<string>Alignment of minipage</string>
|
||||||
|
</property>
|
||||||
|
<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>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>QRadioButton</class>
|
||||||
|
<property stdset="1">
|
||||||
|
<name>name</name>
|
||||||
|
<cstring>topRB</cstring>
|
||||||
|
</property>
|
||||||
|
<property stdset="1">
|
||||||
|
<name>text</name>
|
||||||
|
<string>&Top</string>
|
||||||
|
</property>
|
||||||
|
<property>
|
||||||
|
<name>toolTip</name>
|
||||||
|
<string>FIXME</string>
|
||||||
|
</property>
|
||||||
|
</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>QRadioButton</class>
|
||||||
|
<property stdset="1">
|
||||||
|
<name>name</name>
|
||||||
|
<cstring>middleRB</cstring>
|
||||||
|
</property>
|
||||||
|
<property stdset="1">
|
||||||
|
<name>text</name>
|
||||||
|
<string>&Middle</string>
|
||||||
|
</property>
|
||||||
|
<property>
|
||||||
|
<name>toolTip</name>
|
||||||
|
<string>FIXME</string>
|
||||||
|
</property>
|
||||||
|
</widget>
|
||||||
|
<spacer>
|
||||||
|
<property>
|
||||||
|
<name>name</name>
|
||||||
|
<cstring>Spacer3_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>
|
||||||
|
<widget>
|
||||||
|
<class>QRadioButton</class>
|
||||||
|
<property stdset="1">
|
||||||
|
<name>name</name>
|
||||||
|
<cstring>bottomRB</cstring>
|
||||||
|
</property>
|
||||||
|
<property stdset="1">
|
||||||
|
<name>text</name>
|
||||||
|
<string>&Bottom</string>
|
||||||
|
</property>
|
||||||
|
<property>
|
||||||
|
<name>toolTip</name>
|
||||||
|
<string>FIXME</string>
|
||||||
|
</property>
|
||||||
|
</widget>
|
||||||
|
<spacer>
|
||||||
|
<property>
|
||||||
|
<name>name</name>
|
||||||
|
<cstring>Spacer4</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>Layout5</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>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>QLabel</class>
|
||||||
|
<property stdset="1">
|
||||||
|
<name>name</name>
|
||||||
|
<cstring>widthLA</cstring>
|
||||||
|
</property>
|
||||||
|
<property stdset="1">
|
||||||
|
<name>text</name>
|
||||||
|
<string>&Width</string>
|
||||||
|
</property>
|
||||||
|
<property>
|
||||||
|
<name>buddy</name>
|
||||||
|
<cstring>widthED</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>
|
||||||
|
</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>QLineEdit</class>
|
||||||
|
<property stdset="1">
|
||||||
|
<name>name</name>
|
||||||
|
<cstring>widthED</cstring>
|
||||||
|
</property>
|
||||||
|
<property>
|
||||||
|
<name>toolTip</name>
|
||||||
|
<string>Width value</string>
|
||||||
|
</property>
|
||||||
|
</widget>
|
||||||
|
<widget>
|
||||||
|
<class>LengthCombo</class>
|
||||||
|
<property stdset="1">
|
||||||
|
<name>name</name>
|
||||||
|
<cstring>unitsLC</cstring>
|
||||||
|
</property>
|
||||||
|
<property stdset="1">
|
||||||
|
<name>sizePolicy</name>
|
||||||
|
<sizepolicy>
|
||||||
|
<hsizetype>5</hsizetype>
|
||||||
|
<vsizetype>1</vsizetype>
|
||||||
|
</sizepolicy>
|
||||||
|
</property>
|
||||||
|
<property stdset="1">
|
||||||
|
<name>minimumSize</name>
|
||||||
|
<size>
|
||||||
|
<width>40</width>
|
||||||
|
<height>20</height>
|
||||||
|
</size>
|
||||||
|
</property>
|
||||||
|
<property stdset="1">
|
||||||
|
<name>focusPolicy</name>
|
||||||
|
<enum>StrongFocus</enum>
|
||||||
|
</property>
|
||||||
|
<property>
|
||||||
|
<name>toolTip</name>
|
||||||
|
<string>Units of width value</string>
|
||||||
|
</property>
|
||||||
|
</widget>
|
||||||
|
</hbox>
|
||||||
|
</widget>
|
||||||
|
<spacer>
|
||||||
|
<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>
|
||||||
|
</vbox>
|
||||||
|
</widget>
|
||||||
|
</hbox>
|
||||||
|
</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>
|
||||||
|
<widget>
|
||||||
|
<class>QPushButton</class>
|
||||||
|
<property stdset="1">
|
||||||
|
<name>name</name>
|
||||||
|
<cstring>restorePB</cstring>
|
||||||
|
</property>
|
||||||
|
<property stdset="1">
|
||||||
|
<name>text</name>
|
||||||
|
<string>&Restore</string>
|
||||||
|
</property>
|
||||||
|
<property stdset="1">
|
||||||
|
<name>default</name>
|
||||||
|
<bool>true</bool>
|
||||||
|
</property>
|
||||||
|
<property>
|
||||||
|
<name>toolTip</name>
|
||||||
|
<string></string>
|
||||||
|
</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>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>
|
||||||
|
<property>
|
||||||
|
<name>toolTip</name>
|
||||||
|
<string></string>
|
||||||
|
</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>
|
||||||
|
<property stdset="1">
|
||||||
|
<name>default</name>
|
||||||
|
<bool>true</bool>
|
||||||
|
</property>
|
||||||
|
<property>
|
||||||
|
<name>toolTip</name>
|
||||||
|
<string></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>
|
||||||
|
</widget>
|
||||||
|
</hbox>
|
||||||
|
</widget>
|
||||||
|
</vbox>
|
||||||
|
</widget>
|
||||||
|
<customwidgets>
|
||||||
|
<customwidget>
|
||||||
|
<class>LengthCombo</class>
|
||||||
|
<header location="local">lengthcombo.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>selectionChanged(LyXLength::UNIT)</signal>
|
||||||
|
</customwidget>
|
||||||
|
</customwidgets>
|
||||||
|
<images>
|
||||||
|
<image>
|
||||||
|
<name>image0</name>
|
||||||
|
<data format="XPM.GZ" length="646">789c6dd2c10ac2300c00d07bbf2234b7229d1be245fc04c5a3201e4615f430059d0711ff5ddb2e6bb236ec90eed134cb5a19d8ef36602af5ecdbfeeac05dda0798d3abebde87e3faa374d3807fa0d633a52d38d8de6f679fe33fc776e196f53cd010188256a3600a292882096246517815ca99884606e18044a3a40d91824820924265a7923a2e8bcd05f33db1173e002913175f2a6be6d3294871a2d95fa00e8a94ee017b69d339d90df1e77c57ea072ede6758</data>
|
||||||
|
</image>
|
||||||
|
</images>
|
||||||
|
<connections>
|
||||||
|
<connection>
|
||||||
|
<sender>applyPB</sender>
|
||||||
|
<signal>clicked()</signal>
|
||||||
|
<receiver>QMinipageDialogBase</receiver>
|
||||||
|
<slot>updateClicked()</slot>
|
||||||
|
</connection>
|
||||||
|
<connection>
|
||||||
|
<sender>topRB</sender>
|
||||||
|
<signal>toggled(bool)</signal>
|
||||||
|
<receiver>QMinipageDialogBase</receiver>
|
||||||
|
<slot>change_adaptor()</slot>
|
||||||
|
</connection>
|
||||||
|
<connection>
|
||||||
|
<sender>middleRB</sender>
|
||||||
|
<signal>toggled(bool)</signal>
|
||||||
|
<receiver>QMinipageDialogBase</receiver>
|
||||||
|
<slot>change_adaptor()</slot>
|
||||||
|
</connection>
|
||||||
|
<connection>
|
||||||
|
<sender>bottomRB</sender>
|
||||||
|
<signal>clicked()</signal>
|
||||||
|
<receiver>QMinipageDialogBase</receiver>
|
||||||
|
<slot>change_adaptor()</slot>
|
||||||
|
</connection>
|
||||||
|
<connection>
|
||||||
|
<sender>widthED</sender>
|
||||||
|
<signal>textChanged(const QString&)</signal>
|
||||||
|
<receiver>QMinipageDialogBase</receiver>
|
||||||
|
<slot>change_adaptor()</slot>
|
||||||
|
</connection>
|
||||||
|
<connection>
|
||||||
|
<sender>unitsLC</sender>
|
||||||
|
<signal>selectionChanged(LyXLength::UNIT)</signal>
|
||||||
|
<receiver>QMinipageDialogBase</receiver>
|
||||||
|
<slot>change_adaptor()</slot>
|
||||||
|
</connection>
|
||||||
|
<slot access="public">change_adaptor()</slot>
|
||||||
|
<slot access="public">updateClicked()</slot>
|
||||||
|
</connections>
|
||||||
|
<tabstops>
|
||||||
|
<tabstop>topRB</tabstop>
|
||||||
|
<tabstop>middleRB</tabstop>
|
||||||
|
<tabstop>bottomRB</tabstop>
|
||||||
|
<tabstop>widthED</tabstop>
|
||||||
|
<tabstop>unitsLC</tabstop>
|
||||||
|
<tabstop>restorePB</tabstop>
|
||||||
|
<tabstop>okPB</tabstop>
|
||||||
|
<tabstop>applyPB</tabstop>
|
||||||
|
<tabstop>closePB</tabstop>
|
||||||
|
</tabstops>
|
||||||
|
</UI>
|
Loading…
Reference in New Issue
Block a user