---
GScribo/GScribo.pro | 11 +-
GScribo/GScribo.pro.user | 847 +++++-----------------
GScribo/Processing/progressdialog.cpp | 1 +
GScribo/Processing/runner.cpp | 2 +-
GScribo/Rendering/polygonitem.h | 11 +
GScribo/Rendering/scene.cpp | 17 +-
GScribo/Rendering/scene.h | 7 +-
GScribo/configs.cpp | 2 +-
GScribo/main.cpp | 4 +-
GScribo/mainwindow.cpp | 43 +-
GScribo/mainwindow.h | 7 +
XmlTree/pointer.h => GScribo/variantpointer.h | 10 +-
GScribo/xml.cpp | 234 ++++---
GScribo/xml.h | 51 +-
GScribo/xmlwidget.cpp | 19 +
GScribo/xmlwidget.h | 25 +
XmlTree/pointer.h => VariantPointer.h | 10 +-
XmlParser/XmlParser.pro.user | 984 ++++---------------------
XmlParser/xml.cpp | 1 +
XmlTree/XmlTree.pro.user | 516 +++++++------
XmlTree/mainwindow.cpp | 13 +-
XmlTree/mainwindow.h | 2 +
XmlTree/polygonitem.h | 12 +
XmlTree/xml.cpp | 174 ++++-
XmlTree/xml.h | 35 +-
25 files changed, 1090 insertions(+), 1948 deletions(-)
copy XmlTree/pointer.h => GScribo/variantpointer.h (65%)
create mode 100644 GScribo/xmlwidget.cpp
create mode 100644 GScribo/xmlwidget.h
copy XmlTree/pointer.h => VariantPointer.h (65%)
diff --git a/GScribo/GScribo.pro b/GScribo/GScribo.pro
index 4175a7f..dc10ae6 100644
--- a/GScribo/GScribo.pro
+++ b/GScribo/GScribo.pro
@@ -17,6 +17,7 @@ SOURCES += main.cpp \
configs.cpp \
Rendering/scene.cpp \
Rendering/selection.cpp \
+ Rendering/polygonitem.cpp \
PagesViewer/pageswidget.cpp \
PagesViewer/listmodel.cpp \
Preferences/segmentationoptions.cpp \
@@ -25,17 +26,18 @@ SOURCES += main.cpp \
Preferences/generaloptions.cpp \
Preferences/optionwidget.cpp \
Preferences/preferencesdialog.cpp \
- Rendering/polygonitem.cpp \
Processing/progressdialog.cpp \
Processing/process.cpp \
Processing/preprocess.cpp \
Processing/runner.cpp \
- xml.cpp
+ xml.cpp \
+ xmlwidget.cpp
HEADERS += mainwindow.h \
configs.h \
region.h \
Rendering/scene.h \
Rendering/selection.h \
+ Rendering/polygonitem.h \
PagesViewer/pageswidget.h \
PagesViewer/listmodel.h \
Preferences/segmentationoptions.h \
@@ -44,13 +46,14 @@ HEADERS += mainwindow.h \
Preferences/generaloptions.h \
Preferences/optionwidget.h \
Preferences/preferencesdialog.h \
- Rendering/polygonitem.h \
Processing/preprocess.h \
Processing/progressdialog.h \
Processing/process.h \
dir.h \
Processing/runner.h \
- xml.h
+ xml.h \
+ variantpointer.h \
+ xmlwidget.h
FORMS += mainwindow.ui \
Preferences/preferencesdialog.ui \
Preferences/ocroptions.ui \
diff --git a/GScribo/GScribo.pro.user b/GScribo/GScribo.pro.user
index e10e6ac..aa72d79 100644
--- a/GScribo/GScribo.pro.user
+++ b/GScribo/GScribo.pro.user
@@ -1,692 +1,223 @@
-<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE QtCreatorProject>
-<!-- Written by Qt Creator 2.4.1, 2013-01-27T15:34:43. -->
<qtcreator>
<data>
- <variable>ProjectExplorer.Project.ActiveTarget</variable>
+ <variable>RunConfiguration0-BaseEnvironmentBase</variable>
+ <value type="int">2</value>
+ </data>
+ <data>
+ <variable>RunConfiguration0-CommandLineArguments</variable>
+ <valuelist type="QVariantList"/>
+ </data>
+ <data>
+ <variable>RunConfiguration0-ProFile</variable>
+ <value type="QString">GScribo.pro</value>
+ </data>
+ <data>
+ <variable>RunConfiguration0-RunConfiguration.name</variable>
+ <value type="QString">GScribo</value>
+ </data>
+ <data>
+ <variable>RunConfiguration0-UseDyldImageSuffix</variable>
+ <value type="bool">false</value>
+ </data>
+ <data>
+ <variable>RunConfiguration0-UseTerminal</variable>
+ <value type="bool">false</value>
+ </data>
+ <data>
+ <variable>RunConfiguration0-UserEnvironmentChanges</variable>
+ <valuelist type="QVariantList"/>
+ </data>
+ <data>
+ <variable>RunConfiguration0-UserSetName</variable>
+ <value type="bool">false</value>
+ </data>
+ <data>
+ <variable>RunConfiguration0-UserSetWorkingDirectory</variable>
+ <value type="bool">false</value>
+ </data>
+ <data>
+ <variable>RunConfiguration0-UserWorkingDirectory</variable>
+ <value type="QString"></value>
+ </data>
+ <data>
+ <variable>RunConfiguration0-type</variable>
+ <value
type="QString">Qt4ProjectManager.Qt4RunConfiguration</value>
+ </data>
+ <data>
+ <variable>activeRunConfiguration</variable>
<value type="int">0</value>
</data>
<data>
- <variable>ProjectExplorer.Project.EditorSettings</variable>
+ <variable>activebuildconfiguration</variable>
+ <value type="QString">Debug</value>
+ </data>
+ <data>
+ <variable>buildConfiguration-Debug</variable>
<valuemap type="QVariantMap">
- <value type="bool"
key="EditorConfiguration.AutoIndent">true</value>
- <value type="bool"
key="EditorConfiguration.AutoSpacesForTabs">false</value>
- <valuemap type="QVariantMap"
key="EditorConfiguration.CodeStyle.0">
- <value type="QString" key="language">Cpp</value>
- <valuemap type="QVariantMap" key="value">
- <value type="QString"
key="CurrentPreferences">CppGlobal</value>
- </valuemap>
- </valuemap>
- <valuemap type="QVariantMap"
key="EditorConfiguration.CodeStyle.1">
- <value type="QString" key="language">QmlJS</value>
- <valuemap type="QVariantMap" key="value">
- <value type="QString"
key="CurrentPreferences">QmlJSGlobal</value>
- </valuemap>
- </valuemap>
- <value type="int"
key="EditorConfiguration.CodeStyle.Count">2</value>
- <value type="QByteArray"
key="EditorConfiguration.Codec">System</value>
- <value type="bool"
key="EditorConfiguration.ConstrainTooltips">false</value>
- <value type="int"
key="EditorConfiguration.IndentSize">4</value>
- <value type="bool"
key="EditorConfiguration.MouseNavigation">true</value>
- <value type="int"
key="EditorConfiguration.PaddingMode">1</value>
- <value type="bool"
key="EditorConfiguration.ScrollWheelZooming">true</value>
- <value type="int"
key="EditorConfiguration.SmartBackspaceBehavior">0</value>
- <value type="bool"
key="EditorConfiguration.SpacesForTabs">true</value>
- <value type="int"
key="EditorConfiguration.TabKeyBehavior">0</value>
- <value type="int"
key="EditorConfiguration.TabSize">8</value>
- <value type="bool"
key="EditorConfiguration.UseGlobal">true</value>
- <value type="int"
key="EditorConfiguration.Utf8BomBehavior">1</value>
- <value type="bool"
key="EditorConfiguration.addFinalNewLine">true</value>
- <value type="bool"
key="EditorConfiguration.cleanIndentation">true</value>
- <value type="bool"
key="EditorConfiguration.cleanWhitespace">true</value>
- <value type="bool"
key="EditorConfiguration.inEntireDocument">false</value>
+ <value key="ProjectExplorer.BuildConfiguration.DisplayName"
type="QString">Debug</value>
+ <value key="QtVersionId" type="int">2</value>
+ <value key="ToolChain" type="int">0</value>
+ <value key="addQDumper" type=""></value>
+ <value key="buildConfiguration" type="int">2</value>
</valuemap>
</data>
<data>
- <variable>ProjectExplorer.Project.PluginSettings</variable>
- <valuemap type="QVariantMap"/>
+ <variable>buildconfiguration-Debug-buildstep0</variable>
+ <valuemap type="QVariantMap">
+ <value key="ProjectExplorer.BuildConfiguration.DisplayName"
type="QString">Debug</value>
+ <valuelist key="abstractProcess.Environment"
type="QVariantList">
+ <value
type="QString">DBUS_SESSION_BUS_ADDRESS=unix:abstract=/tmp/dbus-2BHwXLdG3H,guid=3f8e1369093fc6feda23ccd2006fd740</value>
+ <value type="QString">DESKTOP_SESSION=fluxbox</value>
+ <value type="QString">DISPLAY=:0.0</value>
+ <value type="QString">GDMSESSION=fluxbox</value>
+ <value type="QString">GDM_LANG=fr_FR.UTF-8</value>
+ <value type="QString">GDM_XSERVER_LOCATION=local</value>
+ <value
type="QString">GNOME_KEYRING_CONTROL=/tmp/keyring-8mf291</value>
+ <value type="QString">GNOME_KEYRING_PID=5053</value>
+ <value type="QString">GTK_MODULES=canberra-gtk-module</value>
+ <value type="QString">HOME=/lrde/home/stage/froger_a</value>
+ <value type="QString">LANG=fr_FR.UTF-8</value>
+ <value
type="QString">LD_LIBRARY_PATH=/usr/lib/qtcreator</value>
+ <value type="QString">LOGNAME=froger_a</value>
+ <value
type="QString">OLDPWD=/lrde/home/stage/froger_a/qt</value>
+ <value
type="QString">PATH=/usr/bin:/usr/local/bin:/usr/bin:/bin:/usr/local/games:/usr/games</value>
+ <value
type="QString">PWD=/lrde/home/stage/froger_a/qt/GScribo</value>
+ <value type="QString">QTDIR=/usr/share/qt4</value>
+ <value type="QString">SHELL=/bin/bash</value>
+ <value type="QString">SHLVL=2</value>
+ <value type="QString">SSH_AGENT_PID=5128</value>
+ <value
type="QString">SSH_AUTH_SOCK=/tmp/ssh-aZWNsu5062/agent.5062</value>
+ <value type="QString">TERM=xterm</value>
+ <value type="QString">USER=froger_a</value>
+ <value type="QString">USERNAME=froger_a</value>
+ <value type="QString">WINDOWID=10485796</value>
+ <value
type="QString">WINDOWPATH=7:8:8:8:8:8:8:8:8:8:8:8:8:8:8:8:8:8:8:8:8:8:8:8:8:8:8:8:8:8:8:8:8:8:8:8:8:8</value>
+ <value type="QString">XAUTHORITY=/tmp/.gdmOYVRRW</value>
+ <value
type="QString">XDG_DATA_DIRS=/usr/local/share/:/usr/share/:/usr/share/gdm/</value>
+ <value
type="QString">XDG_SESSION_COOKIE=b24883b9b4dbfb80ea83575b00000a11-1359377411.799018-1039497682</value>
+ <value type="QString">XPSERVERLIST=:64 </value>
+ <value type="QString">XTERM_LOCALE=fr_FR.UTF-8</value>
+ <value type="QString">XTERM_SHELL=/bin/bash</value>
+ <value type="QString">XTERM_VERSION=XTerm(261)</value>
+ <value type="QString">_=/usr/bin/qtcreator</value>
+ </valuelist>
+ <valuelist key="abstractProcess.arguments"
type="QVariantList">
+ <value
type="QString">/amd/nfs/volume1/home/stage/froger_a/qt/GScribo/GScribo.pro</value>
+ <value type="QString">-spec</value>
+ <value type="QString">linux-g++</value>
+ <value type="QString">-r</value>
+ <value type="QString">CONFIG+=debug</value>
+ </valuelist>
+ <value key="abstractProcess.command"
type="QString">/usr/bin/qmake-qt4</value>
+ <value key="abstractProcess.enabled"
type="bool">false</value>
+ <value key="abstractProcess.workingDirectory"
type="QString">/amd/nfs/volume1/home/stage/froger_a/qt/GScribo</value>
+ </valuemap>
</data>
<data>
- <variable>ProjectExplorer.Project.Target.0</variable>
+ <variable>buildconfiguration-Debug-buildstep1</variable>
<valuemap type="QVariantMap">
- <value type="QString"
key="ProjectExplorer.ProjectConfiguration.DefaultDisplayName"></value>
- <value type="QString"
key="ProjectExplorer.ProjectConfiguration.DisplayName"></value>
- <value type="QString"
key="ProjectExplorer.ProjectConfiguration.Id">Qt4ProjectManager.Target.DesktopTarget</value>
- <value type="int"
key="ProjectExplorer.Target.ActiveBuildConfiguration">0</value>
- <value type="int"
key="ProjectExplorer.Target.ActiveDeployConfiguration">0</value>
- <value type="int"
key="ProjectExplorer.Target.ActiveRunConfiguration">0</value>
- <valuemap type="QVariantMap"
key="ProjectExplorer.Target.BuildConfiguration.0">
- <value type="QString"
key="ProjectExplorer.BuildCOnfiguration.ToolChain">INVALID</value>
- <valuemap type="QVariantMap"
key="ProjectExplorer.BuildConfiguration.BuildStepList.0">
- <valuemap type="QVariantMap"
key="ProjectExplorer.BuildStepList.Step.0">
- <value type="QString"
key="ProjectExplorer.ProjectConfiguration.DefaultDisplayName">qmake</value>
- <value type="QString"
key="ProjectExplorer.ProjectConfiguration.DisplayName"></value>
- <value type="QString"
key="ProjectExplorer.ProjectConfiguration.Id">QtProjectManager.QMakeBuildStep</value>
- <value type="bool"
key="QtProjectManager.QMakeBuildStep.LinkQmlDebuggingLibrary">false</value>
- <value type="bool"
key="QtProjectManager.QMakeBuildStep.LinkQmlDebuggingLibraryAuto">false</value>
- <value type="QString"
key="QtProjectManager.QMakeBuildStep.QMakeArguments"></value>
- <value type="bool"
key="QtProjectManager.QMakeBuildStep.QMakeForced">false</value>
- </valuemap>
- <valuemap type="QVariantMap"
key="ProjectExplorer.BuildStepList.Step.1">
- <value type="QString"
key="ProjectExplorer.ProjectConfiguration.DefaultDisplayName">Make</value>
- <value type="QString"
key="ProjectExplorer.ProjectConfiguration.DisplayName"></value>
- <value type="QString"
key="ProjectExplorer.ProjectConfiguration.Id">Qt4ProjectManager.MakeStep</value>
- <value type="bool"
key="Qt4ProjectManager.MakeStep.Clean">false</value>
- <value type="QString"
key="Qt4ProjectManager.MakeStep.MakeArguments"></value>
- <value type="QString"
key="Qt4ProjectManager.MakeStep.MakeCommand"></value>
- </valuemap>
- <value type="int"
key="ProjectExplorer.BuildStepList.StepsCount">2</value>
- <value type="QString"
key="ProjectExplorer.ProjectConfiguration.DefaultDisplayName">Compiler</value>
- <value type="QString"
key="ProjectExplorer.ProjectConfiguration.DisplayName">Build</value>
- <value type="QString"
key="ProjectExplorer.ProjectConfiguration.Id">ProjectExplorer.BuildSteps.Build</value>
- </valuemap>
- <valuemap type="QVariantMap"
key="ProjectExplorer.BuildConfiguration.BuildStepList.1">
- <valuemap type="QVariantMap"
key="ProjectExplorer.BuildStepList.Step.0">
- <value type="QString"
key="ProjectExplorer.ProjectConfiguration.DefaultDisplayName">Make</value>
- <value type="QString"
key="ProjectExplorer.ProjectConfiguration.DisplayName"></value>
- <value type="QString"
key="ProjectExplorer.ProjectConfiguration.Id">Qt4ProjectManager.MakeStep</value>
- <value type="bool"
key="Qt4ProjectManager.MakeStep.Clean">true</value>
- <value type="QString"
key="Qt4ProjectManager.MakeStep.MakeArguments">clean</value>
- <value type="QString"
key="Qt4ProjectManager.MakeStep.MakeCommand"></value>
- </valuemap>
- <value type="int"
key="ProjectExplorer.BuildStepList.StepsCount">1</value>
- <value type="QString"
key="ProjectExplorer.ProjectConfiguration.DefaultDisplayName">Nettoyer</value>
- <value type="QString"
key="ProjectExplorer.ProjectConfiguration.DisplayName">Clean</value>
- <value type="QString"
key="ProjectExplorer.ProjectConfiguration.Id">ProjectExplorer.BuildSteps.Clean</value>
- </valuemap>
- <value type="int"
key="ProjectExplorer.BuildConfiguration.BuildStepListCount">2</value>
- <value type="bool"
key="ProjectExplorer.BuildConfiguration.ClearSystemEnvironment">false</value>
- <valuelist type="QVariantList"
key="ProjectExplorer.BuildConfiguration.UserEnvironmentChanges"/>
- <value type="QString"
key="ProjectExplorer.ProjectConfiguration.DefaultDisplayName">Debug</value>
- <value type="QString"
key="ProjectExplorer.ProjectConfiguration.DisplayName">Debug</value>
- <value type="QString"
key="ProjectExplorer.ProjectConfiguration.Id">Qt4ProjectManager.Qt4BuildConfiguration</value>
- <value type="int"
key="Qt4ProjectManager.Qt4BuildConfiguration.BuildConfiguration">2</value>
- <value type="QString"
key="Qt4ProjectManager.Qt4BuildConfiguration.BuildDirectory">/home/onix/qt/GScribo-build-desktop-Debug</value>
- <value type="int"
key="Qt4ProjectManager.Qt4BuildConfiguration.QtVersionId">-1</value>
- <value type="bool"
key="Qt4ProjectManager.Qt4BuildConfiguration.UseShadowBuild">false</value>
- </valuemap>
- <value type="int"
key="ProjectExplorer.Target.BuildConfigurationCount">1</value>
- <valuemap type="QVariantMap"
key="ProjectExplorer.Target.DeployConfiguration.0">
- <valuemap type="QVariantMap"
key="ProjectExplorer.BuildConfiguration.BuildStepList.0">
- <value type="int"
key="ProjectExplorer.BuildStepList.StepsCount">0</value>
- <value type="QString"
key="ProjectExplorer.ProjectConfiguration.DefaultDisplayName">Déploiement</value>
- <value type="QString"
key="ProjectExplorer.ProjectConfiguration.DisplayName">Deploy</value>
- <value type="QString"
key="ProjectExplorer.ProjectConfiguration.Id">ProjectExplorer.BuildSteps.Deploy</value>
- </valuemap>
- <value type="int"
key="ProjectExplorer.BuildConfiguration.BuildStepListCount">1</value>
- <value type="QString"
key="ProjectExplorer.ProjectConfiguration.DefaultDisplayName">Pas de
déploiement</value>
- <value type="QString"
key="ProjectExplorer.ProjectConfiguration.DisplayName">Pas de
déploiement</value>
- <value type="QString"
key="ProjectExplorer.ProjectConfiguration.Id">ProjectExplorer.DefaultDeployConfiguration</value>
- </valuemap>
- <value type="int"
key="ProjectExplorer.Target.DeployConfigurationCount">1</value>
- <valuemap type="QVariantMap"
key="ProjectExplorer.Target.RunConfiguration.0">
- <value type="bool"
key="Analyzer.Project.UseGlobal">true</value>
- <value type="bool"
key="Analyzer.Project.UseGlobal">true</value>
- <valuelist type="QVariantList"
key="Analyzer.Valgrind.AddedSuppressionFiles"/>
- <valuelist type="QVariantList"
key="Analyzer.Valgrind.AddedSuppressionFiles"/>
- <value type="bool"
key="Analyzer.Valgrind.Callgrind.CollectBusEvents">false</value>
- <value type="bool"
key="Analyzer.Valgrind.Callgrind.CollectBusEvents">false</value>
- <value type="bool"
key="Analyzer.Valgrind.Callgrind.CollectSystime">false</value>
- <value type="bool"
key="Analyzer.Valgrind.Callgrind.CollectSystime">false</value>
- <value type="bool"
key="Analyzer.Valgrind.Callgrind.EnableBranchSim">false</value>
- <value type="bool"
key="Analyzer.Valgrind.Callgrind.EnableBranchSim">false</value>
- <value type="bool"
key="Analyzer.Valgrind.Callgrind.EnableCacheSim">false</value>
- <value type="bool"
key="Analyzer.Valgrind.Callgrind.EnableCacheSim">false</value>
- <value type="bool"
key="Analyzer.Valgrind.Callgrind.EnableEventToolTips">true</value>
- <value type="bool"
key="Analyzer.Valgrind.Callgrind.EnableEventToolTips">true</value>
- <value type="double"
key="Analyzer.Valgrind.Callgrind.MinimumCostRatio">0.01</value>
- <value type="double"
key="Analyzer.Valgrind.Callgrind.MinimumCostRatio">0.01</value>
- <value type="double"
key="Analyzer.Valgrind.Callgrind.VisualisationMinimumCostRatio">10</value>
- <value type="double"
key="Analyzer.Valgrind.Callgrind.VisualisationMinimumCostRatio">10</value>
- <value type="bool"
key="Analyzer.Valgrind.FilterExternalIssues">true</value>
- <value type="bool"
key="Analyzer.Valgrind.FilterExternalIssues">true</value>
- <value type="int"
key="Analyzer.Valgrind.NumCallers">25</value>
- <value type="int"
key="Analyzer.Valgrind.NumCallers">25</value>
- <valuelist type="QVariantList"
key="Analyzer.Valgrind.RemovedSuppressionFiles"/>
- <valuelist type="QVariantList"
key="Analyzer.Valgrind.RemovedSuppressionFiles"/>
- <value type="bool"
key="Analyzer.Valgrind.TrackOrigins">true</value>
- <value type="bool"
key="Analyzer.Valgrind.TrackOrigins">true</value>
- <value type="QString"
key="Analyzer.Valgrind.ValgrindExecutable">valgrind</value>
- <value type="QString"
key="Analyzer.Valgrind.ValgrindExecutable">valgrind</value>
- <valuelist type="QVariantList"
key="Analyzer.Valgrind.VisibleErrorKinds">
- <value type="int">0</value>
- <value type="int">1</value>
- <value type="int">2</value>
- <value type="int">3</value>
- <value type="int">4</value>
- <value type="int">5</value>
- <value type="int">6</value>
- <value type="int">7</value>
- <value type="int">8</value>
- <value type="int">9</value>
- <value type="int">10</value>
- <value type="int">11</value>
- <value type="int">12</value>
- <value type="int">13</value>
- <value type="int">14</value>
- </valuelist>
- <valuelist type="QVariantList"
key="Analyzer.Valgrind.VisibleErrorKinds">
- <value type="int">0</value>
- <value type="int">1</value>
- <value type="int">2</value>
- <value type="int">3</value>
- <value type="int">4</value>
- <value type="int">5</value>
- <value type="int">6</value>
- <value type="int">7</value>
- <value type="int">8</value>
- <value type="int">9</value>
- <value type="int">10</value>
- <value type="int">11</value>
- <value type="int">12</value>
- <value type="int">13</value>
- <value type="int">14</value>
- </valuelist>
- <value type="QString"
key="ProjectExplorer.ProjectConfiguration.DefaultDisplayName">Configuration
d'exécution Qt4</value>
- <value type="QString"
key="ProjectExplorer.ProjectConfiguration.DisplayName">GScribo</value>
- <value type="QString"
key="ProjectExplorer.ProjectConfiguration.Id">Qt4ProjectManager.Qt4RunConfiguration</value>
- <value type="int"
key="Qt4ProjectManager.Qt4RunConfiguration.BaseEnvironmentBase">2</value>
- <value type="QString"
key="Qt4ProjectManager.Qt4RunConfiguration.CommandLineArguments"></value>
- <value type="QString"
key="Qt4ProjectManager.Qt4RunConfiguration.ProFile">GScribo.pro</value>
- <value type="bool"
key="Qt4ProjectManager.Qt4RunConfiguration.UseDyldImageSuffix">false</value>
- <value type="bool"
key="Qt4ProjectManager.Qt4RunConfiguration.UseTerminal">false</value>
- <valuelist type="QVariantList"
key="Qt4ProjectManager.Qt4RunConfiguration.UserEnvironmentChanges"/>
- <value type="QString"
key="Qt4ProjectManager.Qt4RunConfiguration.UserWorkingDirectory"></value>
- <value type="uint"
key="RunConfiguration.QmlDebugServerPort">3768</value>
- <value type="bool"
key="RunConfiguration.UseCppDebugger">true</value>
- <value type="bool"
key="RunConfiguration.UseQmlDebugger">false</value>
- <value type="bool"
key="RunConfiguration.UseQmlDebuggerAuto">false</value>
- </valuemap>
- <value type="int"
key="ProjectExplorer.Target.RunConfigurationCount">1</value>
+ <value key="ProjectExplorer.BuildConfiguration.DisplayName"
type="QString">Debug</value>
+ <valuelist key="abstractProcess.Environment"
type="QVariantList">
+ <value
type="QString">DBUS_SESSION_BUS_ADDRESS=unix:abstract=/tmp/dbus-2BHwXLdG3H,guid=3f8e1369093fc6feda23ccd2006fd740</value>
+ <value type="QString">DESKTOP_SESSION=fluxbox</value>
+ <value type="QString">DISPLAY=:0.0</value>
+ <value type="QString">GDMSESSION=fluxbox</value>
+ <value type="QString">GDM_LANG=fr_FR.UTF-8</value>
+ <value type="QString">GDM_XSERVER_LOCATION=local</value>
+ <value
type="QString">GNOME_KEYRING_CONTROL=/tmp/keyring-8mf291</value>
+ <value type="QString">GNOME_KEYRING_PID=5053</value>
+ <value type="QString">GTK_MODULES=canberra-gtk-module</value>
+ <value type="QString">HOME=/lrde/home/stage/froger_a</value>
+ <value type="QString">LANG=fr_FR.UTF-8</value>
+ <value
type="QString">LD_LIBRARY_PATH=/usr/lib/qtcreator</value>
+ <value type="QString">LOGNAME=froger_a</value>
+ <value
type="QString">OLDPWD=/lrde/home/stage/froger_a/qt</value>
+ <value
type="QString">PATH=/usr/bin:/usr/local/bin:/usr/bin:/bin:/usr/local/games:/usr/games</value>
+ <value
type="QString">PWD=/lrde/home/stage/froger_a/qt/GScribo</value>
+ <value type="QString">QTDIR=/usr/share/qt4</value>
+ <value type="QString">SHELL=/bin/bash</value>
+ <value type="QString">SHLVL=2</value>
+ <value type="QString">SSH_AGENT_PID=5128</value>
+ <value
type="QString">SSH_AUTH_SOCK=/tmp/ssh-aZWNsu5062/agent.5062</value>
+ <value type="QString">TERM=xterm</value>
+ <value type="QString">USER=froger_a</value>
+ <value type="QString">USERNAME=froger_a</value>
+ <value type="QString">WINDOWID=10485796</value>
+ <value
type="QString">WINDOWPATH=7:8:8:8:8:8:8:8:8:8:8:8:8:8:8:8:8:8:8:8:8:8:8:8:8:8:8:8:8:8:8:8:8:8:8:8:8:8</value>
+ <value type="QString">XAUTHORITY=/tmp/.gdmOYVRRW</value>
+ <value
type="QString">XDG_DATA_DIRS=/usr/local/share/:/usr/share/:/usr/share/gdm/</value>
+ <value
type="QString">XDG_SESSION_COOKIE=b24883b9b4dbfb80ea83575b00000a11-1359377411.799018-1039497682</value>
+ <value type="QString">XPSERVERLIST=:64 </value>
+ <value type="QString">XTERM_LOCALE=fr_FR.UTF-8</value>
+ <value type="QString">XTERM_SHELL=/bin/bash</value>
+ <value type="QString">XTERM_VERSION=XTerm(261)</value>
+ <value type="QString">_=/usr/bin/qtcreator</value>
+ </valuelist>
+ <value key="abstractProcess.IgnoreReturnValue"
type="bool">false</value>
+ <valuelist key="abstractProcess.arguments"
type="QVariantList">
+ <value type="QString">-w</value>
+ </valuelist>
+ <value key="abstractProcess.command"
type="QString">/usr/bin/make</value>
+ <value key="abstractProcess.enabled"
type="bool">true</value>
+ <value key="abstractProcess.workingDirectory"
type="QString">/amd/nfs/volume1/home/stage/froger_a/qt/GScribo</value>
</valuemap>
</data>
<data>
- <variable>ProjectExplorer.Project.Target.1</variable>
+ <variable>buildconfiguration-Debug-cleanstep0</variable>
<valuemap type="QVariantMap">
- <value type="QString"
key="ProjectExplorer.ProjectConfiguration.DefaultDisplayName">2</value>
- <value type="QString"
key="ProjectExplorer.ProjectConfiguration.DisplayName"></value>
- <value type="QString"
key="ProjectExplorer.ProjectConfiguration.Id">Qt4ProjectManager.Target.S60EmulatorTarget</value>
- <value type="int"
key="ProjectExplorer.Target.ActiveBuildConfiguration">0</value>
- <value type="int"
key="ProjectExplorer.Target.ActiveDeployConfiguration">0</value>
- <value type="int"
key="ProjectExplorer.Target.ActiveRunConfiguration">0</value>
- <valuemap type="QVariantMap"
key="ProjectExplorer.Target.BuildConfiguration.0">
- <value type="QString"
key="ProjectExplorer.BuildCOnfiguration.ToolChain">INVALID</value>
- <valuemap type="QVariantMap"
key="ProjectExplorer.BuildConfiguration.BuildStepList.0">
- <valuemap type="QVariantMap"
key="ProjectExplorer.BuildStepList.Step.0">
- <value type="QString"
key="ProjectExplorer.ProjectConfiguration.DefaultDisplayName">qmake</value>
- <value type="QString"
key="ProjectExplorer.ProjectConfiguration.DisplayName"></value>
- <value type="QString"
key="ProjectExplorer.ProjectConfiguration.Id">QtProjectManager.QMakeBuildStep</value>
- <value type="bool"
key="QtProjectManager.QMakeBuildStep.LinkQmlDebuggingLibrary">false</value>
- <value type="bool"
key="QtProjectManager.QMakeBuildStep.LinkQmlDebuggingLibraryAuto">false</value>
- <value type="QString"
key="QtProjectManager.QMakeBuildStep.QMakeArguments"></value>
- <value type="bool"
key="QtProjectManager.QMakeBuildStep.QMakeForced">false</value>
- </valuemap>
- <valuemap type="QVariantMap"
key="ProjectExplorer.BuildStepList.Step.1">
- <value type="QString"
key="ProjectExplorer.ProjectConfiguration.DefaultDisplayName">Make</value>
- <value type="QString"
key="ProjectExplorer.ProjectConfiguration.DisplayName"></value>
- <value type="QString"
key="ProjectExplorer.ProjectConfiguration.Id">Qt4ProjectManager.MakeStep</value>
- <value type="bool"
key="Qt4ProjectManager.MakeStep.Clean">false</value>
- <value type="QString"
key="Qt4ProjectManager.MakeStep.MakeArguments"></value>
- <value type="QString"
key="Qt4ProjectManager.MakeStep.MakeCommand"></value>
- </valuemap>
- <value type="int"
key="ProjectExplorer.BuildStepList.StepsCount">2</value>
- <value type="QString"
key="ProjectExplorer.ProjectConfiguration.DefaultDisplayName">Compiler</value>
- <value type="QString"
key="ProjectExplorer.ProjectConfiguration.DisplayName">Build</value>
- <value type="QString"
key="ProjectExplorer.ProjectConfiguration.Id">ProjectExplorer.BuildSteps.Build</value>
- </valuemap>
- <valuemap type="QVariantMap"
key="ProjectExplorer.BuildConfiguration.BuildStepList.1">
- <valuemap type="QVariantMap"
key="ProjectExplorer.BuildStepList.Step.0">
- <value type="QString"
key="ProjectExplorer.ProjectConfiguration.DefaultDisplayName">Make</value>
- <value type="QString"
key="ProjectExplorer.ProjectConfiguration.DisplayName"></value>
- <value type="QString"
key="ProjectExplorer.ProjectConfiguration.Id">Qt4ProjectManager.MakeStep</value>
- <value type="bool"
key="Qt4ProjectManager.MakeStep.Clean">true</value>
- <value type="QString"
key="Qt4ProjectManager.MakeStep.MakeArguments">clean</value>
- <value type="QString"
key="Qt4ProjectManager.MakeStep.MakeCommand"></value>
- </valuemap>
- <value type="int"
key="ProjectExplorer.BuildStepList.StepsCount">1</value>
- <value type="QString"
key="ProjectExplorer.ProjectConfiguration.DefaultDisplayName">Nettoyer</value>
- <value type="QString"
key="ProjectExplorer.ProjectConfiguration.DisplayName">Clean</value>
- <value type="QString"
key="ProjectExplorer.ProjectConfiguration.Id">ProjectExplorer.BuildSteps.Clean</value>
- </valuemap>
- <value type="int"
key="ProjectExplorer.BuildConfiguration.BuildStepListCount">2</value>
- <value type="bool"
key="ProjectExplorer.BuildConfiguration.ClearSystemEnvironment">false</value>
- <valuelist type="QVariantList"
key="ProjectExplorer.BuildConfiguration.UserEnvironmentChanges"/>
- <value type="QString"
key="ProjectExplorer.ProjectConfiguration.DefaultDisplayName">Debug</value>
- <value type="QString"
key="ProjectExplorer.ProjectConfiguration.DisplayName">Debug</value>
- <value type="QString"
key="ProjectExplorer.ProjectConfiguration.Id">Qt4ProjectManager.Qt4BuildConfiguration</value>
- <value type="int"
key="Qt4ProjectManager.Qt4BuildConfiguration.BuildConfiguration">2</value>
- <value type="QString"
key="Qt4ProjectManager.Qt4BuildConfiguration.BuildDirectory">/home/onix/qt/GScribo</value>
- <value type="int"
key="Qt4ProjectManager.Qt4BuildConfiguration.QtVersionId">-1</value>
- <value type="bool"
key="Qt4ProjectManager.Qt4BuildConfiguration.UseShadowBuild">false</value>
- </valuemap>
- <value type="int"
key="ProjectExplorer.Target.BuildConfigurationCount">1</value>
- <valuemap type="QVariantMap"
key="ProjectExplorer.Target.DeployConfiguration.0">
- <valuemap type="QVariantMap"
key="ProjectExplorer.BuildConfiguration.BuildStepList.0">
- <value type="int"
key="ProjectExplorer.BuildStepList.StepsCount">0</value>
- <value type="QString"
key="ProjectExplorer.ProjectConfiguration.DefaultDisplayName">Déploiement</value>
- <value type="QString"
key="ProjectExplorer.ProjectConfiguration.DisplayName">Deploy</value>
- <value type="QString"
key="ProjectExplorer.ProjectConfiguration.Id">ProjectExplorer.BuildSteps.Deploy</value>
- </valuemap>
- <value type="int"
key="ProjectExplorer.BuildConfiguration.BuildStepListCount">1</value>
- <value type="QString"
key="ProjectExplorer.ProjectConfiguration.DefaultDisplayName">Pas de
déploiement</value>
- <value type="QString"
key="ProjectExplorer.ProjectConfiguration.DisplayName">Pas de
déploiement</value>
- <value type="QString"
key="ProjectExplorer.ProjectConfiguration.Id">ProjectExplorer.DefaultDeployConfiguration</value>
- </valuemap>
- <value type="int"
key="ProjectExplorer.Target.DeployConfigurationCount">1</value>
- <valuemap type="QVariantMap"
key="ProjectExplorer.Target.RunConfiguration.0">
- <value type="bool"
key="Analyzer.Project.UseGlobal">true</value>
- <value type="bool"
key="Analyzer.Project.UseGlobal">true</value>
- <valuelist type="QVariantList"
key="Analyzer.Valgrind.AddedSuppressionFiles"/>
- <valuelist type="QVariantList"
key="Analyzer.Valgrind.AddedSuppressionFiles"/>
- <value type="bool"
key="Analyzer.Valgrind.Callgrind.CollectBusEvents">false</value>
- <value type="bool"
key="Analyzer.Valgrind.Callgrind.CollectBusEvents">false</value>
- <value type="bool"
key="Analyzer.Valgrind.Callgrind.CollectSystime">false</value>
- <value type="bool"
key="Analyzer.Valgrind.Callgrind.CollectSystime">false</value>
- <value type="bool"
key="Analyzer.Valgrind.Callgrind.EnableBranchSim">false</value>
- <value type="bool"
key="Analyzer.Valgrind.Callgrind.EnableBranchSim">false</value>
- <value type="bool"
key="Analyzer.Valgrind.Callgrind.EnableCacheSim">false</value>
- <value type="bool"
key="Analyzer.Valgrind.Callgrind.EnableCacheSim">false</value>
- <value type="bool"
key="Analyzer.Valgrind.Callgrind.EnableEventToolTips">true</value>
- <value type="bool"
key="Analyzer.Valgrind.Callgrind.EnableEventToolTips">true</value>
- <value type="double"
key="Analyzer.Valgrind.Callgrind.MinimumCostRatio">0.01</value>
- <value type="double"
key="Analyzer.Valgrind.Callgrind.MinimumCostRatio">0.01</value>
- <value type="double"
key="Analyzer.Valgrind.Callgrind.VisualisationMinimumCostRatio">10</value>
- <value type="double"
key="Analyzer.Valgrind.Callgrind.VisualisationMinimumCostRatio">10</value>
- <value type="bool"
key="Analyzer.Valgrind.FilterExternalIssues">true</value>
- <value type="bool"
key="Analyzer.Valgrind.FilterExternalIssues">true</value>
- <value type="int"
key="Analyzer.Valgrind.NumCallers">25</value>
- <value type="int"
key="Analyzer.Valgrind.NumCallers">25</value>
- <valuelist type="QVariantList"
key="Analyzer.Valgrind.RemovedSuppressionFiles"/>
- <valuelist type="QVariantList"
key="Analyzer.Valgrind.RemovedSuppressionFiles"/>
- <value type="bool"
key="Analyzer.Valgrind.TrackOrigins">true</value>
- <value type="bool"
key="Analyzer.Valgrind.TrackOrigins">true</value>
- <value type="QString"
key="Analyzer.Valgrind.ValgrindExecutable">valgrind</value>
- <value type="QString"
key="Analyzer.Valgrind.ValgrindExecutable">valgrind</value>
- <valuelist type="QVariantList"
key="Analyzer.Valgrind.VisibleErrorKinds">
- <value type="int">0</value>
- <value type="int">1</value>
- <value type="int">2</value>
- <value type="int">3</value>
- <value type="int">4</value>
- <value type="int">5</value>
- <value type="int">6</value>
- <value type="int">7</value>
- <value type="int">8</value>
- <value type="int">9</value>
- <value type="int">10</value>
- <value type="int">11</value>
- <value type="int">12</value>
- <value type="int">13</value>
- <value type="int">14</value>
- </valuelist>
- <valuelist type="QVariantList"
key="Analyzer.Valgrind.VisibleErrorKinds">
- <value type="int">0</value>
- <value type="int">1</value>
- <value type="int">2</value>
- <value type="int">3</value>
- <value type="int">4</value>
- <value type="int">5</value>
- <value type="int">6</value>
- <value type="int">7</value>
- <value type="int">8</value>
- <value type="int">9</value>
- <value type="int">10</value>
- <value type="int">11</value>
- <value type="int">12</value>
- <value type="int">13</value>
- <value type="int">14</value>
- </valuelist>
- <value type="QString"
key="ProjectExplorer.ProjectConfiguration.DefaultDisplayName">GScribo sur
l'émulateur Symbian</value>
- <value type="QString"
key="ProjectExplorer.ProjectConfiguration.DisplayName"></value>
- <value type="QString"
key="ProjectExplorer.ProjectConfiguration.Id">Qt4ProjectManager.S60EmulatorRunConfiguration</value>
- <value type="QString"
key="Qt4ProjectManager.S60EmulatorRunConfiguration.ProFile">GScribo.pro</value>
- <value type="uint"
key="RunConfiguration.QmlDebugServerPort">3768</value>
- <value type="bool"
key="RunConfiguration.UseCppDebugger">true</value>
- <value type="bool"
key="RunConfiguration.UseQmlDebugger">false</value>
- <value type="bool"
key="RunConfiguration.UseQmlDebuggerAuto">true</value>
- </valuemap>
- <value type="int"
key="ProjectExplorer.Target.RunConfigurationCount">1</value>
+ <value key="ProjectExplorer.BuildConfiguration.DisplayName"
type="QString">Debug</value>
+ <value key="cleanConfig" type="bool">true</value>
+ <valuelist key="makeargs" type="QVariantList">
+ <value type="QString">clean</value>
+ </valuelist>
</valuemap>
</data>
<data>
- <variable>ProjectExplorer.Project.Target.2</variable>
+ <variable>buildconfigurations</variable>
+ <valuelist type="QVariantList">
+ <value type="QString">Debug</value>
+ </valuelist>
+ </data>
+ <data>
+ <variable>buildstep0</variable>
<valuemap type="QVariantMap">
- <value type="QString"
key="ProjectExplorer.ProjectConfiguration.DefaultDisplayName">3</value>
- <value type="QString"
key="ProjectExplorer.ProjectConfiguration.DisplayName"></value>
- <value type="QString"
key="ProjectExplorer.ProjectConfiguration.Id">Qt4ProjectManager.Target.S60DeviceTarget</value>
- <value type="int"
key="ProjectExplorer.Target.ActiveBuildConfiguration">0</value>
- <value type="int"
key="ProjectExplorer.Target.ActiveDeployConfiguration">0</value>
- <value type="int"
key="ProjectExplorer.Target.ActiveRunConfiguration">0</value>
- <valuemap type="QVariantMap"
key="ProjectExplorer.Target.BuildConfiguration.0">
- <value type="QString"
key="ProjectExplorer.BuildCOnfiguration.ToolChain">INVALID</value>
- <valuemap type="QVariantMap"
key="ProjectExplorer.BuildConfiguration.BuildStepList.0">
- <valuemap type="QVariantMap"
key="ProjectExplorer.BuildStepList.Step.0">
- <value type="QString"
key="ProjectExplorer.ProjectConfiguration.DefaultDisplayName">qmake</value>
- <value type="QString"
key="ProjectExplorer.ProjectConfiguration.DisplayName"></value>
- <value type="QString"
key="ProjectExplorer.ProjectConfiguration.Id">QtProjectManager.QMakeBuildStep</value>
- <value type="bool"
key="QtProjectManager.QMakeBuildStep.LinkQmlDebuggingLibrary">false</value>
- <value type="bool"
key="QtProjectManager.QMakeBuildStep.LinkQmlDebuggingLibraryAuto">false</value>
- <value type="QString"
key="QtProjectManager.QMakeBuildStep.QMakeArguments"></value>
- <value type="bool"
key="QtProjectManager.QMakeBuildStep.QMakeForced">false</value>
- </valuemap>
- <valuemap type="QVariantMap"
key="ProjectExplorer.BuildStepList.Step.1">
- <value type="QString"
key="ProjectExplorer.ProjectConfiguration.DefaultDisplayName">Make</value>
- <value type="QString"
key="ProjectExplorer.ProjectConfiguration.DisplayName"></value>
- <value type="QString"
key="ProjectExplorer.ProjectConfiguration.Id">Qt4ProjectManager.MakeStep</value>
- <value type="bool"
key="Qt4ProjectManager.MakeStep.Clean">false</value>
- <value type="QString"
key="Qt4ProjectManager.MakeStep.MakeArguments"></value>
- <value type="QString"
key="Qt4ProjectManager.MakeStep.MakeCommand"></value>
- </valuemap>
- <value type="int"
key="ProjectExplorer.BuildStepList.StepsCount">2</value>
- <value type="QString"
key="ProjectExplorer.ProjectConfiguration.DefaultDisplayName">Compiler</value>
- <value type="QString"
key="ProjectExplorer.ProjectConfiguration.DisplayName">Build</value>
- <value type="QString"
key="ProjectExplorer.ProjectConfiguration.Id">ProjectExplorer.BuildSteps.Build</value>
- </valuemap>
- <valuemap type="QVariantMap"
key="ProjectExplorer.BuildConfiguration.BuildStepList.1">
- <valuemap type="QVariantMap"
key="ProjectExplorer.BuildStepList.Step.0">
- <value type="QString"
key="ProjectExplorer.ProjectConfiguration.DefaultDisplayName">Make</value>
- <value type="QString"
key="ProjectExplorer.ProjectConfiguration.DisplayName"></value>
- <value type="QString"
key="ProjectExplorer.ProjectConfiguration.Id">Qt4ProjectManager.MakeStep</value>
- <value type="bool"
key="Qt4ProjectManager.MakeStep.Clean">true</value>
- <value type="QString"
key="Qt4ProjectManager.MakeStep.MakeArguments">clean</value>
- <value type="QString"
key="Qt4ProjectManager.MakeStep.MakeCommand"></value>
- </valuemap>
- <value type="int"
key="ProjectExplorer.BuildStepList.StepsCount">1</value>
- <value type="QString"
key="ProjectExplorer.ProjectConfiguration.DefaultDisplayName">Nettoyer</value>
- <value type="QString"
key="ProjectExplorer.ProjectConfiguration.DisplayName">Clean</value>
- <value type="QString"
key="ProjectExplorer.ProjectConfiguration.Id">ProjectExplorer.BuildSteps.Clean</value>
- </valuemap>
- <value type="int"
key="ProjectExplorer.BuildConfiguration.BuildStepListCount">2</value>
- <value type="bool"
key="ProjectExplorer.BuildConfiguration.ClearSystemEnvironment">false</value>
- <valuelist type="QVariantList"
key="ProjectExplorer.BuildConfiguration.UserEnvironmentChanges"/>
- <value type="QString"
key="ProjectExplorer.ProjectConfiguration.DefaultDisplayName">Debug</value>
- <value type="QString"
key="ProjectExplorer.ProjectConfiguration.DisplayName">Debug</value>
- <value type="QString"
key="ProjectExplorer.ProjectConfiguration.Id">Qt4ProjectManager.Qt4BuildConfiguration</value>
- <value type="int"
key="Qt4ProjectManager.Qt4BuildConfiguration.BuildConfiguration">2</value>
- <value type="QString"
key="Qt4ProjectManager.Qt4BuildConfiguration.BuildDirectory">/home/onix/qt/GScribo</value>
- <value type="int"
key="Qt4ProjectManager.Qt4BuildConfiguration.QtVersionId">-1</value>
- <value type="bool"
key="Qt4ProjectManager.Qt4BuildConfiguration.UseShadowBuild">false</value>
- </valuemap>
- <value type="int"
key="ProjectExplorer.Target.BuildConfigurationCount">1</value>
- <valuemap type="QVariantMap"
key="ProjectExplorer.Target.DeployConfiguration.0">
- <valuemap type="QVariantMap"
key="ProjectExplorer.BuildConfiguration.BuildStepList.0">
- <valuemap type="QVariantMap"
key="ProjectExplorer.BuildStepList.Step.0">
- <value type="QString"
key="ProjectExplorer.ProjectConfiguration.DefaultDisplayName">Créer le paquet
SIS</value>
- <value type="QString"
key="ProjectExplorer.ProjectConfiguration.DisplayName">Create SIS
package</value>
- <value type="QString"
key="ProjectExplorer.ProjectConfiguration.Id">Qt4ProjectManager.S60SignBuildStep</value>
- <value type="QString"
key="Qt4ProjectManager.S60CreatePackageStep.Certificate"></value>
- <value type="QString"
key="Qt4ProjectManager.S60CreatePackageStep.Keyfile"></value>
- <value type="int"
key="Qt4ProjectManager.S60CreatePackageStep.SignMode">0</value>
- <value type="bool"
key="Qt4ProjectManager.S60CreatorPackageStep.SmartInstaller">false</value>
- <value type="bool"
key="Qt4ProjectManager.S60CreatorPackageStep.SuppressPatchWarningDialog">false</value>
- </valuemap>
- <valuemap type="QVariantMap"
key="ProjectExplorer.BuildStepList.Step.1">
- <value type="QString"
key="ProjectExplorer.ProjectConfiguration.DefaultDisplayName">Déployer</value>
- <value type="QString"
key="ProjectExplorer.ProjectConfiguration.DisplayName"></value>
- <value type="QString"
key="ProjectExplorer.ProjectConfiguration.Id">Qt4ProjectManager.S60DeployStep</value>
- </valuemap>
- <value type="int"
key="ProjectExplorer.BuildStepList.StepsCount">2</value>
- <value type="QString"
key="ProjectExplorer.ProjectConfiguration.DefaultDisplayName">Déploiement</value>
- <value type="QString"
key="ProjectExplorer.ProjectConfiguration.DisplayName">Deploy</value>
- <value type="QString"
key="ProjectExplorer.ProjectConfiguration.Id">ProjectExplorer.BuildSteps.Deploy</value>
- </valuemap>
- <value type="int"
key="ProjectExplorer.BuildConfiguration.BuildStepListCount">1</value>
- <value type="QString"
key="ProjectExplorer.ProjectConfiguration.DefaultDisplayName">Pas de
déploiement</value>
- <value type="QString"
key="ProjectExplorer.ProjectConfiguration.DisplayName">Déployer sur un
périphérique Symbian</value>
- <value type="QString"
key="ProjectExplorer.ProjectConfiguration.Id">ProjectExplorer.DefaultDeployConfiguration</value>
- </valuemap>
- <value type="int"
key="ProjectExplorer.Target.DeployConfigurationCount">1</value>
- <valuemap type="QVariantMap"
key="ProjectExplorer.Target.RunConfiguration.0">
- <value type="bool"
key="Analyzer.Project.UseGlobal">true</value>
- <value type="bool"
key="Analyzer.Project.UseGlobal">true</value>
- <valuelist type="QVariantList"
key="Analyzer.Valgrind.AddedSuppressionFiles"/>
- <valuelist type="QVariantList"
key="Analyzer.Valgrind.AddedSuppressionFiles"/>
- <value type="bool"
key="Analyzer.Valgrind.Callgrind.CollectBusEvents">false</value>
- <value type="bool"
key="Analyzer.Valgrind.Callgrind.CollectBusEvents">false</value>
- <value type="bool"
key="Analyzer.Valgrind.Callgrind.CollectSystime">false</value>
- <value type="bool"
key="Analyzer.Valgrind.Callgrind.CollectSystime">false</value>
- <value type="bool"
key="Analyzer.Valgrind.Callgrind.EnableBranchSim">false</value>
- <value type="bool"
key="Analyzer.Valgrind.Callgrind.EnableBranchSim">false</value>
- <value type="bool"
key="Analyzer.Valgrind.Callgrind.EnableCacheSim">false</value>
- <value type="bool"
key="Analyzer.Valgrind.Callgrind.EnableCacheSim">false</value>
- <value type="bool"
key="Analyzer.Valgrind.Callgrind.EnableEventToolTips">true</value>
- <value type="bool"
key="Analyzer.Valgrind.Callgrind.EnableEventToolTips">true</value>
- <value type="double"
key="Analyzer.Valgrind.Callgrind.MinimumCostRatio">0.01</value>
- <value type="double"
key="Analyzer.Valgrind.Callgrind.MinimumCostRatio">0.01</value>
- <value type="double"
key="Analyzer.Valgrind.Callgrind.VisualisationMinimumCostRatio">10</value>
- <value type="double"
key="Analyzer.Valgrind.Callgrind.VisualisationMinimumCostRatio">10</value>
- <value type="bool"
key="Analyzer.Valgrind.FilterExternalIssues">true</value>
- <value type="bool"
key="Analyzer.Valgrind.FilterExternalIssues">true</value>
- <value type="int"
key="Analyzer.Valgrind.NumCallers">25</value>
- <value type="int"
key="Analyzer.Valgrind.NumCallers">25</value>
- <valuelist type="QVariantList"
key="Analyzer.Valgrind.RemovedSuppressionFiles"/>
- <valuelist type="QVariantList"
key="Analyzer.Valgrind.RemovedSuppressionFiles"/>
- <value type="bool"
key="Analyzer.Valgrind.TrackOrigins">true</value>
- <value type="bool"
key="Analyzer.Valgrind.TrackOrigins">true</value>
- <value type="QString"
key="Analyzer.Valgrind.ValgrindExecutable">valgrind</value>
- <value type="QString"
key="Analyzer.Valgrind.ValgrindExecutable">valgrind</value>
- <valuelist type="QVariantList"
key="Analyzer.Valgrind.VisibleErrorKinds">
- <value type="int">0</value>
- <value type="int">1</value>
- <value type="int">2</value>
- <value type="int">3</value>
- <value type="int">4</value>
- <value type="int">5</value>
- <value type="int">6</value>
- <value type="int">7</value>
- <value type="int">8</value>
- <value type="int">9</value>
- <value type="int">10</value>
- <value type="int">11</value>
- <value type="int">12</value>
- <value type="int">13</value>
- <value type="int">14</value>
- </valuelist>
- <valuelist type="QVariantList"
key="Analyzer.Valgrind.VisibleErrorKinds">
- <value type="int">0</value>
- <value type="int">1</value>
- <value type="int">2</value>
- <value type="int">3</value>
- <value type="int">4</value>
- <value type="int">5</value>
- <value type="int">6</value>
- <value type="int">7</value>
- <value type="int">8</value>
- <value type="int">9</value>
- <value type="int">10</value>
- <value type="int">11</value>
- <value type="int">12</value>
- <value type="int">13</value>
- <value type="int">14</value>
- </valuelist>
- <value type="QString"
key="ProjectExplorer.ProjectConfiguration.DefaultDisplayName">GScribo sur
périphérique Symbian</value>
- <value type="QString"
key="ProjectExplorer.ProjectConfiguration.DisplayName"></value>
- <value type="QString"
key="ProjectExplorer.ProjectConfiguration.Id">Qt4ProjectManager.S60DeviceRunConfiguration</value>
- <value type="QString"
key="Qt4ProjectManager.S60DeviceRunConfiguration.CommandLineArguments"></value>
- <value type="QString"
key="Qt4ProjectManager.S60DeviceRunConfiguration.ProFile">GScribo.pro</value>
- <value type="uint"
key="RunConfiguration.QmlDebugServerPort">3768</value>
- <value type="bool"
key="RunConfiguration.UseCppDebugger">true</value>
- <value type="bool"
key="RunConfiguration.UseQmlDebugger">false</value>
- <value type="bool"
key="RunConfiguration.UseQmlDebuggerAuto">true</value>
- </valuemap>
- <value type="int"
key="ProjectExplorer.Target.RunConfigurationCount">1</value>
+ <value key="ProjectExplorer.BuildConfiguration.DisplayName"
type="QString"></value>
+ <value key="mkspec" type="QString"></value>
</valuemap>
</data>
<data>
- <variable>ProjectExplorer.Project.Target.3</variable>
+ <variable>buildstep1</variable>
<valuemap type="QVariantMap">
- <value type="QString"
key="ProjectExplorer.ProjectConfiguration.DefaultDisplayName">4</value>
- <value type="QString"
key="ProjectExplorer.ProjectConfiguration.DisplayName"></value>
- <value type="QString"
key="ProjectExplorer.ProjectConfiguration.Id">Qt4ProjectManager.Target.MaemoDeviceTarget</value>
- <value type="int"
key="ProjectExplorer.Target.ActiveBuildConfiguration">0</value>
- <value type="int"
key="ProjectExplorer.Target.ActiveDeployConfiguration">0</value>
- <value type="int"
key="ProjectExplorer.Target.ActiveRunConfiguration">0</value>
- <valuemap type="QVariantMap"
key="ProjectExplorer.Target.BuildConfiguration.0">
- <value type="QString"
key="ProjectExplorer.BuildCOnfiguration.ToolChain">INVALID</value>
- <valuemap type="QVariantMap"
key="ProjectExplorer.BuildConfiguration.BuildStepList.0">
- <valuemap type="QVariantMap"
key="ProjectExplorer.BuildStepList.Step.0">
- <value type="QString"
key="ProjectExplorer.ProjectConfiguration.DefaultDisplayName">qmake</value>
- <value type="QString"
key="ProjectExplorer.ProjectConfiguration.DisplayName"></value>
- <value type="QString"
key="ProjectExplorer.ProjectConfiguration.Id">QtProjectManager.QMakeBuildStep</value>
- <value type="bool"
key="QtProjectManager.QMakeBuildStep.LinkQmlDebuggingLibrary">false</value>
- <value type="bool"
key="QtProjectManager.QMakeBuildStep.LinkQmlDebuggingLibraryAuto">false</value>
- <value type="QString"
key="QtProjectManager.QMakeBuildStep.QMakeArguments"></value>
- <value type="bool"
key="QtProjectManager.QMakeBuildStep.QMakeForced">false</value>
- </valuemap>
- <valuemap type="QVariantMap"
key="ProjectExplorer.BuildStepList.Step.1">
- <value type="QString"
key="ProjectExplorer.ProjectConfiguration.DefaultDisplayName">Make</value>
- <value type="QString"
key="ProjectExplorer.ProjectConfiguration.DisplayName"></value>
- <value type="QString"
key="ProjectExplorer.ProjectConfiguration.Id">Qt4ProjectManager.MakeStep</value>
- <value type="bool"
key="Qt4ProjectManager.MakeStep.Clean">false</value>
- <value type="QString"
key="Qt4ProjectManager.MakeStep.MakeArguments"></value>
- <value type="QString"
key="Qt4ProjectManager.MakeStep.MakeCommand"></value>
- </valuemap>
- <value type="int"
key="ProjectExplorer.BuildStepList.StepsCount">2</value>
- <value type="QString"
key="ProjectExplorer.ProjectConfiguration.DefaultDisplayName">Compiler</value>
- <value type="QString"
key="ProjectExplorer.ProjectConfiguration.DisplayName">Build</value>
- <value type="QString"
key="ProjectExplorer.ProjectConfiguration.Id">ProjectExplorer.BuildSteps.Build</value>
- </valuemap>
- <valuemap type="QVariantMap"
key="ProjectExplorer.BuildConfiguration.BuildStepList.1">
- <valuemap type="QVariantMap"
key="ProjectExplorer.BuildStepList.Step.0">
- <value type="QString"
key="ProjectExplorer.ProjectConfiguration.DefaultDisplayName">Make</value>
- <value type="QString"
key="ProjectExplorer.ProjectConfiguration.DisplayName"></value>
- <value type="QString"
key="ProjectExplorer.ProjectConfiguration.Id">Qt4ProjectManager.MakeStep</value>
- <value type="bool"
key="Qt4ProjectManager.MakeStep.Clean">true</value>
- <value type="QString"
key="Qt4ProjectManager.MakeStep.MakeArguments">clean</value>
- <value type="QString"
key="Qt4ProjectManager.MakeStep.MakeCommand"></value>
- </valuemap>
- <value type="int"
key="ProjectExplorer.BuildStepList.StepsCount">1</value>
- <value type="QString"
key="ProjectExplorer.ProjectConfiguration.DefaultDisplayName">Nettoyer</value>
- <value type="QString"
key="ProjectExplorer.ProjectConfiguration.DisplayName">Clean</value>
- <value type="QString"
key="ProjectExplorer.ProjectConfiguration.Id">ProjectExplorer.BuildSteps.Clean</value>
- </valuemap>
- <value type="int"
key="ProjectExplorer.BuildConfiguration.BuildStepListCount">2</value>
- <value type="bool"
key="ProjectExplorer.BuildConfiguration.ClearSystemEnvironment">false</value>
- <valuelist type="QVariantList"
key="ProjectExplorer.BuildConfiguration.UserEnvironmentChanges"/>
- <value type="QString"
key="ProjectExplorer.ProjectConfiguration.DefaultDisplayName">Debug</value>
- <value type="QString"
key="ProjectExplorer.ProjectConfiguration.DisplayName">Debug</value>
- <value type="QString"
key="ProjectExplorer.ProjectConfiguration.Id">Qt4ProjectManager.Qt4BuildConfiguration</value>
- <value type="int"
key="Qt4ProjectManager.Qt4BuildConfiguration.BuildConfiguration">2</value>
- <value type="QString"
key="Qt4ProjectManager.Qt4BuildConfiguration.BuildDirectory">/home/onix/qt/GScribo-build-maemo-Debug</value>
- <value type="int"
key="Qt4ProjectManager.Qt4BuildConfiguration.QtVersionId">-1</value>
- <value type="bool"
key="Qt4ProjectManager.Qt4BuildConfiguration.UseShadowBuild">false</value>
- </valuemap>
- <value type="int"
key="ProjectExplorer.Target.BuildConfigurationCount">1</value>
- <valuemap type="QVariantMap"
key="ProjectExplorer.Target.DeployConfiguration.0">
- <valuemap type="QVariantMap"
key="ProjectExplorer.BuildConfiguration.BuildStepList.0">
- <valuemap type="QVariantMap"
key="ProjectExplorer.BuildStepList.Step.0">
- <value type="QString"
key="ProjectExplorer.ProjectConfiguration.DefaultDisplayName">Déployer le
paquet par montage UTFS</value>
- <value type="QString"
key="ProjectExplorer.ProjectConfiguration.DisplayName"></value>
- <value type="QString"
key="ProjectExplorer.ProjectConfiguration.Id">Qt4ProjectManager.MaemoDeployStep</value>
- <valuelist type="QVariantList"
key="Qt4ProjectManager.MaemoRunConfiguration.LastDeployedFiles"/>
- <valuelist type="QVariantList"
key="Qt4ProjectManager.MaemoRunConfiguration.LastDeployedHosts"/>
- <valuelist type="QVariantList"
key="Qt4ProjectManager.MaemoRunConfiguration.LastDeployedRemotePaths"/>
- <valuelist type="QVariantList"
key="Qt4ProjectManager.MaemoRunConfiguration.LastDeployedTimes"/>
- </valuemap>
- <value type="int"
key="ProjectExplorer.BuildStepList.StepsCount">1</value>
- <value type="QString"
key="ProjectExplorer.ProjectConfiguration.DefaultDisplayName">Déploiement</value>
- <value type="QString"
key="ProjectExplorer.ProjectConfiguration.DisplayName">Deploy</value>
- <value type="QString"
key="ProjectExplorer.ProjectConfiguration.Id">ProjectExplorer.BuildSteps.Deploy</value>
- </valuemap>
- <value type="int"
key="ProjectExplorer.BuildConfiguration.BuildStepListCount">1</value>
- <value type="QString"
key="ProjectExplorer.ProjectConfiguration.DefaultDisplayName">Compilation du
paquet Debian et installation sur le périphérique Maemo5</value>
- <value type="QString"
key="ProjectExplorer.ProjectConfiguration.DisplayName">Déployer sur un
périphérique Maemo</value>
- <value type="QString"
key="ProjectExplorer.ProjectConfiguration.Id">2.2MaemoDeployConfig</value>
- <value type="qulonglong"
key="Qt4ProjectManager.MaemoRunConfiguration.DeviceId">0</value>
- </valuemap>
- <value type="int"
key="ProjectExplorer.Target.DeployConfigurationCount">1</value>
- <valuemap type="QVariantMap"
key="ProjectExplorer.Target.RunConfiguration.0">
- <value type="bool"
key="Analyzer.Project.UseGlobal">true</value>
- <value type="bool"
key="Analyzer.Project.UseGlobal">true</value>
- <valuelist type="QVariantList"
key="Analyzer.Valgrind.AddedSuppressionFiles"/>
- <valuelist type="QVariantList"
key="Analyzer.Valgrind.AddedSuppressionFiles"/>
- <value type="bool"
key="Analyzer.Valgrind.Callgrind.CollectBusEvents">false</value>
- <value type="bool"
key="Analyzer.Valgrind.Callgrind.CollectBusEvents">false</value>
- <value type="bool"
key="Analyzer.Valgrind.Callgrind.CollectSystime">false</value>
- <value type="bool"
key="Analyzer.Valgrind.Callgrind.CollectSystime">false</value>
- <value type="bool"
key="Analyzer.Valgrind.Callgrind.EnableBranchSim">false</value>
- <value type="bool"
key="Analyzer.Valgrind.Callgrind.EnableBranchSim">false</value>
- <value type="bool"
key="Analyzer.Valgrind.Callgrind.EnableCacheSim">false</value>
- <value type="bool"
key="Analyzer.Valgrind.Callgrind.EnableCacheSim">false</value>
- <value type="bool"
key="Analyzer.Valgrind.Callgrind.EnableEventToolTips">true</value>
- <value type="bool"
key="Analyzer.Valgrind.Callgrind.EnableEventToolTips">true</value>
- <value type="double"
key="Analyzer.Valgrind.Callgrind.MinimumCostRatio">0.01</value>
- <value type="double"
key="Analyzer.Valgrind.Callgrind.MinimumCostRatio">0.01</value>
- <value type="double"
key="Analyzer.Valgrind.Callgrind.VisualisationMinimumCostRatio">10</value>
- <value type="double"
key="Analyzer.Valgrind.Callgrind.VisualisationMinimumCostRatio">10</value>
- <value type="bool"
key="Analyzer.Valgrind.FilterExternalIssues">true</value>
- <value type="bool"
key="Analyzer.Valgrind.FilterExternalIssues">true</value>
- <value type="int"
key="Analyzer.Valgrind.NumCallers">25</value>
- <value type="int"
key="Analyzer.Valgrind.NumCallers">25</value>
- <valuelist type="QVariantList"
key="Analyzer.Valgrind.RemovedSuppressionFiles"/>
- <valuelist type="QVariantList"
key="Analyzer.Valgrind.RemovedSuppressionFiles"/>
- <value type="bool"
key="Analyzer.Valgrind.TrackOrigins">true</value>
- <value type="bool"
key="Analyzer.Valgrind.TrackOrigins">true</value>
- <value type="QString"
key="Analyzer.Valgrind.ValgrindExecutable">valgrind</value>
- <value type="QString"
key="Analyzer.Valgrind.ValgrindExecutable">valgrind</value>
- <valuelist type="QVariantList"
key="Analyzer.Valgrind.VisibleErrorKinds">
- <value type="int">0</value>
- <value type="int">1</value>
- <value type="int">2</value>
- <value type="int">3</value>
- <value type="int">4</value>
- <value type="int">5</value>
- <value type="int">6</value>
- <value type="int">7</value>
- <value type="int">8</value>
- <value type="int">9</value>
- <value type="int">10</value>
- <value type="int">11</value>
- <value type="int">12</value>
- <value type="int">13</value>
- <value type="int">14</value>
- </valuelist>
- <valuelist type="QVariantList"
key="Analyzer.Valgrind.VisibleErrorKinds">
- <value type="int">0</value>
- <value type="int">1</value>
- <value type="int">2</value>
- <value type="int">3</value>
- <value type="int">4</value>
- <value type="int">5</value>
- <value type="int">6</value>
- <value type="int">7</value>
- <value type="int">8</value>
- <value type="int">9</value>
- <value type="int">10</value>
- <value type="int">11</value>
- <value type="int">12</value>
- <value type="int">13</value>
- <value type="int">14</value>
- </valuelist>
- <value type="QString"
key="ProjectExplorer.ProjectConfiguration.DefaultDisplayName">GScribo (sur un
périphérique distant)</value>
- <value type="QString"
key="ProjectExplorer.ProjectConfiguration.DisplayName"></value>
- <value type="QString"
key="ProjectExplorer.ProjectConfiguration.Id">Qt4ProjectManager.MaemoRunConfiguration</value>
- <value type="QString"
key="Qt4ProjectManager.MaemoRunConfiguration.Arguments"></value>
- <value type="int"
key="Qt4ProjectManager.MaemoRunConfiguration.BaseEnvironmentBase">1</value>
- <valuelist type="QVariantList"
key="Qt4ProjectManager.MaemoRunConfiguration.ExportedLocalDirs"/>
- <value type="QString"
key="Qt4ProjectManager.MaemoRunConfiguration.ProFile">GScribo.pro</value>
- <valuelist type="QVariantList"
key="Qt4ProjectManager.MaemoRunConfiguration.RemoteMountPoints"/>
- <valuelist type="QVariantList"
key="Qt4ProjectManager.MaemoRunConfiguration.UserEnvironmentChanges"/>
- <value type="QString"
key="RemoteLinux.RunConfig.AlternateRemoteExecutable"></value>
- <value type="bool"
key="RemoteLinux.RunConfig.UseAlternateRemoteExecutable">false</value>
- <value type="uint"
key="RunConfiguration.QmlDebugServerPort">3768</value>
- <value type="bool"
key="RunConfiguration.UseCppDebugger">true</value>
- <value type="bool"
key="RunConfiguration.UseQmlDebugger">false</value>
- <value type="bool"
key="RunConfiguration.UseQmlDebuggerAuto">false</value>
- </valuemap>
- <value type="int"
key="ProjectExplorer.Target.RunConfigurationCount">1</value>
+ <value key="ProjectExplorer.BuildConfiguration.DisplayName"
type="QString"></value>
</valuemap>
</data>
<data>
- <variable>ProjectExplorer.Project.TargetCount</variable>
- <value type="int">4</value>
+ <variable>buildsteps</variable>
+ <valuelist type="QVariantList">
+ <value type="QString">trolltech.qt4projectmanager.qmake</value>
+ <value type="QString">trolltech.qt4projectmanager.make</value>
+ </valuelist>
</data>
<data>
- <variable>ProjectExplorer.Project.Updater.EnvironmentId</variable>
- <value
type="QString">{5e5821f7-3a40-405f-b196-cbc6284a3a45}</value>
+ <variable>cleanstep0</variable>
+ <valuemap type="QVariantMap">
+ <value key="ProjectExplorer.BuildConfiguration.DisplayName"
type="QString"></value>
+ <value key="clean" type="bool">true</value>
+ </valuemap>
</data>
<data>
- <variable>ProjectExplorer.Project.Updater.FileVersion</variable>
- <value type="int">10</value>
+ <variable>cleansteps</variable>
+ <valuelist type="QVariantList">
+ <value type="QString">trolltech.qt4projectmanager.make</value>
+ </valuelist>
+ </data>
+ <data>
+ <variable>defaultFileEncoding</variable>
+ <value type="QByteArray">System</value>
+ </data>
+ <data>
+ <variable>project</variable>
+ <valuemap type="QVariantMap"/>
</data>
</qtcreator>
diff --git a/GScribo/Processing/progressdialog.cpp
b/GScribo/Processing/progressdialog.cpp
index c4ae96f..1ae876f 100644
--- a/GScribo/Processing/progressdialog.cpp
+++ b/GScribo/Processing/progressdialog.cpp
@@ -3,6 +3,7 @@
ProgressDialog::ProgressDialog(QWidget *parent, Qt::WindowFlags flags):
QProgressDialog(parent, flags)
{
+ setWindowFlags(Qt::Dialog);
setModal(true);
setAutoClose(false);
setCancelButton(0);
diff --git a/GScribo/Processing/runner.cpp b/GScribo/Processing/runner.cpp
index 5024acd..8d5854c 100644
--- a/GScribo/Processing/runner.cpp
+++ b/GScribo/Processing/runner.cpp
@@ -134,7 +134,7 @@ void Runner::process(const image2d<value::rgb8>&
original_ima,
// Perform text detection.
f(original_ima, processed_ima);
- emit xml_saved(filename);
+ //emit xml_saved(filename);
}
// Export related stuff
diff --git a/GScribo/Rendering/polygonitem.h b/GScribo/Rendering/polygonitem.h
index 893bde3..af59631 100644
--- a/GScribo/Rendering/polygonitem.h
+++ b/GScribo/Rendering/polygonitem.h
@@ -4,6 +4,8 @@
#include <QGraphicsPathItem>
#include <QPen>
+#include "region.h"
+
class PolygonItem :
public QObject,
public QGraphicsPolygonItem
@@ -13,9 +15,12 @@ class PolygonItem :
public:
explicit PolygonItem(QGraphicsItem *parent = 0, QGraphicsScene *scene = 0);
explicit PolygonItem(const QPolygonF& path, QGraphicsItem *parent = 0,
QGraphicsScene *scene = 0);
+
void setColor(const QColor& color);
QColor color() const;
+ inline void loadData(const GraphicRegion::Data& data);
+
private:
void init();
@@ -28,4 +33,10 @@ class PolygonItem :
void repaint(const QRectF& rect, bool clic);
};
+inline void PolygonItem::loadData(const GraphicRegion::Data &data)
+{
+ setColor(data.color);
+ setZValue(data.zValue);
+}
+
#endif // POLYGONITEM_H
diff --git a/GScribo/Rendering/scene.cpp b/GScribo/Rendering/scene.cpp
index 695a4f1..d9bedfb 100644
--- a/GScribo/Rendering/scene.cpp
+++ b/GScribo/Rendering/scene.cpp
@@ -33,17 +33,16 @@ QString Scene::backgroundPath() const
return path;
}
-void Scene::removeItems()
+void Scene::addPolygonItem(QGraphicsItem *item)
{
- QList<QGraphicsItem *> itemsList = items();
- QGraphicsItem *i;
+ this->item = item;
+ addItem(item);
+}
- // Remove all items on the scene expect the selection.
- foreach(i, itemsList)
- {
- if(i != &selection)
- delete i;
- }
+void Scene::reset()
+{
+ if(item)
+ removeItem(item);
}
void Scene::mousePressEvent(QGraphicsSceneMouseEvent *event)
diff --git a/GScribo/Rendering/scene.h b/GScribo/Rendering/scene.h
index 6aa7668..58db2d1 100644
--- a/GScribo/Rendering/scene.h
+++ b/GScribo/Rendering/scene.h
@@ -17,8 +17,10 @@ class Scene :
explicit Scene(QObject *parent = 0);
explicit Scene(const QRectF &sceneRect, QObject *parent = 0);
explicit Scene(qreal x, qreal y, qreal width, qreal height, QObject *parent =
0);
+
QString backgroundPath() const;
- void removeItems();
+ void addPolygonItem(QGraphicsItem *item);
+ void reset();
protected:
void mousePressEvent(QGraphicsSceneMouseEvent *event);
@@ -28,6 +30,7 @@ class Scene :
private:
void init();
+ QGraphicsItem *item;
QString path;
Selection selection;
QPointF pressPos;
@@ -38,7 +41,7 @@ class Scene :
void setBackground(const QString& filename, const QPixmap& pixmap);
signals:
- void repaintItem(const QRectF& rect, bool clic);
+ void repaintItem(const QRectF& rect, bool clic);
};
#endif // SCENE_H
diff --git a/GScribo/configs.cpp b/GScribo/configs.cpp
index e003442..56282d3 100644
--- a/GScribo/configs.cpp
+++ b/GScribo/configs.cpp
@@ -7,7 +7,7 @@ Configs::Configs()
Configs * Configs::getInstance()
{
- static Configs * conf = new Configs();
+ static Configs *conf = new Configs();
return conf;
}
diff --git a/GScribo/main.cpp b/GScribo/main.cpp
index bd76409..9ccedca 100644
--- a/GScribo/main.cpp
+++ b/GScribo/main.cpp
@@ -13,8 +13,8 @@
int main(int argc, char *argv[])
{
Magick::InitializeMagick(*argv);
- //On Linux, we NEED to use the raster graphics system.
- //Linux don't really support X11 graphics system (the default one).
+ // On Linux, we NEED to use the raster graphics system.
+ // Linux don't really support X11 graphics system (the default one).
QApplication::setGraphicsSystem("raster");
QApplication a(argc, argv);
MainWindow w;
diff --git a/GScribo/mainwindow.cpp b/GScribo/mainwindow.cpp
index 4b2a4d3..924ef87 100644
--- a/GScribo/mainwindow.cpp
+++ b/GScribo/mainwindow.cpp
@@ -1,6 +1,7 @@
#include "mainwindow.h"
#include "ui_mainwindow.h"
+/////////////////////////////////////////////////REEEEEEEEESSSSSSSSEEEEEEEETTTTTTTT
DDDDDDDAAAAAANNNNNNNSSSSSSS XML /////////////////////
MainWindow::MainWindow(QWidget *parent) :
QMainWindow(parent),
ui(new Ui::MainWindow)
@@ -8,10 +9,10 @@ MainWindow::MainWindow(QWidget *parent) :
ui->setupUi(this);
setWindowTitle(tr("GScribo"));
- //progressDialog.setParent(this);
initGraphicsRegion();
initTextRegion();
+ initXmlWidget();
initPageWidget();
initToolBar();
initMenuBar();
@@ -46,6 +47,15 @@ void MainWindow::initPageWidget()
addDockWidget(Qt::LeftDockWidgetArea, &dockPages);
}
+void MainWindow::initXmlWidget()
+{
+ dockXml.setWindowTitle(tr("Xml"));
+ dockXml.setFeatures(QDockWidget::DockWidgetClosable);
+ dockXml.setWidget(&xmlWidget);
+
+ addDockWidget(Qt::BottomDockWidgetArea, &dockXml);
+}
+
void MainWindow::initTextRegion()
{
dockText.setWindowTitle(tr("Text"));
@@ -84,6 +94,7 @@ void MainWindow::onOpen()
QString path = paths[0];
QPixmap pixmap(path);
+ scene.reset();
scene.setBackground(path, pixmap);
pagesWidget.addPixmap(path, pixmap);
@@ -94,6 +105,26 @@ void MainWindow::onOpen()
pixmap.load(path);
pagesWidget.addPixmap(path, pixmap);
}
+
+ // Get instance of the configuration settings.
+ Configs * const conf = Configs::getInstance();
+
+ // Get xml file from image path.
+ path.remove(0, path.lastIndexOf('/')+1);
+ int pos = path.lastIndexOf('.');
+ path.remove(pos, path.length()-pos);
+ path += "_gui.xml";
+
+ // Load xml if it exists.
+ if(QDir::temp().exists(path))
+ path = QDir::tempPath() + "/" + path;
+ else if(QDir(conf->generalSaveXmlCustomDirPath()).exists(path))
+ path = conf->generalSaveXmlCustomDirPath() + "/" + path;
+ else
+ path = QString();
+
+ if(!path.isNull())
+ onXmlSaved(path);
}
}
@@ -105,7 +136,6 @@ void MainWindow::onSegment()
if(!pagesWidget.isVisible())
filenames << scene.backgroundPath();
-
else
filenames = pagesWidget.filenames();
@@ -114,6 +144,14 @@ void MainWindow::onSegment()
}
}
+void MainWindow::onXmlSaved(const QString& filename)
+{
+ xml.load(filename);
+ xmlWidget.load(xml.treeItem());
+
+ scene.addPolygonItem(xml.graphicItem());
+}
+
void MainWindow::onPreferences()
{
PreferencesDialog *preferenceDialog = new PreferencesDialog(this);
@@ -129,6 +167,7 @@ void MainWindow::connectWidgets()
connect(&runner, SIGNAL(new_progress_max_value(int)), &progressDialog,
SLOT(setMaximum(int)));
connect(&runner, SIGNAL(new_progress_label(QString)), &progressDialog,
SLOT(setLabelText(QString)));
connect(&runner, SIGNAL(finished()), &progressDialog, SLOT(close()));
+ connect(&runner, SIGNAL(xml_saved(QString)), this, SLOT(onXmlSaved(QString)));
}
void MainWindow::connectShortcuts()
diff --git a/GScribo/mainwindow.h b/GScribo/mainwindow.h
index 708a4f6..c0196df 100644
--- a/GScribo/mainwindow.h
+++ b/GScribo/mainwindow.h
@@ -14,6 +14,8 @@
#include "PagesViewer/pageswidget.h"
#include "Processing/runner.h"
#include "Rendering/scene.h"
+#include "xmlwidget.h"
+#include "xml.h"
namespace Ui
{
@@ -37,6 +39,7 @@ class MainWindow:
void initTextRegion();
void initToolBar();
void initPageWidget();
+ void initXmlWidget();
void initMenuBar();
void connectWidgets();
void connectShortcuts();
@@ -44,16 +47,20 @@ class MainWindow:
Ui::MainWindow *ui;
QDockWidget dockText;
QDockWidget dockPages;
+ QDockWidget dockXml;
QGraphicsView graphicsView;
Scene scene;
QPlainTextEdit textEdit;
PagesWidget pagesWidget;
Runner runner;
ProgressDialog progressDialog;
+ Xml xml;
+ XmlWidget xmlWidget;
private slots:
void onOpen();
void onSegment();
+ void onXmlSaved(const QString& filename);
void onPreferences();
};
diff --git a/XmlTree/pointer.h b/GScribo/variantpointer.h
similarity index 65%
copy from XmlTree/pointer.h
copy to GScribo/variantpointer.h
index 7a84c47..907008b 100644
--- a/XmlTree/pointer.h
+++ b/GScribo/variantpointer.h
@@ -1,9 +1,9 @@
-#ifndef POINTER_H
-#define POINTER_H
+#ifndef VARIANTPOINTER_H
+#define VARIANTPOINTER_H
#include <QVariant>
-template<typename T> class Pointer
+template<typename T> class VariantPointer
{
public:
static inline QVariant toQVariant(T *pointer)
@@ -13,7 +13,7 @@ template<typename T> class Pointer
{ return (T *)variant.value<void *>(); }
private:
- Pointer() { }
+ VariantPointer() { }
};
-#endif // POINTER_H
+#endif // VARIANTPOINTER_H
diff --git a/GScribo/xml.cpp b/GScribo/xml.cpp
index c213728..8446a07 100644
--- a/GScribo/xml.cpp
+++ b/GScribo/xml.cpp
@@ -2,116 +2,182 @@
static const GraphicRegion::Data itemsData[] =
{
- {QColor::fromRgb(0, 0, 255, 60), "VerticalSeparatorRegion",
(int)GraphicRegion::VerticalSeparator, 2},
- {QColor::fromRgb(0, 0, 255, 60), "HorizontalSeparatorRegion",
(int)GraphicRegion::HorizontalSeparator, 2},
- {QColor::fromRgb(0, 0, 128, 60), "WhitespaceSeparatorRegion",
(int)GraphicRegion::WhiteSpaceSeparator, 2},
- {QColor::fromRgb(255, 120, 0, 60), "ImageRegion",
(int)GraphicRegion::Image, 1},
- {QColor::fromRgb(43, 39, 128, 60), "NoiseRegion",
(int)GraphicRegion::Noise, 2},
- {QColor::fromRgb(220, 246, 0, 60), "TableRegion",
(int)GraphicRegion::Table, 2},
- {QColor::fromRgb(170, 0, 255, 60), "MathsRegion",
(int)GraphicRegion::Maths, 3},
- {QColor::fromRgb(255, 0, 144, 60), "GraphicRegion",
(int)GraphicRegion::Graphic, 2},
- {QColor::fromRgb(0, 204, 255, 60), "ChartRegion",
(int)GraphicRegion::Chart, 2}
+ /* COLOR | NAME |
REGION | ZVALUE */
+ { QColor::fromRgb(255, 0, 0, 80), "Line",
(int)GraphicRegion::Line, 2 },
+ { QColor::fromRgb(0, 100, 0, 80), "TextRegion",
(int)GraphicRegion::Text, 1 },
+ { QColor::fromRgb(0, 0, 255, 60), "VerticalSeparatorRegion",
(int)GraphicRegion::VerticalSeparator, 2 },
+ { QColor::fromRgb(0, 0, 255, 60), "HorizontalSeparatorRegion",
(int)GraphicRegion::HorizontalSeparator, 2 },
+ { QColor::fromRgb(0, 0, 128, 60), "WhitespaceSeparatorRegion",
(int)GraphicRegion::WhiteSpaceSeparator, 2 },
+ { QColor::fromRgb(255, 120, 0, 60), "ImageRegion",
(int)GraphicRegion::Image, 1 },
+ { QColor::fromRgb(43, 39, 128, 60), "NoiseRegion",
(int)GraphicRegion::Noise, 2 },
+ { QColor::fromRgb(220, 246, 0, 60), "TableRegion",
(int)GraphicRegion::Table, 2 },
+ { QColor::fromRgb(170, 0, 255, 60), "MathsRegion",
(int)GraphicRegion::Maths, 2 },
+ { QColor::fromRgb(255, 0, 144, 60), "GraphicRegion",
(int)GraphicRegion::Graphic, 2 },
+ { QColor::fromRgb(0, 204, 255, 60), "ChartRegion",
(int)GraphicRegion::Chart, 2 }
};
-Xml::Xml()
+Xml::Xml(const QString &filename)
{
-
+ load(filename);
}
-void Xml::graphicsRegion(const QDomElement& element, const GraphicRegion::Data&
data, Scene *scene)
+void Xml::load(const QString &filename)
{
- if(!element.isNull())
+ if(!filename.isEmpty())
{
- QPolygon polygon;
- QDomElement elt = element.firstChild().firstChild().toElement();
- while(!elt.isNull())
- {
- polygon << QPoint(elt.attribute("x",
"null").toInt(), elt.attribute("y", "null").toInt());
- elt = elt.nextSibling().toElement();
- };
- PolygonItem *polygonRegion = new PolygonItem(polygon, 0, scene);
- polygonRegion->setData(0, QVariant::fromValue(data.region));
- polygonRegion->setColor(data.color);
- polygonRegion->setZValue(data.zValue);
- connect(scene, SIGNAL(repaintItems(QRectF,bool)), polygonRegion,
SLOT(repaint(QRectF,bool)));
- graphicsRegion(element.nextSiblingElement(data.name), data, scene);
+ QFile xmlFile(filename);
+ xmlFile.open(QIODevice::ReadOnly);
+
+ QDomDocument xml;
+ xml.setContent(&xmlFile);
+
+ xmlFile.close();
+
+ QDomElement root = xml.documentElement();
+ tItem.setText(0, root.tagName());
+
+ root = root.firstChild().toElement();
+ QTreeWidgetItem *parentTreeItem = init(root, &tItem);
+
+ // Run through the xml file structure by structure.
+ root = root.nextSibling().firstChild().toElement();
+ processNode(root, itemsData[1], parentTreeItem);
+ for(int i = 2; i < 10; i++)
+ processNode(root.nextSiblingElement(itemsData[i].name), itemsData[i],
parentTreeItem);
}
}
-void Xml::graphicsTypoRegion(const QDomElement& element, const QPoint& xPos,
Scene *scene)
+QTreeWidgetItem *Xml::init(const QDomElement& root, QTreeWidgetItem *rootTreeItem)
{
- int yPos = element.attribute("baseline", "null").toInt();
- QGraphicsLineItem *baselineRegion = new QGraphicsLineItem(QLine(QPoint(xPos.x(),
yPos), QPoint(xPos.y(), yPos)), 0, scene);
- baselineRegion->setCacheMode(QGraphicsItem::DeviceCoordinateCache);
- baselineRegion->setData(0, QVariant::fromValue((int)GraphicRegion::Baseline));
- baselineRegion->setZValue(3);
- yPos = element.attribute("meanline", "null").toInt();
- QGraphicsLineItem *meanlineRegion = new QGraphicsLineItem(QLine(QPoint(xPos.x(),
yPos), QPoint(xPos.y(), yPos)), 0, scene);
- meanlineRegion->setCacheMode(QGraphicsItem::DeviceCoordinateCache);
- meanlineRegion->setData(0, QVariant::fromValue((int)GraphicRegion::Meanline));
- meanlineRegion->setZValue(3);
+ QDomElement node = root;
+ QString nodeText;
+
+ QTreeWidgetItem *parentTreeItem = new QTreeWidgetItem(rootTreeItem);
+ parentTreeItem->setText(0, node.tagName());
+
+ QTreeWidgetItem *treeItem, *childTreeItem;
+ node = node.firstChild().toElement();
+
+ // Run through "METADATA" node and subnodes.
+ while(!node.isNull())
+ {
+ treeItem = new QTreeWidgetItem(parentTreeItem, treeItem);
+ treeItem->setText(0, node.tagName());
+
+ // Add widget item child with text content.
+ nodeText = node.text();
+ childTreeItem = new QTreeWidgetItem(treeItem);
+ childTreeItem->setText(0, nodeText);
+
+ node = node.nextSibling().toElement();
+ }
+
+ // Add "PAGE" root node and return it.
+ parentTreeItem = new QTreeWidgetItem(rootTreeItem, parentTreeItem);
+ parentTreeItem->setText(0, root.nextSibling().toElement().tagName());
+
+ return parentTreeItem;
}
-void Xml::graphicsLineRegion(const QDomElement &element, Scene *scene)
+void Xml::processNode(const QDomElement& root, const GraphicRegion::Data& data,
QTreeWidgetItem *rootTreeItem)
{
- if(!element.isNull())
+ if(!root.isNull())
{
- QPolygon polygonLine;
- QDomElement elt = element.firstChild().firstChild().toElement();
- int xMin = INT_MAX;
- int xMax = -1;
- int x, y;
- while(!elt.isNull())
+ // Create corresponding tree item.
+ QTreeWidgetItem *parentTreeItem = fillWidgetItem(root.tagName(), rootTreeItem);
+ QTreeWidgetItem *treeItem;
+
+ QPolygon polygon;
+ QString sx, sy;
+
+ // Run through all points data.
+ QDomElement node = root.firstChild().firstChild().toElement();
+ while(!node.isNull())
{
- x = elt.attribute("x", "null").toInt();
- y = elt.attribute("y", "null").toInt();
- if (xMin > x)
- xMin = x;
- if (xMax < x)
- xMax = x;
- polygonLine << QPoint(x, y);
- elt = elt.nextSibling().toElement();
+ sx = node.attribute("x", "null");
+ sy = node.attribute("y", "null");
+
+ treeItem = new QTreeWidgetItem(parentTreeItem, treeItem);
+ treeItem->setText(0, node.tagName() + " = " + sx + ",
" + sy);
+
+ polygon << QPoint(sx.toInt(), sy.toInt());
+ node = node.nextSibling().toElement();
}
- PolygonItem *lineRegion = new PolygonItem(polygonLine, 0, scene);
- lineRegion->setData(0, QVariant::fromValue((int)GraphicRegion::Line));
- lineRegion->setColor(QColor::fromRgb(255, 0, 0, 80));
- lineRegion->setZValue(2);
- connect(scene, SIGNAL(repaintItems(QRectF,bool)), lineRegion,
SLOT(repaint(QRectF,bool)));
- graphicsTypoRegion(element, QPoint(xMin, xMax), scene);
- graphicsLineRegion(element.nextSiblingElement("Line"), scene);
+
+ // Create the graphical item from data structure.
+ PolygonItem *polygonItem = new PolygonItem(polygon, &gItem);
+ polygonItem->loadData(data);
+ // Store tree object in the graphical object.
+ polygonItem->setData(0,
VariantPointer<QTreeWidgetItem>::toQVariant(parentTreeItem));
+
+ if(data.region == GraphicRegion::Text)
+ processLineNode(root.firstChild().nextSiblingElement("Line"),
polygonItem, parentTreeItem->parent());
+
+ // Run through all nodes from the same data structure recursively.
+ processNode(root.nextSiblingElement(data.name), data, rootTreeItem);
}
}
-void Xml::graphicsTextRegion(const QDomElement &element, Scene *scene)
+void Xml::processLineNode(const QDomElement& root, PolygonItem *parentPolygonItem,
QTreeWidgetItem *rootTreeItem)
{
- if(!element.isNull())
+ if(!root.isNull())
{
- QPolygon polygonText;
- QDomElement elt = element.firstChild().firstChild().toElement();
- while(!elt.isNull())
+ // Create corresponding tree item.
+ QTreeWidgetItem *parentTreeItem = fillWidgetItem(root.tagName(), rootTreeItem);
+ QTreeWidgetItem *treeItem;
+
+ QPolygon polygon;
+ QString sx, sy;
+ int x, y;
+
+ int xMin = INT_MAX;
+ int xMax = INT_MIN;
+
+ // Run through all points data.
+ QDomElement node = root.firstChild().firstChild().toElement();
+ while(!node.isNull())
{
- polygonText << QPoint(elt.attribute("x",
"null").toInt(), elt.attribute("y", "null").toInt());
- elt = elt.nextSibling().toElement();
+ sx = node.attribute("x", "null");
+ sy = node.attribute("y", "null");
+
+ treeItem = new QTreeWidgetItem(parentTreeItem, treeItem);
+ treeItem->setText(0, node.tagName() + " = " + sx + ",
" + sy);
+
+ x = sx.toInt();
+ y = sy.toInt();
+
+ // Get beginning and end of line.
+ if(xMin > x)
+ xMin = x;
+ if(xMax < x)
+ xMax = x;
+
+ polygon << QPoint(x, y);
+ node = node.nextSibling().toElement();
}
- PolygonItem *textRegion = new PolygonItem(polygonText, 0, scene);
- textRegion->setColor(QColor::fromRgb(0, 100, 0, 80));
- textRegion->setData(0, QVariant::fromValue((int)GraphicRegion::Text));
- textRegion->setZValue(1);
- connect(scene, SIGNAL(repaintItems(QRectF,bool)), textRegion,
SLOT(repaint(QRectF,bool)));
- graphicsLineRegion(element.firstChild().nextSiblingElement("Line"),
scene);
- graphicsTextRegion(element.nextSiblingElement("TextRegion"), scene);
+
+ // Create the graphical item from data structure.
+ PolygonItem *polygonItem = new PolygonItem(polygon, parentPolygonItem);
+ polygonItem->loadData(itemsData[0]);
+ // Store tree object in the graphical object.
+ polygonItem->setData(0,
VariantPointer<QTreeWidgetItem>::toQVariant(parentTreeItem));
+
+ // Get meanline and baseline.
+ processTypoNode(root, QPoint(xMin, xMax), polygonItem);
+ // Run through all line nodes recursively.
+ processLineNode(root.nextSiblingElement("Line"), parentPolygonItem,
rootTreeItem);
}
}
-void Xml::parseItems(const QString &filename, Scene *scene)
+void Xml::processTypoNode(const QDomElement& root, const QPoint& xPoint,
PolygonItem *parentPolygonItem)
{
- QFile xmlFile(filename);
- xmlFile.open(QIODevice::ReadOnly);
- QDomDocument xml;
- xml.setContent(&xmlFile);
- xmlFile.close();
- QDomElement element =
xml.documentElement().firstChild().nextSiblingElement("Page").firstChild().toElement();
- graphicsTextRegion(element, scene);
- for(int i = 0; i < 9; i++)
- graphicsRegion(element.nextSiblingElement(itemsData[i].name), itemsData[i],
scene);
+ int yPos = root.attribute("baseline", "null").toInt();
+ QGraphicsLineItem *baselineItem = new QGraphicsLineItem(QLine(QPoint(xPoint.x(),
yPos), QPoint(xPoint.y(), yPos)), parentPolygonItem);
+ baselineItem->setData(0, QVariant::fromValue((int)GraphicRegion::Baseline));
+ baselineItem->setZValue(3);
+
+ yPos = root.attribute("meanline", "null").toInt();
+ QGraphicsLineItem *meanlineItem = new QGraphicsLineItem(QLine(QPoint(xPoint.x(),
yPos), QPoint(xPoint.y(), yPos)), parentPolygonItem);
+ meanlineItem->setData(0, QVariant::fromValue((int)GraphicRegion::Meanline));
+ meanlineItem->setZValue(3);
}
diff --git a/GScribo/xml.h b/GScribo/xml.h
index 840f73a..efd0511 100644
--- a/GScribo/xml.h
+++ b/GScribo/xml.h
@@ -1,38 +1,51 @@
#ifndef XML_H
#define XML_H
+#include <QTreeWidgetItem>
#include <QGraphicsItem>
+#include <QStringList>
#include <QDomElement>
-#include <QTextEdit>
#include <climits>
-#include <QString>
#include <QFile>
-#include "polygonitem.h"
+#include "Rendering/polygonitem.h"
+#include "variantpointer.h"
#include "region.h"
-#include "region.h"
-#include "scene.h"
-struct Node
-{
- QDomElement root;
- QDomElement
-};
-
-class Xml:
+class Xml :
QObject
{
+ Q_OBJECT
+
public:
- Xml();
- static void parseItems(const QString &filename, Scene *scene);
+ explicit Xml(const QString& filename = QString());
+
+ void load(const QString& filename);
+ inline QTreeWidgetItem *treeItem();
+ inline QGraphicsItem *graphicItem();
private:
- void graphicsRegion(const QDomElement& element, const
GraphicRegion::Data& data, Scene *scene);
- void graphicsTypoRegion(const QDomElement& element, const QPoint& xPos,
Scene *scene);
- void graphicsLineRegion(const QDomElement& element, Scene *scene);
- void graphicsTextRegion(const QDomElement& element, Scene *scene);
+ QTreeWidgetItem *init(const QDomElement& root, QTreeWidgetItem
*rootTreeItem);
+ inline QTreeWidgetItem *fillWidgetItem(const QString& tagName,
QTreeWidgetItem *rootTreeItem);
+ void processNode(const QDomElement& root, const GraphicRegion::Data&
data, QTreeWidgetItem *rootTreeItem);
+ void processLineNode(const QDomElement& root, PolygonItem *parentPolygonItem,
QTreeWidgetItem *rootTreeItem);
+ void processTypoNode(const QDomElement& root, const QPoint& xPoint,
PolygonItem *rootPolygonItem);
- QDomElement root;
+ QGraphicsPolygonItem gItem;
+ QTreeWidgetItem tItem;
};
+inline QTreeWidgetItem *Xml::treeItem()
+{ return &tItem; }
+
+inline QGraphicsItem *Xml::graphicItem()
+{ return &gItem; }
+
+inline QTreeWidgetItem *Xml::fillWidgetItem(const QString& tagName, QTreeWidgetItem
*rootTreeItem)
+{
+ QTreeWidgetItem *treeItem = new QTreeWidgetItem(rootTreeItem, QStringList(tagName));
+ treeItem = new QTreeWidgetItem(treeItem, QStringList("Coords"));
+ return treeItem;
+}
+
#endif // XML_H
diff --git a/GScribo/xmlwidget.cpp b/GScribo/xmlwidget.cpp
new file mode 100644
index 0000000..8f021b4
--- /dev/null
+++ b/GScribo/xmlwidget.cpp
@@ -0,0 +1,19 @@
+#include "xmlwidget.h"
+
+XmlWidget::XmlWidget(QWidget *parent) :
+ QWidget(parent)
+{
+ viewer.setHeaderHidden(true);
+
+ QHBoxLayout *hLayout = new QHBoxLayout;
+
+ QStringList headerNames;
+ headerNames << tr("Name") << tr("Value");
+
+ property.setHeaderItem(new QTreeWidgetItem(headerNames));
+
+ hLayout->addWidget(&viewer);
+ hLayout->addWidget(&property);
+
+ setLayout(hLayout);
+}
diff --git a/GScribo/xmlwidget.h b/GScribo/xmlwidget.h
new file mode 100644
index 0000000..9c01024
--- /dev/null
+++ b/GScribo/xmlwidget.h
@@ -0,0 +1,25 @@
+#ifndef XMLWIDGET_H
+#define XMLWIDGET_H
+
+#include <QTreeWidget>
+#include <QVBoxLayout>
+#include <QWidget>
+#include <QLabel>
+
+class XmlWidget :
+ public QWidget
+{
+ public:
+ explicit XmlWidget(QWidget *parent = 0);
+
+ inline void load(QTreeWidgetItem *treeItem);
+
+ private:
+ QTreeWidget viewer;
+ QTreeWidget property;
+};
+
+inline void XmlWidget::load(QTreeWidgetItem *treeItem)
+{ if(treeItem != 0) { viewer.reset(); viewer.addTopLevelItem(treeItem); } }
+
+#endif // XMLWIDGET_H
diff --git a/XmlTree/pointer.h b/VariantPointer.h
similarity index 65%
copy from XmlTree/pointer.h
copy to VariantPointer.h
index 7a84c47..907008b 100644
--- a/XmlTree/pointer.h
+++ b/VariantPointer.h
@@ -1,9 +1,9 @@
-#ifndef POINTER_H
-#define POINTER_H
+#ifndef VARIANTPOINTER_H
+#define VARIANTPOINTER_H
#include <QVariant>
-template<typename T> class Pointer
+template<typename T> class VariantPointer
{
public:
static inline QVariant toQVariant(T *pointer)
@@ -13,7 +13,7 @@ template<typename T> class Pointer
{ return (T *)variant.value<void *>(); }
private:
- Pointer() { }
+ VariantPointer() { }
};
-#endif // POINTER_H
+#endif // VARIANTPOINTER_H
diff --git a/XmlParser/XmlParser.pro.user b/XmlParser/XmlParser.pro.user
index 5cb6ffe..210f7cf 100644
--- a/XmlParser/XmlParser.pro.user
+++ b/XmlParser/XmlParser.pro.user
@@ -1,892 +1,160 @@
-<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE QtCreatorProject>
-<!-- Written by Qt Creator 2.4.1, 2013-01-28T01:19:28. -->
<qtcreator>
<data>
- <variable>ProjectExplorer.Project.ActiveTarget</variable>
+ <variable>RunConfiguration0-BaseEnvironmentBase</variable>
+ <value type="int">2</value>
+ </data>
+ <data>
+ <variable>RunConfiguration0-CommandLineArguments</variable>
+ <valuelist type="QVariantList"/>
+ </data>
+ <data>
+ <variable>RunConfiguration0-ProFile</variable>
+ <value type="QString">XmlParser.pro</value>
+ </data>
+ <data>
+ <variable>RunConfiguration0-RunConfiguration.name</variable>
+ <value type="QString">XmlParser</value>
+ </data>
+ <data>
+ <variable>RunConfiguration0-UseDyldImageSuffix</variable>
+ <value type="bool">false</value>
+ </data>
+ <data>
+ <variable>RunConfiguration0-UseTerminal</variable>
+ <value type="bool">false</value>
+ </data>
+ <data>
+ <variable>RunConfiguration0-UserEnvironmentChanges</variable>
+ <valuelist type="QVariantList"/>
+ </data>
+ <data>
+ <variable>RunConfiguration0-UserSetName</variable>
+ <value type="bool">false</value>
+ </data>
+ <data>
+ <variable>RunConfiguration0-UserSetWorkingDirectory</variable>
+ <value type="bool">false</value>
+ </data>
+ <data>
+ <variable>RunConfiguration0-UserWorkingDirectory</variable>
+ <value type="QString"></value>
+ </data>
+ <data>
+ <variable>RunConfiguration0-type</variable>
+ <value
type="QString">Qt4ProjectManager.Qt4RunConfiguration</value>
+ </data>
+ <data>
+ <variable>activeRunConfiguration</variable>
<value type="int">0</value>
</data>
<data>
- <variable>ProjectExplorer.Project.EditorSettings</variable>
+ <variable>activebuildconfiguration</variable>
+ <value type="QString">Debug</value>
+ </data>
+ <data>
+ <variable>buildConfiguration-Debug</variable>
<valuemap type="QVariantMap">
- <value type="bool"
key="EditorConfiguration.AutoIndent">true</value>
- <value type="bool"
key="EditorConfiguration.AutoSpacesForTabs">false</value>
- <valuemap type="QVariantMap"
key="EditorConfiguration.CodeStyle.0">
- <value type="QString" key="language">Cpp</value>
- <valuemap type="QVariantMap" key="value">
- <value type="QString"
key="CurrentPreferences">CppGlobal</value>
- </valuemap>
- </valuemap>
- <valuemap type="QVariantMap"
key="EditorConfiguration.CodeStyle.1">
- <value type="QString" key="language">QmlJS</value>
- <valuemap type="QVariantMap" key="value">
- <value type="QString"
key="CurrentPreferences">QmlJSGlobal</value>
- </valuemap>
- </valuemap>
- <value type="int"
key="EditorConfiguration.CodeStyle.Count">2</value>
- <value type="QByteArray"
key="EditorConfiguration.Codec">System</value>
- <value type="bool"
key="EditorConfiguration.ConstrainTooltips">false</value>
- <value type="int"
key="EditorConfiguration.IndentSize">4</value>
- <value type="bool"
key="EditorConfiguration.MouseNavigation">true</value>
- <value type="int"
key="EditorConfiguration.PaddingMode">1</value>
- <value type="bool"
key="EditorConfiguration.ScrollWheelZooming">true</value>
- <value type="int"
key="EditorConfiguration.SmartBackspaceBehavior">0</value>
- <value type="bool"
key="EditorConfiguration.SpacesForTabs">true</value>
- <value type="int"
key="EditorConfiguration.TabKeyBehavior">0</value>
- <value type="int"
key="EditorConfiguration.TabSize">8</value>
- <value type="bool"
key="EditorConfiguration.UseGlobal">true</value>
- <value type="int"
key="EditorConfiguration.Utf8BomBehavior">1</value>
- <value type="bool"
key="EditorConfiguration.addFinalNewLine">true</value>
- <value type="bool"
key="EditorConfiguration.cleanIndentation">true</value>
- <value type="bool"
key="EditorConfiguration.cleanWhitespace">true</value>
- <value type="bool"
key="EditorConfiguration.inEntireDocument">false</value>
+ <value key="ProjectExplorer.BuildConfiguration.DisplayName"
type="QString">Debug</value>
+ <value key="QtVersionId" type="int">0</value>
+ <value key="ToolChain" type="int">0</value>
+ <value key="buildConfiguration" type="int">2</value>
</valuemap>
</data>
<data>
- <variable>ProjectExplorer.Project.PluginSettings</variable>
- <valuemap type="QVariantMap"/>
+ <variable>buildConfiguration-Release</variable>
+ <valuemap type="QVariantMap">
+ <value key="ProjectExplorer.BuildConfiguration.DisplayName"
type="QString">Release</value>
+ <value key="QtVersionId" type="int">0</value>
+ <value key="buildConfiguration" type="int">0</value>
+ </valuemap>
+ </data>
+ <data>
+ <variable>buildconfiguration-Debug-buildstep0</variable>
+ <valuemap type="QVariantMap">
+ <value key="ProjectExplorer.BuildConfiguration.DisplayName"
type="QString">Debug</value>
+ </valuemap>
+ </data>
+ <data>
+ <variable>buildconfiguration-Debug-buildstep1</variable>
+ <valuemap type="QVariantMap">
+ <value key="ProjectExplorer.BuildConfiguration.DisplayName"
type="QString">Debug</value>
+ </valuemap>
+ </data>
+ <data>
+ <variable>buildconfiguration-Debug-cleanstep0</variable>
+ <valuemap type="QVariantMap">
+ <value key="ProjectExplorer.BuildConfiguration.DisplayName"
type="QString">Debug</value>
+ <value key="cleanConfig" type="bool">true</value>
+ <valuelist key="makeargs" type="QVariantList">
+ <value type="QString">clean</value>
+ </valuelist>
+ </valuemap>
</data>
<data>
- <variable>ProjectExplorer.Project.Target.0</variable>
+ <variable>buildconfiguration-Release-buildstep0</variable>
<valuemap type="QVariantMap">
- <value type="QString"
key="ProjectExplorer.ProjectConfiguration.DefaultDisplayName"></value>
- <value type="QString"
key="ProjectExplorer.ProjectConfiguration.DisplayName"></value>
- <value type="QString"
key="ProjectExplorer.ProjectConfiguration.Id">Qt4ProjectManager.Target.DesktopTarget</value>
- <value type="int"
key="ProjectExplorer.Target.ActiveBuildConfiguration">1</value>
- <value type="int"
key="ProjectExplorer.Target.ActiveDeployConfiguration">0</value>
- <value type="int"
key="ProjectExplorer.Target.ActiveRunConfiguration">0</value>
- <valuemap type="QVariantMap"
key="ProjectExplorer.Target.BuildConfiguration.0">
- <value type="QString"
key="ProjectExplorer.BuildCOnfiguration.ToolChain">ProjectExplorer.ToolChain.Gcc:/usr/bin/g++.x86-linux-generic-elf-32bit./usr/bin/gdb</value>
- <valuemap type="QVariantMap"
key="ProjectExplorer.BuildConfiguration.BuildStepList.0">
- <valuemap type="QVariantMap"
key="ProjectExplorer.BuildStepList.Step.0">
- <value type="QString"
key="ProjectExplorer.ProjectConfiguration.DefaultDisplayName">qmake</value>
- <value type="QString"
key="ProjectExplorer.ProjectConfiguration.DisplayName"></value>
- <value type="QString"
key="ProjectExplorer.ProjectConfiguration.Id">QtProjectManager.QMakeBuildStep</value>
- <value type="bool"
key="QtProjectManager.QMakeBuildStep.LinkQmlDebuggingLibrary">false</value>
- <value type="bool"
key="QtProjectManager.QMakeBuildStep.LinkQmlDebuggingLibraryAuto">false</value>
- <value type="QString"
key="QtProjectManager.QMakeBuildStep.QMakeArguments"></value>
- <value type="bool"
key="QtProjectManager.QMakeBuildStep.QMakeForced">false</value>
- </valuemap>
- <valuemap type="QVariantMap"
key="ProjectExplorer.BuildStepList.Step.1">
- <value type="QString"
key="ProjectExplorer.ProjectConfiguration.DefaultDisplayName">Make</value>
- <value type="QString"
key="ProjectExplorer.ProjectConfiguration.DisplayName"></value>
- <value type="QString"
key="ProjectExplorer.ProjectConfiguration.Id">Qt4ProjectManager.MakeStep</value>
- <value type="bool"
key="Qt4ProjectManager.MakeStep.Clean">false</value>
- <value type="QString"
key="Qt4ProjectManager.MakeStep.MakeArguments"></value>
- <value type="QString"
key="Qt4ProjectManager.MakeStep.MakeCommand"></value>
- </valuemap>
- <value type="int"
key="ProjectExplorer.BuildStepList.StepsCount">2</value>
- <value type="QString"
key="ProjectExplorer.ProjectConfiguration.DefaultDisplayName">Compiler</value>
- <value type="QString"
key="ProjectExplorer.ProjectConfiguration.DisplayName">Build</value>
- <value type="QString"
key="ProjectExplorer.ProjectConfiguration.Id">ProjectExplorer.BuildSteps.Build</value>
- </valuemap>
- <valuemap type="QVariantMap"
key="ProjectExplorer.BuildConfiguration.BuildStepList.1">
- <valuemap type="QVariantMap"
key="ProjectExplorer.BuildStepList.Step.0">
- <value type="QString"
key="ProjectExplorer.ProjectConfiguration.DefaultDisplayName">Make</value>
- <value type="QString"
key="ProjectExplorer.ProjectConfiguration.DisplayName"></value>
- <value type="QString"
key="ProjectExplorer.ProjectConfiguration.Id">Qt4ProjectManager.MakeStep</value>
- <value type="bool"
key="Qt4ProjectManager.MakeStep.Clean">true</value>
- <value type="QString"
key="Qt4ProjectManager.MakeStep.MakeArguments">clean</value>
- <value type="QString"
key="Qt4ProjectManager.MakeStep.MakeCommand"></value>
- </valuemap>
- <value type="int"
key="ProjectExplorer.BuildStepList.StepsCount">1</value>
- <value type="QString"
key="ProjectExplorer.ProjectConfiguration.DefaultDisplayName">Nettoyer</value>
- <value type="QString"
key="ProjectExplorer.ProjectConfiguration.DisplayName">Clean</value>
- <value type="QString"
key="ProjectExplorer.ProjectConfiguration.Id">ProjectExplorer.BuildSteps.Clean</value>
- </valuemap>
- <value type="int"
key="ProjectExplorer.BuildConfiguration.BuildStepListCount">2</value>
- <value type="bool"
key="ProjectExplorer.BuildConfiguration.ClearSystemEnvironment">false</value>
- <valuelist type="QVariantList"
key="ProjectExplorer.BuildConfiguration.UserEnvironmentChanges"/>
- <value type="QString"
key="ProjectExplorer.ProjectConfiguration.DefaultDisplayName">Debug</value>
- <value type="QString"
key="ProjectExplorer.ProjectConfiguration.DisplayName">Debug</value>
- <value type="QString"
key="ProjectExplorer.ProjectConfiguration.Id">Qt4ProjectManager.Qt4BuildConfiguration</value>
- <value type="int"
key="Qt4ProjectManager.Qt4BuildConfiguration.BuildConfiguration">2</value>
- <value type="QString"
key="Qt4ProjectManager.Qt4BuildConfiguration.BuildDirectory">/home/onix/qt/XmlParser-build-desktop-Debug</value>
- <value type="int"
key="Qt4ProjectManager.Qt4BuildConfiguration.QtVersionId">1</value>
- <value type="bool"
key="Qt4ProjectManager.Qt4BuildConfiguration.UseShadowBuild">false</value>
- </valuemap>
- <valuemap type="QVariantMap"
key="ProjectExplorer.Target.BuildConfiguration.1">
- <value type="QString"
key="ProjectExplorer.BuildCOnfiguration.ToolChain">ProjectExplorer.ToolChain.Gcc:/usr/bin/g++.x86-linux-generic-elf-32bit./usr/bin/gdb</value>
- <valuemap type="QVariantMap"
key="ProjectExplorer.BuildConfiguration.BuildStepList.0">
- <valuemap type="QVariantMap"
key="ProjectExplorer.BuildStepList.Step.0">
- <value type="QString"
key="ProjectExplorer.ProjectConfiguration.DefaultDisplayName">qmake</value>
- <value type="QString"
key="ProjectExplorer.ProjectConfiguration.DisplayName"></value>
- <value type="QString"
key="ProjectExplorer.ProjectConfiguration.Id">QtProjectManager.QMakeBuildStep</value>
- <value type="bool"
key="QtProjectManager.QMakeBuildStep.LinkQmlDebuggingLibrary">false</value>
- <value type="bool"
key="QtProjectManager.QMakeBuildStep.LinkQmlDebuggingLibraryAuto">false</value>
- <value type="QString"
key="QtProjectManager.QMakeBuildStep.QMakeArguments"></value>
- <value type="bool"
key="QtProjectManager.QMakeBuildStep.QMakeForced">false</value>
- </valuemap>
- <valuemap type="QVariantMap"
key="ProjectExplorer.BuildStepList.Step.1">
- <value type="QString"
key="ProjectExplorer.ProjectConfiguration.DefaultDisplayName">Make</value>
- <value type="QString"
key="ProjectExplorer.ProjectConfiguration.DisplayName"></value>
- <value type="QString"
key="ProjectExplorer.ProjectConfiguration.Id">Qt4ProjectManager.MakeStep</value>
- <value type="bool"
key="Qt4ProjectManager.MakeStep.Clean">false</value>
- <value type="QString"
key="Qt4ProjectManager.MakeStep.MakeArguments"></value>
- <value type="QString"
key="Qt4ProjectManager.MakeStep.MakeCommand"></value>
- </valuemap>
- <value type="int"
key="ProjectExplorer.BuildStepList.StepsCount">2</value>
- <value type="QString"
key="ProjectExplorer.ProjectConfiguration.DefaultDisplayName">Compiler</value>
- <value type="QString"
key="ProjectExplorer.ProjectConfiguration.DisplayName">Build</value>
- <value type="QString"
key="ProjectExplorer.ProjectConfiguration.Id">ProjectExplorer.BuildSteps.Build</value>
- </valuemap>
- <valuemap type="QVariantMap"
key="ProjectExplorer.BuildConfiguration.BuildStepList.1">
- <valuemap type="QVariantMap"
key="ProjectExplorer.BuildStepList.Step.0">
- <value type="QString"
key="ProjectExplorer.ProjectConfiguration.DefaultDisplayName">Make</value>
- <value type="QString"
key="ProjectExplorer.ProjectConfiguration.DisplayName"></value>
- <value type="QString"
key="ProjectExplorer.ProjectConfiguration.Id">Qt4ProjectManager.MakeStep</value>
- <value type="bool"
key="Qt4ProjectManager.MakeStep.Clean">true</value>
- <value type="QString"
key="Qt4ProjectManager.MakeStep.MakeArguments">clean</value>
- <value type="QString"
key="Qt4ProjectManager.MakeStep.MakeCommand"></value>
- </valuemap>
- <value type="int"
key="ProjectExplorer.BuildStepList.StepsCount">1</value>
- <value type="QString"
key="ProjectExplorer.ProjectConfiguration.DefaultDisplayName">Nettoyer</value>
- <value type="QString"
key="ProjectExplorer.ProjectConfiguration.DisplayName">Clean</value>
- <value type="QString"
key="ProjectExplorer.ProjectConfiguration.Id">ProjectExplorer.BuildSteps.Clean</value>
- </valuemap>
- <value type="int"
key="ProjectExplorer.BuildConfiguration.BuildStepListCount">2</value>
- <value type="bool"
key="ProjectExplorer.BuildConfiguration.ClearSystemEnvironment">false</value>
- <valuelist type="QVariantList"
key="ProjectExplorer.BuildConfiguration.UserEnvironmentChanges"/>
- <value type="QString"
key="ProjectExplorer.ProjectConfiguration.DefaultDisplayName">Release</value>
- <value type="QString"
key="ProjectExplorer.ProjectConfiguration.DisplayName">Release</value>
- <value type="QString"
key="ProjectExplorer.ProjectConfiguration.Id">Qt4ProjectManager.Qt4BuildConfiguration</value>
- <value type="int"
key="Qt4ProjectManager.Qt4BuildConfiguration.BuildConfiguration">0</value>
- <value type="QString"
key="Qt4ProjectManager.Qt4BuildConfiguration.BuildDirectory">/home/onix/qt/XmlParser-build-desktop-Release</value>
- <value type="int"
key="Qt4ProjectManager.Qt4BuildConfiguration.QtVersionId">1</value>
- <value type="bool"
key="Qt4ProjectManager.Qt4BuildConfiguration.UseShadowBuild">false</value>
- </valuemap>
- <value type="int"
key="ProjectExplorer.Target.BuildConfigurationCount">2</value>
- <valuemap type="QVariantMap"
key="ProjectExplorer.Target.DeployConfiguration.0">
- <valuemap type="QVariantMap"
key="ProjectExplorer.BuildConfiguration.BuildStepList.0">
- <value type="int"
key="ProjectExplorer.BuildStepList.StepsCount">0</value>
- <value type="QString"
key="ProjectExplorer.ProjectConfiguration.DefaultDisplayName">Déploiement</value>
- <value type="QString"
key="ProjectExplorer.ProjectConfiguration.DisplayName">Deploy</value>
- <value type="QString"
key="ProjectExplorer.ProjectConfiguration.Id">ProjectExplorer.BuildSteps.Deploy</value>
- </valuemap>
- <value type="int"
key="ProjectExplorer.BuildConfiguration.BuildStepListCount">1</value>
- <value type="QString"
key="ProjectExplorer.ProjectConfiguration.DefaultDisplayName">Pas de
déploiement</value>
- <value type="QString"
key="ProjectExplorer.ProjectConfiguration.DisplayName">Pas de
déploiement</value>
- <value type="QString"
key="ProjectExplorer.ProjectConfiguration.Id">ProjectExplorer.DefaultDeployConfiguration</value>
- </valuemap>
- <value type="int"
key="ProjectExplorer.Target.DeployConfigurationCount">1</value>
- <valuemap type="QVariantMap"
key="ProjectExplorer.Target.RunConfiguration.0">
- <value type="bool"
key="Analyzer.Project.UseGlobal">true</value>
- <value type="bool"
key="Analyzer.Project.UseGlobal">true</value>
- <valuelist type="QVariantList"
key="Analyzer.Valgrind.AddedSuppressionFiles"/>
- <valuelist type="QVariantList"
key="Analyzer.Valgrind.AddedSuppressionFiles"/>
- <value type="bool"
key="Analyzer.Valgrind.Callgrind.CollectBusEvents">false</value>
- <value type="bool"
key="Analyzer.Valgrind.Callgrind.CollectBusEvents">false</value>
- <value type="bool"
key="Analyzer.Valgrind.Callgrind.CollectSystime">false</value>
- <value type="bool"
key="Analyzer.Valgrind.Callgrind.CollectSystime">false</value>
- <value type="bool"
key="Analyzer.Valgrind.Callgrind.EnableBranchSim">false</value>
- <value type="bool"
key="Analyzer.Valgrind.Callgrind.EnableBranchSim">false</value>
- <value type="bool"
key="Analyzer.Valgrind.Callgrind.EnableCacheSim">false</value>
- <value type="bool"
key="Analyzer.Valgrind.Callgrind.EnableCacheSim">false</value>
- <value type="bool"
key="Analyzer.Valgrind.Callgrind.EnableEventToolTips">true</value>
- <value type="bool"
key="Analyzer.Valgrind.Callgrind.EnableEventToolTips">true</value>
- <value type="double"
key="Analyzer.Valgrind.Callgrind.MinimumCostRatio">0.01</value>
- <value type="double"
key="Analyzer.Valgrind.Callgrind.MinimumCostRatio">0.01</value>
- <value type="double"
key="Analyzer.Valgrind.Callgrind.VisualisationMinimumCostRatio">10</value>
- <value type="double"
key="Analyzer.Valgrind.Callgrind.VisualisationMinimumCostRatio">10</value>
- <value type="bool"
key="Analyzer.Valgrind.FilterExternalIssues">true</value>
- <value type="bool"
key="Analyzer.Valgrind.FilterExternalIssues">true</value>
- <value type="int"
key="Analyzer.Valgrind.NumCallers">25</value>
- <value type="int"
key="Analyzer.Valgrind.NumCallers">25</value>
- <valuelist type="QVariantList"
key="Analyzer.Valgrind.RemovedSuppressionFiles"/>
- <valuelist type="QVariantList"
key="Analyzer.Valgrind.RemovedSuppressionFiles"/>
- <value type="bool"
key="Analyzer.Valgrind.TrackOrigins">true</value>
- <value type="bool"
key="Analyzer.Valgrind.TrackOrigins">true</value>
- <value type="QString"
key="Analyzer.Valgrind.ValgrindExecutable">valgrind</value>
- <value type="QString"
key="Analyzer.Valgrind.ValgrindExecutable">valgrind</value>
- <valuelist type="QVariantList"
key="Analyzer.Valgrind.VisibleErrorKinds">
- <value type="int">0</value>
- <value type="int">1</value>
- <value type="int">2</value>
- <value type="int">3</value>
- <value type="int">4</value>
- <value type="int">5</value>
- <value type="int">6</value>
- <value type="int">7</value>
- <value type="int">8</value>
- <value type="int">9</value>
- <value type="int">10</value>
- <value type="int">11</value>
- <value type="int">12</value>
- <value type="int">13</value>
- <value type="int">14</value>
- </valuelist>
- <valuelist type="QVariantList"
key="Analyzer.Valgrind.VisibleErrorKinds">
- <value type="int">0</value>
- <value type="int">1</value>
- <value type="int">2</value>
- <value type="int">3</value>
- <value type="int">4</value>
- <value type="int">5</value>
- <value type="int">6</value>
- <value type="int">7</value>
- <value type="int">8</value>
- <value type="int">9</value>
- <value type="int">10</value>
- <value type="int">11</value>
- <value type="int">12</value>
- <value type="int">13</value>
- <value type="int">14</value>
- </valuelist>
- <value type="QString"
key="ProjectExplorer.ProjectConfiguration.DefaultDisplayName">Configuration
d'exécution Qt4</value>
- <value type="QString"
key="ProjectExplorer.ProjectConfiguration.DisplayName">XmlParser</value>
- <value type="QString"
key="ProjectExplorer.ProjectConfiguration.Id">Qt4ProjectManager.Qt4RunConfiguration</value>
- <value type="int"
key="Qt4ProjectManager.Qt4RunConfiguration.BaseEnvironmentBase">2</value>
- <value type="QString"
key="Qt4ProjectManager.Qt4RunConfiguration.CommandLineArguments"></value>
- <value type="QString"
key="Qt4ProjectManager.Qt4RunConfiguration.ProFile">XmlParser.pro</value>
- <value type="bool"
key="Qt4ProjectManager.Qt4RunConfiguration.UseDyldImageSuffix">false</value>
- <value type="bool"
key="Qt4ProjectManager.Qt4RunConfiguration.UseTerminal">false</value>
- <valuelist type="QVariantList"
key="Qt4ProjectManager.Qt4RunConfiguration.UserEnvironmentChanges"/>
- <value type="QString"
key="Qt4ProjectManager.Qt4RunConfiguration.UserWorkingDirectory"></value>
- <value type="uint"
key="RunConfiguration.QmlDebugServerPort">3768</value>
- <value type="bool"
key="RunConfiguration.UseCppDebugger">true</value>
- <value type="bool"
key="RunConfiguration.UseQmlDebugger">false</value>
- <value type="bool"
key="RunConfiguration.UseQmlDebuggerAuto">false</value>
- </valuemap>
- <value type="int"
key="ProjectExplorer.Target.RunConfigurationCount">1</value>
+ <value key="ProjectExplorer.BuildConfiguration.DisplayName"
type="QString">Release</value>
</valuemap>
</data>
<data>
- <variable>ProjectExplorer.Project.Target.1</variable>
+ <variable>buildconfiguration-Release-buildstep1</variable>
<valuemap type="QVariantMap">
- <value type="QString"
key="ProjectExplorer.ProjectConfiguration.DefaultDisplayName">2</value>
- <value type="QString"
key="ProjectExplorer.ProjectConfiguration.DisplayName"></value>
- <value type="QString"
key="ProjectExplorer.ProjectConfiguration.Id">Qt4ProjectManager.Target.S60EmulatorTarget</value>
- <value type="int"
key="ProjectExplorer.Target.ActiveBuildConfiguration">1</value>
- <value type="int"
key="ProjectExplorer.Target.ActiveDeployConfiguration">0</value>
- <value type="int"
key="ProjectExplorer.Target.ActiveRunConfiguration">0</value>
- <valuemap type="QVariantMap"
key="ProjectExplorer.Target.BuildConfiguration.0">
- <value type="QString"
key="ProjectExplorer.BuildCOnfiguration.ToolChain">INVALID</value>
- <valuemap type="QVariantMap"
key="ProjectExplorer.BuildConfiguration.BuildStepList.0">
- <valuemap type="QVariantMap"
key="ProjectExplorer.BuildStepList.Step.0">
- <value type="QString"
key="ProjectExplorer.ProjectConfiguration.DefaultDisplayName">qmake</value>
- <value type="QString"
key="ProjectExplorer.ProjectConfiguration.DisplayName"></value>
- <value type="QString"
key="ProjectExplorer.ProjectConfiguration.Id">QtProjectManager.QMakeBuildStep</value>
- <value type="bool"
key="QtProjectManager.QMakeBuildStep.LinkQmlDebuggingLibrary">false</value>
- <value type="bool"
key="QtProjectManager.QMakeBuildStep.LinkQmlDebuggingLibraryAuto">false</value>
- <value type="QString"
key="QtProjectManager.QMakeBuildStep.QMakeArguments"></value>
- <value type="bool"
key="QtProjectManager.QMakeBuildStep.QMakeForced">false</value>
- </valuemap>
- <valuemap type="QVariantMap"
key="ProjectExplorer.BuildStepList.Step.1">
- <value type="QString"
key="ProjectExplorer.ProjectConfiguration.DefaultDisplayName">Make</value>
- <value type="QString"
key="ProjectExplorer.ProjectConfiguration.DisplayName"></value>
- <value type="QString"
key="ProjectExplorer.ProjectConfiguration.Id">Qt4ProjectManager.MakeStep</value>
- <value type="bool"
key="Qt4ProjectManager.MakeStep.Clean">false</value>
- <value type="QString"
key="Qt4ProjectManager.MakeStep.MakeArguments"></value>
- <value type="QString"
key="Qt4ProjectManager.MakeStep.MakeCommand"></value>
- </valuemap>
- <value type="int"
key="ProjectExplorer.BuildStepList.StepsCount">2</value>
- <value type="QString"
key="ProjectExplorer.ProjectConfiguration.DefaultDisplayName">Compiler</value>
- <value type="QString"
key="ProjectExplorer.ProjectConfiguration.DisplayName">Build</value>
- <value type="QString"
key="ProjectExplorer.ProjectConfiguration.Id">ProjectExplorer.BuildSteps.Build</value>
- </valuemap>
- <valuemap type="QVariantMap"
key="ProjectExplorer.BuildConfiguration.BuildStepList.1">
- <valuemap type="QVariantMap"
key="ProjectExplorer.BuildStepList.Step.0">
- <value type="QString"
key="ProjectExplorer.ProjectConfiguration.DefaultDisplayName">Make</value>
- <value type="QString"
key="ProjectExplorer.ProjectConfiguration.DisplayName"></value>
- <value type="QString"
key="ProjectExplorer.ProjectConfiguration.Id">Qt4ProjectManager.MakeStep</value>
- <value type="bool"
key="Qt4ProjectManager.MakeStep.Clean">true</value>
- <value type="QString"
key="Qt4ProjectManager.MakeStep.MakeArguments">clean</value>
- <value type="QString"
key="Qt4ProjectManager.MakeStep.MakeCommand"></value>
- </valuemap>
- <value type="int"
key="ProjectExplorer.BuildStepList.StepsCount">1</value>
- <value type="QString"
key="ProjectExplorer.ProjectConfiguration.DefaultDisplayName">Nettoyer</value>
- <value type="QString"
key="ProjectExplorer.ProjectConfiguration.DisplayName">Clean</value>
- <value type="QString"
key="ProjectExplorer.ProjectConfiguration.Id">ProjectExplorer.BuildSteps.Clean</value>
- </valuemap>
- <value type="int"
key="ProjectExplorer.BuildConfiguration.BuildStepListCount">2</value>
- <value type="bool"
key="ProjectExplorer.BuildConfiguration.ClearSystemEnvironment">false</value>
- <valuelist type="QVariantList"
key="ProjectExplorer.BuildConfiguration.UserEnvironmentChanges"/>
- <value type="QString"
key="ProjectExplorer.ProjectConfiguration.DefaultDisplayName">Debug</value>
- <value type="QString"
key="ProjectExplorer.ProjectConfiguration.DisplayName">Debug</value>
- <value type="QString"
key="ProjectExplorer.ProjectConfiguration.Id">Qt4ProjectManager.Qt4BuildConfiguration</value>
- <value type="int"
key="Qt4ProjectManager.Qt4BuildConfiguration.BuildConfiguration">2</value>
- <value type="QString"
key="Qt4ProjectManager.Qt4BuildConfiguration.BuildDirectory">/home/onix/qt/XmlParser</value>
- <value type="int"
key="Qt4ProjectManager.Qt4BuildConfiguration.QtVersionId">-1</value>
- <value type="bool"
key="Qt4ProjectManager.Qt4BuildConfiguration.UseShadowBuild">false</value>
- </valuemap>
- <valuemap type="QVariantMap"
key="ProjectExplorer.Target.BuildConfiguration.1">
- <value type="QString"
key="ProjectExplorer.BuildCOnfiguration.ToolChain">INVALID</value>
- <valuemap type="QVariantMap"
key="ProjectExplorer.BuildConfiguration.BuildStepList.0">
- <valuemap type="QVariantMap"
key="ProjectExplorer.BuildStepList.Step.0">
- <value type="QString"
key="ProjectExplorer.ProjectConfiguration.DefaultDisplayName">qmake</value>
- <value type="QString"
key="ProjectExplorer.ProjectConfiguration.DisplayName"></value>
- <value type="QString"
key="ProjectExplorer.ProjectConfiguration.Id">QtProjectManager.QMakeBuildStep</value>
- <value type="bool"
key="QtProjectManager.QMakeBuildStep.LinkQmlDebuggingLibrary">false</value>
- <value type="bool"
key="QtProjectManager.QMakeBuildStep.LinkQmlDebuggingLibraryAuto">false</value>
- <value type="QString"
key="QtProjectManager.QMakeBuildStep.QMakeArguments"></value>
- <value type="bool"
key="QtProjectManager.QMakeBuildStep.QMakeForced">false</value>
- </valuemap>
- <valuemap type="QVariantMap"
key="ProjectExplorer.BuildStepList.Step.1">
- <value type="QString"
key="ProjectExplorer.ProjectConfiguration.DefaultDisplayName">Make</value>
- <value type="QString"
key="ProjectExplorer.ProjectConfiguration.DisplayName"></value>
- <value type="QString"
key="ProjectExplorer.ProjectConfiguration.Id">Qt4ProjectManager.MakeStep</value>
- <value type="bool"
key="Qt4ProjectManager.MakeStep.Clean">false</value>
- <value type="QString"
key="Qt4ProjectManager.MakeStep.MakeArguments"></value>
- <value type="QString"
key="Qt4ProjectManager.MakeStep.MakeCommand"></value>
- </valuemap>
- <value type="int"
key="ProjectExplorer.BuildStepList.StepsCount">2</value>
- <value type="QString"
key="ProjectExplorer.ProjectConfiguration.DefaultDisplayName">Compiler</value>
- <value type="QString"
key="ProjectExplorer.ProjectConfiguration.DisplayName">Build</value>
- <value type="QString"
key="ProjectExplorer.ProjectConfiguration.Id">ProjectExplorer.BuildSteps.Build</value>
- </valuemap>
- <valuemap type="QVariantMap"
key="ProjectExplorer.BuildConfiguration.BuildStepList.1">
- <valuemap type="QVariantMap"
key="ProjectExplorer.BuildStepList.Step.0">
- <value type="QString"
key="ProjectExplorer.ProjectConfiguration.DefaultDisplayName">Make</value>
- <value type="QString"
key="ProjectExplorer.ProjectConfiguration.DisplayName"></value>
- <value type="QString"
key="ProjectExplorer.ProjectConfiguration.Id">Qt4ProjectManager.MakeStep</value>
- <value type="bool"
key="Qt4ProjectManager.MakeStep.Clean">true</value>
- <value type="QString"
key="Qt4ProjectManager.MakeStep.MakeArguments">clean</value>
- <value type="QString"
key="Qt4ProjectManager.MakeStep.MakeCommand"></value>
- </valuemap>
- <value type="int"
key="ProjectExplorer.BuildStepList.StepsCount">1</value>
- <value type="QString"
key="ProjectExplorer.ProjectConfiguration.DefaultDisplayName">Nettoyer</value>
- <value type="QString"
key="ProjectExplorer.ProjectConfiguration.DisplayName">Clean</value>
- <value type="QString"
key="ProjectExplorer.ProjectConfiguration.Id">ProjectExplorer.BuildSteps.Clean</value>
- </valuemap>
- <value type="int"
key="ProjectExplorer.BuildConfiguration.BuildStepListCount">2</value>
- <value type="bool"
key="ProjectExplorer.BuildConfiguration.ClearSystemEnvironment">false</value>
- <valuelist type="QVariantList"
key="ProjectExplorer.BuildConfiguration.UserEnvironmentChanges"/>
- <value type="QString"
key="ProjectExplorer.ProjectConfiguration.DefaultDisplayName">Release</value>
- <value type="QString"
key="ProjectExplorer.ProjectConfiguration.DisplayName">Release</value>
- <value type="QString"
key="ProjectExplorer.ProjectConfiguration.Id">Qt4ProjectManager.Qt4BuildConfiguration</value>
- <value type="int"
key="Qt4ProjectManager.Qt4BuildConfiguration.BuildConfiguration">0</value>
- <value type="QString"
key="Qt4ProjectManager.Qt4BuildConfiguration.BuildDirectory">/home/onix/qt/XmlParser</value>
- <value type="int"
key="Qt4ProjectManager.Qt4BuildConfiguration.QtVersionId">-1</value>
- <value type="bool"
key="Qt4ProjectManager.Qt4BuildConfiguration.UseShadowBuild">false</value>
- </valuemap>
- <value type="int"
key="ProjectExplorer.Target.BuildConfigurationCount">2</value>
- <valuemap type="QVariantMap"
key="ProjectExplorer.Target.DeployConfiguration.0">
- <valuemap type="QVariantMap"
key="ProjectExplorer.BuildConfiguration.BuildStepList.0">
- <value type="int"
key="ProjectExplorer.BuildStepList.StepsCount">0</value>
- <value type="QString"
key="ProjectExplorer.ProjectConfiguration.DefaultDisplayName">Déploiement</value>
- <value type="QString"
key="ProjectExplorer.ProjectConfiguration.DisplayName">Deploy</value>
- <value type="QString"
key="ProjectExplorer.ProjectConfiguration.Id">ProjectExplorer.BuildSteps.Deploy</value>
- </valuemap>
- <value type="int"
key="ProjectExplorer.BuildConfiguration.BuildStepListCount">1</value>
- <value type="QString"
key="ProjectExplorer.ProjectConfiguration.DefaultDisplayName">Pas de
déploiement</value>
- <value type="QString"
key="ProjectExplorer.ProjectConfiguration.DisplayName">Pas de
déploiement</value>
- <value type="QString"
key="ProjectExplorer.ProjectConfiguration.Id">ProjectExplorer.DefaultDeployConfiguration</value>
- </valuemap>
- <value type="int"
key="ProjectExplorer.Target.DeployConfigurationCount">1</value>
- <valuemap type="QVariantMap"
key="ProjectExplorer.Target.RunConfiguration.0">
- <value type="bool"
key="Analyzer.Project.UseGlobal">true</value>
- <value type="bool"
key="Analyzer.Project.UseGlobal">true</value>
- <valuelist type="QVariantList"
key="Analyzer.Valgrind.AddedSuppressionFiles"/>
- <valuelist type="QVariantList"
key="Analyzer.Valgrind.AddedSuppressionFiles"/>
- <value type="bool"
key="Analyzer.Valgrind.Callgrind.CollectBusEvents">false</value>
- <value type="bool"
key="Analyzer.Valgrind.Callgrind.CollectBusEvents">false</value>
- <value type="bool"
key="Analyzer.Valgrind.Callgrind.CollectSystime">false</value>
- <value type="bool"
key="Analyzer.Valgrind.Callgrind.CollectSystime">false</value>
- <value type="bool"
key="Analyzer.Valgrind.Callgrind.EnableBranchSim">false</value>
- <value type="bool"
key="Analyzer.Valgrind.Callgrind.EnableBranchSim">false</value>
- <value type="bool"
key="Analyzer.Valgrind.Callgrind.EnableCacheSim">false</value>
- <value type="bool"
key="Analyzer.Valgrind.Callgrind.EnableCacheSim">false</value>
- <value type="bool"
key="Analyzer.Valgrind.Callgrind.EnableEventToolTips">true</value>
- <value type="bool"
key="Analyzer.Valgrind.Callgrind.EnableEventToolTips">true</value>
- <value type="double"
key="Analyzer.Valgrind.Callgrind.MinimumCostRatio">0.01</value>
- <value type="double"
key="Analyzer.Valgrind.Callgrind.MinimumCostRatio">0.01</value>
- <value type="double"
key="Analyzer.Valgrind.Callgrind.VisualisationMinimumCostRatio">10</value>
- <value type="double"
key="Analyzer.Valgrind.Callgrind.VisualisationMinimumCostRatio">10</value>
- <value type="bool"
key="Analyzer.Valgrind.FilterExternalIssues">true</value>
- <value type="bool"
key="Analyzer.Valgrind.FilterExternalIssues">true</value>
- <value type="int"
key="Analyzer.Valgrind.NumCallers">25</value>
- <value type="int"
key="Analyzer.Valgrind.NumCallers">25</value>
- <valuelist type="QVariantList"
key="Analyzer.Valgrind.RemovedSuppressionFiles"/>
- <valuelist type="QVariantList"
key="Analyzer.Valgrind.RemovedSuppressionFiles"/>
- <value type="bool"
key="Analyzer.Valgrind.TrackOrigins">true</value>
- <value type="bool"
key="Analyzer.Valgrind.TrackOrigins">true</value>
- <value type="QString"
key="Analyzer.Valgrind.ValgrindExecutable">valgrind</value>
- <value type="QString"
key="Analyzer.Valgrind.ValgrindExecutable">valgrind</value>
- <valuelist type="QVariantList"
key="Analyzer.Valgrind.VisibleErrorKinds">
- <value type="int">0</value>
- <value type="int">1</value>
- <value type="int">2</value>
- <value type="int">3</value>
- <value type="int">4</value>
- <value type="int">5</value>
- <value type="int">6</value>
- <value type="int">7</value>
- <value type="int">8</value>
- <value type="int">9</value>
- <value type="int">10</value>
- <value type="int">11</value>
- <value type="int">12</value>
- <value type="int">13</value>
- <value type="int">14</value>
- </valuelist>
- <valuelist type="QVariantList"
key="Analyzer.Valgrind.VisibleErrorKinds">
- <value type="int">0</value>
- <value type="int">1</value>
- <value type="int">2</value>
- <value type="int">3</value>
- <value type="int">4</value>
- <value type="int">5</value>
- <value type="int">6</value>
- <value type="int">7</value>
- <value type="int">8</value>
- <value type="int">9</value>
- <value type="int">10</value>
- <value type="int">11</value>
- <value type="int">12</value>
- <value type="int">13</value>
- <value type="int">14</value>
- </valuelist>
- <value type="QString"
key="ProjectExplorer.ProjectConfiguration.DefaultDisplayName">XmlParser sur
l'émulateur Symbian</value>
- <value type="QString"
key="ProjectExplorer.ProjectConfiguration.DisplayName"></value>
- <value type="QString"
key="ProjectExplorer.ProjectConfiguration.Id">Qt4ProjectManager.S60EmulatorRunConfiguration</value>
- <value type="QString"
key="Qt4ProjectManager.S60EmulatorRunConfiguration.ProFile">XmlParser.pro</value>
- <value type="uint"
key="RunConfiguration.QmlDebugServerPort">3768</value>
- <value type="bool"
key="RunConfiguration.UseCppDebugger">true</value>
- <value type="bool"
key="RunConfiguration.UseQmlDebugger">false</value>
- <value type="bool"
key="RunConfiguration.UseQmlDebuggerAuto">true</value>
- </valuemap>
- <value type="int"
key="ProjectExplorer.Target.RunConfigurationCount">1</value>
+ <value key="ProjectExplorer.BuildConfiguration.DisplayName"
type="QString">Release</value>
</valuemap>
</data>
<data>
- <variable>ProjectExplorer.Project.Target.2</variable>
+ <variable>buildconfiguration-Release-cleanstep0</variable>
<valuemap type="QVariantMap">
- <value type="QString"
key="ProjectExplorer.ProjectConfiguration.DefaultDisplayName">3</value>
- <value type="QString"
key="ProjectExplorer.ProjectConfiguration.DisplayName"></value>
- <value type="QString"
key="ProjectExplorer.ProjectConfiguration.Id">Qt4ProjectManager.Target.S60DeviceTarget</value>
- <value type="int"
key="ProjectExplorer.Target.ActiveBuildConfiguration">1</value>
- <value type="int"
key="ProjectExplorer.Target.ActiveDeployConfiguration">0</value>
- <value type="int"
key="ProjectExplorer.Target.ActiveRunConfiguration">0</value>
- <valuemap type="QVariantMap"
key="ProjectExplorer.Target.BuildConfiguration.0">
- <value type="QString"
key="ProjectExplorer.BuildCOnfiguration.ToolChain">INVALID</value>
- <valuemap type="QVariantMap"
key="ProjectExplorer.BuildConfiguration.BuildStepList.0">
- <valuemap type="QVariantMap"
key="ProjectExplorer.BuildStepList.Step.0">
- <value type="QString"
key="ProjectExplorer.ProjectConfiguration.DefaultDisplayName">qmake</value>
- <value type="QString"
key="ProjectExplorer.ProjectConfiguration.DisplayName"></value>
- <value type="QString"
key="ProjectExplorer.ProjectConfiguration.Id">QtProjectManager.QMakeBuildStep</value>
- <value type="bool"
key="QtProjectManager.QMakeBuildStep.LinkQmlDebuggingLibrary">false</value>
- <value type="bool"
key="QtProjectManager.QMakeBuildStep.LinkQmlDebuggingLibraryAuto">false</value>
- <value type="QString"
key="QtProjectManager.QMakeBuildStep.QMakeArguments"></value>
- <value type="bool"
key="QtProjectManager.QMakeBuildStep.QMakeForced">false</value>
- </valuemap>
- <valuemap type="QVariantMap"
key="ProjectExplorer.BuildStepList.Step.1">
- <value type="QString"
key="ProjectExplorer.ProjectConfiguration.DefaultDisplayName">Make</value>
- <value type="QString"
key="ProjectExplorer.ProjectConfiguration.DisplayName"></value>
- <value type="QString"
key="ProjectExplorer.ProjectConfiguration.Id">Qt4ProjectManager.MakeStep</value>
- <value type="bool"
key="Qt4ProjectManager.MakeStep.Clean">false</value>
- <value type="QString"
key="Qt4ProjectManager.MakeStep.MakeArguments"></value>
- <value type="QString"
key="Qt4ProjectManager.MakeStep.MakeCommand"></value>
- </valuemap>
- <value type="int"
key="ProjectExplorer.BuildStepList.StepsCount">2</value>
- <value type="QString"
key="ProjectExplorer.ProjectConfiguration.DefaultDisplayName">Compiler</value>
- <value type="QString"
key="ProjectExplorer.ProjectConfiguration.DisplayName">Build</value>
- <value type="QString"
key="ProjectExplorer.ProjectConfiguration.Id">ProjectExplorer.BuildSteps.Build</value>
- </valuemap>
- <valuemap type="QVariantMap"
key="ProjectExplorer.BuildConfiguration.BuildStepList.1">
- <valuemap type="QVariantMap"
key="ProjectExplorer.BuildStepList.Step.0">
- <value type="QString"
key="ProjectExplorer.ProjectConfiguration.DefaultDisplayName">Make</value>
- <value type="QString"
key="ProjectExplorer.ProjectConfiguration.DisplayName"></value>
- <value type="QString"
key="ProjectExplorer.ProjectConfiguration.Id">Qt4ProjectManager.MakeStep</value>
- <value type="bool"
key="Qt4ProjectManager.MakeStep.Clean">true</value>
- <value type="QString"
key="Qt4ProjectManager.MakeStep.MakeArguments">clean</value>
- <value type="QString"
key="Qt4ProjectManager.MakeStep.MakeCommand"></value>
- </valuemap>
- <value type="int"
key="ProjectExplorer.BuildStepList.StepsCount">1</value>
- <value type="QString"
key="ProjectExplorer.ProjectConfiguration.DefaultDisplayName">Nettoyer</value>
- <value type="QString"
key="ProjectExplorer.ProjectConfiguration.DisplayName">Clean</value>
- <value type="QString"
key="ProjectExplorer.ProjectConfiguration.Id">ProjectExplorer.BuildSteps.Clean</value>
- </valuemap>
- <value type="int"
key="ProjectExplorer.BuildConfiguration.BuildStepListCount">2</value>
- <value type="bool"
key="ProjectExplorer.BuildConfiguration.ClearSystemEnvironment">false</value>
- <valuelist type="QVariantList"
key="ProjectExplorer.BuildConfiguration.UserEnvironmentChanges"/>
- <value type="QString"
key="ProjectExplorer.ProjectConfiguration.DefaultDisplayName">Debug</value>
- <value type="QString"
key="ProjectExplorer.ProjectConfiguration.DisplayName">Debug</value>
- <value type="QString"
key="ProjectExplorer.ProjectConfiguration.Id">Qt4ProjectManager.Qt4BuildConfiguration</value>
- <value type="int"
key="Qt4ProjectManager.Qt4BuildConfiguration.BuildConfiguration">2</value>
- <value type="QString"
key="Qt4ProjectManager.Qt4BuildConfiguration.BuildDirectory">/home/onix/qt/XmlParser</value>
- <value type="int"
key="Qt4ProjectManager.Qt4BuildConfiguration.QtVersionId">-1</value>
- <value type="bool"
key="Qt4ProjectManager.Qt4BuildConfiguration.UseShadowBuild">false</value>
- </valuemap>
- <valuemap type="QVariantMap"
key="ProjectExplorer.Target.BuildConfiguration.1">
- <value type="QString"
key="ProjectExplorer.BuildCOnfiguration.ToolChain">INVALID</value>
- <valuemap type="QVariantMap"
key="ProjectExplorer.BuildConfiguration.BuildStepList.0">
- <valuemap type="QVariantMap"
key="ProjectExplorer.BuildStepList.Step.0">
- <value type="QString"
key="ProjectExplorer.ProjectConfiguration.DefaultDisplayName">qmake</value>
- <value type="QString"
key="ProjectExplorer.ProjectConfiguration.DisplayName"></value>
- <value type="QString"
key="ProjectExplorer.ProjectConfiguration.Id">QtProjectManager.QMakeBuildStep</value>
- <value type="bool"
key="QtProjectManager.QMakeBuildStep.LinkQmlDebuggingLibrary">false</value>
- <value type="bool"
key="QtProjectManager.QMakeBuildStep.LinkQmlDebuggingLibraryAuto">false</value>
- <value type="QString"
key="QtProjectManager.QMakeBuildStep.QMakeArguments"></value>
- <value type="bool"
key="QtProjectManager.QMakeBuildStep.QMakeForced">false</value>
- </valuemap>
- <valuemap type="QVariantMap"
key="ProjectExplorer.BuildStepList.Step.1">
- <value type="QString"
key="ProjectExplorer.ProjectConfiguration.DefaultDisplayName">Make</value>
- <value type="QString"
key="ProjectExplorer.ProjectConfiguration.DisplayName"></value>
- <value type="QString"
key="ProjectExplorer.ProjectConfiguration.Id">Qt4ProjectManager.MakeStep</value>
- <value type="bool"
key="Qt4ProjectManager.MakeStep.Clean">false</value>
- <value type="QString"
key="Qt4ProjectManager.MakeStep.MakeArguments"></value>
- <value type="QString"
key="Qt4ProjectManager.MakeStep.MakeCommand"></value>
- </valuemap>
- <value type="int"
key="ProjectExplorer.BuildStepList.StepsCount">2</value>
- <value type="QString"
key="ProjectExplorer.ProjectConfiguration.DefaultDisplayName">Compiler</value>
- <value type="QString"
key="ProjectExplorer.ProjectConfiguration.DisplayName">Build</value>
- <value type="QString"
key="ProjectExplorer.ProjectConfiguration.Id">ProjectExplorer.BuildSteps.Build</value>
- </valuemap>
- <valuemap type="QVariantMap"
key="ProjectExplorer.BuildConfiguration.BuildStepList.1">
- <valuemap type="QVariantMap"
key="ProjectExplorer.BuildStepList.Step.0">
- <value type="QString"
key="ProjectExplorer.ProjectConfiguration.DefaultDisplayName">Make</value>
- <value type="QString"
key="ProjectExplorer.ProjectConfiguration.DisplayName"></value>
- <value type="QString"
key="ProjectExplorer.ProjectConfiguration.Id">Qt4ProjectManager.MakeStep</value>
- <value type="bool"
key="Qt4ProjectManager.MakeStep.Clean">true</value>
- <value type="QString"
key="Qt4ProjectManager.MakeStep.MakeArguments">clean</value>
- <value type="QString"
key="Qt4ProjectManager.MakeStep.MakeCommand"></value>
- </valuemap>
- <value type="int"
key="ProjectExplorer.BuildStepList.StepsCount">1</value>
- <value type="QString"
key="ProjectExplorer.ProjectConfiguration.DefaultDisplayName">Nettoyer</value>
- <value type="QString"
key="ProjectExplorer.ProjectConfiguration.DisplayName">Clean</value>
- <value type="QString"
key="ProjectExplorer.ProjectConfiguration.Id">ProjectExplorer.BuildSteps.Clean</value>
- </valuemap>
- <value type="int"
key="ProjectExplorer.BuildConfiguration.BuildStepListCount">2</value>
- <value type="bool"
key="ProjectExplorer.BuildConfiguration.ClearSystemEnvironment">false</value>
- <valuelist type="QVariantList"
key="ProjectExplorer.BuildConfiguration.UserEnvironmentChanges"/>
- <value type="QString"
key="ProjectExplorer.ProjectConfiguration.DefaultDisplayName">Release</value>
- <value type="QString"
key="ProjectExplorer.ProjectConfiguration.DisplayName">Release</value>
- <value type="QString"
key="ProjectExplorer.ProjectConfiguration.Id">Qt4ProjectManager.Qt4BuildConfiguration</value>
- <value type="int"
key="Qt4ProjectManager.Qt4BuildConfiguration.BuildConfiguration">0</value>
- <value type="QString"
key="Qt4ProjectManager.Qt4BuildConfiguration.BuildDirectory">/home/onix/qt/XmlParser</value>
- <value type="int"
key="Qt4ProjectManager.Qt4BuildConfiguration.QtVersionId">-1</value>
- <value type="bool"
key="Qt4ProjectManager.Qt4BuildConfiguration.UseShadowBuild">false</value>
- </valuemap>
- <value type="int"
key="ProjectExplorer.Target.BuildConfigurationCount">2</value>
- <valuemap type="QVariantMap"
key="ProjectExplorer.Target.DeployConfiguration.0">
- <valuemap type="QVariantMap"
key="ProjectExplorer.BuildConfiguration.BuildStepList.0">
- <valuemap type="QVariantMap"
key="ProjectExplorer.BuildStepList.Step.0">
- <value type="QString"
key="ProjectExplorer.ProjectConfiguration.DefaultDisplayName">Créer le paquet
SIS</value>
- <value type="QString"
key="ProjectExplorer.ProjectConfiguration.DisplayName">Create SIS
package</value>
- <value type="QString"
key="ProjectExplorer.ProjectConfiguration.Id">Qt4ProjectManager.S60SignBuildStep</value>
- <value type="QString"
key="Qt4ProjectManager.S60CreatePackageStep.Certificate"></value>
- <value type="QString"
key="Qt4ProjectManager.S60CreatePackageStep.Keyfile"></value>
- <value type="int"
key="Qt4ProjectManager.S60CreatePackageStep.SignMode">0</value>
- <value type="bool"
key="Qt4ProjectManager.S60CreatorPackageStep.SmartInstaller">false</value>
- <value type="bool"
key="Qt4ProjectManager.S60CreatorPackageStep.SuppressPatchWarningDialog">false</value>
- </valuemap>
- <valuemap type="QVariantMap"
key="ProjectExplorer.BuildStepList.Step.1">
- <value type="QString"
key="ProjectExplorer.ProjectConfiguration.DefaultDisplayName">Déployer</value>
- <value type="QString"
key="ProjectExplorer.ProjectConfiguration.DisplayName"></value>
- <value type="QString"
key="ProjectExplorer.ProjectConfiguration.Id">Qt4ProjectManager.S60DeployStep</value>
- </valuemap>
- <value type="int"
key="ProjectExplorer.BuildStepList.StepsCount">2</value>
- <value type="QString"
key="ProjectExplorer.ProjectConfiguration.DefaultDisplayName">Déploiement</value>
- <value type="QString"
key="ProjectExplorer.ProjectConfiguration.DisplayName">Deploy</value>
- <value type="QString"
key="ProjectExplorer.ProjectConfiguration.Id">ProjectExplorer.BuildSteps.Deploy</value>
- </valuemap>
- <value type="int"
key="ProjectExplorer.BuildConfiguration.BuildStepListCount">1</value>
- <value type="QString"
key="ProjectExplorer.ProjectConfiguration.DefaultDisplayName">Pas de
déploiement</value>
- <value type="QString"
key="ProjectExplorer.ProjectConfiguration.DisplayName">Déployer sur un
périphérique Symbian</value>
- <value type="QString"
key="ProjectExplorer.ProjectConfiguration.Id">ProjectExplorer.DefaultDeployConfiguration</value>
- </valuemap>
- <value type="int"
key="ProjectExplorer.Target.DeployConfigurationCount">1</value>
- <valuemap type="QVariantMap"
key="ProjectExplorer.Target.RunConfiguration.0">
- <value type="bool"
key="Analyzer.Project.UseGlobal">true</value>
- <value type="bool"
key="Analyzer.Project.UseGlobal">true</value>
- <valuelist type="QVariantList"
key="Analyzer.Valgrind.AddedSuppressionFiles"/>
- <valuelist type="QVariantList"
key="Analyzer.Valgrind.AddedSuppressionFiles"/>
- <value type="bool"
key="Analyzer.Valgrind.Callgrind.CollectBusEvents">false</value>
- <value type="bool"
key="Analyzer.Valgrind.Callgrind.CollectBusEvents">false</value>
- <value type="bool"
key="Analyzer.Valgrind.Callgrind.CollectSystime">false</value>
- <value type="bool"
key="Analyzer.Valgrind.Callgrind.CollectSystime">false</value>
- <value type="bool"
key="Analyzer.Valgrind.Callgrind.EnableBranchSim">false</value>
- <value type="bool"
key="Analyzer.Valgrind.Callgrind.EnableBranchSim">false</value>
- <value type="bool"
key="Analyzer.Valgrind.Callgrind.EnableCacheSim">false</value>
- <value type="bool"
key="Analyzer.Valgrind.Callgrind.EnableCacheSim">false</value>
- <value type="bool"
key="Analyzer.Valgrind.Callgrind.EnableEventToolTips">true</value>
- <value type="bool"
key="Analyzer.Valgrind.Callgrind.EnableEventToolTips">true</value>
- <value type="double"
key="Analyzer.Valgrind.Callgrind.MinimumCostRatio">0.01</value>
- <value type="double"
key="Analyzer.Valgrind.Callgrind.MinimumCostRatio">0.01</value>
- <value type="double"
key="Analyzer.Valgrind.Callgrind.VisualisationMinimumCostRatio">10</value>
- <value type="double"
key="Analyzer.Valgrind.Callgrind.VisualisationMinimumCostRatio">10</value>
- <value type="bool"
key="Analyzer.Valgrind.FilterExternalIssues">true</value>
- <value type="bool"
key="Analyzer.Valgrind.FilterExternalIssues">true</value>
- <value type="int"
key="Analyzer.Valgrind.NumCallers">25</value>
- <value type="int"
key="Analyzer.Valgrind.NumCallers">25</value>
- <valuelist type="QVariantList"
key="Analyzer.Valgrind.RemovedSuppressionFiles"/>
- <valuelist type="QVariantList"
key="Analyzer.Valgrind.RemovedSuppressionFiles"/>
- <value type="bool"
key="Analyzer.Valgrind.TrackOrigins">true</value>
- <value type="bool"
key="Analyzer.Valgrind.TrackOrigins">true</value>
- <value type="QString"
key="Analyzer.Valgrind.ValgrindExecutable">valgrind</value>
- <value type="QString"
key="Analyzer.Valgrind.ValgrindExecutable">valgrind</value>
- <valuelist type="QVariantList"
key="Analyzer.Valgrind.VisibleErrorKinds">
- <value type="int">0</value>
- <value type="int">1</value>
- <value type="int">2</value>
- <value type="int">3</value>
- <value type="int">4</value>
- <value type="int">5</value>
- <value type="int">6</value>
- <value type="int">7</value>
- <value type="int">8</value>
- <value type="int">9</value>
- <value type="int">10</value>
- <value type="int">11</value>
- <value type="int">12</value>
- <value type="int">13</value>
- <value type="int">14</value>
- </valuelist>
- <valuelist type="QVariantList"
key="Analyzer.Valgrind.VisibleErrorKinds">
- <value type="int">0</value>
- <value type="int">1</value>
- <value type="int">2</value>
- <value type="int">3</value>
- <value type="int">4</value>
- <value type="int">5</value>
- <value type="int">6</value>
- <value type="int">7</value>
- <value type="int">8</value>
- <value type="int">9</value>
- <value type="int">10</value>
- <value type="int">11</value>
- <value type="int">12</value>
- <value type="int">13</value>
- <value type="int">14</value>
- </valuelist>
- <value type="QString"
key="ProjectExplorer.ProjectConfiguration.DefaultDisplayName">XmlParser sur
périphérique Symbian</value>
- <value type="QString"
key="ProjectExplorer.ProjectConfiguration.DisplayName"></value>
- <value type="QString"
key="ProjectExplorer.ProjectConfiguration.Id">Qt4ProjectManager.S60DeviceRunConfiguration</value>
- <value type="QString"
key="Qt4ProjectManager.S60DeviceRunConfiguration.CommandLineArguments"></value>
- <value type="QString"
key="Qt4ProjectManager.S60DeviceRunConfiguration.ProFile">XmlParser.pro</value>
- <value type="uint"
key="RunConfiguration.QmlDebugServerPort">3768</value>
- <value type="bool"
key="RunConfiguration.UseCppDebugger">true</value>
- <value type="bool"
key="RunConfiguration.UseQmlDebugger">false</value>
- <value type="bool"
key="RunConfiguration.UseQmlDebuggerAuto">true</value>
- </valuemap>
- <value type="int"
key="ProjectExplorer.Target.RunConfigurationCount">1</value>
+ <value key="ProjectExplorer.BuildConfiguration.DisplayName"
type="QString">Release</value>
</valuemap>
</data>
<data>
- <variable>ProjectExplorer.Project.Target.3</variable>
+ <variable>buildconfigurations</variable>
+ <valuelist type="QVariantList">
+ <value type="QString">Debug</value>
+ <value type="QString">Release</value>
+ </valuelist>
+ </data>
+ <data>
+ <variable>buildstep0</variable>
<valuemap type="QVariantMap">
- <value type="QString"
key="ProjectExplorer.ProjectConfiguration.DefaultDisplayName">4</value>
- <value type="QString"
key="ProjectExplorer.ProjectConfiguration.DisplayName"></value>
- <value type="QString"
key="ProjectExplorer.ProjectConfiguration.Id">Qt4ProjectManager.Target.MaemoDeviceTarget</value>
- <value type="int"
key="ProjectExplorer.Target.ActiveBuildConfiguration">1</value>
- <value type="int"
key="ProjectExplorer.Target.ActiveDeployConfiguration">0</value>
- <value type="int"
key="ProjectExplorer.Target.ActiveRunConfiguration">0</value>
- <valuemap type="QVariantMap"
key="ProjectExplorer.Target.BuildConfiguration.0">
- <value type="QString"
key="ProjectExplorer.BuildCOnfiguration.ToolChain">INVALID</value>
- <valuemap type="QVariantMap"
key="ProjectExplorer.BuildConfiguration.BuildStepList.0">
- <valuemap type="QVariantMap"
key="ProjectExplorer.BuildStepList.Step.0">
- <value type="QString"
key="ProjectExplorer.ProjectConfiguration.DefaultDisplayName">qmake</value>
- <value type="QString"
key="ProjectExplorer.ProjectConfiguration.DisplayName"></value>
- <value type="QString"
key="ProjectExplorer.ProjectConfiguration.Id">QtProjectManager.QMakeBuildStep</value>
- <value type="bool"
key="QtProjectManager.QMakeBuildStep.LinkQmlDebuggingLibrary">false</value>
- <value type="bool"
key="QtProjectManager.QMakeBuildStep.LinkQmlDebuggingLibraryAuto">false</value>
- <value type="QString"
key="QtProjectManager.QMakeBuildStep.QMakeArguments"></value>
- <value type="bool"
key="QtProjectManager.QMakeBuildStep.QMakeForced">false</value>
- </valuemap>
- <valuemap type="QVariantMap"
key="ProjectExplorer.BuildStepList.Step.1">
- <value type="QString"
key="ProjectExplorer.ProjectConfiguration.DefaultDisplayName">Make</value>
- <value type="QString"
key="ProjectExplorer.ProjectConfiguration.DisplayName"></value>
- <value type="QString"
key="ProjectExplorer.ProjectConfiguration.Id">Qt4ProjectManager.MakeStep</value>
- <value type="bool"
key="Qt4ProjectManager.MakeStep.Clean">false</value>
- <value type="QString"
key="Qt4ProjectManager.MakeStep.MakeArguments"></value>
- <value type="QString"
key="Qt4ProjectManager.MakeStep.MakeCommand"></value>
- </valuemap>
- <value type="int"
key="ProjectExplorer.BuildStepList.StepsCount">2</value>
- <value type="QString"
key="ProjectExplorer.ProjectConfiguration.DefaultDisplayName">Compiler</value>
- <value type="QString"
key="ProjectExplorer.ProjectConfiguration.DisplayName">Build</value>
- <value type="QString"
key="ProjectExplorer.ProjectConfiguration.Id">ProjectExplorer.BuildSteps.Build</value>
- </valuemap>
- <valuemap type="QVariantMap"
key="ProjectExplorer.BuildConfiguration.BuildStepList.1">
- <valuemap type="QVariantMap"
key="ProjectExplorer.BuildStepList.Step.0">
- <value type="QString"
key="ProjectExplorer.ProjectConfiguration.DefaultDisplayName">Make</value>
- <value type="QString"
key="ProjectExplorer.ProjectConfiguration.DisplayName"></value>
- <value type="QString"
key="ProjectExplorer.ProjectConfiguration.Id">Qt4ProjectManager.MakeStep</value>
- <value type="bool"
key="Qt4ProjectManager.MakeStep.Clean">true</value>
- <value type="QString"
key="Qt4ProjectManager.MakeStep.MakeArguments">clean</value>
- <value type="QString"
key="Qt4ProjectManager.MakeStep.MakeCommand"></value>
- </valuemap>
- <value type="int"
key="ProjectExplorer.BuildStepList.StepsCount">1</value>
- <value type="QString"
key="ProjectExplorer.ProjectConfiguration.DefaultDisplayName">Nettoyer</value>
- <value type="QString"
key="ProjectExplorer.ProjectConfiguration.DisplayName">Clean</value>
- <value type="QString"
key="ProjectExplorer.ProjectConfiguration.Id">ProjectExplorer.BuildSteps.Clean</value>
- </valuemap>
- <value type="int"
key="ProjectExplorer.BuildConfiguration.BuildStepListCount">2</value>
- <value type="bool"
key="ProjectExplorer.BuildConfiguration.ClearSystemEnvironment">false</value>
- <valuelist type="QVariantList"
key="ProjectExplorer.BuildConfiguration.UserEnvironmentChanges"/>
- <value type="QString"
key="ProjectExplorer.ProjectConfiguration.DefaultDisplayName">Debug</value>
- <value type="QString"
key="ProjectExplorer.ProjectConfiguration.DisplayName">Debug</value>
- <value type="QString"
key="ProjectExplorer.ProjectConfiguration.Id">Qt4ProjectManager.Qt4BuildConfiguration</value>
- <value type="int"
key="Qt4ProjectManager.Qt4BuildConfiguration.BuildConfiguration">2</value>
- <value type="QString"
key="Qt4ProjectManager.Qt4BuildConfiguration.BuildDirectory">/home/onix/qt/XmlParser-build-maemo-Debug</value>
- <value type="int"
key="Qt4ProjectManager.Qt4BuildConfiguration.QtVersionId">-1</value>
- <value type="bool"
key="Qt4ProjectManager.Qt4BuildConfiguration.UseShadowBuild">false</value>
- </valuemap>
- <valuemap type="QVariantMap"
key="ProjectExplorer.Target.BuildConfiguration.1">
- <value type="QString"
key="ProjectExplorer.BuildCOnfiguration.ToolChain">INVALID</value>
- <valuemap type="QVariantMap"
key="ProjectExplorer.BuildConfiguration.BuildStepList.0">
- <valuemap type="QVariantMap"
key="ProjectExplorer.BuildStepList.Step.0">
- <value type="QString"
key="ProjectExplorer.ProjectConfiguration.DefaultDisplayName">qmake</value>
- <value type="QString"
key="ProjectExplorer.ProjectConfiguration.DisplayName"></value>
- <value type="QString"
key="ProjectExplorer.ProjectConfiguration.Id">QtProjectManager.QMakeBuildStep</value>
- <value type="bool"
key="QtProjectManager.QMakeBuildStep.LinkQmlDebuggingLibrary">false</value>
- <value type="bool"
key="QtProjectManager.QMakeBuildStep.LinkQmlDebuggingLibraryAuto">false</value>
- <value type="QString"
key="QtProjectManager.QMakeBuildStep.QMakeArguments"></value>
- <value type="bool"
key="QtProjectManager.QMakeBuildStep.QMakeForced">false</value>
- </valuemap>
- <valuemap type="QVariantMap"
key="ProjectExplorer.BuildStepList.Step.1">
- <value type="QString"
key="ProjectExplorer.ProjectConfiguration.DefaultDisplayName">Make</value>
- <value type="QString"
key="ProjectExplorer.ProjectConfiguration.DisplayName"></value>
- <value type="QString"
key="ProjectExplorer.ProjectConfiguration.Id">Qt4ProjectManager.MakeStep</value>
- <value type="bool"
key="Qt4ProjectManager.MakeStep.Clean">false</value>
- <value type="QString"
key="Qt4ProjectManager.MakeStep.MakeArguments"></value>
- <value type="QString"
key="Qt4ProjectManager.MakeStep.MakeCommand"></value>
- </valuemap>
- <value type="int"
key="ProjectExplorer.BuildStepList.StepsCount">2</value>
- <value type="QString"
key="ProjectExplorer.ProjectConfiguration.DefaultDisplayName">Compiler</value>
- <value type="QString"
key="ProjectExplorer.ProjectConfiguration.DisplayName">Build</value>
- <value type="QString"
key="ProjectExplorer.ProjectConfiguration.Id">ProjectExplorer.BuildSteps.Build</value>
- </valuemap>
- <valuemap type="QVariantMap"
key="ProjectExplorer.BuildConfiguration.BuildStepList.1">
- <valuemap type="QVariantMap"
key="ProjectExplorer.BuildStepList.Step.0">
- <value type="QString"
key="ProjectExplorer.ProjectConfiguration.DefaultDisplayName">Make</value>
- <value type="QString"
key="ProjectExplorer.ProjectConfiguration.DisplayName"></value>
- <value type="QString"
key="ProjectExplorer.ProjectConfiguration.Id">Qt4ProjectManager.MakeStep</value>
- <value type="bool"
key="Qt4ProjectManager.MakeStep.Clean">true</value>
- <value type="QString"
key="Qt4ProjectManager.MakeStep.MakeArguments">clean</value>
- <value type="QString"
key="Qt4ProjectManager.MakeStep.MakeCommand"></value>
- </valuemap>
- <value type="int"
key="ProjectExplorer.BuildStepList.StepsCount">1</value>
- <value type="QString"
key="ProjectExplorer.ProjectConfiguration.DefaultDisplayName">Nettoyer</value>
- <value type="QString"
key="ProjectExplorer.ProjectConfiguration.DisplayName">Clean</value>
- <value type="QString"
key="ProjectExplorer.ProjectConfiguration.Id">ProjectExplorer.BuildSteps.Clean</value>
- </valuemap>
- <value type="int"
key="ProjectExplorer.BuildConfiguration.BuildStepListCount">2</value>
- <value type="bool"
key="ProjectExplorer.BuildConfiguration.ClearSystemEnvironment">false</value>
- <valuelist type="QVariantList"
key="ProjectExplorer.BuildConfiguration.UserEnvironmentChanges"/>
- <value type="QString"
key="ProjectExplorer.ProjectConfiguration.DefaultDisplayName">Release</value>
- <value type="QString"
key="ProjectExplorer.ProjectConfiguration.DisplayName">Release</value>
- <value type="QString"
key="ProjectExplorer.ProjectConfiguration.Id">Qt4ProjectManager.Qt4BuildConfiguration</value>
- <value type="int"
key="Qt4ProjectManager.Qt4BuildConfiguration.BuildConfiguration">0</value>
- <value type="QString"
key="Qt4ProjectManager.Qt4BuildConfiguration.BuildDirectory">/home/onix/qt/XmlParser-build-maemo-Release</value>
- <value type="int"
key="Qt4ProjectManager.Qt4BuildConfiguration.QtVersionId">-1</value>
- <value type="bool"
key="Qt4ProjectManager.Qt4BuildConfiguration.UseShadowBuild">false</value>
- </valuemap>
- <value type="int"
key="ProjectExplorer.Target.BuildConfigurationCount">2</value>
- <valuemap type="QVariantMap"
key="ProjectExplorer.Target.DeployConfiguration.0">
- <valuemap type="QVariantMap"
key="ProjectExplorer.BuildConfiguration.BuildStepList.0">
- <valuemap type="QVariantMap"
key="ProjectExplorer.BuildStepList.Step.0">
- <value type="QString"
key="ProjectExplorer.ProjectConfiguration.DefaultDisplayName">Déployer le
paquet par montage UTFS</value>
- <value type="QString"
key="ProjectExplorer.ProjectConfiguration.DisplayName"></value>
- <value type="QString"
key="ProjectExplorer.ProjectConfiguration.Id">Qt4ProjectManager.MaemoDeployStep</value>
- <valuelist type="QVariantList"
key="Qt4ProjectManager.MaemoRunConfiguration.LastDeployedFiles"/>
- <valuelist type="QVariantList"
key="Qt4ProjectManager.MaemoRunConfiguration.LastDeployedHosts"/>
- <valuelist type="QVariantList"
key="Qt4ProjectManager.MaemoRunConfiguration.LastDeployedRemotePaths"/>
- <valuelist type="QVariantList"
key="Qt4ProjectManager.MaemoRunConfiguration.LastDeployedTimes"/>
- </valuemap>
- <value type="int"
key="ProjectExplorer.BuildStepList.StepsCount">1</value>
- <value type="QString"
key="ProjectExplorer.ProjectConfiguration.DefaultDisplayName">Déploiement</value>
- <value type="QString"
key="ProjectExplorer.ProjectConfiguration.DisplayName">Deploy</value>
- <value type="QString"
key="ProjectExplorer.ProjectConfiguration.Id">ProjectExplorer.BuildSteps.Deploy</value>
- </valuemap>
- <value type="int"
key="ProjectExplorer.BuildConfiguration.BuildStepListCount">1</value>
- <value type="QString"
key="ProjectExplorer.ProjectConfiguration.DefaultDisplayName">Compilation du
paquet Debian et installation sur le périphérique Maemo5</value>
- <value type="QString"
key="ProjectExplorer.ProjectConfiguration.DisplayName">Déployer sur un
périphérique Maemo</value>
- <value type="QString"
key="ProjectExplorer.ProjectConfiguration.Id">2.2MaemoDeployConfig</value>
- <value type="qulonglong"
key="Qt4ProjectManager.MaemoRunConfiguration.DeviceId">0</value>
- </valuemap>
- <value type="int"
key="ProjectExplorer.Target.DeployConfigurationCount">1</value>
- <valuemap type="QVariantMap"
key="ProjectExplorer.Target.RunConfiguration.0">
- <value type="bool"
key="Analyzer.Project.UseGlobal">true</value>
- <value type="bool"
key="Analyzer.Project.UseGlobal">true</value>
- <valuelist type="QVariantList"
key="Analyzer.Valgrind.AddedSuppressionFiles"/>
- <valuelist type="QVariantList"
key="Analyzer.Valgrind.AddedSuppressionFiles"/>
- <value type="bool"
key="Analyzer.Valgrind.Callgrind.CollectBusEvents">false</value>
- <value type="bool"
key="Analyzer.Valgrind.Callgrind.CollectBusEvents">false</value>
- <value type="bool"
key="Analyzer.Valgrind.Callgrind.CollectSystime">false</value>
- <value type="bool"
key="Analyzer.Valgrind.Callgrind.CollectSystime">false</value>
- <value type="bool"
key="Analyzer.Valgrind.Callgrind.EnableBranchSim">false</value>
- <value type="bool"
key="Analyzer.Valgrind.Callgrind.EnableBranchSim">false</value>
- <value type="bool"
key="Analyzer.Valgrind.Callgrind.EnableCacheSim">false</value>
- <value type="bool"
key="Analyzer.Valgrind.Callgrind.EnableCacheSim">false</value>
- <value type="bool"
key="Analyzer.Valgrind.Callgrind.EnableEventToolTips">true</value>
- <value type="bool"
key="Analyzer.Valgrind.Callgrind.EnableEventToolTips">true</value>
- <value type="double"
key="Analyzer.Valgrind.Callgrind.MinimumCostRatio">0.01</value>
- <value type="double"
key="Analyzer.Valgrind.Callgrind.MinimumCostRatio">0.01</value>
- <value type="double"
key="Analyzer.Valgrind.Callgrind.VisualisationMinimumCostRatio">10</value>
- <value type="double"
key="Analyzer.Valgrind.Callgrind.VisualisationMinimumCostRatio">10</value>
- <value type="bool"
key="Analyzer.Valgrind.FilterExternalIssues">true</value>
- <value type="bool"
key="Analyzer.Valgrind.FilterExternalIssues">true</value>
- <value type="int"
key="Analyzer.Valgrind.NumCallers">25</value>
- <value type="int"
key="Analyzer.Valgrind.NumCallers">25</value>
- <valuelist type="QVariantList"
key="Analyzer.Valgrind.RemovedSuppressionFiles"/>
- <valuelist type="QVariantList"
key="Analyzer.Valgrind.RemovedSuppressionFiles"/>
- <value type="bool"
key="Analyzer.Valgrind.TrackOrigins">true</value>
- <value type="bool"
key="Analyzer.Valgrind.TrackOrigins">true</value>
- <value type="QString"
key="Analyzer.Valgrind.ValgrindExecutable">valgrind</value>
- <value type="QString"
key="Analyzer.Valgrind.ValgrindExecutable">valgrind</value>
- <valuelist type="QVariantList"
key="Analyzer.Valgrind.VisibleErrorKinds">
- <value type="int">0</value>
- <value type="int">1</value>
- <value type="int">2</value>
- <value type="int">3</value>
- <value type="int">4</value>
- <value type="int">5</value>
- <value type="int">6</value>
- <value type="int">7</value>
- <value type="int">8</value>
- <value type="int">9</value>
- <value type="int">10</value>
- <value type="int">11</value>
- <value type="int">12</value>
- <value type="int">13</value>
- <value type="int">14</value>
- </valuelist>
- <valuelist type="QVariantList"
key="Analyzer.Valgrind.VisibleErrorKinds">
- <value type="int">0</value>
- <value type="int">1</value>
- <value type="int">2</value>
- <value type="int">3</value>
- <value type="int">4</value>
- <value type="int">5</value>
- <value type="int">6</value>
- <value type="int">7</value>
- <value type="int">8</value>
- <value type="int">9</value>
- <value type="int">10</value>
- <value type="int">11</value>
- <value type="int">12</value>
- <value type="int">13</value>
- <value type="int">14</value>
- </valuelist>
- <value type="QString"
key="ProjectExplorer.ProjectConfiguration.DefaultDisplayName">XmlParser (sur
un périphérique distant)</value>
- <value type="QString"
key="ProjectExplorer.ProjectConfiguration.DisplayName"></value>
- <value type="QString"
key="ProjectExplorer.ProjectConfiguration.Id">Qt4ProjectManager.MaemoRunConfiguration</value>
- <value type="QString"
key="Qt4ProjectManager.MaemoRunConfiguration.Arguments"></value>
- <value type="int"
key="Qt4ProjectManager.MaemoRunConfiguration.BaseEnvironmentBase">1</value>
- <valuelist type="QVariantList"
key="Qt4ProjectManager.MaemoRunConfiguration.ExportedLocalDirs"/>
- <value type="QString"
key="Qt4ProjectManager.MaemoRunConfiguration.ProFile">XmlParser.pro</value>
- <valuelist type="QVariantList"
key="Qt4ProjectManager.MaemoRunConfiguration.RemoteMountPoints"/>
- <valuelist type="QVariantList"
key="Qt4ProjectManager.MaemoRunConfiguration.UserEnvironmentChanges"/>
- <value type="QString"
key="RemoteLinux.RunConfig.AlternateRemoteExecutable"></value>
- <value type="bool"
key="RemoteLinux.RunConfig.UseAlternateRemoteExecutable">false</value>
- <value type="uint"
key="RunConfiguration.QmlDebugServerPort">3768</value>
- <value type="bool"
key="RunConfiguration.UseCppDebugger">true</value>
- <value type="bool"
key="RunConfiguration.UseQmlDebugger">false</value>
- <value type="bool"
key="RunConfiguration.UseQmlDebuggerAuto">false</value>
- </valuemap>
- <value type="int"
key="ProjectExplorer.Target.RunConfigurationCount">1</value>
+ <value key="ProjectExplorer.BuildConfiguration.DisplayName"
type="QString"></value>
+ <value key="mkspec" type="QString"></value>
</valuemap>
</data>
<data>
- <variable>ProjectExplorer.Project.TargetCount</variable>
- <value type="int">4</value>
+ <variable>buildstep1</variable>
+ <valuemap type="QVariantMap">
+ <value key="ProjectExplorer.BuildConfiguration.DisplayName"
type="QString"></value>
+ </valuemap>
</data>
<data>
- <variable>ProjectExplorer.Project.Updater.EnvironmentId</variable>
- <value
type="QString">{5e5821f7-3a40-405f-b196-cbc6284a3a45}</value>
+ <variable>buildsteps</variable>
+ <valuelist type="QVariantList">
+ <value type="QString">trolltech.qt4projectmanager.qmake</value>
+ <value type="QString">trolltech.qt4projectmanager.make</value>
+ </valuelist>
</data>
<data>
- <variable>ProjectExplorer.Project.Updater.FileVersion</variable>
- <value type="int">10</value>
+ <variable>cleanstep0</variable>
+ <valuemap type="QVariantMap">
+ <value key="ProjectExplorer.BuildConfiguration.DisplayName"
type="QString"></value>
+ <value key="clean" type="bool">true</value>
+ </valuemap>
+ </data>
+ <data>
+ <variable>cleansteps</variable>
+ <valuelist type="QVariantList">
+ <value type="QString">trolltech.qt4projectmanager.make</value>
+ </valuelist>
+ </data>
+ <data>
+ <variable>defaultFileEncoding</variable>
+ <value type="QByteArray">System</value>
+ </data>
+ <data>
+ <variable>project</variable>
+ <valuemap type="QVariantMap"/>
</data>
</qtcreator>
diff --git a/XmlParser/xml.cpp b/XmlParser/xml.cpp
index 67c5451..64df412 100644
--- a/XmlParser/xml.cpp
+++ b/XmlParser/xml.cpp
@@ -33,6 +33,7 @@ void Xml::graphicsRegion(const QDomElement& element, const
GraphicRegion::Data&
polygonRegion->setData(0, QVariant::fromValue(data.region));
polygonRegion->setColor(data.color);
polygonRegion->setZValue(data.zValue);
+ polygonRegion->setZValue(data.zValue);
connect(scene, SIGNAL(repaintItems(QRectF,bool)), polygonRegion,
SLOT(repaint(QRectF,bool)));
graphicsRegion(element.nextSiblingElement(data.name), data, scene);
}
diff --git a/XmlTree/XmlTree.pro.user b/XmlTree/XmlTree.pro.user
index 440d7c1..847bc66 100644
--- a/XmlTree/XmlTree.pro.user
+++ b/XmlTree/XmlTree.pro.user
@@ -1,265 +1,295 @@
-<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE QtCreatorProject>
-<!-- Written by Qt Creator 2.4.1, 2013-01-28T01:19:36. -->
<qtcreator>
<data>
- <variable>ProjectExplorer.Project.ActiveTarget</variable>
+ <variable>RunConfiguration0-BaseEnvironmentBase</variable>
+ <value type="int">2</value>
+ </data>
+ <data>
+ <variable>RunConfiguration0-CommandLineArguments</variable>
+ <valuelist type="QVariantList"/>
+ </data>
+ <data>
+ <variable>RunConfiguration0-ProFile</variable>
+ <value type="QString">XmlTree.pro</value>
+ </data>
+ <data>
+ <variable>RunConfiguration0-RunConfiguration.name</variable>
+ <value type="QString">XmlTree</value>
+ </data>
+ <data>
+ <variable>RunConfiguration0-UseDyldImageSuffix</variable>
+ <value type="bool">false</value>
+ </data>
+ <data>
+ <variable>RunConfiguration0-UseTerminal</variable>
+ <value type="bool">false</value>
+ </data>
+ <data>
+ <variable>RunConfiguration0-UserEnvironmentChanges</variable>
+ <valuelist type="QVariantList"/>
+ </data>
+ <data>
+ <variable>RunConfiguration0-UserSetName</variable>
+ <value type="bool">false</value>
+ </data>
+ <data>
+ <variable>RunConfiguration0-UserSetWorkingDirectory</variable>
+ <value type="bool">false</value>
+ </data>
+ <data>
+ <variable>RunConfiguration0-UserWorkingDirectory</variable>
+ <value type="QString"></value>
+ </data>
+ <data>
+ <variable>RunConfiguration0-type</variable>
+ <value
type="QString">Qt4ProjectManager.Qt4RunConfiguration</value>
+ </data>
+ <data>
+ <variable>activeRunConfiguration</variable>
<value type="int">0</value>
</data>
<data>
- <variable>ProjectExplorer.Project.EditorSettings</variable>
+ <variable>activebuildconfiguration</variable>
+ <value type="QString">Debug</value>
+ </data>
+ <data>
+ <variable>buildConfiguration-Debug</variable>
<valuemap type="QVariantMap">
- <value type="bool"
key="EditorConfiguration.AutoIndent">true</value>
- <value type="bool"
key="EditorConfiguration.AutoSpacesForTabs">false</value>
- <valuemap type="QVariantMap"
key="EditorConfiguration.CodeStyle.0">
- <value type="QString" key="language">Cpp</value>
- <valuemap type="QVariantMap" key="value">
- <value type="QString"
key="CurrentPreferences">CppGlobal</value>
- </valuemap>
- </valuemap>
- <valuemap type="QVariantMap"
key="EditorConfiguration.CodeStyle.1">
- <value type="QString" key="language">QmlJS</value>
- <valuemap type="QVariantMap" key="value">
- <value type="QString"
key="CurrentPreferences">QmlJSGlobal</value>
- </valuemap>
- </valuemap>
- <value type="int"
key="EditorConfiguration.CodeStyle.Count">2</value>
- <value type="QByteArray"
key="EditorConfiguration.Codec">System</value>
- <value type="bool"
key="EditorConfiguration.ConstrainTooltips">false</value>
- <value type="int"
key="EditorConfiguration.IndentSize">4</value>
- <value type="bool"
key="EditorConfiguration.MouseNavigation">true</value>
- <value type="int"
key="EditorConfiguration.PaddingMode">1</value>
- <value type="bool"
key="EditorConfiguration.ScrollWheelZooming">true</value>
- <value type="int"
key="EditorConfiguration.SmartBackspaceBehavior">0</value>
- <value type="bool"
key="EditorConfiguration.SpacesForTabs">true</value>
- <value type="int"
key="EditorConfiguration.TabKeyBehavior">0</value>
- <value type="int"
key="EditorConfiguration.TabSize">8</value>
- <value type="bool"
key="EditorConfiguration.UseGlobal">true</value>
- <value type="int"
key="EditorConfiguration.Utf8BomBehavior">1</value>
- <value type="bool"
key="EditorConfiguration.addFinalNewLine">true</value>
- <value type="bool"
key="EditorConfiguration.cleanIndentation">true</value>
- <value type="bool"
key="EditorConfiguration.cleanWhitespace">true</value>
- <value type="bool"
key="EditorConfiguration.inEntireDocument">false</value>
+ <value key="ProjectExplorer.BuildConfiguration.DisplayName"
type="QString">Debug</value>
+ <value key="QtVersionId" type="int">0</value>
+ <value key="ToolChain" type="int">0</value>
+ <value key="addQDumper" type=""></value>
+ <value key="buildConfiguration" type="int">2</value>
</valuemap>
</data>
<data>
- <variable>ProjectExplorer.Project.PluginSettings</variable>
- <valuemap type="QVariantMap"/>
+ <variable>buildConfiguration-Release</variable>
+ <valuemap type="QVariantMap">
+ <value key="ProjectExplorer.BuildConfiguration.DisplayName"
type="QString">Release</value>
+ <value key="QtVersionId" type="int">0</value>
+ <value key="addQDumper" type=""></value>
+ <value key="buildConfiguration" type="int">0</value>
+ </valuemap>
+ </data>
+ <data>
+ <variable>buildconfiguration-Debug-buildstep0</variable>
+ <valuemap type="QVariantMap">
+ <value key="ProjectExplorer.BuildConfiguration.DisplayName"
type="QString">Debug</value>
+ <valuelist key="abstractProcess.Environment"
type="QVariantList">
+ <value
type="QString">DBUS_SESSION_BUS_ADDRESS=unix:abstract=/tmp/dbus-eapkGsqUHQ,guid=856e00f0cd1b8664a4a8a6ce006f8d7e</value>
+ <value type="QString">DESKTOP_SESSION=fluxbox</value>
+ <value type="QString">DISPLAY=:0.0</value>
+ <value type="QString">GDMSESSION=fluxbox</value>
+ <value type="QString">GDM_LANG=fr_FR.UTF-8</value>
+ <value type="QString">GDM_XSERVER_LOCATION=local</value>
+ <value
type="QString">GNOME_KEYRING_CONTROL=/tmp/keyring-bwEU7s</value>
+ <value type="QString">GNOME_KEYRING_PID=2961</value>
+ <value type="QString">GTK_MODULES=canberra-gtk-module</value>
+ <value type="QString">HOME=/lrde/home/stage/froger_a</value>
+ <value type="QString">LANG=fr_FR.UTF-8</value>
+ <value
type="QString">LD_LIBRARY_PATH=/usr/lib/qtcreator</value>
+ <value type="QString">LOGNAME=froger_a</value>
+ <value
type="QString">OLDPWD=/lrde/home/stage/froger_a/qt</value>
+ <value
type="QString">PATH=/usr/bin:/usr/local/bin:/usr/bin:/bin:/usr/local/games:/usr/games</value>
+ <value
type="QString">PWD=/lrde/home/stage/froger_a/qt/XmlTree</value>
+ <value type="QString">QTDIR=/usr/share/qt4</value>
+ <value type="QString">SHELL=/bin/bash</value>
+ <value type="QString">SHLVL=2</value>
+ <value type="QString">SSH_AGENT_PID=3036</value>
+ <value
type="QString">SSH_AUTH_SOCK=/tmp/ssh-yHlEXz2970/agent.2970</value>
+ <value type="QString">TERM=xterm</value>
+ <value type="QString">USER=froger_a</value>
+ <value type="QString">USERNAME=froger_a</value>
+ <value type="QString">WINDOWID=10485796</value>
+ <value
type="QString">WINDOWPATH=7:8:8:8:8:8:8:8:8:8:8:8:8:8:8:8:8:8:8:8:8:8:8:8:8:8:8:8:8:8:8:8:8:8:8:8:8</value>
+ <value type="QString">XAUTHORITY=/tmp/.gdm5EEHRW</value>
+ <value
type="QString">XDG_DATA_DIRS=/usr/local/share/:/usr/share/:/usr/share/gdm/</value>
+ <value
type="QString">XDG_SESSION_COOKIE=b24883b9b4dbfb80ea83575b00000a11-1359358530.347400-806764092</value>
+ <value type="QString">XPSERVERLIST=:64 </value>
+ <value type="QString">XTERM_LOCALE=fr_FR.UTF-8</value>
+ <value type="QString">XTERM_SHELL=/bin/bash</value>
+ <value type="QString">XTERM_VERSION=XTerm(261)</value>
+ <value type="QString">_=/usr/bin/qtcreator</value>
+ </valuelist>
+ <valuelist key="abstractProcess.arguments"
type="QVariantList">
+ <value
type="QString">/amd/nfs/volume1/home/stage/froger_a/qt/XmlTree/XmlTree.pro</value>
+ <value type="QString">-spec</value>
+ <value type="QString">linux-g++</value>
+ <value type="QString">-r</value>
+ <value type="QString">CONFIG+=debug</value>
+ </valuelist>
+ <value key="abstractProcess.command"
type="QString">/usr/bin/qmake-qt4</value>
+ <value key="abstractProcess.enabled"
type="bool">false</value>
+ <value key="abstractProcess.workingDirectory"
type="QString">/amd/nfs/volume1/home/stage/froger_a/qt/XmlTree</value>
+ </valuemap>
+ </data>
+ <data>
+ <variable>buildconfiguration-Debug-buildstep1</variable>
+ <valuemap type="QVariantMap">
+ <value key="ProjectExplorer.BuildConfiguration.DisplayName"
type="QString">Debug</value>
+ <valuelist key="abstractProcess.Environment"
type="QVariantList">
+ <value
type="QString">DBUS_SESSION_BUS_ADDRESS=unix:abstract=/tmp/dbus-eapkGsqUHQ,guid=856e00f0cd1b8664a4a8a6ce006f8d7e</value>
+ <value type="QString">DESKTOP_SESSION=fluxbox</value>
+ <value type="QString">DISPLAY=:0.0</value>
+ <value type="QString">GDMSESSION=fluxbox</value>
+ <value type="QString">GDM_LANG=fr_FR.UTF-8</value>
+ <value type="QString">GDM_XSERVER_LOCATION=local</value>
+ <value
type="QString">GNOME_KEYRING_CONTROL=/tmp/keyring-bwEU7s</value>
+ <value type="QString">GNOME_KEYRING_PID=2961</value>
+ <value type="QString">GTK_MODULES=canberra-gtk-module</value>
+ <value type="QString">HOME=/lrde/home/stage/froger_a</value>
+ <value type="QString">LANG=fr_FR.UTF-8</value>
+ <value
type="QString">LD_LIBRARY_PATH=/usr/lib/qtcreator</value>
+ <value type="QString">LOGNAME=froger_a</value>
+ <value
type="QString">OLDPWD=/lrde/home/stage/froger_a/qt</value>
+ <value
type="QString">PATH=/usr/bin:/usr/local/bin:/usr/bin:/bin:/usr/local/games:/usr/games</value>
+ <value
type="QString">PWD=/lrde/home/stage/froger_a/qt/XmlTree</value>
+ <value type="QString">QTDIR=/usr/share/qt4</value>
+ <value type="QString">SHELL=/bin/bash</value>
+ <value type="QString">SHLVL=2</value>
+ <value type="QString">SSH_AGENT_PID=3036</value>
+ <value
type="QString">SSH_AUTH_SOCK=/tmp/ssh-yHlEXz2970/agent.2970</value>
+ <value type="QString">TERM=xterm</value>
+ <value type="QString">USER=froger_a</value>
+ <value type="QString">USERNAME=froger_a</value>
+ <value type="QString">WINDOWID=10485796</value>
+ <value
type="QString">WINDOWPATH=7:8:8:8:8:8:8:8:8:8:8:8:8:8:8:8:8:8:8:8:8:8:8:8:8:8:8:8:8:8:8:8:8:8:8:8:8</value>
+ <value type="QString">XAUTHORITY=/tmp/.gdm5EEHRW</value>
+ <value
type="QString">XDG_DATA_DIRS=/usr/local/share/:/usr/share/:/usr/share/gdm/</value>
+ <value
type="QString">XDG_SESSION_COOKIE=b24883b9b4dbfb80ea83575b00000a11-1359358530.347400-806764092</value>
+ <value type="QString">XPSERVERLIST=:64 </value>
+ <value type="QString">XTERM_LOCALE=fr_FR.UTF-8</value>
+ <value type="QString">XTERM_SHELL=/bin/bash</value>
+ <value type="QString">XTERM_VERSION=XTerm(261)</value>
+ <value type="QString">_=/usr/bin/qtcreator</value>
+ </valuelist>
+ <value key="abstractProcess.IgnoreReturnValue"
type="bool">false</value>
+ <valuelist key="abstractProcess.arguments"
type="QVariantList">
+ <value type="QString">-w</value>
+ </valuelist>
+ <value key="abstractProcess.command"
type="QString">/usr/bin/make</value>
+ <value key="abstractProcess.enabled"
type="bool">true</value>
+ <value key="abstractProcess.workingDirectory"
type="QString">/amd/nfs/volume1/home/stage/froger_a/qt/XmlTree</value>
+ </valuemap>
+ </data>
+ <data>
+ <variable>buildconfiguration-Debug-cleanstep0</variable>
+ <valuemap type="QVariantMap">
+ <value key="ProjectExplorer.BuildConfiguration.DisplayName"
type="QString">Debug</value>
+ <valuelist key="abstractProcess.Environment"
type="QVariantList">
+ <value
type="QString">DBUS_SESSION_BUS_ADDRESS=unix:abstract=/tmp/dbus-eapkGsqUHQ,guid=856e00f0cd1b8664a4a8a6ce006f8d7e</value>
+ <value type="QString">DESKTOP_SESSION=fluxbox</value>
+ <value type="QString">DISPLAY=:0.0</value>
+ <value type="QString">GDMSESSION=fluxbox</value>
+ <value type="QString">GDM_LANG=fr_FR.UTF-8</value>
+ <value type="QString">GDM_XSERVER_LOCATION=local</value>
+ <value
type="QString">GNOME_KEYRING_CONTROL=/tmp/keyring-bwEU7s</value>
+ <value type="QString">GNOME_KEYRING_PID=2961</value>
+ <value type="QString">GTK_MODULES=canberra-gtk-module</value>
+ <value type="QString">HOME=/lrde/home/stage/froger_a</value>
+ <value type="QString">LANG=fr_FR.UTF-8</value>
+ <value
type="QString">LD_LIBRARY_PATH=/usr/lib/qtcreator</value>
+ <value type="QString">LOGNAME=froger_a</value>
+ <value
type="QString">OLDPWD=/lrde/home/stage/froger_a/qt</value>
+ <value
type="QString">PATH=/usr/bin:/usr/local/bin:/usr/bin:/bin:/usr/local/games:/usr/games</value>
+ <value
type="QString">PWD=/lrde/home/stage/froger_a/qt/XmlTree</value>
+ <value type="QString">QTDIR=/usr/share/qt4</value>
+ <value type="QString">SHELL=/bin/bash</value>
+ <value type="QString">SHLVL=2</value>
+ <value type="QString">SSH_AGENT_PID=3036</value>
+ <value
type="QString">SSH_AUTH_SOCK=/tmp/ssh-yHlEXz2970/agent.2970</value>
+ <value type="QString">TERM=xterm</value>
+ <value type="QString">USER=froger_a</value>
+ <value type="QString">USERNAME=froger_a</value>
+ <value type="QString">WINDOWID=10485796</value>
+ <value
type="QString">WINDOWPATH=7:8:8:8:8:8:8:8:8:8:8:8:8:8:8:8:8:8:8:8:8:8:8:8:8:8:8:8:8:8:8:8:8:8:8:8:8</value>
+ <value type="QString">XAUTHORITY=/tmp/.gdm5EEHRW</value>
+ <value
type="QString">XDG_DATA_DIRS=/usr/local/share/:/usr/share/:/usr/share/gdm/</value>
+ <value
type="QString">XDG_SESSION_COOKIE=b24883b9b4dbfb80ea83575b00000a11-1359358530.347400-806764092</value>
+ <value type="QString">XPSERVERLIST=:64 </value>
+ <value type="QString">XTERM_LOCALE=fr_FR.UTF-8</value>
+ <value type="QString">XTERM_SHELL=/bin/bash</value>
+ <value type="QString">XTERM_VERSION=XTerm(261)</value>
+ <value type="QString">_=/usr/bin/qtcreator</value>
+ </valuelist>
+ <value key="abstractProcess.IgnoreReturnValue"
type="bool">true</value>
+ <valuelist key="abstractProcess.arguments"
type="QVariantList">
+ <value type="QString">clean</value>
+ <value type="QString">-w</value>
+ </valuelist>
+ <value key="abstractProcess.command"
type="QString">/usr/bin/make</value>
+ <value key="abstractProcess.enabled"
type="bool">true</value>
+ <value key="abstractProcess.workingDirectory"
type="QString">/amd/nfs/volume1/home/stage/froger_a/qt/XmlTree</value>
+ <value key="cleanConfig" type="bool">true</value>
+ <valuelist key="makeargs" type="QVariantList">
+ <value type="QString">clean</value>
+ </valuelist>
+ </valuemap>
+ </data>
+ <data>
+ <variable>buildconfiguration-Release-buildstep0</variable>
+ <valuemap type="QVariantMap">
+ <value key="ProjectExplorer.BuildConfiguration.DisplayName"
type="QString">Release</value>
+ </valuemap>
+ </data>
+ <data>
+ <variable>buildconfiguration-Release-buildstep1</variable>
+ <valuemap type="QVariantMap">
+ <value key="ProjectExplorer.BuildConfiguration.DisplayName"
type="QString">Release</value>
+ </valuemap>
+ </data>
+ <data>
+ <variable>buildconfiguration-Release-cleanstep0</variable>
+ <valuemap type="QVariantMap">
+ <value key="ProjectExplorer.BuildConfiguration.DisplayName"
type="QString">Release</value>
+ </valuemap>
+ </data>
+ <data>
+ <variable>buildconfigurations</variable>
+ <valuelist type="QVariantList">
+ <value type="QString">Debug</value>
+ <value type="QString">Release</value>
+ </valuelist>
+ </data>
+ <data>
+ <variable>buildstep0</variable>
+ <valuemap type="QVariantMap">
+ <value key="ProjectExplorer.BuildConfiguration.DisplayName"
type="QString"></value>
+ <value key="mkspec" type="QString"></value>
+ </valuemap>
+ </data>
+ <data>
+ <variable>buildstep1</variable>
+ <valuemap type="QVariantMap">
+ <value key="ProjectExplorer.BuildConfiguration.DisplayName"
type="QString"></value>
+ </valuemap>
+ </data>
+ <data>
+ <variable>buildsteps</variable>
+ <valuelist type="QVariantList">
+ <value type="QString">trolltech.qt4projectmanager.qmake</value>
+ <value type="QString">trolltech.qt4projectmanager.make</value>
+ </valuelist>
</data>
<data>
- <variable>ProjectExplorer.Project.Target.0</variable>
+ <variable>cleanstep0</variable>
<valuemap type="QVariantMap">
- <value type="QString"
key="ProjectExplorer.ProjectConfiguration.DefaultDisplayName"></value>
- <value type="QString"
key="ProjectExplorer.ProjectConfiguration.DisplayName"></value>
- <value type="QString"
key="ProjectExplorer.ProjectConfiguration.Id">Qt4ProjectManager.Target.DesktopTarget</value>
- <value type="int"
key="ProjectExplorer.Target.ActiveBuildConfiguration">0</value>
- <value type="int"
key="ProjectExplorer.Target.ActiveDeployConfiguration">0</value>
- <value type="int"
key="ProjectExplorer.Target.ActiveRunConfiguration">0</value>
- <valuemap type="QVariantMap"
key="ProjectExplorer.Target.BuildConfiguration.0">
- <value type="QString"
key="ProjectExplorer.BuildCOnfiguration.ToolChain">ProjectExplorer.ToolChain.Gcc:/usr/bin/g++.x86-linux-generic-elf-32bit./usr/bin/gdb</value>
- <valuemap type="QVariantMap"
key="ProjectExplorer.BuildConfiguration.BuildStepList.0">
- <valuemap type="QVariantMap"
key="ProjectExplorer.BuildStepList.Step.0">
- <value type="QString"
key="ProjectExplorer.ProjectConfiguration.DefaultDisplayName">qmake</value>
- <value type="QString"
key="ProjectExplorer.ProjectConfiguration.DisplayName"></value>
- <value type="QString"
key="ProjectExplorer.ProjectConfiguration.Id">QtProjectManager.QMakeBuildStep</value>
- <value type="bool"
key="QtProjectManager.QMakeBuildStep.LinkQmlDebuggingLibrary">false</value>
- <value type="bool"
key="QtProjectManager.QMakeBuildStep.LinkQmlDebuggingLibraryAuto">false</value>
- <value type="QString"
key="QtProjectManager.QMakeBuildStep.QMakeArguments"></value>
- <value type="bool"
key="QtProjectManager.QMakeBuildStep.QMakeForced">false</value>
- </valuemap>
- <valuemap type="QVariantMap"
key="ProjectExplorer.BuildStepList.Step.1">
- <value type="QString"
key="ProjectExplorer.ProjectConfiguration.DefaultDisplayName">Make</value>
- <value type="QString"
key="ProjectExplorer.ProjectConfiguration.DisplayName"></value>
- <value type="QString"
key="ProjectExplorer.ProjectConfiguration.Id">Qt4ProjectManager.MakeStep</value>
- <value type="bool"
key="Qt4ProjectManager.MakeStep.Clean">false</value>
- <value type="QString"
key="Qt4ProjectManager.MakeStep.MakeArguments"></value>
- <value type="QString"
key="Qt4ProjectManager.MakeStep.MakeCommand"></value>
- </valuemap>
- <value type="int"
key="ProjectExplorer.BuildStepList.StepsCount">2</value>
- <value type="QString"
key="ProjectExplorer.ProjectConfiguration.DefaultDisplayName">Compiler</value>
- <value type="QString"
key="ProjectExplorer.ProjectConfiguration.DisplayName">Build</value>
- <value type="QString"
key="ProjectExplorer.ProjectConfiguration.Id">ProjectExplorer.BuildSteps.Build</value>
- </valuemap>
- <valuemap type="QVariantMap"
key="ProjectExplorer.BuildConfiguration.BuildStepList.1">
- <valuemap type="QVariantMap"
key="ProjectExplorer.BuildStepList.Step.0">
- <value type="QString"
key="ProjectExplorer.ProjectConfiguration.DefaultDisplayName">Make</value>
- <value type="QString"
key="ProjectExplorer.ProjectConfiguration.DisplayName"></value>
- <value type="QString"
key="ProjectExplorer.ProjectConfiguration.Id">Qt4ProjectManager.MakeStep</value>
- <value type="bool"
key="Qt4ProjectManager.MakeStep.Clean">true</value>
- <value type="QString"
key="Qt4ProjectManager.MakeStep.MakeArguments">clean</value>
- <value type="QString"
key="Qt4ProjectManager.MakeStep.MakeCommand"></value>
- </valuemap>
- <value type="int"
key="ProjectExplorer.BuildStepList.StepsCount">1</value>
- <value type="QString"
key="ProjectExplorer.ProjectConfiguration.DefaultDisplayName">Nettoyer</value>
- <value type="QString"
key="ProjectExplorer.ProjectConfiguration.DisplayName">Clean</value>
- <value type="QString"
key="ProjectExplorer.ProjectConfiguration.Id">ProjectExplorer.BuildSteps.Clean</value>
- </valuemap>
- <value type="int"
key="ProjectExplorer.BuildConfiguration.BuildStepListCount">2</value>
- <value type="bool"
key="ProjectExplorer.BuildConfiguration.ClearSystemEnvironment">false</value>
- <valuelist type="QVariantList"
key="ProjectExplorer.BuildConfiguration.UserEnvironmentChanges"/>
- <value type="QString"
key="ProjectExplorer.ProjectConfiguration.DefaultDisplayName">Debug</value>
- <value type="QString"
key="ProjectExplorer.ProjectConfiguration.DisplayName">Debug</value>
- <value type="QString"
key="ProjectExplorer.ProjectConfiguration.Id">Qt4ProjectManager.Qt4BuildConfiguration</value>
- <value type="int"
key="Qt4ProjectManager.Qt4BuildConfiguration.BuildConfiguration">2</value>
- <value type="QString"
key="Qt4ProjectManager.Qt4BuildConfiguration.BuildDirectory">/home/onix/qt/XmlTree-build-desktop-Debug</value>
- <value type="int"
key="Qt4ProjectManager.Qt4BuildConfiguration.QtVersionId">1</value>
- <value type="bool"
key="Qt4ProjectManager.Qt4BuildConfiguration.UseShadowBuild">false</value>
- </valuemap>
- <valuemap type="QVariantMap"
key="ProjectExplorer.Target.BuildConfiguration.1">
- <value type="QString"
key="ProjectExplorer.BuildCOnfiguration.ToolChain">ProjectExplorer.ToolChain.Gcc:/usr/bin/g++.x86-linux-generic-elf-32bit./usr/bin/gdb</value>
- <valuemap type="QVariantMap"
key="ProjectExplorer.BuildConfiguration.BuildStepList.0">
- <valuemap type="QVariantMap"
key="ProjectExplorer.BuildStepList.Step.0">
- <value type="QString"
key="ProjectExplorer.ProjectConfiguration.DefaultDisplayName">qmake</value>
- <value type="QString"
key="ProjectExplorer.ProjectConfiguration.DisplayName"></value>
- <value type="QString"
key="ProjectExplorer.ProjectConfiguration.Id">QtProjectManager.QMakeBuildStep</value>
- <value type="bool"
key="QtProjectManager.QMakeBuildStep.LinkQmlDebuggingLibrary">false</value>
- <value type="bool"
key="QtProjectManager.QMakeBuildStep.LinkQmlDebuggingLibraryAuto">false</value>
- <value type="QString"
key="QtProjectManager.QMakeBuildStep.QMakeArguments"></value>
- <value type="bool"
key="QtProjectManager.QMakeBuildStep.QMakeForced">false</value>
- </valuemap>
- <valuemap type="QVariantMap"
key="ProjectExplorer.BuildStepList.Step.1">
- <value type="QString"
key="ProjectExplorer.ProjectConfiguration.DefaultDisplayName">Make</value>
- <value type="QString"
key="ProjectExplorer.ProjectConfiguration.DisplayName"></value>
- <value type="QString"
key="ProjectExplorer.ProjectConfiguration.Id">Qt4ProjectManager.MakeStep</value>
- <value type="bool"
key="Qt4ProjectManager.MakeStep.Clean">false</value>
- <value type="QString"
key="Qt4ProjectManager.MakeStep.MakeArguments"></value>
- <value type="QString"
key="Qt4ProjectManager.MakeStep.MakeCommand"></value>
- </valuemap>
- <value type="int"
key="ProjectExplorer.BuildStepList.StepsCount">2</value>
- <value type="QString"
key="ProjectExplorer.ProjectConfiguration.DefaultDisplayName">Compiler</value>
- <value type="QString"
key="ProjectExplorer.ProjectConfiguration.DisplayName">Build</value>
- <value type="QString"
key="ProjectExplorer.ProjectConfiguration.Id">ProjectExplorer.BuildSteps.Build</value>
- </valuemap>
- <valuemap type="QVariantMap"
key="ProjectExplorer.BuildConfiguration.BuildStepList.1">
- <valuemap type="QVariantMap"
key="ProjectExplorer.BuildStepList.Step.0">
- <value type="QString"
key="ProjectExplorer.ProjectConfiguration.DefaultDisplayName">Make</value>
- <value type="QString"
key="ProjectExplorer.ProjectConfiguration.DisplayName"></value>
- <value type="QString"
key="ProjectExplorer.ProjectConfiguration.Id">Qt4ProjectManager.MakeStep</value>
- <value type="bool"
key="Qt4ProjectManager.MakeStep.Clean">true</value>
- <value type="QString"
key="Qt4ProjectManager.MakeStep.MakeArguments"></value>
- <value type="QString"
key="Qt4ProjectManager.MakeStep.MakeCommand"></value>
- </valuemap>
- <value type="int"
key="ProjectExplorer.BuildStepList.StepsCount">1</value>
- <value type="QString"
key="ProjectExplorer.ProjectConfiguration.DefaultDisplayName">Nettoyer</value>
- <value type="QString"
key="ProjectExplorer.ProjectConfiguration.DisplayName">Clean</value>
- <value type="QString"
key="ProjectExplorer.ProjectConfiguration.Id">ProjectExplorer.BuildSteps.Clean</value>
- </valuemap>
- <value type="int"
key="ProjectExplorer.BuildConfiguration.BuildStepListCount">2</value>
- <value type="bool"
key="ProjectExplorer.BuildConfiguration.ClearSystemEnvironment">false</value>
- <valuelist type="QVariantList"
key="ProjectExplorer.BuildConfiguration.UserEnvironmentChanges"/>
- <value type="QString"
key="ProjectExplorer.ProjectConfiguration.DefaultDisplayName">Release</value>
- <value type="QString"
key="ProjectExplorer.ProjectConfiguration.DisplayName">Release</value>
- <value type="QString"
key="ProjectExplorer.ProjectConfiguration.Id">Qt4ProjectManager.Qt4BuildConfiguration</value>
- <value type="int"
key="Qt4ProjectManager.Qt4BuildConfiguration.BuildConfiguration">0</value>
- <value type="QString"
key="Qt4ProjectManager.Qt4BuildConfiguration.BuildDirectory">/home/onix/qt/XmlTree-build-desktop-Release</value>
- <value type="int"
key="Qt4ProjectManager.Qt4BuildConfiguration.QtVersionId">1</value>
- <value type="bool"
key="Qt4ProjectManager.Qt4BuildConfiguration.UseShadowBuild">false</value>
- </valuemap>
- <value type="int"
key="ProjectExplorer.Target.BuildConfigurationCount">2</value>
- <valuemap type="QVariantMap"
key="ProjectExplorer.Target.DeployConfiguration.0">
- <valuemap type="QVariantMap"
key="ProjectExplorer.BuildConfiguration.BuildStepList.0">
- <value type="int"
key="ProjectExplorer.BuildStepList.StepsCount">0</value>
- <value type="QString"
key="ProjectExplorer.ProjectConfiguration.DefaultDisplayName">Déploiement</value>
- <value type="QString"
key="ProjectExplorer.ProjectConfiguration.DisplayName">Deploy</value>
- <value type="QString"
key="ProjectExplorer.ProjectConfiguration.Id">ProjectExplorer.BuildSteps.Deploy</value>
- </valuemap>
- <value type="int"
key="ProjectExplorer.BuildConfiguration.BuildStepListCount">1</value>
- <value type="QString"
key="ProjectExplorer.ProjectConfiguration.DefaultDisplayName">Pas de
déploiement</value>
- <value type="QString"
key="ProjectExplorer.ProjectConfiguration.DisplayName">Pas de
déploiement</value>
- <value type="QString"
key="ProjectExplorer.ProjectConfiguration.Id">ProjectExplorer.DefaultDeployConfiguration</value>
- </valuemap>
- <value type="int"
key="ProjectExplorer.Target.DeployConfigurationCount">1</value>
- <valuemap type="QVariantMap"
key="ProjectExplorer.Target.RunConfiguration.0">
- <value type="bool"
key="Analyzer.Project.UseGlobal">true</value>
- <value type="bool"
key="Analyzer.Project.UseGlobal">true</value>
- <valuelist type="QVariantList"
key="Analyzer.Valgrind.AddedSuppressionFiles"/>
- <valuelist type="QVariantList"
key="Analyzer.Valgrind.AddedSuppressionFiles"/>
- <value type="bool"
key="Analyzer.Valgrind.Callgrind.CollectBusEvents">false</value>
- <value type="bool"
key="Analyzer.Valgrind.Callgrind.CollectBusEvents">false</value>
- <value type="bool"
key="Analyzer.Valgrind.Callgrind.CollectSystime">false</value>
- <value type="bool"
key="Analyzer.Valgrind.Callgrind.CollectSystime">false</value>
- <value type="bool"
key="Analyzer.Valgrind.Callgrind.EnableBranchSim">false</value>
- <value type="bool"
key="Analyzer.Valgrind.Callgrind.EnableBranchSim">false</value>
- <value type="bool"
key="Analyzer.Valgrind.Callgrind.EnableCacheSim">false</value>
- <value type="bool"
key="Analyzer.Valgrind.Callgrind.EnableCacheSim">false</value>
- <value type="bool"
key="Analyzer.Valgrind.Callgrind.EnableEventToolTips">true</value>
- <value type="bool"
key="Analyzer.Valgrind.Callgrind.EnableEventToolTips">true</value>
- <value type="double"
key="Analyzer.Valgrind.Callgrind.MinimumCostRatio">0.01</value>
- <value type="double"
key="Analyzer.Valgrind.Callgrind.MinimumCostRatio">0.01</value>
- <value type="double"
key="Analyzer.Valgrind.Callgrind.VisualisationMinimumCostRatio">10</value>
- <value type="double"
key="Analyzer.Valgrind.Callgrind.VisualisationMinimumCostRatio">10</value>
- <value type="bool"
key="Analyzer.Valgrind.FilterExternalIssues">true</value>
- <value type="bool"
key="Analyzer.Valgrind.FilterExternalIssues">true</value>
- <value type="int"
key="Analyzer.Valgrind.NumCallers">25</value>
- <value type="int"
key="Analyzer.Valgrind.NumCallers">25</value>
- <valuelist type="QVariantList"
key="Analyzer.Valgrind.RemovedSuppressionFiles"/>
- <valuelist type="QVariantList"
key="Analyzer.Valgrind.RemovedSuppressionFiles"/>
- <value type="bool"
key="Analyzer.Valgrind.TrackOrigins">true</value>
- <value type="bool"
key="Analyzer.Valgrind.TrackOrigins">true</value>
- <value type="QString"
key="Analyzer.Valgrind.ValgrindExecutable">valgrind</value>
- <value type="QString"
key="Analyzer.Valgrind.ValgrindExecutable">valgrind</value>
- <valuelist type="QVariantList"
key="Analyzer.Valgrind.VisibleErrorKinds">
- <value type="int">0</value>
- <value type="int">1</value>
- <value type="int">2</value>
- <value type="int">3</value>
- <value type="int">4</value>
- <value type="int">5</value>
- <value type="int">6</value>
- <value type="int">7</value>
- <value type="int">8</value>
- <value type="int">9</value>
- <value type="int">10</value>
- <value type="int">11</value>
- <value type="int">12</value>
- <value type="int">13</value>
- <value type="int">14</value>
- </valuelist>
- <valuelist type="QVariantList"
key="Analyzer.Valgrind.VisibleErrorKinds">
- <value type="int">0</value>
- <value type="int">1</value>
- <value type="int">2</value>
- <value type="int">3</value>
- <value type="int">4</value>
- <value type="int">5</value>
- <value type="int">6</value>
- <value type="int">7</value>
- <value type="int">8</value>
- <value type="int">9</value>
- <value type="int">10</value>
- <value type="int">11</value>
- <value type="int">12</value>
- <value type="int">13</value>
- <value type="int">14</value>
- </valuelist>
- <value type="QString"
key="ProjectExplorer.ProjectConfiguration.DefaultDisplayName">Configuration
d'exécution Qt4</value>
- <value type="QString"
key="ProjectExplorer.ProjectConfiguration.DisplayName">XmlTree</value>
- <value type="QString"
key="ProjectExplorer.ProjectConfiguration.Id">Qt4ProjectManager.Qt4RunConfiguration</value>
- <value type="int"
key="Qt4ProjectManager.Qt4RunConfiguration.BaseEnvironmentBase">2</value>
- <value type="QString"
key="Qt4ProjectManager.Qt4RunConfiguration.CommandLineArguments"></value>
- <value type="QString"
key="Qt4ProjectManager.Qt4RunConfiguration.ProFile">XmlTree.pro</value>
- <value type="bool"
key="Qt4ProjectManager.Qt4RunConfiguration.UseDyldImageSuffix">false</value>
- <value type="bool"
key="Qt4ProjectManager.Qt4RunConfiguration.UseTerminal">false</value>
- <valuelist type="QVariantList"
key="Qt4ProjectManager.Qt4RunConfiguration.UserEnvironmentChanges"/>
- <value type="QString"
key="Qt4ProjectManager.Qt4RunConfiguration.UserWorkingDirectory"></value>
- <value type="uint"
key="RunConfiguration.QmlDebugServerPort">3768</value>
- <value type="bool"
key="RunConfiguration.UseCppDebugger">true</value>
- <value type="bool"
key="RunConfiguration.UseQmlDebugger">false</value>
- <value type="bool"
key="RunConfiguration.UseQmlDebuggerAuto">false</value>
- </valuemap>
- <value type="int"
key="ProjectExplorer.Target.RunConfigurationCount">1</value>
+ <value key="ProjectExplorer.BuildConfiguration.DisplayName"
type="QString"></value>
+ <value key="clean" type="bool">true</value>
</valuemap>
</data>
<data>
- <variable>ProjectExplorer.Project.TargetCount</variable>
- <value type="int">1</value>
+ <variable>cleansteps</variable>
+ <valuelist type="QVariantList">
+ <value type="QString">trolltech.qt4projectmanager.make</value>
+ </valuelist>
</data>
<data>
- <variable>ProjectExplorer.Project.Updater.EnvironmentId</variable>
- <value
type="QString">{5e5821f7-3a40-405f-b196-cbc6284a3a45}</value>
+ <variable>defaultFileEncoding</variable>
+ <value type="QByteArray">System</value>
</data>
<data>
- <variable>ProjectExplorer.Project.Updater.FileVersion</variable>
- <value type="int">10</value>
+ <variable>project</variable>
+ <valuemap type="QVariantMap"/>
</data>
</qtcreator>
diff --git a/XmlTree/mainwindow.cpp b/XmlTree/mainwindow.cpp
index 337b2f7..26729b7 100644
--- a/XmlTree/mainwindow.cpp
+++ b/XmlTree/mainwindow.cpp
@@ -7,10 +7,17 @@ MainWindow::MainWindow(QWidget *parent) :
{
ui->setupUi(this);
- xml.load("/home/onix/icdar_ppm_100p/mp00032c_gui.xml");
+ xml.load("/tmp/mp00082c_gui.xml");
- xmlWidget.load(xml.treeItem());
- setCentralWidget(&xmlWidget);
+ //xmlWidget.load(xml.treeItem());
+
+ view = new QGraphicsView(new QGraphicsScene());
+
+ QGraphicsItem *item;
+ foreach(item, xml.graphicsItems())
+ view->scene()->addItem(item);
+
+ setCentralWidget(view);
}
MainWindow::~MainWindow()
diff --git a/XmlTree/mainwindow.h b/XmlTree/mainwindow.h
index 61da1bb..221d43d 100644
--- a/XmlTree/mainwindow.h
+++ b/XmlTree/mainwindow.h
@@ -1,6 +1,7 @@
#ifndef MAINWINDOW_H
#define MAINWINDOW_H
+#include <QGraphicsView>
#include <QMainWindow>
#include "xmlwidget.h"
@@ -25,6 +26,7 @@ class MainWindow :
private:
Ui::MainWindow *ui;
+ QGraphicsView *view;
XmlWidget xmlWidget;
Xml xml;
};
diff --git a/XmlTree/polygonitem.h b/XmlTree/polygonitem.h
index 893bde3..0e8377d 100644
--- a/XmlTree/polygonitem.h
+++ b/XmlTree/polygonitem.h
@@ -4,6 +4,8 @@
#include <QGraphicsPathItem>
#include <QPen>
+#include "region.h"
+
class PolygonItem :
public QObject,
public QGraphicsPolygonItem
@@ -13,9 +15,12 @@ class PolygonItem :
public:
explicit PolygonItem(QGraphicsItem *parent = 0, QGraphicsScene *scene = 0);
explicit PolygonItem(const QPolygonF& path, QGraphicsItem *parent = 0,
QGraphicsScene *scene = 0);
+
void setColor(const QColor& color);
QColor color() const;
+ inline void loadData(const GraphicRegion::Data& data);
+
private:
void init();
@@ -28,4 +33,11 @@ class PolygonItem :
void repaint(const QRectF& rect, bool clic);
};
+inline void PolygonItem::loadData(const GraphicRegion::Data &data)
+{
+ setData(0, data.region);
+ setColor(data.color);
+ setZValue(data.zValue);
+}
+
#endif // POLYGONITEM_H
diff --git a/XmlTree/xml.cpp b/XmlTree/xml.cpp
index a82ca4f..8dd9d17 100644
--- a/XmlTree/xml.cpp
+++ b/XmlTree/xml.cpp
@@ -1,8 +1,20 @@
#include "xml.h"
-Xml::Xml()
+static const GraphicRegion::Data itemsData[] =
{
-}
+ /* COLOR | NAME |
REGION | ZVALUE */
+ { QColor::fromRgb(255, 0, 0, 80), "Line",
(int)GraphicRegion::Line, 2 },
+ { QColor::fromRgb(0, 100, 0, 80), "TextRegion",
(int)GraphicRegion::Text, 1 },
+ { QColor::fromRgb(0, 0, 255, 60), "VerticalSeparatorRegion",
(int)GraphicRegion::VerticalSeparator, 2 },
+ { QColor::fromRgb(0, 0, 255, 60), "HorizontalSeparatorRegion",
(int)GraphicRegion::HorizontalSeparator, 2 },
+ { QColor::fromRgb(0, 0, 128, 60), "WhitespaceSeparatorRegion",
(int)GraphicRegion::WhiteSpaceSeparator, 2 },
+ { QColor::fromRgb(255, 120, 0, 60), "ImageRegion",
(int)GraphicRegion::Image, 1 },
+ { QColor::fromRgb(43, 39, 128, 60), "NoiseRegion",
(int)GraphicRegion::Noise, 2 },
+ { QColor::fromRgb(220, 246, 0, 60), "TableRegion",
(int)GraphicRegion::Table, 2 },
+ { QColor::fromRgb(170, 0, 255, 60), "MathsRegion",
(int)GraphicRegion::Maths, 2 },
+ { QColor::fromRgb(255, 0, 144, 60), "GraphicRegion",
(int)GraphicRegion::Graphic, 2 },
+ { QColor::fromRgb(0, 204, 255, 60), "ChartRegion",
(int)GraphicRegion::Chart, 2 }
+};
Xml::Xml(const QString &filename)
{
@@ -11,75 +23,157 @@ Xml::Xml(const QString &filename)
void Xml::load(const QString &filename)
{
- QFile xmlFile(filename);
- xmlFile.open(QIODevice::ReadOnly);
+ if(!filename.isEmpty())
+ {
+ QFile xmlFile(filename);
+ xmlFile.open(QIODevice::ReadOnly);
- QDomDocument xml;
- xml.setContent(&xmlFile);
+ QDomDocument xml;
+ xml.setContent(&xmlFile);
- xmlFile.close();
+ xmlFile.close();
- QDomElement root = xml.documentElement();
- tItems.setText(0, root.tagName());
+ QDomElement root = xml.documentElement();
+ tItems.setText(0, root.tagName());
- root = root.firstChild().toElement();
- init(root, &tItems);
+ root = root.firstChild().toElement();
+ QTreeWidgetItem *parentTreeItem = init(root, &tItems);
- root.nextSibling().toElement();
+ // Run through the xml file structure by structure.
+ root = root.nextSibling().firstChild().toElement();
+ for(int i = 1; i < 10; i++)
+ processNode(root.nextSiblingElement(itemsData[i].name), itemsData[i],
parentTreeItem);
+ }
}
-void Xml::init(const QDomElement& root, QTreeWidgetItem *parentTreeItem)
+QTreeWidgetItem *Xml::init(const QDomElement& root, QTreeWidgetItem *rootTreeItem)
{
QDomElement node = root;
- QTreeWidgetItem *precTreeItem = 0;
+ QString nodeText;
+
+ QTreeWidgetItem *parentTreeItem = new QTreeWidgetItem(rootTreeItem);
+ parentTreeItem->setText(0, node.tagName());
+ QTreeWidgetItem *treeItem, *childTreeItem;
+ node = node.firstChild().toElement();
+
+ // Run through "METADATA" node and subnodes.
while(!node.isNull())
{
- QTreeWidgetItem *treeItem = new QTreeWidgetItem(parentTreeItem, precTreeItem);
+ treeItem = new QTreeWidgetItem(parentTreeItem, treeItem);
treeItem->setText(0, node.tagName());
// Add widget item child with text content.
- QString nodeText = node.text();
- QTreeWidgetItem *child = new QTreeWidgetItem(treeItem);
- child->setText(0, nodeText);
+ nodeText = node.text();
+ childTreeItem = new QTreeWidgetItem(treeItem);
+ childTreeItem->setText(0, nodeText);
- precTreeItem = treeItem;
node = node.nextSibling().toElement();
}
+
+ // Add "PAGE" root node and return it.
+ parentTreeItem = new QTreeWidgetItem(rootTreeItem, parentTreeItem);
+ parentTreeItem->setText(0, root.nextSibling().toElement().tagName());
+
+ return parentTreeItem;
}
-void Xml::processNode(const QDomElement& root, const GraphicRegion::Data& data,
QTreeWidgetItem *parentTreeItem)
+void Xml::processNode(const QDomElement& root, const GraphicRegion::Data& data,
QTreeWidgetItem *rootTreeItem)
{
-
- /*if(!root.isNull())
+ if(!root.isNull())
{
- QDomElement node = root;
+ // Create corresponding tree item.
+ QTreeWidgetItem *parentTreeItem = fillWidgetItem(root.tagName(), rootTreeItem);
+ QTreeWidgetItem *treeItem;
- QTreeWidgetItem *treeItem = new QTreeWidgetItem(parentTreeItem);
- treeItem->setText(0, node.tagName());
+ QPolygon polygon;
+ QString sx, sy;
- node = node.firstChild().toElement();
- treeItem = new QTreeWidgetItem(treeItem);
- treeItem->setText(0, node.tagName());
+ // Run through all points data.
+ QDomElement node = root.firstChild().firstChild().toElement();
+ while(!node.isNull())
+ {
+ sx = node.attribute("x", "null");
+ sy = node.attribute("y", "null");
+
+ treeItem = new QTreeWidgetItem(parentTreeItem, treeItem);
+ treeItem->setText(0, node.tagName() + " = " + sx + ",
" + sy);
- node = node.firstChild().toElement();
- QTreeWidgetItem *precItem = 0;
+ polygon << QPoint(sx.toInt(), sy.toInt());
+ node = node.nextSibling().toElement();
+ }
+
+ // Create the graphical item from data structure.
+ PolygonItem *polygonItem = new PolygonItem(polygon);
+ polygonItem->loadData(data);
+ gItems << polygonItem;
if(data.region == GraphicRegion::Text)
- {
- while(!node.isNull())
- {
+ processLineNode(root.firstChild().nextSiblingElement("Line"),
polygonItem, parentTreeItem->parent());
- }
- }
+ // Run through all nodes from the same data structure recursively.
+ processNode(root.nextSiblingElement(data.name), data, rootTreeItem);
+ }
+}
+
+void Xml::processLineNode(const QDomElement& root, PolygonItem *parentPolygonItem,
QTreeWidgetItem *rootTreeItem)
+{
+ if(!root.isNull())
+ {
+ // Create corresponding tree item.
+ QTreeWidgetItem *parentTreeItem = fillWidgetItem(root.tagName(), rootTreeItem);
+ QTreeWidgetItem *treeItem;
+
+ QPolygon polygon;
+ QString sx, sy;
+ int x, y;
- else
+ int xMin = INT_MAX;
+ int xMax = INT_MIN;
+
+ // Run through all points data.
+ QDomElement node = root.firstChild().firstChild().toElement();
+ while(!node.isNull())
{
- while(!node.isNull())
- {
+ sx = node.attribute("x", "null");
+ sy = node.attribute("y", "null");
+
+ treeItem = new QTreeWidgetItem(parentTreeItem, treeItem);
+ treeItem->setText(0, node.tagName() + " = " + sx + ",
" + sy);
- }
+ x = sx.toInt();
+ y = sy.toInt();
+
+ // Get beginning and end of line.
+ if(xMin > x)
+ xMin = x;
+ if(xMax < x)
+ xMax = x;
+
+ polygon << QPoint(x, y);
+ node = node.nextSibling().toElement();
}
- }*/
+ // Create the graphical item from data structure.
+ PolygonItem *polygonItem = new PolygonItem(polygon, parentPolygonItem);
+ polygonItem->loadData(itemsData[0]);
+
+ // Get meanline and baseline.
+ processTypoNode(root, QPoint(xMin, xMax), polygonItem);
+ // Run through all line nodes recursively.
+ processLineNode(root.nextSiblingElement("Line"), parentPolygonItem,
rootTreeItem);
+ }
+}
+
+void Xml::processTypoNode(const QDomElement& root, const QPoint& xPoint,
PolygonItem *parentPolygonItem)
+{
+ int yPos = root.attribute("baseline", "null").toInt();
+ QGraphicsLineItem *baselineItem = new QGraphicsLineItem(QLine(QPoint(xPoint.x(),
yPos), QPoint(xPoint.y(), yPos)), parentPolygonItem);
+ baselineItem->setData(0, QVariant::fromValue((int)GraphicRegion::Baseline));
+ baselineItem->setZValue(3);
+
+ yPos = root.attribute("meanline", "null").toInt();
+ QGraphicsLineItem *meanlineItem = new QGraphicsLineItem(QLine(QPoint(xPoint.x(),
yPos), QPoint(xPoint.y(), yPos)), parentPolygonItem);
+ meanlineItem->setData(0, QVariant::fromValue((int)GraphicRegion::Meanline));
+ meanlineItem->setZValue(3);
}
diff --git a/XmlTree/xml.h b/XmlTree/xml.h
index cb1d2a2..9abec4e 100644
--- a/XmlTree/xml.h
+++ b/XmlTree/xml.h
@@ -5,29 +5,30 @@
#include <QGraphicsItem>
#include <QStringList>
#include <QDomElement>
+#include <climits>
#include <QFile>
#include "polygonitem.h"
#include "region.h"
-class Xml
+class Xml :
+ QObject
{
+ Q_OBJECT
+
public:
- Xml();
- explicit Xml(const QString& filename);
+ explicit Xml(const QString& filename = QString());
+
void load(const QString& filename);
inline QTreeWidgetItem *treeItem();
+ inline QList<QGraphicsItem *> graphicsItems();
private:
- void init(const QDomElement& root, QTreeWidgetItem *parent);
- void processNode(const QDomElement& root, const GraphicRegion::Data&
data, QTreeWidgetItem *parent);
-
- QGraphicsItem *graphicsText(const QDomElement& root);
- /*void graphicsLine(const QDomeElement& root, QGraphicsItem *graphicsText);
- void graphicsTypo(const QDomeElement& root, QGraphicsItem *graphicsLine);*/
-
- void fillTreeWidgetItem(const QDomElement& root, QTreeWidgetItem *parent);
- QGraphicsItem *graphicsRegion(const QDomElement& root);
+ QTreeWidgetItem *init(const QDomElement& root, QTreeWidgetItem
*rootTreeItem);
+ inline QTreeWidgetItem *fillWidgetItem(const QString& tagName,
QTreeWidgetItem *rootTreeItem);
+ void processNode(const QDomElement& root, const GraphicRegion::Data&
data, QTreeWidgetItem *rootTreeItem);
+ void processLineNode(const QDomElement& root, PolygonItem *parentPolygonItem,
QTreeWidgetItem *rootTreeItem);
+ void processTypoNode(const QDomElement& root, const QPoint& xPoint,
PolygonItem *rootPolygonItem);
QList<QGraphicsItem *> gItems;
QTreeWidgetItem tItems;
@@ -36,4 +37,14 @@ class Xml
inline QTreeWidgetItem *Xml::treeItem()
{ return &tItems; }
+inline QList<QGraphicsItem *> Xml::graphicsItems()
+{ return gItems; }
+
+inline QTreeWidgetItem *Xml::fillWidgetItem(const QString& tagName, QTreeWidgetItem
*rootTreeItem)
+{
+ QTreeWidgetItem *treeItem = new QTreeWidgetItem(rootTreeItem, QStringList(tagName));
+ treeItem = new QTreeWidgetItem(treeItem, QStringList("Coords"));
+ return treeItem;
+}
+
#endif // XML_H
--
1.7.2.5