More QDialogButtonBox

Listings through Prefs.
This commit is contained in:
Juergen Spitzmueller 2018-07-10 09:04:42 +02:00
parent d41c3f27d9
commit b5c5083c6c
20 changed files with 761 additions and 977 deletions

View File

@ -102,6 +102,7 @@ void GuiDialog::slotButtonBox(QAbstractButton * button)
slotApply(); slotApply();
break; break;
case QDialogButtonBox::Cancel: case QDialogButtonBox::Cancel:
case QDialogButtonBox::Close:
slotClose(); slotClose();
break; break;
case QDialogButtonBox::Reset: case QDialogButtonBox::Reset:

View File

@ -167,9 +167,8 @@ GuiListings::GuiListings(GuiView & lv)
{ {
setupUi(this); setupUi(this);
connect(okPB, SIGNAL(clicked()), this, SLOT(slotOK())); connect(buttonBox, SIGNAL(clicked(QAbstractButton *)),
connect(applyPB, SIGNAL(clicked()), this, SLOT(slotApply())); this, SLOT(slotButtonBox(QAbstractButton *)));
connect(closePB, SIGNAL(clicked()), this, SLOT(slotClose()));
connect(languageCO, SIGNAL(currentIndexChanged(int)), connect(languageCO, SIGNAL(currentIndexChanged(int)),
this, SLOT(change_adaptor())); this, SLOT(change_adaptor()));
@ -234,9 +233,9 @@ GuiListings::GuiListings(GuiView & lv)
placementLE->setValidator(new QRegExpValidator(QRegExp("[\\*tbph]*"), this)); placementLE->setValidator(new QRegExpValidator(QRegExp("[\\*tbph]*"), this));
bc().setPolicy(ButtonPolicy::NoRepeatedApplyReadOnlyPolicy); bc().setPolicy(ButtonPolicy::NoRepeatedApplyReadOnlyPolicy);
bc().setOK(okPB); bc().setOK(buttonBox->button(QDialogButtonBox::Ok));
bc().setApply(applyPB); bc().setApply(buttonBox->button(QDialogButtonBox::Apply));
bc().setCancel(closePB); bc().setCancel(buttonBox->button(QDialogButtonBox::Cancel));
listingsTB->setPlainText( listingsTB->setPlainText(
qt_("Input listing parameters on the right. Enter ? for a list of parameters.")); qt_("Input listing parameters on the right. Enter ? for a list of parameters."));

View File

@ -120,7 +120,8 @@ GuiLog::GuiLog(GuiView & lv)
{ {
setupUi(this); setupUi(this);
connect(closePB, SIGNAL(clicked()), this, SLOT(slotClose())); connect(buttonBox, SIGNAL(clicked(QAbstractButton *)),
this, SLOT(slotButtonBox(QAbstractButton *)));
connect(updatePB, SIGNAL(clicked()), this, SLOT(updateContents())); connect(updatePB, SIGNAL(clicked()), this, SLOT(updateContents()));
connect(findPB, SIGNAL(clicked()), this, SLOT(find())); connect(findPB, SIGNAL(clicked()), this, SLOT(find()));
// FIXME: find via returnPressed() does not work! // FIXME: find via returnPressed() does not work!

View File

@ -74,9 +74,6 @@ GuiMathMatrix::GuiMathMatrix(GuiView & lv)
valignCO->setCurrentIndex(1); valignCO->setCurrentIndex(1);
decorationCO->setCurrentIndex(0); decorationCO->setCurrentIndex(0);
connect(okPB, SIGNAL(clicked()), this, SLOT(slotOK()));
connect(closePB, SIGNAL(clicked()), this, SLOT(slotClose()));
connect(table, SIGNAL(rowsChanged(int)), connect(table, SIGNAL(rowsChanged(int)),
rowsSB, SLOT(setValue(int))); rowsSB, SLOT(setValue(int)));
connect(table, SIGNAL(colsChanged(int)), connect(table, SIGNAL(colsChanged(int)),
@ -124,6 +121,21 @@ void GuiMathMatrix::change_adaptor()
} }
void GuiMathMatrix::on_buttonBox_clicked(QAbstractButton * button)
{
switch (buttonBox->standardButton(button)) {
case QDialogButtonBox::Ok:
slotOK();
break;
case QDialogButtonBox::Cancel:
slotClose();
break;
default:
break;
}
}
void GuiMathMatrix::slotOK() void GuiMathMatrix::slotOK()
{ {
int const nx = columnsSB->value(); int const nx = columnsSB->value();

View File

@ -34,6 +34,7 @@ public:
bool isBufferDependent() const { return true; } bool isBufferDependent() const { return true; }
public Q_SLOTS: public Q_SLOTS:
void on_buttonBox_clicked(QAbstractButton *);
void slotOK(); void slotOK();
void slotClose(); void slotClose();
void columnsChanged(int); void columnsChanged(int);

View File

@ -27,16 +27,16 @@ GuiNote::GuiNote(GuiView & lv)
{ {
setupUi(this); setupUi(this);
connect(okPB, SIGNAL(clicked()), this, SLOT(slotOK())); connect(buttonBox, SIGNAL(clicked(QAbstractButton *)),
connect(closePB, SIGNAL(clicked()), this, SLOT(slotClose())); this, SLOT(slotButtonBox(QAbstractButton *)));
connect(noteRB, SIGNAL(clicked()), this, SLOT(change_adaptor())); connect(noteRB, SIGNAL(clicked()), this, SLOT(change_adaptor()));
connect(greyedoutRB, SIGNAL(clicked()), this, SLOT(change_adaptor())); connect(greyedoutRB, SIGNAL(clicked()), this, SLOT(change_adaptor()));
connect(commentRB, SIGNAL(clicked()), this, SLOT(change_adaptor())); connect(commentRB, SIGNAL(clicked()), this, SLOT(change_adaptor()));
bc().setPolicy(ButtonPolicy::NoRepeatedApplyReadOnlyPolicy); bc().setPolicy(ButtonPolicy::NoRepeatedApplyReadOnlyPolicy);
bc().setOK(okPB); bc().setOK(buttonBox->button(QDialogButtonBox::Ok));
bc().setCancel(closePB); bc().setCancel(buttonBox->button(QDialogButtonBox::Cancel));
} }

View File

@ -32,6 +32,7 @@
#include "support/gettext.h" #include "support/gettext.h"
#include <QCheckBox> #include <QCheckBox>
#include <QDialogButtonBox>
#include <QLineEdit> #include <QLineEdit>
#include <QPushButton> #include <QPushButton>
#include <QSettings> #include <QSettings>
@ -154,13 +155,13 @@ LyXAlignment GuiParagraph::getAlignmentFromDialog() const
void GuiParagraph::on_synchronizedViewCB_toggled() void GuiParagraph::on_synchronizedViewCB_toggled()
{ {
bool in_sync = synchronizedViewCB->isChecked(); bool in_sync = synchronizedViewCB->isChecked();
restorePB->setEnabled(!in_sync); buttonBox->button(QDialogButtonBox::Reset)->setEnabled(!in_sync);
applyPB->setEnabled(!in_sync); buttonBox->button(QDialogButtonBox::Apply)->setEnabled(!in_sync);
okPB->setEnabled(!in_sync); buttonBox->button(QDialogButtonBox::Ok)->setEnabled(!in_sync);
if (!in_sync) if (!in_sync)
closePB->setText(qt_("&Cancel")); buttonBox->button(QDialogButtonBox::Cancel)->setText(qt_("&Cancel"));
else else
closePB->setText(qt_("&Close")); buttonBox->button(QDialogButtonBox::Cancel)->setText(qt_("&Close"));
} }
@ -174,32 +175,29 @@ void GuiParagraph::changed()
&& (linespacing->currentIndex() != 4 && (linespacing->currentIndex() != 4
|| (!linespacingValue->text().endsWith(loc.decimalPoint()) || (!linespacingValue->text().endsWith(loc.decimalPoint())
&& linespacingValue->hasAcceptableInput()))) && linespacingValue->hasAcceptableInput())))
on_applyPB_clicked();
}
void GuiParagraph::on_applyPB_clicked()
{
applyView(); applyView();
} }
void GuiParagraph::on_okPB_clicked() void GuiParagraph::on_buttonBox_clicked(QAbstractButton * button)
{ {
switch (buttonBox->standardButton(button)) {
case QDialogButtonBox::Ok:
applyView(); applyView();
hide(); hide();
} break;
case QDialogButtonBox::Apply:
applyView();
void GuiParagraph::on_closePB_clicked() break;
{ case QDialogButtonBox::Cancel:
hide(); hide();
} break;
case QDialogButtonBox::Reset:
void GuiParagraph::on_restorePB_clicked()
{
updateView(); updateView();
break;
default:
break;
}
} }
@ -316,8 +314,8 @@ void GuiParagraph::enableView(bool enable)
linespacing->setEnabled(enable); linespacing->setEnabled(enable);
labelWidth->setEnabled(enable); labelWidth->setEnabled(enable);
synchronizedViewCB->setEnabled(enable); synchronizedViewCB->setEnabled(enable);
applyPB->setEnabled(enable); buttonBox->button(QDialogButtonBox::Apply)->setEnabled(enable);
restorePB->setEnabled(enable); buttonBox->button(QDialogButtonBox::Reset)->setEnabled(enable);
if (!enable) if (!enable)
synchronizedViewCB->setChecked(true); synchronizedViewCB->setChecked(true);
RadioMap::const_iterator it = radioMap_.begin(); RadioMap::const_iterator it = radioMap_.begin();

View File

@ -69,15 +69,9 @@ private Q_SLOTS:
/// ///
void on_synchronizedViewCB_toggled(); void on_synchronizedViewCB_toggled();
/// ///
void on_restorePB_clicked();
///
void on_linespacing_activated(int); void on_linespacing_activated(int);
/// Apply changes /// Apply changes
void on_applyPB_clicked(); void on_buttonBox_clicked(QAbstractButton * button);
/// Apply changes and close
void on_okPB_clicked();
/// Close/Cancel dialog
void on_closePB_clicked();
private: private:
/// ///

View File

@ -26,16 +26,16 @@ GuiPhantom::GuiPhantom(GuiView & lv)
{ {
setupUi(this); setupUi(this);
connect(okPB, SIGNAL(clicked()), this, SLOT(slotOK())); connect(buttonBox, SIGNAL(clicked(QAbstractButton *)),
connect(closePB, SIGNAL(clicked()), this, SLOT(slotClose())); this, SLOT(slotButtonBox(QAbstractButton *)));
connect(phantomRB, SIGNAL(clicked()), this, SLOT(change_adaptor())); connect(phantomRB, SIGNAL(clicked()), this, SLOT(change_adaptor()));
connect(hphantomRB, SIGNAL(clicked()), this, SLOT(change_adaptor())); connect(hphantomRB, SIGNAL(clicked()), this, SLOT(change_adaptor()));
connect(vphantomRB, SIGNAL(clicked()), this, SLOT(change_adaptor())); connect(vphantomRB, SIGNAL(clicked()), this, SLOT(change_adaptor()));
bc().setPolicy(ButtonPolicy::NoRepeatedApplyReadOnlyPolicy); bc().setPolicy(ButtonPolicy::NoRepeatedApplyReadOnlyPolicy);
bc().setOK(okPB); bc().setOK(buttonBox->button(QDialogButtonBox::Ok));
bc().setCancel(closePB); bc().setCancel(buttonBox->button(QDialogButtonBox::Cancel));
} }

View File

@ -3417,10 +3417,8 @@ GuiPreferences::GuiPreferences(GuiView & lv)
QDialog::setModal(false); QDialog::setModal(false);
connect(okPB, SIGNAL(clicked()), this, SLOT(slotOK())); connect(buttonBox, SIGNAL(clicked(QAbstractButton *)),
connect(applyPB, SIGNAL(clicked()), this, SLOT(slotApply())); this, SLOT(slotButtonBox(QAbstractButton *)));
connect(closePB, SIGNAL(clicked()), this, SLOT(slotClose()));
connect(restorePB, SIGNAL(clicked()), this, SLOT(slotRestore()));
addModule(new PrefUserInterface(this)); addModule(new PrefUserInterface(this));
addModule(new PrefDocHandling(this)); addModule(new PrefDocHandling(this));
@ -3462,10 +3460,10 @@ GuiPreferences::GuiPreferences(GuiView & lv)
#endif #endif
bc().setPolicy(ButtonPolicy::PreferencesPolicy); bc().setPolicy(ButtonPolicy::PreferencesPolicy);
bc().setOK(okPB); bc().setOK(buttonBox->button(QDialogButtonBox::Ok));
bc().setApply(applyPB); bc().setApply(buttonBox->button(QDialogButtonBox::Apply));
bc().setCancel(closePB); bc().setCancel(buttonBox->button(QDialogButtonBox::Cancel));
bc().setRestore(restorePB); bc().setRestore(buttonBox->button(QDialogButtonBox::Reset));
// initialize the strftime validator // initialize the strftime validator
bc().addCheckedLineEdit(output->DateED); bc().addCheckedLineEdit(output->DateED);

View File

@ -42,6 +42,8 @@
#include "support/debug.h" #include "support/debug.h"
#include "support/lstrings.h" #include "support/lstrings.h"
#include <QDialogButtonBox>
using namespace std; using namespace std;
using namespace lyx::support; using namespace lyx::support;
@ -82,6 +84,8 @@ InsetParamsDialog::InsetParamsDialog(GuiView & lv, InsetParamsWidget * widget)
synchronizedCB->setChecked(true); synchronizedCB->setChecked(true);
on_immediateApplyCB_stateChanged(false); on_immediateApplyCB_stateChanged(false);
setFocusProxy(widget); setFocusProxy(widget);
newPB = buttonBox->addButton(qt_("Ne&w Inset"),
QDialogButtonBox::ActionRole);
} }
InsetParamsDialog::~InsetParamsDialog() InsetParamsDialog::~InsetParamsDialog()
@ -93,7 +97,7 @@ InsetParamsDialog::~InsetParamsDialog()
bool InsetParamsDialog::initialiseParams(std::string const & sdata) bool InsetParamsDialog::initialiseParams(std::string const & sdata)
{ {
if (!d->widget_->initialiseParams(sdata)) if (!d->widget_->initialiseParams(sdata))
on_restorePB_clicked(); resetDialog();
return true; return true;
} }
@ -107,23 +111,43 @@ void InsetParamsDialog::setInsetParamsWidget(InsetParamsWidget * widget)
} }
void InsetParamsDialog::on_restorePB_clicked() void InsetParamsDialog::on_buttonBox_clicked(QAbstractButton * button)
{
updateView(true);
restorePB->setEnabled(false);
d->changed_ = false;
d->inset_ = inset(d->widget_->insetCode());
}
void InsetParamsDialog::on_okPB_clicked()
{ {
switch (buttonBox->buttonRole(button)) {
case QDialogButtonBox::AcceptRole: {// OK
Inset const * i = inset(d->widget_->insetCode()); Inset const * i = inset(d->widget_->insetCode());
if (i) if (i)
applyView(); applyView();
else else
newInset(); newInset();
hide(); hide();
break;
}
case QDialogButtonBox::ApplyRole:
applyView();
break;
case QDialogButtonBox::RejectRole:// Cancel or Close
hide();
break;
case QDialogButtonBox::ResetRole: {
resetDialog();
break;
}
case QDialogButtonBox::ActionRole:// New Inset
newInset();
break;
default:
break;
}
}
void InsetParamsDialog::resetDialog()
{
updateView(true);
buttonBox->button(QDialogButtonBox::Reset)->setEnabled(false);
d->changed_ = false;
d->inset_ = inset(d->widget_->insetCode());
} }
@ -134,21 +158,12 @@ void InsetParamsDialog::newInset()
} }
void InsetParamsDialog::on_newPB_clicked() bool InsetParamsDialog::newInsetAllowed() const
{ {
newInset(); docstring const argument = d->widget_->dialogToParams();
} FuncRequest const fr = FuncRequest(d->widget_->creationCode(), argument);
FuncStatus const fs(getStatus(fr));
return fs.enabled();
void InsetParamsDialog::on_applyPB_clicked()
{
applyView();
}
void InsetParamsDialog::on_closePB_clicked()
{
hide();
} }
@ -177,12 +192,22 @@ docstring InsetParamsDialog::checkWidgets(bool immediate)
? d->widget_->creationCode() : LFUN_INSET_MODIFY; ? d->widget_->creationCode() : LFUN_INSET_MODIFY;
bool const lfun_ok = lyx::getStatus(FuncRequest(code, argument)).enabled(); bool const lfun_ok = lyx::getStatus(FuncRequest(code, argument)).enabled();
okPB->setEnabled(!immediate && widget_ok && !read_only && valid_argument); buttonBox->button(QDialogButtonBox::Ok)->setEnabled(!immediate && widget_ok
&& !read_only && valid_argument);
bool const can_be_restored = !immediate && !read_only bool const can_be_restored = !immediate && !read_only
&& ins && (ins != d->inset_ || d->changed_); && ins && (ins != d->inset_ || d->changed_);
restorePB->setEnabled(can_be_restored); buttonBox->button(QDialogButtonBox::Reset)->setEnabled(can_be_restored);
applyPB->setEnabled(ins && !immediate && lfun_ok && widget_ok && !read_only && valid_argument); buttonBox->button(QDialogButtonBox::Apply)->setEnabled(ins && !immediate
newPB->setEnabled(widget_ok && !read_only && valid_argument); && lfun_ok && widget_ok
&& !read_only && valid_argument);
// This seems to be the only way to access custom buttons
QList<QAbstractButton*> buttons = buttonBox->buttons();
for (int i = 0; i < buttons.size(); ++i) {
if (buttonBox->buttonRole(buttons.at(i)) == QDialogButtonBox::ActionRole)
buttons.at(i)->setEnabled(widget_ok && !read_only
&& valid_argument
&& newInsetAllowed());
}
synchronizedCB->setEnabled(!immediate); synchronizedCB->setEnabled(!immediate);
return argument; return argument;
} }

