---
GScribo/GScribo.pro | 52 +-
GScribo/GScribo.pro.user | 466 ++++-----
GScribo/{PagesViewer => PagesWidget}/listmodel.cpp | 0
GScribo/{PagesViewer => PagesWidget}/listmodel.h | 0
.../{PagesViewer => PagesWidget}/pageswidget.cpp | 0
GScribo/{PagesViewer => PagesWidget}/pageswidget.h | 0
GScribo/XmlWidget/attributesdelegate.h | 22 +
GScribo/XmlWidget/treedelegate.h | 21 +
GScribo/{ => XmlWidget}/xmlattributes.cpp | 0
GScribo/{ => XmlWidget}/xmlattributes.h | 1 +
GScribo/XmlWidget/xmlattributes.o | Bin 0 -> 174652 bytes
GScribo/{ => XmlWidget}/xmlitem.cpp | 19 +-
GScribo/{ => XmlWidget}/xmlitem.h | 12 +-
GScribo/XmlWidget/xmlitem.o | Bin 0 -> 275912 bytes
GScribo/XmlWidget/xmlmodel.cpp | 105 ++
GScribo/{ => XmlWidget}/xmlmodel.h | 18 +-
GScribo/XmlWidget/xmlmodel.o | Bin 0 -> 289792 bytes
GScribo/XmlWidget/xmlview.cpp | 12 +
GScribo/XmlWidget/xmlview.h | 27 +
GScribo/XmlWidget/xmlwidget.cpp | 21 +
GScribo/XmlWidget/xmlwidget.h | 33 +
GScribo/XmlWidget/xmlwidget.o | Bin 0 -> 339732 bytes
GScribo/dir.h | 2 +-
GScribo/main.cpp | 14 +-
GScribo/mainwindow.cpp | 16 +-
GScribo/mainwindow.h | 14 +-
GScribo/xml.cpp | 93 +-
GScribo/xml.h | 21 +-
GScribo/xmlmodel.cpp | 71 --
GScribo/xmlwidget.cpp | 163 ---
GScribo/xmlwidget.h | 55 -
XmlTree/XmlTree.pro.user | 1067 ++++----------------
XmlTree/xmldelegate.cpp | 3 +-
33 files changed, 795 insertions(+), 1533 deletions(-)
rename GScribo/{PagesViewer => PagesWidget}/listmodel.cpp (100%)
rename GScribo/{PagesViewer => PagesWidget}/listmodel.h (100%)
rename GScribo/{PagesViewer => PagesWidget}/pageswidget.cpp (100%)
rename GScribo/{PagesViewer => PagesWidget}/pageswidget.h (100%)
create mode 100644 GScribo/XmlWidget/attributesdelegate.h
create mode 100644 GScribo/XmlWidget/treedelegate.h
rename GScribo/{ => XmlWidget}/xmlattributes.cpp (100%)
rename GScribo/{ => XmlWidget}/xmlattributes.h (96%)
create mode 100644 GScribo/XmlWidget/xmlattributes.o
rename GScribo/{ => XmlWidget}/xmlitem.cpp (63%)
rename GScribo/{ => XmlWidget}/xmlitem.h (81%)
create mode 100644 GScribo/XmlWidget/xmlitem.o
create mode 100644 GScribo/XmlWidget/xmlmodel.cpp
rename GScribo/{ => XmlWidget}/xmlmodel.h (61%)
create mode 100644 GScribo/XmlWidget/xmlmodel.o
create mode 100644 GScribo/XmlWidget/xmlview.cpp
create mode 100644 GScribo/XmlWidget/xmlview.h
create mode 100644 GScribo/XmlWidget/xmlwidget.cpp
create mode 100644 GScribo/XmlWidget/xmlwidget.h
create mode 100644 GScribo/XmlWidget/xmlwidget.o
delete mode 100644 GScribo/xmlmodel.cpp
delete mode 100644 GScribo/xmlwidget.cpp
delete mode 100644 GScribo/xmlwidget.h
diff --git a/GScribo/GScribo.pro b/GScribo/GScribo.pro
index fe3d55e..7798a52 100644
--- a/GScribo/GScribo.pro
+++ b/GScribo/GScribo.pro
@@ -2,62 +2,58 @@
# Project created by QtCreator 2013-01-21T09:20:54
# -------------------------------------------------
QT += xml
-INCLUDEPATH += /home/onix/olena/milena/ \
- /home/onix/olena/scribo/ \
- /home/onix/olena/_build/scribo/demo/
+INCLUDEPATH += /lrde/home/stage/froger_a/olena/milena/ \
+ /lrde/home/stage/froger_a/olena/scribo/ \
+ /lrde/home/stage/froger_a/olena/_build/scribo/demo/
QMAKE_CXXFLAGS += -DNDEBUG \
-DMLN_WO_GLOBAL_VARS
LIBS += -I/usr/include/graphicsImage \
-lGraphicsMagick++ \
- -ltesseract
+ -ltesseract_full
TARGET = GScribo
TEMPLATE = app
SOURCES += main.cpp \
mainwindow.cpp \
+ xml.cpp \
Rendering/scene.cpp \
Rendering/selection.cpp \
Rendering/polygonitem.cpp \
- PagesViewer/pageswidget.cpp \
- PagesViewer/listmodel.cpp \
+ PagesWidget/pageswidget.cpp \
+ PagesWidget/listmodel.cpp \
Preferences/segmentationoptions.cpp \
Preferences/preprocessingoptions.cpp \
Preferences/ocroptions.cpp \
Preferences/generaloptions.cpp \
Preferences/preferencesdialog.cpp \
- Processing/progressdialog.cpp \
- Processing/process.cpp \
- Processing/preprocess.cpp \
- Processing/runner.cpp \
- xml.cpp \
- xmlwidget.cpp \
- xmlmodel.cpp \
- xmlitem.cpp \
- xmlattributes.cpp
+ XmlWidget/xmlwidget.cpp \
+ XmlWidget/xmlmodel.cpp \
+ XmlWidget/xmlitem.cpp \
+ XmlWidget/xmlattributes.cpp \
+ XmlWidget/xmlview.cpp
HEADERS += mainwindow.h \
+ variantpointer.h \
configs.h \
region.h \
+ dir.h \
+ xml.h \
Rendering/scene.h \
Rendering/selection.h \
Rendering/polygonitem.h \
- PagesViewer/pageswidget.h \
- PagesViewer/listmodel.h \
+ PagesWidget/pageswidget.h \
+ PagesWidget/listmodel.h \
Preferences/segmentationoptions.h \
Preferences/preprocessingoptions.h \
Preferences/ocroptions.h \
Preferences/generaloptions.h \
Preferences/optionwidget.h \
Preferences/preferencesdialog.h \
- Processing/preprocess.h \
- Processing/progressdialog.h \
- Processing/process.h \
- dir.h \
- Processing/runner.h \
- xml.h \
- variantpointer.h \
- xmlwidget.h \
- xmlmodel.h \
- xmlitem.h \
- xmlattributes.h
+ XmlWidget/xmlwidget.h \
+ XmlWidget/xmlmodel.h \
+ XmlWidget/xmlitem.h \
+ XmlWidget/xmlattributes.h \
+ XmlWidget/treedelegate.h \
+ XmlWidget/attributesdelegate.h \
+ XmlWidget/xmlview.h
FORMS += mainwindow.ui \
Preferences/preferencesdialog.ui \
Preferences/ocroptions.ui \
diff --git a/GScribo/GScribo.pro.user b/GScribo/GScribo.pro.user
index 0f4e800..ab3db9a 100644
--- a/GScribo/GScribo.pro.user
+++ b/GScribo/GScribo.pro.user
@@ -1,265 +1,245 @@
-<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE QtCreatorProject>
-<!-- Written by Qt Creator 2.4.1, 2013-02-03T23:23:07. -->
<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">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-Ym4qd3xwr0,guid=fde40b3a0f4d1c9822b6f826000921d9</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">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/GScribo/XmlWidget</value>
+ <value
type="QString">PATH=/usr/bin:/usr/local/bin:/usr/bin:/bin:/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=758</value>
+ <value
type="QString">SSH_AUTH_SOCK=/tmp/ssh-vklgVis705/agent.705</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</value>
+ <value type="QString">XAUTHORITY=/tmp/.gdmKSVXRW</value>
+ <value
type="QString">XDG_DATA_DIRS=/usr/local/share/:/usr/share/:/usr/share/gdm/</value>
+ <value
type="QString">XDG_SESSION_COOKIE=9a5c41ad78622411b8e25b00459a554f-1359984156.79822-629324293</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>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-Ym4qd3xwr0,guid=fde40b3a0f4d1c9822b6f826000921d9</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">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/GScribo/XmlWidget</value>
+ <value
type="QString">PATH=/usr/bin:/usr/local/bin:/usr/bin:/bin:/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=758</value>
+ <value
type="QString">SSH_AUTH_SOCK=/tmp/ssh-vklgVis705/agent.705</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</value>
+ <value type="QString">XAUTHORITY=/tmp/.gdmKSVXRW</value>
+ <value
type="QString">XDG_DATA_DIRS=/usr/local/share/:/usr/share/:/usr/share/gdm/</value>
+ <value
type="QString">XDG_SESSION_COOKIE=9a5c41ad78622411b8e25b00459a554f-1359984156.79822-629324293</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>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>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">Desktop</value>
- <value type="QString"
key="ProjectExplorer.ProjectConfiguration.DisplayName">Desktop</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">true</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"></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"></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">Qt 4.8.1 dans
le PATH (Système) Release</value>
- <value type="QString"
key="ProjectExplorer.ProjectConfiguration.DisplayName"></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/GScribo</value>
- <value type="int"
key="Qt4ProjectManager.Qt4BuildConfiguration.QtVersionId">1</value>
- <value type="bool"
key="Qt4ProjectManager.Qt4BuildConfiguration.UseShadowBuild">true</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">true</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"></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"></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">Qt 4.8.1 dans
le PATH (Système) Debug</value>
- <value type="QString"
key="ProjectExplorer.ProjectConfiguration.DisplayName"></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"></value>
- <value type="int"
key="Qt4ProjectManager.Qt4BuildConfiguration.QtVersionId">1</value>
- <value type="bool"
key="Qt4ProjectManager.Qt4BuildConfiguration.UseShadowBuild">true</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"></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"></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</value>
- <value type="QString"
key="ProjectExplorer.ProjectConfiguration.DisplayName"></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"></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/GScribo/PagesViewer/listmodel.cpp b/GScribo/PagesWidget/listmodel.cpp
similarity index 100%
rename from GScribo/PagesViewer/listmodel.cpp
rename to GScribo/PagesWidget/listmodel.cpp
diff --git a/GScribo/PagesViewer/listmodel.h b/GScribo/PagesWidget/listmodel.h
similarity index 100%
rename from GScribo/PagesViewer/listmodel.h
rename to GScribo/PagesWidget/listmodel.h
diff --git a/GScribo/PagesViewer/pageswidget.cpp b/GScribo/PagesWidget/pageswidget.cpp
similarity index 100%
rename from GScribo/PagesViewer/pageswidget.cpp
rename to GScribo/PagesWidget/pageswidget.cpp
diff --git a/GScribo/PagesViewer/pageswidget.h b/GScribo/PagesWidget/pageswidget.h
similarity index 100%
rename from GScribo/PagesViewer/pageswidget.h
rename to GScribo/PagesWidget/pageswidget.h
diff --git a/GScribo/XmlWidget/attributesdelegate.h
b/GScribo/XmlWidget/attributesdelegate.h
new file mode 100644
index 0000000..6442e49
--- /dev/null
+++ b/GScribo/XmlWidget/attributesdelegate.h
@@ -0,0 +1,22 @@
+#ifndef ATTRIBUTESDELEGATE_H
+#define ATTRIBUTESDELEGATE_H
+
+#include <QStyledItemDelegate>
+#include <QPainter>
+
+class AttributesDelegate :
+ public QStyledItemDelegate
+{
+ public:
+ explicit AttributesDelegate(QObject *parent = 0) : QStyledItemDelegate(parent) {
}
+
+ inline void paint(QPainter *painter, const QStyleOptionViewItem &option,
const QModelIndex &index) const;
+};
+
+inline void paint(QPainter *painter, const QStyleOptionViewItem& option, const
QModelIndex& index) const
+{
+ QStyledItemDelegate::paint(painter, option, index);
+ painter->drawText(option.rect, painter.index.column() == 0 ?
index.data(Qt::UserRole+1).toString() : index.data(Qt::UserRole+2).toString());
+}
+
+#endif // ATTRIBUTESDELEGATE_H
diff --git a/GScribo/XmlWidget/treedelegate.h b/GScribo/XmlWidget/treedelegate.h
new file mode 100644
index 0000000..4dbc8be
--- /dev/null
+++ b/GScribo/XmlWidget/treedelegate.h
@@ -0,0 +1,21 @@
+#ifndef TREEDELEGATE_H
+#define TREEDELEGATE_H
+
+#include <QStyledItemDelegate>
+#include <QPainter>
+
+#include "xmlitem.h"
+
+class TreeDelegate :
+ public QStyledItemDelegate
+{
+ public:
+ explicit TreeDelegate(QObject *parent = 0) : QStyledItemDelegate(parent) { }
+
+ inline void paint(QPainter *painter, const QStyleOptionViewItem& option,
const QModelIndex& index) const;
+};
+
+inline void TreeDelegate::paint(QPainter *painter, const QStyleOptionViewItem&
option, const QModelIndex& index) const
+{ QStyledItemDelegate::paint(painter, option, index); painter->drawText(option.rect,
index.data(Qt::UserRole).toString()); }
+
+#endif // TREEDELEGATE_H
diff --git a/GScribo/xmlattributes.cpp b/GScribo/XmlWidget/xmlattributes.cpp
similarity index 100%
rename from GScribo/xmlattributes.cpp
rename to GScribo/XmlWidget/xmlattributes.cpp
diff --git a/GScribo/xmlattributes.h b/GScribo/XmlWidget/xmlattributes.h
similarity index 96%
rename from GScribo/xmlattributes.h
rename to GScribo/XmlWidget/xmlattributes.h
index cc187b1..b0ac030 100644
--- a/GScribo/xmlattributes.h
+++ b/GScribo/XmlWidget/xmlattributes.h
@@ -2,6 +2,7 @@
#define XMLATTRIBUTES_H
#include <QDomNamedNodeMap>
+#include <QStringList>
class XmlAttributes
{
diff --git a/GScribo/XmlWidget/xmlattributes.o b/GScribo/XmlWidget/xmlattributes.o
new file mode 100644
index 0000000..f199519
Binary files /dev/null and b/GScribo/XmlWidget/xmlattributes.o differ
diff --git a/GScribo/xmlitem.cpp b/GScribo/XmlWidget/xmlitem.cpp
similarity index 63%
rename from GScribo/xmlitem.cpp
rename to GScribo/XmlWidget/xmlitem.cpp
index 3f939ee..b844eab 100644
--- a/GScribo/xmlitem.cpp
+++ b/GScribo/XmlWidget/xmlitem.cpp
@@ -1,22 +1,11 @@
#include "xmlitem.h"
-XmlItem::XmlItem(XmlItem *parent)
-{
- init(parent);
-}
-
-XmlItem::XmlItem(XmlItem *precItem, XmlItem *parent)
+XmlItem::XmlItem(XmlItem *parent, XmlItem *precItem)
{
init(parent, precItem);
}
-XmlItem::XmlItem(const QDomElement& node, XmlItem *parent)
-{
- init(parent);
- load(node);
-}
-
-XmlItem::XmlItem(const QDomElement& node, XmlItem *precItem, XmlItem *parent)
+XmlItem::XmlItem(const QDomElement& node, XmlItem *parent, XmlItem *precItem)
{
init(parent, precItem);
load(node);
@@ -31,7 +20,7 @@ XmlItem::~XmlItem()
}
void XmlItem::init(XmlItem *parent, XmlItem *precItem)
-{
+{
graphicalItem_ = 0;
parent_ = parent;
@@ -49,5 +38,5 @@ void XmlItem::load(const QDomElement& node)
text_ = node.tagName();
// Load attributes.
- attributes_.load(node);
+ attributes_.load(node.attributes());
}
diff --git a/GScribo/xmlitem.h b/GScribo/XmlWidget/xmlitem.h
similarity index 81%
rename from GScribo/xmlitem.h
rename to GScribo/XmlWidget/xmlitem.h
index d5de01c..7dafdae 100644
--- a/GScribo/xmlitem.h
+++ b/GScribo/XmlWidget/xmlitem.h
@@ -9,10 +9,8 @@
class XmlItem
{
public:
- explicit XmlItem(XmlItem *parent = 0);
- explicit XmlItem(XmlItem *precItem, XmlItem *parent = 0);
- explicit XmlItem(const QDomElement& node, XmlItem *parent = 0);
- explicit XmlItem(const QDomElement& node, XmlItem *precItem, XmlItem *parent
= 0);
+ explicit XmlItem(XmlItem *parent = 0, XmlItem *precItem = 0);
+ explicit XmlItem(const QDomElement& node, XmlItem *parent = 0, XmlItem
*precItem = 0);
~XmlItem();
void load(const QDomElement& node);
@@ -28,7 +26,7 @@ class XmlItem
inline QString text() const;
inline int row() const;
- inline XmlAttributes *attributes() const;
+ inline XmlAttributes attributes() const;
private:
void init(XmlItem *parent = 0, XmlItem *precItem = 0);
@@ -45,7 +43,7 @@ inline QList<XmlItem *> XmlItem::childs() const
{ return childs_; }
inline XmlItem *XmlItem::child(int i) const
-{ return childs_[i]; }
+{ if(i > -1 && i < childs_.count()) return childs_[i]; return 0; }
inline void XmlItem::addChild(XmlItem *child)
{ childs_ << child; }
@@ -53,7 +51,7 @@ inline void XmlItem::addChild(XmlItem *child)
inline XmlItem *XmlItem::parent() const
{ return parent_; }
-inline PolygonItem *XmlItem::graphicalItem() const
+inline PolygonItem *XmlItem::graphicalItem()
{ return graphicalItem_; }
inline void XmlItem::setGraphicalItem(PolygonItem *graphicalItem)
diff --git a/GScribo/XmlWidget/xmlitem.o b/GScribo/XmlWidget/xmlitem.o
new file mode 100644
index 0000000..4a2a0e8
Binary files /dev/null and b/GScribo/XmlWidget/xmlitem.o differ
diff --git a/GScribo/XmlWidget/xmlmodel.cpp b/GScribo/XmlWidget/xmlmodel.cpp
new file mode 100644
index 0000000..b147c68
--- /dev/null
+++ b/GScribo/XmlWidget/xmlmodel.cpp
@@ -0,0 +1,105 @@
+#include "xmlmodel.h"
+
+XmlModel::XmlModel(XmlItem *rootItem, QObject *parent) :
+ QAbstractItemModel(parent)
+{
+ rowCount_ = 0;
+ rootItem_ = 0;
+}
+
+XmlModel::XmlModel(XmlItem *rootItem, QAbstractItemModelPrivate& dd, QObject *parent)
:
+ QAbstractItemModel(dd, parent)
+{
+ rowCount_ = 0;
+ rootItem_ = 0;
+}
+
+XmlModel::~XmlModel()
+{
+ if(rootItem_)
+ delete rootItem_;
+}
+
+QVariant XmlModel::headerData(int/* section*/, Qt::Orientation orientation, int role)
const
+{
+ if(orientation == Qt::Horizontal && role == Qt::DisplayRole)
+ return tr("Tree");
+
+ return QVariant();
+}
+
+QVariant XmlModel::data(const QModelIndex& index, int role) const
+{
+ if(!index.isValid())
+ return QVariant();
+
+ switch(role)
+ {
+ case Qt::UserRole:
+ return list_.at(index.row())->text();
+ //return static_cast<XmlItem *>(index.internalPointer())->text();
+
+ case Qt::UserRole+1:
+ //return static_cast<XmlItem
*>(index.internalPointer())->attributes().names();
+
+ case Qt::UserRole+2:
+ //return static_cast<XmlItem
*>(index.internalPointer())->attributes().values();
+
+ default:
+ return QVariant();
+ }
+}
+
+QModelIndex XmlModel::index(int row, int column, const QModelIndex& parent) const
+{
+ if(!hasIndex(row, column, parent))
+ return QModelIndex();
+
+ XmlItem *childItem = toXmlItem(parent)->child(row);
+
+ // Create the model index from the child item.
+ if(childItem)
+ return createIndex(row, column, childItem);
+ else
+ return QModelIndex();
+}
+
+QModelIndex XmlModel::parent(const QModelIndex& child) const
+{
+ if(!child.isValid())
+ return QModelIndex();
+
+ XmlItem *parentItem = static_cast<XmlItem
*>(child.internalPointer())->parent();
+
+ if(!parentItem || parentItem == rootItem_)
+ return QModelIndex();
+
+ return createIndex(parentItem->row(), 0, parentItem);
+}
+
+void XmlModel::clear()
+{
+ /*if(rootItem_)
+ {
+ beginResetModel();
+ delete rootItem_;
+ rowCount_ = 0;
+ endResetModel();
+ }*/
+}
+
+void XmlModel::load(XmlItem *rootItem)
+{
+ if(rootItem)
+ {
+ //beginInsertRows(QModelIndex(), 0, rootItem_->childs().count());
+
+ XmlItem *child;
+ foreach(child, rootItem->childs())
+ list_ << child;
+
+ rowCount_ = rootItem->childs().count();
+
+ //endInsertRows();
+ }
+}
diff --git a/GScribo/xmlmodel.h b/GScribo/XmlWidget/xmlmodel.h
similarity index 61%
rename from GScribo/xmlmodel.h
rename to GScribo/XmlWidget/xmlmodel.h
index 10953ae..46e7cd4 100644
--- a/GScribo/xmlmodel.h
+++ b/GScribo/XmlWidget/xmlmodel.h
@@ -9,11 +9,15 @@ class XmlModel :
public QAbstractItemModel
{
public:
- explicit XmlModel(XmlItem *rootItem, QObject *parent = 0);
+ explicit XmlModel(XmlItem *rootItem = 0, QObject *parent = 0);
explicit XmlModel(XmlItem *rootItem, QAbstractItemModelPrivate& dd, QObject
*parent = 0);
~XmlModel();
+ void load(XmlItem *rootItem);
+ void clear();
+
inline int rowCount(const QModelIndex& parent) const;
+ inline int columnCount(const QModelIndex& parent) const;
QVariant headerData(int section, Qt::Orientation orientation, int role) const;
QVariant data(const QModelIndex& index, int role) const;
@@ -25,12 +29,18 @@ class XmlModel :
inline XmlItem *toXmlItem(const QModelIndex& index) const;
XmlItem *rootItem_;
+ QList<XmlItem *> list_;
+ int rowCount_;
+
};
inline XmlItem *XmlModel::toXmlItem(const QModelIndex& parent) const
-{ return parent.isValid() ? rootItem_ : static_cast<XmlItem
*>(parent.internalPointer()); }
+{ return !parent.isValid() ? rootItem_ : static_cast<XmlItem
*>(parent.internalPointer()); }
+
+inline int XmlModel::rowCount(const QModelIndex&/* parent*/) const
+{ return rowCount_; }
-inline int XmlModel::rowCount(const QModelIndex& parent) const
-{ toXmlItem(parent)->childs().count(); }
+inline int XmlModel::columnCount(const QModelIndex&/* parent*/) const
+{ return 1; }
#endif // XMLMODEL_H
diff --git a/GScribo/XmlWidget/xmlmodel.o b/GScribo/XmlWidget/xmlmodel.o
new file mode 100644
index 0000000..922dc17
Binary files /dev/null and b/GScribo/XmlWidget/xmlmodel.o differ
diff --git a/GScribo/XmlWidget/xmlview.cpp b/GScribo/XmlWidget/xmlview.cpp
new file mode 100644
index 0000000..5f71bdf
--- /dev/null
+++ b/GScribo/XmlWidget/xmlview.cpp
@@ -0,0 +1,12 @@
+#include "xmlview.h"
+
+XmlView::XmlView(XmlItem *rootItem)
+{
+ load(rootItem);
+}
+
+void XmlView::load(XmlItem *rootItem)
+{
+ model_->clear();
+ model_->load(rootItem);
+}
diff --git a/GScribo/XmlWidget/xmlview.h b/GScribo/XmlWidget/xmlview.h
new file mode 100644
index 0000000..e3f0881
--- /dev/null
+++ b/GScribo/XmlWidget/xmlview.h
@@ -0,0 +1,27 @@
+#ifndef XMLVIEW_H
+#define XMLVIEW_H
+
+#include <QTreeView>
+
+#include "xmlitem.h"
+#include "xmlmodel.h"
+
+class XmlView :
+ public QTreeView
+{
+ public:
+ explicit XmlView(XmlItem *rootItem = 0);
+
+ void load(XmlItem *rootItem);
+
+ inline XmlItem *rootItem() const;
+ inline XmlModel *model() const;
+
+ private:
+ XmlModel *model_;
+};
+
+inline XmlModel *XmlView::model() const
+{ return model_; }
+
+#endif // XMLVIEW_H
diff --git a/GScribo/XmlWidget/xmlwidget.cpp b/GScribo/XmlWidget/xmlwidget.cpp
new file mode 100644
index 0000000..aab3ad5
--- /dev/null
+++ b/GScribo/XmlWidget/xmlwidget.cpp
@@ -0,0 +1,21 @@
+#include "xmlwidget.h"
+
+XmlWidget::XmlWidget(QWidget *parent) :
+ QWidget(parent)
+{
+ QHBoxLayout *hLayout = new QHBoxLayout;
+
+ viewer_.setModel(new XmlModel());
+ viewer_.setItemDelegate(new TreeDelegate());
+
+ hLayout->addWidget(&viewer_);
+ hLayout->addWidget(&selection_);
+ hLayout->addWidget(&property_);
+
+ setLayout(hLayout);
+}
+
+void XmlWidget::changeView(XmlItem *rootItem)
+{
+ viewer_.load(rootItem);
+}
diff --git a/GScribo/XmlWidget/xmlwidget.h b/GScribo/XmlWidget/xmlwidget.h
new file mode 100644
index 0000000..6b9c98c
--- /dev/null
+++ b/GScribo/XmlWidget/xmlwidget.h
@@ -0,0 +1,33 @@
+#ifndef XMLWIDGET_H
+#define XMLWIDGET_H
+
+#include <QGraphicsView>
+#include <QTreeWidget>
+#include <QVBoxLayout>
+#include <QDomElement>
+#include <QWidget>
+#include <QLabel>
+
+#include "Rendering/polygonitem.h"
+#include "treedelegate.h"
+#include "xmlmodel.h"
+#include "xmlview.h"
+
+class XmlWidget :
+ public QWidget
+{
+ Q_OBJECT
+
+ public:
+ explicit XmlWidget(QWidget *parent = 0);
+
+ void changeView(XmlItem *rootItem);
+
+ private:
+
+ XmlView viewer_;
+ QTreeWidget selection_;
+ QTreeWidget property_;
+};
+
+#endif // XMLWIDGET_H
diff --git a/GScribo/XmlWidget/xmlwidget.o b/GScribo/XmlWidget/xmlwidget.o
new file mode 100644
index 0000000..87ac89f
Binary files /dev/null and b/GScribo/XmlWidget/xmlwidget.o differ
diff --git a/GScribo/dir.h b/GScribo/dir.h
index 3de42da..a6c036b 100644
--- a/GScribo/dir.h
+++ b/GScribo/dir.h
@@ -1,7 +1,7 @@
#ifndef DIR_H
#define DIR_H
-#define SCRIBO_LOCAL_DEMODIR "/home/onix/olena/_build/scribo/demo"
+#define SCRIBO_LOCAL_DEMODIR
"/lrde/home/stage/froger_a/olena/_build/scribo/demo"
#define SCRIBO_PREFIX_BINDIR "/usr/local/bin"
#endif // DIR_H
diff --git a/GScribo/main.cpp b/GScribo/main.cpp
index d47ec16..22113d6 100644
--- a/GScribo/main.cpp
+++ b/GScribo/main.cpp
@@ -1,18 +1,18 @@
#undef MLN_WO_GLOBAL_VARS
-#include <scribo/make/debug_filename.hh>
-#include <mln/labeling/colorize.hh>
-#include <mln/io/magick/load.hh>
-#include <mln/literal/colors.hh>
-#include <mln/debug/filename.hh>
+//#include <scribo/make/debug_filename.hh>
+//#include <mln/labeling/colorize.hh>
+//#include <mln/io/magick/load.hh>
+//#include <mln/literal/colors.hh>
+//#include <mln/debug/filename.hh>
#include <QtGui/QApplication>
-#include <mln/math/pi.hh>
+//#include <mln/math/pi.hh>
#include "mainwindow.h"
int main(int argc, char *argv[])
{
- Magick::InitializeMagick(*argv);
+ //Magick::InitializeMagick(*argv);
// On Linux, we NEED to use the raster graphics system.
// Linux don't really support openGL graphics system (the default one on Linux).
QApplication::setGraphicsSystem("raster");
diff --git a/GScribo/mainwindow.cpp b/GScribo/mainwindow.cpp
index 32b5975b..0382140 100644
--- a/GScribo/mainwindow.cpp
+++ b/GScribo/mainwindow.cpp
@@ -137,8 +137,8 @@ void MainWindow::onSegment()
filenames = pagesWidget.filenames();
// Run segmentation of page(s).
- progressDialog.reset();
- runner.start_demat(filenames);
+ //progressDialog.reset();
+ //runner.start_demat(filenames);
}
}
@@ -151,8 +151,8 @@ void MainWindow::onXmlSaved(const QString& filename)
void MainWindow::onPreferences()
{
- PreferencesDialog *preferenceDialog = new PreferencesDialog(this);
- preferenceDialog->show();
+ //PreferencesDialog *preferenceDialog = new PreferencesDialog(this);
+ //preferenceDialog->show();
}
void MainWindow::connectWidgets()
@@ -161,15 +161,15 @@ void MainWindow::connectWidgets()
connect(&pagesWidget, SIGNAL(sceneChanged(QString,QPixmap)), this,
SLOT(onFileChanged(QString,QPixmap)));
// Connect scene selection with xml tree and vice versa.
- connect(&scene, SIGNAL(selectTreeItems(QList<QTreeWidgetItem*>)),
&xmlWidget, SLOT(selectItems(QList<QTreeWidgetItem*>)));
+ /*connect(&scene, SIGNAL(selectTreeItems(QList<QTreeWidgetItem*>)),
&xmlWidget, SLOT(selectItems(QList<QTreeWidgetItem*>)));
connect(&xmlWidget, SIGNAL(selectGraphicalItem(PolygonItem*)), &scene,
SLOT(selectItem(PolygonItem*)));
- connect(&pagesWidget, SIGNAL(removeTreeSelection()), &xmlWidget,
SLOT(clear()));
+ connect(&pagesWidget, SIGNAL(removeTreeSelection()), &xmlWidget,
SLOT(clear()));*/
- connect(&runner, SIGNAL(progress()), &progressDialog, SLOT(run()));
+ /*connect(&runner, SIGNAL(progress()), &progressDialog, SLOT(run()));
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)));
+ connect(&runner, SIGNAL(xml_saved(QString)), this, SLOT(onXmlSaved(QString)));*/
}
void MainWindow::connectShortcuts()
diff --git a/GScribo/mainwindow.h b/GScribo/mainwindow.h
index 456ec65..92642d1 100644
--- a/GScribo/mainwindow.h
+++ b/GScribo/mainwindow.h
@@ -9,12 +9,12 @@
#include <QFileDialog>
#include <QGroupBox>
-#include "Preferences/preferencesdialog.h"
-#include "Processing/progressdialog.h"
-#include "PagesViewer/pageswidget.h"
-#include "Processing/runner.h"
+//#include "Preferences/preferencesdialog.h"
+//#include "Processing/progressdialog.h"
+#include "PagesWidget/pageswidget.h"
+#include "XmlWidget/xmlwidget.h"
+//#include "Processing/runner.h"
#include "Rendering/scene.h"
-#include "xmlwidget.h"
#include "xml.h"
namespace Ui
@@ -54,8 +54,8 @@ class MainWindow:
Scene scene;
QPlainTextEdit textEdit;
PagesWidget pagesWidget;
- Runner runner;
- ProgressDialog progressDialog;
+ //Runner runner;
+ //ProgressDialog progressDialog;
Xml xml;
XmlWidget xmlWidget;
diff --git a/GScribo/xml.cpp b/GScribo/xml.cpp
index 994d788..eb7348d 100644
--- a/GScribo/xml.cpp
+++ b/GScribo/xml.cpp
@@ -46,7 +46,7 @@ void Xml::load(const QString &filename)
if(!filename.isEmpty())
{
// Reset graphic and tree items;
- tItem = new QTreeWidgetItem;
+ tItem = new XmlItem;
gItem = new QGraphicsPolygonItem;
QFile xmlFile(filename);
@@ -59,12 +59,10 @@ void Xml::load(const QString &filename)
xmlFile.close();
QDomElement root = xml.documentElement();
- tItem->setText(0, root.tagName());
- tItem->setData(1, Qt::UserRole,
VariantPointer<QDomNamedNodeMap>::toQVariant(new
QDomNamedNodeMap(root.attributes())));
+ tItem->load(root);
root = root.firstChild().toElement();
- QTreeWidgetItem *parentTreeItem = init(root, tItem);
- parentTreeItem->setData(1, Qt::UserRole,
VariantPointer<QDomNamedNodeMap>::toQVariant(0));
+ XmlItem *parentTreeItem = init(root, tItem);
// Run through the xml file structure by structure.
root = root.nextSibling().firstChild().toElement();
@@ -74,57 +72,50 @@ void Xml::load(const QString &filename)
}
}
-QTreeWidgetItem *Xml::init(const QDomElement& root, QTreeWidgetItem *rootTreeItem)
+XmlItem *Xml::init(const QDomElement& root, XmlItem *rootTreeItem)
{
- QDomElement node = root;
+ XmlItem *metadataItem = new XmlItem(root, rootTreeItem);
- QTreeWidgetItem *parentTreeItem = new QTreeWidgetItem(rootTreeItem);
- parentTreeItem->setText(0, root.tagName());
- parentTreeItem->setData(0, Qt::UserRole,
VariantPointer<QDomNamedNodeMap>::toQVariant(0));
-
- QString nodeText;
- QTreeWidgetItem *treeItem, *childTreeItem;
+ XmlItem *contentItem = 0;
// Run through "METADATA" node and subnodes.
- node = node.firstChild().toElement();
+ QDomElement node = root.firstChild().toElement();
while(!node.isNull())
{
- treeItem = new QTreeWidgetItem(parentTreeItem, treeItem);
- treeItem->setText(0, node.tagName());
- // Store the xml node in the item.
- treeItem->setData(0, Qt::UserRole,
VariantPointer<QDomNamedNodeMap>::toQVariant(0));
-
- // Add widget item child with text content.
- nodeText = node.text();
- childTreeItem = new QTreeWidgetItem(treeItem);
- childTreeItem->setText(0, nodeText);
-
+ contentItem = new XmlItem(node, metadataItem, contentItem);
node = node.nextSibling().toElement();
}
// Add "PAGE" root node and return it.
- parentTreeItem = new QTreeWidgetItem(rootTreeItem, parentTreeItem);
- parentTreeItem->setText(0, root.nextSibling().toElement().tagName());
- parentTreeItem->setData(0, Qt::UserRole,
VariantPointer<QDomNamedNodeMap>::toQVariant(new
QDomNamedNodeMap(root.nextSibling().attributes())));
+ metadataItem = new XmlItem(root.nextSibling().toElement(), rootTreeItem,
metadataItem);
- return parentTreeItem;
+ return metadataItem;
}
-void Xml::processNode(const QDomElement& root, const GraphicRegion::Data& data,
QTreeWidgetItem *rootTreeItem)
+void Xml::processNode(const QDomElement& root, const GraphicRegion::Data& data,
XmlItem *pageItem)
{
if(!root.isNull())
{
// Create corresponding tree item.
- QTreeWidgetItem *parentTreeItem = new QTreeWidgetItem(rootTreeItem,
QStringList(root.tagName()));
- parentTreeItem->setData(0, Qt::UserRole,
VariantPointer<QDomNamedNodeMap>::toQVariant(new
QDomNamedNodeMap(root.attributes())));
+ XmlItem *regionItem = new XmlItem(root, pageItem);
+
+ QDomElement node = root.firstChild().toElement();
+ XmlItem *coordsItem = new XmlItem(node, regionItem);
QPolygon polygon;
+ XmlItem *pointItem = 0;
+ QString x, y;
// Run through all points data.
- QDomElement node = root.firstChild().firstChild().toElement();
+ node = node.firstChild().toElement();
while(!node.isNull())
{
- polygon << QPoint(node.attribute("x",
"null").toInt(), node.attribute("y", "null").toInt());
+ x = node.attribute("x", "null");
+ y = node.attribute("y", "null");
+
+ pointItem = new XmlItem(node, coordsItem, pointItem);
+
+ polygon << QPoint(x.toInt(), y.toInt());
node = node.nextSibling().toElement();
}
@@ -132,38 +123,44 @@ void Xml::processNode(const QDomElement& root, const
GraphicRegion::Data& data,
PolygonItem *polygonItem = new PolygonItem(polygon, gItem);
polygonItem->loadData(data);
- // Store tree object in the graphical object an vice versa.
- polygonItem->setData(1,
VariantPointer<QTreeWidgetItem>::toQVariant(parentTreeItem));
- parentTreeItem->setData(0, Qt::UserRole+1,
VariantPointer<PolygonItem>::toQVariant(polygonItem));
-
if(data.region == GraphicRegion::Text)
- processLineNode(root.firstChild().nextSiblingElement("Line"),
polygonItem, parentTreeItem);
+ processLineNode(root.firstChild().nextSiblingElement("Line"),
polygonItem, coordsItem);
// Run through all nodes from the same data structure recursively.
- processNode(root.nextSiblingElement(data.name), data, rootTreeItem);
+ processNode(root.nextSiblingElement(data.name), data, pageItem);
}
}
-void Xml::processLineNode(const QDomElement& root, PolygonItem *parentPolygonItem,
QTreeWidgetItem *rootTreeItem)
+void Xml::processLineNode(const QDomElement& root, PolygonItem *parentPolygonItem,
XmlItem *precItem)
{
if(!root.isNull())
{
// Create corresponding tree item.
- QTreeWidgetItem *parentTreeItem = new QTreeWidgetItem(rootTreeItem,
QStringList(root.tagName()));
- parentTreeItem->setData(0, Qt::UserRole,
VariantPointer<QDomNamedNodeMap>::toQVariant(new
QDomNamedNodeMap(root.attributes())));
+ XmlItem *lineItem = new XmlItem(root, precItem->parent(), precItem);
+
+ QDomElement node = root.firstChild().toElement();
+ XmlItem *coordsItem = new XmlItem(node, lineItem);
QPolygon polygon;
+ XmlItem *pointItem = 0;
+
+ QString xs, ys;
int x, y;
int xMin = INT_MAX;
int xMax = INT_MIN;
// Run through all points data.
- QDomElement node = root.firstChild().firstChild().toElement();
+ node = node.firstChild().toElement();
while(!node.isNull())
{
- x = node.attribute("x", "null").toInt();
- y = node.attribute("y", "null").toInt();
+ xs = node.attribute("x", "null");
+ ys = node.attribute("y", "null");
+
+ pointItem = new XmlItem(node, coordsItem, pointItem);
+
+ x = xs.toInt();
+ y = ys.toInt();
// Get beginning and end of line.
if(xMin > x)
@@ -179,14 +176,10 @@ void Xml::processLineNode(const QDomElement& root, PolygonItem
*parentPolygonIte
PolygonItem *polygonItem = new PolygonItem(polygon, parentPolygonItem);
polygonItem->loadData(itemsData[0]);
- // Store tree object in the graphical object and vice versa.
- polygonItem->setData(1,
VariantPointer<QTreeWidgetItem>::toQVariant(parentTreeItem));
- parentTreeItem->setData(0, Qt::UserRole+1,
VariantPointer<PolygonItem>::toQVariant(polygonItem));
-
// Get meanline and baseline.
processTypoNode(root, QPoint(xMin, xMax), polygonItem);
// Run through all line nodes recursively.
- processLineNode(root.nextSiblingElement("Line"), parentPolygonItem,
rootTreeItem);
+ processLineNode(root.nextSiblingElement("Line"), parentPolygonItem,
lineItem);
}
}
diff --git a/GScribo/xml.h b/GScribo/xml.h
index 67f460c..6637260 100644
--- a/GScribo/xml.h
+++ b/GScribo/xml.h
@@ -9,6 +9,7 @@
#include <QFile>
#include "Rendering/polygonitem.h"
+#include "XmlWidget/xmlitem.h"
#include "variantpointer.h"
#include "configs.h"
#include "region.h"
@@ -18,7 +19,7 @@ class Xml
public:
explicit Xml(const QString& filename = QString());
- inline QTreeWidgetItem *treeItem();
+ inline XmlItem *treeItem();
inline QGraphicsItem *graphicItem();
inline QDomDocument document() const;
inline QString filename() const;
@@ -27,19 +28,18 @@ class Xml
void load(const QString& filename);
private:
- 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);
+ XmlItem *init(const QDomElement& root, XmlItem *rootTreeItem);
+ void processNode(const QDomElement& root, const GraphicRegion::Data&
data, XmlItem *rootTreeItem);
+ void processLineNode(const QDomElement& root, PolygonItem *parentPolygonItem,
XmlItem *rootTreeItem);
void processTypoNode(const QDomElement& root, const QPoint& xPoint,
PolygonItem *rootPolygonItem);
QGraphicsPolygonItem *gItem;
- QTreeWidgetItem *tItem;
+ XmlItem *tItem;
QDomDocument xml;
QString path;
};
-inline QTreeWidgetItem *Xml::treeItem()
+inline XmlItem *Xml::treeItem()
{ return tItem; }
inline QGraphicsItem *Xml::graphicItem()
@@ -51,11 +51,4 @@ inline QDomDocument Xml::document() const
inline QString Xml::filename() const
{ return path; }
-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/xmlmodel.cpp b/GScribo/xmlmodel.cpp
deleted file mode 100644
index b923417..0000000
--- a/GScribo/xmlmodel.cpp
+++ /dev/null
@@ -1,71 +0,0 @@
-#include "xmlmodel.h"
-
-XmlModel::XmlModel(XmlItem *rootItem, QObject *parent) :
- QAbstractItemModel(parent)
-{
- rootItem_ = rootItem;
-}
-
-XmlModel::XmlModel(XmlItem *rootItem, QAbstractItemModelPrivate& dd, QObject *parent)
:
- QAbstractItemModel(dd, parent)
-{
- rootItem_ = rootItem;
-}
-
-XmlModel::~XmlModel()
-{
- delete rootItem_;
-}
-
-QVariant XmlModel::headerData(int section, Qt::Orientation orientation, int role) const
-{
- return tr("Tree");
-}
-
-QVariant XmlModel::data(const QModelIndex& index, int role) const
-{
- if(!index.isValid())
- return QVariant();
-
- switch(role)
- {
- case Qt::UserRole:
- return static_cast<XmlItem *>(index.internalPointer())->text();
-
- case Qt::UserRole+1:
- return static_cast<XmlItem
*>(index.internalPointer())->attributes()->names();
-
- case Qt::UserRole+2:
- return static_cast<XmlItem
*>(index.internalPointer())->attributes()->values();
-
- default:
- return QVariant();
- }
-}
-
-QModelIndex XmlModel::index(int row, int column, const QModelIndex& parent) const
-{
- if(!hasIndex(row, column, parent))
- return QModelIndex();
-
- XmlItem *childItem = toXmlItem(parent)->child(row);
-
- // Create the model index from the child item.
- if(childItem)
- return createIndex(row, column, childItem);
- else
- return QModelIndex();
-}
-
-QModelIndex XmlModel::parent(const QModelIndex& child) const
-{
- if(!child.isValid())
- return QModelIndex();
-
- XmlItem *parentItem = static_cast<XmlItem
*>(child.internalPointer())->parent();
-
- if(!parentItem || parentItem == rootItem)
- return QModelIndex();
-
- return createIndex(parentItem->rowCount(), 0, parentItem);
-}
diff --git a/GScribo/xmlwidget.cpp b/GScribo/xmlwidget.cpp
deleted file mode 100644
index a128b95..0000000
--- a/GScribo/xmlwidget.cpp
+++ /dev/null
@@ -1,163 +0,0 @@
-#include "xmlwidget.h"
-
-XmlWidget::XmlWidget(QWidget *parent) :
- QWidget(parent)
-{
- QHBoxLayout *hLayout = new QHBoxLayout;
-
- QStringList headerNames;
- headerNames << tr("Name") << tr("Value");
-
- property.setHeaderItem(new QTreeWidgetItem(headerNames));
- viewer.setHeaderItem(new QTreeWidgetItem(QStringList("Tree")));
- selection.setHeaderItem(new QTreeWidgetItem(QStringList("Selection")));
-
- hLayout->addWidget(&viewer);
- hLayout->addWidget(&selection);
- hLayout->addWidget(&property);
-
- setLayout(hLayout);
-
- connect(&viewer, SIGNAL(itemClicked(QTreeWidgetItem*,int)), this,
SLOT(selectTreeItem(QTreeWidgetItem*)));
- connect(&selection, SIGNAL(itemClicked(QTreeWidgetItem*,int)), this,
SLOT(selectSelectedItem(QTreeWidgetItem*)));
-}
-
-XmlWidget::~XmlWidget()
-{
- clear();
-}
-
-void XmlWidget::selectItem(QTreeWidgetItem *treeItem, bool fromSelection)
-{
- // Get graphical item corresponding to the tree item.
- PolygonItem *graphicalItem =
VariantPointer<PolygonItem>::fromQVariant(treeItem->data(0, Qt::UserRole+1));
-
- if(!fromSelection)
- {
- clearSelection();
-
- QTreeWidgetItem *selectionedItem = new QTreeWidgetItem(*treeItem);
- selectionedItems << selectionedItem;
- selection.addTopLevelItem(selectionedItem);
- }
-
- // Told to the scene to select the corresponding graphical item.
- emit selectGraphicalItem(graphicalItem);
-
- viewer.setCurrentItem(treeItem, 0);
-
- // Fill property tree view.
- fillProperty(treeItem);
-}
-
-void XmlWidget::selectItems(const QList<QTreeWidgetItem *>& selectionTree)
-{
- clearSelection();
-
- if(!selectionTree.isEmpty())
- {
- selectionedItems = selectionTree;
-
- QTreeWidgetItem *treeItem;
- foreach(treeItem, selectionTree)
- {
- selection.addTopLevelItem(treeItem);
- /*selection.setCurrentItem(treeItem, 0);
- treeItem->setExpanded(true);*/
- }
-
- fillProperty(treeItem);
- }
-}
-
-void XmlWidget::fillProperty(QTreeWidgetItem *treeItem)
-{
- property.clear();
-
- // Get node from the tree item.
- QDomNamedNodeMap *node =
VariantPointer<QDomNamedNodeMap>::fromQVariant(treeItem->data(0, Qt::UserRole));
-
- if(node)
- {
- QStringList values;
-
- // Fill tree widget with all property of a node.
- for(int i = 0; i < node->count(); i++)
- {
- values << node->item(i).toAttr().name() <<
node->item(i).toAttr().value();
- property.addTopLevelItem(new QTreeWidgetItem(values));
- values.clear();
- }
- }
-
- property.resizeColumnToContents(0);
-}
-
-void XmlWidget::changeView(QTreeWidgetItem *treeItem)
-{
- if(treeItem != viewer.topLevelItem(0))
- {
- // Delete all dom nodes pointers inside items data.
- clear();
-
- // Reset tree widgets.
- viewer.reset();
-
- if(treeItem != 0)
- {
- viewer.addTopLevelItem(treeItem);
- viewer.setCurrentItem(treeItem->child(1), 0);
- treeItem->child(1)->setExpanded(true);
- }
- }
-}
-
-void XmlWidget::clear()
-{
- QTreeWidgetItem *topLevelItem = viewer.takeTopLevelItem(0);
-
- // Delete top level item, all its childs and datas.
- if(topLevelItem)
- {
- deleteItemsNode(topLevelItem);
- delete
VariantPointer<QDomNamedNodeMap>::fromQVariant(topLevelItem->data(0,
Qt::UserRole));
- delete topLevelItem;
-
- clearSelection();
- }
-}
-
-void XmlWidget::clearSelection()
-{
- property.clear();
-
- // Delete all selectionned items.
- QTreeWidgetItem *item, *child;
- foreach(item, selectionedItems)
- {
- // Delete selectionned lines.
- for(int i = 0; i < item->childCount(); i++)
- {
- child = item->child(i);
- delete child;
- }
-
- delete item;
- }
-
- selectionedItems = QList<QTreeWidgetItem *>();
-}
-
-void XmlWidget::deleteItemsNode(QTreeWidgetItem *topLevelItem)
-{
- QTreeWidgetItem *item;
-
- // Delete recursively all childs of an item and the child of the child item etc ...
- for(int i = 0; i < topLevelItem->childCount(); i++)
- {
- item = topLevelItem->child(i);
- deleteItemsNode(item);
- delete VariantPointer<QDomNamedNodeMap>::fromQVariant(item->data(0,
Qt::UserRole));
- delete item;
- }
-}
diff --git a/GScribo/xmlwidget.h b/GScribo/xmlwidget.h
deleted file mode 100644
index e1f23cc..0000000
--- a/GScribo/xmlwidget.h
+++ /dev/null
@@ -1,55 +0,0 @@
-#ifndef XMLWIDGET_H
-#define XMLWIDGET_H
-
-#include <QGraphicsView>
-#include <QTreeWidget>
-#include <QVBoxLayout>
-#include <QDomElement>
-#include <QWidget>
-#include <QLabel>
-
-#include "Rendering/polygonitem.h"
-#include "variantpointer.h"
-
-class XmlWidget :
- public QWidget
-{
- Q_OBJECT
-
- public:
- explicit XmlWidget(QWidget *parent = 0);
- ~XmlWidget();
-
- void changeView(QTreeWidgetItem *treeItem);
- void selectItem(QTreeWidgetItem *treeItem, bool fromSelection = false);
-
- private:
- void fillProperty(QTreeWidgetItem *treeItem);
- void deleteItemsNode(QTreeWidgetItem *topLevelItem);
-
- QTreeWidget viewer;
- QTreeWidget selection;
- QTreeWidget property;
- QList<QTreeWidgetItem *> selectionedItems;
-
- public slots:
- void selectItems(const QList<QTreeWidgetItem *>& selectionTree);
-
- void clear();
- void clearSelection();
-
- private slots:
- inline void selectTreeItem(QTreeWidgetItem *treeItem);
- inline void selectSelectedItem(QTreeWidgetItem *selectedItem);
-
- signals:
- void selectGraphicalItem(PolygonItem *polygonItem);
-};
-
-inline void XmlWidget::selectTreeItem(QTreeWidgetItem *treeItem)
-{ selectItem(treeItem, false); }
-
-inline void XmlWidget::selectSelectedItem(QTreeWidgetItem *selectedItem)
-{ selectItem(selectedItem, true); }
-
-#endif // XMLWIDGET_H
diff --git a/XmlTree/XmlTree.pro.user b/XmlTree/XmlTree.pro.user
index 41ca59a..b935109 100644
--- a/XmlTree/XmlTree.pro.user
+++ b/XmlTree/XmlTree.pro.user
@@ -1,892 +1,243 @@
-<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE QtCreatorProject>
-<!-- Written by Qt Creator 2.4.1, 2013-02-03T22:37:02. -->
<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="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>
+ <valuelist key="abstractProcess.Environment"
type="QVariantList">
+ <value
type="QString">DBUS_SESSION_BUS_ADDRESS=unix:abstract=/tmp/dbus-Ym4qd3xwr0,guid=fde40b3a0f4d1c9822b6f826000921d9</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">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/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=758</value>
+ <value
type="QString">SSH_AUTH_SOCK=/tmp/ssh-vklgVis705/agent.705</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=12582948</value>
+ <value type="QString">WINDOWPATH=7:8:8:8:8:8:8</value>
+ <value type="QString">XAUTHORITY=/tmp/.gdmKSVXRW</value>
+ <value
type="QString">XDG_DATA_DIRS=/usr/local/share/:/usr/share/:/usr/share/gdm/</value>
+ <value
type="QString">XDG_SESSION_COOKIE=9a5c41ad78622411b8e25b00459a554f-1359984156.79822-629324293</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-Ym4qd3xwr0,guid=fde40b3a0f4d1c9822b6f826000921d9</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">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/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=758</value>
+ <value
type="QString">SSH_AUTH_SOCK=/tmp/ssh-vklgVis705/agent.705</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=12582948</value>
+ <value type="QString">WINDOWPATH=7:8:8:8:8:8:8</value>
+ <value type="QString">XAUTHORITY=/tmp/.gdmKSVXRW</value>
+ <value
type="QString">XDG_DATA_DIRS=/usr/local/share/:/usr/share/:/usr/share/gdm/</value>
+ <value
type="QString">XDG_SESSION_COOKIE=9a5c41ad78622411b8e25b00459a554f-1359984156.79822-629324293</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>
+ <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">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">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">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/XmlTree</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"></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</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">XmlTree 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">XmlTree.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">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/XmlTree</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"></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</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">XmlTree 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">XmlTree.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">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/XmlTree-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"></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-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">XmlTree (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">XmlTree.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/XmlTree/xmldelegate.cpp b/XmlTree/xmldelegate.cpp
index b4d2941..1999dfe 100644
--- a/XmlTree/xmldelegate.cpp
+++ b/XmlTree/xmldelegate.cpp
@@ -7,6 +7,5 @@ XmlDelegate::XmlDelegate(QObject *parent) :
void XmlDelegate::paint(QPainter *painter, const QStyleOptionViewItem& option, const
QModelIndex& index) const
{
- QStyledItemDelegate::paint(painter, option, index);
- painter->drawText(option.rect, index.data(Qt::UserRole).toString());
+
}
--
1.7.2.5