--- /dev/null
+/**
+ * \file QGraphics.C
+ * Copyright 2001 the LyX Team
+ * Read the file COPYING
+ *
+ * \author John Levon <moz@compsoc.man.ac.uk>
+ */
+
+#include <config.h>
+
+#ifdef __GNUG__
+#pragma implementation
+#endif
+
+#include "QGraphicsDialog.h"
+#include "ControlGraphics.h"
+#include "QGraphics.h"
+#include "Qt2BC.h"
+#include "gettext.h"
+#include "debug.h"
+
+#include "support/lstrings.h"
+
+#include <qlineedit.h>
+#include <qpushbutton.h>
+#include <qcheckbox.h>
+#include <qradiobutton.h>
+#include <qcombobox.h>
+
+typedef Qt2CB<ControlGraphics, Qt2DB<QGraphicsDialog> > base_class;
+
+QGraphics::QGraphics(ControlGraphics & c)
+ : base_class(c, _("Graphics"))
+{
+}
+
+
+void QGraphics::build_dialog()
+{
+ dialog_.reset(new QGraphicsDialog(this));
+
+ bc().setOK(dialog_->okPB);
+ bc().setApply(dialog_->applyPB);
+ bc().setCancel(dialog_->closePB);
+ bc().addReadOnly(dialog_->filenameED);
+ 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();
+
+ 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;
+ }
+ 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_->widthCO->setCurrentItem(item);
+
+ item = 0;
+ switch (igp.heightResize) {
+ case InsetGraphicsParams::INCH: item = 1; break;
+ case InsetGraphicsParams::PERCENT_PAGE: item = 2; break;
+ default: break;
+ }
+
+ 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());
+}
+
+
+void QGraphics::apply()
+{
+ 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());
+ }
+
+ 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;
+ 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());
+ }
+
+ // FIXME: scale ???
+
+ igp.rotateAngle = strToDbl(dialog_->rotateED->text().latin1());
+
+ igp.filename = dialog_->filenameED->text().latin1();
+}
+
+
+void QGraphics::browse()
+{
+ string const & name = controller().Browse(dialog_->filenameED->text().latin1());
+ if (!name.empty())
+ dialog_->filenameED->setText(name.c_str());
+}
+
+
+bool QGraphics::isValid()
+{
+ return !string(dialog_->filenameED->text().latin1()).empty();
+}
--- /dev/null
+<!DOCTYPE UI><UI>
+<class>QGraphicsDialogBase</class>
+<include location="global">config.h</include>
+<include location="local">gettext.h</include>
+<widget>
+ <class>QDialog</class>
+ <property stdset="1">
+ <name>name</name>
+ <cstring>QGraphicsDialogBase</cstring>
+ </property>
+ <property stdset="1">
+ <name>geometry</name>
+ <rect>
+ <x>0</x>
+ <y>0</y>
+ <width>348</width>
+ <height>368</height>
+ </rect>
+ </property>
+ <property stdset="1">
+ <name>caption</name>
+ <string>Graphics</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>QLayoutWidget</class>
+ <property stdset="1">
+ <name>name</name>
+ <cstring>Layout12</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>QLayoutWidget</class>
+ <property stdset="1">
+ <name>name</name>
+ <cstring>Layout7</cstring>
+ </property>
+ <vbox>
+ <property stdset="1">
+ <name>margin</name>
+ <number>0</number>
+ </property>
+ <property stdset="1">
+ <name>spacing</name>
+ <number>6</number>
+ </property>
+ <widget>
+ <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>
+ <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>
+ <spacer>
+ <property>
+ <name>name</name>
+ <cstring>Spacer10</cstring>
+ </property>
+ <property stdset="1">
+ <name>orientation</name>
+ <enum>Vertical</enum>
+ </property>
+ <property stdset="1">
+ <name>sizeType</name>
+ <enum>Minimum</enum>
+ </property>
+ <property>
+ <name>sizeHint</name>
+ <size>
+ <width>20</width>
+ <height>20</height>
+ </size>
+ </property>
+ </spacer>
+ </vbox>
+ </widget>
+ <widget>
+ <class>QLayoutWidget</class>
+ <property stdset="1">
+ <name>name</name>
+ <cstring>Layout11</cstring>
+ </property>
+ <vbox>
+ <property stdset="1">
+ <name>margin</name>
+ <number>0</number>
+ </property>
+ <property stdset="1">
+ <name>spacing</name>
+ <number>6</number>
+ </property>
+ <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>
+ <spacer>
+ <property>
+ <name>name</name>
+ <cstring>Spacer11</cstring>
+ </property>
+ <property stdset="1">
+ <name>orientation</name>
+ <enum>Vertical</enum>
+ </property>
+ <property stdset="1">
+ <name>sizeType</name>
+ <enum>Minimum</enum>
+ </property>
+ <property>
+ <name>sizeHint</name>
+ <size>
+ <width>20</width>
+ <height>20</height>
+ </size>
+ </property>
+ </spacer>
+ </vbox>
+ </widget>
+ </hbox>
+ </widget>
+ <widget>
+ <class>QLayoutWidget</class>
+ <property stdset="1">
+ <name>name</name>
+ <cstring>Layout10</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>QGroupBox</class>
+ <property stdset="1">
+ <name>name</name>
+ <cstring>parametersGB</cstring>
+ </property>
+ <property stdset="1">
+ <name>title</name>
+ <string>Graphics parameters</string>
+ </property>
+ <vbox>
+ <property stdset="1">
+ <name>margin</name>
+ <number>11</number>
+ </property>
+ <property stdset="1">
+ <name>spacing</name>
+ <number>6</number>
+ </property>
+ <spacer>
+ <property>
+ <name>name</name>
+ <cstring>Spacer3_2</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>
+ <widget>
+ <class>QLayoutWidget</class>
+ <property stdset="1">
+ <name>name</name>
+ <cstring>Layout4</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>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>
+ <class>QLineEdit</class>
+ <property stdset="1">
+ <name>name</name>
+ <cstring>widthED</cstring>
+ </property>
+ <property>
+ <name>toolTip</name>
+ <string>Width of graphics</string>
+ </property>
+ </widget>
+ <widget>
+ <class>QComboBox</class>
+ <item>
+ <property>
+ <name>text</name>
+ <string>cm</string>
+ </property>
+ </item>
+ <item>
+ <property>
+ <name>text</name>
+ <string>inches</string>
+ </property>
+ </item>
+ <item>
+ <property>
+ <name>text</name>
+ <string>% of page</string>
+ </property>
+ </item>
+ <item>
+ <property>
+ <name>text</name>
+ <string>% of column</string>
+ </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>
+ </hbox>
+ </widget>
+ <spacer>
+ <property>
+ <name>name</name>
+ <cstring>Spacer4_2</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>
+ <widget>
+ <class>QLayoutWidget</class>
+ <property stdset="1">
+ <name>name</name>
+ <cstring>Layout6</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>QLabel</class>
+ <property stdset="1">
+ <name>name</name>
+ <cstring>heightLA</cstring>
+ </property>
+ <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>
+ </property>
+ </widget>
+ <widget>
+ <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>
+ <class>QComboBox</class>
+ <item>
+ <property>
+ <name>text</name>
+ <string>cm</string>
+ </property>
+ </item>
+ <item>
+ <property>
+ <name>text</name>
+ <string>inches</string>
+ </property>
+ </item>
+ <item>
+ <property>
+ <name>text</name>
+ <string>% of page</string>
+ </property>
+ </item>
+ <property stdset="1">
+ <name>name</name>
+ <cstring>heightCO</cstring>
+ </property>
+ <property stdset="1">
+ <name>sizePolicy</name>
+ <sizepolicy>
+ <hsizetype>3</hsizetype>
+ <vsizetype>0</vsizetype>
+ </sizepolicy>
+ </property>
+ <property>
+ <name>toolTip</name>
+ <string>Height units</string>
+ </property>
+ </widget>
+ </hbox>
+ </widget>
+ <spacer>
+ <property>
+ <name>name</name>
+ <cstring>Spacer5_2</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>
+ <widget>
+ <class>QLayoutWidget</class>
+ <property stdset="1">
+ <name>name</name>
+ <cstring>Layout14</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>scaleCB</cstring>
+ </property>
+ <property stdset="1">
+ <name>text</name>
+ <string>Sca&le Height</string>
+ </property>
+ <property>
+ <name>toolTip</name>
+ <string>FIXME</string>
+ </property>
+ </widget>
+ <spacer>
+ <property>
+ <name>name</name>
+ <cstring>Spacer11_2</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>
+ <spacer>
+ <property>
+ <name>name</name>
+ <cstring>Spacer10_2</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>
+ <widget>
+ <class>QLayoutWidget</class>
+ <property stdset="1">
+ <name>name</name>
+ <cstring>Layout9</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>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>
+ <class>QLineEdit</class>
+ <property stdset="1">
+ <name>name</name>
+ <cstring>rotateED</cstring>
+ </property>
+ <property>
+ <name>toolTip</name>
+ <string>FIXME</string>
+ </property>
+ </widget>
+ <spacer>
+ <property>
+ <name>name</name>
+ <cstring>Spacer2</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>
+ <spacer>
+ <property>
+ <name>name</name>
+ <cstring>Spacer6_2</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>
+ <widget>
+ <class>QLayoutWidget</class>
+ <property stdset="1">
+ <name>name</name>
+ <cstring>Layout7</cstring>
+ </property>
+ <vbox>
+ <property stdset="1">
+ <name>margin</name>
+ <number>0</number>
+ </property>
+ <property stdset="1">
+ <name>spacing</name>
+ <number>6</number>
+ </property>
+ <widget>
+ <class>QLabel</class>
+ <property stdset="1">
+ <name>name</name>
+ <cstring>subcaptionLA</cstring>
+ </property>
+ <property stdset="1">
+ <name>text</name>
+ <string>&Subcaption</string>
+ </property>
+ <property>
+ <name>buddy</name>
+ <cstring>subcaptionED</cstring>
+ </property>
+ <property>
+ <name>toolTip</name>
+ <string>The sub-caption of the figure</string>
+ </property>
+ </widget>
+ <widget>
+ <class>QLineEdit</class>
+ <property stdset="1">
+ <name>name</name>
+ <cstring>subcaptionED</cstring>
+ </property>
+ <property>
+ <name>toolTip</name>
+ <string>The sub-caption for the figure</string>
+ </property>
+ </widget>
+ </vbox>
+ </widget>
+ </vbox>
+ </widget>
+ <widget>
+ <class>QButtonGroup</class>
+ <property stdset="1">
+ <name>name</name>
+ <cstring>displayBG</cstring>
+ </property>
+ <property stdset="1">
+ <name>title</name>
+ <string>LyX display</string>
+ </property>
+ <property stdset="1">
+ <name>sizePolicy</name>
+ <sizepolicy>
+ <hsizetype>5</hsizetype>
+ <vsizetype>7</vsizetype>
+ </sizepolicy>
+ </property>
+ <vbox>
+ <property stdset="1">
+ <name>margin</name>
+ <number>11</number>
+ </property>
+ <property stdset="1">
+ <name>spacing</name>
+ <number>6</number>
+ </property>
+ <spacer>
+ <property>
+ <name>name</name>
+ <cstring>Spacer7</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>
+ <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>
+ <spacer>
+ <property>
+ <name>name</name>
+ <cstring>Spacer4</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>
+ <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>
+ <spacer>
+ <property>
+ <name>name</name>
+ <cstring>Spacer5</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>
+ <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>
+ <spacer>
+ <property>
+ <name>name</name>
+ <cstring>Spacer6</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>
+ <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>
+ <spacer>
+ <property>
+ <name>name</name>
+ <cstring>Spacer1</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>
+ </hbox>
+ </widget>
+ <widget>
+ <class>QLayoutWidget</class>
+ <property stdset="1">
+ <name>name</name>
+ <cstring>Layout13</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>Spacer3</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>okPB</cstring>
+ </property>
+ <property stdset="1">
+ <name>text</name>
+ <string>&OK</string>
+ </property>
+ <property stdset="1">
+ <name>default</name>
+ <bool>true</bool>
+ </property>
+ </widget>
+ <widget>
+ <class>QPushButton</class>
+ <property stdset="1">
+ <name>name</name>
+ <cstring>applyPB</cstring>
+ </property>
+ <property stdset="1">
+ <name>text</name>
+ <string>&Apply</string>
+ </property>
+ <property stdset="1">
+ <name>default</name>
+ <bool>true</bool>
+ </property>
+ </widget>
+ <widget>
+ <class>QPushButton</class>
+ <property stdset="1">
+ <name>name</name>
+ <cstring>closePB</cstring>
+ </property>
+ <property stdset="1">
+ <name>text</name>
+ <string>Close</string>
+ </property>
+ </widget>
+ </hbox>
+ </widget>
+ </vbox>
+</widget>
+<connections>
+ <connection>
+ <sender>grayscaleRB</sender>
+ <signal>toggled(bool)</signal>
+ <receiver>QGraphicsDialogBase</receiver>
+ <slot>change_adaptor()</slot>
+ </connection>
+ <connection>
+ <sender>colorRB</sender>
+ <signal>toggled(bool)</signal>
+ <receiver>QGraphicsDialogBase</receiver>
+ <slot>change_adaptor()</slot>
+ </connection>
+ <connection>
+ <sender>filenameED</sender>
+ <signal>textChanged(const QString&)</signal>
+ <receiver>QGraphicsDialogBase</receiver>
+ <slot>change_adaptor()</slot>
+ </connection>
+ <connection>
+ <sender>browsePB</sender>
+ <signal>clicked()</signal>
+ <receiver>QGraphicsDialogBase</receiver>
+ <slot>browseClicked()</slot>
+ </connection>
+ <connection>
+ <sender>monochromeRB</sender>
+ <signal>toggled(bool)</signal>
+ <receiver>QGraphicsDialogBase</receiver>
+ <slot>change_adaptor()</slot>
+ </connection>
+ <connection>
+ <sender>dontRB</sender>
+ <signal>toggled(bool)</signal>
+ <receiver>QGraphicsDialogBase</receiver>
+ <slot>change_adaptor()</slot>
+ </connection>
+ <connection>
+ <sender>heightCO</sender>
+ <signal>highlighted(int)</signal>
+ <receiver>QGraphicsDialogBase</receiver>
+ <slot>change_adaptor()</slot>
+ </connection>
+ <connection>
+ <sender>heightED</sender>
+ <signal>textChanged(const QString&)</signal>
+ <receiver>QGraphicsDialogBase</receiver>
+ <slot>change_adaptor()</slot>
+ </connection>
+ <connection>
+ <sender>widthED</sender>
+ <signal>textChanged(const QString&)</signal>
+ <receiver>QGraphicsDialogBase</receiver>
+ <slot>change_adaptor()</slot>
+ </connection>
+ <connection>
+ <sender>widthCO</sender>
+ <signal>highlighted(int)</signal>
+ <receiver>QGraphicsDialogBase</receiver>
+ <slot>change_adaptor()</slot>
+ </connection>
+ <connection>
+ <sender>rotateED</sender>
+ <signal>textChanged(const QString&)</signal>
+ <receiver>QGraphicsDialogBase</receiver>
+ <slot>change_adaptor()</slot>
+ </connection>
+ <connection>
+ <sender>subcaptionED</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>
+</connections>
+<tabstops>
+ <tabstop>filenameED</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>okPB</tabstop>
+ <tabstop>applyPB</tabstop>
+ <tabstop>closePB</tabstop>
+</tabstops>
+</UI>