* demo/shared/icons/olena_smaller.jpg: New.
* demo/shared/shared.qrc: Add new image in resources.
* demo/viewer/Makefile.am: Build qrc file.
* demo/viewer/help_dialog.cc,
* demo/viewer/help_dialog.hh: Make use of the new dialog.
* demo/viewer/help_dialog.ui: New.
* demo/viewer/viewer.qrc: New.
---
scribo/ChangeLog | 17 ++++
scribo/demo/shared/icons/olena_smaller.jpg | Bin 0 -> 8028 bytes
scribo/demo/shared/shared.qrc | 3 +-
scribo/demo/viewer/Makefile.am | 6 +-
scribo/demo/viewer/help_dialog.cc | 43 +--------
scribo/demo/viewer/help_dialog.hh | 11 +--
scribo/demo/viewer/help_dialog.ui | 138 ++++++++++++++++++++++++++++
scribo/demo/viewer/viewer.qrc | 5 +
8 files changed, 173 insertions(+), 50 deletions(-)
create mode 100644 scribo/demo/shared/icons/olena_smaller.jpg
create mode 100644 scribo/demo/viewer/help_dialog.ui
create mode 100644 scribo/demo/viewer/viewer.qrc
diff --git a/scribo/ChangeLog b/scribo/ChangeLog
index be2e395..620dcfb 100644
--- a/scribo/ChangeLog
+++ b/scribo/ChangeLog
@@ -1,5 +1,22 @@
2011-02-18 Guillaume Lazzara <z(a)lrde.epita.fr>
+ Improve about dialog in scribo viewer.
+
+ * demo/shared/icons/olena_smaller.jpg: New.
+
+ * demo/shared/shared.qrc: Add new image in resources.
+
+ * demo/viewer/Makefile.am: Build qrc file.
+
+ * demo/viewer/help_dialog.cc,
+ * demo/viewer/help_dialog.hh: Make use of the new dialog.
+
+ * demo/viewer/help_dialog.ui: New.
+
+ * demo/viewer/viewer.qrc: New.
+
+2011-02-18 Guillaume Lazzara <z(a)lrde.epita.fr>
+
* demo/viewer/runner.cc: Clear arguments on new process.
2011-01-28 Guillaume Lazzara <z(a)lrde.epita.fr>
diff --git a/scribo/demo/shared/icons/olena_smaller.jpg
b/scribo/demo/shared/icons/olena_smaller.jpg
new file mode 100644
index 0000000000000000000000000000000000000000..c6b9110b047424a3ff83f2dcfce93ae2d2a172d9
GIT binary patch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WN2(=6S4u5d*NdcX^8wPE
zj~&;IT$7*G@tCiNtB*1E$=rz~=`a0ltEHD85-ZB3#O*%{6pE)zo=xG#7<ziG$2{Ch
zr#ulH+U@Nxy_fevtNZadeA`@XF-u3oMPE!<INC2MYr04JAS6%w>`ZwnfYV_lcl}+C
bgz4Fa|5>K}fG8QRgI>%Sw?|pt^~`?&8`a%<
literal 0
HcmV?d00001
diff --git a/scribo/demo/shared/shared.qrc b/scribo/demo/shared/shared.qrc
index 051c986..3e1fd85 100644
--- a/scribo/demo/shared/shared.qrc
+++ b/scribo/demo/shared/shared.qrc
@@ -1,5 +1,6 @@
<RCC>
- <qresource prefix="icons" >
+ <qresource prefix="icons">
+ <file>icons/olena_smaller.jpg</file>
<file>icons/close.gif</file>
<file>icons/image-next-icon.png</file>
<file>icons/page-down-icon.png</file>
diff --git a/scribo/demo/viewer/Makefile.am b/scribo/demo/viewer/Makefile.am
index fa143c9..2c5e4cf 100644
--- a/scribo/demo/viewer/Makefile.am
+++ b/scribo/demo/viewer/Makefile.am
@@ -63,7 +63,7 @@ BUILT_SOURCES = viewer.moc.cc \
image_scene.moc.cc \
image_view.moc.cc \
image_region.moc.cc \
- help_dialog.moc.cc \
+ help_dialog.ui.h \
step_widget.moc.cc \
toolchain_options.moc.cc \
toolchain_options.ui.h \
@@ -74,7 +74,8 @@ BUILT_SOURCES = viewer.moc.cc \
preferences_dialog.ui.h \
general_options.moc.cc \
general_options.ui.h \
- demodir.hh
+ demodir.hh \
+ viewer.qrc.cc
noinst_HEADERS = viewer.hh \
@@ -121,5 +122,6 @@ EXTRA_DIST = \
preferences_dialog.ui \
README \
toolchain_options.ui \
+ help_dialog.ui \
demodir.hh.in
diff --git a/scribo/demo/viewer/help_dialog.cc b/scribo/demo/viewer/help_dialog.cc
index 1f4a775..2d5ce6c 100644
--- a/scribo/demo/viewer/help_dialog.cc
+++ b/scribo/demo/viewer/help_dialog.cc
@@ -1,4 +1,5 @@
-// Copyright (C) 2010 EPITA Research and Development Laboratory (LRDE)
+// Copyright (C) 2010, 2011 EPITA Research and Development Laboratory
+// (LRDE)
//
// This file is part of Olena.
//
@@ -18,43 +19,5 @@
HelpDialog::HelpDialog()
{
- QPushButton *closeButton = new QPushButton(tr("Close"));
- connect(closeButton, SIGNAL(clicked()), this, SLOT(close()));
-
- QHBoxLayout *buttonsLayout = new QHBoxLayout;
- buttonsLayout->addStretch(1);
- buttonsLayout->addWidget(closeButton);
-
- QVBoxLayout *mainLayout = new QVBoxLayout;
-
- QString help = tr(
- "Document layout viewer:\n"
- "\n"
- "Usage:\n"
- " - Choose an image file in the file browser,\n"
- "if XML file(s) whose prefix name is the same as\n"
- "the image name (i.e.image _name(_ .*)?.xml) is present\n"
- "then you can choose the one you want in the step\n"
- "chooser to display it on the scene.\n"
- "- To load a base 64 encoded XML file,\n"
- "its extension has to be .xmlc otherwise \n"
- "the program won't recognize it !\n"
- " - Select regions to display their properties.\n"
- " - Use the mouse or keyboard to move and zoom\n"
- " (Arrows, PageUp, PageDown, Home, End).\n"
- "\n");
-
-
- QLabel* label = new QLabel(help);
-
- mainLayout->addWidget(label);
- mainLayout->addLayout(buttonsLayout);
-
- setLayout(mainLayout);
- setWindowTitle(tr("About"));
-}
-
-void HelpDialog::done()
-{
- emit close();
+ setupUi(this);
}
diff --git a/scribo/demo/viewer/help_dialog.hh b/scribo/demo/viewer/help_dialog.hh
index 41be95d..9f179c6 100644
--- a/scribo/demo/viewer/help_dialog.hh
+++ b/scribo/demo/viewer/help_dialog.hh
@@ -1,4 +1,5 @@
-// Copyright (C) 2010 EPITA Research and Development Laboratory (LRDE)
+// Copyright (C) 2010, 2011 EPITA Research and Development Laboratory
+// (LRDE)
//
// This file is part of Olena.
//
@@ -18,17 +19,13 @@
# define SCRIBO_DEMO_VIEWER_HELP_DIALOG_HH
# include <QtGui>
+# include <help_dialog.ui.h>
-class HelpDialog
- : public QDialog
+class HelpDialog : public QDialog, private Ui::HelpDialog
{
- Q_OBJECT
-
public:
HelpDialog();
-public slots:
- void done();
};
#endif // ! SCRIBO_DEMO_VIEWER_HELP_DIALOG_HH
diff --git a/scribo/demo/viewer/help_dialog.ui b/scribo/demo/viewer/help_dialog.ui
new file mode 100644
index 0000000..9ab7e58
--- /dev/null
+++ b/scribo/demo/viewer/help_dialog.ui
@@ -0,0 +1,138 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<ui version="4.0">
+ <class>HelpDialog</class>
+ <widget class="QDialog" name="HelpDialog">
+ <property name="geometry">
+ <rect>
+ <x>0</x>
+ <y>0</y>
+ <width>557</width>
+ <height>390</height>
+ </rect>
+ </property>
+ <property name="sizePolicy">
+ <sizepolicy hsizetype="Minimum" vsizetype="Minimum">
+ <horstretch>0</horstretch>
+ <verstretch>0</verstretch>
+ </sizepolicy>
+ </property>
+ <property name="minimumSize">
+ <size>
+ <width>557</width>
+ <height>390</height>
+ </size>
+ </property>
+ <property name="maximumSize">
+ <size>
+ <width>557</width>
+ <height>390</height>
+ </size>
+ </property>
+ <property name="windowTitle">
+ <string>About</string>
+ </property>
+ <property name="windowIcon">
+ <iconset resource="viewer.qrc">
+
<normaloff>:/icons/shared/icons/olena_smaller.jpg</normaloff>:/icons/shared/icons/olena_smaller.jpg</iconset>
+ </property>
+ <layout class="QGridLayout" name="gridLayout">
+ <item row="0" column="0">
+ <layout class="QVBoxLayout" name="verticalLayout">
+ <item>
+ <widget class="QLabel" name="label">
+ <property name="text">
+ <string/>
+ </property>
+ <property name="pixmap">
+ <pixmap
resource="viewer.qrc">:/icons/shared/icons/olena_smaller.jpg</pixmap>
+ </property>
+ <property name="scaledContents">
+ <bool>false</bool>
+ </property>
+ </widget>
+ </item>
+ <item>
+ <spacer name="verticalSpacer">
+ <property name="orientation">
+ <enum>Qt::Vertical</enum>
+ </property>
+ <property name="sizeHint" stdset="0">
+ <size>
+ <width>20</width>
+ <height>40</height>
+ </size>
+ </property>
+ </spacer>
+ </item>
+ </layout>
+ </item>
+ <item row="0" column="1">
+ <widget class="QLabel" name="label_2">
+ <property name="sizePolicy">
+ <sizepolicy hsizetype="Preferred" vsizetype="Preferred">
+ <horstretch>0</horstretch>
+ <verstretch>0</verstretch>
+ </sizepolicy>
+ </property>
+ <property name="text">
+ <string><!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML
4.0//EN" "http://www.w3.org/TR/REC-html40/strict.dtd">
+<html><head><meta name="qrichtext"
content="1" /><style
type="text/css">
+p, li { white-space: pre-wrap; }
+</style></head><body style="
font-family:'DejaVu Sans'; font-size:9pt; font-weight:400;
font-style:normal;">
+<p style=" margin-top:0px; margin-bottom:0px; margin-left:0px;
margin-right:0px; -qt-block-indent:0; text-indent:0px;"><span
style=" font-size:12pt; font-weight:600;">Document Image Analysis
Tool</span></p>
+<p style="-qt-paragraph-type:empty; margin-top:0px; margin-bottom:0px;
margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; font-size:12pt;
font-weight:600;"></p>
+<p style="-qt-paragraph-type:empty; margin-top:0px; margin-bottom:0px;
margin-left:0px; margin-right:0px; -qt-block-indent:0;
text-indent:0px;"></p>
+<p style=" margin-top:0px; margin-bottom:0px; margin-left:0px;
margin-right:0px; -qt-block-indent:0; text-indent:0px;">This project is
powered by <span style=" font-weight:600;
font-style:italic;">Milena</span>, a generic image
processing library.</p>
+<p style="-qt-paragraph-type:empty; margin-top:0px; margin-bottom:0px;
margin-left:0px; margin-right:0px; -qt-block-indent:0;
text-indent:0px;"></p>
+<p style=" margin-top:0px; margin-bottom:0px; margin-left:0px;
margin-right:0px; -qt-block-indent:0; text-indent:0px;">It is part of
<span style=" font-weight:600;
font-style:italic;">Olena</span>, an Image Processing
Platform and its module <span style=" font-weight:600;
font-style:italic;">Scribo</span>, a set of tools for
Document Image Analysis.</p>
+<p style="-qt-paragraph-type:empty; margin-top:0px; margin-bottom:0px;
margin-left:0px; margin-right:0px; -qt-block-indent:0;
text-indent:0px;"></p>
+<p style="-qt-paragraph-type:empty; margin-top:0px; margin-bottom:0px;
margin-left:0px; margin-right:0px; -qt-block-indent:0;
text-indent:0px;"></p>
+<p align="center" style=" margin-top:0px;
margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0;
text-indent:0px;"><a
href="http://olena.lrde.epita.fr"><span style="
text-decoration: underline;
color:#0057ae;">http://olena.lrde.epita.fr</span></a></p>
+<p style="-qt-paragraph-type:empty; margin-top:0px; margin-bottom:0px;
margin-left:0px; margin-right:0px; -qt-block-indent:0;
text-indent:0px;"></p>
+<p style="-qt-paragraph-type:empty; margin-top:0px; margin-bottom:0px;
margin-left:0px; margin-right:0px; -qt-block-indent:0;
text-indent:0px;"></p>
+<p style=" margin-top:0px; margin-bottom:0px; margin-left:0px;
margin-right:0px; -qt-block-indent:0; text-indent:0px;"><span
style=" font-size:8pt;">Thanks to Arthur Crépin-Leblond, Samuel
Da Mota, Loic Denuziere, </span><span style="
font-size:8pt;">Jérôme Galtier,</span><span
style=" font-size:8pt;"> </span><span
style=" font-size:8pt;">Florent d'Halluin,
</span><span style=" font-size:8pt;">Alex
Hamelin, </span><span style="
font-size:8pt;">Damien Lefortier, </span><span
style=" font-size:8pt;">Vincent Ordy,
</span><span style="
font-size:8pt;">Guillaume Sadegh and</span><span
style=" font-size:8pt;"> </span><span
style=" font-size:8pt;">Warren Seine
</span><span style=" font-size:8pt;">for
their contribution.</span></p>
+<p style="-qt-paragraph-type:empty; margin-top:0px; margin-bottom:0px;
margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;
font-size:8pt;"></p>
+<p align="justify" style="-qt-paragraph-type:empty;
margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0;
text-indent:0px; font-size:8pt;"></p>
+<p style=" margin-top:0px; margin-bottom:0px; margin-left:0px;
margin-right:0px; -qt-block-indent:0; text-indent:0px;"><span
style=" font-size:7pt;">This application has been developed in
the context of the SCRIBO project of the Free Software Thematic Group, part of the
&quot;System@tic Paris-Région&quot; Cluster (France). This project is
partially funded by the French Government, its economic development agencies, and by the
Paris-Région institutions.</span></p>
+<p style="-qt-paragraph-type:empty; margin-top:0px; margin-bottom:0px;
margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;
font-size:7pt;"></p>
+<p style=" margin-top:0px; margin-bottom:0px; margin-left:0px;
margin-right:0px; -qt-block-indent:0; text-indent:0px;"><span
style=" font-size:7pt;">Copyright (C) 2010, 2011 EPITA Research
and Development Laboratory
(LRDE)</span></p></body></html></string>
+ </property>
+ <property name="wordWrap">
+ <bool>true</bool>
+ </property>
+ </widget>
+ </item>
+ <item row="1" column="1">
+ <widget class="QDialogButtonBox" name="buttonBox">
+ <property name="standardButtons">
+ <set>QDialogButtonBox::Ok</set>
+ </property>
+ <property name="centerButtons">
+ <bool>true</bool>
+ </property>
+ </widget>
+ </item>
+ </layout>
+ </widget>
+ <resources>
+ <include location="viewer.qrc"/>
+ </resources>
+ <connections>
+ <connection>
+ <sender>buttonBox</sender>
+ <signal>accepted()</signal>
+ <receiver>HelpDialog</receiver>
+ <slot>accept()</slot>
+ <hints>
+ <hint type="sourcelabel">
+ <x>281</x>
+ <y>391</y>
+ </hint>
+ <hint type="destinationlabel">
+ <x>240</x>
+ <y>203</y>
+ </hint>
+ </hints>
+ </connection>
+ </connections>
+</ui>
diff --git a/scribo/demo/viewer/viewer.qrc b/scribo/demo/viewer/viewer.qrc
new file mode 100644
index 0000000..361b332
--- /dev/null
+++ b/scribo/demo/viewer/viewer.qrc
@@ -0,0 +1,5 @@
+<RCC>
+ <qresource prefix="icons">
+ <file>../shared/icons/olena_smaller.jpg</file>
+ </qresource>
+</RCC>
--
1.5.6.5