From: Juergen Spitzmueller Date: Tue, 10 Jul 2018 07:04:42 +0000 (+0200) Subject: More QDialogButtonBox X-Git-Tag: lyx-2.4.0dev-acb2ca7b~3298 X-Git-Url: https://git.lyx.org/gitweb/?a=commitdiff_plain;h=b5c5083c6c035294e8a762bd5bd737a56d27317a;p=features.git More QDialogButtonBox Listings through Prefs. --- diff --git a/src/frontends/qt4/GuiDialog.cpp b/src/frontends/qt4/GuiDialog.cpp index 2720922deb..4fcff16a23 100644 --- a/src/frontends/qt4/GuiDialog.cpp +++ b/src/frontends/qt4/GuiDialog.cpp @@ -102,6 +102,7 @@ void GuiDialog::slotButtonBox(QAbstractButton * button) slotApply(); break; case QDialogButtonBox::Cancel: + case QDialogButtonBox::Close: slotClose(); break; case QDialogButtonBox::Reset: diff --git a/src/frontends/qt4/GuiListings.cpp b/src/frontends/qt4/GuiListings.cpp index 573b8cd0c5..85a79b5d3e 100644 --- a/src/frontends/qt4/GuiListings.cpp +++ b/src/frontends/qt4/GuiListings.cpp @@ -167,9 +167,8 @@ GuiListings::GuiListings(GuiView & lv) { setupUi(this); - connect(okPB, SIGNAL(clicked()), this, SLOT(slotOK())); - connect(applyPB, SIGNAL(clicked()), this, SLOT(slotApply())); - connect(closePB, SIGNAL(clicked()), this, SLOT(slotClose())); + connect(buttonBox, SIGNAL(clicked(QAbstractButton *)), + this, SLOT(slotButtonBox(QAbstractButton *))); connect(languageCO, SIGNAL(currentIndexChanged(int)), this, SLOT(change_adaptor())); @@ -234,9 +233,9 @@ GuiListings::GuiListings(GuiView & lv) placementLE->setValidator(new QRegExpValidator(QRegExp("[\\*tbph]*"), this)); bc().setPolicy(ButtonPolicy::NoRepeatedApplyReadOnlyPolicy); - bc().setOK(okPB); - bc().setApply(applyPB); - bc().setCancel(closePB); + bc().setOK(buttonBox->button(QDialogButtonBox::Ok)); + bc().setApply(buttonBox->button(QDialogButtonBox::Apply)); + bc().setCancel(buttonBox->button(QDialogButtonBox::Cancel)); listingsTB->setPlainText( qt_("Input listing parameters on the right. Enter ? for a list of parameters.")); diff --git a/src/frontends/qt4/GuiLog.cpp b/src/frontends/qt4/GuiLog.cpp index 0a922ea0b6..81c05d3a70 100644 --- a/src/frontends/qt4/GuiLog.cpp +++ b/src/frontends/qt4/GuiLog.cpp @@ -120,7 +120,8 @@ GuiLog::GuiLog(GuiView & lv) { 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(findPB, SIGNAL(clicked()), this, SLOT(find())); // FIXME: find via returnPressed() does not work! diff --git a/src/frontends/qt4/GuiMathMatrix.cpp b/src/frontends/qt4/GuiMathMatrix.cpp index e4e3f8878b..3a9768b094 100644 --- a/src/frontends/qt4/GuiMathMatrix.cpp +++ b/src/frontends/qt4/GuiMathMatrix.cpp @@ -74,9 +74,6 @@ GuiMathMatrix::GuiMathMatrix(GuiView & lv) valignCO->setCurrentIndex(1); decorationCO->setCurrentIndex(0); - connect(okPB, SIGNAL(clicked()), this, SLOT(slotOK())); - connect(closePB, SIGNAL(clicked()), this, SLOT(slotClose())); - connect(table, SIGNAL(rowsChanged(int)), rowsSB, SLOT(setValue(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() { int const nx = columnsSB->value(); diff --git a/src/frontends/qt4/GuiMathMatrix.h b/src/frontends/qt4/GuiMathMatrix.h index 8f2f036eab..532bdef5c4 100644 --- a/src/frontends/qt4/GuiMathMatrix.h +++ b/src/frontends/qt4/GuiMathMatrix.h @@ -34,6 +34,7 @@ public: bool isBufferDependent() const { return true; } public Q_SLOTS: + void on_buttonBox_clicked(QAbstractButton *); void slotOK(); void slotClose(); void columnsChanged(int); diff --git a/src/frontends/qt4/GuiNote.cpp b/src/frontends/qt4/GuiNote.cpp index f0e6fcb617..6c87850d40 100644 --- a/src/frontends/qt4/GuiNote.cpp +++ b/src/frontends/qt4/GuiNote.cpp @@ -27,16 +27,16 @@ GuiNote::GuiNote(GuiView & lv) { setupUi(this); - connect(okPB, SIGNAL(clicked()), this, SLOT(slotOK())); - connect(closePB, SIGNAL(clicked()), this, SLOT(slotClose())); + connect(buttonBox, SIGNAL(clicked(QAbstractButton *)), + this, SLOT(slotButtonBox(QAbstractButton *))); connect(noteRB, SIGNAL(clicked()), this, SLOT(change_adaptor())); connect(greyedoutRB, SIGNAL(clicked()), this, SLOT(change_adaptor())); connect(commentRB, SIGNAL(clicked()), this, SLOT(change_adaptor())); bc().setPolicy(ButtonPolicy::NoRepeatedApplyReadOnlyPolicy); - bc().setOK(okPB); - bc().setCancel(closePB); + bc().setOK(buttonBox->button(QDialogButtonBox::Ok)); + bc().setCancel(buttonBox->button(QDialogButtonBox::Cancel)); } diff --git a/src/frontends/qt4/GuiParagraph.cpp b/src/frontends/qt4/GuiParagraph.cpp index 3cf4127fdb..c3f7a94759 100644 --- a/src/frontends/qt4/GuiParagraph.cpp +++ b/src/frontends/qt4/GuiParagraph.cpp @@ -32,6 +32,7 @@ #include "support/gettext.h" #include +#include #include #include #include @@ -154,13 +155,13 @@ LyXAlignment GuiParagraph::getAlignmentFromDialog() const void GuiParagraph::on_synchronizedViewCB_toggled() { bool in_sync = synchronizedViewCB->isChecked(); - restorePB->setEnabled(!in_sync); - applyPB->setEnabled(!in_sync); - okPB->setEnabled(!in_sync); + buttonBox->button(QDialogButtonBox::Reset)->setEnabled(!in_sync); + buttonBox->button(QDialogButtonBox::Apply)->setEnabled(!in_sync); + buttonBox->button(QDialogButtonBox::Ok)->setEnabled(!in_sync); if (!in_sync) - closePB->setText(qt_("&Cancel")); + buttonBox->button(QDialogButtonBox::Cancel)->setText(qt_("&Cancel")); else - closePB->setText(qt_("&Close")); + buttonBox->button(QDialogButtonBox::Cancel)->setText(qt_("&Close")); } @@ -174,32 +175,29 @@ void GuiParagraph::changed() && (linespacing->currentIndex() != 4 || (!linespacingValue->text().endsWith(loc.decimalPoint()) && linespacingValue->hasAcceptableInput()))) - on_applyPB_clicked(); + applyView(); } -void GuiParagraph::on_applyPB_clicked() +void GuiParagraph::on_buttonBox_clicked(QAbstractButton * button) { - applyView(); -} - - -void GuiParagraph::on_okPB_clicked() -{ - applyView(); - hide(); -} - - -void GuiParagraph::on_closePB_clicked() -{ - hide(); -} - - -void GuiParagraph::on_restorePB_clicked() -{ - updateView(); + switch (buttonBox->standardButton(button)) { + case QDialogButtonBox::Ok: + applyView(); + hide(); + break; + case QDialogButtonBox::Apply: + applyView(); + break; + case QDialogButtonBox::Cancel: + hide(); + break; + case QDialogButtonBox::Reset: + updateView(); + break; + default: + break; + } } @@ -316,8 +314,8 @@ void GuiParagraph::enableView(bool enable) linespacing->setEnabled(enable); labelWidth->setEnabled(enable); synchronizedViewCB->setEnabled(enable); - applyPB->setEnabled(enable); - restorePB->setEnabled(enable); + buttonBox->button(QDialogButtonBox::Apply)->setEnabled(enable); + buttonBox->button(QDialogButtonBox::Reset)->setEnabled(enable); if (!enable) synchronizedViewCB->setChecked(true); RadioMap::const_iterator it = radioMap_.begin(); diff --git a/src/frontends/qt4/GuiParagraph.h b/src/frontends/qt4/GuiParagraph.h index 735d58ca8f..132e916509 100644 --- a/src/frontends/qt4/GuiParagraph.h +++ b/src/frontends/qt4/GuiParagraph.h @@ -69,15 +69,9 @@ private Q_SLOTS: /// void on_synchronizedViewCB_toggled(); /// - void on_restorePB_clicked(); - /// void on_linespacing_activated(int); /// Apply changes - void on_applyPB_clicked(); - /// Apply changes and close - void on_okPB_clicked(); - /// Close/Cancel dialog - void on_closePB_clicked(); + void on_buttonBox_clicked(QAbstractButton * button); private: /// diff --git a/src/frontends/qt4/GuiPhantom.cpp b/src/frontends/qt4/GuiPhantom.cpp index 2db43413fc..973ec823c0 100644 --- a/src/frontends/qt4/GuiPhantom.cpp +++ b/src/frontends/qt4/GuiPhantom.cpp @@ -26,16 +26,16 @@ GuiPhantom::GuiPhantom(GuiView & lv) { setupUi(this); - connect(okPB, SIGNAL(clicked()), this, SLOT(slotOK())); - connect(closePB, SIGNAL(clicked()), this, SLOT(slotClose())); + connect(buttonBox, SIGNAL(clicked(QAbstractButton *)), + this, SLOT(slotButtonBox(QAbstractButton *))); connect(phantomRB, SIGNAL(clicked()), this, SLOT(change_adaptor())); connect(hphantomRB, SIGNAL(clicked()), this, SLOT(change_adaptor())); connect(vphantomRB, SIGNAL(clicked()), this, SLOT(change_adaptor())); bc().setPolicy(ButtonPolicy::NoRepeatedApplyReadOnlyPolicy); - bc().setOK(okPB); - bc().setCancel(closePB); + bc().setOK(buttonBox->button(QDialogButtonBox::Ok)); + bc().setCancel(buttonBox->button(QDialogButtonBox::Cancel)); } diff --git a/src/frontends/qt4/GuiPrefs.cpp b/src/frontends/qt4/GuiPrefs.cpp index 615c7dabdf..3873ef3f2f 100644 --- a/src/frontends/qt4/GuiPrefs.cpp +++ b/src/frontends/qt4/GuiPrefs.cpp @@ -3417,10 +3417,8 @@ GuiPreferences::GuiPreferences(GuiView & lv) QDialog::setModal(false); - connect(okPB, SIGNAL(clicked()), this, SLOT(slotOK())); - connect(applyPB, SIGNAL(clicked()), this, SLOT(slotApply())); - connect(closePB, SIGNAL(clicked()), this, SLOT(slotClose())); - connect(restorePB, SIGNAL(clicked()), this, SLOT(slotRestore())); + connect(buttonBox, SIGNAL(clicked(QAbstractButton *)), + this, SLOT(slotButtonBox(QAbstractButton *))); addModule(new PrefUserInterface(this)); addModule(new PrefDocHandling(this)); @@ -3462,10 +3460,10 @@ GuiPreferences::GuiPreferences(GuiView & lv) #endif bc().setPolicy(ButtonPolicy::PreferencesPolicy); - bc().setOK(okPB); - bc().setApply(applyPB); - bc().setCancel(closePB); - bc().setRestore(restorePB); + bc().setOK(buttonBox->button(QDialogButtonBox::Ok)); + bc().setApply(buttonBox->button(QDialogButtonBox::Apply)); + bc().setCancel(buttonBox->button(QDialogButtonBox::Cancel)); + bc().setRestore(buttonBox->button(QDialogButtonBox::Reset)); // initialize the strftime validator bc().addCheckedLineEdit(output->DateED); diff --git a/src/frontends/qt4/InsetParamsDialog.cpp b/src/frontends/qt4/InsetParamsDialog.cpp index fd0044acdb..9a4177fe87 100644 --- a/src/frontends/qt4/InsetParamsDialog.cpp +++ b/src/frontends/qt4/InsetParamsDialog.cpp @@ -42,6 +42,8 @@ #include "support/debug.h" #include "support/lstrings.h" +#include + using namespace std; using namespace lyx::support; @@ -82,6 +84,8 @@ InsetParamsDialog::InsetParamsDialog(GuiView & lv, InsetParamsWidget * widget) synchronizedCB->setChecked(true); on_immediateApplyCB_stateChanged(false); setFocusProxy(widget); + newPB = buttonBox->addButton(qt_("Ne&w Inset"), + QDialogButtonBox::ActionRole); } InsetParamsDialog::~InsetParamsDialog() @@ -93,7 +97,7 @@ InsetParamsDialog::~InsetParamsDialog() bool InsetParamsDialog::initialiseParams(std::string const & sdata) { if (!d->widget_->initialiseParams(sdata)) - on_restorePB_clicked(); + resetDialog(); 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()); + switch (buttonBox->buttonRole(button)) { + case QDialogButtonBox::AcceptRole: {// OK + Inset const * i = inset(d->widget_->insetCode()); + if (i) + applyView(); + else + newInset(); + 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::on_okPB_clicked() +void InsetParamsDialog::resetDialog() { - Inset const * i = inset(d->widget_->insetCode()); - if (i) - applyView(); - else - newInset(); - hide(); + 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(); -} - - -void InsetParamsDialog::on_applyPB_clicked() -{ - applyView(); -} - - -void InsetParamsDialog::on_closePB_clicked() -{ - hide(); + docstring const argument = d->widget_->dialogToParams(); + FuncRequest const fr = FuncRequest(d->widget_->creationCode(), argument); + FuncStatus const fs(getStatus(fr)); + return fs.enabled(); } @@ -177,12 +192,22 @@ docstring InsetParamsDialog::checkWidgets(bool immediate) ? d->widget_->creationCode() : LFUN_INSET_MODIFY; 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 && ins && (ins != d->inset_ || d->changed_); - restorePB->setEnabled(can_be_restored); - applyPB->setEnabled(ins && !immediate && lfun_ok && widget_ok && !read_only && valid_argument); - newPB->setEnabled(widget_ok && !read_only && valid_argument); + buttonBox->button(QDialogButtonBox::Reset)->setEnabled(can_be_restored); + buttonBox->button(QDialogButtonBox::Apply)->setEnabled(ins && !immediate + && lfun_ok && widget_ok + && !read_only && valid_argument); + // This seems to be the only way to access custom buttons + QList 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); return argument; } diff --git a/src/frontends/qt4/InsetParamsDialog.h b/src/frontends/qt4/InsetParamsDialog.h index ddb912674d..2d876ba431 100644 --- a/src/frontends/qt4/InsetParamsDialog.h +++ b/src/frontends/qt4/InsetParamsDialog.h @@ -15,6 +15,8 @@ #include "DialogView.h" #include "ui_InsetParamsUi.h" +#include + namespace lyx { class Inset; @@ -36,11 +38,8 @@ public: protected Q_SLOTS: void onWidget_changed(); void applyView(); - void on_restorePB_clicked(); - void on_newPB_clicked(); - void on_okPB_clicked(); - void on_applyPB_clicked(); - void on_closePB_clicked(); + void resetDialog(); + void on_buttonBox_clicked(QAbstractButton *); void on_immediateApplyCB_stateChanged(int state); void on_synchronizedCB_stateChanged(int state); @@ -56,9 +55,13 @@ private: /// void newInset(); /// + bool newInsetAllowed() const; + /// void updateView(bool update_widget); /// docstring checkWidgets(bool immediate); + /// + QPushButton * newPB; /// pimpl struct Private; Private * d; diff --git a/src/frontends/qt4/ui/InsetParamsUi.ui b/src/frontends/qt4/ui/InsetParamsUi.ui index 03d7212fa9..af6312f1c4 100644 --- a/src/frontends/qt4/ui/InsetParamsUi.ui +++ b/src/frontends/qt4/ui/InsetParamsUi.ui @@ -1,36 +1,37 @@ - + + InsetParamsUi - - + + 0 0 - 425 - 106 + 484 + 108 - + Qt::NoFocus - + Inset Parameter Configuration - - - - + + + + 0 - - + + - + - + Qt::Horizontal - + 31 31 @@ -38,107 +39,54 @@ - - + + - - + + Update dialog when moving context - + S&ynchronize Dialog - - + + Apply settings immediately - + Qt::LeftToRight - + I&mmediate Apply - - - + + + 6 - + + 0 + + + 0 + + + 0 + + 0 - - - Restore initial values in dialog - - - &Restore - - - false - - - - - - - Push new inset into the document - - - New Inset - - - false - - - - - - - Qt::Horizontal - - - - 31 - 27 - - - - - - - - &OK - - - true - - - - - - - &Apply - - - false - - - - - - - &Close - - - false + + + QDialogButtonBox::Apply|QDialogButtonBox::Cancel|QDialogButtonBox::Ok|QDialogButtonBox::Reset @@ -148,13 +96,9 @@ immediateApplyCB - restorePB - okPB - applyPB - closePB - qt_i18n.h + qt_i18n.h diff --git a/src/frontends/qt4/ui/ListingsUi.ui b/src/frontends/qt4/ui/ListingsUi.ui index 0c89d17270..7e001a124d 100644 --- a/src/frontends/qt4/ui/ListingsUi.ui +++ b/src/frontends/qt4/ui/ListingsUi.ui @@ -1,70 +1,71 @@ - + + ListingsUi - - + + 0 0 - 578 - 349 + 725 + 393 - + Listing - - - - + + + + 0 - - + + &Main Settings - - - - + + + + Placement - - - - + + + + Check for inline listings - + &Inline listing - - - + + + Check for floating listings - + &Float - - - - &Placement: + + + + Pla&cement: - + false - + placementLE - - - + + + Specify placement (htbp) for floating listings @@ -72,109 +73,107 @@ - - - + + + Line numbering - - - - + + + + &Side: - + numberSideCO - - - + + + On which side should line numbers be printed? - + None - + Left - + Right - - - + + + - + S&tep: - + false - + numberStepLE - - - + + + Difference between two numbered lines - + - + - + Qt::AlignLeading - - - + + + Font si&ze: - + false - + numberFontSizeCO - - - - - 0 - 0 + + + + 0 0 - + Choose the font size for line numbers - + false - + true - + false @@ -182,150 +181,146 @@ - - - + + + Style - - - - + + + + F&ont size: - + false - + fontsizeCO - - - - - 0 - 0 + + + + 0 0 - + The content's base font size - + false - + true - + false - - - + + + Font Famil&y: - + false - + fontstyleCO - - - - - 0 - 0 + + + + 0 0 - + The content's base font style - + false - + true - + false - - - + + + Break lines longer than the linewidth - + &Break long lines - + 276824130 - - - + + + Make spaces visible by a special symbol - + S&pace as symbol - + 276824147 - - - + + + Make spaces in strings visible by a special symbol - + Space i&n string as symbol - + 276824147 - - - + + + Tab&ulator size: - + tabsizeSB - - + + - - - + + + true - + Use extended character table - + &Extended character table - + 276824133 @@ -333,42 +328,42 @@ - - - + + + Language - - - - + + + + Lan&guage: - + languageCO - - - + + + Select the programming language - - - + + + &Dialect: - + dialectCO - - - + + + Select the dialect of the programming language, if available @@ -376,60 +371,60 @@ - - - + + + Range - - - - + + + + Fi&rst line: - + false - + firstlineLE - - - + + + The first line to be printed - + - + Qt::AlignLeading - - - + + + &Last line: - + false - + lastlineLE - - - + + + The last line to be printed - + - + Qt::AlignLeading @@ -439,74 +434,70 @@ - - + + Ad&vanced - - - - - - 0 - 0 + + + + + 0 0 - + More Parameters - - - - + + + + Qt::Horizontal - - + + 16777215 16777215 - + false - + Feedback window - + QFrame::Box - + QFrame::Plain - + false - - - - 0 - 0 + + + 0 0 - + Input listing parameters here. Enter ? for a list of parameters. - - - + + + Check it to enter parameters that are not recognizable by LyX - + &Bypass validation @@ -518,45 +509,12 @@ - - + + - - - Qt::Horizontal - - - - 40 - 20 - - - - - - - - &OK - - - true - - - - - - - &Apply - - - true - - - - - - - &Cancel + + + QDialogButtonBox::Apply|QDialogButtonBox::Cancel|QDialogButtonBox::Ok @@ -565,9 +523,6 @@ - okPB - applyPB - closePB listingsTW inlineCB floatCB @@ -589,7 +544,7 @@ listingsED - qt_i18n.h + qt_i18n.h diff --git a/src/frontends/qt4/ui/LogUi.ui b/src/frontends/qt4/ui/LogUi.ui index 3a3db849e3..6258268b31 100644 --- a/src/frontends/qt4/ui/LogUi.ui +++ b/src/frontends/qt4/ui/LogUi.ui @@ -1,103 +1,136 @@ - + LogUi - - + + 0 0 - 421 + 452 474 - + - + true - - - 9 - - - 6 - - - - - &Find: - - - findLE - - - - - - - Hit Enter to search, or click Go! - - - - - - - Log &Type: - - - logTypeCO - - - - - - - Qt::Horizontal - - - - 161 - 20 - - - + + + + + + + Log &Type: + + + logTypeCO + + + + + + + + + + Qt::Horizontal + + + + 161 + 20 + + + + + - - + + - - + + + + + + Qt::Horizontal + + + + 201 + 20 + + + + + + + + Jump to the next error message. + + + Next &Error + + + + + + + Jump to the next warning message. + + + Next &Warning + + + + - - - - Update the display - - - &Update - - - true - - + + + + + + &Find: + + + findLE + + + + + + + Hit Enter to search, or click Go! + + + + + + + &Go! + + + + - - - - &Close + + + + &Open Containing Directory - + - + Qt::Horizontal - + QSizePolicy::Expanding - + 111 26 @@ -105,50 +138,23 @@ - - - - &Open Containing Directory - - - - - - - Qt::Horizontal - - - - 201 - 20 - - - - - - - - &Go! + + + + Update the display - - - - - - Jump to the next warning message. + + &Update - - Next &Warning + + true - - - - Jump to the next error message. - - - Next &Error + + + + QDialogButtonBox::Close @@ -158,10 +164,9 @@ logTB openDirPB updatePB - closePB - qt_i18n.h + qt_i18n.h diff --git a/src/frontends/qt4/ui/MathMatrixUi.ui b/src/frontends/qt4/ui/MathMatrixUi.ui index b96a792f85..822b337460 100644 --- a/src/frontends/qt4/ui/MathMatrixUi.ui +++ b/src/frontends/qt4/ui/MathMatrixUi.ui @@ -6,7 +6,7 @@ 0 0 - 398 + 431 372 @@ -22,7 +22,16 @@ 6 - + + 0 + + + 0 + + + 0 + + 0 @@ -146,13 +155,22 @@ - + Alignment - + + 11 + + + 11 + + + 11 + + 11 @@ -194,7 +212,7 @@ - &Horizontal: + Hori&zontal: halignED @@ -204,7 +222,7 @@ - + Decoration @@ -233,45 +251,12 @@ - - - - 6 + + + + QDialogButtonBox::Cancel|QDialogButtonBox::Ok - - 0 - - - - - Qt::Horizontal - - - QSizePolicy::Expanding - - - - 20 - 20 - - - - - - - - &OK - - - - - - - Close - - - - + @@ -288,8 +273,6 @@ valignCO halignED decorationCO - okPB - closePB qt_i18n.h diff --git a/src/frontends/qt4/ui/NoteUi.ui b/src/frontends/qt4/ui/NoteUi.ui index 246a38ae10..fb68362bbb 100644 --- a/src/frontends/qt4/ui/NoteUi.ui +++ b/src/frontends/qt4/ui/NoteUi.ui @@ -1,85 +1,69 @@ - + + NoteUi - - + + 0 0 202 - 184 + 196 - + - + true - - - 9 - - - 6 - - - - - Close - - - true - - - - - - - &OK - - - false - - - - - - + + + + Type - - + + + 6 + + 11 - - 6 + + 11 + + + 11 + + + 11 - - + + LyX internal only - + LyX &Note - - + + Export to LaTeX/Docbook but don't print - + &Comment - - + + Print as grey text - + &Greyed out @@ -87,17 +71,22 @@ + + + + QDialogButtonBox::Cancel|QDialogButtonBox::Ok + + + noteRB commentRB greyedoutRB - okPB - closePB - qt_i18n.h + qt_i18n.h diff --git a/src/frontends/qt4/ui/ParagraphUi.ui b/src/frontends/qt4/ui/ParagraphUi.ui index 808af52d2e..64d7139b2f 100644 --- a/src/frontends/qt4/ui/ParagraphUi.ui +++ b/src/frontends/qt4/ui/ParagraphUi.ui @@ -7,7 +7,7 @@ 0 0 438 - 292 + 303 @@ -16,77 +16,7 @@ - - - 9 - - - 6 - - - - - Qt::Horizontal - - - - 281 - 31 - - - - - - - - Qt::LeftToRight - - - I&mmediate Apply - - - - - - - false - - - Label Width - - - true - - - - 9 - - - 6 - - - - - This text defines the width of the paragraph label - - - Lo&ngest label - - - labelWidth - - - - - - - This text defines the width of the paragraph label - - - - - - + @@ -96,7 +26,16 @@ true - + + 9 + + + 9 + + + 9 + + 9 @@ -141,13 +80,6 @@ - - - - &Indent Paragraph - - - @@ -157,7 +89,16 @@ true - + + 9 + + + 9 + + + 9 + + 9 @@ -180,7 +121,7 @@ - C&enter + &Center @@ -204,68 +145,62 @@ - - - - 6 + + + + false + + + Label Width - - 0 + + true - - - - &Restore - - - false - - - - - - - Qt::Horizontal - - - - 31 - 27 - - - - - - - - &OK - - - true - - - - - - - &Apply - - - false - - - - - - - &Close - - - false - - - - + + + 9 + + + 9 + + + 9 + + + 9 + + + 6 + + + + + This text defines the width of the paragraph label + + + Lo&ngest label + + + labelWidth + + + + + + + This text defines the width of the paragraph label + + + + + + + + + + &Indent Paragraph + + @@ -280,6 +215,36 @@ + + + + Qt::Horizontal + + + + 281 + 31 + + + + + + + + Qt::LeftToRight + + + I&mmediate Apply + + + + + + + QDialogButtonBox::Apply|QDialogButtonBox::Cancel|QDialogButtonBox::Ok|QDialogButtonBox::Reset + + + @@ -293,10 +258,6 @@ alignCenterRB alignRightRB synchronizedViewCB - restorePB - okPB - applyPB - closePB qt_i18n.h diff --git a/src/frontends/qt4/ui/PhantomUi.ui b/src/frontends/qt4/ui/PhantomUi.ui index b354d1a4be..c924c0eb31 100644 --- a/src/frontends/qt4/ui/PhantomUi.ui +++ b/src/frontends/qt4/ui/PhantomUi.ui @@ -1,103 +1,92 @@ - + + PhantomUi - - + + 0 0 - 202 - 184 + 221 + 196 - + - + true - - - 9 - - - 6 - - - - - Close - - - true - - - - - - - &OK - - - false - - - - - - + + + + Type - - + + 6 - + + 11 + + + 11 + + + 11 + + 11 - - + + Horizontal and vertical space of the phantom content - - &Phantom + + Phanto&m - - + + Horizontal space of the phantom content - + &Horizontal Phantom - - + + Vertical space of the phantom content - - &Vertical Phantom + + Verti&cal Phantom + + + + QDialogButtonBox::Cancel|QDialogButtonBox::Ok + + + phantomRB hphantomRB vphantomRB - okPB - closePB - qt_i18n.h + qt_i18n.h diff --git a/src/frontends/qt4/ui/PrefsUi.ui b/src/frontends/qt4/ui/PrefsUi.ui index ffdd011b60..a894b0f968 100644 --- a/src/frontends/qt4/ui/PrefsUi.ui +++ b/src/frontends/qt4/ui/PrefsUi.ui @@ -7,7 +7,7 @@ 0 0 650 - 352 + 266 @@ -22,109 +22,39 @@ true - - - 11 - - - 11 - - - 11 - - - 11 - - - 6 - + + + + - - - 6 - - - 0 + + + Qt::Horizontal - - 0 + + + 405 + 20 + - - 0 + + + + + + If this is checked, pressing OK or Apply will save the changes only for the current LyX session, not permanently. - - 0 + + A&pply to current session only - - - - &Restore - - - false - - - - - - - Qt::Horizontal - - - QSizePolicy::Expanding - - - - 20 - 20 - - - - - - - - If this is checked, pressing OK or Apply will save the changes only for the current LyX session, not permanently. - - - A&pply to current session only - - - - - - - &OK - - - false - - - - - - - &Apply - - - false - - - - - - - &Close - - - false - - - - + - - + + + + QDialogButtonBox::Apply|QDialogButtonBox::Cancel|QDialogButtonBox::Ok|QDialogButtonBox::Reset + + @@ -138,10 +68,6 @@ prefsPS - restorePB - okPB - applyPB - closePB qt_i18n.h