* Read the file COPYING
*
* \author John Levon <moz@compsoc.man.ac.uk>
+ * \author Edwin Leuven <leuven@fee.uva.nl>
*/
#include <config.h>
#pragma implementation
#endif
+#include <qlineedit.h>
+#include <qpushbutton.h>
+#include <qcheckbox.h>
+#include <qradiobutton.h>
+#include <qcombobox.h>
+#include <qgroupbox.h>
+#include <qbuttongroup.h>
+#include <qlabel.h>
+
+#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 <qlineedit.h>
-#include <qpushbutton.h>
-#include <qcheckbox.h>
-#include <qradiobutton.h>
-#include <qcombobox.h>
typedef Qt2CB<ControlGraphics, Qt2DB<QGraphicsDialog> > base_class;
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();
}
+
+
<rect>
<x>0</x>
<y>0</y>
- <width>372</width>
- <height>310</height>
+ <width>369</width>
+ <height>292</height>
</rect>
</property>
<property stdset="1">
<name>caption</name>
- <string>Graphics</string>
+ <string>Form1</string>
</property>
- <grid>
+ <vbox>
<property stdset="1">
<name>margin</name>
<number>11</number>
<name>spacing</name>
<number>6</number>
</property>
- <widget row="1" column="0" rowspan="1" colspan="2" >
- <class>QLayoutWidget</class>
- <property stdset="1">
- <name>name</name>
- <cstring>Layout75</cstring>
- </property>
- <hbox>
- <property stdset="1">
- <name>margin</name>
- <number>0</number>
- </property>
- <property stdset="1">
- <name>spacing</name>
- <number>6</number>
- </property>
- <widget>
- <class>QLineEdit</class>
- <property stdset="1">
- <name>name</name>
- <cstring>filenameED</cstring>
- </property>
- <property>
- <name>toolTip</name>
- <string>File name to include</string>
- </property>
- </widget>
- <widget>
- <class>QPushButton</class>
- <property stdset="1">
- <name>name</name>
- <cstring>browsePB</cstring>
- </property>
- <property stdset="1">
- <name>text</name>
- <string>&Browse ...</string>
- </property>
- <property>
- <name>toolTip</name>
- <string>Select a file</string>
- </property>
- </widget>
- </hbox>
- </widget>
- <widget row="0" column="0" >
- <class>QLabel</class>
- <property stdset="1">
- <name>name</name>
- <cstring>filenameLA</cstring>
- </property>
- <property stdset="1">
- <name>text</name>
- <string>&Filename:</string>
- </property>
- <property>
- <name>buddy</name>
- <cstring>filenameED</cstring>
- </property>
- <property>
- <name>toolTip</name>
- <string></string>
- </property>
- </widget>
- <widget row="2" column="1" >
- <class>QButtonGroup</class>
- <property stdset="1">
- <name>name</name>
- <cstring>displayBG</cstring>
- </property>
- <property stdset="1">
- <name>sizePolicy</name>
- <sizepolicy>
- <hsizetype>5</hsizetype>
- <vsizetype>7</vsizetype>
- </sizepolicy>
- </property>
- <property stdset="1">
- <name>title</name>
- <string>LyX display</string>
- </property>
- <vbox>
- <property stdset="1">
- <name>margin</name>
- <number>11</number>
- </property>
- <property stdset="1">
- <name>spacing</name>
- <number>6</number>
- </property>
- <widget>
- <class>QRadioButton</class>
- <property stdset="1">
- <name>name</name>
- <cstring>monochromeRB</cstring>
- </property>
- <property stdset="1">
- <name>text</name>
- <string>&Monochrome</string>
- </property>
- <property>
- <name>toolTip</name>
- <string>FIXME</string>
- </property>
- </widget>
- <widget>
- <class>QRadioButton</class>
- <property stdset="1">
- <name>name</name>
- <cstring>grayscaleRB</cstring>
- </property>
- <property stdset="1">
- <name>text</name>
- <string>&Grayscale</string>
- </property>
- <property>
- <name>toolTip</name>
- <string>FIXME</string>
- </property>
- </widget>
- <widget>
- <class>QRadioButton</class>
- <property stdset="1">
- <name>name</name>
- <cstring>colorRB</cstring>
- </property>
- <property stdset="1">
- <name>text</name>
- <string>&Color</string>
- </property>
- <property>
- <name>toolTip</name>
- <string>FIXME</string>
- </property>
- </widget>
- <widget>
- <class>QRadioButton</class>
- <property stdset="1">
- <name>name</name>
- <cstring>dontRB</cstring>
- </property>
- <property stdset="1">
- <name>text</name>
- <string>&Don't display</string>
- </property>
- <property>
- <name>toolTip</name>
- <string>FIXME</string>
- </property>
- </widget>
- </vbox>
- </widget>
- <widget row="2" column="0" >
- <class>QGroupBox</class>
+ <widget>
+ <class>QTabWidget</class>
<property stdset="1">
<name>name</name>
- <cstring>parametersGB</cstring>
+ <cstring>TabWidget</cstring>
</property>
- <property stdset="1">
- <name>title</name>
- <string>Graphics parameters</string>
- </property>
- <grid>
- <property stdset="1">
- <name>margin</name>
- <number>11</number>
- </property>
+ <widget>
+ <class>QWidget</class>
<property stdset="1">
- <name>spacing</name>
- <number>6</number>
+ <name>name</name>
+ <cstring>tab</cstring>
</property>
- <widget row="0" column="0" >
- <class>QLabel</class>
- <property stdset="1">
- <name>name</name>
- <cstring>widthLA</cstring>
- </property>
- <property stdset="1">
- <name>text</name>
- <string>&Width:</string>
- </property>
- <property>
- <name>buddy</name>
- <cstring>widthED</cstring>
- </property>
- <property>
- <name>toolTip</name>
- <string>Width of graphics</string>
- </property>
- </widget>
- <widget row="3" column="0" >
- <class>QLabel</class>
- <property stdset="1">
- <name>name</name>
- <cstring>rotateLA</cstring>
- </property>
- <property stdset="1">
- <name>text</name>
- <string>&Rotation:</string>
- </property>
- <property>
- <name>buddy</name>
- <cstring>rotateED</cstring>
- </property>
- <property>
- <name>toolTip</name>
- <string>FIXME</string>
- </property>
- </widget>
- <widget row="0" column="1" >
- <class>QLineEdit</class>
+ <attribute>
+ <name>title</name>
+ <string>File</string>
+ </attribute>
+ <vbox>
<property stdset="1">
- <name>name</name>
- <cstring>widthED</cstring>
+ <name>margin</name>
+ <number>11</number>
</property>
- <property>
- <name>toolTip</name>
- <string>Width of graphics</string>
- </property>
- </widget>
- <widget row="2" column="1" rowspan="1" colspan="2" >
- <class>QLayoutWidget</class>
<property stdset="1">
- <name>name</name>
- <cstring>Layout74</cstring>
+ <name>spacing</name>
+ <number>6</number>
</property>
- <hbox>
- <property stdset="1">
- <name>margin</name>
- <number>0</number>
- </property>
+ <widget>
+ <class>QLayoutWidget</class>
<property stdset="1">
- <name>spacing</name>
- <number>6</number>
+ <name>name</name>
+ <cstring>Layout2</cstring>
</property>
- <widget>
- <class>QCheckBox</class>
+ <hbox>
<property stdset="1">
- <name>name</name>
- <cstring>scaleCB</cstring>
+ <name>margin</name>
+ <number>0</number>
</property>
<property stdset="1">
- <name>text</name>
- <string>Sca&le Height</string>
+ <name>spacing</name>
+ <number>6</number>
</property>
- <property>
- <name>toolTip</name>
- <string>FIXME</string>
- </property>
- </widget>
- <spacer>
- <property>
- <name>name</name>
- <cstring>Spacer11_2</cstring>
+ <widget>
+ <class>QLabel</class>
+ <property stdset="1">
+ <name>name</name>
+ <cstring>filenameL</cstring>
+ </property>
+ <property stdset="1">
+ <name>text</name>
+ <string>&File:</string>
+ </property>
+ <property>
+ <name>buddy</name>
+ <cstring>filename</cstring>
+ </property>
+ </widget>
+ <widget>
+ <class>QLineEdit</class>
+ <property stdset="1">
+ <name>name</name>
+ <cstring>filename</cstring>
+ </property>
+ <property>
+ <name>toolTip</name>
+ <string>File name to include</string>
+ </property>
+ </widget>
+ <widget>
+ <class>QPushButton</class>
+ <property stdset="1">
+ <name>name</name>
+ <cstring>browsePB</cstring>
+ </property>
+ <property stdset="1">
+ <name>text</name>
+ <string>&Browse ...</string>
+ </property>
+ <property>
+ <name>toolTip</name>
+ <string>Select a file</string>
+ </property>
+ </widget>
+ </hbox>
+ </widget>
+ <widget>
+ <class>QGroupBox</class>
+ <property stdset="1">
+ <name>name</name>
+ <cstring>displayGB</cstring>
+ </property>
+ <property stdset="1">
+ <name>title</name>
+ <string>Screen Options</string>
+ </property>
+ <grid>
+ <property stdset="1">
+ <name>margin</name>
+ <number>11</number>
</property>
<property stdset="1">
- <name>orientation</name>
- <enum>Horizontal</enum>
+ <name>spacing</name>
+ <number>6</number>
</property>
+ <widget row="1" column="1" >
+ <class>QLabel</class>
+ <property stdset="1">
+ <name>name</name>
+ <cstring>TextLabel7</cstring>
+ </property>
+ <property stdset="1">
+ <name>text</name>
+ <string>Width</string>
+ </property>
+ </widget>
+ <widget row="0" column="1" rowspan="1" colspan="2" >
+ <class>QLayoutWidget</class>
+ <property stdset="1">
+ <name>name</name>
+ <cstring>Layout5</cstring>
+ </property>
+ <hbox>
+ <property stdset="1">
+ <name>margin</name>
+ <number>0</number>
+ </property>
+ <property stdset="1">
+ <name>spacing</name>
+ <number>6</number>
+ </property>
+ <widget>
+ <class>QComboBox</class>
+ <item>
+ <property>
+ <name>text</name>
+ <string>Monochrome</string>
+ </property>
+ </item>
+ <item>
+ <property>
+ <name>text</name>
+ <string>Grayscale</string>
+ </property>
+ </item>
+ <item>
+ <property>
+ <name>text</name>
+ <string>Color</string>
+ </property>
+ </item>
+ <item>
+ <property>
+ <name>text</name>
+ <string>Do not display</string>
+ </property>
+ </item>
+ <property stdset="1">
+ <name>name</name>
+ <cstring>show</cstring>
+ </property>
+ </widget>
+ <spacer>
+ <property>
+ <name>name</name>
+ <cstring>Spacer23</cstring>
+ </property>
+ <property stdset="1">
+ <name>orientation</name>
+ <enum>Horizontal</enum>
+ </property>
+ <property stdset="1">
+ <name>sizeType</name>
+ <enum>Expanding</enum>
+ </property>
+ <property>
+ <name>sizeHint</name>
+ <size>
+ <width>20</width>
+ <height>20</height>
+ </size>
+ </property>
+ </spacer>
+ </hbox>
+ </widget>
+ <widget row="2" column="0" >
+ <class>QLabel</class>
+ <property stdset="1">
+ <name>name</name>
+ <cstring>displaysizeL</cstring>
+ </property>
+ <property stdset="1">
+ <name>text</name>
+ <string>Si&ze:</string>
+ </property>
+ <property>
+ <name>buddy</name>
+ <cstring>displaywidth</cstring>
+ </property>
+ </widget>
+ <widget row="0" column="0" >
+ <class>QLabel</class>
+ <property stdset="1">
+ <name>name</name>
+ <cstring>displayshowL</cstring>
+ </property>
+ <property stdset="1">
+ <name>text</name>
+ <string>S&how:</string>
+ </property>
+ <property>
+ <name>buddy</name>
+ <cstring>show</cstring>
+ </property>
+ </widget>
+ <widget row="2" column="1" >
+ <class>QLayoutWidget</class>
+ <property stdset="1">
+ <name>name</name>
+ <cstring>Layout16</cstring>
+ </property>
+ <hbox>
+ <property stdset="1">
+ <name>margin</name>
+ <number>0</number>
+ </property>
+ <property stdset="1">
+ <name>spacing</name>
+ <number>6</number>
+ </property>
+ <widget>
+ <class>QLineEdit</class>
+ <property stdset="1">
+ <name>name</name>
+ <cstring>displaywidth</cstring>
+ </property>
+ <property stdset="1">
+ <name>enabled</name>
+ <bool>true</bool>
+ </property>
+ </widget>
+ <widget>
+ <class>LengthCombo</class>
+ <property stdset="1">
+ <name>name</name>
+ <cstring>displaywidthUnit</cstring>
+ </property>
+ </widget>
+ </hbox>
+ </widget>
+ <widget row="2" column="2" >
+ <class>QLayoutWidget</class>
+ <property stdset="1">
+ <name>name</name>
+ <cstring>Layout17</cstring>
+ </property>
+ <hbox>
+ <property stdset="1">
+ <name>margin</name>
+ <number>0</number>
+ </property>
+ <property stdset="1">
+ <name>spacing</name>
+ <number>6</number>
+ </property>
+ <widget>
+ <class>QLineEdit</class>
+ <property stdset="1">
+ <name>name</name>
+ <cstring>displayheight</cstring>
+ </property>
+ <property stdset="1">
+ <name>enabled</name>
+ <bool>true</bool>
+ </property>
+ </widget>
+ <widget>
+ <class>LengthCombo</class>
+ <property stdset="1">
+ <name>name</name>
+ <cstring>displayheightUnit</cstring>
+ </property>
+ </widget>
+ </hbox>
+ </widget>
+ <widget row="1" column="2" >
+ <class>QLabel</class>
+ <property stdset="1">
+ <name>name</name>
+ <cstring>TextLabel7_2</cstring>
+ </property>
+ <property stdset="1">
+ <name>text</name>
+ <string>Height</string>
+ </property>
+ </widget>
+ </grid>
+ </widget>
+ <widget>
+ <class>QLayoutWidget</class>
+ <property stdset="1">
+ <name>name</name>
+ <cstring>Layout18</cstring>
+ </property>
+ <hbox>
<property stdset="1">
- <name>sizeType</name>
- <enum>Expanding</enum>
+ <name>margin</name>
+ <number>0</number>
</property>
- <property>
- <name>sizeHint</name>
- <size>
- <width>20</width>
- <height>20</height>
- </size>
+ <property stdset="1">
+ <name>spacing</name>
+ <number>6</number>
</property>
- </spacer>
- </hbox>
- </widget>
- <widget row="3" column="1" rowspan="1" colspan="2" >
- <class>QLineEdit</class>
+ <widget>
+ <class>QCheckBox</class>
+ <property stdset="1">
+ <name>name</name>
+ <cstring>draft</cstring>
+ </property>
+ <property stdset="1">
+ <name>text</name>
+ <string>&Draft mode</string>
+ </property>
+ <property>
+ <name>toolTip</name>
+ <string>draft mode</string>
+ </property>
+ </widget>
+ <spacer>
+ <property>
+ <name>name</name>
+ <cstring>Spacer8</cstring>
+ </property>
+ <property stdset="1">
+ <name>orientation</name>
+ <enum>Horizontal</enum>
+ </property>
+ <property stdset="1">
+ <name>sizeType</name>
+ <enum>Expanding</enum>
+ </property>
+ <property>
+ <name>sizeHint</name>
+ <size>
+ <width>20</width>
+ <height>20</height>
+ </size>
+ </property>
+ </spacer>
+ </hbox>
+ </widget>
+ </vbox>
+ </widget>
+ <widget>
+ <class>QWidget</class>
+ <property stdset="1">
+ <name>name</name>
+ <cstring>tab</cstring>
+ </property>
+ <attribute>
+ <name>title</name>
+ <string>Size</string>
+ </attribute>
+ <grid>
<property stdset="1">
- <name>name</name>
- <cstring>rotateED</cstring>
+ <name>margin</name>
+ <number>11</number>
</property>
- <property>
- <name>toolTip</name>
- <string>FIXME</string>
+ <property stdset="1">
+ <name>spacing</name>
+ <number>6</number>
</property>
- </widget>
- <widget row="1" column="2" >
- <class>QComboBox</class>
- <item>
- <property>
- <name>text</name>
- <string>cm</string>
+ <widget row="0" column="0" >
+ <class>QButtonGroup</class>
+ <property stdset="1">
+ <name>name</name>
+ <cstring>sizeBG</cstring>
</property>
- </item>
- <item>
- <property>
- <name>text</name>
- <string>inches</string>
+ <property stdset="1">
+ <name>frameShape</name>
+ <enum>Box</enum>
</property>
- </item>
- <item>
- <property>
- <name>text</name>
- <string>% of page</string>
+ <property stdset="1">
+ <name>title</name>
+ <string></string>
</property>
- </item>
+ <grid>
+ <property stdset="1">
+ <name>margin</name>
+ <number>11</number>
+ </property>
+ <property stdset="1">
+ <name>spacing</name>
+ <number>6</number>
+ </property>
+ <widget row="1" column="0" >
+ <class>QRadioButton</class>
+ <property stdset="1">
+ <name>name</name>
+ <cstring>scaleRB</cstring>
+ </property>
+ <property stdset="1">
+ <name>text</name>
+ <string>&Scale</string>
+ </property>
+ </widget>
+ <widget row="0" column="0" >
+ <class>QRadioButton</class>
+ <property stdset="1">
+ <name>name</name>
+ <cstring>defaultRB</cstring>
+ </property>
+ <property stdset="1">
+ <name>text</name>
+ <string>&Default</string>
+ </property>
+ <property stdset="1">
+ <name>checked</name>
+ <bool>true</bool>
+ </property>
+ </widget>
+ <widget row="3" column="0" >
+ <class>QRadioButton</class>
+ <property stdset="1">
+ <name>name</name>
+ <cstring>customRB</cstring>
+ </property>
+ <property stdset="1">
+ <name>text</name>
+ <string>&Custom</string>
+ </property>
+ </widget>
+ <widget row="1" column="1" rowspan="1" colspan="2" >
+ <class>QLayoutWidget</class>
+ <property stdset="1">
+ <name>name</name>
+ <cstring>Layout7</cstring>
+ </property>
+ <hbox>
+ <property stdset="1">
+ <name>margin</name>
+ <number>0</number>
+ </property>
+ <property stdset="1">
+ <name>spacing</name>
+ <number>6</number>
+ </property>
+ <widget>
+ <class>QLineEdit</class>
+ <property stdset="1">
+ <name>name</name>
+ <cstring>scale</cstring>
+ </property>
+ <property stdset="1">
+ <name>enabled</name>
+ <bool>false</bool>
+ </property>
+ </widget>
+ <widget>
+ <class>QLabel</class>
+ <property stdset="1">
+ <name>name</name>
+ <cstring>TextLabel4_2</cstring>
+ </property>
+ <property stdset="1">
+ <name>enabled</name>
+ <bool>false</bool>
+ </property>
+ <property stdset="1">
+ <name>text</name>
+ <string>%</string>
+ </property>
+ </widget>
+ <spacer>
+ <property>
+ <name>name</name>
+ <cstring>Spacer12</cstring>
+ </property>
+ <property stdset="1">
+ <name>orientation</name>
+ <enum>Horizontal</enum>
+ </property>
+ <property stdset="1">
+ <name>sizeType</name>
+ <enum>Expanding</enum>
+ </property>
+ <property>
+ <name>sizeHint</name>
+ <size>
+ <width>20</width>
+ <height>20</height>
+ </size>
+ </property>
+ </spacer>
+ </hbox>
+ </widget>
+ <widget row="4" column="1" rowspan="1" colspan="2" >
+ <class>QLayoutWidget</class>
+ <property stdset="1">
+ <name>name</name>
+ <cstring>Layout8</cstring>
+ </property>
+ <hbox>
+ <property stdset="1">
+ <name>margin</name>
+ <number>0</number>
+ </property>
+ <property stdset="1">
+ <name>spacing</name>
+ <number>6</number>
+ </property>
+ <widget>
+ <class>QCheckBox</class>
+ <property stdset="1">
+ <name>name</name>
+ <cstring>aspectratio</cstring>
+ </property>
+ <property stdset="1">
+ <name>enabled</name>
+ <bool>false</bool>
+ </property>
+ <property stdset="1">
+ <name>text</name>
+ <string>Keep aspect&ratio</string>
+ </property>
+ </widget>
+ <spacer>
+ <property>
+ <name>name</name>
+ <cstring>Spacer13</cstring>
+ </property>
+ <property stdset="1">
+ <name>orientation</name>
+ <enum>Horizontal</enum>
+ </property>
+ <property stdset="1">
+ <name>sizeType</name>
+ <enum>Expanding</enum>
+ </property>
+ <property>
+ <name>sizeHint</name>
+ <size>
+ <width>20</width>
+ <height>20</height>
+ </size>
+ </property>
+ </spacer>
+ </hbox>
+ </widget>
+ <widget row="2" column="1" >
+ <class>QLabel</class>
+ <property stdset="1">
+ <name>name</name>
+ <cstring>sizewidthL</cstring>
+ </property>
+ <property stdset="1">
+ <name>enabled</name>
+ <bool>false</bool>
+ </property>
+ <property stdset="1">
+ <name>text</name>
+ <string>Width</string>
+ </property>
+ </widget>
+ <widget row="2" column="2" >
+ <class>QLabel</class>
+ <property stdset="1">
+ <name>name</name>
+ <cstring>sizeheightL</cstring>
+ </property>
+ <property stdset="1">
+ <name>enabled</name>
+ <bool>false</bool>
+ </property>
+ <property stdset="1">
+ <name>text</name>
+ <string>Height</string>
+ </property>
+ </widget>
+ <widget row="3" column="2" >
+ <class>QLayoutWidget</class>
+ <property stdset="1">
+ <name>name</name>
+ <cstring>Layout19</cstring>
+ </property>
+ <hbox>
+ <property stdset="1">
+ <name>margin</name>
+ <number>0</number>
+ </property>
+ <property stdset="1">
+ <name>spacing</name>
+ <number>6</number>
+ </property>
+ <widget>
+ <class>QLineEdit</class>
+ <property stdset="1">
+ <name>name</name>
+ <cstring>height</cstring>
+ </property>
+ <property stdset="1">
+ <name>enabled</name>
+ <bool>false</bool>
+ </property>
+ </widget>
+ <widget>
+ <class>LengthCombo</class>
+ <property stdset="1">
+ <name>name</name>
+ <cstring>heightUnit</cstring>
+ </property>
+ <property stdset="1">
+ <name>enabled</name>
+ <bool>false</bool>
+ </property>
+ </widget>
+ </hbox>
+ </widget>
+ <widget row="3" column="1" >
+ <class>QLayoutWidget</class>
+ <property stdset="1">
+ <name>name</name>
+ <cstring>Layout18</cstring>
+ </property>
+ <hbox>
+ <property stdset="1">
+ <name>margin</name>
+ <number>0</number>
+ </property>
+ <property stdset="1">
+ <name>spacing</name>
+ <number>6</number>
+ </property>
+ <widget>
+ <class>QLineEdit</class>
+ <property stdset="1">
+ <name>name</name>
+ <cstring>width</cstring>
+ </property>
+ <property stdset="1">
+ <name>enabled</name>
+ <bool>false</bool>
+ </property>
+ </widget>
+ <widget>
+ <class>LengthCombo</class>
+ <property stdset="1">
+ <name>name</name>
+ <cstring>widthUnit</cstring>
+ </property>
+ <property stdset="1">
+ <name>enabled</name>
+ <bool>false</bool>
+ </property>
+ </widget>
+ </hbox>
+ </widget>
+ </grid>
+ </widget>
+ </grid>
+ </widget>
+ <widget>
+ <class>QWidget</class>
+ <property stdset="1">
+ <name>name</name>
+ <cstring>tab</cstring>
+ </property>
+ <attribute>
+ <name>title</name>
+ <string>EPS Options</string>
+ </attribute>
+ <vbox>
<property stdset="1">
- <name>name</name>
- <cstring>heightCO</cstring>
+ <name>margin</name>
+ <number>11</number>
</property>
<property stdset="1">
- <name>sizePolicy</name>
- <sizepolicy>
- <hsizetype>3</hsizetype>
- <vsizetype>0</vsizetype>
- </sizepolicy>
- </property>
- <property>
- <name>toolTip</name>
- <string>Height units</string>
+ <name>spacing</name>
+ <number>6</number>
</property>
- </widget>
- <widget row="0" column="2" >
- <class>QComboBox</class>
- <item>
- <property>
- <name>text</name>
- <string>cm</string>
+ <widget>
+ <class>QGroupBox</class>
+ <property stdset="1">
+ <name>name</name>
+ <cstring>bbGB</cstring>
</property>
- </item>
- <item>
- <property>
- <name>text</name>
- <string>inches</string>
+ <property stdset="1">
+ <name>enabled</name>
+ <bool>true</bool>
</property>
- </item>
- <item>
- <property>
- <name>text</name>
- <string>% of page</string>
+ <property stdset="1">
+ <name>title</name>
+ <string>Bounding box</string>
</property>
- </item>
- <item>
- <property>
- <name>text</name>
- <string>% of column</string>
+ <grid>
+ <property stdset="1">
+ <name>margin</name>
+ <number>11</number>
+ </property>
+ <property stdset="1">
+ <name>spacing</name>
+ <number>6</number>
+ </property>
+ <widget row="1" column="0" >
+ <class>QLabel</class>
+ <property stdset="1">
+ <name>name</name>
+ <cstring>lbL</cstring>
+ </property>
+ <property stdset="1">
+ <name>text</name>
+ <string>Left &bottom:</string>
+ </property>
+ <property>
+ <name>buddy</name>
+ <cstring>lbX</cstring>
+ </property>
+ </widget>
+ <widget row="2" column="0" >
+ <class>QLabel</class>
+ <property stdset="1">
+ <name>name</name>
+ <cstring>rtL</cstring>
+ </property>
+ <property stdset="1">
+ <name>text</name>
+ <string>Right &top:</string>
+ </property>
+ <property>
+ <name>buddy</name>
+ <cstring>rtX</cstring>
+ </property>
+ </widget>
+ <widget row="0" column="2" >
+ <class>QLabel</class>
+ <property stdset="1">
+ <name>name</name>
+ <cstring>yL</cstring>
+ </property>
+ <property stdset="1">
+ <name>text</name>
+ <string>Y</string>
+ </property>
+ </widget>
+ <widget row="0" column="1" >
+ <class>QLabel</class>
+ <property stdset="1">
+ <name>name</name>
+ <cstring>xL</cstring>
+ </property>
+ <property stdset="1">
+ <name>text</name>
+ <string>X</string>
+ </property>
+ </widget>
+ <widget row="1" column="1" >
+ <class>QLayoutWidget</class>
+ <property stdset="1">
+ <name>name</name>
+ <cstring>Layout25</cstring>
+ </property>
+ <hbox>
+ <property stdset="1">
+ <name>margin</name>
+ <number>0</number>
+ </property>
+ <property stdset="1">
+ <name>spacing</name>
+ <number>6</number>
+ </property>
+ <widget>
+ <class>QLineEdit</class>
+ <property stdset="1">
+ <name>name</name>
+ <cstring>lbX</cstring>
+ </property>
+ </widget>
+ <widget>
+ <class>QComboBox</class>
+ <item>
+ <property>
+ <name>text</name>
+ <string>pt</string>
+ </property>
+ </item>
+ <item>
+ <property>
+ <name>text</name>
+ <string>cm</string>
+ </property>
+ </item>
+ <item>
+ <property>
+ <name>text</name>
+ <string>in</string>
+ </property>
+ </item>
+ <property stdset="1">
+ <name>name</name>
+ <cstring>lbXunit</cstring>
+ </property>
+ </widget>
+ </hbox>
+ </widget>
+ <widget row="2" column="1" >
+ <class>QLayoutWidget</class>
+ <property stdset="1">
+ <name>name</name>
+ <cstring>Layout25_2</cstring>
+ </property>
+ <hbox>
+ <property stdset="1">
+ <name>margin</name>
+ <number>0</number>
+ </property>
+ <property stdset="1">
+ <name>spacing</name>
+ <number>6</number>
+ </property>
+ <widget>
+ <class>QLineEdit</class>
+ <property stdset="1">
+ <name>name</name>
+ <cstring>rtX</cstring>
+ </property>
+ </widget>
+ <widget>
+ <class>QComboBox</class>
+ <item>
+ <property>
+ <name>text</name>
+ <string>pt</string>
+ </property>
+ </item>
+ <item>
+ <property>
+ <name>text</name>
+ <string>cm</string>
+ </property>
+ </item>
+ <item>
+ <property>
+ <name>text</name>
+ <string>in</string>
+ </property>
+ </item>
+ <property stdset="1">
+ <name>name</name>
+ <cstring>rtXunit</cstring>
+ </property>
+ </widget>
+ </hbox>
+ </widget>
+ <widget row="2" column="2" >
+ <class>QLayoutWidget</class>
+ <property stdset="1">
+ <name>name</name>
+ <cstring>Layout25_2_2</cstring>
+ </property>
+ <hbox>
+ <property stdset="1">
+ <name>margin</name>
+ <number>0</number>
+ </property>
+ <property stdset="1">
+ <name>spacing</name>
+ <number>6</number>
+ </property>
+ <widget>
+ <class>QLineEdit</class>
+ <property stdset="1">
+ <name>name</name>
+ <cstring>rtY</cstring>
+ </property>
+ </widget>
+ <widget>
+ <class>QComboBox</class>
+ <item>
+ <property>
+ <name>text</name>
+ <string>pt</string>
+ </property>
+ </item>
+ <item>
+ <property>
+ <name>text</name>
+ <string>cm</string>
+ </property>
+ </item>
+ <item>
+ <property>
+ <name>text</name>
+ <string>in</string>
+ </property>
+ </item>
+ <property stdset="1">
+ <name>name</name>
+ <cstring>rtYXunit</cstring>
+ </property>
+ </widget>
+ </hbox>
+ </widget>
+ <widget row="1" column="2" >
+ <class>QLayoutWidget</class>
+ <property stdset="1">
+ <name>name</name>
+ <cstring>Layout25_3</cstring>
+ </property>
+ <hbox>
+ <property stdset="1">
+ <name>margin</name>
+ <number>0</number>
+ </property>
+ <property stdset="1">
+ <name>spacing</name>
+ <number>6</number>
+ </property>
+ <widget>
+ <class>QLineEdit</class>
+ <property stdset="1">
+ <name>name</name>
+ <cstring>lbY</cstring>
+ </property>
+ </widget>
+ <widget>
+ <class>QComboBox</class>
+ <item>
+ <property>
+ <name>text</name>
+ <string>pt</string>
+ </property>
+ </item>
+ <item>
+ <property>
+ <name>text</name>
+ <string>cm</string>
+ </property>
+ </item>
+ <item>
+ <property>
+ <name>text</name>
+ <string>in</string>
+ </property>
+ </item>
+ <property stdset="1">
+ <name>name</name>
+ <cstring>lbYunit</cstring>
+ </property>
+ </widget>
+ </hbox>
+ </widget>
+ <widget row="3" column="1" rowspan="1" colspan="2" >
+ <class>QLayoutWidget</class>
+ <property stdset="1">
+ <name>name</name>
+ <cstring>Layout16</cstring>
+ </property>
+ <hbox>
+ <property stdset="1">
+ <name>margin</name>
+ <number>0</number>
+ </property>
+ <property stdset="1">
+ <name>spacing</name>
+ <number>6</number>
+ </property>
+ <spacer>
+ <property>
+ <name>name</name>
+ <cstring>Spacer6</cstring>
+ </property>
+ <property stdset="1">
+ <name>orientation</name>
+ <enum>Horizontal</enum>
+ </property>
+ <property stdset="1">
+ <name>sizeType</name>
+ <enum>Expanding</enum>
+ </property>
+ <property>
+ <name>sizeHint</name>
+ <size>
+ <width>20</width>
+ <height>20</height>
+ </size>
+ </property>
+ </spacer>
+ <widget>
+ <class>QPushButton</class>
+ <property stdset="1">
+ <name>name</name>
+ <cstring>getPB</cstring>
+ </property>
+ <property stdset="1">
+ <name>text</name>
+ <string>&Get</string>
+ </property>
+ <property>
+ <name>toolTip</name>
+ <string>Get bounding box from file</string>
+ </property>
+ </widget>
+ </hbox>
+ </widget>
+ </grid>
+ </widget>
+ <widget>
+ <class>QLayoutWidget</class>
+ <property stdset="1">
+ <name>name</name>
+ <cstring>Layout17</cstring>
</property>
- </item>
- <property stdset="1">
- <name>name</name>
- <cstring>widthCO</cstring>
- </property>
- <property stdset="1">
- <name>sizePolicy</name>
- <sizepolicy>
- <hsizetype>3</hsizetype>
- <vsizetype>0</vsizetype>
- </sizepolicy>
- </property>
- <property>
- <name>toolTip</name>
- <string>Width units</string>
- </property>
- </widget>
- <widget row="1" column="1" >
- <class>QLineEdit</class>
- <property stdset="1">
- <name>name</name>
- <cstring>heightED</cstring>
- </property>
- <property>
- <name>toolTip</name>
- <string>Height of graphics</string>
- </property>
- </widget>
- <widget row="1" column="0" >
- <class>QLabel</class>
- <property stdset="1">
- <name>name</name>
- <cstring>heightLA</cstring>
- </property>
+ <hbox>
+ <property stdset="1">
+ <name>margin</name>
+ <number>0</number>
+ </property>
+ <property stdset="1">
+ <name>spacing</name>
+ <number>6</number>
+ </property>
+ <widget>
+ <class>QCheckBox</class>
+ <property stdset="1">
+ <name>name</name>
+ <cstring>clip</cstring>
+ </property>
+ <property stdset="1">
+ <name>text</name>
+ <string>&Clip to bounding box</string>
+ </property>
+ <property>
+ <name>toolTip</name>
+ <string>clip to bounding box</string>
+ </property>
+ </widget>
+ <spacer>
+ <property>
+ <name>name</name>
+ <cstring>Spacer7</cstring>
+ </property>
+ <property stdset="1">
+ <name>orientation</name>
+ <enum>Horizontal</enum>
+ </property>
+ <property stdset="1">
+ <name>sizeType</name>
+ <enum>Expanding</enum>
+ </property>
+ <property>
+ <name>sizeHint</name>
+ <size>
+ <width>20</width>
+ <height>20</height>
+ </size>
+ </property>
+ </spacer>
+ </hbox>
+ </widget>
+ </vbox>
+ </widget>
+ <widget>
+ <class>QWidget</class>
+ <property stdset="1">
+ <name>name</name>
+ <cstring>tab</cstring>
+ </property>
+ <attribute>
+ <name>title</name>
+ <string>Extra</string>
+ </attribute>
+ <vbox>
<property stdset="1">
- <name>text</name>
- <string>&Height:</string>
- </property>
- <property>
- <name>buddy</name>
- <cstring>heightED</cstring>
- </property>
- <property>
- <name>toolTip</name>
- <string>Height of graphics</string>
+ <name>margin</name>
+ <number>11</number>
</property>
- </widget>
- <widget row="5" column="0" rowspan="1" colspan="3" >
- <class>QLayoutWidget</class>
<property stdset="1">
- <name>name</name>
- <cstring>Layout76</cstring>
+ <name>spacing</name>
+ <number>6</number>
</property>
- <vbox>
+ <widget>
+ <class>QGroupBox</class>
<property stdset="1">
- <name>margin</name>
- <number>0</number>
+ <name>name</name>
+ <cstring>rotateGB</cstring>
</property>
<property stdset="1">
- <name>spacing</name>
- <number>6</number>
+ <name>title</name>
+ <string>Rotation</string>
</property>
- <widget>
- <class>QLabel</class>
+ <hbox>
<property stdset="1">
- <name>name</name>
- <cstring>subcaptionLA</cstring>
+ <name>margin</name>
+ <number>11</number>
</property>
<property stdset="1">
- <name>text</name>
- <string>&Subcaption:</string>
+ <name>spacing</name>
+ <number>6</number>
</property>
- <property>
- <name>buddy</name>
- <cstring>subcaptionED</cstring>
+ <widget>
+ <class>QLabel</class>
+ <property stdset="1">
+ <name>name</name>
+ <cstring>angleL</cstring>
+ </property>
+ <property stdset="1">
+ <name>text</name>
+ <string>&Angle:</string>
+ </property>
+ <property>
+ <name>buddy</name>
+ <cstring>angle</cstring>
+ </property>
+ </widget>
+ <widget>
+ <class>QLineEdit</class>
+ <property stdset="1">
+ <name>name</name>
+ <cstring>angle</cstring>
+ </property>
+ </widget>
+ <widget>
+ <class>QLabel</class>
+ <property stdset="1">
+ <name>name</name>
+ <cstring>originL</cstring>
+ </property>
+ <property stdset="1">
+ <name>text</name>
+ <string>&Origin:</string>
+ </property>
+ <property>
+ <name>buddy</name>
+ <cstring>origin</cstring>
+ </property>
+ </widget>
+ <widget>
+ <class>QComboBox</class>
+ <item>
+ <property>
+ <name>text</name>
+ <string>default</string>
+ </property>
+ </item>
+ <item>
+ <property>
+ <name>text</name>
+ <string>leftTop</string>
+ </property>
+ </item>
+ <item>
+ <property>
+ <name>text</name>
+ <string>leftBottom</string>
+ </property>
+ </item>
+ <item>
+ <property>
+ <name>text</name>
+ <string>leftBaseline</string>
+ </property>
+ </item>
+ <item>
+ <property>
+ <name>text</name>
+ <string>center</string>
+ </property>
+ </item>
+ <item>
+ <property>
+ <name>text</name>
+ <string>centerTop</string>
+ </property>
+ </item>
+ <item>
+ <property>
+ <name>text</name>
+ <string>centerBottom</string>
+ </property>
+ </item>
+ <item>
+ <property>
+ <name>text</name>
+ <string>centerBaseline</string>
+ </property>
+ </item>
+ <item>
+ <property>
+ <name>text</name>
+ <string>rightTop</string>
+ </property>
+ </item>
+ <item>
+ <property>
+ <name>text</name>
+ <string>rightBottom</string>
+ </property>
+ </item>
+ <item>
+ <property>
+ <name>text</name>
+ <string>rightBaseline</string>
+ </property>
+ </item>
+ <item>
+ <property>
+ <name>text</name>
+ <string>referencePoint</string>
+ </property>
+ </item>
+ <property stdset="1">
+ <name>name</name>
+ <cstring>origin</cstring>
+ </property>
+ </widget>
+ </hbox>
+ </widget>
+ <widget>
+ <class>QGroupBox</class>
+ <property stdset="1">
+ <name>name</name>
+ <cstring>latexoptionsGB</cstring>
+ </property>
+ <property stdset="1">
+ <name>title</name>
+ <string>LaTeX options</string>
+ </property>
+ <grid>
+ <property stdset="1">
+ <name>margin</name>
+ <number>11</number>
</property>
- <property>
- <name>toolTip</name>
- <string>The sub-caption of the figure</string>
+ <property stdset="1">
+ <name>spacing</name>
+ <number>6</number>
</property>
- </widget>
- <widget>
- <class>QLineEdit</class>
+ <widget row="0" column="0" >
+ <class>QLineEdit</class>
+ <property stdset="1">
+ <name>name</name>
+ <cstring>latexoptions</cstring>
+ </property>
+ </widget>
+ </grid>
+ </widget>
+ <widget>
+ <class>QLayoutWidget</class>
+ <property stdset="1">
+ <name>name</name>
+ <cstring>Layout6</cstring>
+ </property>
+ <hbox>
<property stdset="1">
- <name>name</name>
- <cstring>subcaptionED</cstring>
+ <name>margin</name>
+ <number>0</number>
</property>
- <property>
- <name>toolTip</name>
- <string>The sub-caption for the figure</string>
+ <property stdset="1">
+ <name>spacing</name>
+ <number>6</number>
</property>
- </widget>
- </vbox>
- </widget>
- <spacer row="4" column="1" >
- <property>
- <name>name</name>
- <cstring>Spacer104</cstring>
- </property>
- <property stdset="1">
- <name>orientation</name>
- <enum>Vertical</enum>
- </property>
- <property stdset="1">
- <name>sizeType</name>
- <enum>Expanding</enum>
- </property>
- <property>
- <name>sizeHint</name>
- <size>
- <width>20</width>
- <height>20</height>
- </size>
- </property>
- </spacer>
- </grid>
+ <widget>
+ <class>QCheckBox</class>
+ <property stdset="1">
+ <name>name</name>
+ <cstring>subfigure</cstring>
+ </property>
+ <property stdset="1">
+ <name>text</name>
+ <string>Su&bfigure</string>
+ </property>
+ </widget>
+ <widget>
+ <class>QLineEdit</class>
+ <property stdset="1">
+ <name>name</name>
+ <cstring>subcaption</cstring>
+ </property>
+ <property stdset="1">
+ <name>enabled</name>
+ <bool>false</bool>
+ </property>
+ <property>
+ <name>toolTip</name>
+ <string>The sub-caption for the figure</string>
+ </property>
+ </widget>
+ </hbox>
+ </widget>
+ <spacer>
+ <property>
+ <name>name</name>
+ <cstring>Spacer26</cstring>
+ </property>
+ <property stdset="1">
+ <name>orientation</name>
+ <enum>Vertical</enum>
+ </property>
+ <property stdset="1">
+ <name>sizeType</name>
+ <enum>Expanding</enum>
+ </property>
+ <property>
+ <name>sizeHint</name>
+ <size>
+ <width>20</width>
+ <height>20</height>
+ </size>
+ </property>
+ </spacer>
+ </vbox>
+ </widget>
</widget>
- <widget row="3" column="0" rowspan="1" colspan="2" >
+ <widget>
<class>QLayoutWidget</class>
<property stdset="1">
<name>name</name>
- <cstring>Layout13</cstring>
+ <cstring>Layout1</cstring>
</property>
<hbox>
<property stdset="1">
<name>spacing</name>
<number>6</number>
</property>
+ <widget>
+ <class>QPushButton</class>
+ <property stdset="1">
+ <name>name</name>
+ <cstring>restorePB</cstring>
+ </property>
+ <property stdset="1">
+ <name>text</name>
+ <string>&Restore</string>
+ </property>
+ <property stdset="1">
+ <name>default</name>
+ <bool>true</bool>
+ </property>
+ </widget>
<spacer>
<property>
<name>name</name>
</property>
<property stdset="1">
<name>text</name>
- <string>Close</string>
+ <string>&Close</string>
</property>
</widget>
</hbox>
</widget>
- </grid>
+ </vbox>
</widget>
+<customwidgets>
+ <customwidget>
+ <class>LengthCombo</class>
+ <header location="local">lengthcombo.h</header>
+ <sizehint>
+ <width>-1</width>
+ <height>-1</height>
+ </sizehint>
+ <container>0</container>
+ <sizepolicy>
+ <hordata>5</hordata>
+ <verdata>5</verdata>
+ </sizepolicy>
+ <pixmap>image0</pixmap>
+ <signal>selectionChanged(LyXLength::UNIT)</signal>
+ </customwidget>
+</customwidgets>
+<images>
+ <image>
+ <name>image0</name>
+ <data format="XPM.GZ" length="646">789c6dd2c10ac2300c00d07bbf2234b7229d1be245fc04c5a3201e4615f430059d0711ff5ddb2e6bb236ec90eed134cb5a19d8ef36602af5ecdbfeeac05dda0798d3abebde87e3faa374d3807fa0d633a52d38d8de6f679fe33fc776e196f53cd010188256a3600a292882096246517815ca99884606e18044a3a40d91824820924265a7923a2e8bcd05f33db1173e002913175f2a6be6d3294871a2d95fa00e8a94ee017b69d339d90df1e77c57ea072ede6758</data>
+ </image>
+</images>
<connections>
<connection>
- <sender>grayscaleRB</sender>
+ <sender>scaleRB</sender>
+ <signal>toggled(bool)</signal>
+ <receiver>scale</receiver>
+ <slot>setEnabled(bool)</slot>
+ </connection>
+ <connection>
+ <sender>scaleRB</sender>
+ <signal>toggled(bool)</signal>
+ <receiver>TextLabel4_2</receiver>
+ <slot>setEnabled(bool)</slot>
+ </connection>
+ <connection>
+ <sender>customRB</sender>
+ <signal>toggled(bool)</signal>
+ <receiver>width</receiver>
+ <slot>setEnabled(bool)</slot>
+ </connection>
+ <connection>
+ <sender>customRB</sender>
<signal>toggled(bool)</signal>
+ <receiver>height</receiver>
+ <slot>setEnabled(bool)</slot>
+ </connection>
+ <connection>
+ <sender>customRB</sender>
+ <signal>toggled(bool)</signal>
+ <receiver>sizewidthL</receiver>
+ <slot>setEnabled(bool)</slot>
+ </connection>
+ <connection>
+ <sender>customRB</sender>
+ <signal>toggled(bool)</signal>
+ <receiver>sizeheightL</receiver>
+ <slot>setEnabled(bool)</slot>
+ </connection>
+ <connection>
+ <sender>customRB</sender>
+ <signal>toggled(bool)</signal>
+ <receiver>aspectratio</receiver>
+ <slot>setEnabled(bool)</slot>
+ </connection>
+ <connection>
+ <sender>subfigure</sender>
+ <signal>toggled(bool)</signal>
+ <receiver>subcaption</receiver>
+ <slot>setEnabled(bool)</slot>
+ </connection>
+ <connection>
+ <sender>browsePB</sender>
+ <signal>clicked()</signal>
<receiver>QGraphicsDialogBase</receiver>
- <slot>change_adaptor()</slot>
+ <slot>browse_clicked()</slot>
+ </connection>
+ <connection>
+ <sender>getPB</sender>
+ <signal>clicked()</signal>
+ <receiver>QGraphicsDialogBase</receiver>
+ <slot>get_clicked()</slot>
+ </connection>
+ <connection>
+ <sender>customRB</sender>
+ <signal>toggled(bool)</signal>
+ <receiver>widthUnit</receiver>
+ <slot>setEnabled(bool)</slot>
</connection>
<connection>
- <sender>colorRB</sender>
+ <sender>customRB</sender>
<signal>toggled(bool)</signal>
+ <receiver>heightUnit</receiver>
+ <slot>setEnabled(bool)</slot>
+ </connection>
+ <connection>
+ <sender>filename</sender>
+ <signal>textChanged(const QString&)</signal>
<receiver>QGraphicsDialogBase</receiver>
<slot>change_adaptor()</slot>
</connection>
<connection>
- <sender>filenameED</sender>
+ <sender>displaywidth</sender>
<signal>textChanged(const QString&)</signal>
<receiver>QGraphicsDialogBase</receiver>
<slot>change_adaptor()</slot>
</connection>
<connection>
- <sender>browsePB</sender>
- <signal>clicked()</signal>
+ <sender>displayheight</sender>
+ <signal>textChanged(const QString&)</signal>
<receiver>QGraphicsDialogBase</receiver>
- <slot>browseClicked()</slot>
+ <slot>change_adaptor()</slot>
</connection>
<connection>
- <sender>monochromeRB</sender>
- <signal>toggled(bool)</signal>
+ <sender>displaywidthUnit</sender>
+ <signal>selectionChanged(LyXLength::UNIT)</signal>
<receiver>QGraphicsDialogBase</receiver>
<slot>change_adaptor()</slot>
</connection>
<connection>
- <sender>dontRB</sender>
- <signal>toggled(bool)</signal>
+ <sender>displayheightUnit</sender>
+ <signal>selectionChanged(LyXLength::UNIT)</signal>
<receiver>QGraphicsDialogBase</receiver>
<slot>change_adaptor()</slot>
</connection>
<connection>
- <sender>heightCO</sender>
- <signal>highlighted(int)</signal>
+ <sender>subcaption</sender>
+ <signal>textChanged(const QString&)</signal>
+ <receiver>QGraphicsDialogBase</receiver>
+ <slot>change_adaptor()</slot>
+ </connection>
+ <connection>
+ <sender>subfigure</sender>
+ <signal>stateChanged(int)</signal>
+ <receiver>QGraphicsDialogBase</receiver>
+ <slot>change_adaptor()</slot>
+ </connection>
+ <connection>
+ <sender>defaultRB</sender>
+ <signal>stateChanged(int)</signal>
+ <receiver>QGraphicsDialogBase</receiver>
+ <slot>change_adaptor()</slot>
+ </connection>
+ <connection>
+ <sender>scaleRB</sender>
+ <signal>stateChanged(int)</signal>
+ <receiver>QGraphicsDialogBase</receiver>
+ <slot>change_adaptor()</slot>
+ </connection>
+ <connection>
+ <sender>customRB</sender>
+ <signal>stateChanged(int)</signal>
<receiver>QGraphicsDialogBase</receiver>
<slot>change_adaptor()</slot>
</connection>
<connection>
- <sender>heightED</sender>
+ <sender>angle</sender>
<signal>textChanged(const QString&)</signal>
<receiver>QGraphicsDialogBase</receiver>
<slot>change_adaptor()</slot>
</connection>
<connection>
- <sender>widthED</sender>
+ <sender>latexoptions</sender>
<signal>textChanged(const QString&)</signal>
<receiver>QGraphicsDialogBase</receiver>
<slot>change_adaptor()</slot>
</connection>
<connection>
- <sender>widthCO</sender>
- <signal>highlighted(int)</signal>
+ <sender>clip</sender>
+ <signal>stateChanged(int)</signal>
+ <receiver>QGraphicsDialogBase</receiver>
+ <slot>change_adaptor()</slot>
+ </connection>
+ <connection>
+ <sender>draft</sender>
+ <signal>stateChanged(int)</signal>
+ <receiver>QGraphicsDialogBase</receiver>
+ <slot>change_adaptor()</slot>
+ </connection>
+ <connection>
+ <sender>lbX</sender>
+ <signal>textChanged(const QString&)</signal>
+ <receiver>QGraphicsDialogBase</receiver>
+ <slot>change_adaptor()</slot>
+ </connection>
+ <connection>
+ <sender>lbY</sender>
+ <signal>returnPressed()</signal>
+ <receiver>QGraphicsDialogBase</receiver>
+ <slot>change_adaptor()</slot>
+ </connection>
+ <connection>
+ <sender>rtX</sender>
+ <signal>returnPressed()</signal>
+ <receiver>QGraphicsDialogBase</receiver>
+ <slot>change_adaptor()</slot>
+ </connection>
+ <connection>
+ <sender>rtY</sender>
+ <signal>returnPressed()</signal>
+ <receiver>QGraphicsDialogBase</receiver>
+ <slot>change_adaptor()</slot>
+ </connection>
+ <connection>
+ <sender>scale</sender>
+ <signal>textChanged(const QString&)</signal>
<receiver>QGraphicsDialogBase</receiver>
<slot>change_adaptor()</slot>
</connection>
<connection>
- <sender>rotateED</sender>
+ <sender>width</sender>
<signal>textChanged(const QString&)</signal>
<receiver>QGraphicsDialogBase</receiver>
<slot>change_adaptor()</slot>
</connection>
<connection>
- <sender>subcaptionED</sender>
+ <sender>widthUnit</sender>
+ <signal>selectionChanged(LyXLength::UNIT)</signal>
+ <receiver>QGraphicsDialogBase</receiver>
+ <slot>change_adaptor()</slot>
+ </connection>
+ <connection>
+ <sender>height</sender>
<signal>textChanged(const QString&)</signal>
<receiver>QGraphicsDialogBase</receiver>
<slot>change_adaptor()</slot>
</connection>
- <slot access="public">browseClicked()</slot>
- <slot access="public">change_adaptor()</slot>
+ <connection>
+ <sender>heightUnit</sender>
+ <signal>selectionChanged(LyXLength::UNIT)</signal>
+ <receiver>QGraphicsDialogBase</receiver>
+ <slot>change_adaptor()</slot>
+ </connection>
+ <connection>
+ <sender>aspectratio</sender>
+ <signal>stateChanged(int)</signal>
+ <receiver>QGraphicsDialogBase</receiver>
+ <slot>change_adaptor()</slot>
+ </connection>
+ <connection>
+ <sender>show</sender>
+ <signal>highlighted(int)</signal>
+ <receiver>QGraphicsDialogBase</receiver>
+ <slot>change_adaptor()</slot>
+ </connection>
+ <connection>
+ <sender>lbXunit</sender>
+ <signal>highlighted(int)</signal>
+ <receiver>QGraphicsDialogBase</receiver>
+ <slot>change_adaptor()</slot>
+ </connection>
+ <connection>
+ <sender>lbYunit</sender>
+ <signal>highlighted(int)</signal>
+ <receiver>QGraphicsDialogBase</receiver>
+ <slot>change_adaptor()</slot>
+ </connection>
+ <connection>
+ <sender>rtXunit</sender>
+ <signal>highlighted(int)</signal>
+ <receiver>QGraphicsDialogBase</receiver>
+ <slot>change_adaptor()</slot>
+ </connection>
+ <connection>
+ <sender>rtYXunit</sender>
+ <signal>highlighted(int)</signal>
+ <receiver>QGraphicsDialogBase</receiver>
+ <slot>change_adaptor()</slot>
+ </connection>
+ <connection>
+ <sender>origin</sender>
+ <signal>highlighted(int)</signal>
+ <receiver>QGraphicsDialogBase</receiver>
+ <slot>change_adaptor()</slot>
+ </connection>
+ <slot access="protected">browse_clicked()</slot>
+ <slot access="protected">get_clicked()</slot>
+ <slot access="protected">change_adaptor()</slot>
</connections>
<tabstops>
- <tabstop>filenameED</tabstop>
+ <tabstop>TabWidget</tabstop>
+ <tabstop>filename</tabstop>
<tabstop>browsePB</tabstop>
- <tabstop>widthED</tabstop>
- <tabstop>widthCO</tabstop>
- <tabstop>heightED</tabstop>
- <tabstop>heightCO</tabstop>
- <tabstop>scaleCB</tabstop>
- <tabstop>rotateED</tabstop>
- <tabstop>subcaptionED</tabstop>
- <tabstop>monochromeRB</tabstop>
- <tabstop>grayscaleRB</tabstop>
- <tabstop>colorRB</tabstop>
- <tabstop>dontRB</tabstop>
+ <tabstop>show</tabstop>
+ <tabstop>displaywidth</tabstop>
+ <tabstop>displayheight</tabstop>
+ <tabstop>subfigure</tabstop>
+ <tabstop>subcaption</tabstop>
+ <tabstop>defaultRB</tabstop>
+ <tabstop>scale</tabstop>
+ <tabstop>customRB</tabstop>
+ <tabstop>width</tabstop>
+ <tabstop>height</tabstop>
+ <tabstop>aspectratio</tabstop>
+ <tabstop>lbX</tabstop>
+ <tabstop>clip</tabstop>
+ <tabstop>draft</tabstop>
+ <tabstop>getPB</tabstop>
+ <tabstop>angle</tabstop>
+ <tabstop>origin</tabstop>
+ <tabstop>latexoptions</tabstop>
+ <tabstop>restorePB</tabstop>
<tabstop>okPB</tabstop>
<tabstop>applyPB</tabstop>
<tabstop>closePB</tabstop>