From bb581048a857f8d30941fcd4993a8edbec21791f Mon Sep 17 00:00:00 2001 From: Edwin Leuven Date: Thu, 31 Jan 2002 13:15:33 +0000 Subject: [PATCH] first commit new graphics dialog git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@3464 a592a061-630c-0410-9148-cb99ea01b6c8 --- src/frontends/qt2/ChangeLog | 12 + src/frontends/qt2/QAbout.C | 9 +- src/frontends/qt2/QGraphics.C | 331 ++-- src/frontends/qt2/QGraphics.h | 8 + src/frontends/qt2/QGraphicsDialog.C | 12 +- src/frontends/qt2/QGraphicsDialog.h | 3 +- src/frontends/qt2/lengthcombo.C | 30 +- src/frontends/qt2/ui/QAboutDialog.ui | 209 +-- src/frontends/qt2/ui/QFloatDialog.ui | 31 + src/frontends/qt2/ui/QGraphicsDialog.ui | 1973 ++++++++++++++++++----- 10 files changed, 1906 insertions(+), 712 deletions(-) diff --git a/src/frontends/qt2/ChangeLog b/src/frontends/qt2/ChangeLog index 459c1f6d36..34caf1ee68 100644 --- a/src/frontends/qt2/ChangeLog +++ b/src/frontends/qt2/ChangeLog @@ -1,3 +1,15 @@ +2002-01-31 Edwin Leuven + + * qt2/QGraphics.C + * qt2/QGraphics.h + * qt2/QGraphicsDialog.C + * qt2/QGraphicsDialog.h + * qt2/lengthcombo.C + * qt2/ui/QGraphicsDialog.ui: new dialog + * qt2/QAbout.C: + * qt2/ui/QAboutDialog.ui: reduce size + * qt2/ui/QFloatDialog.ui: update dialog + 2002-01-29 Edwin Leuven * Makefile.am: diff --git a/src/frontends/qt2/QAbout.C b/src/frontends/qt2/QAbout.C index bfaa65f1bb..73ea5e3f91 100644 --- a/src/frontends/qt2/QAbout.C +++ b/src/frontends/qt2/QAbout.C @@ -40,9 +40,12 @@ void QAbout::build_dialog() connect(dialog_.get()->closePB, SIGNAL(clicked()), this, SLOT(slotClose())); - dialog_->copyrightLA->setText(controller().getCopyright().c_str()); - dialog_->licenseLA->setText(controller().getLicense().c_str()); - dialog_->disclaimerLA->setText(controller().getDisclaimer().c_str()); + dialog_->copyright->setText(controller().getCopyright().c_str()); + dialog_->copyright->append("\n"); + dialog_->copyright->append(controller().getLicense().c_str()); + dialog_->copyright->append("\n"); + dialog_->copyright->append(controller().getDisclaimer().c_str()); + dialog_->versionLA->setText(controller().getVersion().c_str()); stringstream in; diff --git a/src/frontends/qt2/QGraphics.C b/src/frontends/qt2/QGraphics.C index 40a8bc4565..dfe5026e18 100644 --- a/src/frontends/qt2/QGraphics.C +++ b/src/frontends/qt2/QGraphics.C @@ -4,6 +4,7 @@ * Read the file COPYING * * \author John Levon + * \author Edwin Leuven */ #include @@ -12,20 +13,32 @@ #pragma implementation #endif +#include +#include +#include +#include +#include +#include +#include +#include + +#include "lengthcombo.h" + #include "QGraphicsDialog.h" -#include "ControlGraphics.h" #include "QGraphics.h" #include "Qt2BC.h" #include "gettext.h" #include "debug.h" +#include "QtLyXView.h" +#include "ControlGraphics.h" + #include "support/lstrings.h" +#include "support/FileInfo.h" +#include "support/filetools.h" // for MakeAbsPath etc +#include "insets/insetgraphicsParams.h" +#include "lyxrc.h" // for lyxrc.display_graphics -#include -#include -#include -#include -#include typedef Qt2CB > base_class; @@ -42,136 +55,246 @@ void QGraphics::build_dialog() bc().setOK(dialog_->okPB); bc().setApply(dialog_->applyPB); bc().setCancel(dialog_->closePB); - bc().addReadOnly(dialog_->filenameED); + bc().setRestore(dialog_->restorePB); + + bc().addReadOnly(dialog_->rotateGB); + bc().addReadOnly(dialog_->latexoptionsGB); + bc().addReadOnly(dialog_->bbGB); + bc().addReadOnly(dialog_->sizeBG); + bc().addReadOnly(dialog_->displayGB); + bc().addReadOnly(dialog_->subfigure); + bc().addReadOnly(dialog_->subcaption); + bc().addReadOnly(dialog_->filenameL); + bc().addReadOnly(dialog_->filename); bc().addReadOnly(dialog_->browsePB); - bc().addReadOnly(dialog_->widthED); - bc().addReadOnly(dialog_->widthCO); - bc().addReadOnly(dialog_->heightED); - bc().addReadOnly(dialog_->heightCO); - bc().addReadOnly(dialog_->scaleCB); - bc().addReadOnly(dialog_->rotateED); - bc().addReadOnly(dialog_->monochromeRB); - bc().addReadOnly(dialog_->grayscaleRB); - bc().addReadOnly(dialog_->colorRB); - bc().addReadOnly(dialog_->dontRB); - bc().addReadOnly(dialog_->subcaptionED); } - -namespace { - string const numtostr(double val) { - string a(tostr(val)); - if (a == "0") - a = ""; - return a; - } -} // namespace anon - void QGraphics::update_contents() { InsetGraphicsParams & igp = controller().params(); + + string unit = "cm"; + if (lyxrc.default_papersize < 3) + unit = "in"; + string const defaultUnit = string(unit); + + // Update dialog with details from inset + dialog_->filename->setText(igp.filename.c_str()); + + // set the bounding box values, if exists. First we need the whole + // path, because the controller knows nothing about the doc-dir + controller().bbChanged = false; + if (igp.bb.empty()) { + string const fileWithAbsPath = MakeAbsPath(igp.filename, OnlyPath(igp.filename)); + string bb = controller().readBB(fileWithAbsPath); + if (!bb.empty()) { + // get the values from the file + // in this case we always have the point-unit + dialog_->lbX->setText(token(bb,' ',0).c_str()); + dialog_->lbY->setText(token(bb,' ',1).c_str()); + dialog_->rtX->setText(token(bb,' ',2).c_str()); + dialog_->rtY->setText(token(bb,' ',3).c_str()); + } + } else { + // get the values from the inset + controller().bbChanged = true; + dialog_->lbX->setText(token(igp.bb,' ',0).c_str()); + dialog_->lbY->setText(token(igp.bb,' ',1).c_str()); + dialog_->rtX->setText(token(igp.bb,' ',2).c_str()); + dialog_->rtY->setText(token(igp.bb,' ',3).c_str()); + } + + // Update the draft and clip mode + dialog_->draft->setChecked(igp.draft); + dialog_->clip->setChecked(igp.clip); + + // Update the subcaption check button and input field + dialog_->subfigure->setChecked(igp.subcaption); + dialog_->subcaption->setText(igp.subcaptionText.c_str()); - dialog_->filenameED->setText(igp.filename.c_str()); - - QRadioButton * button; - switch (igp.display) { - case InsetGraphicsParams::COLOR: button = dialog_->colorRB; break; - case InsetGraphicsParams::GRAYSCALE: button = dialog_->grayscaleRB; break; - case InsetGraphicsParams::MONOCHROME: button = dialog_->monochromeRB; break; - case InsetGraphicsParams::NONE: button = dialog_->dontRB; break; + case InsetGraphicsParams::MONOCHROME: { + dialog_->show->setCurrentItem(0); + break; + } + case InsetGraphicsParams::GRAYSCALE: { + dialog_->show->setCurrentItem(1); + break; + } + case InsetGraphicsParams::COLOR: { + dialog_->show->setCurrentItem(2); + break; + } + case InsetGraphicsParams::NONE: { + dialog_->show->setCurrentItem(3); + break; + } } - button->setChecked(true); - - int item = 0; - switch (igp.widthResize) { - case InsetGraphicsParams::INCH: item = 1; break; - case InsetGraphicsParams::PERCENT_PAGE: item = 2; break; - case InsetGraphicsParams::PERCENT_COLUMN: item = 3; break; - default: break; + + dialog_->widthUnit->setCurrentItem(igp.width.unit()); + dialog_->heightUnit->setCurrentItem(igp.height.unit()); + + switch (igp.size_type) { + case InsetGraphicsParams::DEFAULT_SIZE: { + dialog_->defaultRB->setChecked(TRUE); + break; + } + case InsetGraphicsParams::WH: { + dialog_->customRB->setChecked(TRUE); + break; + } + case InsetGraphicsParams::SCALE: { + dialog_->scaleRB->setChecked(TRUE); + dialog_->scale->setText(tostr(igp.scale).c_str()); + break; + } } - - dialog_->widthCO->setCurrentItem(item); - - item = 0; - switch (igp.heightResize) { - case InsetGraphicsParams::INCH: item = 1; break; - case InsetGraphicsParams::PERCENT_PAGE: item = 2; break; - default: break; + + // aspect ratio + dialog_->aspectratio->setChecked(igp.keepAspectRatio); + + // now the lyx-internally viewsize + dialog_->displaywidthUnit->setCurrentItem(igp.lyxwidth.unit()); + dialog_->displayheightUnit->setCurrentItem(igp.lyxheight.unit()); + + // Update the rotate angle + dialog_->angle->setText(tostr(igp.rotateAngle).c_str()); + + if (igp.rotateOrigin.empty()) { + dialog_->origin->setCurrentItem(0); + } else { + //fl_set_choice_text(special_->choice_origin,igp.rotateOrigin.c_str()); } - - dialog_->heightCO->setCurrentItem(item); - - // FIXME: scale ??? - - dialog_->widthED->setText(numtostr(igp.widthSize).c_str()); - dialog_->heightED->setText(numtostr(igp.heightSize).c_str()); - dialog_->rotateED->setText(numtostr(igp.rotateAngle).c_str()); - - dialog_->subcaptionED->setText(igp.subcaptionText.c_str()); + + + // latex options + dialog_->latexoptions->setText(igp.special.c_str()); } void QGraphics::apply() { + // Create the parameters structure and fill the data from the dialog. InsetGraphicsParams & igp = controller().params(); - - if (dialog_->colorRB->isChecked()) - igp.display = InsetGraphicsParams::COLOR; - else if (dialog_->grayscaleRB->isChecked()) - igp.display = InsetGraphicsParams::GRAYSCALE; - else if (dialog_->monochromeRB->isChecked()) - igp.display = InsetGraphicsParams::MONOCHROME; - else - igp.display = InsetGraphicsParams::NONE; - - igp.subcaptionText = dialog_->subcaptionED->text().latin1(); - igp.subcaption = !igp.subcaptionText.empty(); - - switch (dialog_->widthCO->currentItem()) { - case 0: igp.widthResize = InsetGraphicsParams::CM; break; - case 1: igp.widthResize = InsetGraphicsParams::INCH; break; - case 2: igp.widthResize = InsetGraphicsParams::PERCENT_PAGE; break; - case 3: igp.widthResize = InsetGraphicsParams::PERCENT_COLUMN; break; - default:; - } - if (string(dialog_->widthED->text().latin1()).empty()) { - igp.widthResize = InsetGraphicsParams::DEFAULT_SIZE; - igp.widthSize = 0.0; - } else { - igp.widthSize = strToDbl(dialog_->widthED->text().latin1()); + + igp.filename = dialog_->filename->text(); + + if (!controller().bbChanged) // different to the original one? + igp.bb = string(); // don't write anything + else { + string bb; + string lbX(dialog_->lbX->text()); + string lbY(dialog_->lbY->text()); + string rtX(dialog_->rtX->text()); + string rtY(dialog_->rtY->text()); + + if (lbX.empty()) + bb = "0 "; + else + bb = lbX + " "; + if (lbY.empty()) + bb += "0 "; + else + bb += (lbY + " "); + if (rtX.empty()) + bb += "0 "; + else + bb += (rtX + " "); + if (rtY.empty()) + bb += "0 "; + else + bb += (rtY + " "); + + igp.bb = bb; } - - switch (dialog_->heightCO->currentItem()) { - case 0: igp.heightResize = InsetGraphicsParams::CM; break; - case 1: igp.heightResize = InsetGraphicsParams::INCH; break; - case 2: igp.heightResize = InsetGraphicsParams::PERCENT_PAGE; break; + + igp.draft = dialog_->draft->isChecked(); + + igp.clip = dialog_->clip->isChecked(); + + igp.subcaption = dialog_->subfigure->isChecked(); + + igp.subcaptionText = dialog_->subcaption->text(); + + switch(dialog_->show->currentItem()) { + case 0: igp.display = InsetGraphicsParams::MONOCHROME; break; + case 1: igp.display = InsetGraphicsParams::GRAYSCALE; break; + case 2: igp.display = InsetGraphicsParams::COLOR; break; + case 3: igp.display = InsetGraphicsParams::NONE; break; default:; } - if (string(dialog_->heightED->text().latin1()).empty()) { - igp.heightResize = InsetGraphicsParams::DEFAULT_SIZE; - igp.heightSize = 0.0; - } else { - igp.heightSize = strToDbl(dialog_->heightED->text().latin1()); - } + + if (dialog_->defaultRB->isChecked()) + igp.size_type = InsetGraphicsParams::DEFAULT_SIZE; + else if (dialog_->customRB->isChecked()) + igp.size_type = InsetGraphicsParams::WH; + else + igp.size_type = InsetGraphicsParams::SCALE; + + string value(dialog_->width->text()); + igp.width = LyXLength(strToDbl(value), dialog_->widthUnit->currentLengthItem()); + + value = string(dialog_->height->text()); + igp.height = LyXLength(strToDbl(value), dialog_->heightUnit->currentLengthItem()); + + value = string(dialog_->displaywidth->text()); + igp.lyxwidth = LyXLength(strToDbl(value), dialog_->displaywidthUnit->currentLengthItem()); - // FIXME: scale ??? + value = string(dialog_->displayheight->text()); + igp.lyxheight = LyXLength(strToDbl(value), dialog_->displayheightUnit->currentLengthItem()); - igp.rotateAngle = strToDbl(dialog_->rotateED->text().latin1()); + igp.scale = strToInt(string(dialog_->scale->text())); - igp.filename = dialog_->filenameED->text().latin1(); + igp.keepAspectRatio = dialog_->aspectratio->isChecked(); + + igp.rotateAngle = strToDbl(string(dialog_->angle->text())); + + while (igp.rotateAngle < 0.0 || igp.rotateAngle > 360.0) { + if (igp.rotateAngle < 0.0) { + igp.rotateAngle += 360.0; + } else if (igp.rotateAngle > 360.0) { + igp.rotateAngle -= 360.0; + } + } + + if ((dialog_->origin->currentItem()) > 0) + igp.rotateOrigin = dialog_->origin->currentText(); + else + igp.rotateOrigin = string(); + + igp.special = dialog_->latexoptions->text(); + + igp.testInvariant(); } void QGraphics::browse() { - string const & name = controller().Browse(dialog_->filenameED->text().latin1()); + string const & name = controller().Browse(dialog_->filename->text().latin1()); if (!name.empty()) - dialog_->filenameED->setText(name.c_str()); + dialog_->filename->setText(name.c_str()); +} + +void QGraphics::get() +{ + string const filename(dialog_->filename->text()); + if (!filename.empty()) { + string const fileWithAbsPath = MakeAbsPath(filename, OnlyPath(filename)); + string bb = controller().readBB(fileWithAbsPath); + if (!bb.empty()) { + dialog_->lbX->setText(token(bb,' ',0).c_str()); + dialog_->lbY->setText(token(bb,' ',1).c_str()); + dialog_->rtX->setText(token(bb,' ',2).c_str()); + dialog_->rtY->setText(token(bb,' ',3).c_str()); + } + controller().bbChanged = false; + } } bool QGraphics::isValid() { - return !string(dialog_->filenameED->text().latin1()).empty(); + return !string(dialog_->filename->text().latin1()).empty(); } + + diff --git a/src/frontends/qt2/QGraphics.h b/src/frontends/qt2/QGraphics.h index 75253a7de8..11c3dffa48 100644 --- a/src/frontends/qt2/QGraphics.h +++ b/src/frontends/qt2/QGraphics.h @@ -43,6 +43,14 @@ private: /// browse for a file void browse(); + /// get bounding box from file + void get(); }; #endif // QGRAPHICS_H + + + + + + diff --git a/src/frontends/qt2/QGraphicsDialog.C b/src/frontends/qt2/QGraphicsDialog.C index 51fc9510c7..13fa42f744 100644 --- a/src/frontends/qt2/QGraphicsDialog.C +++ b/src/frontends/qt2/QGraphicsDialog.C @@ -28,9 +28,11 @@ QGraphicsDialog::QGraphicsDialog(QGraphics * form) connect(okPB, SIGNAL(clicked()), form, SLOT(slotOK())); connect(applyPB, SIGNAL(clicked()), - form, SLOT(slotOK())); + form, SLOT(slotApply())); connect(closePB, SIGNAL(clicked()), form, SLOT(slotClose())); + connect(restorePB, SIGNAL(clicked()), + form, SLOT(slotRestore())); } @@ -47,7 +49,13 @@ void QGraphicsDialog::closeEvent(QCloseEvent * e) } -void QGraphicsDialog::browseClicked() +void QGraphicsDialog::browse_clicked() { form_->browse(); } + +void QGraphicsDialog::get_clicked() +{ + form_->get(); +} + diff --git a/src/frontends/qt2/QGraphicsDialog.h b/src/frontends/qt2/QGraphicsDialog.h index 1135c7fe19..671f336087 100644 --- a/src/frontends/qt2/QGraphicsDialog.h +++ b/src/frontends/qt2/QGraphicsDialog.h @@ -23,7 +23,8 @@ public: protected slots: virtual void change_adaptor(); - virtual void browseClicked(); + virtual void browse_clicked(); + virtual void get_clicked(); protected: virtual void closeEvent(QCloseEvent * e); diff --git a/src/frontends/qt2/lengthcombo.C b/src/frontends/qt2/lengthcombo.C index 7b300eb952..736a5eb056 100644 --- a/src/frontends/qt2/lengthcombo.C +++ b/src/frontends/qt2/lengthcombo.C @@ -16,21 +16,21 @@ LengthCombo::LengthCombo(QWidget * parent, char * name) : QComboBox(parent, name) { - insertItem(_("Centimetres")); - insertItem(_("Inches")); - insertItem(_("Points")); - insertItem(_("Millimetres")); - insertItem(_("Picas")); - insertItem(_("ex units")); - insertItem(_("em units")); - insertItem(_("Scaled points")); - insertItem(_("Big/PS points")); - insertItem(_("Didot points")); - insertItem(_("Cicero points")); - insertItem(_("Mathematical units")); - insertItem(_("Percent of page")); - insertItem(_("Percent of column")); - insertItem(_("Percent of line width")); + insertItem(_("cm")); + insertItem(_("in")); + insertItem(_("pt")); + insertItem(_("mm")); + insertItem(_("pc")); + insertItem(_("ex")); + insertItem(_("em")); + insertItem(_("sp")); + insertItem(_("bp")); + insertItem(_("dd")); + insertItem(_("cc")); + insertItem(_("mu")); + insertItem(_("%p")); + insertItem(_("%c")); + insertItem(_("%l")); connect(this, SIGNAL(activated(int)), this, SLOT(has_activated(int))); diff --git a/src/frontends/qt2/ui/QAboutDialog.ui b/src/frontends/qt2/ui/QAboutDialog.ui index 0095bd9090..4b1ad1c4e5 100644 --- a/src/frontends/qt2/ui/QAboutDialog.ui +++ b/src/frontends/qt2/ui/QAboutDialog.ui @@ -13,8 +13,8 @@ 0 0 - 444 - 454 + 331 + 232 @@ -79,11 +79,14 @@ alignment - AlignCenter + WordBreak|AlignCenter hAlign + + wordwrap + @@ -112,14 +115,14 @@ name creditsTV - - textFormat - RichText - text + + textFormat + RichText + @@ -133,7 +136,7 @@ title Copyright - + margin 11 @@ -142,147 +145,75 @@ spacing 6 - - QLabel - - name - copyrightLA - - - frameShape - Box - - - frameShadow - Sunken - - - margin - 6 - - - text - Copyright notice goes here - - - alignment - AlignCenter - - - hAlign - - - - QLabel - - name - disclaimerLA - - - sizePolicy - - 5 - 5 - - - - minimumSize - - 0 - 0 - - - - frameShape - Box - - - frameShadow - Sunken - - - margin - 6 - - - text - Warranty goes here - - - alignment - WordBreak|AlignCenter - - - hAlign - - - wordwrap - - - - QLabel + + QTextView name - licenseLA - - - sizePolicy - - 5 - 5 - - - - frameShape - Box - - - frameShadow - Sunken - - - margin - 6 - - - text - GPL goes here - - - alignment - WordBreak|AlignCenter - - - hAlign - - - wordwrap + copyright - + - QPushButton + QLayoutWidget name - closePB - - - text - &Close - - - sizePolicy - - 0 - 0 - - - - default - true + Layout1 + + + margin + 0 + + + spacing + 6 + + + + name + Spacer1 + + + orientation + Horizontal + + + sizeType + Expanding + + + sizeHint + + 20 + 20 + + + + + QPushButton + + name + closePB + + + sizePolicy + + 0 + 0 + + + + text + &Close + + + default + true + + + diff --git a/src/frontends/qt2/ui/QFloatDialog.ui b/src/frontends/qt2/ui/QFloatDialog.ui index 03ea4bf658..7bce5b921b 100644 --- a/src/frontends/qt2/ui/QFloatDialog.ui +++ b/src/frontends/qt2/ui/QFloatDialog.ui @@ -197,6 +197,37 @@ placement setDisabled(bool) + + top + toggled(bool) + QFloatDialogBase + change_adaptor() + + + page + toggled(bool) + QFloatDialogBase + change_adaptor() + + + bottom + toggled(bool) + QFloatDialogBase + change_adaptor() + + + here + stateChanged(int) + QFloatDialogBase + change_adaptor() + + + forcehere + toggled(bool) + QFloatDialogBase + change_adaptor() + + change_adaptor() top diff --git a/src/frontends/qt2/ui/QGraphicsDialog.ui b/src/frontends/qt2/ui/QGraphicsDialog.ui index 7365c20ca5..9060c6ea0d 100644 --- a/src/frontends/qt2/ui/QGraphicsDialog.ui +++ b/src/frontends/qt2/ui/QGraphicsDialog.ui @@ -13,15 +13,15 @@ 0 0 - 372 - 310 + 369 + 292 caption - Graphics + Form1 - + margin 11 @@ -30,471 +30,1320 @@ spacing 6 - - QLayoutWidget - - name - Layout75 - - - - margin - 0 - - - spacing - 6 - - - QLineEdit - - name - filenameED - - - toolTip - File name to include - - - - QPushButton - - name - browsePB - - - text - &Browse ... - - - toolTip - Select a file - - - - - - QLabel - - name - filenameLA - - - text - &Filename: - - - buddy - filenameED - - - toolTip - - - - - QButtonGroup - - name - displayBG - - - sizePolicy - - 5 - 7 - - - - title - LyX display - - - - margin - 11 - - - spacing - 6 - - - QRadioButton - - name - monochromeRB - - - text - &Monochrome - - - toolTip - FIXME - - - - QRadioButton - - name - grayscaleRB - - - text - &Grayscale - - - toolTip - FIXME - - - - QRadioButton - - name - colorRB - - - text - &Color - - - toolTip - FIXME - - - - QRadioButton - - name - dontRB - - - text - &Don't display - - - toolTip - FIXME - - - - - - QGroupBox + + QTabWidget name - parametersGB + TabWidget - - title - Graphics parameters - - - - margin - 11 - + + QWidget - spacing - 6 + name + tab - - QLabel - - name - widthLA - - - text - &Width: - - - buddy - widthED - - - toolTip - Width of graphics - - - - QLabel - - name - rotateLA - - - text - &Rotation: - - - buddy - rotateED - - - toolTip - FIXME - - - - QLineEdit + + title + File + + - name - widthED + margin + 11 - - toolTip - Width of graphics - - - - QLayoutWidget - name - Layout74 + spacing + 6 - - - margin - 0 - + + QLayoutWidget - spacing - 6 + name + Layout2 - - QCheckBox + - name - scaleCB + margin + 0 - text - Sca&le Height + spacing + 6 - - toolTip - FIXME - - - - - name - Spacer11_2 + + QLabel + + name + filenameL + + + text + &File: + + + buddy + filename + + + + QLineEdit + + name + filename + + + toolTip + File name to include + + + + QPushButton + + name + browsePB + + + text + &Browse ... + + + toolTip + Select a file + + + + + + QGroupBox + + name + displayGB + + + title + Screen Options + + + + margin + 11 - orientation - Horizontal + spacing + 6 + + QLabel + + name + TextLabel7 + + + text + Width + + + + QLayoutWidget + + name + Layout5 + + + + margin + 0 + + + spacing + 6 + + + QComboBox + + + text + Monochrome + + + + + text + Grayscale + + + + + text + Color + + + + + text + Do not display + + + + name + show + + + + + name + Spacer23 + + + orientation + Horizontal + + + sizeType + Expanding + + + sizeHint + + 20 + 20 + + + + + + + QLabel + + name + displaysizeL + + + text + Si&ze: + + + buddy + displaywidth + + + + QLabel + + name + displayshowL + + + text + S&how: + + + buddy + show + + + + QLayoutWidget + + name + Layout16 + + + + margin + 0 + + + spacing + 6 + + + QLineEdit + + name + displaywidth + + + enabled + true + + + + LengthCombo + + name + displaywidthUnit + + + + + + QLayoutWidget + + name + Layout17 + + + + margin + 0 + + + spacing + 6 + + + QLineEdit + + name + displayheight + + + enabled + true + + + + LengthCombo + + name + displayheightUnit + + + + + + QLabel + + name + TextLabel7_2 + + + text + Height + + + + + + QLayoutWidget + + name + Layout18 + + - sizeType - Expanding + margin + 0 - - sizeHint - - 20 - 20 - + + spacing + 6 - - - - - QLineEdit + + QCheckBox + + name + draft + + + text + &Draft mode + + + toolTip + draft mode + + + + + name + Spacer8 + + + orientation + Horizontal + + + sizeType + Expanding + + + sizeHint + + 20 + 20 + + + + + + + + + QWidget + + name + tab + + + title + Size + + - name - rotateED + margin + 11 - - toolTip - FIXME + + spacing + 6 - - - QComboBox - - - text - cm + + QButtonGroup + + name + sizeBG - - - - text - inches + + frameShape + Box - - - - text - % of page + + title + - + + + margin + 11 + + + spacing + 6 + + + QRadioButton + + name + scaleRB + + + text + &Scale + + + + QRadioButton + + name + defaultRB + + + text + &Default + + + checked + true + + + + QRadioButton + + name + customRB + + + text + &Custom + + + + QLayoutWidget + + name + Layout7 + + + + margin + 0 + + + spacing + 6 + + + QLineEdit + + name + scale + + + enabled + false + + + + QLabel + + name + TextLabel4_2 + + + enabled + false + + + text + % + + + + + name + Spacer12 + + + orientation + Horizontal + + + sizeType + Expanding + + + sizeHint + + 20 + 20 + + + + + + + QLayoutWidget + + name + Layout8 + + + + margin + 0 + + + spacing + 6 + + + QCheckBox + + name + aspectratio + + + enabled + false + + + text + Keep aspect&ratio + + + + + name + Spacer13 + + + orientation + Horizontal + + + sizeType + Expanding + + + sizeHint + + 20 + 20 + + + + + + + QLabel + + name + sizewidthL + + + enabled + false + + + text + Width + + + + QLabel + + name + sizeheightL + + + enabled + false + + + text + Height + + + + QLayoutWidget + + name + Layout19 + + + + margin + 0 + + + spacing + 6 + + + QLineEdit + + name + height + + + enabled + false + + + + LengthCombo + + name + heightUnit + + + enabled + false + + + + + + QLayoutWidget + + name + Layout18 + + + + margin + 0 + + + spacing + 6 + + + QLineEdit + + name + width + + + enabled + false + + + + LengthCombo + + name + widthUnit + + + enabled + false + + + + + + + + + + QWidget + + name + tab + + + title + EPS Options + + - name - heightCO + margin + 11 - sizePolicy - - 3 - 0 - - - - toolTip - Height units + spacing + 6 - - - QComboBox - - - text - cm + + QGroupBox + + name + bbGB - - - - text - inches + + enabled + true - - - - text - % of page + + title + Bounding box - - - - text - % of column + + + margin + 11 + + + spacing + 6 + + + QLabel + + name + lbL + + + text + Left &bottom: + + + buddy + lbX + + + + QLabel + + name + rtL + + + text + Right &top: + + + buddy + rtX + + + + QLabel + + name + yL + + + text + Y + + + + QLabel + + name + xL + + + text + X + + + + QLayoutWidget + + name + Layout25 + + + + margin + 0 + + + spacing + 6 + + + QLineEdit + + name + lbX + + + + QComboBox + + + text + pt + + + + + text + cm + + + + + text + in + + + + name + lbXunit + + + + + + QLayoutWidget + + name + Layout25_2 + + + + margin + 0 + + + spacing + 6 + + + QLineEdit + + name + rtX + + + + QComboBox + + + text + pt + + + + + text + cm + + + + + text + in + + + + name + rtXunit + + + + + + QLayoutWidget + + name + Layout25_2_2 + + + + margin + 0 + + + spacing + 6 + + + QLineEdit + + name + rtY + + + + QComboBox + + + text + pt + + + + + text + cm + + + + + text + in + + + + name + rtYXunit + + + + + + QLayoutWidget + + name + Layout25_3 + + + + margin + 0 + + + spacing + 6 + + + QLineEdit + + name + lbY + + + + QComboBox + + + text + pt + + + + + text + cm + + + + + text + in + + + + name + lbYunit + + + + + + QLayoutWidget + + name + Layout16 + + + + margin + 0 + + + spacing + 6 + + + + name + Spacer6 + + + orientation + Horizontal + + + sizeType + Expanding + + + sizeHint + + 20 + 20 + + + + + QPushButton + + name + getPB + + + text + &Get + + + toolTip + Get bounding box from file + + + + + + + + QLayoutWidget + + name + Layout17 - - - name - widthCO - - - sizePolicy - - 3 - 0 - - - - toolTip - Width units - - - - QLineEdit - - name - heightED - - - toolTip - Height of graphics - - - - QLabel - - name - heightLA - + + + margin + 0 + + + spacing + 6 + + + QCheckBox + + name + clip + + + text + &Clip to bounding box + + + toolTip + clip to bounding box + + + + + name + Spacer7 + + + orientation + Horizontal + + + sizeType + Expanding + + + sizeHint + + 20 + 20 + + + + + + + + + QWidget + + name + tab + + + title + Extra + + - text - &Height: - - - buddy - heightED - - - toolTip - Height of graphics + margin + 11 - - - QLayoutWidget - name - Layout76 + spacing + 6 - + + QGroupBox - margin - 0 + name + rotateGB - spacing - 6 + title + Rotation - - QLabel + - name - subcaptionLA + margin + 11 - text - &Subcaption: + spacing + 6 - - buddy - subcaptionED + + QLabel + + name + angleL + + + text + &Angle: + + + buddy + angle + + + + QLineEdit + + name + angle + + + + QLabel + + name + originL + + + text + &Origin: + + + buddy + origin + + + + QComboBox + + + text + default + + + + + text + leftTop + + + + + text + leftBottom + + + + + text + leftBaseline + + + + + text + center + + + + + text + centerTop + + + + + text + centerBottom + + + + + text + centerBaseline + + + + + text + rightTop + + + + + text + rightBottom + + + + + text + rightBaseline + + + + + text + referencePoint + + + + name + origin + + + + + + QGroupBox + + name + latexoptionsGB + + + title + LaTeX options + + + + margin + 11 - - toolTip - The sub-caption of the figure + + spacing + 6 - - - QLineEdit + + QLineEdit + + name + latexoptions + + + + + + QLayoutWidget + + name + Layout6 + + - name - subcaptionED + margin + 0 - - toolTip - The sub-caption for the figure + + spacing + 6 - - - - - - name - Spacer104 - - - orientation - Vertical - - - sizeType - Expanding - - - sizeHint - - 20 - 20 - - - - + + QCheckBox + + name + subfigure + + + text + Su&bfigure + + + + QLineEdit + + name + subcaption + + + enabled + false + + + toolTip + The sub-caption for the figure + + + + + + + name + Spacer26 + + + orientation + Vertical + + + sizeType + Expanding + + + sizeHint + + 20 + 20 + + + + + - + QLayoutWidget name - Layout13 + Layout1 @@ -505,6 +1354,21 @@ spacing 6 + + QPushButton + + name + restorePB + + + text + &Restore + + + default + true + + name @@ -564,103 +1428,316 @@ text - Close + &Close - + + + + LengthCombo +
lengthcombo.h
+ + -1 + -1 + + 0 + + 5 + 5 + + image0 + selectionChanged(LyXLength::UNIT) +
+
+ + + image0 + 789c6dd2c10ac2300c00d07bbf2234b7229d1be245fc04c5a3201e4615f430059d0711ff5ddb2e6bb236ec90eed134cb5a19d8ef36602af5ecdbfeeac05dda0798d3abebde87e3faa374d3807fa0d633a52d38d8de6f679fe33fc776e196f53cd010188256a3600a292882096246517815ca99884606e18044a3a40d91824820924265a7923a2e8bcd05f33db1173e002913175f2a6be6d3294871a2d95fa00e8a94ee017b69d339d90df1e77c57ea072ede6758 + + - grayscaleRB + scaleRB + toggled(bool) + scale + setEnabled(bool) + + + scaleRB + toggled(bool) + TextLabel4_2 + setEnabled(bool) + + + customRB + toggled(bool) + width + setEnabled(bool) + + + customRB toggled(bool) + height + setEnabled(bool) + + + customRB + toggled(bool) + sizewidthL + setEnabled(bool) + + + customRB + toggled(bool) + sizeheightL + setEnabled(bool) + + + customRB + toggled(bool) + aspectratio + setEnabled(bool) + + + subfigure + toggled(bool) + subcaption + setEnabled(bool) + + + browsePB + clicked() QGraphicsDialogBase - change_adaptor() + browse_clicked() + + + getPB + clicked() + QGraphicsDialogBase + get_clicked() + + + customRB + toggled(bool) + widthUnit + setEnabled(bool) - colorRB + customRB toggled(bool) + heightUnit + setEnabled(bool) + + + filename + textChanged(const QString&) QGraphicsDialogBase change_adaptor() - filenameED + displaywidth textChanged(const QString&) QGraphicsDialogBase change_adaptor() - browsePB - clicked() + displayheight + textChanged(const QString&) QGraphicsDialogBase - browseClicked() + change_adaptor() - monochromeRB - toggled(bool) + displaywidthUnit + selectionChanged(LyXLength::UNIT) QGraphicsDialogBase change_adaptor() - dontRB - toggled(bool) + displayheightUnit + selectionChanged(LyXLength::UNIT) QGraphicsDialogBase change_adaptor() - heightCO - highlighted(int) + subcaption + textChanged(const QString&) + QGraphicsDialogBase + change_adaptor() + + + subfigure + stateChanged(int) + QGraphicsDialogBase + change_adaptor() + + + defaultRB + stateChanged(int) + QGraphicsDialogBase + change_adaptor() + + + scaleRB + stateChanged(int) + QGraphicsDialogBase + change_adaptor() + + + customRB + stateChanged(int) QGraphicsDialogBase change_adaptor() - heightED + angle textChanged(const QString&) QGraphicsDialogBase change_adaptor() - widthED + latexoptions textChanged(const QString&) QGraphicsDialogBase change_adaptor() - widthCO - highlighted(int) + clip + stateChanged(int) + QGraphicsDialogBase + change_adaptor() + + + draft + stateChanged(int) + QGraphicsDialogBase + change_adaptor() + + + lbX + textChanged(const QString&) + QGraphicsDialogBase + change_adaptor() + + + lbY + returnPressed() + QGraphicsDialogBase + change_adaptor() + + + rtX + returnPressed() + QGraphicsDialogBase + change_adaptor() + + + rtY + returnPressed() + QGraphicsDialogBase + change_adaptor() + + + scale + textChanged(const QString&) QGraphicsDialogBase change_adaptor() - rotateED + width textChanged(const QString&) QGraphicsDialogBase change_adaptor() - subcaptionED + widthUnit + selectionChanged(LyXLength::UNIT) + QGraphicsDialogBase + change_adaptor() + + + height textChanged(const QString&) QGraphicsDialogBase change_adaptor() - browseClicked() - change_adaptor() + + heightUnit + selectionChanged(LyXLength::UNIT) + QGraphicsDialogBase + change_adaptor() + + + aspectratio + stateChanged(int) + QGraphicsDialogBase + change_adaptor() + + + show + highlighted(int) + QGraphicsDialogBase + change_adaptor() + + + lbXunit + highlighted(int) + QGraphicsDialogBase + change_adaptor() + + + lbYunit + highlighted(int) + QGraphicsDialogBase + change_adaptor() + + + rtXunit + highlighted(int) + QGraphicsDialogBase + change_adaptor() + + + rtYXunit + highlighted(int) + QGraphicsDialogBase + change_adaptor() + + + origin + highlighted(int) + QGraphicsDialogBase + change_adaptor() + + browse_clicked() + get_clicked() + change_adaptor() - filenameED + TabWidget + filename browsePB - widthED - widthCO - heightED - heightCO - scaleCB - rotateED - subcaptionED - monochromeRB - grayscaleRB - colorRB - dontRB + show + displaywidth + displayheight + subfigure + subcaption + defaultRB + scale + customRB + width + height + aspectratio + lbX + clip + draft + getPB + angle + origin + latexoptions + restorePB okPB applyPB closePB -- 2.39.2