mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-11-22 18:08:10 +00:00
introduce a new color module to GuiDocument as suggested:
- move the background color settings from PageLayoutUi.ui to ColorUi.ui - move the greyed-out font color from FontUi.ui to ColorUi.ui - some sorting and whitespace unification - the group boxes will get the next days each a further entry (one for the document-wide text color and one for the shaded box background) git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@34040 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
parent
a6ce03f20a
commit
729c0655aa
@ -910,6 +910,7 @@ src_frontends_qt4_ui_files = Split('''
|
|||||||
ChangesUi.ui
|
ChangesUi.ui
|
||||||
CharacterUi.ui
|
CharacterUi.ui
|
||||||
CitationUi.ui
|
CitationUi.ui
|
||||||
|
ColorUi.ui
|
||||||
CompareUi.ui
|
CompareUi.ui
|
||||||
DelimiterUi.ui
|
DelimiterUi.ui
|
||||||
DocumentUi.ui
|
DocumentUi.ui
|
||||||
|
@ -548,8 +548,9 @@ GuiDocument::GuiDocument(GuiView & lv)
|
|||||||
bc().setCancel(closePB);
|
bc().setCancel(closePB);
|
||||||
bc().setRestore(restorePB);
|
bc().setRestore(restorePB);
|
||||||
|
|
||||||
textLayoutModule = new UiWidget<Ui::TextLayoutUi>;
|
|
||||||
// text layout
|
// text layout
|
||||||
|
textLayoutModule = new UiWidget<Ui::TextLayoutUi>;
|
||||||
connect(textLayoutModule->lspacingCO, SIGNAL(activated(int)),
|
connect(textLayoutModule->lspacingCO, SIGNAL(activated(int)),
|
||||||
this, SLOT(change_adaptor()));
|
this, SLOT(change_adaptor()));
|
||||||
connect(textLayoutModule->lspacingCO, SIGNAL(activated(int)),
|
connect(textLayoutModule->lspacingCO, SIGNAL(activated(int)),
|
||||||
@ -618,6 +619,7 @@ GuiDocument::GuiDocument(GuiView & lv)
|
|||||||
bc().addCheckedLineEdit(textLayoutModule->indentLE);
|
bc().addCheckedLineEdit(textLayoutModule->indentLE);
|
||||||
bc().addCheckedLineEdit(textLayoutModule->skipLE);
|
bc().addCheckedLineEdit(textLayoutModule->skipLE);
|
||||||
|
|
||||||
|
|
||||||
// master/child handling
|
// master/child handling
|
||||||
masterChildModule = new UiWidget<Ui::MasterChildUi>;
|
masterChildModule = new UiWidget<Ui::MasterChildUi>;
|
||||||
|
|
||||||
@ -639,6 +641,7 @@ GuiDocument::GuiDocument(GuiView & lv)
|
|||||||
masterChildModule->childrenTW->resizeColumnToContents(1);
|
masterChildModule->childrenTW->resizeColumnToContents(1);
|
||||||
masterChildModule->childrenTW->resizeColumnToContents(2);
|
masterChildModule->childrenTW->resizeColumnToContents(2);
|
||||||
|
|
||||||
|
|
||||||
// output
|
// output
|
||||||
outputModule = new UiWidget<Ui::OutputUi>;
|
outputModule = new UiWidget<Ui::OutputUi>;
|
||||||
|
|
||||||
@ -649,6 +652,7 @@ GuiDocument::GuiDocument(GuiView & lv)
|
|||||||
connect(outputModule->defaultFormatCO, SIGNAL(activated(int)),
|
connect(outputModule->defaultFormatCO, SIGNAL(activated(int)),
|
||||||
this, SLOT(change_adaptor()));
|
this, SLOT(change_adaptor()));
|
||||||
|
|
||||||
|
|
||||||
// fonts
|
// fonts
|
||||||
fontModule = new UiWidget<Ui::FontUi>;
|
fontModule = new UiWidget<Ui::FontUi>;
|
||||||
connect(fontModule->fontsRomanCO, SIGNAL(activated(int)),
|
connect(fontModule->fontsRomanCO, SIGNAL(activated(int)),
|
||||||
@ -683,10 +687,6 @@ GuiDocument::GuiDocument(GuiView & lv)
|
|||||||
this, SLOT(change_adaptor()));
|
this, SLOT(change_adaptor()));
|
||||||
connect(fontModule->fontOsfCB, SIGNAL(clicked()),
|
connect(fontModule->fontOsfCB, SIGNAL(clicked()),
|
||||||
this, SLOT(change_adaptor()));
|
this, SLOT(change_adaptor()));
|
||||||
connect(fontModule->noteFontColorPB, SIGNAL(clicked()),
|
|
||||||
this, SLOT(changeNoteFontColor()));
|
|
||||||
connect(fontModule->delNoteFontColorTB, SIGNAL(clicked()),
|
|
||||||
this, SLOT(deleteNoteFontColor()));
|
|
||||||
|
|
||||||
updateFontlist();
|
updateFontlist();
|
||||||
|
|
||||||
@ -704,8 +704,8 @@ GuiDocument::GuiDocument(GuiView & lv)
|
|||||||
qt_(GuiDocument::fontfamilies_gui[n]));
|
qt_(GuiDocument::fontfamilies_gui[n]));
|
||||||
|
|
||||||
|
|
||||||
pageLayoutModule = new UiWidget<Ui::PageLayoutUi>;
|
|
||||||
// page layout
|
// page layout
|
||||||
|
pageLayoutModule = new UiWidget<Ui::PageLayoutUi>;
|
||||||
connect(pageLayoutModule->papersizeCO, SIGNAL(activated(int)),
|
connect(pageLayoutModule->papersizeCO, SIGNAL(activated(int)),
|
||||||
this, SLOT(papersizeChanged(int)));
|
this, SLOT(papersizeChanged(int)));
|
||||||
connect(pageLayoutModule->papersizeCO, SIGNAL(activated(int)),
|
connect(pageLayoutModule->papersizeCO, SIGNAL(activated(int)),
|
||||||
@ -730,11 +730,7 @@ GuiDocument::GuiDocument(GuiView & lv)
|
|||||||
this, SLOT(change_adaptor()));
|
this, SLOT(change_adaptor()));
|
||||||
connect(pageLayoutModule->pagestyleCO, SIGNAL(activated(int)),
|
connect(pageLayoutModule->pagestyleCO, SIGNAL(activated(int)),
|
||||||
this, SLOT(change_adaptor()));
|
this, SLOT(change_adaptor()));
|
||||||
connect(pageLayoutModule->backgroundPB, SIGNAL(clicked()),
|
|
||||||
this, SLOT(changeBackgroundColor()));
|
|
||||||
connect(pageLayoutModule->delbackgroundTB, SIGNAL(clicked()),
|
|
||||||
this, SLOT(deleteBackgroundColor()));
|
|
||||||
|
|
||||||
pageLayoutModule->pagestyleCO->addItem(qt_("Default"));
|
pageLayoutModule->pagestyleCO->addItem(qt_("Default"));
|
||||||
pageLayoutModule->pagestyleCO->addItem(qt_("empty"));
|
pageLayoutModule->pagestyleCO->addItem(qt_("empty"));
|
||||||
pageLayoutModule->pagestyleCO->addItem(qt_("plain"));
|
pageLayoutModule->pagestyleCO->addItem(qt_("plain"));
|
||||||
@ -745,7 +741,6 @@ GuiDocument::GuiDocument(GuiView & lv)
|
|||||||
bc().addCheckedLineEdit(pageLayoutModule->paperwidthLE,
|
bc().addCheckedLineEdit(pageLayoutModule->paperwidthLE,
|
||||||
pageLayoutModule->paperwidthL);
|
pageLayoutModule->paperwidthL);
|
||||||
|
|
||||||
// paper
|
|
||||||
QComboBox * cb = pageLayoutModule->papersizeCO;
|
QComboBox * cb = pageLayoutModule->papersizeCO;
|
||||||
cb->addItem(qt_("Default"));
|
cb->addItem(qt_("Default"));
|
||||||
cb->addItem(qt_("Custom"));
|
cb->addItem(qt_("Custom"));
|
||||||
@ -767,8 +762,8 @@ GuiDocument::GuiDocument(GuiView & lv)
|
|||||||
pageLayoutModule->paperwidthLE));
|
pageLayoutModule->paperwidthLE));
|
||||||
|
|
||||||
|
|
||||||
marginsModule = new UiWidget<Ui::MarginsUi>;
|
|
||||||
// margins
|
// margins
|
||||||
|
marginsModule = new UiWidget<Ui::MarginsUi>;
|
||||||
connect(marginsModule->marginCB, SIGNAL(toggled(bool)),
|
connect(marginsModule->marginCB, SIGNAL(toggled(bool)),
|
||||||
this, SLOT(setCustomMargins(bool)));
|
this, SLOT(setCustomMargins(bool)));
|
||||||
connect(marginsModule->marginCB, SIGNAL(clicked()),
|
connect(marginsModule->marginCB, SIGNAL(clicked()),
|
||||||
@ -840,8 +835,8 @@ GuiDocument::GuiDocument(GuiView & lv)
|
|||||||
marginsModule->columnsepL);
|
marginsModule->columnsepL);
|
||||||
|
|
||||||
|
|
||||||
langModule = new UiWidget<Ui::LanguageUi>;
|
|
||||||
// language & quote
|
// language & quote
|
||||||
|
langModule = new UiWidget<Ui::LanguageUi>;
|
||||||
connect(langModule->languageCO, SIGNAL(activated(int)),
|
connect(langModule->languageCO, SIGNAL(activated(int)),
|
||||||
this, SLOT(change_adaptor()));
|
this, SLOT(change_adaptor()));
|
||||||
connect(langModule->defaultencodingRB, SIGNAL(clicked()),
|
connect(langModule->defaultencodingRB, SIGNAL(clicked()),
|
||||||
@ -852,7 +847,7 @@ GuiDocument::GuiDocument(GuiView & lv)
|
|||||||
this, SLOT(change_adaptor()));
|
this, SLOT(change_adaptor()));
|
||||||
connect(langModule->quoteStyleCO, SIGNAL(activated(int)),
|
connect(langModule->quoteStyleCO, SIGNAL(activated(int)),
|
||||||
this, SLOT(change_adaptor()));
|
this, SLOT(change_adaptor()));
|
||||||
// language & quotes
|
|
||||||
QAbstractItemModel * language_model = guiApp->languageModel();
|
QAbstractItemModel * language_model = guiApp->languageModel();
|
||||||
// FIXME: it would be nice if sorting was enabled/disabled via a checkbox.
|
// FIXME: it would be nice if sorting was enabled/disabled via a checkbox.
|
||||||
language_model->sort(0);
|
language_model->sort(0);
|
||||||
@ -877,8 +872,20 @@ GuiDocument::GuiDocument(GuiView & lv)
|
|||||||
langModule->quoteStyleCO->addItem(qt_(">>text<<"));
|
langModule->quoteStyleCO->addItem(qt_(">>text<<"));
|
||||||
|
|
||||||
|
|
||||||
numberingModule = new UiWidget<Ui::NumberingUi>;
|
// color
|
||||||
|
colorModule = new UiWidget<Ui::ColorUi>;
|
||||||
|
connect(colorModule->noteFontColorPB, SIGNAL(clicked()),
|
||||||
|
this, SLOT(changeNoteFontColor()));
|
||||||
|
connect(colorModule->delNoteFontColorTB, SIGNAL(clicked()),
|
||||||
|
this, SLOT(deleteNoteFontColor()));
|
||||||
|
connect(colorModule->backgroundPB, SIGNAL(clicked()),
|
||||||
|
this, SLOT(changeBackgroundColor()));
|
||||||
|
connect(colorModule->delbackgroundTB, SIGNAL(clicked()),
|
||||||
|
this, SLOT(deleteBackgroundColor()));
|
||||||
|
|
||||||
|
|
||||||
// numbering
|
// numbering
|
||||||
|
numberingModule = new UiWidget<Ui::NumberingUi>;
|
||||||
connect(numberingModule->depthSL, SIGNAL(valueChanged(int)),
|
connect(numberingModule->depthSL, SIGNAL(valueChanged(int)),
|
||||||
this, SLOT(change_adaptor()));
|
this, SLOT(change_adaptor()));
|
||||||
connect(numberingModule->tocSL, SIGNAL(valueChanged(int)),
|
connect(numberingModule->tocSL, SIGNAL(valueChanged(int)),
|
||||||
@ -893,12 +900,12 @@ GuiDocument::GuiDocument(GuiView & lv)
|
|||||||
numberingModule->tocTW->headerItem()->setText(2, qt_("Appears in TOC"));
|
numberingModule->tocTW->headerItem()->setText(2, qt_("Appears in TOC"));
|
||||||
|
|
||||||
|
|
||||||
|
// biblio
|
||||||
biblioModule = new UiWidget<Ui::BiblioUi>;
|
biblioModule = new UiWidget<Ui::BiblioUi>;
|
||||||
connect(biblioModule->citeNatbibRB, SIGNAL(toggled(bool)),
|
connect(biblioModule->citeNatbibRB, SIGNAL(toggled(bool)),
|
||||||
biblioModule->citationStyleL, SLOT(setEnabled(bool)));
|
biblioModule->citationStyleL, SLOT(setEnabled(bool)));
|
||||||
connect(biblioModule->citeNatbibRB, SIGNAL(toggled(bool)),
|
connect(biblioModule->citeNatbibRB, SIGNAL(toggled(bool)),
|
||||||
biblioModule->citeStyleCO, SLOT(setEnabled(bool)));
|
biblioModule->citeStyleCO, SLOT(setEnabled(bool)));
|
||||||
// biblio
|
|
||||||
connect(biblioModule->citeDefaultRB, SIGNAL(clicked()),
|
connect(biblioModule->citeDefaultRB, SIGNAL(clicked()),
|
||||||
this, SLOT(change_adaptor()));
|
this, SLOT(change_adaptor()));
|
||||||
connect(biblioModule->citeNatbibRB, SIGNAL(clicked()),
|
connect(biblioModule->citeNatbibRB, SIGNAL(clicked()),
|
||||||
@ -913,19 +920,19 @@ GuiDocument::GuiDocument(GuiView & lv)
|
|||||||
this, SLOT(bibtexChanged(int)));
|
this, SLOT(bibtexChanged(int)));
|
||||||
connect(biblioModule->bibtexOptionsED, SIGNAL(textChanged(QString)),
|
connect(biblioModule->bibtexOptionsED, SIGNAL(textChanged(QString)),
|
||||||
this, SLOT(change_adaptor()));
|
this, SLOT(change_adaptor()));
|
||||||
// biblio
|
|
||||||
biblioModule->citeStyleCO->addItem(qt_("Author-year"));
|
biblioModule->citeStyleCO->addItem(qt_("Author-year"));
|
||||||
biblioModule->citeStyleCO->addItem(qt_("Numerical"));
|
biblioModule->citeStyleCO->addItem(qt_("Numerical"));
|
||||||
biblioModule->citeStyleCO->setCurrentIndex(0);
|
biblioModule->citeStyleCO->setCurrentIndex(0);
|
||||||
|
|
||||||
biblioModule->bibtexCO->clear();
|
biblioModule->bibtexCO->clear();
|
||||||
|
|
||||||
biblioModule->bibtexCO->addItem(qt_("Default"), QString("default"));
|
biblioModule->bibtexCO->addItem(qt_("Default"), QString("default"));
|
||||||
for (set<string>::const_iterator it = lyxrc.bibtex_alternatives.begin();
|
for (set<string>::const_iterator it = lyxrc.bibtex_alternatives.begin();
|
||||||
it != lyxrc.bibtex_alternatives.end(); ++it) {
|
it != lyxrc.bibtex_alternatives.end(); ++it) {
|
||||||
QString const command = toqstr(*it).left(toqstr(*it).indexOf(" "));
|
QString const command = toqstr(*it).left(toqstr(*it).indexOf(" "));
|
||||||
biblioModule->bibtexCO->addItem(command, command);
|
biblioModule->bibtexCO->addItem(command, command);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
// indices
|
// indices
|
||||||
indicesModule = new GuiIndices;
|
indicesModule = new GuiIndices;
|
||||||
@ -933,6 +940,7 @@ GuiDocument::GuiDocument(GuiView & lv)
|
|||||||
this, SLOT(change_adaptor()));
|
this, SLOT(change_adaptor()));
|
||||||
|
|
||||||
|
|
||||||
|
// maths
|
||||||
mathsModule = new UiWidget<Ui::MathsUi>;
|
mathsModule = new UiWidget<Ui::MathsUi>;
|
||||||
connect(mathsModule->amsautoCB, SIGNAL(toggled(bool)),
|
connect(mathsModule->amsautoCB, SIGNAL(toggled(bool)),
|
||||||
mathsModule->amsCB, SLOT(setDisabled(bool)));
|
mathsModule->amsCB, SLOT(setDisabled(bool)));
|
||||||
@ -940,7 +948,7 @@ GuiDocument::GuiDocument(GuiView & lv)
|
|||||||
mathsModule->esintCB, SLOT(setDisabled(bool)));
|
mathsModule->esintCB, SLOT(setDisabled(bool)));
|
||||||
connect(mathsModule->mhchemautoCB, SIGNAL(toggled(bool)),
|
connect(mathsModule->mhchemautoCB, SIGNAL(toggled(bool)),
|
||||||
mathsModule->mhchemCB, SLOT(setDisabled(bool)));
|
mathsModule->mhchemCB, SLOT(setDisabled(bool)));
|
||||||
// maths
|
|
||||||
connect(mathsModule->amsCB, SIGNAL(clicked()),
|
connect(mathsModule->amsCB, SIGNAL(clicked()),
|
||||||
this, SLOT(change_adaptor()));
|
this, SLOT(change_adaptor()));
|
||||||
connect(mathsModule->amsautoCB, SIGNAL(clicked()),
|
connect(mathsModule->amsautoCB, SIGNAL(clicked()),
|
||||||
@ -954,8 +962,9 @@ GuiDocument::GuiDocument(GuiView & lv)
|
|||||||
connect(mathsModule->mhchemautoCB, SIGNAL(clicked()),
|
connect(mathsModule->mhchemautoCB, SIGNAL(clicked()),
|
||||||
this, SLOT(change_adaptor()));
|
this, SLOT(change_adaptor()));
|
||||||
|
|
||||||
latexModule = new UiWidget<Ui::LaTeXUi>;
|
|
||||||
// latex class
|
// latex class
|
||||||
|
latexModule = new UiWidget<Ui::LaTeXUi>;
|
||||||
connect(latexModule->optionsLE, SIGNAL(textChanged(QString)),
|
connect(latexModule->optionsLE, SIGNAL(textChanged(QString)),
|
||||||
this, SLOT(change_adaptor()));
|
this, SLOT(change_adaptor()));
|
||||||
connect(latexModule->defaultOptionsCB, SIGNAL(clicked()),
|
connect(latexModule->defaultOptionsCB, SIGNAL(clicked()),
|
||||||
@ -1000,6 +1009,7 @@ GuiDocument::GuiDocument(GuiView & lv)
|
|||||||
classes_model_.insertRow(i, toqstr(item), *cit);
|
classes_model_.insertRow(i, toqstr(item), *cit);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
// branches
|
// branches
|
||||||
branchesModule = new GuiBranches;
|
branchesModule = new GuiBranches;
|
||||||
connect(branchesModule, SIGNAL(changed()),
|
connect(branchesModule, SIGNAL(changed()),
|
||||||
@ -1008,16 +1018,19 @@ GuiDocument::GuiDocument(GuiView & lv)
|
|||||||
this, SLOT(branchesRename(docstring const &, docstring const &)));
|
this, SLOT(branchesRename(docstring const &, docstring const &)));
|
||||||
updateUnknownBranches();
|
updateUnknownBranches();
|
||||||
|
|
||||||
|
|
||||||
// preamble
|
// preamble
|
||||||
preambleModule = new PreambleModule;
|
preambleModule = new PreambleModule;
|
||||||
connect(preambleModule, SIGNAL(changed()),
|
connect(preambleModule, SIGNAL(changed()),
|
||||||
this, SLOT(change_adaptor()));
|
this, SLOT(change_adaptor()));
|
||||||
|
|
||||||
|
|
||||||
// bullets
|
// bullets
|
||||||
bulletsModule = new BulletsModule;
|
bulletsModule = new BulletsModule;
|
||||||
connect(bulletsModule, SIGNAL(changed()),
|
connect(bulletsModule, SIGNAL(changed()),
|
||||||
this, SLOT(change_adaptor()));
|
this, SLOT(change_adaptor()));
|
||||||
|
|
||||||
|
|
||||||
// Modules
|
// Modules
|
||||||
modulesModule = new UiWidget<Ui::ModulesUi>;
|
modulesModule = new UiWidget<Ui::ModulesUi>;
|
||||||
modulesModule->availableLV->header()->setVisible(false);
|
modulesModule->availableLV->header()->setVisible(false);
|
||||||
@ -1034,9 +1047,9 @@ GuiDocument::GuiDocument(GuiView & lv)
|
|||||||
connect(selectionManager, SIGNAL(selectionChanged()),
|
connect(selectionManager, SIGNAL(selectionChanged()),
|
||||||
this, SLOT(modulesChanged()));
|
this, SLOT(modulesChanged()));
|
||||||
|
|
||||||
|
|
||||||
// PDF support
|
// PDF support
|
||||||
pdfSupportModule = new UiWidget<Ui::PDFSupportUi>;
|
pdfSupportModule = new UiWidget<Ui::PDFSupportUi>;
|
||||||
|
|
||||||
connect(pdfSupportModule->use_hyperrefGB, SIGNAL(toggled(bool)),
|
connect(pdfSupportModule->use_hyperrefGB, SIGNAL(toggled(bool)),
|
||||||
this, SLOT(change_adaptor()));
|
this, SLOT(change_adaptor()));
|
||||||
connect(pdfSupportModule->titleLE, SIGNAL(textChanged(QString)),
|
connect(pdfSupportModule->titleLE, SIGNAL(textChanged(QString)),
|
||||||
@ -1073,11 +1086,13 @@ GuiDocument::GuiDocument(GuiView & lv)
|
|||||||
for (int i = 0; backref_opts[i][0]; ++i)
|
for (int i = 0; backref_opts[i][0]; ++i)
|
||||||
pdfSupportModule->backrefCO->addItem(qt_(backref_opts_gui[i]));
|
pdfSupportModule->backrefCO->addItem(qt_(backref_opts_gui[i]));
|
||||||
|
|
||||||
|
|
||||||
// float
|
// float
|
||||||
floatModule = new FloatPlacement;
|
floatModule = new FloatPlacement;
|
||||||
connect(floatModule, SIGNAL(changed()),
|
connect(floatModule, SIGNAL(changed()),
|
||||||
this, SLOT(change_adaptor()));
|
this, SLOT(change_adaptor()));
|
||||||
|
|
||||||
|
|
||||||
// listings
|
// listings
|
||||||
listingsModule = new UiWidget<Ui::ListingsSettingsUi>;
|
listingsModule = new UiWidget<Ui::ListingsSettingsUi>;
|
||||||
connect(listingsModule->listingsED, SIGNAL(textChanged()),
|
connect(listingsModule->listingsED, SIGNAL(textChanged()),
|
||||||
@ -1091,6 +1106,8 @@ GuiDocument::GuiDocument(GuiView & lv)
|
|||||||
listingsModule->listingsTB->setPlainText(
|
listingsModule->listingsTB->setPlainText(
|
||||||
qt_("Input listings parameters below. Enter ? for a list of parameters."));
|
qt_("Input listings parameters below. Enter ? for a list of parameters."));
|
||||||
|
|
||||||
|
|
||||||
|
// add the panels
|
||||||
docPS->addPanel(latexModule, qt_("Document Class"));
|
docPS->addPanel(latexModule, qt_("Document Class"));
|
||||||
docPS->addPanel(masterChildModule, qt_("Child Documents"));
|
docPS->addPanel(masterChildModule, qt_("Child Documents"));
|
||||||
docPS->addPanel(modulesModule, qt_("Modules"));
|
docPS->addPanel(modulesModule, qt_("Modules"));
|
||||||
@ -1099,6 +1116,7 @@ GuiDocument::GuiDocument(GuiView & lv)
|
|||||||
docPS->addPanel(pageLayoutModule, qt_("Page Layout"));
|
docPS->addPanel(pageLayoutModule, qt_("Page Layout"));
|
||||||
docPS->addPanel(marginsModule, qt_("Page Margins"));
|
docPS->addPanel(marginsModule, qt_("Page Margins"));
|
||||||
docPS->addPanel(langModule, qt_("Language"));
|
docPS->addPanel(langModule, qt_("Language"));
|
||||||
|
docPS->addPanel(colorModule, qt_("Colors"));
|
||||||
docPS->addPanel(numberingModule, qt_("Numbering & TOC"));
|
docPS->addPanel(numberingModule, qt_("Numbering & TOC"));
|
||||||
docPS->addPanel(biblioModule, qt_("Bibliography"));
|
docPS->addPanel(biblioModule, qt_("Bibliography"));
|
||||||
docPS->addPanel(indicesModule, qt_("Indexes"));
|
docPS->addPanel(indicesModule, qt_("Indexes"));
|
||||||
@ -1328,6 +1346,7 @@ void GuiDocument::setCustomMargins(bool custom)
|
|||||||
marginsModule->columnsepUnit->setEnabled(enableColSep);
|
marginsModule->columnsepUnit->setEnabled(enableColSep);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
void GuiDocument::changeBackgroundColor()
|
void GuiDocument::changeBackgroundColor()
|
||||||
{
|
{
|
||||||
QColor const & newColor = QColorDialog::getColor(
|
QColor const & newColor = QColorDialog::getColor(
|
||||||
@ -1335,7 +1354,7 @@ void GuiDocument::changeBackgroundColor()
|
|||||||
if (!newColor.isValid())
|
if (!newColor.isValid())
|
||||||
return;
|
return;
|
||||||
// set the button color
|
// set the button color
|
||||||
pageLayoutModule->backgroundPB->setStyleSheet(
|
colorModule->backgroundPB->setStyleSheet(
|
||||||
colorButtonStyleSheet(newColor));
|
colorButtonStyleSheet(newColor));
|
||||||
// save color
|
// save color
|
||||||
set_backgroundcolor = rgbFromHexName(fromqstr(newColor.name()));
|
set_backgroundcolor = rgbFromHexName(fromqstr(newColor.name()));
|
||||||
@ -1346,7 +1365,7 @@ void GuiDocument::changeBackgroundColor()
|
|||||||
void GuiDocument::deleteBackgroundColor()
|
void GuiDocument::deleteBackgroundColor()
|
||||||
{
|
{
|
||||||
// set the button color back to white
|
// set the button color back to white
|
||||||
pageLayoutModule->backgroundPB->setStyleSheet(
|
colorModule->backgroundPB->setStyleSheet(
|
||||||
colorButtonStyleSheet(QColor(Qt::white)));
|
colorButtonStyleSheet(QColor(Qt::white)));
|
||||||
// save white as the set color
|
// save white as the set color
|
||||||
set_backgroundcolor = rgbFromHexName("#ffffff");
|
set_backgroundcolor = rgbFromHexName("#ffffff");
|
||||||
@ -1361,7 +1380,7 @@ void GuiDocument::changeNoteFontColor()
|
|||||||
if (!newColor.isValid())
|
if (!newColor.isValid())
|
||||||
return;
|
return;
|
||||||
// set the button color
|
// set the button color
|
||||||
fontModule->noteFontColorPB->setStyleSheet(
|
colorModule->noteFontColorPB->setStyleSheet(
|
||||||
colorButtonStyleSheet(newColor));
|
colorButtonStyleSheet(newColor));
|
||||||
// save color
|
// save color
|
||||||
set_notefontcolor = rgbFromHexName(fromqstr(newColor.name()));
|
set_notefontcolor = rgbFromHexName(fromqstr(newColor.name()));
|
||||||
@ -1372,7 +1391,7 @@ void GuiDocument::changeNoteFontColor()
|
|||||||
void GuiDocument::deleteNoteFontColor()
|
void GuiDocument::deleteNoteFontColor()
|
||||||
{
|
{
|
||||||
// set the button color back to light gray
|
// set the button color back to light gray
|
||||||
fontModule->noteFontColorPB->setStyleSheet(
|
colorModule->noteFontColorPB->setStyleSheet(
|
||||||
colorButtonStyleSheet(QColor(204, 204, 204, 255)));
|
colorButtonStyleSheet(QColor(204, 204, 204, 255)));
|
||||||
// save light gray as the set color
|
// save light gray as the set color
|
||||||
set_notefontcolor = rgbFromHexName("#cccccc");
|
set_notefontcolor = rgbFromHexName("#cccccc");
|
||||||
@ -1985,6 +2004,10 @@ void GuiDocument::applyView()
|
|||||||
langModule->languageCO->currentIndex()).toString();
|
langModule->languageCO->currentIndex()).toString();
|
||||||
bp_.language = lyx::languages.getLanguage(fromqstr(lang));
|
bp_.language = lyx::languages.getLanguage(fromqstr(lang));
|
||||||
|
|
||||||
|
//color
|
||||||
|
bp_.backgroundcolor = set_backgroundcolor;
|
||||||
|
bp_.notefontcolor = set_notefontcolor;
|
||||||
|
|
||||||
// numbering
|
// numbering
|
||||||
if (bp_.documentClass().hasTocLevels()) {
|
if (bp_.documentClass().hasTocLevels()) {
|
||||||
bp_.tocdepth = numberingModule->tocSL->value();
|
bp_.tocdepth = numberingModule->tocSL->value();
|
||||||
@ -2240,9 +2263,6 @@ void GuiDocument::applyView()
|
|||||||
else
|
else
|
||||||
bp_.orientation = ORIENTATION_PORTRAIT;
|
bp_.orientation = ORIENTATION_PORTRAIT;
|
||||||
|
|
||||||
bp_.backgroundcolor = set_backgroundcolor;
|
|
||||||
bp_.notefontcolor = set_notefontcolor;
|
|
||||||
|
|
||||||
// margins
|
// margins
|
||||||
bp_.use_geometry = !marginsModule->marginCB->isChecked()
|
bp_.use_geometry = !marginsModule->marginCB->isChecked()
|
||||||
|| geom_papersize;
|
|| geom_papersize;
|
||||||
@ -2370,6 +2390,14 @@ void GuiDocument::paramsToDialog()
|
|||||||
langModule->defaultencodingRB->setChecked(default_enc);
|
langModule->defaultencodingRB->setChecked(default_enc);
|
||||||
langModule->otherencodingRB->setChecked(!default_enc);
|
langModule->otherencodingRB->setChecked(!default_enc);
|
||||||
|
|
||||||
|
//color
|
||||||
|
colorModule->noteFontColorPB->setStyleSheet(
|
||||||
|
colorButtonStyleSheet(rgb2qcolor(bp_.notefontcolor)));
|
||||||
|
set_notefontcolor = bp_.notefontcolor;
|
||||||
|
colorModule->backgroundPB->setStyleSheet(
|
||||||
|
colorButtonStyleSheet(rgb2qcolor(bp_.backgroundcolor)));
|
||||||
|
set_backgroundcolor = bp_.backgroundcolor;
|
||||||
|
|
||||||
// numbering
|
// numbering
|
||||||
int const min_toclevel = documentClass().min_toclevel();
|
int const min_toclevel = documentClass().min_toclevel();
|
||||||
int const max_toclevel = documentClass().max_toclevel();
|
int const max_toclevel = documentClass().max_toclevel();
|
||||||
@ -2623,10 +2651,7 @@ void GuiDocument::paramsToDialog()
|
|||||||
fontModule->fontOsfCB->setChecked(bp_.fontsOSF);
|
fontModule->fontOsfCB->setChecked(bp_.fontsOSF);
|
||||||
fontModule->scaleSansSB->setValue(bp_.fontsSansScale);
|
fontModule->scaleSansSB->setValue(bp_.fontsSansScale);
|
||||||
fontModule->scaleTypewriterSB->setValue(bp_.fontsTypewriterScale);
|
fontModule->scaleTypewriterSB->setValue(bp_.fontsTypewriterScale);
|
||||||
fontModule->noteFontColorPB->setStyleSheet(
|
|
||||||
colorButtonStyleSheet(rgb2qcolor(bp_.notefontcolor)));
|
|
||||||
set_notefontcolor = bp_.notefontcolor;
|
|
||||||
|
|
||||||
int nn = findToken(GuiDocument::fontfamilies, bp_.fontsDefaultFamily);
|
int nn = findToken(GuiDocument::fontfamilies, bp_.fontsDefaultFamily);
|
||||||
if (nn >= 0)
|
if (nn >= 0)
|
||||||
fontModule->fontsDefaultCO->setCurrentIndex(nn);
|
fontModule->fontsDefaultCO->setCurrentIndex(nn);
|
||||||
@ -2658,10 +2683,6 @@ void GuiDocument::paramsToDialog()
|
|||||||
pageLayoutModule->facingPagesCB->setChecked(
|
pageLayoutModule->facingPagesCB->setChecked(
|
||||||
bp_.sides == TwoSides);
|
bp_.sides == TwoSides);
|
||||||
|
|
||||||
pageLayoutModule->backgroundPB->setStyleSheet(
|
|
||||||
colorButtonStyleSheet(rgb2qcolor(bp_.backgroundcolor)));
|
|
||||||
set_backgroundcolor = bp_.backgroundcolor;
|
|
||||||
|
|
||||||
lengthToWidgets(pageLayoutModule->paperwidthLE,
|
lengthToWidgets(pageLayoutModule->paperwidthLE,
|
||||||
pageLayoutModule->paperwidthUnitCO, bp_.paperwidth, defaultUnit);
|
pageLayoutModule->paperwidthUnitCO, bp_.paperwidth, defaultUnit);
|
||||||
lengthToWidgets(pageLayoutModule->paperheightLE,
|
lengthToWidgets(pageLayoutModule->paperheightLE,
|
||||||
|
@ -20,22 +20,23 @@
|
|||||||
#include "GuiDialog.h"
|
#include "GuiDialog.h"
|
||||||
#include "GuiIdListModel.h"
|
#include "GuiIdListModel.h"
|
||||||
|
|
||||||
|
#include "ui_BiblioUi.h"
|
||||||
|
#include "ui_ColorUi.h"
|
||||||
#include "ui_DocumentUi.h"
|
#include "ui_DocumentUi.h"
|
||||||
#include "ui_FontUi.h"
|
#include "ui_FontUi.h"
|
||||||
#include "ui_TextLayoutUi.h"
|
#include "ui_LanguageUi.h"
|
||||||
|
#include "ui_LaTeXUi.h"
|
||||||
|
#include "ui_ListingsSettingsUi.h"
|
||||||
|
#include "ui_MarginsUi.h"
|
||||||
#include "ui_MasterChildUi.h"
|
#include "ui_MasterChildUi.h"
|
||||||
#include "ui_MathsUi.h"
|
#include "ui_MathsUi.h"
|
||||||
#include "ui_LaTeXUi.h"
|
|
||||||
#include "ui_PageLayoutUi.h"
|
|
||||||
#include "ui_LanguageUi.h"
|
|
||||||
#include "ui_BiblioUi.h"
|
|
||||||
#include "ui_NumberingUi.h"
|
|
||||||
#include "ui_MarginsUi.h"
|
|
||||||
#include "ui_PreambleUi.h"
|
|
||||||
#include "ui_PDFSupportUi.h"
|
|
||||||
#include "ui_ModulesUi.h"
|
#include "ui_ModulesUi.h"
|
||||||
|
#include "ui_NumberingUi.h"
|
||||||
#include "ui_OutputUi.h"
|
#include "ui_OutputUi.h"
|
||||||
#include "ui_ListingsSettingsUi.h"
|
#include "ui_PageLayoutUi.h"
|
||||||
|
#include "ui_PDFSupportUi.h"
|
||||||
|
#include "ui_PreambleUi.h"
|
||||||
|
#include "ui_TextLayoutUi.h"
|
||||||
|
|
||||||
namespace lyx {
|
namespace lyx {
|
||||||
|
|
||||||
@ -122,6 +123,7 @@ private:
|
|||||||
UiWidget<Ui::PageLayoutUi> *pageLayoutModule;
|
UiWidget<Ui::PageLayoutUi> *pageLayoutModule;
|
||||||
UiWidget<Ui::MarginsUi> *marginsModule;
|
UiWidget<Ui::MarginsUi> *marginsModule;
|
||||||
UiWidget<Ui::LanguageUi> *langModule;
|
UiWidget<Ui::LanguageUi> *langModule;
|
||||||
|
UiWidget<Ui::ColorUi> *colorModule;
|
||||||
UiWidget<Ui::NumberingUi> *numberingModule;
|
UiWidget<Ui::NumberingUi> *numberingModule;
|
||||||
UiWidget<Ui::BiblioUi> *biblioModule;
|
UiWidget<Ui::BiblioUi> *biblioModule;
|
||||||
UiWidget<Ui::MathsUi> *mathsModule;
|
UiWidget<Ui::MathsUi> *mathsModule;
|
||||||
|
@ -259,6 +259,7 @@ UIFILES = \
|
|||||||
ChangesUi.ui \
|
ChangesUi.ui \
|
||||||
CharacterUi.ui \
|
CharacterUi.ui \
|
||||||
CitationUi.ui \
|
CitationUi.ui \
|
||||||
|
ColorUi.ui \
|
||||||
CompareUi.ui \
|
CompareUi.ui \
|
||||||
DelimiterUi.ui \
|
DelimiterUi.ui \
|
||||||
DocumentUi.ui \
|
DocumentUi.ui \
|
||||||
|
195
src/frontends/qt4/ui/ColorUi.ui
Normal file
195
src/frontends/qt4/ui/ColorUi.ui
Normal file
@ -0,0 +1,195 @@
|
|||||||
|
<ui version="4.0">
|
||||||
|
<class>ColorUi</class>
|
||||||
|
<widget class="QWidget" name="ColorUi">
|
||||||
|
<property name="geometry">
|
||||||
|
<rect>
|
||||||
|
<x>0</x>
|
||||||
|
<y>0</y>
|
||||||
|
<width>404</width>
|
||||||
|
<height>216</height>
|
||||||
|
</rect>
|
||||||
|
</property>
|
||||||
|
<property name="contextMenuPolicy">
|
||||||
|
<enum>Qt::DefaultContextMenu</enum>
|
||||||
|
</property>
|
||||||
|
<property name="windowTitle">
|
||||||
|
<string>ColorUi</string>
|
||||||
|
</property>
|
||||||
|
<property name="toolTip">
|
||||||
|
<string/>
|
||||||
|
</property>
|
||||||
|
<layout class="QGridLayout" name="gridLayout_3">
|
||||||
|
<item row="0" column="0">
|
||||||
|
<widget class="QGroupBox" name="fontcolorGB">
|
||||||
|
<property name="title">
|
||||||
|
<string>Font colors</string>
|
||||||
|
</property>
|
||||||
|
<property name="flat">
|
||||||
|
<bool>true</bool>
|
||||||
|
</property>
|
||||||
|
<layout class="QGridLayout" name="gridLayout_2">
|
||||||
|
<item row="0" column="0">
|
||||||
|
<widget class="QLabel" name="noteFontColorLA">
|
||||||
|
<property name="text">
|
||||||
|
<string>Font color for
|
||||||
|
greyed-out notes:</string>
|
||||||
|
</property>
|
||||||
|
</widget>
|
||||||
|
</item>
|
||||||
|
<item row="0" column="1">
|
||||||
|
<layout class="QHBoxLayout" name="horizontalLayout_3">
|
||||||
|
<item>
|
||||||
|
<widget class="QPushButton" name="noteFontColorPB">
|
||||||
|
<property name="maximumSize">
|
||||||
|
<size>
|
||||||
|
<width>16777215</width>
|
||||||
|
<height>16777215</height>
|
||||||
|
</size>
|
||||||
|
</property>
|
||||||
|
<property name="toolTip">
|
||||||
|
<string>Click to change the color</string>
|
||||||
|
</property>
|
||||||
|
<property name="text">
|
||||||
|
<string>&Change...</string>
|
||||||
|
</property>
|
||||||
|
</widget>
|
||||||
|
</item>
|
||||||
|
<item>
|
||||||
|
<widget class="QToolButton" name="delNoteFontColorTB">
|
||||||
|
<property name="minimumSize">
|
||||||
|
<size>
|
||||||
|
<width>23</width>
|
||||||
|
<height>23</height>
|
||||||
|
</size>
|
||||||
|
</property>
|
||||||
|
<property name="toolTip">
|
||||||
|
<string>Revert the color to the default</string>
|
||||||
|
</property>
|
||||||
|
<property name="text">
|
||||||
|
<string>R&eset</string>
|
||||||
|
</property>
|
||||||
|
<property name="toolButtonStyle">
|
||||||
|
<enum>Qt::ToolButtonTextOnly</enum>
|
||||||
|
</property>
|
||||||
|
<property name="arrowType">
|
||||||
|
<enum>Qt::LeftArrow</enum>
|
||||||
|
</property>
|
||||||
|
</widget>
|
||||||
|
</item>
|
||||||
|
<item>
|
||||||
|
<spacer name="horizontalSpacer_2">
|
||||||
|
<property name="orientation">
|
||||||
|
<enum>Qt::Horizontal</enum>
|
||||||
|
</property>
|
||||||
|
<property name="sizeHint" stdset="0">
|
||||||
|
<size>
|
||||||
|
<width>40</width>
|
||||||
|
<height>20</height>
|
||||||
|
</size>
|
||||||
|
</property>
|
||||||
|
</spacer>
|
||||||
|
</item>
|
||||||
|
</layout>
|
||||||
|
</item>
|
||||||
|
</layout>
|
||||||
|
</widget>
|
||||||
|
</item>
|
||||||
|
<item row="1" column="0">
|
||||||
|
<widget class="QGroupBox" name="backgroundGB">
|
||||||
|
<property name="title">
|
||||||
|
<string>Background colors</string>
|
||||||
|
</property>
|
||||||
|
<property name="flat">
|
||||||
|
<bool>true</bool>
|
||||||
|
</property>
|
||||||
|
<layout class="QGridLayout" name="gridLayout">
|
||||||
|
<item row="0" column="0">
|
||||||
|
<widget class="QLabel" name="label_4">
|
||||||
|
<property name="text">
|
||||||
|
<string>Background Color:</string>
|
||||||
|
</property>
|
||||||
|
<property name="buddy">
|
||||||
|
<cstring>backgroundPB</cstring>
|
||||||
|
</property>
|
||||||
|
</widget>
|
||||||
|
</item>
|
||||||
|
<item row="0" column="1">
|
||||||
|
<layout class="QHBoxLayout" name="horizontalLayout_4">
|
||||||
|
<item>
|
||||||
|
<widget class="QPushButton" name="backgroundPB">
|
||||||
|
<property name="maximumSize">
|
||||||
|
<size>
|
||||||
|
<width>16777215</width>
|
||||||
|
<height>16777215</height>
|
||||||
|
</size>
|
||||||
|
</property>
|
||||||
|
<property name="toolTip">
|
||||||
|
<string>Click to change the color</string>
|
||||||
|
</property>
|
||||||
|
<property name="text">
|
||||||
|
<string>&Change...</string>
|
||||||
|
</property>
|
||||||
|
</widget>
|
||||||
|
</item>
|
||||||
|
<item>
|
||||||
|
<widget class="QToolButton" name="delbackgroundTB">
|
||||||
|
<property name="minimumSize">
|
||||||
|
<size>
|
||||||
|
<width>23</width>
|
||||||
|
<height>23</height>
|
||||||
|
</size>
|
||||||
|
</property>
|
||||||
|
<property name="toolTip">
|
||||||
|
<string>Revert the color to the default</string>
|
||||||
|
</property>
|
||||||
|
<property name="text">
|
||||||
|
<string>R&eset</string>
|
||||||
|
</property>
|
||||||
|
<property name="toolButtonStyle">
|
||||||
|
<enum>Qt::ToolButtonTextOnly</enum>
|
||||||
|
</property>
|
||||||
|
<property name="arrowType">
|
||||||
|
<enum>Qt::LeftArrow</enum>
|
||||||
|
</property>
|
||||||
|
</widget>
|
||||||
|
</item>
|
||||||
|
<item>
|
||||||
|
<spacer name="horizontalSpacer_3">
|
||||||
|
<property name="orientation">
|
||||||
|
<enum>Qt::Horizontal</enum>
|
||||||
|
</property>
|
||||||
|
<property name="sizeHint" stdset="0">
|
||||||
|
<size>
|
||||||
|
<width>40</width>
|
||||||
|
<height>20</height>
|
||||||
|
</size>
|
||||||
|
</property>
|
||||||
|
</spacer>
|
||||||
|
</item>
|
||||||
|
</layout>
|
||||||
|
</item>
|
||||||
|
</layout>
|
||||||
|
</widget>
|
||||||
|
</item>
|
||||||
|
<item row="2" column="0">
|
||||||
|
<spacer name="verticalSpacer">
|
||||||
|
<property name="orientation">
|
||||||
|
<enum>Qt::Vertical</enum>
|
||||||
|
</property>
|
||||||
|
<property name="sizeHint" stdset="0">
|
||||||
|
<size>
|
||||||
|
<width>20</width>
|
||||||
|
<height>126</height>
|
||||||
|
</size>
|
||||||
|
</property>
|
||||||
|
</spacer>
|
||||||
|
</item>
|
||||||
|
</layout>
|
||||||
|
</widget>
|
||||||
|
<layoutdefault spacing="6" margin="11"/>
|
||||||
|
<includes>
|
||||||
|
<include location="local">qt_i18n.h</include>
|
||||||
|
</includes>
|
||||||
|
<resources/>
|
||||||
|
<connections/>
|
||||||
|
</ui>
|
@ -6,7 +6,7 @@
|
|||||||
<x>0</x>
|
<x>0</x>
|
||||||
<y>0</y>
|
<y>0</y>
|
||||||
<width>404</width>
|
<width>404</width>
|
||||||
<height>321</height>
|
<height>256</height>
|
||||||
</rect>
|
</rect>
|
||||||
</property>
|
</property>
|
||||||
<property name="windowTitle">
|
<property name="windowTitle">
|
||||||
@ -204,70 +204,7 @@
|
|||||||
</property>
|
</property>
|
||||||
</widget>
|
</widget>
|
||||||
</item>
|
</item>
|
||||||
<item row="8" column="0">
|
<item row="8" column="1">
|
||||||
<widget class="QLabel" name="noteFontColorLA">
|
|
||||||
<property name="text">
|
|
||||||
<string>Font color for
|
|
||||||
greyed-out notes:</string>
|
|
||||||
</property>
|
|
||||||
</widget>
|
|
||||||
</item>
|
|
||||||
<item row="8" column="1" colspan="2">
|
|
||||||
<layout class="QHBoxLayout" name="horizontalLayout_3">
|
|
||||||
<item>
|
|
||||||
<widget class="QPushButton" name="noteFontColorPB">
|
|
||||||
<property name="maximumSize">
|
|
||||||
<size>
|
|
||||||
<width>16777215</width>
|
|
||||||
<height>16777215</height>
|
|
||||||
</size>
|
|
||||||
</property>
|
|
||||||
<property name="toolTip">
|
|
||||||
<string>Click to change the color</string>
|
|
||||||
</property>
|
|
||||||
<property name="text">
|
|
||||||
<string>&Change...</string>
|
|
||||||
</property>
|
|
||||||
</widget>
|
|
||||||
</item>
|
|
||||||
<item>
|
|
||||||
<widget class="QToolButton" name="delNoteFontColorTB">
|
|
||||||
<property name="minimumSize">
|
|
||||||
<size>
|
|
||||||
<width>23</width>
|
|
||||||
<height>23</height>
|
|
||||||
</size>
|
|
||||||
</property>
|
|
||||||
<property name="toolTip">
|
|
||||||
<string>Revert the color to the default</string>
|
|
||||||
</property>
|
|
||||||
<property name="text">
|
|
||||||
<string>R&eset</string>
|
|
||||||
</property>
|
|
||||||
<property name="toolButtonStyle">
|
|
||||||
<enum>Qt::ToolButtonTextOnly</enum>
|
|
||||||
</property>
|
|
||||||
<property name="arrowType">
|
|
||||||
<enum>Qt::LeftArrow</enum>
|
|
||||||
</property>
|
|
||||||
</widget>
|
|
||||||
</item>
|
|
||||||
<item>
|
|
||||||
<spacer name="horizontalSpacer_2">
|
|
||||||
<property name="orientation">
|
|
||||||
<enum>Qt::Horizontal</enum>
|
|
||||||
</property>
|
|
||||||
<property name="sizeHint" stdset="0">
|
|
||||||
<size>
|
|
||||||
<width>40</width>
|
|
||||||
<height>20</height>
|
|
||||||
</size>
|
|
||||||
</property>
|
|
||||||
</spacer>
|
|
||||||
</item>
|
|
||||||
</layout>
|
|
||||||
</item>
|
|
||||||
<item row="9" column="1">
|
|
||||||
<spacer name="verticalSpacer">
|
<spacer name="verticalSpacer">
|
||||||
<property name="orientation">
|
<property name="orientation">
|
||||||
<enum>Qt::Vertical</enum>
|
<enum>Qt::Vertical</enum>
|
||||||
|
@ -6,7 +6,7 @@
|
|||||||
<x>0</x>
|
<x>0</x>
|
||||||
<y>0</y>
|
<y>0</y>
|
||||||
<width>362</width>
|
<width>362</width>
|
||||||
<height>308</height>
|
<height>287</height>
|
||||||
</rect>
|
</rect>
|
||||||
</property>
|
</property>
|
||||||
<property name="windowTitle">
|
<property name="windowTitle">
|
||||||
@ -210,71 +210,6 @@
|
|||||||
</property>
|
</property>
|
||||||
</widget>
|
</widget>
|
||||||
</item>
|
</item>
|
||||||
<item row="2" column="0" colspan="2">
|
|
||||||
<widget class="QLabel" name="label_4">
|
|
||||||
<property name="text">
|
|
||||||
<string>Background Color:</string>
|
|
||||||
</property>
|
|
||||||
<property name="buddy">
|
|
||||||
<cstring>backgroundPB</cstring>
|
|
||||||
</property>
|
|
||||||
</widget>
|
|
||||||
</item>
|
|
||||||
<item row="2" column="2" colspan="2">
|
|
||||||
<layout class="QHBoxLayout" name="horizontalLayout_2">
|
|
||||||
<item>
|
|
||||||
<widget class="QPushButton" name="backgroundPB">
|
|
||||||
<property name="maximumSize">
|
|
||||||
<size>
|
|
||||||
<width>16777215</width>
|
|
||||||
<height>16777215</height>
|
|
||||||
</size>
|
|
||||||
</property>
|
|
||||||
<property name="toolTip">
|
|
||||||
<string>Click to change the color</string>
|
|
||||||
</property>
|
|
||||||
<property name="text">
|
|
||||||
<string>&Change...</string>
|
|
||||||
</property>
|
|
||||||
</widget>
|
|
||||||
</item>
|
|
||||||
<item>
|
|
||||||
<widget class="QToolButton" name="delbackgroundTB">
|
|
||||||
<property name="minimumSize">
|
|
||||||
<size>
|
|
||||||
<width>23</width>
|
|
||||||
<height>23</height>
|
|
||||||
</size>
|
|
||||||
</property>
|
|
||||||
<property name="toolTip">
|
|
||||||
<string>Revert the color to the default</string>
|
|
||||||
</property>
|
|
||||||
<property name="text">
|
|
||||||
<string>R&eset</string>
|
|
||||||
</property>
|
|
||||||
<property name="toolButtonStyle">
|
|
||||||
<enum>Qt::ToolButtonTextOnly</enum>
|
|
||||||
</property>
|
|
||||||
<property name="arrowType">
|
|
||||||
<enum>Qt::LeftArrow</enum>
|
|
||||||
</property>
|
|
||||||
</widget>
|
|
||||||
</item>
|
|
||||||
<item>
|
|
||||||
<spacer name="horizontalSpacer">
|
|
||||||
<property name="orientation">
|
|
||||||
<enum>Qt::Horizontal</enum>
|
|
||||||
</property>
|
|
||||||
<property name="sizeHint" stdset="0">
|
|
||||||
<size>
|
|
||||||
<width>40</width>
|
|
||||||
<height>20</height>
|
|
||||||
</size>
|
|
||||||
</property>
|
|
||||||
</spacer>
|
|
||||||
</item>
|
|
||||||
</layout>
|
|
||||||
</item>
|
|
||||||
</layout>
|
</layout>
|
||||||
</widget>
|
</widget>
|
||||||
</item>
|
</item>
|
||||||
|
Loading…
Reference in New Issue
Block a user