View File

@ -15,6 +15,8 @@
#include "DialogView.h" #include "DialogView.h"
#include "ui_InsetParamsUi.h" #include "ui_InsetParamsUi.h"
#include <QPushButton>
namespace lyx { namespace lyx {
class Inset; class Inset;
@ -36,11 +38,8 @@ public:
protected Q_SLOTS: protected Q_SLOTS:
void onWidget_changed(); void onWidget_changed();
void applyView(); void applyView();
void on_restorePB_clicked(); void resetDialog();
void on_newPB_clicked(); void on_buttonBox_clicked(QAbstractButton *);
void on_okPB_clicked();
void on_applyPB_clicked();
void on_closePB_clicked();
void on_immediateApplyCB_stateChanged(int state); void on_immediateApplyCB_stateChanged(int state);
void on_synchronizedCB_stateChanged(int state); void on_synchronizedCB_stateChanged(int state);
@ -56,9 +55,13 @@ private:
/// ///
void newInset(); void newInset();
/// ///
bool newInsetAllowed() const;
///
void updateView(bool update_widget); void updateView(bool update_widget);
/// ///
docstring checkWidgets(bool immediate); docstring checkWidgets(bool immediate);
///
QPushButton * newPB;
/// pimpl /// pimpl
struct Private; struct Private;
Private * d; Private * d;

View File

@ -1,36 +1,37 @@
<ui version="4.0" > <?xml version="1.0" encoding="UTF-8"?>
<ui version="4.0">
<class>InsetParamsUi</class> <class>InsetParamsUi</class>
<widget class="QDialog" name="InsetParamsUi" > <widget class="QDialog" name="InsetParamsUi">
<property name="geometry" > <property name="geometry">
<rect> <rect>
<x>0</x> <x>0</x>
<y>0</y> <y>0</y>
<width>425</width> <width>484</width>
<height>106</height> <height>108</height>
</rect> </rect>
</property> </property>
<property name="focusPolicy" > <property name="focusPolicy">
<enum>Qt::NoFocus</enum> <enum>Qt::NoFocus</enum>
</property> </property>
<property name="windowTitle" > <property name="windowTitle">
<string>Inset Parameter Configuration</string> <string>Inset Parameter Configuration</string>
</property> </property>
<layout class="QGridLayout" name="gridLayout" > <layout class="QGridLayout" name="gridLayout">
<item row="0" column="0" colspan="2" > <item row="0" column="0" colspan="2">
<widget class="QStackedWidget" name="stackedWidget" > <widget class="QStackedWidget" name="stackedWidget">
<property name="currentIndex" > <property name="currentIndex">
<number>0</number> <number>0</number>
</property> </property>
<widget class="QWidget" name="page" /> <widget class="QWidget" name="page"/>
<widget class="QWidget" name="page_2" /> <widget class="QWidget" name="page_2"/>
</widget> </widget>
</item> </item>
<item row="1" column="0" > <item row="1" column="0">
<spacer> <spacer>
<property name="orientation" > <property name="orientation">
<enum>Qt::Horizontal</enum> <enum>Qt::Horizontal</enum>
</property> </property>
<property name="sizeHint" stdset="0" > <property name="sizeHint" stdset="0">
<size> <size>
<width>31</width> <width>31</width>
<height>31</height> <height>31</height>
@ -38,107 +39,54 @@
</property> </property>
</spacer> </spacer>
</item> </item>
<item row="1" column="1" > <item row="1" column="1">
<layout class="QHBoxLayout" name="horizontalLayout" > <layout class="QHBoxLayout" name="horizontalLayout">
<item> <item>
<widget class="QCheckBox" name="synchronizedCB" > <widget class="QCheckBox" name="synchronizedCB">
<property name="toolTip" > <property name="toolTip">
<string>Update dialog when moving context</string> <string>Update dialog when moving context</string>
</property> </property>
<property name="text" > <property name="text">
<string>S&amp;ynchronize Dialog</string> <string>S&amp;ynchronize Dialog</string>
</property> </property>
</widget> </widget>
</item> </item>
<item> <item>
<widget class="QCheckBox" name="immediateApplyCB" > <widget class="QCheckBox" name="immediateApplyCB">
<property name="toolTip" > <property name="toolTip">
<string>Apply settings immediately</string> <string>Apply settings immediately</string>
</property> </property>
<property name="layoutDirection" > <property name="layoutDirection">
<enum>Qt::LeftToRight</enum> <enum>Qt::LeftToRight</enum>
</property> </property>
<property name="text" > <property name="text">
<string>I&amp;mmediate Apply</string> <string>I&amp;mmediate Apply</string>
</property> </property>
</widget> </widget>
</item> </item>
</layout> </layout>
</item> </item>
<item row="2" column="0" colspan="2" > <item row="2" column="0" colspan="2">
<layout class="QHBoxLayout" > <layout class="QHBoxLayout">
<property name="spacing" > <property name="spacing">
<number>6</number> <number>6</number>
</property> </property>
<property name="margin" > <property name="leftMargin">
<number>0</number>
</property>
<property name="topMargin">
<number>0</number>
</property>
<property name="rightMargin">
<number>0</number>
</property>
<property name="bottomMargin">
<number>0</number> <number>0</number>
</property> </property>
<item> <item>
<widget class="QPushButton" name="restorePB" > <widget class="QDialogButtonBox" name="buttonBox">
<property name="toolTip" > <property name="standardButtons">
<string>Restore initial values in dialog</string> <set>QDialogButtonBox::Apply|QDialogButtonBox::Cancel|QDialogButtonBox::Ok|QDialogButtonBox::Reset</set>
</property>
<property name="text" >
<string>&amp;Restore</string>
</property>
<property name="autoDefault" >
<bool>false</bool>
</property>
</widget>
</item>
<item>
<widget class="QPushButton" name="newPB" >
<property name="toolTip" >
<string>Push new inset into the document</string>
</property>
<property name="text" >
<string>New Inset</string>
</property>
<property name="autoDefault" >
<bool>false</bool>
</property>
</widget>
</item>
<item>
<spacer>
<property name="orientation" >
<enum>Qt::Horizontal</enum>
</property>
<property name="sizeHint" stdset="0" >
<size>
<width>31</width>
<height>27</height>
</size>
</property>
</spacer>
</item>
<item>
<widget class="QPushButton" name="okPB" >
<property name="text" >
<string>&amp;OK</string>
</property>
<property name="default" >
<bool>true</bool>
</property>
</widget>
</item>
<item>
<widget class="QPushButton" name="applyPB" >
<property name="text" >
<string>&amp;Apply</string>
</property>
<property name="autoDefault" >
<bool>false</bool>
</property>
</widget>
</item>
<item>
<widget class="QPushButton" name="closePB" >
<property name="text" >
<string>&amp;Close</string>
</property>
<property name="autoDefault" >
<bool>false</bool>
</property> </property>
</widget> </widget>
</item> </item>
@ -148,13 +96,9 @@
</widget> </widget>
<tabstops> <tabstops>
<tabstop>immediateApplyCB</tabstop> <tabstop>immediateApplyCB</tabstop>
<tabstop>restorePB</tabstop>
<tabstop>okPB</tabstop>
<tabstop>applyPB</tabstop>
<tabstop>closePB</tabstop>
</tabstops> </tabstops>
<includes> <includes>
<include location="local" >qt_i18n.h</include> <include location="local">qt_i18n.h</include>
</includes> </includes>
<resources/> <resources/>
<connections/> <connections/>

View File

@ -1,70 +1,71 @@
<ui version="4.0" > <?xml version="1.0" encoding="UTF-8"?>
<ui version="4.0">
<class>ListingsUi</class> <class>ListingsUi</class>
<widget class="QDialog" name="ListingsUi" > <widget class="QDialog" name="ListingsUi">
<property name="geometry" > <property name="geometry">
<rect> <rect>
<x>0</x> <x>0</x>
<y>0</y> <y>0</y>
<width>578</width> <width>725</width>
<height>349</height> <height>393</height>
</rect> </rect>
</property> </property>
<property name="windowTitle" > <property name="windowTitle">
<string>Listing</string> <string>Listing</string>
</property> </property>
<layout class="QGridLayout" name="gridLayout_9" > <layout class="QGridLayout" name="gridLayout_9">
<item row="0" column="0" > <item row="0" column="0">
<widget class="QTabWidget" name="listingsTW" > <widget class="QTabWidget" name="listingsTW">
<property name="currentIndex" > <property name="currentIndex">
<number>0</number> <number>0</number>
</property> </property>
<widget class="QWidget" name="tab" > <widget class="QWidget" name="tab">
<attribute name="title" > <attribute name="title">
<string>&amp;Main Settings</string> <string>&amp;Main Settings</string>
</attribute> </attribute>
<layout class="QGridLayout" name="gridLayout_6" > <layout class="QGridLayout" name="gridLayout_6">
<item row="0" column="0" > <item row="0" column="0">
<widget class="QGroupBox" name="placementGB" > <widget class="QGroupBox" name="placementGB">
<property name="title" > <property name="title">
<string>Placement</string> <string>Placement</string>
</property> </property>
<layout class="QGridLayout" name="gridLayout" > <layout class="QGridLayout" name="gridLayout">
<item row="0" column="0" colspan="2" > <item row="0" column="0" colspan="2">
<widget class="QCheckBox" name="inlineCB" > <widget class="QCheckBox" name="inlineCB">
<property name="toolTip" > <property name="toolTip">
<string>Check for inline listings</string> <string>Check for inline listings</string>
</property> </property>
<property name="text" > <property name="text">
<string>&amp;Inline listing</string> <string>&amp;Inline listing</string>
</property> </property>
</widget> </widget>
</item> </item>
<item row="1" column="0" colspan="2" > <item row="1" column="0" colspan="2">
<widget class="QCheckBox" name="floatCB" > <widget class="QCheckBox" name="floatCB">
<property name="toolTip" > <property name="toolTip">
<string>Check for floating listings</string> <string>Check for floating listings</string>
</property> </property>
<property name="text" > <property name="text">
<string>&amp;Float</string> <string>&amp;Float</string>
</property> </property>
</widget> </widget>
</item> </item>
<item row="2" column="0" > <item row="2" column="0">
<widget class="QLabel" name="captionL_5" > <widget class="QLabel" name="captionL_5">
<property name="text" > <property name="text">
<string>&amp;Placement:</string> <string>Pla&amp;cement:</string>
</property> </property>
<property name="wordWrap" > <property name="wordWrap">
<bool>false</bool> <bool>false</bool>
</property> </property>
<property name="buddy" > <property name="buddy">
<cstring>placementLE</cstring> <cstring>placementLE</cstring>
</property> </property>
</widget> </widget>
</item> </item>
<item row="2" column="1" > <item row="2" column="1">
<widget class="QLineEdit" name="placementLE" > <widget class="QLineEdit" name="placementLE">
<property name="toolTip" > <property name="toolTip">
<string>Specify placement (htbp) for floating listings</string> <string>Specify placement (htbp) for floating listings</string>
</property> </property>
</widget> </widget>
@ -72,109 +73,107 @@
</layout> </layout>
</widget> </widget>
</item> </item>
<item row="0" column="1" > <item row="0" column="1">
<widget class="QGroupBox" name="numberstyleGB" > <widget class="QGroupBox" name="numberstyleGB">
<property name="title" > <property name="title">
<string>Line numbering</string> <string>Line numbering</string>
</property> </property>
<layout class="QGridLayout" name="gridLayout_2" > <layout class="QGridLayout" name="gridLayout_2">
<item row="0" column="0" > <item row="0" column="0">
<widget class="QLabel" name="label" > <widget class="QLabel" name="label">
<property name="text" > <property name="text">
<string>&amp;Side:</string> <string>&amp;Side:</string>
</property> </property>
<property name="buddy" > <property name="buddy">
<cstring>numberSideCO</cstring> <cstring>numberSideCO</cstring>
</property> </property>
</widget> </widget>
</item> </item>
<item row="0" column="1" > <item row="0" column="1">
<widget class="QComboBox" name="numberSideCO" > <widget class="QComboBox" name="numberSideCO">
<property name="toolTip" > <property name="toolTip">
<string>On which side should line numbers be printed?</string> <string>On which side should line numbers be printed?</string>
</property> </property>
<item> <item>
<property name="text" > <property name="text">
<string>None</string> <string>None</string>
</property> </property>
</item> </item>
<item> <item>
<property name="text" > <property name="text">
<string>Left</string> <string>Left</string>
</property> </property>
</item> </item>
<item> <item>
<property name="text" > <property name="text">
<string>Right</string> <string>Right</string>
</property> </property>
</item> </item>
</widget> </widget>
</item> </item>
<item row="1" column="0" > <item row="1" column="0">
<widget class="QLabel" name="stepnumberL" > <widget class="QLabel" name="stepnumberL">
<property name="toolTip" > <property name="toolTip">
<string/> <string/>
</property> </property>
<property name="text" > <property name="text">
<string>S&amp;tep:</string> <string>S&amp;tep:</string>
</property> </property>
<property name="wordWrap" > <property name="wordWrap">
<bool>false</bool> <bool>false</bool>
</property> </property>
<property name="buddy" > <property name="buddy">
<cstring>numberStepLE</cstring> <cstring>numberStepLE</cstring>
</property> </property>
</widget> </widget>
</item> </item>
<item row="1" column="1" > <item row="1" column="1">
<widget class="QLineEdit" name="numberStepLE" > <widget class="QLineEdit" name="numberStepLE">
<property name="toolTip" > <property name="toolTip">
<string>Difference between two numbered lines</string> <string>Difference between two numbered lines</string>
</property> </property>
<property name="statusTip" > <property name="statusTip">
<string/> <string/>
</property> </property>
<property name="text" > <property name="text">
<string/> <string/>
</property> </property>
<property name="alignment" > <property name="alignment">
<set>Qt::AlignLeading</set> <set>Qt::AlignLeading</set>
</property> </property>
</widget> </widget>
</item> </item>
<item row="2" column="0" > <item row="2" column="0">
<widget class="QLabel" name="numberfontsizeL" > <widget class="QLabel" name="numberfontsizeL">
<property name="text" > <property name="text">
<string>Font si&amp;ze:</string> <string>Font si&amp;ze:</string>
</property> </property>
<property name="wordWrap" > <property name="wordWrap">
<bool>false</bool> <bool>false</bool>
</property> </property>
<property name="buddy" > <property name="buddy">
<cstring>numberFontSizeCO</cstring> <cstring>numberFontSizeCO</cstring>
</property> </property>
</widget> </widget>
</item> </item>
<item row="2" column="1" > <item row="2" column="1">
<widget class="QComboBox" name="numberFontSizeCO" > <widget class="QComboBox" name="numberFontSizeCO">
<property name="sizePolicy" > <property name="sizePolicy">
<sizepolicy> <sizepolicy hsizetype="Fixed" vsizetype="Fixed">
<hsizetype>0</hsizetype>
<vsizetype>0</vsizetype>
<horstretch>0</horstretch> <horstretch>0</horstretch>
<verstretch>0</verstretch> <verstretch>0</verstretch>
</sizepolicy> </sizepolicy>
</property> </property>
<property name="toolTip" > <property name="toolTip">
<string>Choose the font size for line numbers</string> <string>Choose the font size for line numbers</string>
</property> </property>
<property name="editable" > <property name="editable">
<bool>false</bool> <bool>false</bool>
</property> </property>
<property name="autoCompletion" > <property name="autoCompletion">
<bool>true</bool> <bool>true</bool>
</property> </property>
<property name="duplicatesEnabled" > <property name="duplicatesEnabled">
<bool>false</bool> <bool>false</bool>
</property> </property>
</widget> </widget>
@ -182,150 +181,146 @@
</layout> </layout>
</widget> </widget>
</item> </item>
<item rowspan="2" row="0" column="2" > <item row="0" column="2" rowspan="2">
<widget class="QGroupBox" name="basicstyleGB" > <widget class="QGroupBox" name="basicstyleGB">
<property name="title" > <property name="title">
<string>Style</string> <string>Style</string>
</property> </property>
<layout class="QGridLayout" name="gridLayout_5" > <layout class="QGridLayout" name="gridLayout_5">
<item row="0" column="0" > <item row="0" column="0">
<widget class="QLabel" name="fontsize_label_3" > <widget class="QLabel" name="fontsize_label_3">
<property name="text" > <property name="text">
<string>F&amp;ont size:</string> <string>F&amp;ont size:</string>
</property> </property>
<property name="wordWrap" > <property name="wordWrap">
<bool>false</bool> <bool>false</bool>
</property> </property>
<property name="buddy" > <property name="buddy">
<cstring>fontsizeCO</cstring> <cstring>fontsizeCO</cstring>
</property> </property>
</widget> </widget>
</item> </item>
<item row="0" column="1" > <item row="0" column="1">
<widget class="QComboBox" name="fontsizeCO" > <widget class="QComboBox" name="fontsizeCO">
<property name="sizePolicy" > <property name="sizePolicy">
<sizepolicy> <sizepolicy hsizetype="Fixed" vsizetype="Fixed">
<hsizetype>0</hsizetype>
<vsizetype>0</vsizetype>
<horstretch>0</horstretch> <horstretch>0</horstretch>
<verstretch>0</verstretch> <verstretch>0</verstretch>
</sizepolicy> </sizepolicy>
</property> </property>
<property name="toolTip" > <property name="toolTip">
<string>The content's base font size</string> <string>The content's base font size</string>
</property> </property>
<property name="editable" > <property name="editable">
<bool>false</bool> <bool>false</bool>
</property> </property>
<property name="autoCompletion" > <property name="autoCompletion">
<bool>true</bool> <bool>true</bool>
</property> </property>
<property name="duplicatesEnabled" > <property name="duplicatesEnabled">
<bool>false</bool> <bool>false</bool>
</property> </property>
</widget> </widget>
</item> </item>
<item row="1" column="0" > <item row="1" column="0">
<widget class="QLabel" name="fontstyle_label_3" > <widget class="QLabel" name="fontstyle_label_3">
<property name="text" > <property name="text">
<string>Font Famil&amp;y:</string> <string>Font Famil&amp;y:</string>
</property> </property>
<property name="wordWrap" > <property name="wordWrap">
<bool>false</bool> <bool>false</bool>
</property> </property>
<property name="buddy" > <property name="buddy">
<cstring>fontstyleCO</cstring> <cstring>fontstyleCO</cstring>
</property> </property>
</widget> </widget>
</item> </item>
<item row="1" column="1" > <item row="1" column="1">
<widget class="QComboBox" name="fontstyleCO" > <widget class="QComboBox" name="fontstyleCO">
<property name="sizePolicy" > <property name="sizePolicy">
<sizepolicy> <sizepolicy hsizetype="Fixed" vsizetype="Fixed">
<hsizetype>0</hsizetype>
<vsizetype>0</vsizetype>
<horstretch>0</horstretch> <horstretch>0</horstretch>
<verstretch>0</verstretch> <verstretch>0</verstretch>
</sizepolicy> </sizepolicy>
</property> </property>
<property name="toolTip" > <property name="toolTip">
<string>The content's base font style</string> <string>The content's base font style</string>
</property> </property>
<property name="editable" > <property name="editable">
<bool>false</bool> <bool>false</bool>
</property> </property>
<property name="autoCompletion" > <property name="autoCompletion">
<bool>true</bool> <bool>true</bool>
</property> </property>
<property name="duplicatesEnabled" > <property name="duplicatesEnabled">
<bool>false</bool> <bool>false</bool>
</property> </property>
</widget> </widget>
</item> </item>
<item row="2" column="0" colspan="2" > <item row="2" column="0" colspan="2">
<widget class="QCheckBox" name="breaklinesCB" > <widget class="QCheckBox" name="breaklinesCB">
<property name="toolTip" > <property name="toolTip">
<string>Break lines longer than the linewidth</string> <string>Break lines longer than the linewidth</string>
</property> </property>
<property name="text" > <property name="text">
<string>&amp;Break long lines</string> <string>&amp;Break long lines</string>
</property> </property>
<property name="shortcut" > <property name="shortcut">
<number>276824130</number> <number>276824130</number>
</property> </property>
</widget> </widget>
</item> </item>
<item row="3" column="0" colspan="2" > <item row="3" column="0" colspan="2">
<widget class="QCheckBox" name="spaceCB" > <widget class="QCheckBox" name="spaceCB">
<property name="toolTip" > <property name="toolTip">
<string>Make spaces visible by a special symbol</string> <string>Make spaces visible by a special symbol</string>
</property> </property>
<property name="text" > <property name="text">
<string>S&amp;pace as symbol</string> <string>S&amp;pace as symbol</string>
</property> </property>
<property name="shortcut" > <property name="shortcut">
<number>276824147</number> <number>276824147</number>
</property> </property>
</widget> </widget>
</item> </item>
<item row="4" column="0" colspan="2" > <item row="4" column="0" colspan="2">
<widget class="QCheckBox" name="spaceInStringCB" > <widget class="QCheckBox" name="spaceInStringCB">
<property name="toolTip" > <property name="toolTip">
<string>Make spaces in strings visible by a special symbol</string> <string>Make spaces in strings visible by a special symbol</string>
</property> </property>
<property name="text" > <property name="text">
<string>Space i&amp;n string as symbol</string> <string>Space i&amp;n string as symbol</string>
</property> </property>
<property name="shortcut" > <property name="shortcut">
<number>276824147</number> <number>276824147</number>
</property> </property>
</widget> </widget>
</item> </item>
<item row="5" column="0" > <item row="5" column="0">
<widget class="QLabel" name="tabsizeL" > <widget class="QLabel" name="tabsizeL">
<property name="text" > <property name="text">
<string>Tab&amp;ulator size:</string> <string>Tab&amp;ulator size:</string>
</property> </property>
<property name="buddy" > <property name="buddy">
<cstring>tabsizeSB</cstring> <cstring>tabsizeSB</cstring>
</property> </property>
</widget> </widget>
</item> </item>
<item row="5" column="1" > <item row="5" column="1">
<widget class="QSpinBox" name="tabsizeSB" /> <widget class="QSpinBox" name="tabsizeSB"/>
</item> </item>
<item row="6" column="0" colspan="2" > <item row="6" column="0" colspan="2">
<widget class="QCheckBox" name="extendedcharsCB" > <widget class="QCheckBox" name="extendedcharsCB">
<property name="enabled" > <property name="enabled">
<bool>true</bool> <bool>true</bool>
</property> </property>
<property name="toolTip" > <property name="toolTip">
<string>Use extended character table</string> <string>Use extended character table</string>
</property> </property>
<property name="text" > <property name="text">
<string>&amp;Extended character table</string> <string>&amp;Extended character table</string>
</property> </property>
<property name="shortcut" > <property name="shortcut">
<number>276824133</number> <number>276824133</number>
</property> </property>
</widget> </widget>
@ -333,42 +328,42 @@
</layout> </layout>
</widget> </widget>
</item> </item>
<item row="1" column="0" > <item row="1" column="0">
<widget class="QGroupBox" name="languageGB" > <widget class="QGroupBox" name="languageGB">
<property name="title" > <property name="title">
<string>Language</string> <string>Language</string>
</property> </property>
<layout class="QGridLayout" name="gridLayout_3" > <layout class="QGridLayout" name="gridLayout_3">
<item row="0" column="0" > <item row="0" column="0">
<widget class="QLabel" name="languageLBL" > <widget class="QLabel" name="languageLBL">
<property name="text" > <property name="text">
<string>Lan&amp;guage:</string> <string>Lan&amp;guage:</string>
</property> </property>
<property name="buddy" > <property name="buddy">
<cstring>languageCO</cstring> <cstring>languageCO</cstring>
</property> </property>
</widget> </widget>
</item> </item>
<item row="0" column="1" > <item row="0" column="1">
<widget class="QComboBox" name="languageCO" > <widget class="QComboBox" name="languageCO">
<property name="toolTip" > <property name="toolTip">
<string>Select the programming language</string> <string>Select the programming language</string>
</property> </property>
</widget> </widget>
</item> </item>
<item row="1" column="0" > <item row="1" column="0">
<widget class="QLabel" name="dialectLBL" > <widget class="QLabel" name="dialectLBL">
<property name="text" > <property name="text">
<string>&amp;Dialect:</string> <string>&amp;Dialect:</string>
</property> </property>
<property name="buddy" > <property name="buddy">
<cstring>dialectCO</cstring> <cstring>dialectCO</cstring>
</property> </property>
</widget> </widget>
</item> </item>
<item row="1" column="1" > <item row="1" column="1">
<widget class="QComboBox" name="dialectCO" > <widget class="QComboBox" name="dialectCO">
<property name="toolTip" > <property name="toolTip">
<string>Select the dialect of the programming language, if available</string> <string>Select the dialect of the programming language, if available</string>
</property> </property>
</widget> </widget>
@ -376,60 +371,60 @@
</layout> </layout>
</widget> </widget>
</item> </item>
<item row="1" column="1" > <item row="1" column="1">
<widget class="QGroupBox" name="rangeGB" > <widget class="QGroupBox" name="rangeGB">
<property name="title" > <property name="title">
<string>Range</string> <string>Range</string>
</property> </property>
<layout class="QGridLayout" name="gridLayout_4" > <layout class="QGridLayout" name="gridLayout_4">
<item row="0" column="0" > <item row="0" column="0">
<widget class="QLabel" name="numberfontsizeL_3" > <widget class="QLabel" name="numberfontsizeL_3">
<property name="text" > <property name="text">
<string>Fi&amp;rst line:</string> <string>Fi&amp;rst line:</string>
</property> </property>
<property name="wordWrap" > <property name="wordWrap">
<bool>false</bool> <bool>false</bool>
</property> </property>
<property name="buddy" > <property name="buddy">
<cstring>firstlineLE</cstring> <cstring>firstlineLE</cstring>
</property> </property>
</widget> </widget>
</item> </item>
<item row="0" column="1" > <item row="0" column="1">
<widget class="QLineEdit" name="firstlineLE" > <widget class="QLineEdit" name="firstlineLE">
<property name="toolTip" > <property name="toolTip">
<string>The first line to be printed</string> <string>The first line to be printed</string>
</property> </property>
<property name="text" > <property name="text">
<string/> <string/>
</property> </property>
<property name="alignment" > <property name="alignment">
<set>Qt::AlignLeading</set> <set>Qt::AlignLeading</set>
</property> </property>
</widget> </widget>
</item> </item>
<item row="1" column="0" > <item row="1" column="0">
<widget class="QLabel" name="numberfontsizeL_2" > <widget class="QLabel" name="numberfontsizeL_2">
<property name="text" > <property name="text">
<string>&amp;Last line:</string> <string>&amp;Last line:</string>
</property> </property>
<property name="wordWrap" > <property name="wordWrap">
<bool>false</bool> <bool>false</bool>
</property> </property>
<property name="buddy" > <property name="buddy">
<cstring>lastlineLE</cstring> <cstring>lastlineLE</cstring>
</property> </property>
</widget> </widget>
</item> </item>
<item row="1" column="1" > <item row="1" column="1">
<widget class="QLineEdit" name="lastlineLE" > <widget class="QLineEdit" name="lastlineLE">
<property name="toolTip" > <property name="toolTip">
<string>The last line to be printed</string> <string>The last line to be printed</string>
</property> </property>
<property name="text" > <property name="text">
<string/> <string/>
</property> </property>
<property name="alignment" > <property name="alignment">
<set>Qt::AlignLeading</set> <set>Qt::AlignLeading</set>
</property> </property>
</widget> </widget>
@ -439,74 +434,70 @@
</item> </item>
</layout> </layout>
</widget> </widget>
<widget class="QWidget" name="tab_2" > <widget class="QWidget" name="tab_2">
<attribute name="title" > <attribute name="title">
<string>Ad&amp;vanced</string> <string>Ad&amp;vanced</string>
</attribute> </attribute>
<layout class="QGridLayout" name="gridLayout_8" > <layout class="QGridLayout" name="gridLayout_8">
<item row="0" column="0" > <item row="0" column="0">
<widget class="QGroupBox" name="listingsGB" > <widget class="QGroupBox" name="listingsGB">
<property name="sizePolicy" > <property name="sizePolicy">
<sizepolicy> <sizepolicy hsizetype="Fixed" vsizetype="Fixed">
<hsizetype>0</hsizetype>
<vsizetype>0</vsizetype>
<horstretch>0</horstretch> <horstretch>0</horstretch>
<verstretch>0</verstretch> <verstretch>0</verstretch>
</sizepolicy> </sizepolicy>
</property> </property>
<property name="title" > <property name="title">
<string>More Parameters</string> <string>More Parameters</string>
</property> </property>
<layout class="QGridLayout" name="gridLayout_7" > <layout class="QGridLayout" name="gridLayout_7">
<item row="0" column="0" > <item row="0" column="0">
<widget class="QSplitter" name="splitter" > <widget class="QSplitter" name="splitter">
<property name="orientation" > <property name="orientation">
<enum>Qt::Horizontal</enum> <enum>Qt::Horizontal</enum>
</property> </property>
<widget class="QTextBrowser" name="listingsTB" > <widget class="QTextBrowser" name="listingsTB">
<property name="maximumSize" > <property name="maximumSize">
<size> <size>
<width>16777215</width> <width>16777215</width>
<height>16777215</height> <height>16777215</height>
</size> </size>
</property> </property>
<property name="acceptDrops" > <property name="acceptDrops">
<bool>false</bool> <bool>false</bool>
</property> </property>
<property name="toolTip" > <property name="toolTip">
<string>Feedback window</string> <string>Feedback window</string>
</property> </property>
<property name="frameShape" > <property name="frameShape">
<enum>QFrame::Box</enum> <enum>QFrame::Box</enum>
</property> </property>
<property name="frameShadow" > <property name="frameShadow">
<enum>QFrame::Plain</enum> <enum>QFrame::Plain</enum>
</property> </property>
<property name="acceptRichText" > <property name="acceptRichText">
<bool>false</bool> <bool>false</bool>
</property> </property>
</widget> </widget>
<widget class="QTextEdit" name="listingsED" > <widget class="QTextEdit" name="listingsED">
<property name="sizePolicy" > <property name="sizePolicy">
<sizepolicy> <sizepolicy hsizetype="Fixed" vsizetype="Fixed">
<hsizetype>0</hsizetype>
<vsizetype>0</vsizetype>
<horstretch>0</horstretch> <horstretch>0</horstretch>
<verstretch>0</verstretch> <verstretch>0</verstretch>
</sizepolicy> </sizepolicy>
</property> </property>
<property name="toolTip" > <property name="toolTip">
<string>Input listing parameters here. Enter ? for a list of parameters.</string> <string>Input listing parameters here. Enter ? for a list of parameters.</string>
</property> </property>
</widget> </widget>
</widget> </widget>
</item> </item>
<item row="1" column="0" > <item row="1" column="0">
<widget class="QCheckBox" name="bypassCB" > <widget class="QCheckBox" name="bypassCB">
<property name="toolTip" > <property name="toolTip">
<string>Check it to enter parameters that are not recognizable by LyX</string> <string>Check it to enter parameters that are not recognizable by LyX</string>
</property> </property>
<property name="text" > <property name="text">
<string>&amp;Bypass validation</string> <string>&amp;Bypass validation</string>
</property> </property>
</widget> </widget>
@ -518,45 +509,12 @@
</widget> </widget>
</widget> </widget>
</item> </item>
<item row="1" column="0" > <item row="1" column="0">
<layout class="QHBoxLayout" name="horizontalLayout" > <layout class="QHBoxLayout" name="horizontalLayout">
<item> <item>
<spacer name="horizontalSpacer" > <widget class="QDialogButtonBox" name="buttonBox">
<property name="orientation" > <property name="standardButtons">
<enum>Qt::Horizontal</enum> <set>QDialogButtonBox::Apply|QDialogButtonBox::Cancel|QDialogButtonBox::Ok</set>
</property>
<property name="sizeHint" stdset="0" >
<size>
<width>40</width>
<height>20</height>
</size>
</property>
</spacer>
</item>
<item>
<widget class="QPushButton" name="okPB" >
<property name="text" >
<string>&amp;OK</string>
</property>
<property name="default" >
<bool>true</bool>
</property>
</widget>
</item>
<item>
<widget class="QPushButton" name="applyPB" >
<property name="text" >
<string>&amp;Apply</string>
</property>
<property name="default" >
<bool>true</bool>
</property>
</widget>
</item>
<item>
<widget class="QPushButton" name="closePB" >
<property name="text" >
<string>&amp;Cancel</string>
</property> </property>
</widget> </widget>
</item> </item>
@ -565,9 +523,6 @@
</layout> </layout>
</widget> </widget>
<tabstops> <tabstops>
<tabstop>okPB</tabstop>
<tabstop>applyPB</tabstop>
<tabstop>closePB</tabstop>
<tabstop>listingsTW</tabstop> <tabstop>listingsTW</tabstop>
<tabstop>inlineCB</tabstop> <tabstop>inlineCB</tabstop>
<tabstop>floatCB</tabstop> <tabstop>floatCB</tabstop>
@ -589,7 +544,7 @@
<tabstop>listingsED</tabstop> <tabstop>listingsED</tabstop>
</tabstops> </tabstops>
<includes> <includes>
<include location="local" >qt_i18n.h</include> <include location="local">qt_i18n.h</include>
</includes> </includes>
<resources/> <resources/>
<connections/> <connections/>

View File

@ -1,61 +1,43 @@
<?xml version="1.0" encoding="UTF-8"?> <?xml version="1.0" encoding="UTF-8"?>
<ui version="4.0" > <ui version="4.0">
<class>LogUi</class> <class>LogUi</class>
<widget class="QDialog" name="LogUi" > <widget class="QDialog" name="LogUi">
<property name="geometry" > <property name="geometry">
<rect> <rect>
<x>0</x> <x>0</x>
<y>0</y> <y>0</y>
<width>421</width> <width>452</width>
<height>474</height> <height>474</height>
</rect> </rect>
</property> </property>
<property name="windowTitle" > <property name="windowTitle">
<string/> <string/>
</property> </property>
<property name="sizeGripEnabled" > <property name="sizeGripEnabled">
<bool>true</bool> <bool>true</bool>
</property> </property>
<layout class="QGridLayout" > <layout class="QGridLayout" name="gridLayout">
<property name="margin" > <item row="0" column="0" colspan="3">
<number>9</number> <layout class="QHBoxLayout" name="horizontalLayout">
</property> <item>
<property name="spacing" > <widget class="QLabel" name="logTypeLA">
<number>6</number> <property name="text">
</property>
<item row="3" column="0" >
<widget class="QLabel" name="findLA" >
<property name="text" >
<string>&amp;Find:</string>
</property>
<property name="buddy" >
<cstring>findLE</cstring>
</property>
</widget>
</item>
<item row="3" column="1" colspan="5" >
<widget class="QLineEdit" name="findLE" >
<property name="toolTip" >
<string>Hit Enter to search, or click Go!</string>
</property>
</widget>
</item>
<item row="0" column="0" >
<widget class="QLabel" name="logTypeLA" >
<property name="text" >
<string>Log &amp;Type:</string> <string>Log &amp;Type:</string>
</property> </property>
<property name="buddy" > <property name="buddy">
<cstring>logTypeCO</cstring> <cstring>logTypeCO</cstring>
</property> </property>
</widget> </widget>
</item> </item>
<item row="0" column="4" colspan="3" > <item>
<widget class="QComboBox" name="logTypeCO"/>
</item>
<item>
<spacer> <spacer>
<property name="orientation" > <property name="orientation">
<enum>Qt::Horizontal</enum> <enum>Qt::Horizontal</enum>
</property> </property>
<property name="sizeHint" > <property name="sizeHint" stdset="0">
<size> <size>
<width>161</width> <width>161</width>
<height>20</height> <height>20</height>
@ -63,61 +45,19 @@
</property> </property>
</spacer> </spacer>
</item> </item>
<item row="0" column="1" colspan="3" > </layout>
<widget class="QComboBox" name="logTypeCO" />
</item> </item>
<item row="1" column="0" colspan="7" > <item row="1" column="0" colspan="4">
<widget class="QTextBrowser" name="logTB" /> <widget class="QTextBrowser" name="logTB"/>
</item> </item>
<item row="4" column="4" colspan="2" > <item row="2" column="0" colspan="4">
<widget class="QPushButton" name="updatePB" > <layout class="QHBoxLayout" name="horizontalLayout_2">
<property name="toolTip" > <item>
<string>Update the display</string>
</property>
<property name="text" >
<string>&amp;Update</string>
</property>
<property name="default" >
<bool>true</bool>
</property>
</widget>
</item>
<item row="4" column="6" >
<widget class="QPushButton" name="closePB" >
<property name="text" >
<string>&amp;Close</string>
</property>
</widget>
</item>
<item row="4" column="2" colspan="2" >
<spacer> <spacer>
<property name="orientation" > <property name="orientation">
<enum>Qt::Horizontal</enum> <enum>Qt::Horizontal</enum>
</property> </property>
<property name="sizeType" > <property name="sizeHint" stdset="0">
<enum>QSizePolicy::Expanding</enum>
</property>
<property name="sizeHint" >
<size>
<width>111</width>
<height>26</height>
</size>
</property>
</spacer>
</item>
<item row="4" column="0" colspan="2" >
<widget class="QPushButton" name="openDirPB" >
<property name="text" >
<string>&amp;Open Containing Directory</string>
</property>
</widget>
</item>
<item row="2" column="0" colspan="3" >
<spacer>
<property name="orientation" >
<enum>Qt::Horizontal</enum>
</property>
<property name="sizeHint" >
<size> <size>
<width>201</width> <width>201</width>
<height>20</height> <height>20</height>
@ -125,30 +65,96 @@
</property> </property>
</spacer> </spacer>
</item> </item>
<item row="3" column="6" > <item>
<widget class="QPushButton" name="findPB" > <widget class="QPushButton" name="nextErrorPB">
<property name="text" > <property name="toolTip">
<string>&amp;Go!</string> <string>Jump to the next error message.</string>
</property>
<property name="text">
<string>Next &amp;Error</string>
</property> </property>
</widget> </widget>
</item> </item>
<item row="2" column="5" colspan="2" > <item>
<widget class="QPushButton" name="nextWarningPB" > <widget class="QPushButton" name="nextWarningPB">
<property name="toolTip" > <property name="toolTip">
<string>Jump to the next warning message.</string> <string>Jump to the next warning message.</string>
</property> </property>
<property name="text" > <property name="text">
<string>Next &amp;Warning</string> <string>Next &amp;Warning</string>
</property> </property>
</widget> </widget>
</item> </item>
<item row="2" column="3" colspan="2" > </layout>
<widget class="QPushButton" name="nextErrorPB" > </item>
<property name="toolTip" > <item row="3" column="0" colspan="4">
<string>Jump to the next error message.</string> <layout class="QHBoxLayout" name="horizontalLayout_3">
<item>
<widget class="QLabel" name="findLA">
<property name="text">
<string>&amp;Find:</string>
</property> </property>
<property name="text" > <property name="buddy">
<string>Next &amp;Error</string> <cstring>findLE</cstring>
</property>
</widget>
</item>
<item>
<widget class="QLineEdit" name="findLE">
<property name="toolTip">
<string>Hit Enter to search, or click Go!</string>
</property>
</widget>
</item>
<item>
<widget class="QPushButton" name="findPB">
<property name="text">
<string>&amp;Go!</string>
</property>
</widget>
</item>
</layout>
</item>
<item row="4" column="0">
<widget class="QPushButton" name="openDirPB">
<property name="text">
<string>&amp;Open Containing Directory</string>
</property>
</widget>
</item>
<item row="4" column="1">
<spacer>
<property name="orientation">
<enum>Qt::Horizontal</enum>
</property>
<property name="sizeType">
<enum>QSizePolicy::Expanding</enum>
</property>
<property name="sizeHint" stdset="0">
<size>
<width>111</width>
<height>26</height>
</size>
</property>
</spacer>
</item>
<item row="4" column="2">
<widget class="QPushButton" name="updatePB">
<property name="toolTip">
<string>Update the display</string>
</property>
<property name="text">
<string>&amp;Update</string>
</property>
<property name="default">
<bool>true</bool>
</property>
</widget>
</item>
<item row="4" column="3">
<widget class="QDialogButtonBox" name="buttonBox">
<property name="standardButtons">
<set>QDialogButtonBox::Close</set>
</property> </property>
</widget> </widget>
</item> </item>
@ -158,10 +164,9 @@
<tabstop>logTB</tabstop> <tabstop>logTB</tabstop>
<tabstop>openDirPB</tabstop> <tabstop>openDirPB</tabstop>
<tabstop>updatePB</tabstop> <tabstop>updatePB</tabstop>
<tabstop>closePB</tabstop>
</tabstops> </tabstops>
<includes> <includes>
<include location="local" >qt_i18n.h</include> <include location="local">qt_i18n.h</include>
</includes> </includes>
<resources/> <resources/>
<connections/> <connections/>

View File

@ -6,7 +6,7 @@
<rect> <rect>
<x>0</x> <x>0</x>
<y>0</y> <y>0</y>
<width>398</width> <width>431</width>
<height>372</height> <height>372</height>
</rect> </rect>
</property> </property>
@ -22,7 +22,16 @@
<property name="spacing"> <property name="spacing">
<number>6</number> <number>6</number>
</property> </property>
<property name="margin"> <property name="leftMargin">
<number>0</number>
</property>
<property name="topMargin">
<number>0</number>
</property>
<property name="rightMargin">
<number>0</number>
</property>
<property name="bottomMargin">
<number>0</number> <number>0</number>
</property> </property>
<item> <item>
@ -146,13 +155,22 @@
</property> </property>
</spacer> </spacer>
</item> </item>
<item row="3" column="0"> <item row="3" column="0" colspan="2">
<widget class="QGroupBox" name="alignmentGB"> <widget class="QGroupBox" name="alignmentGB">
<property name="title"> <property name="title">
<string>Alignment</string> <string>Alignment</string>
</property> </property>
<layout class="QGridLayout" name="grid_1"> <layout class="QGridLayout" name="grid_1">
<property name="margin"> <property name="leftMargin">
<number>11</number>
</property>
<property name="topMargin">
<number>11</number>
</property>
<property name="rightMargin">
<number>11</number>
</property>
<property name="bottomMargin">
<number>11</number> <number>11</number>
</property> </property>
<property name="spacing"> <property name="spacing">
@ -194,7 +212,7 @@
<item row="0" column="1"> <item row="0" column="1">
<widget class="QLabel" name="widthLA_2"> <widget class="QLabel" name="widthLA_2">
<property name="text"> <property name="text">
<string>&amp;Horizontal:</string> <string>Hori&amp;zontal:</string>
</property> </property>
<property name="buddy"> <property name="buddy">
<cstring>halignED</cstring> <cstring>halignED</cstring>
@ -204,7 +222,7 @@
</layout> </layout>
</widget> </widget>
</item> </item>
<item row="3" column="1" colspan="2"> <item row="3" column="2">
<widget class="QGroupBox" name="decorationtGB"> <widget class="QGroupBox" name="decorationtGB">
<property name="title"> <property name="title">
<string>Decoration</string> <string>Decoration</string>
@ -233,46 +251,13 @@
</layout> </layout>
</widget> </widget>
</item> </item>
<item row="4" column="0"> <item row="4" column="1" colspan="2">
<layout class="QHBoxLayout"> <widget class="QDialogButtonBox" name="buttonBox">
<property name="spacing"> <property name="standardButtons">
<number>6</number> <set>QDialogButtonBox::Cancel|QDialogButtonBox::Ok</set>
</property>
<property name="margin">
<number>0</number>
</property>
<item>
<spacer>
<property name="orientation">
<enum>Qt::Horizontal</enum>
</property>
<property name="sizeType">
<enum>QSizePolicy::Expanding</enum>
</property>
<property name="sizeHint" stdset="0">
<size>
<width>20</width>
<height>20</height>
</size>
</property>
</spacer>
</item>
<item>
<widget class="QPushButton" name="okPB">
<property name="text">
<string>&amp;OK</string>
</property> </property>
</widget> </widget>
</item> </item>
<item>
<widget class="QPushButton" name="closePB">
<property name="text">
<string>Close</string>
</property>
</widget>
</item>
</layout>
</item>
</layout> </layout>
</widget> </widget>
<customwidgets> <customwidgets>
@ -288,8 +273,6 @@
<tabstop>valignCO</tabstop> <tabstop>valignCO</tabstop>
<tabstop>halignED</tabstop> <tabstop>halignED</tabstop>
<tabstop>decorationCO</tabstop> <tabstop>decorationCO</tabstop>
<tabstop>okPB</tabstop>
<tabstop>closePB</tabstop>
</tabstops> </tabstops>
<includes> <includes>
<include location="local">qt_i18n.h</include> <include location="local">qt_i18n.h</include>

View File

@ -1,85 +1,69 @@
<ui version="4.0" > <?xml version="1.0" encoding="UTF-8"?>
<ui version="4.0">
<class>NoteUi</class> <class>NoteUi</class>
<widget class="QDialog" name="NoteUi" > <widget class="QDialog" name="NoteUi">
<property name="geometry" > <property name="geometry">
<rect> <rect>
<x>0</x> <x>0</x>
<y>0</y> <y>0</y>
<width>202</width> <width>202</width>
<height>184</height> <height>196</height>
</rect> </rect>
</property> </property>
<property name="windowTitle" > <property name="windowTitle">
<string/> <string/>
</property> </property>
<property name="sizeGripEnabled" > <property name="sizeGripEnabled">
<bool>true</bool> <bool>true</bool>
</property> </property>
<layout class="QGridLayout" > <layout class="QGridLayout" name="gridLayout">
<property name="margin" > <item row="0" column="0">
<number>9</number> <widget class="QGroupBox" name="NoteBG">
</property> <property name="title">
<property name="spacing" >
<number>6</number>
</property>
<item row="1" column="1" >
<widget class="QPushButton" name="closePB" >
<property name="text" >
<string>Close</string>
</property>
<property name="default" >
<bool>true</bool>
</property>
</widget>
</item>
<item row="1" column="0" >
<widget class="QPushButton" name="okPB" >
<property name="text" >
<string>&amp;OK</string>
</property>
<property name="default" >
<bool>false</bool>
</property>
</widget>
</item>
<item row="0" column="0" colspan="2" >
<widget class="QGroupBox" name="NoteBG" >
<property name="title" >
<string>Type</string> <string>Type</string>
</property> </property>
<layout class="QVBoxLayout" > <layout class="QVBoxLayout">
<property name="margin" > <property name="spacing">
<number>11</number>
</property>
<property name="spacing" >
<number>6</number> <number>6</number>
</property> </property>
<property name="leftMargin">
<number>11</number>
</property>
<property name="topMargin">
<number>11</number>
</property>
<property name="rightMargin">
<number>11</number>
</property>
<property name="bottomMargin">
<number>11</number>
</property>
<item> <item>
<widget class="QRadioButton" name="noteRB" > <widget class="QRadioButton" name="noteRB">
<property name="toolTip" > <property name="toolTip">
<string>LyX internal only</string> <string>LyX internal only</string>
</property> </property>
<property name="text" > <property name="text">
<string>LyX &amp;Note</string> <string>LyX &amp;Note</string>
</property> </property>
</widget> </widget>
</item> </item>
<item> <item>
<widget class="QRadioButton" name="commentRB" > <widget class="QRadioButton" name="commentRB">
<property name="toolTip" > <property name="toolTip">
<string>Export to LaTeX/Docbook but don't print</string> <string>Export to LaTeX/Docbook but don't print</string>
</property> </property>
<property name="text" > <property name="text">
<string>&amp;Comment</string> <string>&amp;Comment</string>
</property> </property>
</widget> </widget>
</item> </item>
<item> <item>
<widget class="QRadioButton" name="greyedoutRB" > <widget class="QRadioButton" name="greyedoutRB">
<property name="toolTip" > <property name="toolTip">
<string>Print as grey text</string> <string>Print as grey text</string>
</property> </property>
<property name="text" > <property name="text">
<string>&amp;Greyed out</string> <string>&amp;Greyed out</string>
</property> </property>
</widget> </widget>
@ -87,17 +71,22 @@
</layout> </layout>
</widget> </widget>
</item> </item>
<item row="1" column="0">
<widget class="QDialogButtonBox" name="buttonBox">
<property name="standardButtons">
<set>QDialogButtonBox::Cancel|QDialogButtonBox::Ok</set>
</property>
</widget>
</item>
</layout> </layout>
</widget> </widget>
<tabstops> <tabstops>
<tabstop>noteRB</tabstop> <tabstop>noteRB</tabstop>
<tabstop>commentRB</tabstop> <tabstop>commentRB</tabstop>
<tabstop>greyedoutRB</tabstop> <tabstop>greyedoutRB</tabstop>
<tabstop>okPB</tabstop>
<tabstop>closePB</tabstop>
</tabstops> </tabstops>
<includes> <includes>
<include location="local" >qt_i18n.h</include> <include location="local">qt_i18n.h</include>
</includes> </includes>
<resources/> <resources/>
<connections/> <connections/>

View File

@ -7,7 +7,7 @@
<x>0</x> <x>0</x>
<y>0</y> <y>0</y>
<width>438</width> <width>438</width>
<height>292</height> <height>303</height>
</rect> </rect>
</property> </property>
<property name="focusPolicy"> <property name="focusPolicy">
@ -16,77 +16,7 @@
<property name="windowTitle"> <property name="windowTitle">
<string/> <string/>
</property> </property>
<layout class="QGridLayout"> <layout class="QGridLayout" name="gridLayout">
<property name="margin">
<number>9</number>
</property>
<property name="spacing">
<number>6</number>
</property>
<item row="4" column="0" colspan="2">
<spacer>
<property name="orientation">
<enum>Qt::Horizontal</enum>
</property>
<property name="sizeHint" stdset="0">
<size>
<width>281</width>
<height>31</height>
</size>
</property>
</spacer>
</item>
<item row="4" column="2">
<widget class="QCheckBox" name="synchronizedViewCB">
<property name="layoutDirection">
<enum>Qt::LeftToRight</enum>
</property>
<property name="text">
<string>I&amp;mmediate Apply</string>
</property>
</widget>
</item>
<item row="1" column="0">
<widget class="QGroupBox" name="labelwidthGB">
<property name="enabled">
<bool>false</bool>
</property>
<property name="title">
<string>Label Width</string>
</property>
<property name="flat">
<bool>true</bool>
</property>
<layout class="QGridLayout">
<property name="margin">
<number>9</number>
</property>
<property name="spacing">
<number>6</number>
</property>
<item row="0" column="0">
<widget class="QLabel" name="TextLabel2">
<property name="toolTip">
<string>This text defines the width of the paragraph label</string>
</property>
<property name="text">
<string>Lo&amp;ngest label</string>
</property>
<property name="buddy">
<cstring>labelWidth</cstring>
</property>
</widget>
</item>
<item row="0" column="1">
<widget class="QLineEdit" name="labelWidth">
<property name="toolTip">
<string>This text defines the width of the paragraph label</string>
</property>
</widget>
</item>
</layout>
</widget>
</item>
<item row="0" column="0"> <item row="0" column="0">
<widget class="QGroupBox" name="groupBox"> <widget class="QGroupBox" name="groupBox">
<property name="title"> <property name="title">
@ -96,7 +26,16 @@
<bool>true</bool> <bool>true</bool>
</property> </property>
<layout class="QGridLayout"> <layout class="QGridLayout">
<property name="margin"> <property name="leftMargin">
<number>9</number>
</property>
<property name="topMargin">
<number>9</number>
</property>
<property name="rightMargin">
<number>9</number>
</property>
<property name="bottomMargin">
<number>9</number> <number>9</number>
</property> </property>
<property name="spacing"> <property name="spacing">
@ -141,13 +80,6 @@
</layout> </layout>
</widget> </widget>
</item> </item>
<item row="2" column="0">
<widget class="QCheckBox" name="indentCB">
<property name="text">
<string>&amp;Indent Paragraph</string>
</property>
</widget>
</item>
<item row="0" column="1" rowspan="3" colspan="2"> <item row="0" column="1" rowspan="3" colspan="2">
<widget class="QGroupBox" name="aligmentGB"> <widget class="QGroupBox" name="aligmentGB">
<property name="title"> <property name="title">
@ -157,7 +89,16 @@
<bool>true</bool> <bool>true</bool>
</property> </property>
<layout class="QGridLayout"> <layout class="QGridLayout">
<property name="margin"> <property name="leftMargin">
<number>9</number>
</property>
<property name="topMargin">
<number>9</number>
</property>
<property name="rightMargin">
<number>9</number>
</property>
<property name="bottomMargin">
<number>9</number> <number>9</number>
</property> </property>
<property name="spacing"> <property name="spacing">
@ -180,7 +121,7 @@
<item row="3" column="0"> <item row="3" column="0">
<widget class="QRadioButton" name="alignCenterRB"> <widget class="QRadioButton" name="alignCenterRB">
<property name="text"> <property name="text">
<string>C&amp;enter</string> <string>&amp;Center</string>
</property> </property>
</widget> </widget>
</item> </item>
@ -204,68 +145,62 @@
</layout> </layout>
</widget> </widget>
</item> </item>
<item row="5" column="0" colspan="3"> <item row="1" column="0">
<layout class="QHBoxLayout"> <widget class="QGroupBox" name="labelwidthGB">
<property name="enabled">
<bool>false</bool>
</property>
<property name="title">
<string>Label Width</string>
</property>
<property name="flat">
<bool>true</bool>
</property>
<layout class="QGridLayout">
<property name="leftMargin">
<number>9</number>
</property>
<property name="topMargin">
<number>9</number>
</property>
<property name="rightMargin">
<number>9</number>
</property>
<property name="bottomMargin">
<number>9</number>
</property>
<property name="spacing"> <property name="spacing">
<number>6</number> <number>6</number>
</property> </property>
<property name="margin"> <item row="0" column="0">
<number>0</number> <widget class="QLabel" name="TextLabel2">
<property name="toolTip">
<string>This text defines the width of the paragraph label</string>
</property> </property>
<item>
<widget class="QPushButton" name="restorePB">
<property name="text"> <property name="text">
<string>&amp;Restore</string> <string>Lo&amp;ngest label</string>
</property> </property>
<property name="autoDefault"> <property name="buddy">
<bool>false</bool> <cstring>labelWidth</cstring>
</property> </property>
</widget> </widget>
</item> </item>
<item> <item row="0" column="1">
<spacer> <widget class="QLineEdit" name="labelWidth">
<property name="orientation"> <property name="toolTip">
<enum>Qt::Horizontal</enum> <string>This text defines the width of the paragraph label</string>
</property>
<property name="sizeHint" stdset="0">
<size>
<width>31</width>
<height>27</height>
</size>
</property>
</spacer>
</item>
<item>
<widget class="QPushButton" name="okPB">
<property name="text">
<string>&amp;OK</string>
</property>
<property name="default">
<bool>true</bool>
</property>
</widget>
</item>
<item>
<widget class="QPushButton" name="applyPB">
<property name="text">
<string>&amp;Apply</string>
</property>
<property name="autoDefault">
<bool>false</bool>
</property>
</widget>
</item>
<item>
<widget class="QPushButton" name="closePB">
<property name="text">
<string>&amp;Close</string>
</property>
<property name="autoDefault">
<bool>false</bool>
</property> </property>
</widget> </widget>
</item> </item>
</layout> </layout>
</widget>
</item>
<item row="2" column="0">
<widget class="QCheckBox" name="indentCB">
<property name="text">
<string>&amp;Indent Paragraph</string>
</property>
</widget>
</item> </item>
<item row="3" column="0" colspan="3"> <item row="3" column="0" colspan="3">
<spacer> <spacer>
@ -280,6 +215,36 @@
</property> </property>
</spacer> </spacer>
</item> </item>
<item row="4" column="0" rowspan="2" colspan="2">
<spacer>
<property name="orientation">
<enum>Qt::Horizontal</enum>
</property>
<property name="sizeHint" stdset="0">
<size>
<width>281</width>
<height>31</height>
</size>
</property>
</spacer>
</item>
<item row="5" column="2">
<widget class="QCheckBox" name="synchronizedViewCB">
<property name="layoutDirection">
<enum>Qt::LeftToRight</enum>
</property>
<property name="text">
<string>I&amp;mmediate Apply</string>
</property>
</widget>
</item>
<item row="6" column="0" colspan="3">
<widget class="QDialogButtonBox" name="buttonBox">
<property name="standardButtons">
<set>QDialogButtonBox::Apply|QDialogButtonBox::Cancel|QDialogButtonBox::Ok|QDialogButtonBox::Reset</set>
</property>
</widget>
</item>
</layout> </layout>
</widget> </widget>
<tabstops> <tabstops>
@ -293,10 +258,6 @@
<tabstop>alignCenterRB</tabstop> <tabstop>alignCenterRB</tabstop>
<tabstop>alignRightRB</tabstop> <tabstop>alignRightRB</tabstop>
<tabstop>synchronizedViewCB</tabstop> <tabstop>synchronizedViewCB</tabstop>
<tabstop>restorePB</tabstop>
<tabstop>okPB</tabstop>
<tabstop>applyPB</tabstop>
<tabstop>closePB</tabstop>
</tabstops> </tabstops>
<includes> <includes>
<include location="local">qt_i18n.h</include> <include location="local">qt_i18n.h</include>

View File

@ -1,103 +1,92 @@
<ui version="4.0" > <?xml version="1.0" encoding="UTF-8"?>
<ui version="4.0">
<class>PhantomUi</class> <class>PhantomUi</class>
<widget class="QDialog" name="PhantomUi" > <widget class="QDialog" name="PhantomUi">
<property name="geometry" > <property name="geometry">
<rect> <rect>
<x>0</x> <x>0</x>
<y>0</y> <y>0</y>
<width>202</width> <width>221</width>
<height>184</height> <height>196</height>
</rect> </rect>
</property> </property>
<property name="windowTitle" > <property name="windowTitle">
<string/> <string/>
</property> </property>
<property name="sizeGripEnabled" > <property name="sizeGripEnabled">
<bool>true</bool> <bool>true</bool>
</property> </property>
<layout class="QGridLayout" > <layout class="QGridLayout" name="gridLayout">
<property name="margin" > <item row="0" column="0">
<number>9</number> <widget class="QGroupBox" name="PhantomBG">
</property> <property name="title">
<property name="spacing" >
<number>6</number>
</property>
<item row="1" column="1" >
<widget class="QPushButton" name="closePB" >
<property name="text" >
<string>Close</string>
</property>
<property name="default" >
<bool>true</bool>
</property>
</widget>
</item>
<item row="1" column="0" >
<widget class="QPushButton" name="okPB" >
<property name="text" >
<string>&amp;OK</string>
</property>
<property name="default" >
<bool>false</bool>
</property>
</widget>
</item>
<item row="0" column="0" colspan="2" >
<widget class="QGroupBox" name="PhantomBG" >
<property name="title" >
<string>Type</string> <string>Type</string>
</property> </property>
<layout class="QVBoxLayout" > <layout class="QVBoxLayout">
<property name="spacing" > <property name="spacing">
<number>6</number> <number>6</number>
</property> </property>
<property name="margin" > <property name="leftMargin">
<number>11</number>
</property>
<property name="topMargin">
<number>11</number>
</property>
<property name="rightMargin">
<number>11</number>
</property>
<property name="bottomMargin">
<number>11</number> <number>11</number>
</property> </property>
<item> <item>
<widget class="QRadioButton" name="phantomRB" > <widget class="QRadioButton" name="phantomRB">
<property name="toolTip" > <property name="toolTip">
<string>Horizontal and vertical space of the phantom content</string> <string>Horizontal and vertical space of the phantom content</string>
</property> </property>
<property name="text" > <property name="text">
<string>&amp;Phantom</string> <string>Phanto&amp;m</string>
</property> </property>
</widget> </widget>
</item> </item>
<item> <item>
<widget class="QRadioButton" name="hphantomRB" > <widget class="QRadioButton" name="hphantomRB">
<property name="toolTip" > <property name="toolTip">
<string>Horizontal space of the phantom content</string> <string>Horizontal space of the phantom content</string>
</property> </property>
<property name="text" > <property name="text">
<string>&amp;Horizontal Phantom</string> <string>&amp;Horizontal Phantom</string>
</property> </property>
</widget> </widget>
</item> </item>
<item> <item>
<widget class="QRadioButton" name="vphantomRB" > <widget class="QRadioButton" name="vphantomRB">
<property name="toolTip" > <property name="toolTip">
<string>Vertical space of the phantom content</string> <string>Vertical space of the phantom content</string>
</property> </property>
<property name="text" > <property name="text">
<string>&amp;Vertical Phantom</string> <string>Verti&amp;cal Phantom</string>
</property> </property>
</widget> </widget>
</item> </item>
</layout> </layout>
</widget> </widget>
</item> </item>
<item row="1" column="0">
<widget class="QDialogButtonBox" name="buttonBox">
<property name="standardButtons">
<set>QDialogButtonBox::Cancel|QDialogButtonBox::Ok</set>
</property>
</widget>
</item>
</layout> </layout>
</widget> </widget>
<tabstops> <tabstops>
<tabstop>phantomRB</tabstop> <tabstop>phantomRB</tabstop>
<tabstop>hphantomRB</tabstop> <tabstop>hphantomRB</tabstop>
<tabstop>vphantomRB</tabstop> <tabstop>vphantomRB</tabstop>
<tabstop>okPB</tabstop>
<tabstop>closePB</tabstop>
</tabstops> </tabstops>
<includes> <includes>
<include location="local" >qt_i18n.h</include> <include location="local">qt_i18n.h</include>
</includes> </includes>
<resources/> <resources/>
<connections/> <connections/>

View File

@ -7,7 +7,7 @@
<x>0</x> <x>0</x>
<y>0</y> <y>0</y>
<width>650</width> <width>650</width>
<height>352</height> <height>266</height>
</rect> </rect>
</property> </property>
<property name="sizePolicy"> <property name="sizePolicy">
@ -22,66 +22,24 @@
<property name="sizeGripEnabled"> <property name="sizeGripEnabled">
<bool>true</bool> <bool>true</bool>
</property> </property>
<layout class="QGridLayout"> <layout class="QGridLayout" name="gridLayout">
<property name="leftMargin"> <item row="0" column="0" colspan="2">
<number>11</number> <widget class="lyx::frontend::PanelStack" name="prefsPS" native="true"/>
</property>
<property name="topMargin">
<number>11</number>
</property>
<property name="rightMargin">
<number>11</number>
</property>
<property name="bottomMargin">
<number>11</number>
</property>
<property name="spacing">
<number>6</number>
</property>
<item row="1" column="0">
<layout class="QHBoxLayout">
<property name="spacing">
<number>6</number>
</property>
<property name="leftMargin">
<number>0</number>
</property>
<property name="topMargin">
<number>0</number>
</property>
<property name="rightMargin">
<number>0</number>
</property>
<property name="bottomMargin">
<number>0</number>
</property>
<item>
<widget class="QPushButton" name="restorePB">
<property name="text">
<string>&amp;Restore</string>
</property>
<property name="autoDefault">
<bool>false</bool>
</property>
</widget>
</item> </item>
<item> <item row="1" column="0">
<spacer> <spacer name="horizontalSpacer">
<property name="orientation"> <property name="orientation">
<enum>Qt::Horizontal</enum> <enum>Qt::Horizontal</enum>
</property> </property>
<property name="sizeType">
<enum>QSizePolicy::Expanding</enum>
</property>
<property name="sizeHint" stdset="0"> <property name="sizeHint" stdset="0">
<size> <size>
<width>20</width> <width>405</width>
<height>20</height> <height>20</height>
</size> </size>
</property> </property>
</spacer> </spacer>
</item> </item>
<item> <item row="1" column="1">
<widget class="QCheckBox" name="tempSaveCB"> <widget class="QCheckBox" name="tempSaveCB">
<property name="toolTip"> <property name="toolTip">
<string>If this is checked, pressing OK or Apply will save the changes only for the current LyX session, not permanently.</string> <string>If this is checked, pressing OK or Apply will save the changes only for the current LyX session, not permanently.</string>
@ -91,41 +49,13 @@
</property> </property>
</widget> </widget>
</item> </item>
<item> <item row="2" column="0" colspan="2">
<widget class="QPushButton" name="okPB"> <widget class="QDialogButtonBox" name="buttonBox">
<property name="text"> <property name="standardButtons">
<string>&amp;OK</string> <set>QDialogButtonBox::Apply|QDialogButtonBox::Cancel|QDialogButtonBox::Ok|QDialogButtonBox::Reset</set>
</property>
<property name="autoDefault">
<bool>false</bool>
</property> </property>
</widget> </widget>
</item> </item>
<item>
<widget class="QPushButton" name="applyPB">
<property name="text">
<string>&amp;Apply</string>
</property>
<property name="autoDefault">
<bool>false</bool>
</property>
</widget>
</item>
<item>
<widget class="QPushButton" name="closePB">
<property name="text">
<string>&amp;Close</string>
</property>
<property name="autoDefault">
<bool>false</bool>
</property>
</widget>
</item>
</layout>
</item>
<item row="0" column="0">
<widget class="lyx::frontend::PanelStack" name="prefsPS" native="true"/>
</item>
</layout> </layout>
</widget> </widget>
<customwidgets> <customwidgets>
@ -138,10 +68,6 @@
</customwidgets> </customwidgets>
<tabstops> <tabstops>
<tabstop>prefsPS</tabstop> <tabstop>prefsPS</tabstop>
<tabstop>restorePB</tabstop>
<tabstop>okPB</tabstop>
<tabstop>applyPB</tabstop>
<tabstop>closePB</tabstop>
</tabstops> </tabstops>
<includes> <includes>
<include location="local">qt_i18n.h</include> <include location="local">qt_i18n.h</include>