mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-11-22 18:08:10 +00:00
Brand new qt document dialog. Not finished yet though. TODO is updated and lists
what is left to do... git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@5370 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
parent
935dc56733
commit
3995f53261
@ -1,3 +1,9 @@
|
||||
2002-10-09 Edwin Leuven <leuven@fee.uva.nl>
|
||||
|
||||
* ControlDocument.h:
|
||||
* ControlDocument.C:
|
||||
* Makefile.am: New document parameters controller
|
||||
|
||||
2002-09-24 Lars Gullik Bjønnes <larsbj@gullik.net>
|
||||
|
||||
* Makefile.am (INCLUDES): loose SIGC_INCLUDES
|
||||
|
160
src/frontends/controllers/ControlDocument.C
Normal file
160
src/frontends/controllers/ControlDocument.C
Normal file
@ -0,0 +1,160 @@
|
||||
// -*- C++ -*-
|
||||
/**
|
||||
* \file ControlDocument.C
|
||||
* This file is part of LyX, the document processor.
|
||||
* Licence details can be found in the file COPYING.
|
||||
*
|
||||
* \author Edwin Leuven
|
||||
*
|
||||
* Full author contact details are available in file CREDITS
|
||||
*/
|
||||
|
||||
#include <config.h>
|
||||
|
||||
#ifdef __GNUG__
|
||||
#pragma implementation
|
||||
#endif
|
||||
|
||||
#include "BufferView.h"
|
||||
#include "ControlDocument.h"
|
||||
#include "ViewBase.h"
|
||||
|
||||
#include "gettext.h"
|
||||
#include "lyxfind.h"
|
||||
|
||||
#include "buffer.h"
|
||||
#include "language.h"
|
||||
#include "lyx_main.h"
|
||||
#include "lyxtextclass.h"
|
||||
#include "lyxtextclasslist.h"
|
||||
#include "CutAndPaste.h"
|
||||
|
||||
#include "frontends/Liason.h"
|
||||
#include "frontends/LyXView.h"
|
||||
#include "frontends/Alert.h"
|
||||
|
||||
#include "support/lstrings.h"
|
||||
#include "support/filetools.h"
|
||||
|
||||
using Liason::setMinibuffer;
|
||||
|
||||
|
||||
ControlDocument::ControlDocument(LyXView & lv, Dialogs & d)
|
||||
: ControlDialogBD(lv, d), bp_(0)
|
||||
{
|
||||
}
|
||||
|
||||
ControlDocument::~ControlDocument()
|
||||
{}
|
||||
|
||||
|
||||
void ControlDocument::showPreamble()
|
||||
{
|
||||
}
|
||||
|
||||
BufferParams & ControlDocument::params()
|
||||
{
|
||||
lyx::Assert(bp_.get());
|
||||
return *bp_;
|
||||
}
|
||||
|
||||
LyXTextClass ControlDocument::textClass()
|
||||
{
|
||||
return textclasslist[bp_->textclass];
|
||||
}
|
||||
|
||||
|
||||
void ControlDocument::apply()
|
||||
{
|
||||
if (!bufferIsAvailable())
|
||||
return;
|
||||
|
||||
setLanguage();
|
||||
bool succes = classApply();
|
||||
lv_.view()->redoCurrentBuffer();
|
||||
|
||||
view().apply();
|
||||
buffer()->params = *bp_;
|
||||
|
||||
buffer()->markDirty();
|
||||
|
||||
Liason::setMinibuffer(&lv_, _("Document Settings Applied"));
|
||||
}
|
||||
|
||||
|
||||
void ControlDocument::setParams()
|
||||
{
|
||||
if (!bp_.get())
|
||||
bp_.reset(new BufferParams());
|
||||
|
||||
/// Set the buffer parameters
|
||||
*bp_ = buffer()->params;
|
||||
}
|
||||
|
||||
void ControlDocument::setLanguage()
|
||||
{
|
||||
Language const * oldL = buffer()->params.language;
|
||||
Language const * newL = bp_->language;
|
||||
|
||||
if (oldL != newL
|
||||
&& oldL->RightToLeft() == newL->RightToLeft()
|
||||
&& !lv_.buffer()->isMultiLingual())
|
||||
lv_.buffer()->changeLanguage(oldL, newL);
|
||||
}
|
||||
|
||||
|
||||
bool ControlDocument::classApply()
|
||||
{
|
||||
BufferParams ¶ms = lv_.buffer()->params;
|
||||
unsigned int const old_class = bp_->textclass;
|
||||
// exit if nothing changes
|
||||
if (params.textclass == old_class)
|
||||
return true;
|
||||
|
||||
// try to load new_class
|
||||
if (!textclasslist[params.textclass].load()) {
|
||||
// problem changing class
|
||||
// -- warn user (to retain old style)
|
||||
Alert::alert(_("Conversion Errors!"),
|
||||
_("Errors loading new document class."),
|
||||
_("Reverting to original document class."));
|
||||
return false;
|
||||
}
|
||||
|
||||
// successfully loaded
|
||||
Liason::setMinibuffer(&lv_,
|
||||
_("Converting document to new document class..."));
|
||||
int ret = CutAndPaste::SwitchLayoutsBetweenClasses(
|
||||
old_class, params.textclass,
|
||||
&*(lv_.buffer()->paragraphs.begin()),
|
||||
lv_.buffer()->params);
|
||||
if (ret) {
|
||||
string s;
|
||||
if (ret == 1) {
|
||||
s = _("One paragraph couldn't be converted");
|
||||
} else {
|
||||
s += tostr(ret);
|
||||
s += _(" paragraphs couldn't be converted");
|
||||
}
|
||||
Alert::alert(_("Conversion Errors!"),s,
|
||||
_("into chosen document class"));
|
||||
}
|
||||
//lv_.view()->redoCurrentBuffer();
|
||||
return true;
|
||||
}
|
||||
|
||||
void ControlDocument::saveAsDefault()
|
||||
{
|
||||
lv_.buffer()->params.preamble = bp_->preamble;
|
||||
|
||||
string const fname = AddName(AddPath(user_lyxdir, "templates/"),
|
||||
"defaults.lyx");
|
||||
Buffer defaults(fname);
|
||||
defaults.params = params();
|
||||
|
||||
// add an empty paragraph. Is this enough?
|
||||
defaults.paragraphs.set(new Paragraph);
|
||||
|
||||
defaults.writeFile(defaults.fileName());
|
||||
|
||||
}
|
60
src/frontends/controllers/ControlDocument.h
Normal file
60
src/frontends/controllers/ControlDocument.h
Normal file
@ -0,0 +1,60 @@
|
||||
// -*- C++ -*-
|
||||
/**
|
||||
* \file ControlDocument.h
|
||||
* This file is part of LyX, the document processor.
|
||||
* Licence details can be found in the file COPYING.
|
||||
*
|
||||
* \author Edwin Leuven
|
||||
*
|
||||
* Full author contact details are available in file CREDITS
|
||||
*/
|
||||
|
||||
#ifndef CONTROLDOCUMENT_H
|
||||
#define CONTROLDOCUMENT_H
|
||||
|
||||
#ifdef __GNUG__
|
||||
#pragma interface
|
||||
#endif
|
||||
|
||||
#include <boost/scoped_ptr.hpp>
|
||||
#include "ControlDialog_impl.h"
|
||||
#include "LString.h"
|
||||
#include "bufferparams.h"
|
||||
|
||||
#include <vector>
|
||||
|
||||
class Language;
|
||||
|
||||
|
||||
/** A controller for Document dialogs.
|
||||
*/
|
||||
class ControlDocument : public ControlDialogBD {
|
||||
public:
|
||||
///
|
||||
ControlDocument(LyXView &, Dialogs &);
|
||||
~ControlDocument();
|
||||
/// show latex preamble
|
||||
void showPreamble();
|
||||
///
|
||||
void setLanguage();
|
||||
///
|
||||
LyXTextClass textClass();
|
||||
///
|
||||
BufferParams & params();
|
||||
///
|
||||
void saveAsDefault();
|
||||
///
|
||||
bool classApply();
|
||||
|
||||
private:
|
||||
/// apply settings
|
||||
void apply();
|
||||
/// set the params before show or update
|
||||
void setParams();
|
||||
///
|
||||
boost::scoped_ptr<BufferParams> bp_;
|
||||
};
|
||||
|
||||
#endif // CONTROLDOCUMENT_H
|
||||
|
||||
|
@ -42,6 +42,8 @@ libcontrollers_la_SOURCES= \
|
||||
ControlDialog.h \
|
||||
ControlDialog_impl.C \
|
||||
ControlDialog_impl.h \
|
||||
ControlDocument.C \
|
||||
ControlDocument.h \
|
||||
ControlError.C \
|
||||
ControlError.h \
|
||||
ControlERT.C \
|
||||
|
73
src/frontends/qt2/BulletsModule.C
Normal file
73
src/frontends/qt2/BulletsModule.C
Normal file
@ -0,0 +1,73 @@
|
||||
/**
|
||||
* \file QBulletsModule.C
|
||||
* This file is part of LyX, the document processor.
|
||||
* Licence details can be found in the file COPYING.
|
||||
*
|
||||
* \author Edwin Leuven
|
||||
*
|
||||
* Full author contact details are available in file CREDITS
|
||||
*/
|
||||
|
||||
#include <config.h>
|
||||
#include "gettext.h"
|
||||
|
||||
#ifdef __GNUG__
|
||||
#pragma implementation
|
||||
#endif
|
||||
|
||||
#include <qpopupmenu.h>
|
||||
#include <qpixmap.h>
|
||||
#include <qtoolbutton.h>
|
||||
#include "BulletsModule.h"
|
||||
#include "ui/BulletsModuleBase.h"
|
||||
#include "QBrowseBox.h"
|
||||
|
||||
BulletsModule::BulletsModule( QWidget* parent, const char* name, WFlags fl )
|
||||
: BulletsModuleBase(parent, name, fl)
|
||||
{
|
||||
standard = new QBrowseBox(6,6);
|
||||
standard->insertItem(QPixmap("standard.xpm"));
|
||||
|
||||
maths = new QBrowseBox(6,6);
|
||||
maths->insertItem(QPixmap("amssymb.xpm"));
|
||||
|
||||
QPopupMenu * pm = new QPopupMenu();
|
||||
|
||||
QPopupMenu * pm1 = new QPopupMenu(pm);
|
||||
pm1->insertItem(standard);
|
||||
|
||||
QPopupMenu * pm2 = new QPopupMenu(pm);
|
||||
pm2->insertItem(maths);
|
||||
|
||||
|
||||
pm->insertItem("Standard",pm1);
|
||||
pm->insertItem("Maths",pm2);
|
||||
pm->insertItem("Ding 1");
|
||||
pm->insertItem("Ding 2");
|
||||
pm->insertItem("Ding 3");
|
||||
pm->insertItem("Ding 4");
|
||||
|
||||
setbullet1TB->setPopup(pm);
|
||||
|
||||
connect( standard, SIGNAL( selected(int,int) ),
|
||||
this , SLOT( checkThis(int,int) ) );
|
||||
|
||||
}
|
||||
|
||||
BulletsModule::~BulletsModule()
|
||||
{
|
||||
delete standard;
|
||||
delete maths;
|
||||
|
||||
}
|
||||
|
||||
void BulletsModule::setLevel1()
|
||||
{
|
||||
qWarning("no setLevel1() yet");
|
||||
}
|
||||
|
||||
void BulletsModule::checkThis(int x, int y)
|
||||
{
|
||||
qWarning("Check, x: %d y: %d ",x,y);
|
||||
}
|
||||
|
45
src/frontends/qt2/BulletsModule.h
Normal file
45
src/frontends/qt2/BulletsModule.h
Normal file
@ -0,0 +1,45 @@
|
||||
// -*- C++ -*-
|
||||
/**
|
||||
* \file BulletsModule.h
|
||||
* This file is part of LyX, the document processor.
|
||||
* Licence details can be found in the file COPYING.
|
||||
*
|
||||
* \author Edwin Leuven
|
||||
*
|
||||
* Full author contact details are available in file CREDITS
|
||||
*/
|
||||
|
||||
#ifndef QBULLETSMODULE_H
|
||||
#define QBULLETSMODULE_H
|
||||
|
||||
#ifdef __GNUG__
|
||||
#pragma interface
|
||||
#endif
|
||||
|
||||
#include "ui/BulletsModuleBase.h"
|
||||
#include "LString.h"
|
||||
class QBrowseBox;
|
||||
|
||||
class BulletsModule : public BulletsModuleBase
|
||||
{
|
||||
Q_OBJECT
|
||||
public:
|
||||
|
||||
BulletsModule( QWidget* parent = 0, const char* name = 0, WFlags fl = 0 );
|
||||
~BulletsModule();
|
||||
|
||||
public slots:
|
||||
|
||||
void checkThis(int,int);
|
||||
void setLevel1();
|
||||
|
||||
private:
|
||||
QBrowseBox * standard;
|
||||
QBrowseBox * maths;
|
||||
QBrowseBox * ding1;
|
||||
QBrowseBox * ding2;
|
||||
QBrowseBox * ding3;
|
||||
QBrowseBox * ding4;
|
||||
};
|
||||
|
||||
#endif // BULLETSMODULE_H
|
@ -1,3 +1,36 @@
|
||||
2002-10-09 Edwin Leuven <leuven@fee.uva.nl>
|
||||
|
||||
* QDocument.C: Brand new document dialog
|
||||
* QDocument.h:
|
||||
* QDocumentDialog.C:
|
||||
* QDocumentDialog.h:
|
||||
* BulletsModule.C:
|
||||
* BulletsModule.h:
|
||||
* Dialogs.C:
|
||||
* Dialogs2.C:
|
||||
* Dialogs_impl.h:
|
||||
* Makefile.am:
|
||||
* Makefile.dialogs:
|
||||
* QBrowseBox.C:
|
||||
* QBrowseBox.h:
|
||||
* qgridview.cpp:
|
||||
* qgridview.h:
|
||||
* moc/Makefile.am:
|
||||
* ui/BiblioModuleBase.ui:
|
||||
* ui/BulletsModuleBase.ui:
|
||||
* ui/ClassModuleBase.ui:
|
||||
* ui/LanguageModuleBase.ui:
|
||||
* ui/Makefile.am:
|
||||
* ui/MarginsModuleBase.ui:
|
||||
* ui/NumberingModuleBase.ui:
|
||||
* ui/PackagesModuleBase.ui:
|
||||
* ui/PaperModuleBase.ui:
|
||||
* ui/PreambleModuleBase.ui:
|
||||
* ui/QDocumentDialog.ui:
|
||||
* ui/QGraphicsDialog.ui:
|
||||
* ui/QPrintDialog.ui:
|
||||
* ui/QRefDialog.ui:
|
||||
|
||||
2002-09-28 Juergen Spitzmueller <j.spitzmueller@gmx.de>
|
||||
|
||||
* ui/QWrapDialog.ui:
|
||||
|
@ -49,6 +49,7 @@ Dialogs::Impl::Impl(LyXView & lv, Dialogs & d)
|
||||
bibtex(lv, d),
|
||||
character(lv, d),
|
||||
citation(lv, d),
|
||||
document(lv, d),
|
||||
error(lv, d),
|
||||
ert(lv, d),
|
||||
external(lv, d),
|
||||
|
@ -61,7 +61,9 @@ void Dialogs::createCitation(string const & s)
|
||||
|
||||
|
||||
void Dialogs::showDocument()
|
||||
{}
|
||||
{
|
||||
pimpl_->document.controller().show();
|
||||
}
|
||||
|
||||
|
||||
void Dialogs::showError(InsetError * ie)
|
||||
@ -169,7 +171,7 @@ void Dialogs::updateParagraph()
|
||||
|
||||
void Dialogs::showPreamble()
|
||||
{
|
||||
pimpl_->preamble.controller().show();
|
||||
pimpl_->document.controller().showPreamble();
|
||||
}
|
||||
|
||||
|
||||
|
@ -23,6 +23,7 @@
|
||||
#include "ControlBibtex.h"
|
||||
#include "ControlCharacter.h"
|
||||
#include "ControlCitation.h"
|
||||
#include "ControlDocument.h"
|
||||
#include "ControlError.h"
|
||||
#include "ControlERT.h"
|
||||
#include "ControlExternal.h"
|
||||
@ -59,7 +60,8 @@
|
||||
#include "QCharacterDialog.h"
|
||||
#include "QCitation.h"
|
||||
#include "QCitationDialog.h"
|
||||
//#include "QDocument.h"
|
||||
#include "QDocument.h"
|
||||
#include "QDocumentDialog.h"
|
||||
#include "QError.h"
|
||||
#include "QErrorDialog.h"
|
||||
#include "QERT.h"
|
||||
@ -139,6 +141,9 @@ CharacterDialog;
|
||||
typedef GUI<ControlCitation, QCitation, NoRepeatedApplyReadOnlyPolicy, Qt2BC>
|
||||
CitationDialog;
|
||||
|
||||
typedef GUI<ControlDocument, QDocument, NoRepeatedApplyReadOnlyPolicy, Qt2BC>
|
||||
DocumentDialog;
|
||||
|
||||
typedef GUI<ControlError, QError, OkCancelPolicy, Qt2BC>
|
||||
ErrorDialog;
|
||||
|
||||
@ -219,6 +224,7 @@ struct Dialogs::Impl {
|
||||
BibtexDialog bibtex;
|
||||
CharacterDialog character;
|
||||
CitationDialog citation;
|
||||
DocumentDialog document;
|
||||
ErrorDialog error;
|
||||
ERTDialog ert;
|
||||
ExternalDialog external;
|
||||
|
@ -18,6 +18,12 @@ include $(srcdir)/Makefile.dialogs
|
||||
|
||||
libqt2_la_SOURCES = \
|
||||
Alert_pimpl.C \
|
||||
qgridview.h \
|
||||
qgridview.cpp \
|
||||
BulletsModule.C \
|
||||
BulletsModule.h \
|
||||
QBrowseBox.C \
|
||||
QBrowseBox.h \
|
||||
Dialogs.C \
|
||||
Dialogs2.C \
|
||||
Dialogs_impl.h \
|
||||
|
@ -7,6 +7,7 @@ DIALOGS = \
|
||||
QBibtex \
|
||||
QCharacter \
|
||||
QCitation \
|
||||
QDocument \
|
||||
QError \
|
||||
QERT \
|
||||
QExternal \
|
||||
@ -43,6 +44,8 @@ DIALOGSOURCES = \
|
||||
QCharacter.C QCharacterDialog.C \
|
||||
QCitation.h QCitationDialog.h \
|
||||
QCitation.C QCitationDialog.C \
|
||||
QDocument.h QDocumentDialog.h \
|
||||
QDocument.C QDocumentDialog.C \
|
||||
QDelimiterDialog.h QDelimiterDialog.C \
|
||||
QError.h QErrorDialog.h \
|
||||
QError.C QErrorDialog.C \
|
||||
@ -99,6 +102,7 @@ MOCDIALOGS = \
|
||||
QBibtexDialog_moc.C \
|
||||
QCharacterDialog_moc.C \
|
||||
QCitationDialog_moc.C \
|
||||
QDocumentDialog_moc.C \
|
||||
QDelimiterDialog_moc.C \
|
||||
QErrorDialog_moc.C \
|
||||
QERTDialog_moc.C \
|
||||
@ -138,6 +142,8 @@ UIDIALOGS = \
|
||||
QCharacterDialogBase.C \
|
||||
QCitationDialogBase.h \
|
||||
QCitationDialogBase.C \
|
||||
QDocumentDialogBase.h \
|
||||
QDocumentDialogBase.C \
|
||||
QDelimiterDialogBase.h \
|
||||
QDelimiterDialogBase.C \
|
||||
QErrorDialogBase.C \
|
||||
@ -187,7 +193,16 @@ UIDIALOGS = \
|
||||
QVCLogDialogBase.h \
|
||||
QVCLogDialogBase.C \
|
||||
QWrapDialogBase.h \
|
||||
QWrapDialogBase.C
|
||||
QWrapDialogBase.C \
|
||||
ClassModuleBase.h ClassModuleBase.C \
|
||||
PackagesModuleBase.h PackagesModuleBase.C \
|
||||
PaperModuleBase.h PaperModuleBase.C \
|
||||
MarginsModuleBase.h MarginsModuleBase.C \
|
||||
LanguageModuleBase.h LanguageModuleBase.C \
|
||||
NumberingModuleBase.h NumberingModuleBase.C \
|
||||
BiblioModuleBase.h BiblioModuleBase.C \
|
||||
PreambleModuleBase.h PreambleModuleBase.C \
|
||||
BulletsModuleBase.h BulletsModuleBase.C
|
||||
|
||||
UIMOCDIALOGS = \
|
||||
QAboutDialogBase_moc.C \
|
||||
@ -196,6 +211,7 @@ UIMOCDIALOGS = \
|
||||
QBibtexDialogBase_moc.C \
|
||||
QCharacterDialogBase_moc.C \
|
||||
QCitationDialogBase_moc.C \
|
||||
QDocumentDialogBase_moc.C \
|
||||
QDelimiterDialogBase_moc.C \
|
||||
QErrorDialogBase_moc.C \
|
||||
QERTDialogBase_moc.C \
|
||||
@ -220,4 +236,13 @@ UIMOCDIALOGS = \
|
||||
QTocDialogBase_moc.C \
|
||||
QURLDialogBase_moc.C \
|
||||
QVCLogDialogBase_moc.C \
|
||||
QWrapDialogBase_moc.C
|
||||
QWrapDialogBase_moc.C \
|
||||
ClassModuleBase_moc.C \
|
||||
PackagesModuleBase_moc.C \
|
||||
PaperModuleBase_moc.C \
|
||||
MarginsModuleBase_moc.C \
|
||||
LanguageModuleBase_moc.C \
|
||||
NumberingModuleBase_moc.C \
|
||||
BiblioModuleBase_moc.C \
|
||||
PreambleModuleBase_moc.C \
|
||||
BulletsModuleBase_moc.C
|
||||
|
281
src/frontends/qt2/QBrowseBox.C
Normal file
281
src/frontends/qt2/QBrowseBox.C
Normal file
@ -0,0 +1,281 @@
|
||||
/**
|
||||
* \file QBrowseBox.C
|
||||
*
|
||||
* Original file taken from klyx 0.10 sources:
|
||||
* $Id: QBrowseBox.C,v 1.1 2002/10/09 08:59:02 leuven Exp $
|
||||
*
|
||||
* \author Kalle Dalheimer ?
|
||||
*
|
||||
* Full author contact details are available in file CREDITS
|
||||
*/
|
||||
|
||||
|
||||
#include <qstring.h>
|
||||
#include <qpixmap.h>
|
||||
#include <qkeycode.h>
|
||||
#include <qpainter.h>
|
||||
#include <qapplication.h>
|
||||
#include <qdrawutil.h>
|
||||
#include <qstyle.h>
|
||||
#include <qimage.h>
|
||||
|
||||
#include <stdio.h>
|
||||
#include <math.h>
|
||||
|
||||
#include "QBrowseBox.h"
|
||||
|
||||
|
||||
QBrowseBox::QBrowseBox(int rows, int cols, QWidget* parent=0 , const char* name=0 , WFlags fl=0 )
|
||||
: QGridView()
|
||||
{
|
||||
setNumRows( rows );
|
||||
setNumCols( cols );
|
||||
setCellWidth( width()/cols );
|
||||
setCellHeight( height()/rows );
|
||||
|
||||
_texts = new QString[rows*cols];
|
||||
_pixmaps = new QPixmap[rows*cols];
|
||||
|
||||
_activecell.setX( 0 );
|
||||
_activecell.setY( 0 );
|
||||
updateCell(0,0);
|
||||
setMouseTracking( true );
|
||||
|
||||
if( style().inherits( "QWindowsStyle" ) )
|
||||
setFrameStyle( QFrame::WinPanel | QFrame::Raised );
|
||||
else
|
||||
setFrameStyle( QFrame::Panel | QFrame::Raised );
|
||||
|
||||
setFocusPolicy(QWidget::StrongFocus);
|
||||
}
|
||||
|
||||
|
||||
|
||||
QBrowseBox::~QBrowseBox()
|
||||
{
|
||||
delete [] _texts;
|
||||
delete [] _pixmaps;
|
||||
}
|
||||
|
||||
|
||||
int QBrowseBox::coordsToIndex( int row, int col )
|
||||
{
|
||||
if( col<0 || col>numCols() || row<0 || row>numRows() )
|
||||
qDebug( "coordsToIndex: invalid coords (%d, %d)\n", row, col );
|
||||
|
||||
return row + col*numCols();
|
||||
}
|
||||
|
||||
|
||||
void QBrowseBox::insertItem( const QString& text, int row, int col )
|
||||
{
|
||||
_texts[ coordsToIndex( row, col ) ] = text;
|
||||
}
|
||||
|
||||
|
||||
void QBrowseBox::insertItem( QPixmap pixmap, int row, int col )
|
||||
{
|
||||
_pixmaps[ coordsToIndex( row, col ) ] = pixmap;
|
||||
}
|
||||
|
||||
void QBrowseBox::insertItem( QPixmap pixmap)
|
||||
{
|
||||
int w = (pixmap.width()/numCols());
|
||||
int h = (pixmap.height()/numRows());
|
||||
|
||||
for( int row = 0; row < numRows(); row++ )
|
||||
for( int col = 0; col < numCols(); col++ )
|
||||
{
|
||||
QPixmap small(w,h);
|
||||
bitBlt(&small,0,0,&pixmap,col*w,row*h,w,h,Qt::CopyROP,false);
|
||||
insertItem(small, row, col );
|
||||
}
|
||||
|
||||
resize(pixmap.width() + (numCols()+1)*frameWidth(),
|
||||
pixmap.height() +(numRows()+1)*frameWidth());
|
||||
}
|
||||
|
||||
void QBrowseBox::removeItem( int row, int col )
|
||||
{
|
||||
_texts[ coordsToIndex( row, col ) ] = "";
|
||||
_pixmaps[ coordsToIndex( row, col ) ].resize( 0, 0 );
|
||||
}
|
||||
|
||||
|
||||
void QBrowseBox::clear()
|
||||
{
|
||||
for( int row = 0; row < numRows(); row++ )
|
||||
for( int col = 0; col < numCols(); col++ )
|
||||
removeItem( row, col );
|
||||
}
|
||||
|
||||
|
||||
QString QBrowseBox::text( int row, int col )
|
||||
{
|
||||
if( col<0 || col >= numCols() || row<0 || row >= numRows() )
|
||||
return "";
|
||||
return _texts[ coordsToIndex( row, col ) ];
|
||||
}
|
||||
|
||||
|
||||
QPixmap QBrowseBox::pixmap( int row, int col )
|
||||
{
|
||||
static QPixmap empty;
|
||||
|
||||
if( col<0 || col>=numCols() || row<0 || row>=numRows() )
|
||||
return empty;
|
||||
return _pixmaps[ coordsToIndex( row, col ) ];
|
||||
}
|
||||
|
||||
void QBrowseBox::keyPressEvent( QKeyEvent* e )
|
||||
{
|
||||
switch( e->key()){
|
||||
case Key_Up:
|
||||
moveUp();
|
||||
break;
|
||||
case Key_Down:
|
||||
moveDown();
|
||||
break;
|
||||
case Key_Left:
|
||||
moveLeft();
|
||||
break;
|
||||
case Key_Right:
|
||||
moveRight();
|
||||
break;
|
||||
case Key_Return:
|
||||
emit selected( _activecell.x(), _activecell.y());
|
||||
break;
|
||||
default:
|
||||
e->ignore();
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
void QBrowseBox::mouseReleaseEvent( QMouseEvent* e )
|
||||
{
|
||||
qWarning("mouse release");
|
||||
emit selected( _activecell.x(), _activecell.y());
|
||||
}
|
||||
|
||||
//void QBrowseBox::closeEvent( QCloseEvent* e)
|
||||
//{
|
||||
// e->accept();
|
||||
// qApp->exit_loop();
|
||||
//}
|
||||
|
||||
void QBrowseBox::paintCell( class QPainter * painter, int row, int col )
|
||||
{
|
||||
painter->setClipRect(cellGeometry(row,col));//, QPainter::CoordPainter);
|
||||
bool ispixmap = false;
|
||||
|
||||
if( ! _pixmaps[coordsToIndex(row,col)].isNull() ) {
|
||||
painter->drawPixmap(0,0,_pixmaps[coordsToIndex(row,col)]);
|
||||
ispixmap = true;
|
||||
}
|
||||
|
||||
if( (_activecell.x()==row) && (_activecell.y()==col) ) {
|
||||
if( ispixmap )
|
||||
qDrawShadeRect( painter, 0, 0, cellWidth(),
|
||||
cellHeight(), colorGroup(), false, 1 );
|
||||
else
|
||||
qDrawShadePanel( painter, 0, 0, cellWidth(),
|
||||
cellHeight(), colorGroup(), false, 1 );
|
||||
} else {
|
||||
qDrawPlainRect( painter, 0, 0, cellWidth(),
|
||||
cellHeight(), colorGroup().background(), 1 );
|
||||
}
|
||||
|
||||
if( ! _texts[ coordsToIndex( row, col ) ].isEmpty() ) {
|
||||
painter->drawText( 0, 0, cellWidth(),
|
||||
cellHeight(), AlignLeft,
|
||||
_texts[ coordsToIndex( row, col ) ] );
|
||||
}
|
||||
painter->setClipping(false);
|
||||
}
|
||||
|
||||
|
||||
void QBrowseBox::resizeEvent( QResizeEvent* e )
|
||||
{
|
||||
QGridView::resizeEvent(e);
|
||||
setCellWidth( contentsRect().width()/numCols() );
|
||||
setCellHeight( contentsRect().height()/numRows() );
|
||||
}
|
||||
|
||||
|
||||
|
||||
void QBrowseBox::mouseMoveEvent( QMouseEvent* e )
|
||||
{
|
||||
qWarning("mouseMoveEvent");
|
||||
int x = e->pos().x();
|
||||
int y = e->pos().y();
|
||||
|
||||
int cellx;
|
||||
int celly;
|
||||
|
||||
if( x < 0 || y < 0 || x > width() || y > height() ) {
|
||||
// outside the box
|
||||
cellx = -1;
|
||||
celly = -1;
|
||||
} else {
|
||||
celly = (int)floor( ((double)x) / ((double)cellWidth()) );
|
||||
cellx = (int)floor( ((double)y) / ((double)cellHeight()) );
|
||||
}
|
||||
|
||||
if( (_activecell.x() != cellx) || (_activecell.y() != celly) )
|
||||
{
|
||||
qWarning("update");
|
||||
// mouse has been moved to another cell
|
||||
int oldactivecellx = _activecell.x();
|
||||
int oldactivecelly = _activecell.y();
|
||||
_activecell.setX( cellx );
|
||||
_activecell.setY( celly );
|
||||
// remove old highlighting
|
||||
updateCell( oldactivecellx, oldactivecelly );
|
||||
// set new highlighting
|
||||
updateCell( _activecell.x(), _activecell.y() );
|
||||
}
|
||||
}
|
||||
|
||||
void QBrowseBox::moveLeft( )
|
||||
{
|
||||
int const y = _activecell.y();
|
||||
|
||||
if (y>0)
|
||||
_activecell.setY(y-1);
|
||||
|
||||
updateCell(_activecell.x(), y);
|
||||
updateCell(_activecell.x(), _activecell.y());
|
||||
}
|
||||
|
||||
void QBrowseBox::moveRight( )
|
||||
{
|
||||
int const y = _activecell.y();
|
||||
|
||||
if (y<numCols()-1)
|
||||
_activecell.setY(y+1);
|
||||
|
||||
updateCell(_activecell.x(), y);
|
||||
updateCell(_activecell.x(),_activecell.y());
|
||||
}
|
||||
|
||||
void QBrowseBox::moveUp( )
|
||||
{
|
||||
int const x = _activecell.x();
|
||||
|
||||
if (x>0)
|
||||
_activecell.setX(x-1);
|
||||
|
||||
updateCell(x, _activecell.y());
|
||||
updateCell(_activecell.x(),_activecell.y());
|
||||
}
|
||||
|
||||
void QBrowseBox::moveDown( )
|
||||
{
|
||||
int const x = _activecell.x();
|
||||
|
||||
if (x<numRows()-1)
|
||||
_activecell.setX(x+1);
|
||||
|
||||
updateCell(x, _activecell.y());
|
||||
updateCell(_activecell.x(),_activecell.y());
|
||||
}
|
74
src/frontends/qt2/QBrowseBox.h
Normal file
74
src/frontends/qt2/QBrowseBox.h
Normal file
@ -0,0 +1,74 @@
|
||||
// -*- C++ -*-
|
||||
/**
|
||||
* \file QBrowseBox.h
|
||||
*
|
||||
* Original file taken from klyx 0.10 sources:
|
||||
* $Id: QBrowseBox.h,v 1.1 2002/10/09 08:59:02 leuven Exp $
|
||||
*
|
||||
* \author Kalle Dalheimer ?
|
||||
*
|
||||
* Full author contact details are available in file CREDITS
|
||||
*/
|
||||
|
||||
#ifndef QBROWSEBOX_H
|
||||
#define QBROWSEBOX_H
|
||||
|
||||
#include "qgridview.h"
|
||||
|
||||
#include <qwidget.h>
|
||||
#include <qarray.h>
|
||||
|
||||
|
||||
class QString;
|
||||
class QPainter;
|
||||
class QPixmap;
|
||||
|
||||
|
||||
class QBrowseBox : public QGridView
|
||||
{
|
||||
Q_OBJECT
|
||||
public:
|
||||
QBrowseBox( int rows , int cols, QWidget* parent = 0 , const char* name=0 , WFlags f =0 );
|
||||
~QBrowseBox();
|
||||
|
||||
void insertItem( const QString& text, int x, int y );
|
||||
void insertItem( const char* text, int x, int y ) { insertItem( QString( text ), x, y ); }
|
||||
void insertItem( QPixmap pixmap, int x, int y );
|
||||
void insertItem( QPixmap pixmap);
|
||||
void removeItem( int x, int y );
|
||||
void clear();
|
||||
|
||||
QString text( int x, int y );
|
||||
QPixmap pixmap( int x, int y);
|
||||
|
||||
// int exec( const QPoint& pos );
|
||||
// int exec( int x, int y );
|
||||
// int exec( const QWidget* trigger );
|
||||
|
||||
signals:
|
||||
void selected(int, int);
|
||||
|
||||
protected:
|
||||
virtual void keyPressEvent( QKeyEvent* e );
|
||||
virtual void resizeEvent( QResizeEvent* e );
|
||||
virtual void mouseReleaseEvent( QMouseEvent* e );
|
||||
// virtual void closeEvent( QCloseEvent* e );
|
||||
virtual void mouseMoveEvent( QMouseEvent* e );
|
||||
virtual void paintCell( QPainter *, int, int );
|
||||
|
||||
private:
|
||||
void moveLeft();
|
||||
void moveRight();
|
||||
void moveUp();
|
||||
void moveDown();
|
||||
|
||||
int coordsToIndex( int x, int y );
|
||||
|
||||
QString* _texts;
|
||||
QPixmap* _pixmaps;
|
||||
QPoint _activecell;
|
||||
|
||||
};
|
||||
|
||||
|
||||
#endif
|
File diff suppressed because it is too large
Load Diff
@ -4,7 +4,7 @@
|
||||
* This file is part of LyX, the document processor.
|
||||
* Licence details can be found in the file COPYING.
|
||||
*
|
||||
* \author Kalle Dalheimer
|
||||
* \author Edwin Leuven
|
||||
*
|
||||
* Full author contact details are available in file CREDITS
|
||||
*/
|
||||
@ -25,148 +25,25 @@
|
||||
|
||||
class ControlDocument;
|
||||
class QDocumentDialog;
|
||||
class BufferParams;
|
||||
class LyXView;
|
||||
class Dialogs;
|
||||
|
||||
class QDocument
|
||||
//FIXME !!!!! : public Qt2CB<ControlDocument, Qt2DB<QDocumentDialog> >
|
||||
: public Qt2CB<ControlDocument, Qt2DB<QDocumentDialog> >
|
||||
{
|
||||
public:
|
||||
// FIXME!!!!!!!
|
||||
QDocument(LyXView *, Dialogs *);
|
||||
///
|
||||
QDocument();
|
||||
///
|
||||
friend class QDocumentDialog;
|
||||
private:
|
||||
/// Apply changes
|
||||
void apply();
|
||||
/// update
|
||||
void update_contents();
|
||||
/// build the dialog
|
||||
void build_dialog();
|
||||
///
|
||||
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_dialog();
|
||||
// /// Filter the inputs
|
||||
// virtual bool input( FL_OBJECT *, long );
|
||||
/// Update the dialog.
|
||||
virtual void update_contents();
|
||||
/// 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_;
|
||||
std::vector<string> lang_;
|
||||
};
|
||||
|
||||
|
||||
inline
|
||||
Qt2BC & QDocument::bc()
|
||||
{
|
||||
return bc_;
|
||||
}
|
||||
|
||||
#endif // QDOCUMENT_H
|
||||
|
@ -3,458 +3,467 @@
|
||||
* This file is part of LyX, the document processor.
|
||||
* Licence details can be found in the file COPYING.
|
||||
*
|
||||
* \author Kalle Dalheimer
|
||||
* \author Edwin Leuven
|
||||
*
|
||||
* Full author contact details are available in file CREDITS
|
||||
*/
|
||||
|
||||
#include <config.h>
|
||||
#include "gettext.h"
|
||||
|
||||
#include "ControlDocument.h"
|
||||
#include "QDocument.h"
|
||||
|
||||
#ifdef __GNUG__
|
||||
#pragma implementation
|
||||
#endif
|
||||
|
||||
#include "QDocumentDialog.h"
|
||||
#include "Dialogs.h"
|
||||
#include "QDocument.h"
|
||||
|
||||
#include "ui/ClassModuleBase.h"
|
||||
#include "ui/PackagesModuleBase.h"
|
||||
#include "ui/PaperModuleBase.h"
|
||||
#include "ui/LanguageModuleBase.h"
|
||||
#include "ui/BulletsModuleBase.h"
|
||||
#include "BulletsModule.h"
|
||||
#include "ui/BiblioModuleBase.h"
|
||||
#include "ui/NumberingModuleBase.h"
|
||||
#include "ui/MarginsModuleBase.h"
|
||||
#include "ui/PreambleModuleBase.h"
|
||||
|
||||
#include "QBrowseBox.h"
|
||||
#include "Spacing.h"
|
||||
#include "support/filetools.h"
|
||||
#include "support/lstrings.h"
|
||||
#include "Alert.h"
|
||||
#include "lyxrc.h"
|
||||
#include "buffer.h"
|
||||
#include "lyx_main.h" // for user_lyxdir
|
||||
|
||||
#include <qwidgetstack.h>
|
||||
#include <qlistbox.h>
|
||||
#include <qlabel.h>
|
||||
#include <qmultilineedit.h>
|
||||
#include <qlineedit.h>
|
||||
#include <qcheckbox.h>
|
||||
#include <qtoolbutton.h>
|
||||
#include <qbuttongroup.h>
|
||||
#include <qpushbutton.h>
|
||||
#include <qcombobox.h>
|
||||
#include <qradiobutton.h>
|
||||
#include <qcheckbox.h>
|
||||
#include <qspinbox.h>
|
||||
|
||||
QDocumentDialog::QDocumentDialog(QDocument * form, QWidget * parent, const char * name, bool modal, WFlags fl)
|
||||
: QDocumentDialogBase(parent, name, modal, fl),
|
||||
form_(form)
|
||||
#include "lengthcombo.h"
|
||||
/*
|
||||
* Constructs a DocumentDialog 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.
|
||||
*/
|
||||
QDocumentDialog::QDocumentDialog( QDocument * form)
|
||||
: QDocumentDialogBase( 0, 0, false, 0 ), 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
|
||||
connect(okPB, SIGNAL(clicked()),
|
||||
form, SLOT(slotOK()));
|
||||
connect(applyPB, SIGNAL(clicked()),
|
||||
form, SLOT(slotApply()));
|
||||
connect(cancelPB, SIGNAL(clicked()),
|
||||
form, SLOT(slotClose()));
|
||||
connect(restorePB, SIGNAL(clicked()),
|
||||
form, SLOT(slotRestore()));
|
||||
|
||||
moduleLB->clear();
|
||||
moduleLB->insertItem( _("Layout"), LAYOUT );
|
||||
moduleLB->insertItem( _("Packages"), PACKAGES );
|
||||
moduleLB->insertItem( _("Paper"), PAPER );
|
||||
moduleLB->insertItem( _("Margins"), MARGINS );
|
||||
moduleLB->insertItem( _("Language"), LANGUAGE );
|
||||
moduleLB->insertItem( _("Bullets"), BULLETS );
|
||||
moduleLB->insertItem( _("Numbering"), NUMBERING );
|
||||
moduleLB->insertItem( _("Bibliography"), BIBLIOGRAPHY );
|
||||
moduleLB->insertItem( _("Preamble"), PREAMBLE );
|
||||
moduleLB->setCurrentItem(LAYOUT);
|
||||
|
||||
layoutModule = new ClassModuleBase(this);
|
||||
paperModule = new PaperModuleBase(this);
|
||||
marginsModule = new MarginsModuleBase(this);
|
||||
packagesModule = new PackagesModuleBase(this);
|
||||
langModule = new LanguageModuleBase(this);
|
||||
bulletsModule = new BulletsModule(this);
|
||||
numberingModule = new NumberingModuleBase(this);
|
||||
biblioModule = new BiblioModuleBase(this);
|
||||
preambleModule = new PreambleModuleBase(this);
|
||||
|
||||
moduleStack->addWidget(layoutModule,LAYOUT);
|
||||
moduleStack->addWidget(paperModule,PAPER);
|
||||
moduleStack->addWidget(marginsModule,MARGINS);
|
||||
moduleStack->addWidget(packagesModule,PACKAGES);
|
||||
moduleStack->addWidget(langModule,LANGUAGE);
|
||||
moduleStack->addWidget(bulletsModule,BULLETS);
|
||||
moduleStack->addWidget(numberingModule,NUMBERING);
|
||||
moduleStack->addWidget(biblioModule,BIBLIOGRAPHY);
|
||||
moduleStack->addWidget(preambleModule,PREAMBLE);
|
||||
|
||||
moduleStack->raiseWidget(LAYOUT);
|
||||
|
||||
//QPixmap image("standard.xpm");
|
||||
//bulletsModule->bulletsBB->insertItem(image);
|
||||
//bulletsModule->bulletsBB->resize(image.width(),image.height());
|
||||
// take care of title
|
||||
QFont f = titleL->font();
|
||||
f.setWeight( QFont::Bold );
|
||||
titleL->setFont( f );
|
||||
setTitle(LAYOUT);
|
||||
|
||||
/* preamble */
|
||||
connect( preambleModule->preambleMLE, SIGNAL( textChanged() ),
|
||||
this , SLOT( change_adaptor() ) );
|
||||
/* biblio */
|
||||
connect( biblioModule->natbibCB, SIGNAL( toggled(bool) ),
|
||||
this , SLOT( change_adaptor() ) );
|
||||
connect( biblioModule->citeStyleCO, SIGNAL( activated(int) ),
|
||||
this , SLOT( change_adaptor() ) );
|
||||
/* language & quote */
|
||||
connect( langModule->singleQuoteRB, SIGNAL( toggled(bool) ),
|
||||
this , SLOT( change_adaptor() ) );
|
||||
connect( langModule->doubleQuoteRB, SIGNAL( toggled(bool) ),
|
||||
this , SLOT( change_adaptor() ) );
|
||||
connect( langModule->languageCO, SIGNAL( activated(int) ),
|
||||
this , SLOT( change_adaptor() ) );
|
||||
connect( langModule->quoteStyleCO, SIGNAL( activated(int) ),
|
||||
this , SLOT( change_adaptor() ) );
|
||||
/* numbering */
|
||||
connect( numberingModule->sectionnrDepthSB,
|
||||
SIGNAL( valueChanged(int) ),
|
||||
this , SLOT( change_adaptor() ) );
|
||||
connect( numberingModule->tocDepthSB,
|
||||
SIGNAL( valueChanged(int) ),
|
||||
this , SLOT( change_adaptor() ) );
|
||||
/* packages */
|
||||
connect( packagesModule->lspacingCO, SIGNAL( activated(int) ),
|
||||
this , SLOT( change_adaptor() ) );
|
||||
connect( packagesModule->lspacingCO, SIGNAL( activated(int) ),
|
||||
this , SLOT( setLSpacing(int) ) );
|
||||
connect( packagesModule->lspacingLE,
|
||||
SIGNAL( textChanged(const QString&) ),
|
||||
this , SLOT( change_adaptor() ) );
|
||||
connect( packagesModule->encodingCO, SIGNAL( activated(int) ),
|
||||
this , SLOT( change_adaptor() ) );
|
||||
connect( packagesModule->amsCB, SIGNAL( toggled(bool) ),
|
||||
this , SLOT( change_adaptor() ) );
|
||||
connect( packagesModule->psdriverCO, SIGNAL( activated(int) ),
|
||||
this , SLOT( change_adaptor() ) );
|
||||
/* layout */
|
||||
connect( layoutModule->classCO, SIGNAL( activated(int) ),
|
||||
this , SLOT( change_adaptor() ) );
|
||||
connect( layoutModule->optionsLE,
|
||||
SIGNAL( textChanged(const QString&) ),
|
||||
this , SLOT( change_adaptor() ) );
|
||||
connect( layoutModule->pagestyleCO, SIGNAL( activated(int) ),
|
||||
this , SLOT( change_adaptor() ) );
|
||||
connect( layoutModule->fontsCO, SIGNAL( activated(int) ),
|
||||
this , SLOT( change_adaptor() ) );
|
||||
connect( layoutModule->fontsizeCO, SIGNAL( activated(int) ),
|
||||
this , SLOT( change_adaptor() ) );
|
||||
connect( layoutModule->floatPlacementLE,
|
||||
SIGNAL( textChanged(const QString&) ),
|
||||
this , SLOT( change_adaptor() ) );
|
||||
connect( layoutModule->skipRB, SIGNAL( toggled(bool) ),
|
||||
this , SLOT( change_adaptor() ) );
|
||||
connect( layoutModule->indentRB, SIGNAL( toggled(bool) ),
|
||||
this , SLOT( change_adaptor() ) );
|
||||
connect( layoutModule->skipCO, SIGNAL( activated(int) ),
|
||||
this , SLOT( change_adaptor() ) );
|
||||
connect( layoutModule->skipLE,
|
||||
SIGNAL( textChanged(const QString&) ),
|
||||
this , SLOT( change_adaptor() ) );
|
||||
connect( layoutModule->skipLengthCO, SIGNAL( activated(int) ),
|
||||
this , SLOT( change_adaptor() ) );
|
||||
|
||||
connect( layoutModule->classCO, SIGNAL( activated(int) ),
|
||||
this , SLOT( classChanged() ) );
|
||||
connect( layoutModule->skipCO, SIGNAL( activated(int) ),
|
||||
this , SLOT( setSkip(int) ) );
|
||||
connect( layoutModule->skipRB, SIGNAL( toggled(bool) ),
|
||||
this , SLOT( enableSkip(bool) ) );
|
||||
|
||||
/* margins */
|
||||
connect( marginsModule->marginCO, SIGNAL( activated(int) ),
|
||||
this , SLOT( setCustomMargins(int) ) );
|
||||
|
||||
connect( marginsModule->marginCO, SIGNAL( activated(int) ),
|
||||
this , SLOT( change_adaptor() ) );
|
||||
connect( marginsModule->topLE, SIGNAL( textChanged(const QString&) ),
|
||||
this , SLOT( change_adaptor() ) );
|
||||
connect( marginsModule->topUnit, SIGNAL( activated(int) ),
|
||||
this , SLOT( change_adaptor() ) );
|
||||
connect( marginsModule->bottomLE, SIGNAL( textChanged(const QString&) ),
|
||||
this , SLOT( change_adaptor() ) );
|
||||
connect( marginsModule->bottomUnit, SIGNAL( activated(int) ),
|
||||
this , SLOT( change_adaptor() ) );
|
||||
connect( marginsModule->innerLE, SIGNAL( textChanged(const QString&) ),
|
||||
this , SLOT( change_adaptor() ) );
|
||||
connect( marginsModule->innerUnit, SIGNAL( activated(int) ),
|
||||
this , SLOT( change_adaptor() ) );
|
||||
connect( marginsModule->outerLE, SIGNAL( textChanged(const QString&) ),
|
||||
this , SLOT( change_adaptor() ) );
|
||||
connect( marginsModule->outerUnit, SIGNAL( activated(int) ),
|
||||
this , SLOT( change_adaptor() ) );
|
||||
connect( marginsModule->headheightLE, SIGNAL( textChanged(const QString&) ),
|
||||
this , SLOT( change_adaptor() ) );
|
||||
connect( marginsModule->headheightUnit, SIGNAL( activated(int) ),
|
||||
this , SLOT( change_adaptor() ) );
|
||||
connect( marginsModule->headsepLE, SIGNAL( textChanged(const QString&) ),
|
||||
this , SLOT( change_adaptor() ) );
|
||||
connect( marginsModule->headsepUnit, SIGNAL( activated(int) ),
|
||||
this , SLOT( change_adaptor() ) );
|
||||
connect( marginsModule->footskipLE, SIGNAL( textChanged(const QString&) ),
|
||||
this , SLOT( change_adaptor() ) );
|
||||
connect( marginsModule->footskipUnit, SIGNAL( activated(int) ),
|
||||
this , SLOT( change_adaptor() ) );
|
||||
|
||||
/* paper */
|
||||
connect( paperModule->papersizeCO, SIGNAL( activated(int) ),
|
||||
this , SLOT( setMargins(int) ) );
|
||||
connect( paperModule->papersizeCO, SIGNAL( activated(int) ),
|
||||
this , SLOT( setCustomPapersize(int) ) );
|
||||
connect( paperModule->papersizeCO, SIGNAL( activated(int) ),
|
||||
this , SLOT( setCustomPapersize(int) ) );
|
||||
|
||||
connect( paperModule->papersizeCO, SIGNAL( activated(int) ),
|
||||
this , SLOT( change_adaptor() ) );
|
||||
connect( paperModule->paperheightLE, SIGNAL( textChanged(const QString&) ),
|
||||
this , SLOT( change_adaptor() ) );
|
||||
connect( paperModule->paperwidthLE, SIGNAL( textChanged(const QString&) ),
|
||||
this , SLOT( change_adaptor() ) );
|
||||
connect( paperModule->paperwidthUnitCO, SIGNAL( activated(int) ),
|
||||
this , SLOT( change_adaptor() ) );
|
||||
connect( paperModule->paperheightUnitCO, SIGNAL( activated(int) ),
|
||||
this , SLOT( change_adaptor() ) );
|
||||
connect( paperModule->portraitRB, SIGNAL( toggled(bool) ),
|
||||
this , SLOT( change_adaptor() ) );
|
||||
connect( paperModule->landscapeRB, SIGNAL( toggled(bool) ),
|
||||
this , SLOT( change_adaptor() ) );
|
||||
connect( paperModule->twoColumnCB, SIGNAL( toggled(bool) ),
|
||||
this , SLOT( change_adaptor() ) );
|
||||
connect( paperModule->facingPagesCB, SIGNAL( toggled(bool) ),
|
||||
this , SLOT( change_adaptor() ) );
|
||||
|
||||
}
|
||||
|
||||
void QDocumentDialog::showPreamble()
|
||||
{
|
||||
moduleStack->raiseWidget(PREAMBLE);
|
||||
setTitle(PREAMBLE);
|
||||
QDocumentDialogBase::show();
|
||||
}
|
||||
|
||||
/*
|
||||
* Destroys the object and frees any allocated resources
|
||||
*/
|
||||
QDocumentDialog::~QDocumentDialog()
|
||||
{
|
||||
// no need to delete child widgets, Qt does it all for us
|
||||
}
|
||||
|
||||
/*
|
||||
* public slot
|
||||
*/
|
||||
|
||||
#if 0
|
||||
void QDocumentDialog::slotApply()
|
||||
void QDocumentDialog::setTitle(int item)
|
||||
{
|
||||
form->apply();
|
||||
// PENDING(kalle) Check whether we need this
|
||||
// form->bc_->apply();
|
||||
switch(item) {
|
||||
case LAYOUT:
|
||||
titleL->setText(_("Document Style"));
|
||||
break;
|
||||
case PACKAGES:
|
||||
titleL->setText(_("LaTeX Packages"));
|
||||
break;
|
||||
case PAPER:
|
||||
titleL->setText(_("Papersize and Orientation"));
|
||||
break;
|
||||
case MARGINS:
|
||||
titleL->setText(_("Margins"));
|
||||
break;
|
||||
case LANGUAGE:
|
||||
titleL->setText(_("Language Settings and Quote Style"));
|
||||
break;
|
||||
case BULLETS:
|
||||
titleL->setText(_("Bullet Types"));
|
||||
break;
|
||||
case NUMBERING:
|
||||
titleL->setText(_("Numbering"));
|
||||
break;
|
||||
case BIBLIOGRAPHY:
|
||||
titleL->setText(_("Bibliography Settings"));
|
||||
break;
|
||||
case PREAMBLE:
|
||||
titleL->setText(_("LaTeX Preamble"));
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
/*
|
||||
* public slot
|
||||
*/
|
||||
void QDocumentDialog::saveDocDefault()
|
||||
{}
|
||||
|
||||
void QDocumentDialog::slotAMSMath(bool)
|
||||
/*
|
||||
* public slot
|
||||
*/
|
||||
void QDocumentDialog::restore()
|
||||
{
|
||||
form->checkDocumentInput( amsMathCB );
|
||||
qWarning( "DocumentDialog::restore() not yet implemented!" );
|
||||
}
|
||||
|
||||
|
||||
void QDocumentDialog::slotBulletDepth1()
|
||||
/*
|
||||
* public slot
|
||||
*/
|
||||
void QDocumentDialog::useClassDefaults()
|
||||
{
|
||||
form->bulletDepth( 0 );
|
||||
qWarning( "DocumentDialog::useClassDefaults() not yet implemented!" );
|
||||
}
|
||||
|
||||
|
||||
void QDocumentDialog::slotBulletDepth2()
|
||||
void QDocumentDialog::change_adaptor()
|
||||
{
|
||||
form->bulletDepth( 1 );
|
||||
form_->changed();
|
||||
}
|
||||
|
||||
|
||||
void QDocumentDialog::slotBulletDepth3()
|
||||
void QDocumentDialog::closeEvent(QCloseEvent * e)
|
||||
{
|
||||
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();
|
||||
form_->slotWMHide();
|
||||
e->accept();
|
||||
}
|
||||
|
||||
void QDocumentDialog::setLSpacing(int item)
|
||||
{
|
||||
packagesModule->lspacingLE->setEnabled(item==3);
|
||||
}
|
||||
|
||||
void QDocumentDialog::setSkip(int item)
|
||||
{
|
||||
bool enable = (item==3);
|
||||
layoutModule->skipLE->setEnabled(enable);
|
||||
layoutModule->skipLengthCO->setEnabled(enable);
|
||||
}
|
||||
|
||||
void QDocumentDialog::enableSkip(bool skip)
|
||||
{
|
||||
layoutModule->skipCO->setEnabled(skip);
|
||||
layoutModule->skipLE->setEnabled(skip);
|
||||
layoutModule->skipLengthCO->setEnabled(skip);
|
||||
if (skip)
|
||||
setSkip(layoutModule->skipCO->currentItem());
|
||||
}
|
||||
|
||||
void QDocumentDialog::setMargins(int papersize)
|
||||
{
|
||||
QStringList a4only;
|
||||
QStringList normal;
|
||||
a4only << _("Small Margins") << _( "Very small Margins")
|
||||
<< _("Very wide Margins ");
|
||||
normal << _("Default") << _("Custom");
|
||||
|
||||
int olditem = marginsModule->marginCO->currentItem();
|
||||
marginsModule->marginCO->clear();
|
||||
marginsModule->marginCO->insertStringList(normal);
|
||||
if (papersize==6) {
|
||||
marginsModule->marginCO->insertStringList(a4only);
|
||||
}
|
||||
marginsModule->marginCO->setCurrentItem(olditem);
|
||||
setCustomMargins(olditem);
|
||||
}
|
||||
|
||||
|
||||
void QDocumentDialog::setCustomPapersize(int papersize)
|
||||
{
|
||||
bool const custom = (papersize==1);
|
||||
|
||||
paperModule->paperwidthL->setEnabled(custom);
|
||||
paperModule->paperwidthLE->setEnabled(custom);
|
||||
paperModule->paperwidthUnitCO->setEnabled(custom);
|
||||
paperModule->paperheightL->setEnabled(custom);
|
||||
paperModule->paperheightLE->setEnabled(custom);
|
||||
paperModule->paperheightLE->setFocus();
|
||||
paperModule->paperheightUnitCO->setEnabled(custom);
|
||||
}
|
||||
|
||||
|
||||
void QDocumentDialog::setCustomMargins(int margin)
|
||||
{
|
||||
bool const custom = (margin==1);
|
||||
|
||||
marginsModule->topL->setEnabled(custom);
|
||||
marginsModule->topLE->setEnabled(custom);
|
||||
marginsModule->topUnit->setEnabled(custom);
|
||||
|
||||
marginsModule->bottomL->setEnabled(custom);
|
||||
marginsModule->bottomLE->setEnabled(custom);
|
||||
marginsModule->bottomUnit->setEnabled(custom);
|
||||
|
||||
marginsModule->innerL->setEnabled(custom);
|
||||
marginsModule->innerLE->setEnabled(custom);
|
||||
marginsModule->innerUnit->setEnabled(custom);
|
||||
|
||||
marginsModule->outerL->setEnabled(custom);
|
||||
marginsModule->outerLE->setEnabled(custom);
|
||||
marginsModule->outerUnit->setEnabled(custom);
|
||||
|
||||
marginsModule->headheightL->setEnabled(custom);
|
||||
marginsModule->headheightLE->setEnabled(custom);
|
||||
marginsModule->headheightUnit->setEnabled(custom);
|
||||
|
||||
marginsModule->headsepL->setEnabled(custom);
|
||||
marginsModule->headsepLE->setEnabled(custom);
|
||||
marginsModule->headsepUnit->setEnabled(custom);
|
||||
|
||||
marginsModule->footskipL->setEnabled(custom);
|
||||
marginsModule->footskipLE->setEnabled(custom);
|
||||
marginsModule->footskipUnit->setEnabled(custom);
|
||||
|
||||
}
|
||||
|
||||
void QDocumentDialog::updateFontsize(string const & items, string const & sel)
|
||||
{
|
||||
layoutModule->fontsizeCO->clear();
|
||||
layoutModule->fontsizeCO->insertItem("default");
|
||||
|
||||
for (int n=0; !token(items,'|',n).empty(); ++n)
|
||||
layoutModule->fontsizeCO->
|
||||
insertItem(token(items,'|',n).c_str());
|
||||
|
||||
for (int n = 0; n<layoutModule->fontsizeCO->count(); ++n) {
|
||||
if (layoutModule->fontsizeCO->text(n).latin1()==sel) {
|
||||
layoutModule->fontsizeCO->setCurrentItem(n);
|
||||
break;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
void QDocumentDialog::updatePagestyle(string const & items, string const & sel)
|
||||
{
|
||||
layoutModule->pagestyleCO->clear();
|
||||
layoutModule->pagestyleCO->insertItem("default");
|
||||
|
||||
for (int n=0; !token(items,'|',n).empty(); ++n)
|
||||
layoutModule->pagestyleCO->
|
||||
insertItem(token(items,'|',n).c_str());
|
||||
|
||||
for (int n = 0; n<layoutModule->pagestyleCO->count(); ++n) {
|
||||
if (layoutModule->pagestyleCO->text(n).latin1()==sel) {
|
||||
layoutModule->pagestyleCO->setCurrentItem(n);
|
||||
break;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
void QDocumentDialog::classChanged()
|
||||
{
|
||||
updateFontsize(form_->controller().textClass().opt_fontsize(),
|
||||
form_->controller().params().fontsize);
|
||||
|
||||
updatePagestyle(form_->controller().textClass().opt_pagestyle(),
|
||||
form_->controller().params().pagestyle);
|
||||
|
||||
}
|
||||
|
||||
|
||||
|
@ -4,7 +4,7 @@
|
||||
* This file is part of LyX, the document processor.
|
||||
* Licence details can be found in the file COPYING.
|
||||
*
|
||||
* \author Kalle Dalheimer
|
||||
* \author Edwin Leuven
|
||||
*
|
||||
* Full author contact details are available in file CREDITS
|
||||
*/
|
||||
@ -17,77 +17,86 @@
|
||||
#endif
|
||||
|
||||
#include "ui/QDocumentDialogBase.h"
|
||||
#include "LString.h"
|
||||
|
||||
#include "ui/BulletsModuleBase.h"
|
||||
#include "BulletsModule.h"
|
||||
|
||||
#include "ui/ClassModuleBase.h"
|
||||
#include "ui/PackagesModuleBase.h"
|
||||
#include "ui/PaperModuleBase.h"
|
||||
#include "ui/LanguageModuleBase.h"
|
||||
#include "ui/BiblioModuleBase.h"
|
||||
#include "ui/NumberingModuleBase.h"
|
||||
#include "ui/MarginsModuleBase.h"
|
||||
#include "ui/PreambleModuleBase.h"
|
||||
|
||||
class QDocument;
|
||||
|
||||
class QDocumentDialog : public QDocumentDialogBase
|
||||
{ Q_OBJECT
|
||||
{
|
||||
Q_OBJECT
|
||||
|
||||
public:
|
||||
QDocumentDialog(QDocument * form, QWidget * parent = 0, const char * name = 0, bool modal = FALSE, WFlags fl = 0);
|
||||
|
||||
QDocumentDialog( QDocument * );
|
||||
|
||||
~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
|
||||
void showPreamble();
|
||||
|
||||
friend class QDocument;
|
||||
|
||||
void updateFontsize(string const & , string const & );
|
||||
|
||||
void updatePagestyle(string const & , string const & );
|
||||
|
||||
public slots:
|
||||
|
||||
void setTitle(int);
|
||||
void change_adaptor();
|
||||
void saveDocDefault();
|
||||
void restore();
|
||||
void useClassDefaults();
|
||||
|
||||
protected slots:
|
||||
|
||||
void setLSpacing(int);
|
||||
void setMargins(int);
|
||||
void setCustomPapersize(int);
|
||||
void setCustomMargins(int);
|
||||
void setSkip(int);
|
||||
void enableSkip(bool);
|
||||
void classChanged();
|
||||
|
||||
protected:
|
||||
void closeEvent(QCloseEvent *);
|
||||
|
||||
void closeEvent(QCloseEvent * e);
|
||||
|
||||
private:
|
||||
enum Module {
|
||||
LAYOUT,
|
||||
PACKAGES,
|
||||
PAPER,
|
||||
MARGINS,
|
||||
LANGUAGE,
|
||||
BULLETS,
|
||||
NUMBERING,
|
||||
BIBLIOGRAPHY,
|
||||
PREAMBLE
|
||||
};
|
||||
|
||||
ClassModuleBase * layoutModule;
|
||||
PackagesModuleBase * packagesModule;
|
||||
PaperModuleBase * paperModule;
|
||||
MarginsModuleBase * marginsModule;
|
||||
LanguageModuleBase * langModule;
|
||||
BulletsModule * bulletsModule;
|
||||
NumberingModuleBase * numberingModule;
|
||||
BiblioModuleBase * biblioModule;
|
||||
PreambleModuleBase * preambleModule;
|
||||
|
||||
QDocument * form_;
|
||||
QToolButton* bulletbuttons[36];
|
||||
};
|
||||
|
||||
#endif // QDOCUMENTDIALOG_H
|
||||
#endif // DOCUMENTDIALOG_H
|
||||
|
@ -11,7 +11,11 @@ lyx_gui (qt)
|
||||
|
||||
QDocument
|
||||
|
||||
- implement me. Need MVC (Edwin is on this)
|
||||
- finalize bullets
|
||||
- buffer should update after apply
|
||||
- set default unit if metric
|
||||
- set new pagestuff on class change
|
||||
- check
|
||||
|
||||
qfont_loader
|
||||
|
||||
|
@ -21,6 +21,9 @@ nodist_libqt2moc_la_SOURCES = \
|
||||
iconpalette_moc.C \
|
||||
lengthcombo_moc.C \
|
||||
qttableview_moc.C \
|
||||
qgridview_moc.C \
|
||||
QBrowseBox_moc.C \
|
||||
BulletsModule_moc.C \
|
||||
Toolbar_pimpl_moc.C \
|
||||
QCommandBuffer_moc.C \
|
||||
QCommandEdit_moc.C \
|
||||
|
354
src/frontends/qt2/qgridview.cpp
Normal file
354
src/frontends/qt2/qgridview.cpp
Normal file
@ -0,0 +1,354 @@
|
||||
/****************************************************************************
|
||||
** $Id: qgridview.cpp,v 1.1 2002/10/09 08:59:02 leuven Exp $
|
||||
**
|
||||
** Implementation of QGridView class
|
||||
**
|
||||
** Created: 010523
|
||||
**
|
||||
** Copyright (C) 1992-2001 Trolltech AS. All rights reserved.
|
||||
**
|
||||
** This file is part of the widgets module of the Qt GUI Toolkit.
|
||||
**
|
||||
** This file may be distributed under the terms of the Q Public License
|
||||
** as defined by Trolltech AS of Norway and appearing in the file
|
||||
** LICENSE.QPL included in the packaging of this file.
|
||||
**
|
||||
** This file may be distributed and/or modified under the terms of the
|
||||
** GNU General Public License version 2 as published by the Free Software
|
||||
** Foundation and appearing in the file LICENSE.GPL included in the
|
||||
** packaging of this file.
|
||||
**
|
||||
** Licensees holding valid Qt Enterprise Edition or Qt Professional Edition
|
||||
** licenses may use this file in accordance with the Qt Commercial License
|
||||
** Agreement provided with the Software.
|
||||
**
|
||||
** This file is provided AS IS with NO WARRANTY OF ANY KIND, INCLUDING THE
|
||||
** WARRANTY OF DESIGN, MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE.
|
||||
**
|
||||
** See http://www.trolltech.com/pricing.html or email sales@trolltech.com for
|
||||
** information about Qt Commercial License Agreements.
|
||||
** See http://www.trolltech.com/qpl/ for QPL licensing information.
|
||||
** See http://www.trolltech.com/gpl/ for GPL licensing information.
|
||||
**
|
||||
** Contact info@trolltech.com if any conditions of this licensing are
|
||||
** not clear to you.
|
||||
**
|
||||
**********************************************************************/
|
||||
|
||||
|
||||
#include "qgridview.h"
|
||||
|
||||
#ifndef QT_NO_GRIDVIEW
|
||||
|
||||
#include <qpainter.h>
|
||||
|
||||
/*!
|
||||
\class QGridView qgridview.h
|
||||
\brief The QGridView class provides an abstract base for fixed-size
|
||||
grids.
|
||||
|
||||
\ingroup abstractwidgets
|
||||
|
||||
A grid view consists of a number of abstract cells organized in rows
|
||||
and columns. The cells have a fixed size and are identified with a
|
||||
row index and a column index. The top-left cell is in row 0, column
|
||||
0. The bottom-right cell is in row numRows()-1, column numCols()-1.
|
||||
|
||||
You can define \l numRows, \l numCols, \l cellWidth and
|
||||
\l cellHeight. Reimplement the pure virtual function paintCell() to
|
||||
draw the content of a cell.
|
||||
|
||||
With ensureCellVisible(), you can ensure a certain cell is
|
||||
visible. With rowAt() and columnAt() you can find a cell based on
|
||||
the given x- and y-coordinates.
|
||||
|
||||
If you need to monitor changes to the grid's dimensions (i.e. when
|
||||
numRows or numCols is changed), reimplement the dimensionChange()
|
||||
change handler.
|
||||
|
||||
Note: the row, column indices are always given in the order, row
|
||||
(vertical offset) then column (horizontal offset). This order is the
|
||||
opposite of all pixel operations, which are given in the order x
|
||||
(horizontal offset), y (vertical offset).
|
||||
|
||||
QGridView is a very simple abstract class based on QScrollView. It
|
||||
is designed to simplify the task of drawing many cells of the same
|
||||
size in a potentially scrollable canvas. If you need rows and
|
||||
columns in different sizes, use a QTable instead. If you need a
|
||||
simple list of items, use a QListBox. If you need to present
|
||||
hierachical data use a QListView, and if you need random objects at
|
||||
random positions, consider using either a QIconView or a QCanvas.
|
||||
|
||||
*/
|
||||
|
||||
|
||||
/*!
|
||||
Constructs a grid view.
|
||||
|
||||
The \a parent, \a name and widget flag, \a f, arguments are passed to the
|
||||
QScrollView constructor.
|
||||
*/
|
||||
QGridView::QGridView( QWidget *parent, const char *name, WFlags f )
|
||||
:QScrollView( parent, name ,f ),nrows(5),ncols(5),cellw(12),cellh(12)
|
||||
{
|
||||
viewport()->setBackgroundMode( PaletteBase );
|
||||
setBackgroundMode( PaletteBackground );
|
||||
viewport()->setFocusProxy( this );
|
||||
}
|
||||
|
||||
/*!
|
||||
Destroys the grid view.
|
||||
*/
|
||||
QGridView::~QGridView()
|
||||
{
|
||||
}
|
||||
|
||||
void QGridView::updateGrid()
|
||||
{
|
||||
resizeContents( ncols * cellw, nrows * cellh );
|
||||
}
|
||||
|
||||
/*! \property QGridView::numRows
|
||||
\brief The number of rows in the grid
|
||||
|
||||
\sa numCols
|
||||
*/
|
||||
void QGridView::setNumRows( int numRows )
|
||||
{
|
||||
int oldnrows = nrows;
|
||||
nrows = numRows;
|
||||
dimensionChange( oldnrows, ncols );
|
||||
updateGrid();
|
||||
}
|
||||
|
||||
/*! \property QGridView::numCols
|
||||
\brief The number of columns in the grid
|
||||
|
||||
\sa numRows
|
||||
*/
|
||||
void QGridView::setNumCols( int numCols )
|
||||
{
|
||||
int oldncols = ncols;
|
||||
ncols = numCols;
|
||||
dimensionChange( nrows, oldncols );
|
||||
updateGrid();
|
||||
}
|
||||
|
||||
/*! \property QGridView::cellWidth
|
||||
\brief The width of a grid column
|
||||
|
||||
All columns in a grid view have the same width.
|
||||
|
||||
\sa cellHeight
|
||||
*/
|
||||
void QGridView::setCellWidth( int cellWidth )
|
||||
{
|
||||
cellw = cellWidth;
|
||||
updateGrid();
|
||||
updateContents( contentsX(), contentsY(), visibleWidth(), visibleHeight() );
|
||||
|
||||
}
|
||||
|
||||
/*! \property QGridView::cellHeight
|
||||
\brief The height of a grid row
|
||||
|
||||
All rows in a grid view have the same height.
|
||||
|
||||
\sa cellWidth
|
||||
*/
|
||||
void QGridView::setCellHeight( int cellHeight )
|
||||
{
|
||||
cellh = cellHeight;
|
||||
updateGrid();
|
||||
updateContents( contentsX(), contentsY(), visibleWidth(), visibleHeight() );
|
||||
|
||||
}
|
||||
|
||||
/*!
|
||||
Returns the geometry of cell (\a row, \a column) in the content
|
||||
coordinate system.
|
||||
|
||||
\sa cellRect()
|
||||
*/
|
||||
QRect QGridView::cellGeometry( int row, int column )
|
||||
{
|
||||
QRect r;
|
||||
if ( row >= 0 && row < nrows && column >= 0 && column < ncols )
|
||||
r.setRect( cellw * column, cellh * row, cellw, cellh );
|
||||
return r;
|
||||
}
|
||||
|
||||
/*! Repaints cell (\a row, \a column).
|
||||
|
||||
If \a erase is TRUE, Qt erases the area of the cell before the
|
||||
paintCell() call; otherwise no erasing takes place.
|
||||
|
||||
\sa QWidget::repaint()
|
||||
*/
|
||||
void QGridView::repaintCell( int row, int column, bool erase )
|
||||
{
|
||||
repaintContents( cellGeometry( row, column ), erase );
|
||||
}
|
||||
|
||||
/*! Updates cell (\a row, \a column).
|
||||
|
||||
\sa QWidget::update()
|
||||
*/
|
||||
void QGridView::updateCell( int row, int column )
|
||||
{
|
||||
updateContents( cellGeometry( row, column ) );
|
||||
}
|
||||
|
||||
/*!
|
||||
Ensure cell (\a row, \a column) is visible, scrolling the grid view
|
||||
if necessary.
|
||||
*/
|
||||
void QGridView::ensureCellVisible( int row, int column )
|
||||
{
|
||||
QRect r = cellGeometry( row, column );
|
||||
ensureVisible( r.x(), r.y(), r.width(), r.height() );
|
||||
}
|
||||
|
||||
/*! This function fills the \a cw pixels wide and \a ch pixels high
|
||||
rectangle starting at position (\a cx, \a cy) with the
|
||||
background color using the painter \a p.
|
||||
|
||||
paintEmptyArea() is invoked by drawContents() to erase
|
||||
or fill unused areas.
|
||||
*/
|
||||
|
||||
void QGridView::paintEmptyArea( QPainter *p, int cx ,int cy, int cw, int ch)
|
||||
{
|
||||
if ( gridSize().width() >= contentsWidth() && gridSize().height() >= contentsHeight() )
|
||||
return;
|
||||
// Region of the rect we should draw
|
||||
contentsToViewport( cx, cy, cx, cy );
|
||||
QRegion reg( QRect( cx, cy, cw, ch ) );
|
||||
// Subtract the table from it
|
||||
reg = reg.subtract( QRect( contentsToViewport( QPoint( 0, 0 ) ), gridSize() ) );
|
||||
|
||||
// And draw the rectangles (transformed as needed)
|
||||
QArray<QRect> r = reg.rects();
|
||||
const QBrush &brush = colorGroup().brush(QColorGroup::Background);
|
||||
for ( int i = 0; i < (int)r.count(); ++i)
|
||||
p->fillRect( r[ i ], brush );
|
||||
}
|
||||
|
||||
/*!\reimp
|
||||
*/
|
||||
void QGridView::drawContents( QPainter *p, int cx, int cy, int cw, int ch )
|
||||
{
|
||||
int colfirst = columnAt( cx );
|
||||
int collast = columnAt( cx + cw );
|
||||
int rowfirst = rowAt( cy );
|
||||
int rowlast = rowAt( cy + ch );
|
||||
|
||||
if ( rowfirst == -1 || colfirst == -1 ) {
|
||||
paintEmptyArea( p, cx, cy, cw, ch );
|
||||
return;
|
||||
}
|
||||
|
||||
if ( collast < 0 || collast >= ncols )
|
||||
collast = ncols-1;
|
||||
if ( rowlast < 0 || rowlast >= nrows )
|
||||
rowlast = nrows-1;
|
||||
|
||||
// Go through the rows
|
||||
for ( int r = rowfirst; r <= rowlast; ++r ) {
|
||||
// get row position and height
|
||||
int rowp = r * cellh;
|
||||
|
||||
// Go through the columns in the row r
|
||||
// if we know from where to where, go through [colfirst, collast],
|
||||
// else go through all of them
|
||||
for ( int c = colfirst; c <= collast; ++c ) {
|
||||
// get position and width of column c
|
||||
int colp = c * cellw;
|
||||
// Translate painter and draw the cell
|
||||
p->translate( colp, rowp );
|
||||
paintCell( p, r, c );
|
||||
p->translate( -colp, -rowp );
|
||||
}
|
||||
}
|
||||
|
||||
// Paint empty rects
|
||||
paintEmptyArea( p, cx, cy, cw, ch );
|
||||
}
|
||||
|
||||
/*!
|
||||
\reimp
|
||||
|
||||
(Implemented to get rid of a compiler warning.)
|
||||
*/
|
||||
void QGridView::drawContents( QPainter * )
|
||||
{
|
||||
}
|
||||
|
||||
/*! \fn void QGridView::dimensionChange( int oldNumRows, int oldNumCols )
|
||||
|
||||
This change handler is called whenever any of the grid's dimensions
|
||||
changes. \a oldNumRows and \a oldNumCols contain the old dimensions,
|
||||
numRows() and numCols() contain the new dimensions.
|
||||
*/
|
||||
void QGridView::dimensionChange( int, int ) {}
|
||||
|
||||
|
||||
|
||||
/*! \fn int QGridView::rowAt( int y ) const
|
||||
|
||||
Returns the number of the row at position \a y. \a y must be given in
|
||||
content coordinates.
|
||||
|
||||
\sa columnAt()
|
||||
*/
|
||||
|
||||
/*! \fn int QGridView::columnAt( int x ) const
|
||||
|
||||
Returns the number of the column at position \a x. \a x must be
|
||||
given in content coordinates.
|
||||
|
||||
\sa rowAt()
|
||||
*/
|
||||
|
||||
/*!
|
||||
\fn void QGridView::paintCell( QPainter *p, int row, int col )
|
||||
|
||||
This pure virtual function is called to paint the single cell at
|
||||
(\a row, \a col) using painter \a p. The painter must be open when
|
||||
paintCell() is called and must remain open.
|
||||
|
||||
The coordinate system is \link QPainter::translate() translated \endlink
|
||||
so that the origin is at the top-left corner of the cell to be
|
||||
painted, i.e. \e cell coordinates. Do not scale or shear the coordinate
|
||||
system (or if you do, restore the transformation matrix before you
|
||||
return).
|
||||
|
||||
The painter is not clipped by default in order to get maximum
|
||||
efficiency. If you want clipping, use
|
||||
|
||||
\code
|
||||
p->setClipRect( cellRect(), QPainter::CoordPainter );
|
||||
//... your drawing code
|
||||
p->setClipping( FALSE );
|
||||
|
||||
\endcode
|
||||
|
||||
*/
|
||||
|
||||
/*! \fn QRect QGridView::cellRect() const
|
||||
|
||||
Returns the geometry of a cell in a cell's coordinate system. This
|
||||
is a convenience function useful in paintCell(). It is equivalent to
|
||||
QRect( 0, 0, cellWidth(), cellHeight() ).
|
||||
|
||||
\sa cellGeometry()
|
||||
|
||||
*/
|
||||
|
||||
/*!\fn QSize QGridView::gridSize() const
|
||||
|
||||
Returns the size of the grid in pixels.
|
||||
|
||||
*/
|
||||
|
||||
#endif // QT_NO_GRIDVIEW
|
134
src/frontends/qt2/qgridview.h
Normal file
134
src/frontends/qt2/qgridview.h
Normal file
@ -0,0 +1,134 @@
|
||||
/**********************************************************************
|
||||
** $Id: qgridview.h,v 1.1 2002/10/09 08:59:02 leuven Exp $
|
||||
**
|
||||
** Definition of QGridView class
|
||||
**
|
||||
** Created: 2001.05.23
|
||||
**
|
||||
** Copyright (C) 1992-2001 Trolltech AS. All rights reserved.
|
||||
**
|
||||
** This file is part of the widgets module of the Qt GUI Toolkit.
|
||||
**
|
||||
** This file may be distributed under the terms of the Q Public License
|
||||
** as defined by Trolltech AS of Norway and appearing in the file
|
||||
** LICENSE.QPL included in the packaging of this file.
|
||||
**
|
||||
** This file may be distributed and/or modified under the terms of the
|
||||
** GNU General Public License version 2 as published by the Free Software
|
||||
** Foundation and appearing in the file LICENSE.GPL included in the
|
||||
** packaging of this file.
|
||||
**
|
||||
** Licensees holding valid Qt Enterprise Edition or Qt Professional Edition
|
||||
** licenses may use this file in accordance with the Qt Commercial License
|
||||
** Agreement provided with the Software.
|
||||
**
|
||||
** This file is provided AS IS with NO WARRANTY OF ANY KIND, INCLUDING THE
|
||||
** WARRANTY OF DESIGN, MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE.
|
||||
**
|
||||
** See http://www.trolltech.com/pricing.html or email sales@trolltech.com for
|
||||
** information about Qt Commercial License Agreements.
|
||||
** See http://www.trolltech.com/qpl/ for QPL licensing information.
|
||||
** See http://www.trolltech.com/gpl/ for GPL licensing information.
|
||||
**
|
||||
** Contact info@trolltech.com if any conditions of this licensing are
|
||||
** not clear to you.
|
||||
**
|
||||
**********************************************************************/
|
||||
|
||||
#ifndef QGRIDVIEW_H
|
||||
#define QGRIDVIEW_H
|
||||
|
||||
#include <qscrollview.h>
|
||||
|
||||
#ifndef QT_NO_GRIDVIEW
|
||||
|
||||
class QGridViewPrivate;
|
||||
|
||||
class Q_EXPORT QGridView : public QScrollView
|
||||
{
|
||||
Q_OBJECT
|
||||
Q_PROPERTY( int numRows READ numRows WRITE setNumRows )
|
||||
Q_PROPERTY( int numCols READ numCols WRITE setNumCols )
|
||||
Q_PROPERTY( int cellWidth READ cellWidth WRITE setCellWidth )
|
||||
Q_PROPERTY( int cellHeight READ cellHeight WRITE setCellHeight )
|
||||
public:
|
||||
|
||||
QGridView( QWidget *parent=0, const char *name=0, WFlags f=0 );
|
||||
~QGridView();
|
||||
|
||||
int numRows() const;
|
||||
virtual void setNumRows( int );
|
||||
int numCols() const;
|
||||
virtual void setNumCols( int );
|
||||
|
||||
int cellWidth() const;
|
||||
virtual void setCellWidth( int );
|
||||
int cellHeight() const;
|
||||
virtual void setCellHeight( int );
|
||||
|
||||
QRect cellRect() const;
|
||||
QRect cellGeometry( int row, int column );
|
||||
QSize gridSize() const;
|
||||
|
||||
int rowAt( int y ) const;
|
||||
int columnAt( int x ) const;
|
||||
|
||||
void repaintCell( int row, int column, bool erase=TRUE );
|
||||
void updateCell( int row, int column );
|
||||
void ensureCellVisible( int row, int column );
|
||||
|
||||
protected:
|
||||
virtual void paintCell( QPainter *, int row, int col ) = 0;
|
||||
virtual void paintEmptyArea( QPainter *p, int cx, int cy, int cw, int ch );
|
||||
|
||||
void drawContents( QPainter *p, int cx, int cy, int cw, int ch );
|
||||
|
||||
virtual void dimensionChange( int, int );
|
||||
|
||||
private:
|
||||
void drawContents( QPainter* );
|
||||
void updateGrid();
|
||||
|
||||
int nrows;
|
||||
int ncols;
|
||||
int cellw;
|
||||
int cellh;
|
||||
QGridViewPrivate* d;
|
||||
|
||||
private: // Disabled copy constructor and operator=
|
||||
#if defined(Q_DISABLE_COPY)
|
||||
QGridView( const QGridView & );
|
||||
QGridView &operator=( const QGridView & );
|
||||
#endif
|
||||
};
|
||||
|
||||
inline int QGridView::cellWidth() const
|
||||
{ return cellw; }
|
||||
|
||||
inline int QGridView::cellHeight() const
|
||||
{ return cellh; }
|
||||
|
||||
inline int QGridView::rowAt( int y ) const
|
||||
{ return y / cellh; }
|
||||
|
||||
inline int QGridView::columnAt( int x ) const
|
||||
{ return x / cellw; }
|
||||
|
||||
inline int QGridView::numRows() const
|
||||
{ return nrows; }
|
||||
|
||||
inline int QGridView::numCols() const
|
||||
{return ncols; }
|
||||
|
||||
inline QRect QGridView::cellRect() const
|
||||
{ return QRect( 0, 0, cellw, cellh ); }
|
||||
|
||||
inline QSize QGridView::gridSize() const
|
||||
{ return QSize( ncols * cellw, nrows * cellh ); }
|
||||
|
||||
|
||||
|
||||
#endif // QT_NO_GRIDVIEW
|
||||
|
||||
|
||||
#endif // QTABLEVIEW_H
|
125
src/frontends/qt2/ui/BiblioModuleBase.ui
Normal file
125
src/frontends/qt2/ui/BiblioModuleBase.ui
Normal file
@ -0,0 +1,125 @@
|
||||
<!DOCTYPE UI><UI>
|
||||
<class>BiblioModuleBase</class>
|
||||
<include location="global">config.h</include>
|
||||
<include location="local">gettext.h</include>
|
||||
<widget>
|
||||
<class>QWidget</class>
|
||||
<property stdset="1">
|
||||
<name>name</name>
|
||||
<cstring>BiblioModuleBase</cstring>
|
||||
</property>
|
||||
<property stdset="1">
|
||||
<name>geometry</name>
|
||||
<rect>
|
||||
<x>0</x>
|
||||
<y>0</y>
|
||||
<width>180</width>
|
||||
<height>130</height>
|
||||
</rect>
|
||||
</property>
|
||||
<property stdset="1">
|
||||
<name>caption</name>
|
||||
<string>Form1</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>QGroupBox</class>
|
||||
<property stdset="1">
|
||||
<name>name</name>
|
||||
<cstring>GroupBox3</cstring>
|
||||
</property>
|
||||
<property stdset="1">
|
||||
<name>sizePolicy</name>
|
||||
<sizepolicy>
|
||||
<hsizetype>7</hsizetype>
|
||||
<vsizetype>5</vsizetype>
|
||||
</sizepolicy>
|
||||
</property>
|
||||
<property stdset="1">
|
||||
<name>title</name>
|
||||
<string>Style</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" rowspan="1" colspan="2" >
|
||||
<class>QCheckBox</class>
|
||||
<property stdset="1">
|
||||
<name>name</name>
|
||||
<cstring>natbibCB</cstring>
|
||||
</property>
|
||||
<property stdset="1">
|
||||
<name>text</name>
|
||||
<string>Use &NatBib</string>
|
||||
</property>
|
||||
</widget>
|
||||
<widget row="1" column="0" >
|
||||
<class>QLabel</class>
|
||||
<property stdset="1">
|
||||
<name>name</name>
|
||||
<cstring>citationStyleL</cstring>
|
||||
</property>
|
||||
<property stdset="1">
|
||||
<name>enabled</name>
|
||||
<bool>false</bool>
|
||||
</property>
|
||||
<property stdset="1">
|
||||
<name>text</name>
|
||||
<string>Cite &Style:</string>
|
||||
</property>
|
||||
<property>
|
||||
<name>buddy</name>
|
||||
<cstring>citeStyleCO</cstring>
|
||||
</property>
|
||||
</widget>
|
||||
<widget row="1" column="1" >
|
||||
<class>QComboBox</class>
|
||||
<property stdset="1">
|
||||
<name>name</name>
|
||||
<cstring>citeStyleCO</cstring>
|
||||
</property>
|
||||
<property stdset="1">
|
||||
<name>enabled</name>
|
||||
<bool>false</bool>
|
||||
</property>
|
||||
<property stdset="1">
|
||||
<name>sizePolicy</name>
|
||||
<sizepolicy>
|
||||
<hsizetype>7</hsizetype>
|
||||
<vsizetype>0</vsizetype>
|
||||
</sizepolicy>
|
||||
</property>
|
||||
</widget>
|
||||
</grid>
|
||||
</widget>
|
||||
</grid>
|
||||
</widget>
|
||||
<connections>
|
||||
<connection>
|
||||
<sender>natbibCB</sender>
|
||||
<signal>toggled(bool)</signal>
|
||||
<receiver>citationStyleL</receiver>
|
||||
<slot>setEnabled(bool)</slot>
|
||||
</connection>
|
||||
<connection>
|
||||
<sender>natbibCB</sender>
|
||||
<signal>toggled(bool)</signal>
|
||||
<receiver>citeStyleCO</receiver>
|
||||
<slot>setEnabled(bool)</slot>
|
||||
</connection>
|
||||
</connections>
|
||||
</UI>
|
244
src/frontends/qt2/ui/BulletsModuleBase.ui
Normal file
244
src/frontends/qt2/ui/BulletsModuleBase.ui
Normal file
@ -0,0 +1,244 @@
|
||||
<!DOCTYPE UI><UI>
|
||||
<class>BulletsModuleBase</class>
|
||||
<include location="global">config.h</include>
|
||||
<include location="local">gettext.h</include>
|
||||
<widget>
|
||||
<class>QWidget</class>
|
||||
<property stdset="1">
|
||||
<name>name</name>
|
||||
<cstring>BulletsModuleBase</cstring>
|
||||
</property>
|
||||
<property stdset="1">
|
||||
<name>geometry</name>
|
||||
<rect>
|
||||
<x>0</x>
|
||||
<y>0</y>
|
||||
<width>311</width>
|
||||
<height>210</height>
|
||||
</rect>
|
||||
</property>
|
||||
<property stdset="1">
|
||||
<name>caption</name>
|
||||
<string>Form3</string>
|
||||
</property>
|
||||
<property stdset="1">
|
||||
<name>mouseTracking</name>
|
||||
<bool>true</bool>
|
||||
</property>
|
||||
<grid>
|
||||
<property stdset="1">
|
||||
<name>margin</name>
|
||||
<number>11</number>
|
||||
</property>
|
||||
<property stdset="1">
|
||||
<name>spacing</name>
|
||||
<number>6</number>
|
||||
</property>
|
||||
<widget row="1" column="2" >
|
||||
<class>QComboBox</class>
|
||||
<property stdset="1">
|
||||
<name>name</name>
|
||||
<cstring>bulletsize1CO</cstring>
|
||||
</property>
|
||||
</widget>
|
||||
<widget row="1" column="1" >
|
||||
<class>QLineEdit</class>
|
||||
<property stdset="1">
|
||||
<name>name</name>
|
||||
<cstring>bullet1LE</cstring>
|
||||
</property>
|
||||
<property stdset="1">
|
||||
<name>sizePolicy</name>
|
||||
<sizepolicy>
|
||||
<hsizetype>3</hsizetype>
|
||||
<vsizetype>0</vsizetype>
|
||||
</sizepolicy>
|
||||
</property>
|
||||
</widget>
|
||||
<widget row="0" column="2" >
|
||||
<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 row="0" column="1" >
|
||||
<class>QLabel</class>
|
||||
<property stdset="1">
|
||||
<name>name</name>
|
||||
<cstring>latexL</cstring>
|
||||
</property>
|
||||
<property stdset="1">
|
||||
<name>text</name>
|
||||
<string>LaTeX:</string>
|
||||
</property>
|
||||
</widget>
|
||||
<spacer row="6" column="1" >
|
||||
<property>
|
||||
<name>name</name>
|
||||
<cstring>Spacer25</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="2" >
|
||||
<class>QComboBox</class>
|
||||
<property stdset="1">
|
||||
<name>name</name>
|
||||
<cstring>bulletsize3CO</cstring>
|
||||
</property>
|
||||
</widget>
|
||||
<widget row="3" column="1" >
|
||||
<class>QLineEdit</class>
|
||||
<property stdset="1">
|
||||
<name>name</name>
|
||||
<cstring>bullet3LE</cstring>
|
||||
</property>
|
||||
</widget>
|
||||
<widget row="4" column="2" >
|
||||
<class>QComboBox</class>
|
||||
<property stdset="1">
|
||||
<name>name</name>
|
||||
<cstring>bulletsize4CO</cstring>
|
||||
</property>
|
||||
</widget>
|
||||
<widget row="4" column="1" >
|
||||
<class>QLineEdit</class>
|
||||
<property stdset="1">
|
||||
<name>name</name>
|
||||
<cstring>bullet4LE</cstring>
|
||||
</property>
|
||||
</widget>
|
||||
<widget row="5" column="2" >
|
||||
<class>QComboBox</class>
|
||||
<property stdset="1">
|
||||
<name>name</name>
|
||||
<cstring>bulletsize5CO</cstring>
|
||||
</property>
|
||||
</widget>
|
||||
<widget row="5" column="1" >
|
||||
<class>QLineEdit</class>
|
||||
<property stdset="1">
|
||||
<name>name</name>
|
||||
<cstring>bullet5LE</cstring>
|
||||
</property>
|
||||
</widget>
|
||||
<widget row="2" column="2" >
|
||||
<class>QComboBox</class>
|
||||
<property stdset="1">
|
||||
<name>name</name>
|
||||
<cstring>bulletsize2CO</cstring>
|
||||
</property>
|
||||
</widget>
|
||||
<widget row="2" column="1" >
|
||||
<class>QLineEdit</class>
|
||||
<property stdset="1">
|
||||
<name>name</name>
|
||||
<cstring>bullet2LE</cstring>
|
||||
</property>
|
||||
</widget>
|
||||
<widget row="2" column="0" >
|
||||
<class>QToolButton</class>
|
||||
<property stdset="1">
|
||||
<name>name</name>
|
||||
<cstring>setbullet2TB</cstring>
|
||||
</property>
|
||||
<property stdset="1">
|
||||
<name>text</name>
|
||||
<string>Set Level 2:</string>
|
||||
</property>
|
||||
<property stdset="1">
|
||||
<name>popupDelay</name>
|
||||
<number>0</number>
|
||||
</property>
|
||||
</widget>
|
||||
<widget row="3" column="0" >
|
||||
<class>QToolButton</class>
|
||||
<property stdset="1">
|
||||
<name>name</name>
|
||||
<cstring>setbullet3TB</cstring>
|
||||
</property>
|
||||
<property stdset="1">
|
||||
<name>text</name>
|
||||
<string>Set Level 3:</string>
|
||||
</property>
|
||||
<property stdset="1">
|
||||
<name>popupDelay</name>
|
||||
<number>0</number>
|
||||
</property>
|
||||
</widget>
|
||||
<widget row="4" column="0" >
|
||||
<class>QToolButton</class>
|
||||
<property stdset="1">
|
||||
<name>name</name>
|
||||
<cstring>setbullet4TB</cstring>
|
||||
</property>
|
||||
<property stdset="1">
|
||||
<name>text</name>
|
||||
<string>Set Level 4:</string>
|
||||
</property>
|
||||
<property stdset="1">
|
||||
<name>popupDelay</name>
|
||||
<number>1</number>
|
||||
</property>
|
||||
</widget>
|
||||
<widget row="5" column="0" >
|
||||
<class>QToolButton</class>
|
||||
<property stdset="1">
|
||||
<name>name</name>
|
||||
<cstring>setbullet5TB</cstring>
|
||||
</property>
|
||||
<property stdset="1">
|
||||
<name>text</name>
|
||||
<string>Set Level 5:</string>
|
||||
</property>
|
||||
</widget>
|
||||
<widget row="1" column="0" >
|
||||
<class>QToolButton</class>
|
||||
<property stdset="1">
|
||||
<name>name</name>
|
||||
<cstring>setbullet1TB</cstring>
|
||||
</property>
|
||||
<property stdset="1">
|
||||
<name>text</name>
|
||||
<string>Set Level 1:</string>
|
||||
</property>
|
||||
<property stdset="1">
|
||||
<name>popupDelay</name>
|
||||
<number>0</number>
|
||||
</property>
|
||||
</widget>
|
||||
</grid>
|
||||
</widget>
|
||||
<connections>
|
||||
<connection>
|
||||
<sender>setbullet1TB</sender>
|
||||
<signal>pressed()</signal>
|
||||
<receiver>BulletsModuleBase</receiver>
|
||||
<slot>setLevel1()</slot>
|
||||
</connection>
|
||||
<slot access="public">setLevel1()</slot>
|
||||
<slot access="public">setLevel2()</slot>
|
||||
<slot access="public">setLevel3()</slot>
|
||||
<slot access="public">setLevel4()</slot>
|
||||
<slot access="public">setLevel5()</slot>
|
||||
<slot access="public">updateBulletSet(int)</slot>
|
||||
</connections>
|
||||
</UI>
|
295
src/frontends/qt2/ui/ClassModuleBase.ui
Normal file
295
src/frontends/qt2/ui/ClassModuleBase.ui
Normal file
@ -0,0 +1,295 @@
|
||||
<!DOCTYPE UI><UI>
|
||||
<class>ClassModuleBase</class>
|
||||
<include location="global">config.h</include>
|
||||
<include location="local">gettext.h</include>
|
||||
<widget>
|
||||
<class>QWidget</class>
|
||||
<property stdset="1">
|
||||
<name>name</name>
|
||||
<cstring>ClassModuleBase</cstring>
|
||||
</property>
|
||||
<property stdset="1">
|
||||
<name>geometry</name>
|
||||
<rect>
|
||||
<x>0</x>
|
||||
<y>0</y>
|
||||
<width>321</width>
|
||||
<height>287</height>
|
||||
</rect>
|
||||
</property>
|
||||
<property stdset="1">
|
||||
<name>caption</name>
|
||||
<string>Form2</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>classL</cstring>
|
||||
</property>
|
||||
<property stdset="1">
|
||||
<name>text</name>
|
||||
<string>Document &Type:</string>
|
||||
</property>
|
||||
<property>
|
||||
<name>buddy</name>
|
||||
<cstring>classCO</cstring>
|
||||
</property>
|
||||
</widget>
|
||||
<widget row="0" column="1" rowspan="1" colspan="2" >
|
||||
<class>QComboBox</class>
|
||||
<property stdset="1">
|
||||
<name>name</name>
|
||||
<cstring>classCO</cstring>
|
||||
</property>
|
||||
<property stdset="1">
|
||||
<name>sizePolicy</name>
|
||||
<sizepolicy>
|
||||
<hsizetype>3</hsizetype>
|
||||
<vsizetype>0</vsizetype>
|
||||
</sizepolicy>
|
||||
</property>
|
||||
</widget>
|
||||
<widget row="1" column="1" rowspan="1" colspan="2" >
|
||||
<class>QLineEdit</class>
|
||||
<property stdset="1">
|
||||
<name>name</name>
|
||||
<cstring>optionsLE</cstring>
|
||||
</property>
|
||||
</widget>
|
||||
<widget row="1" column="0" >
|
||||
<class>QLabel</class>
|
||||
<property stdset="1">
|
||||
<name>name</name>
|
||||
<cstring>optionsL</cstring>
|
||||
</property>
|
||||
<property stdset="1">
|
||||
<name>text</name>
|
||||
<string>Op&tions:</string>
|
||||
</property>
|
||||
<property>
|
||||
<name>buddy</name>
|
||||
<cstring>optionsLE</cstring>
|
||||
</property>
|
||||
</widget>
|
||||
<widget row="2" column="1" rowspan="1" colspan="2" >
|
||||
<class>QComboBox</class>
|
||||
<property stdset="1">
|
||||
<name>name</name>
|
||||
<cstring>pagestyleCO</cstring>
|
||||
</property>
|
||||
<property stdset="1">
|
||||
<name>sizePolicy</name>
|
||||
<sizepolicy>
|
||||
<hsizetype>3</hsizetype>
|
||||
<vsizetype>0</vsizetype>
|
||||
</sizepolicy>
|
||||
</property>
|
||||
</widget>
|
||||
<widget row="2" column="0" >
|
||||
<class>QLabel</class>
|
||||
<property stdset="1">
|
||||
<name>name</name>
|
||||
<cstring>pagestyleL</cstring>
|
||||
</property>
|
||||
<property stdset="1">
|
||||
<name>text</name>
|
||||
<string>Page &Style:</string>
|
||||
</property>
|
||||
<property>
|
||||
<name>buddy</name>
|
||||
<cstring>pagestyleCO</cstring>
|
||||
</property>
|
||||
</widget>
|
||||
<widget row="3" column="1" >
|
||||
<class>QComboBox</class>
|
||||
<property stdset="1">
|
||||
<name>name</name>
|
||||
<cstring>fontsCO</cstring>
|
||||
</property>
|
||||
<property stdset="1">
|
||||
<name>sizePolicy</name>
|
||||
<sizepolicy>
|
||||
<hsizetype>3</hsizetype>
|
||||
<vsizetype>0</vsizetype>
|
||||
</sizepolicy>
|
||||
</property>
|
||||
</widget>
|
||||
<widget row="3" column="2" >
|
||||
<class>QComboBox</class>
|
||||
<property stdset="1">
|
||||
<name>name</name>
|
||||
<cstring>fontsizeCO</cstring>
|
||||
</property>
|
||||
</widget>
|
||||
<widget row="3" column="0" >
|
||||
<class>QLabel</class>
|
||||
<property stdset="1">
|
||||
<name>name</name>
|
||||
<cstring>fontsL</cstring>
|
||||
</property>
|
||||
<property stdset="1">
|
||||
<name>text</name>
|
||||
<string>&Font && Size:</string>
|
||||
</property>
|
||||
<property>
|
||||
<name>buddy</name>
|
||||
<cstring>fontsCO</cstring>
|
||||
</property>
|
||||
</widget>
|
||||
<widget row="4" column="0" >
|
||||
<class>QLabel</class>
|
||||
<property stdset="1">
|
||||
<name>name</name>
|
||||
<cstring>floatPlacementL</cstring>
|
||||
</property>
|
||||
<property stdset="1">
|
||||
<name>enabled</name>
|
||||
<bool>true</bool>
|
||||
</property>
|
||||
<property stdset="1">
|
||||
<name>text</name>
|
||||
<string>Float &placement:</string>
|
||||
</property>
|
||||
<property>
|
||||
<name>buddy</name>
|
||||
<cstring>floatPlacementLE</cstring>
|
||||
</property>
|
||||
</widget>
|
||||
<widget row="4" column="1" >
|
||||
<class>QLineEdit</class>
|
||||
<property stdset="1">
|
||||
<name>name</name>
|
||||
<cstring>floatPlacementLE</cstring>
|
||||
</property>
|
||||
</widget>
|
||||
<widget row="5" column="0" rowspan="1" colspan="3" >
|
||||
<class>QButtonGroup</class>
|
||||
<property stdset="1">
|
||||
<name>name</name>
|
||||
<cstring>separationG</cstring>
|
||||
</property>
|
||||
<property stdset="1">
|
||||
<name>title</name>
|
||||
<string>Separation</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="2" column="0" >
|
||||
<class>QComboBox</class>
|
||||
<property stdset="1">
|
||||
<name>name</name>
|
||||
<cstring>skipCO</cstring>
|
||||
</property>
|
||||
<property stdset="1">
|
||||
<name>enabled</name>
|
||||
<bool>false</bool>
|
||||
</property>
|
||||
</widget>
|
||||
<widget row="2" column="1" >
|
||||
<class>QLineEdit</class>
|
||||
<property stdset="1">
|
||||
<name>name</name>
|
||||
<cstring>skipLE</cstring>
|
||||
</property>
|
||||
<property stdset="1">
|
||||
<name>enabled</name>
|
||||
<bool>false</bool>
|
||||
</property>
|
||||
<property stdset="1">
|
||||
<name>sizePolicy</name>
|
||||
<sizepolicy>
|
||||
<hsizetype>1</hsizetype>
|
||||
<vsizetype>0</vsizetype>
|
||||
</sizepolicy>
|
||||
</property>
|
||||
</widget>
|
||||
<widget row="0" column="0" >
|
||||
<class>QRadioButton</class>
|
||||
<property stdset="1">
|
||||
<name>name</name>
|
||||
<cstring>indentRB</cstring>
|
||||
</property>
|
||||
<property stdset="1">
|
||||
<name>text</name>
|
||||
<string>&Indent</string>
|
||||
</property>
|
||||
</widget>
|
||||
<widget row="1" column="0" >
|
||||
<class>QRadioButton</class>
|
||||
<property stdset="1">
|
||||
<name>name</name>
|
||||
<cstring>skipRB</cstring>
|
||||
</property>
|
||||
<property stdset="1">
|
||||
<name>text</name>
|
||||
<string>S&kip</string>
|
||||
</property>
|
||||
</widget>
|
||||
<widget row="2" column="2" >
|
||||
<class>LengthCombo</class>
|
||||
<property stdset="1">
|
||||
<name>name</name>
|
||||
<cstring>skipLengthCO</cstring>
|
||||
</property>
|
||||
<property stdset="1">
|
||||
<name>enabled</name>
|
||||
<bool>false</bool>
|
||||
</property>
|
||||
</widget>
|
||||
</grid>
|
||||
</widget>
|
||||
</grid>
|
||||
</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>
|
||||
<tabstops>
|
||||
<tabstop>classCO</tabstop>
|
||||
<tabstop>optionsLE</tabstop>
|
||||
<tabstop>pagestyleCO</tabstop>
|
||||
<tabstop>fontsCO</tabstop>
|
||||
<tabstop>fontsizeCO</tabstop>
|
||||
<tabstop>floatPlacementLE</tabstop>
|
||||
<tabstop>indentRB</tabstop>
|
||||
<tabstop>skipRB</tabstop>
|
||||
<tabstop>skipCO</tabstop>
|
||||
<tabstop>skipLE</tabstop>
|
||||
</tabstops>
|
||||
</UI>
|
161
src/frontends/qt2/ui/LanguageModuleBase.ui
Normal file
161
src/frontends/qt2/ui/LanguageModuleBase.ui
Normal file
@ -0,0 +1,161 @@
|
||||
<!DOCTYPE UI><UI>
|
||||
<class>LanguageModuleBase</class>
|
||||
<include location="global">config.h</include>
|
||||
<include location="global">gettext.h</include>
|
||||
<widget>
|
||||
<class>QWidget</class>
|
||||
<property stdset="1">
|
||||
<name>name</name>
|
||||
<cstring>LanguageModuleBase</cstring>
|
||||
</property>
|
||||
<property stdset="1">
|
||||
<name>geometry</name>
|
||||
<rect>
|
||||
<x>0</x>
|
||||
<y>0</y>
|
||||
<width>286</width>
|
||||
<height>170</height>
|
||||
</rect>
|
||||
</property>
|
||||
<property stdset="1">
|
||||
<name>caption</name>
|
||||
<string>Form1</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>languageL</cstring>
|
||||
</property>
|
||||
<property stdset="1">
|
||||
<name>text</name>
|
||||
<string>&Language:</string>
|
||||
</property>
|
||||
<property>
|
||||
<name>buddy</name>
|
||||
<cstring>languageCO</cstring>
|
||||
</property>
|
||||
</widget>
|
||||
<widget row="0" column="1" >
|
||||
<class>QComboBox</class>
|
||||
<property stdset="1">
|
||||
<name>name</name>
|
||||
<cstring>languageCO</cstring>
|
||||
</property>
|
||||
<property stdset="1">
|
||||
<name>sizePolicy</name>
|
||||
<sizepolicy>
|
||||
<hsizetype>7</hsizetype>
|
||||
<vsizetype>0</vsizetype>
|
||||
</sizepolicy>
|
||||
</property>
|
||||
</widget>
|
||||
<widget row="1" column="0" rowspan="1" colspan="2" >
|
||||
<class>QButtonGroup</class>
|
||||
<property stdset="1">
|
||||
<name>name</name>
|
||||
<cstring>quoteBG</cstring>
|
||||
</property>
|
||||
<property stdset="1">
|
||||
<name>title</name>
|
||||
<string>Quote style</string>
|
||||
</property>
|
||||
<property stdset="1">
|
||||
<name>exclusive</name>
|
||||
<bool>true</bool>
|
||||
</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>QRadioButton</class>
|
||||
<property stdset="1">
|
||||
<name>name</name>
|
||||
<cstring>singleQuoteRB</cstring>
|
||||
</property>
|
||||
<property stdset="1">
|
||||
<name>text</name>
|
||||
<string>&Single</string>
|
||||
</property>
|
||||
</widget>
|
||||
<widget row="1" column="0" >
|
||||
<class>QRadioButton</class>
|
||||
<property stdset="1">
|
||||
<name>name</name>
|
||||
<cstring>doubleQuoteRB</cstring>
|
||||
</property>
|
||||
<property stdset="1">
|
||||
<name>text</name>
|
||||
<string>&Double</string>
|
||||
</property>
|
||||
</widget>
|
||||
<widget row="2" column="1" >
|
||||
<class>QComboBox</class>
|
||||
<property stdset="1">
|
||||
<name>name</name>
|
||||
<cstring>quoteStyleCO</cstring>
|
||||
</property>
|
||||
<property stdset="1">
|
||||
<name>sizePolicy</name>
|
||||
<sizepolicy>
|
||||
<hsizetype>7</hsizetype>
|
||||
<vsizetype>0</vsizetype>
|
||||
</sizepolicy>
|
||||
</property>
|
||||
</widget>
|
||||
<widget row="2" column="0" >
|
||||
<class>QLabel</class>
|
||||
<property stdset="1">
|
||||
<name>name</name>
|
||||
<cstring>typeL</cstring>
|
||||
</property>
|
||||
<property stdset="1">
|
||||
<name>text</name>
|
||||
<string>&Type:</string>
|
||||
</property>
|
||||
<property>
|
||||
<name>buddy</name>
|
||||
<cstring>quoteStyleCO</cstring>
|
||||
</property>
|
||||
</widget>
|
||||
<spacer row="3" column="1" >
|
||||
<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>
|
||||
</grid>
|
||||
</widget>
|
||||
</grid>
|
||||
</widget>
|
||||
</UI>
|
@ -31,6 +31,53 @@ QAskForTextDialog.h: QAskForTextDialog.ui
|
||||
QAskForTextDialog.C: QAskForTextDialog.h QAskForTextDialog.ui
|
||||
$(UIC) -impl $^ | $(SED) '$(SEDREPLACETR);$(SEDREMOVEEMPTY)' > $@
|
||||
|
||||
ClassModuleBase.h: ClassModuleBase.ui
|
||||
$(UIC) $< -o $@
|
||||
ClassModuleBase.C: ClassModuleBase.h ClassModuleBase.ui
|
||||
$(UIC) -impl $^ | $(SED) '$(SEDREPLACETR);$(SEDREMOVEEMPTY)' > $@
|
||||
|
||||
BulletsModuleBase.h: BulletsModuleBase.ui
|
||||
$(UIC) $< -o $@
|
||||
BulletsModuleBase.C: BulletsModuleBase.h BulletsModuleBase.ui
|
||||
$(UIC) -impl $^ | $(SED) '$(SEDREPLACETR);$(SEDREMOVEEMPTY)' > $@
|
||||
|
||||
PackagesModuleBase.h: PackagesModuleBase.ui
|
||||
$(UIC) $< -o $@
|
||||
PackagesModuleBase.C: PackagesModuleBase.h PackagesModuleBase.ui
|
||||
$(UIC) -impl $^ | $(SED) '$(SEDREPLACETR);$(SEDREMOVEEMPTY)' > $@
|
||||
|
||||
PaperModuleBase.h: PaperModuleBase.ui
|
||||
$(UIC) $< -o $@
|
||||
PaperModuleBase.C: PaperModuleBase.h PaperModuleBase.ui
|
||||
$(UIC) -impl $^ | $(SED) '$(SEDREPLACETR);$(SEDREMOVEEMPTY)' > $@
|
||||
|
||||
MarginsModuleBase.h: MarginsModuleBase.ui
|
||||
$(UIC) $< -o $@
|
||||
MarginsModuleBase.C: MarginsModuleBase.h MarginsModuleBase.ui
|
||||
$(UIC) -impl $^ | $(SED) '$(SEDREPLACETR);$(SEDREMOVEEMPTY)' > $@
|
||||
|
||||
LanguageModuleBase.h: LanguageModuleBase.ui
|
||||
$(UIC) $< -o $@
|
||||
LanguageModuleBase.C: LanguageModuleBase.h LanguageModuleBase.ui
|
||||
$(UIC) -impl $^ | $(SED) '$(SEDREPLACETR);$(SEDREMOVEEMPTY)' > $@
|
||||
|
||||
NumberingModuleBase.h: NumberingModuleBase.ui
|
||||
$(UIC) $< -o $@
|
||||
NumberingModuleBase.C: NumberingModuleBase.h NumberingModuleBase.ui
|
||||
$(UIC) -impl $^ | $(SED) '$(SEDREPLACETR);$(SEDREMOVEEMPTY)' > $@
|
||||
|
||||
BiblioModuleBase.h: BiblioModuleBase.ui
|
||||
$(UIC) $< -o $@
|
||||
BiblioModuleBase.C: BiblioModuleBase.h BiblioModuleBase.ui
|
||||
$(UIC) -impl $^ | $(SED) '$(SEDREPLACETR);$(SEDREMOVEEMPTY)' > $@
|
||||
|
||||
PreambleModuleBase.h: PreambleModuleBase.ui
|
||||
$(UIC) $< -o $@
|
||||
PreambleModuleBase.C: PreambleModuleBase.h PreambleModuleBase.ui
|
||||
$(UIC) -impl $^ | $(SED) '$(SEDREPLACETR);$(SEDREMOVEEMPTY)' > $@
|
||||
|
||||
|
||||
|
||||
%Base.h: %.ui
|
||||
$(UIC) $< -o $@
|
||||
%Base.C: %Base.h %.ui
|
||||
|
413
src/frontends/qt2/ui/MarginsModuleBase.ui
Normal file
413
src/frontends/qt2/ui/MarginsModuleBase.ui
Normal file
@ -0,0 +1,413 @@
|
||||
<!DOCTYPE UI><UI>
|
||||
<class>MarginsModuleBase</class>
|
||||
<include location="global">config.h</include>
|
||||
<include location="local">gettext.h</include>
|
||||
<widget>
|
||||
<class>QWidget</class>
|
||||
<property stdset="1">
|
||||
<name>name</name>
|
||||
<cstring>MarginsModuleBase</cstring>
|
||||
</property>
|
||||
<property stdset="1">
|
||||
<name>geometry</name>
|
||||
<rect>
|
||||
<x>0</x>
|
||||
<y>0</y>
|
||||
<width>183</width>
|
||||
<height>260</height>
|
||||
</rect>
|
||||
</property>
|
||||
<property stdset="1">
|
||||
<name>caption</name>
|
||||
<string>Form1</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="1" column="0" >
|
||||
<class>QLabel</class>
|
||||
<property stdset="1">
|
||||
<name>name</name>
|
||||
<cstring>topL</cstring>
|
||||
</property>
|
||||
<property stdset="1">
|
||||
<name>enabled</name>
|
||||
<bool>false</bool>
|
||||
</property>
|
||||
<property stdset="1">
|
||||
<name>text</name>
|
||||
<string>&Top:</string>
|
||||
</property>
|
||||
<property>
|
||||
<name>buddy</name>
|
||||
<cstring>topLE</cstring>
|
||||
</property>
|
||||
</widget>
|
||||
<widget row="2" column="0" >
|
||||
<class>QLabel</class>
|
||||
<property stdset="1">
|
||||
<name>name</name>
|
||||
<cstring>bottomL</cstring>
|
||||
</property>
|
||||
<property stdset="1">
|
||||
<name>enabled</name>
|
||||
<bool>false</bool>
|
||||
</property>
|
||||
<property stdset="1">
|
||||
<name>text</name>
|
||||
<string>&Bottom:</string>
|
||||
</property>
|
||||
<property>
|
||||
<name>buddy</name>
|
||||
<cstring>bottomLE</cstring>
|
||||
</property>
|
||||
</widget>
|
||||
<widget row="3" column="0" >
|
||||
<class>QLabel</class>
|
||||
<property stdset="1">
|
||||
<name>name</name>
|
||||
<cstring>innerL</cstring>
|
||||
</property>
|
||||
<property stdset="1">
|
||||
<name>enabled</name>
|
||||
<bool>false</bool>
|
||||
</property>
|
||||
<property stdset="1">
|
||||
<name>text</name>
|
||||
<string>&Inner:</string>
|
||||
</property>
|
||||
<property>
|
||||
<name>buddy</name>
|
||||
<cstring>innerLE</cstring>
|
||||
</property>
|
||||
</widget>
|
||||
<widget row="4" column="0" >
|
||||
<class>QLabel</class>
|
||||
<property stdset="1">
|
||||
<name>name</name>
|
||||
<cstring>outerL</cstring>
|
||||
</property>
|
||||
<property stdset="1">
|
||||
<name>enabled</name>
|
||||
<bool>false</bool>
|
||||
</property>
|
||||
<property stdset="1">
|
||||
<name>text</name>
|
||||
<string>O&uter:</string>
|
||||
</property>
|
||||
<property>
|
||||
<name>buddy</name>
|
||||
<cstring>outerLE</cstring>
|
||||
</property>
|
||||
</widget>
|
||||
<widget row="0" column="0" >
|
||||
<class>QLabel</class>
|
||||
<property stdset="1">
|
||||
<name>name</name>
|
||||
<cstring>marginL</cstring>
|
||||
</property>
|
||||
<property stdset="1">
|
||||
<name>text</name>
|
||||
<string>&Margins:</string>
|
||||
</property>
|
||||
<property>
|
||||
<name>buddy</name>
|
||||
<cstring>marginCO</cstring>
|
||||
</property>
|
||||
</widget>
|
||||
<widget row="1" column="1" >
|
||||
<class>QLineEdit</class>
|
||||
<property stdset="1">
|
||||
<name>name</name>
|
||||
<cstring>topLE</cstring>
|
||||
</property>
|
||||
<property stdset="1">
|
||||
<name>enabled</name>
|
||||
<bool>false</bool>
|
||||
</property>
|
||||
</widget>
|
||||
<widget row="2" column="1" >
|
||||
<class>QLineEdit</class>
|
||||
<property stdset="1">
|
||||
<name>name</name>
|
||||
<cstring>bottomLE</cstring>
|
||||
</property>
|
||||
<property stdset="1">
|
||||
<name>enabled</name>
|
||||
<bool>false</bool>
|
||||
</property>
|
||||
<property stdset="1">
|
||||
<name>text</name>
|
||||
<string></string>
|
||||
</property>
|
||||
</widget>
|
||||
<widget row="4" column="1" >
|
||||
<class>QLineEdit</class>
|
||||
<property stdset="1">
|
||||
<name>name</name>
|
||||
<cstring>outerLE</cstring>
|
||||
</property>
|
||||
<property stdset="1">
|
||||
<name>enabled</name>
|
||||
<bool>false</bool>
|
||||
</property>
|
||||
</widget>
|
||||
<widget row="7" column="0" >
|
||||
<class>QLabel</class>
|
||||
<property stdset="1">
|
||||
<name>name</name>
|
||||
<cstring>footskipL</cstring>
|
||||
</property>
|
||||
<property stdset="1">
|
||||
<name>enabled</name>
|
||||
<bool>false</bool>
|
||||
</property>
|
||||
<property stdset="1">
|
||||
<name>text</name>
|
||||
<string>&Foot skip:</string>
|
||||
</property>
|
||||
<property>
|
||||
<name>buddy</name>
|
||||
<cstring>footskipLE</cstring>
|
||||
</property>
|
||||
</widget>
|
||||
<widget row="5" column="0" >
|
||||
<class>QLabel</class>
|
||||
<property stdset="1">
|
||||
<name>name</name>
|
||||
<cstring>headsepL</cstring>
|
||||
</property>
|
||||
<property stdset="1">
|
||||
<name>enabled</name>
|
||||
<bool>false</bool>
|
||||
</property>
|
||||
<property stdset="1">
|
||||
<name>text</name>
|
||||
<string>Head &sep:</string>
|
||||
</property>
|
||||
<property>
|
||||
<name>buddy</name>
|
||||
<cstring>headsepLE</cstring>
|
||||
</property>
|
||||
</widget>
|
||||
<widget row="5" column="1" >
|
||||
<class>QLineEdit</class>
|
||||
<property stdset="1">
|
||||
<name>name</name>
|
||||
<cstring>headsepLE</cstring>
|
||||
</property>
|
||||
<property stdset="1">
|
||||
<name>enabled</name>
|
||||
<bool>false</bool>
|
||||
</property>
|
||||
</widget>
|
||||
<widget row="6" column="1" >
|
||||
<class>QLineEdit</class>
|
||||
<property stdset="1">
|
||||
<name>name</name>
|
||||
<cstring>headheightLE</cstring>
|
||||
</property>
|
||||
<property stdset="1">
|
||||
<name>enabled</name>
|
||||
<bool>false</bool>
|
||||
</property>
|
||||
</widget>
|
||||
<widget row="6" column="0" >
|
||||
<class>QLabel</class>
|
||||
<property stdset="1">
|
||||
<name>name</name>
|
||||
<cstring>headheightL</cstring>
|
||||
</property>
|
||||
<property stdset="1">
|
||||
<name>enabled</name>
|
||||
<bool>false</bool>
|
||||
</property>
|
||||
<property stdset="1">
|
||||
<name>text</name>
|
||||
<string>Head &height:</string>
|
||||
</property>
|
||||
<property>
|
||||
<name>buddy</name>
|
||||
<cstring>headheightLE</cstring>
|
||||
</property>
|
||||
</widget>
|
||||
<widget row="7" column="1" >
|
||||
<class>QLineEdit</class>
|
||||
<property stdset="1">
|
||||
<name>name</name>
|
||||
<cstring>footskipLE</cstring>
|
||||
</property>
|
||||
<property stdset="1">
|
||||
<name>enabled</name>
|
||||
<bool>false</bool>
|
||||
</property>
|
||||
</widget>
|
||||
<spacer row="8" column="1" >
|
||||
<property>
|
||||
<name>name</name>
|
||||
<cstring>Spacer21</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="3" column="3" >
|
||||
<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>
|
||||
<widget row="1" column="2" >
|
||||
<class>LengthCombo</class>
|
||||
<property stdset="1">
|
||||
<name>name</name>
|
||||
<cstring>topUnit</cstring>
|
||||
</property>
|
||||
<property stdset="1">
|
||||
<name>enabled</name>
|
||||
<bool>false</bool>
|
||||
</property>
|
||||
</widget>
|
||||
<widget row="2" column="2" >
|
||||
<class>LengthCombo</class>
|
||||
<property stdset="1">
|
||||
<name>name</name>
|
||||
<cstring>bottomUnit</cstring>
|
||||
</property>
|
||||
<property stdset="1">
|
||||
<name>enabled</name>
|
||||
<bool>false</bool>
|
||||
</property>
|
||||
</widget>
|
||||
<widget row="3" column="2" >
|
||||
<class>LengthCombo</class>
|
||||
<property stdset="1">
|
||||
<name>name</name>
|
||||
<cstring>innerUnit</cstring>
|
||||
</property>
|
||||
<property stdset="1">
|
||||
<name>enabled</name>
|
||||
<bool>false</bool>
|
||||
</property>
|
||||
</widget>
|
||||
<widget row="3" column="1" >
|
||||
<class>QLineEdit</class>
|
||||
<property stdset="1">
|
||||
<name>name</name>
|
||||
<cstring>innerLE</cstring>
|
||||
</property>
|
||||
<property stdset="1">
|
||||
<name>enabled</name>
|
||||
<bool>false</bool>
|
||||
</property>
|
||||
</widget>
|
||||
<widget row="4" column="2" >
|
||||
<class>LengthCombo</class>
|
||||
<property stdset="1">
|
||||
<name>name</name>
|
||||
<cstring>outerUnit</cstring>
|
||||
</property>
|
||||
<property stdset="1">
|
||||
<name>enabled</name>
|
||||
<bool>false</bool>
|
||||
</property>
|
||||
</widget>
|
||||
<widget row="5" column="2" >
|
||||
<class>LengthCombo</class>
|
||||
<property stdset="1">
|
||||
<name>name</name>
|
||||
<cstring>headsepUnit</cstring>
|
||||
</property>
|
||||
<property stdset="1">
|
||||
<name>enabled</name>
|
||||
<bool>false</bool>
|
||||
</property>
|
||||
</widget>
|
||||
<widget row="6" column="2" >
|
||||
<class>LengthCombo</class>
|
||||
<property stdset="1">
|
||||
<name>name</name>
|
||||
<cstring>headheightUnit</cstring>
|
||||
</property>
|
||||
<property stdset="1">
|
||||
<name>enabled</name>
|
||||
<bool>false</bool>
|
||||
</property>
|
||||
</widget>
|
||||
<widget row="7" column="2" >
|
||||
<class>LengthCombo</class>
|
||||
<property stdset="1">
|
||||
<name>name</name>
|
||||
<cstring>footskipUnit</cstring>
|
||||
</property>
|
||||
<property stdset="1">
|
||||
<name>enabled</name>
|
||||
<bool>false</bool>
|
||||
</property>
|
||||
</widget>
|
||||
<widget row="0" column="1" rowspan="1" colspan="2" >
|
||||
<class>QComboBox</class>
|
||||
<property stdset="1">
|
||||
<name>name</name>
|
||||
<cstring>marginCO</cstring>
|
||||
</property>
|
||||
</widget>
|
||||
</grid>
|
||||
</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>
|
||||
</UI>
|
141
src/frontends/qt2/ui/NumberingModuleBase.ui
Normal file
141
src/frontends/qt2/ui/NumberingModuleBase.ui
Normal file
@ -0,0 +1,141 @@
|
||||
<!DOCTYPE UI><UI>
|
||||
<class>NumberingModuleBase</class>
|
||||
<include location="global">config.h</include>
|
||||
<include location="local">gettext.h</include>
|
||||
<widget>
|
||||
<class>QWidget</class>
|
||||
<property stdset="1">
|
||||
<name>name</name>
|
||||
<cstring>NumberingModuleBase</cstring>
|
||||
</property>
|
||||
<property stdset="1">
|
||||
<name>geometry</name>
|
||||
<rect>
|
||||
<x>0</x>
|
||||
<y>0</y>
|
||||
<width>214</width>
|
||||
<height>105</height>
|
||||
</rect>
|
||||
</property>
|
||||
<property stdset="1">
|
||||
<name>caption</name>
|
||||
<string>Form2</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>QGroupBox</class>
|
||||
<property stdset="1">
|
||||
<name>name</name>
|
||||
<cstring>GroupBox1</cstring>
|
||||
</property>
|
||||
<property stdset="1">
|
||||
<name>frameShape</name>
|
||||
<enum>Box</enum>
|
||||
</property>
|
||||
<property stdset="1">
|
||||
<name>title</name>
|
||||
<string>Numbering depth</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>sectionnrDepthL</cstring>
|
||||
</property>
|
||||
<property stdset="1">
|
||||
<name>text</name>
|
||||
<string>&Section:</string>
|
||||
</property>
|
||||
<property>
|
||||
<name>buddy</name>
|
||||
<cstring>sectionnrDepthSB</cstring>
|
||||
</property>
|
||||
</widget>
|
||||
<widget row="1" column="0" >
|
||||
<class>QLabel</class>
|
||||
<property stdset="1">
|
||||
<name>name</name>
|
||||
<cstring>tocDepthL</cstring>
|
||||
</property>
|
||||
<property stdset="1">
|
||||
<name>text</name>
|
||||
<string>&Table of Contents:</string>
|
||||
</property>
|
||||
<property>
|
||||
<name>buddy</name>
|
||||
<cstring>tocDepthSB</cstring>
|
||||
</property>
|
||||
</widget>
|
||||
<widget row="1" column="1" >
|
||||
<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>
|
||||
<widget row="0" column="1" >
|
||||
<class>QSpinBox</class>
|
||||
<property stdset="1">
|
||||
<name>name</name>
|
||||
<cstring>sectionnrDepthSB</cstring>
|
||||
</property>
|
||||
<property stdset="1">
|
||||
<name>maxValue</name>
|
||||
<number>5</number>
|
||||
</property>
|
||||
<property stdset="1">
|
||||
<name>minValue</name>
|
||||
<number>-2</number>
|
||||
</property>
|
||||
</widget>
|
||||
<spacer row="1" column="2" >
|
||||
<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>
|
||||
</grid>
|
||||
</widget>
|
||||
</grid>
|
||||
</widget>
|
||||
</UI>
|
204
src/frontends/qt2/ui/PackagesModuleBase.ui
Normal file
204
src/frontends/qt2/ui/PackagesModuleBase.ui
Normal file
@ -0,0 +1,204 @@
|
||||
<!DOCTYPE UI><UI>
|
||||
<class>PackagesModuleBase</class>
|
||||
<include location="global">config.h</include>
|
||||
<include location="local">gettext.h</include>
|
||||
<widget>
|
||||
<class>QWidget</class>
|
||||
<property stdset="1">
|
||||
<name>name</name>
|
||||
<cstring>PackagesModuleBase</cstring>
|
||||
</property>
|
||||
<property stdset="1">
|
||||
<name>geometry</name>
|
||||
<rect>
|
||||
<x>0</x>
|
||||
<y>0</y>
|
||||
<width>342</width>
|
||||
<height>201</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>QGroupBox</class>
|
||||
<property stdset="1">
|
||||
<name>name</name>
|
||||
<cstring>packagesG</cstring>
|
||||
</property>
|
||||
<property stdset="1">
|
||||
<name>title</name>
|
||||
<string>Packages</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="2" >
|
||||
<class>QLineEdit</class>
|
||||
<property stdset="1">
|
||||
<name>name</name>
|
||||
<cstring>lspacingLE</cstring>
|
||||
</property>
|
||||
<property stdset="1">
|
||||
<name>enabled</name>
|
||||
<bool>false</bool>
|
||||
</property>
|
||||
<property stdset="1">
|
||||
<name>sizePolicy</name>
|
||||
<sizepolicy>
|
||||
<hsizetype>1</hsizetype>
|
||||
<vsizetype>0</vsizetype>
|
||||
</sizepolicy>
|
||||
</property>
|
||||
</widget>
|
||||
<widget row="2" column="0" >
|
||||
<class>QCheckBox</class>
|
||||
<property stdset="1">
|
||||
<name>name</name>
|
||||
<cstring>amsCB</cstring>
|
||||
</property>
|
||||
<property stdset="1">
|
||||
<name>text</name>
|
||||
<string>AMS &Math</string>
|
||||
</property>
|
||||
</widget>
|
||||
<widget row="1" column="1" >
|
||||
<class>QComboBox</class>
|
||||
<property stdset="1">
|
||||
<name>name</name>
|
||||
<cstring>encodingCO</cstring>
|
||||
</property>
|
||||
<property stdset="1">
|
||||
<name>sizePolicy</name>
|
||||
<sizepolicy>
|
||||
<hsizetype>7</hsizetype>
|
||||
<vsizetype>0</vsizetype>
|
||||
</sizepolicy>
|
||||
</property>
|
||||
<property stdset="1">
|
||||
<name>duplicatesEnabled</name>
|
||||
<bool>false</bool>
|
||||
</property>
|
||||
</widget>
|
||||
<widget row="0" column="1" >
|
||||
<class>QComboBox</class>
|
||||
<property stdset="1">
|
||||
<name>name</name>
|
||||
<cstring>lspacingCO</cstring>
|
||||
</property>
|
||||
<property stdset="1">
|
||||
<name>sizePolicy</name>
|
||||
<sizepolicy>
|
||||
<hsizetype>3</hsizetype>
|
||||
<vsizetype>0</vsizetype>
|
||||
</sizepolicy>
|
||||
</property>
|
||||
<property stdset="1">
|
||||
<name>duplicatesEnabled</name>
|
||||
<bool>false</bool>
|
||||
</property>
|
||||
</widget>
|
||||
<widget row="0" column="0" >
|
||||
<class>QLabel</class>
|
||||
<property stdset="1">
|
||||
<name>name</name>
|
||||
<cstring>lspacingL</cstring>
|
||||
</property>
|
||||
<property stdset="1">
|
||||
<name>text</name>
|
||||
<string>Line Spacing:</string>
|
||||
</property>
|
||||
</widget>
|
||||
<widget row="1" column="0" >
|
||||
<class>QLabel</class>
|
||||
<property stdset="1">
|
||||
<name>name</name>
|
||||
<cstring>encodingL</cstring>
|
||||
</property>
|
||||
<property stdset="1">
|
||||
<name>text</name>
|
||||
<string>Encoding:</string>
|
||||
</property>
|
||||
</widget>
|
||||
</grid>
|
||||
</widget>
|
||||
<widget>
|
||||
<class>QGroupBox</class>
|
||||
<property stdset="1">
|
||||
<name>name</name>
|
||||
<cstring>packagesoptionsG</cstring>
|
||||
</property>
|
||||
<property stdset="1">
|
||||
<name>title</name>
|
||||
<string>Options</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>psdriverL</cstring>
|
||||
</property>
|
||||
<property stdset="1">
|
||||
<name>text</name>
|
||||
<string>Postscript &Driver:</string>
|
||||
</property>
|
||||
<property>
|
||||
<name>buddy</name>
|
||||
<cstring>psdriverCO</cstring>
|
||||
</property>
|
||||
</widget>
|
||||
<widget row="0" column="1" >
|
||||
<class>QComboBox</class>
|
||||
<property stdset="1">
|
||||
<name>name</name>
|
||||
<cstring>psdriverCO</cstring>
|
||||
</property>
|
||||
<property stdset="1">
|
||||
<name>sizePolicy</name>
|
||||
<sizepolicy>
|
||||
<hsizetype>3</hsizetype>
|
||||
<vsizetype>0</vsizetype>
|
||||
</sizepolicy>
|
||||
</property>
|
||||
<property stdset="1">
|
||||
<name>duplicatesEnabled</name>
|
||||
<bool>false</bool>
|
||||
</property>
|
||||
</widget>
|
||||
</grid>
|
||||
</widget>
|
||||
</vbox>
|
||||
</widget>
|
||||
<tabstops>
|
||||
<tabstop>lspacingCO</tabstop>
|
||||
<tabstop>lspacingLE</tabstop>
|
||||
<tabstop>encodingCO</tabstop>
|
||||
<tabstop>amsCB</tabstop>
|
||||
<tabstop>psdriverCO</tabstop>
|
||||
</tabstops>
|
||||
</UI>
|
307
src/frontends/qt2/ui/PaperModuleBase.ui
Normal file
307
src/frontends/qt2/ui/PaperModuleBase.ui
Normal file
@ -0,0 +1,307 @@
|
||||
<!DOCTYPE UI><UI>
|
||||
<class>PaperModuleBase</class>
|
||||
<include location="global">config.h</include>
|
||||
<include location="local">gettext.h</include>
|
||||
<widget>
|
||||
<class>QWidget</class>
|
||||
<property stdset="1">
|
||||
<name>name</name>
|
||||
<cstring>PaperModuleBase</cstring>
|
||||
</property>
|
||||
<property stdset="1">
|
||||
<name>geometry</name>
|
||||
<rect>
|
||||
<x>0</x>
|
||||
<y>0</y>
|
||||
<width>204</width>
|
||||
<height>258</height>
|
||||
</rect>
|
||||
</property>
|
||||
<property stdset="1">
|
||||
<name>caption</name>
|
||||
<string>Form1</string>
|
||||
</property>
|
||||
<grid>
|
||||
<property stdset="1">
|
||||
<name>margin</name>
|
||||
<number>11</number>
|
||||
</property>
|
||||
<property stdset="1">
|
||||
<name>spacing</name>
|
||||
<number>6</number>
|
||||
</property>
|
||||
<spacer row="4" column="1" >
|
||||
<property>
|
||||
<name>name</name>
|
||||
<cstring>Spacer24</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="2" column="0" >
|
||||
<class>QCheckBox</class>
|
||||
<property stdset="1">
|
||||
<name>name</name>
|
||||
<cstring>twoColumnCB</cstring>
|
||||
</property>
|
||||
<property stdset="1">
|
||||
<name>text</name>
|
||||
<string>&Two Columns</string>
|
||||
</property>
|
||||
</widget>
|
||||
<widget row="3" column="0" >
|
||||
<class>QCheckBox</class>
|
||||
<property stdset="1">
|
||||
<name>name</name>
|
||||
<cstring>facingPagesCB</cstring>
|
||||
</property>
|
||||
<property stdset="1">
|
||||
<name>text</name>
|
||||
<string>&Facing Pages</string>
|
||||
</property>
|
||||
</widget>
|
||||
<widget row="0" column="0" rowspan="1" colspan="2" >
|
||||
<class>QGroupBox</class>
|
||||
<property stdset="1">
|
||||
<name>name</name>
|
||||
<cstring>psizeGB</cstring>
|
||||
</property>
|
||||
<property stdset="1">
|
||||
<name>title</name>
|
||||
<string>Paper size</string>
|
||||
</property>
|
||||
<property stdset="1">
|
||||
<name>orientation</name>
|
||||
<enum>Vertical</enum>
|
||||
</property>
|
||||
<grid>
|
||||
<property stdset="1">
|
||||
<name>margin</name>
|
||||
<number>11</number>
|
||||
</property>
|
||||
<property stdset="1">
|
||||
<name>spacing</name>
|
||||
<number>6</number>
|
||||
</property>
|
||||
<widget row="1" column="0" >
|
||||
<class>QLabel</class>
|
||||
<property stdset="1">
|
||||
<name>name</name>
|
||||
<cstring>paperheightL</cstring>
|
||||
</property>
|
||||
<property stdset="1">
|
||||
<name>enabled</name>
|
||||
<bool>false</bool>
|
||||
</property>
|
||||
<property stdset="1">
|
||||
<name>text</name>
|
||||
<string>&Height:</string>
|
||||
</property>
|
||||
<property>
|
||||
<name>buddy</name>
|
||||
<cstring>paperheightLE</cstring>
|
||||
</property>
|
||||
</widget>
|
||||
<widget row="2" column="0" >
|
||||
<class>QLabel</class>
|
||||
<property stdset="1">
|
||||
<name>name</name>
|
||||
<cstring>paperwidthL</cstring>
|
||||
</property>
|
||||
<property stdset="1">
|
||||
<name>enabled</name>
|
||||
<bool>false</bool>
|
||||
</property>
|
||||
<property stdset="1">
|
||||
<name>text</name>
|
||||
<string>&Width:</string>
|
||||
</property>
|
||||
<property>
|
||||
<name>buddy</name>
|
||||
<cstring>paperwidthLE</cstring>
|
||||
</property>
|
||||
</widget>
|
||||
<widget row="0" column="0" >
|
||||
<class>QLabel</class>
|
||||
<property stdset="1">
|
||||
<name>name</name>
|
||||
<cstring>psizeL</cstring>
|
||||
</property>
|
||||
<property stdset="1">
|
||||
<name>text</name>
|
||||
<string>Paper &Size:</string>
|
||||
</property>
|
||||
<property>
|
||||
<name>buddy</name>
|
||||
<cstring>papersizeCO</cstring>
|
||||
</property>
|
||||
</widget>
|
||||
<widget row="0" column="1" rowspan="1" colspan="2" >
|
||||
<class>QComboBox</class>
|
||||
<property stdset="1">
|
||||
<name>name</name>
|
||||
<cstring>papersizeCO</cstring>
|
||||
</property>
|
||||
<property stdset="1">
|
||||
<name>sizePolicy</name>
|
||||
<sizepolicy>
|
||||
<hsizetype>1</hsizetype>
|
||||
<vsizetype>0</vsizetype>
|
||||
</sizepolicy>
|
||||
</property>
|
||||
</widget>
|
||||
<widget row="1" column="1" >
|
||||
<class>QLineEdit</class>
|
||||
<property stdset="1">
|
||||
<name>name</name>
|
||||
<cstring>paperheightLE</cstring>
|
||||
</property>
|
||||
<property stdset="1">
|
||||
<name>enabled</name>
|
||||
<bool>false</bool>
|
||||
</property>
|
||||
<property stdset="1">
|
||||
<name>sizePolicy</name>
|
||||
<sizepolicy>
|
||||
<hsizetype>5</hsizetype>
|
||||
<vsizetype>0</vsizetype>
|
||||
</sizepolicy>
|
||||
</property>
|
||||
</widget>
|
||||
<widget row="2" column="1" >
|
||||
<class>QLineEdit</class>
|
||||
<property stdset="1">
|
||||
<name>name</name>
|
||||
<cstring>paperwidthLE</cstring>
|
||||
</property>
|
||||
<property stdset="1">
|
||||
<name>enabled</name>
|
||||
<bool>false</bool>
|
||||
</property>
|
||||
<property stdset="1">
|
||||
<name>sizePolicy</name>
|
||||
<sizepolicy>
|
||||
<hsizetype>5</hsizetype>
|
||||
<vsizetype>0</vsizetype>
|
||||
</sizepolicy>
|
||||
</property>
|
||||
</widget>
|
||||
<widget row="1" column="2" >
|
||||
<class>LengthCombo</class>
|
||||
<property stdset="1">
|
||||
<name>name</name>
|
||||
<cstring>paperheightUnitCO</cstring>
|
||||
</property>
|
||||
<property stdset="1">
|
||||
<name>enabled</name>
|
||||
<bool>false</bool>
|
||||
</property>
|
||||
</widget>
|
||||
<widget row="2" column="2" >
|
||||
<class>LengthCombo</class>
|
||||
<property stdset="1">
|
||||
<name>name</name>
|
||||
<cstring>paperwidthUnitCO</cstring>
|
||||
</property>
|
||||
<property stdset="1">
|
||||
<name>enabled</name>
|
||||
<bool>false</bool>
|
||||
</property>
|
||||
</widget>
|
||||
</grid>
|
||||
</widget>
|
||||
<widget row="1" column="0" rowspan="1" colspan="2" >
|
||||
<class>QButtonGroup</class>
|
||||
<property stdset="1">
|
||||
<name>name</name>
|
||||
<cstring>orientationBG</cstring>
|
||||
</property>
|
||||
<property stdset="1">
|
||||
<name>title</name>
|
||||
<string>Orientation</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>QRadioButton</class>
|
||||
<property stdset="1">
|
||||
<name>name</name>
|
||||
<cstring>portraitRB</cstring>
|
||||
</property>
|
||||
<property stdset="1">
|
||||
<name>text</name>
|
||||
<string>&Portrait</string>
|
||||
</property>
|
||||
<property stdset="1">
|
||||
<name>checked</name>
|
||||
<bool>true</bool>
|
||||
</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>
|
||||
</hbox>
|
||||
</widget>
|
||||
</grid>
|
||||
</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>
|
||||
<tabstops>
|
||||
<tabstop>papersizeCO</tabstop>
|
||||
<tabstop>paperheightLE</tabstop>
|
||||
<tabstop>paperwidthLE</tabstop>
|
||||
<tabstop>portraitRB</tabstop>
|
||||
<tabstop>landscapeRB</tabstop>
|
||||
<tabstop>twoColumnCB</tabstop>
|
||||
<tabstop>facingPagesCB</tabstop>
|
||||
</tabstops>
|
||||
</UI>
|
44
src/frontends/qt2/ui/PreambleModuleBase.ui
Normal file
44
src/frontends/qt2/ui/PreambleModuleBase.ui
Normal file
@ -0,0 +1,44 @@
|
||||
<!DOCTYPE UI><UI>
|
||||
<class>PreambleModuleBase</class>
|
||||
<include location="global">config.h</include>
|
||||
<include location="local">gettext.h</include>
|
||||
<widget>
|
||||
<class>QWidget</class>
|
||||
<property stdset="1">
|
||||
<name>name</name>
|
||||
<cstring>PreambleModuleBase</cstring>
|
||||
</property>
|
||||
<property stdset="1">
|
||||
<name>geometry</name>
|
||||
<rect>
|
||||
<x>0</x>
|
||||
<y>0</y>
|
||||
<width>381</width>
|
||||
<height>278</height>
|
||||
</rect>
|
||||
</property>
|
||||
<property stdset="1">
|
||||
<name>caption</name>
|
||||
<string>Form1</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>QMultiLineEdit</class>
|
||||
<property stdset="1">
|
||||
<name>name</name>
|
||||
<cstring>preambleMLE</cstring>
|
||||
</property>
|
||||
</widget>
|
||||
</grid>
|
||||
</widget>
|
||||
<connections>
|
||||
</connections>
|
||||
</UI>
|
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
@ -13,8 +13,8 @@
|
||||
<rect>
|
||||
<x>0</x>
|
||||
<y>0</y>
|
||||
<width>225</width>
|
||||
<height>395</height>
|
||||
<width>407</width>
|
||||
<height>454</height>
|
||||
</rect>
|
||||
</property>
|
||||
<property stdset="1">
|
||||
@ -25,7 +25,7 @@
|
||||
<name>sizeGripEnabled</name>
|
||||
<bool>true</bool>
|
||||
</property>
|
||||
<vbox>
|
||||
<grid>
|
||||
<property stdset="1">
|
||||
<name>margin</name>
|
||||
<number>11</number>
|
||||
@ -34,144 +34,7 @@
|
||||
<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>6</number>
|
||||
</property>
|
||||
<widget row="1" column="1" >
|
||||
<class>QLineEdit</class>
|
||||
<property stdset="1">
|
||||
<name>name</name>
|
||||
<cstring>fileED</cstring>
|
||||
</property>
|
||||
<property stdset="1">
|
||||
<name>enabled</name>
|
||||
<bool>true</bool>
|
||||
</property>
|
||||
<property>
|
||||
<name>toolTip</name>
|
||||
<string>Send output to a file</string>
|
||||
</property>
|
||||
</widget>
|
||||
<widget row="2" column="1" >
|
||||
<class>QLayoutWidget</class>
|
||||
<property stdset="1">
|
||||
<name>name</name>
|
||||
<cstring>Layout5</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>browsePB</cstring>
|
||||
</property>
|
||||
<property stdset="1">
|
||||
<name>enabled</name>
|
||||
<bool>true</bool>
|
||||
</property>
|
||||
<property stdset="1">
|
||||
<name>text</name>
|
||||
<string>&Browse ...</string>
|
||||
</property>
|
||||
</widget>
|
||||
<spacer>
|
||||
<property>
|
||||
<name>name</name>
|
||||
<cstring>Spacer15</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 row="0" column="0" >
|
||||
<class>QRadioButton</class>
|
||||
<property stdset="1">
|
||||
<name>name</name>
|
||||
<cstring>printerRB</cstring>
|
||||
</property>
|
||||
<property stdset="1">
|
||||
<name>text</name>
|
||||
<string>P&rinter</string>
|
||||
</property>
|
||||
<property stdset="1">
|
||||
<name>checked</name>
|
||||
<bool>true</bool>
|
||||
</property>
|
||||
<property>
|
||||
<name>toolTip</name>
|
||||
<string>Send output to the printer</string>
|
||||
</property>
|
||||
</widget>
|
||||
<widget row="0" column="1" >
|
||||
<class>QLineEdit</class>
|
||||
<property stdset="1">
|
||||
<name>name</name>
|
||||
<cstring>printerED</cstring>
|
||||
</property>
|
||||
<property>
|
||||
<name>toolTip</name>
|
||||
<string>Send output to the given printer</string>
|
||||
</property>
|
||||
</widget>
|
||||
<widget row="1" column="0" >
|
||||
<class>QRadioButton</class>
|
||||
<property stdset="1">
|
||||
<name>name</name>
|
||||
<cstring>fileRB</cstring>
|
||||
</property>
|
||||
<property stdset="1">
|
||||
<name>text</name>
|
||||
<string>&File</string>
|
||||
</property>
|
||||
<property>
|
||||
<name>toolTip</name>
|
||||
<string>Send output to a file</string>
|
||||
</property>
|
||||
</widget>
|
||||
</grid>
|
||||
</widget>
|
||||
<widget>
|
||||
<widget row="1" column="0" >
|
||||
<class>QButtonGroup</class>
|
||||
<property stdset="1">
|
||||
<name>name</name>
|
||||
@ -357,7 +220,7 @@
|
||||
</widget>
|
||||
</vbox>
|
||||
</widget>
|
||||
<widget>
|
||||
<widget row="2" column="0" >
|
||||
<class>QGroupBox</class>
|
||||
<property stdset="1">
|
||||
<name>name</name>
|
||||
@ -437,7 +300,7 @@
|
||||
</spacer>
|
||||
</hbox>
|
||||
</widget>
|
||||
<widget>
|
||||
<widget row="3" column="0" >
|
||||
<class>QLayoutWidget</class>
|
||||
<property stdset="1">
|
||||
<name>name</name>
|
||||
@ -501,7 +364,106 @@
|
||||
</widget>
|
||||
</hbox>
|
||||
</widget>
|
||||
</vbox>
|
||||
<widget row="0" column="0" >
|
||||
<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>6</number>
|
||||
</property>
|
||||
<widget row="0" column="0" >
|
||||
<class>QRadioButton</class>
|
||||
<property stdset="1">
|
||||
<name>name</name>
|
||||
<cstring>printerRB</cstring>
|
||||
</property>
|
||||
<property stdset="1">
|
||||
<name>text</name>
|
||||
<string>P&rinter</string>
|
||||
</property>
|
||||
<property stdset="1">
|
||||
<name>checked</name>
|
||||
<bool>true</bool>
|
||||
</property>
|
||||
<property>
|
||||
<name>toolTip</name>
|
||||
<string>Send output to the printer</string>
|
||||
</property>
|
||||
</widget>
|
||||
<widget row="0" column="1" rowspan="1" colspan="2" >
|
||||
<class>QLineEdit</class>
|
||||
<property stdset="1">
|
||||
<name>name</name>
|
||||
<cstring>printerED</cstring>
|
||||
</property>
|
||||
<property>
|
||||
<name>toolTip</name>
|
||||
<string>Send output to the given printer</string>
|
||||
</property>
|
||||
</widget>
|
||||
<widget row="1" column="0" >
|
||||
<class>QRadioButton</class>
|
||||
<property stdset="1">
|
||||
<name>name</name>
|
||||
<cstring>fileRB</cstring>
|
||||
</property>
|
||||
<property stdset="1">
|
||||
<name>text</name>
|
||||
<string>&File</string>
|
||||
</property>
|
||||
<property>
|
||||
<name>toolTip</name>
|
||||
<string>Send output to a file</string>
|
||||
</property>
|
||||
</widget>
|
||||
<widget row="1" column="1" >
|
||||
<class>QLineEdit</class>
|
||||
<property stdset="1">
|
||||
<name>name</name>
|
||||
<cstring>fileED</cstring>
|
||||
</property>
|
||||
<property stdset="1">
|
||||
<name>enabled</name>
|
||||
<bool>true</bool>
|
||||
</property>
|
||||
<property>
|
||||
<name>toolTip</name>
|
||||
<string>Send output to a file</string>
|
||||
</property>
|
||||
</widget>
|
||||
<widget row="1" column="2" >
|
||||
<class>QPushButton</class>
|
||||
<property stdset="1">
|
||||
<name>name</name>
|
||||
<cstring>browsePB</cstring>
|
||||
</property>
|
||||
<property stdset="1">
|
||||
<name>enabled</name>
|
||||
<bool>true</bool>
|
||||
</property>
|
||||
<property stdset="1">
|
||||
<name>text</name>
|
||||
<string>&Browse ...</string>
|
||||
</property>
|
||||
</widget>
|
||||
</grid>
|
||||
</widget>
|
||||
</grid>
|
||||
</widget>
|
||||
<connections>
|
||||
<connection>
|
||||
|
@ -13,8 +13,8 @@
|
||||
<rect>
|
||||
<x>0</x>
|
||||
<y>0</y>
|
||||
<width>363</width>
|
||||
<height>425</height>
|
||||
<width>348</width>
|
||||
<height>439</height>
|
||||
</rect>
|
||||
</property>
|
||||
<property stdset="1">
|
||||
@ -25,7 +25,7 @@
|
||||
<name>sizeGripEnabled</name>
|
||||
<bool>true</bool>
|
||||
</property>
|
||||
<vbox>
|
||||
<grid>
|
||||
<property stdset="1">
|
||||
<name>margin</name>
|
||||
<number>11</number>
|
||||
@ -34,11 +34,11 @@
|
||||
<name>spacing</name>
|
||||
<number>6</number>
|
||||
</property>
|
||||
<widget>
|
||||
<widget row="3" column="1" >
|
||||
<class>QLayoutWidget</class>
|
||||
<property stdset="1">
|
||||
<name>name</name>
|
||||
<cstring>Layout5</cstring>
|
||||
<cstring>Layout7</cstring>
|
||||
</property>
|
||||
<hbox>
|
||||
<property stdset="1">
|
||||
@ -49,144 +49,19 @@
|
||||
<name>spacing</name>
|
||||
<number>6</number>
|
||||
</property>
|
||||
<widget>
|
||||
<class>QLabel</class>
|
||||
<property stdset="1">
|
||||
<name>name</name>
|
||||
<cstring>bufferL</cstring>
|
||||
</property>
|
||||
<property stdset="1">
|
||||
<name>text</name>
|
||||
<string>&Document:</string>
|
||||
</property>
|
||||
<property>
|
||||
<name>buddy</name>
|
||||
<cstring>bufferCO</cstring>
|
||||
</property>
|
||||
</widget>
|
||||
<widget>
|
||||
<class>QComboBox</class>
|
||||
<property stdset="1">
|
||||
<name>name</name>
|
||||
<cstring>bufferCO</cstring>
|
||||
</property>
|
||||
<property stdset="1">
|
||||
<name>sizePolicy</name>
|
||||
<sizepolicy>
|
||||
<hsizetype>7</hsizetype>
|
||||
<vsizetype>0</vsizetype>
|
||||
</sizepolicy>
|
||||
</property>
|
||||
</widget>
|
||||
</hbox>
|
||||
</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>QLayoutWidget</class>
|
||||
<property stdset="1">
|
||||
<name>name</name>
|
||||
<cstring>Layout4</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>refsL</cstring>
|
||||
</property>
|
||||
<property stdset="1">
|
||||
<name>text</name>
|
||||
<string>Available references in selected document:</string>
|
||||
</property>
|
||||
</widget>
|
||||
<widget>
|
||||
<class>QListBox</class>
|
||||
<property stdset="1">
|
||||
<name>name</name>
|
||||
<cstring>refsLB</cstring>
|
||||
</property>
|
||||
<property stdset="1">
|
||||
<name>enabled</name>
|
||||
<bool>true</bool>
|
||||
</property>
|
||||
<property stdset="1">
|
||||
<name>sizePolicy</name>
|
||||
<sizepolicy>
|
||||
<hsizetype>7</hsizetype>
|
||||
<vsizetype>3</vsizetype>
|
||||
</sizepolicy>
|
||||
</property>
|
||||
<property>
|
||||
<name>toolTip</name>
|
||||
<string>Available references</string>
|
||||
</property>
|
||||
</widget>
|
||||
</vbox>
|
||||
</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>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>
|
||||
<widget>
|
||||
<class>QPushButton</class>
|
||||
<property stdset="1">
|
||||
<name>name</name>
|
||||
<cstring>updatePB</cstring>
|
||||
</property>
|
||||
<property stdset="1">
|
||||
<name>sizePolicy</name>
|
||||
<sizepolicy>
|
||||
<hsizetype>3</hsizetype>
|
||||
<vsizetype>0</vsizetype>
|
||||
</sizepolicy>
|
||||
</property>
|
||||
<property stdset="1">
|
||||
<name>text</name>
|
||||
<string>&Update</string>
|
||||
@ -218,221 +93,160 @@
|
||||
<string>Move the document cursor to reference</string>
|
||||
</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>
|
||||
<widget>
|
||||
<class>QLayoutWidget</class>
|
||||
<widget row="3" column="0" >
|
||||
<class>QCheckBox</class>
|
||||
<property stdset="1">
|
||||
<name>name</name>
|
||||
<cstring>Layout2</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="1" >
|
||||
<class>QLineEdit</class>
|
||||
<property stdset="1">
|
||||
<name>name</name>
|
||||
<cstring>referenceED</cstring>
|
||||
</property>
|
||||
</widget>
|
||||
<widget row="1" column="1" >
|
||||
<class>QComboBox</class>
|
||||
<item>
|
||||
<property>
|
||||
<name>text</name>
|
||||
<string><reference></string>
|
||||
</property>
|
||||
</item>
|
||||
<item>
|
||||
<property>
|
||||
<name>text</name>
|
||||
<string><page></string>
|
||||
</property>
|
||||
</item>
|
||||
<item>
|
||||
<property>
|
||||
<name>text</name>
|
||||
<string>on page <page></string>
|
||||
</property>
|
||||
</item>
|
||||
<item>
|
||||
<property>
|
||||
<name>text</name>
|
||||
<string><reference> on page <page></string>
|
||||
</property>
|
||||
</item>
|
||||
<item>
|
||||
<property>
|
||||
<name>text</name>
|
||||
<string>Formatted reference</string>
|
||||
</property>
|
||||
</item>
|
||||
<property stdset="1">
|
||||
<name>name</name>
|
||||
<cstring>typeCO</cstring>
|
||||
</property>
|
||||
<property stdset="1">
|
||||
<name>sizePolicy</name>
|
||||
<sizepolicy>
|
||||
<hsizetype>1</hsizetype>
|
||||
<vsizetype>0</vsizetype>
|
||||
</sizepolicy>
|
||||
</property>
|
||||
<property>
|
||||
<name>toolTip</name>
|
||||
<string>Reference as it appears in output</string>
|
||||
</property>
|
||||
</widget>
|
||||
<widget row="0" column="0" >
|
||||
<class>QLabel</class>
|
||||
<property stdset="1">
|
||||
<name>name</name>
|
||||
<cstring>referenceL</cstring>
|
||||
</property>
|
||||
<property stdset="1">
|
||||
<name>text</name>
|
||||
<string>&Reference:</string>
|
||||
</property>
|
||||
<property stdset="1">
|
||||
<name>alignment</name>
|
||||
<set>AlignVCenter|AlignLeft</set>
|
||||
</property>
|
||||
<property>
|
||||
<name>buddy</name>
|
||||
<cstring>referenceED</cstring>
|
||||
</property>
|
||||
<property>
|
||||
<name>hAlign</name>
|
||||
</property>
|
||||
</widget>
|
||||
<widget row="1" column="0" >
|
||||
<class>QLabel</class>
|
||||
<property stdset="1">
|
||||
<name>name</name>
|
||||
<cstring>typeLA</cstring>
|
||||
</property>
|
||||
<property stdset="1">
|
||||
<name>text</name>
|
||||
<string>&Format:</string>
|
||||
</property>
|
||||
<property stdset="1">
|
||||
<name>alignment</name>
|
||||
<set>AlignVCenter|AlignLeft</set>
|
||||
</property>
|
||||
<property>
|
||||
<name>buddy</name>
|
||||
<cstring>typeLA</cstring>
|
||||
</property>
|
||||
<property>
|
||||
<name>hAlign</name>
|
||||
</property>
|
||||
</widget>
|
||||
</grid>
|
||||
</widget>
|
||||
<spacer>
|
||||
<property>
|
||||
<name>name</name>
|
||||
<cstring>Spacer3</cstring>
|
||||
<cstring>sortCB</cstring>
|
||||
</property>
|
||||
<property stdset="1">
|
||||
<name>orientation</name>
|
||||
<enum>Horizontal</enum>
|
||||
</property>
|
||||
<property stdset="1">
|
||||
<name>sizeType</name>
|
||||
<enum>MinimumExpanding</enum>
|
||||
<name>text</name>
|
||||
<string>Sort</string>
|
||||
</property>
|
||||
<property>
|
||||
<name>sizeHint</name>
|
||||
<size>
|
||||
<width>20</width>
|
||||
<height>20</height>
|
||||
</size>
|
||||
<name>toolTip</name>
|
||||
<string>Sort references in alphabetical order</string>
|
||||
</property>
|
||||
</spacer>
|
||||
<widget>
|
||||
<class>QLayoutWidget</class>
|
||||
</widget>
|
||||
<widget row="4" column="1" >
|
||||
<class>QLineEdit</class>
|
||||
<property stdset="1">
|
||||
<name>name</name>
|
||||
<cstring>Layout6</cstring>
|
||||
<cstring>referenceED</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>enabled</name>
|
||||
<bool>false</bool>
|
||||
</property>
|
||||
<property stdset="1">
|
||||
<name>text</name>
|
||||
<string>&Name:</string>
|
||||
</property>
|
||||
<property stdset="1">
|
||||
<name>alignment</name>
|
||||
<set>AlignVCenter|AlignLeft</set>
|
||||
</property>
|
||||
<property>
|
||||
<name>buddy</name>
|
||||
<cstring>nameED</cstring>
|
||||
</property>
|
||||
<property>
|
||||
<name>hAlign</name>
|
||||
</property>
|
||||
</widget>
|
||||
<widget>
|
||||
<class>QLineEdit</class>
|
||||
<property stdset="1">
|
||||
<name>name</name>
|
||||
<cstring>nameED</cstring>
|
||||
</property>
|
||||
<property stdset="1">
|
||||
<name>enabled</name>
|
||||
<bool>false</bool>
|
||||
</property>
|
||||
</widget>
|
||||
</hbox>
|
||||
</widget>
|
||||
<widget>
|
||||
<widget row="5" column="1" >
|
||||
<class>QComboBox</class>
|
||||
<item>
|
||||
<property>
|
||||
<name>text</name>
|
||||
<string><reference></string>
|
||||
</property>
|
||||
</item>
|
||||
<item>
|
||||
<property>
|
||||
<name>text</name>
|
||||
<string><page></string>
|
||||
</property>
|
||||
</item>
|
||||
<item>
|
||||
<property>
|
||||
<name>text</name>
|
||||
<string>on page <page></string>
|
||||
</property>
|
||||
</item>
|
||||
<item>
|
||||
<property>
|
||||
<name>text</name>
|
||||
<string><reference> on page <page></string>
|
||||
</property>
|
||||
</item>
|
||||
<item>
|
||||
<property>
|
||||
<name>text</name>
|
||||
<string>Formatted reference</string>
|
||||
</property>
|
||||
</item>
|
||||
<property stdset="1">
|
||||
<name>name</name>
|
||||
<cstring>typeCO</cstring>
|
||||
</property>
|
||||
<property stdset="1">
|
||||
<name>sizePolicy</name>
|
||||
<sizepolicy>
|
||||
<hsizetype>1</hsizetype>
|
||||
<vsizetype>0</vsizetype>
|
||||
</sizepolicy>
|
||||
</property>
|
||||
<property>
|
||||
<name>toolTip</name>
|
||||
<string>Reference as it appears in output</string>
|
||||
</property>
|
||||
</widget>
|
||||
<widget row="4" column="0" >
|
||||
<class>QLabel</class>
|
||||
<property stdset="1">
|
||||
<name>name</name>
|
||||
<cstring>referenceL</cstring>
|
||||
</property>
|
||||
<property stdset="1">
|
||||
<name>text</name>
|
||||
<string>&Reference:</string>
|
||||
</property>
|
||||
<property stdset="1">
|
||||
<name>alignment</name>
|
||||
<set>AlignVCenter|AlignLeft</set>
|
||||
</property>
|
||||
<property>
|
||||
<name>buddy</name>
|
||||
<cstring>referenceED</cstring>
|
||||
</property>
|
||||
<property>
|
||||
<name>hAlign</name>
|
||||
</property>
|
||||
</widget>
|
||||
<widget row="5" column="0" >
|
||||
<class>QLabel</class>
|
||||
<property stdset="1">
|
||||
<name>name</name>
|
||||
<cstring>typeLA</cstring>
|
||||
</property>
|
||||
<property stdset="1">
|
||||
<name>text</name>
|
||||
<string>&Format:</string>
|
||||
</property>
|
||||
<property stdset="1">
|
||||
<name>alignment</name>
|
||||
<set>AlignVCenter|AlignLeft</set>
|
||||
</property>
|
||||
<property>
|
||||
<name>buddy</name>
|
||||
<cstring>typeLA</cstring>
|
||||
</property>
|
||||
<property>
|
||||
<name>hAlign</name>
|
||||
</property>
|
||||
</widget>
|
||||
<widget row="6" column="0" >
|
||||
<class>QLabel</class>
|
||||
<property stdset="1">
|
||||
<name>name</name>
|
||||
<cstring>nameL</cstring>
|
||||
</property>
|
||||
<property stdset="1">
|
||||
<name>enabled</name>
|
||||
<bool>false</bool>
|
||||
</property>
|
||||
<property stdset="1">
|
||||
<name>text</name>
|
||||
<string>&Name:</string>
|
||||
</property>
|
||||
<property stdset="1">
|
||||
<name>alignment</name>
|
||||
<set>AlignVCenter|AlignLeft</set>
|
||||
</property>
|
||||
<property>
|
||||
<name>buddy</name>
|
||||
<cstring>nameED</cstring>
|
||||
</property>
|
||||
<property>
|
||||
<name>hAlign</name>
|
||||
</property>
|
||||
</widget>
|
||||
<widget row="6" column="1" >
|
||||
<class>QLineEdit</class>
|
||||
<property stdset="1">
|
||||
<name>name</name>
|
||||
<cstring>nameED</cstring>
|
||||
</property>
|
||||
<property stdset="1">
|
||||
<name>enabled</name>
|
||||
<bool>false</bool>
|
||||
</property>
|
||||
</widget>
|
||||
<widget row="7" column="0" rowspan="1" colspan="2" >
|
||||
<class>QLayoutWidget</class>
|
||||
<property stdset="1">
|
||||
<name>name</name>
|
||||
@ -496,7 +310,69 @@
|
||||
</widget>
|
||||
</hbox>
|
||||
</widget>
|
||||
</vbox>
|
||||
<widget row="1" column="0" rowspan="1" colspan="2" >
|
||||
<class>QLabel</class>
|
||||
<property stdset="1">
|
||||
<name>name</name>
|
||||
<cstring>refsL</cstring>
|
||||
</property>
|
||||
<property stdset="1">
|
||||
<name>text</name>
|
||||
<string>Available references in selected document:</string>
|
||||
</property>
|
||||
</widget>
|
||||
<widget row="2" column="0" rowspan="1" colspan="2" >
|
||||
<class>QListBox</class>
|
||||
<property stdset="1">
|
||||
<name>name</name>
|
||||
<cstring>refsLB</cstring>
|
||||
</property>
|
||||
<property stdset="1">
|
||||
<name>enabled</name>
|
||||
<bool>true</bool>
|
||||
</property>
|
||||
<property stdset="1">
|
||||
<name>sizePolicy</name>
|
||||
<sizepolicy>
|
||||
<hsizetype>7</hsizetype>
|
||||
<vsizetype>3</vsizetype>
|
||||
</sizepolicy>
|
||||
</property>
|
||||
<property>
|
||||
<name>toolTip</name>
|
||||
<string>Available references</string>
|
||||
</property>
|
||||
</widget>
|
||||
<widget row="0" column="0" >
|
||||
<class>QLabel</class>
|
||||
<property stdset="1">
|
||||
<name>name</name>
|
||||
<cstring>bufferL</cstring>
|
||||
</property>
|
||||
<property stdset="1">
|
||||
<name>text</name>
|
||||
<string>&Document:</string>
|
||||
</property>
|
||||
<property>
|
||||
<name>buddy</name>
|
||||
<cstring>bufferCO</cstring>
|
||||
</property>
|
||||
</widget>
|
||||
<widget row="0" column="1" >
|
||||
<class>QComboBox</class>
|
||||
<property stdset="1">
|
||||
<name>name</name>
|
||||
<cstring>bufferCO</cstring>
|
||||
</property>
|
||||
<property stdset="1">
|
||||
<name>sizePolicy</name>
|
||||
<sizepolicy>
|
||||
<hsizetype>7</hsizetype>
|
||||
<vsizetype>0</vsizetype>
|
||||
</sizepolicy>
|
||||
</property>
|
||||
</widget>
|
||||
</grid>
|
||||
</widget>
|
||||
<connections>
|
||||
<connection>
|
||||
|
Loading…
Reference in New Issue
Block a user