before ADeditor correct
This commit is contained in:
@@ -8,8 +8,12 @@ TEMPLATE = app
|
|||||||
SOURCES += main.cpp \
|
SOURCES += main.cpp \
|
||||||
mainwindow.cpp \
|
mainwindow.cpp \
|
||||||
../loader.cpp \
|
../loader.cpp \
|
||||||
alienmodel.cpp
|
alienmodel.cpp \
|
||||||
|
towermodel.cpp \
|
||||||
|
splashmodel.cpp
|
||||||
HEADERS += mainwindow.h \
|
HEADERS += mainwindow.h \
|
||||||
../loader.h \
|
../loader.h \
|
||||||
alienmodel.h
|
alienmodel.h \
|
||||||
|
towermodel.h \
|
||||||
|
splashmodel.h
|
||||||
FORMS += mainwindow.ui
|
FORMS += mainwindow.ui
|
||||||
|
|||||||
@@ -1,283 +1,111 @@
|
|||||||
<!DOCTYPE QtCreatorProject>
|
<!DOCTYPE QtCreatorProject>
|
||||||
<qtcreator>
|
<qtcreator>
|
||||||
<data>
|
<data>
|
||||||
<variable>RunConfiguration0-BaseEnvironmentBase</variable>
|
<variable>ProjectExplorer.Project.ActiveTarget</variable>
|
||||||
<value type="int">2</value>
|
|
||||||
</data>
|
|
||||||
<data>
|
|
||||||
<variable>RunConfiguration0-CommandLineArguments</variable>
|
|
||||||
<valuelist type="QVariantList"/>
|
|
||||||
</data>
|
|
||||||
<data>
|
|
||||||
<variable>RunConfiguration0-ProFile</variable>
|
|
||||||
<value type="QString">ADeditor.pro</value>
|
|
||||||
</data>
|
|
||||||
<data>
|
|
||||||
<variable>RunConfiguration0-RunConfiguration.name</variable>
|
|
||||||
<value type="QString">ADeditor</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>
|
<value type="int">0</value>
|
||||||
</data>
|
</data>
|
||||||
<data>
|
<data>
|
||||||
<variable>activebuildconfiguration</variable>
|
<variable>ProjectExplorer.Project.EditorSettings</variable>
|
||||||
<value type="QString">Debug</value>
|
|
||||||
</data>
|
|
||||||
<data>
|
|
||||||
<variable>buildConfiguration-Debug</variable>
|
|
||||||
<valuemap type="QVariantMap">
|
<valuemap type="QVariantMap">
|
||||||
<value key="ProjectExplorer.BuildConfiguration.DisplayName" type="QString">Debug</value>
|
<value key="EditorConfiguration.Codec" type="QByteArray">UTF-8</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>
|
</valuemap>
|
||||||
</data>
|
</data>
|
||||||
<data>
|
<data>
|
||||||
<variable>buildConfiguration-Release</variable>
|
<variable>ProjectExplorer.Project.Target.0</variable>
|
||||||
<valuemap type="QVariantMap">
|
<valuemap type="QVariantMap">
|
||||||
<value key="ProjectExplorer.BuildConfiguration.DisplayName" type="QString">Release</value>
|
<value key="ProjectExplorer.ProjectConfiguration.DisplayName" type="QString">Настольный компьютер</value>
|
||||||
<value key="QtVersionId" type="int">0</value>
|
<value key="ProjectExplorer.ProjectConfiguration.Id" type="QString">Qt4ProjectManager.Target.DesktopTarget</value>
|
||||||
<value key="addQDumper" type=""></value>
|
<value key="ProjectExplorer.Target.ActiveBuildConfiguration" type="int">0</value>
|
||||||
<value key="buildConfiguration" type="int">0</value>
|
<value key="ProjectExplorer.Target.ActiveRunConfiguration" type="int">0</value>
|
||||||
|
<valuemap key="ProjectExplorer.Target.BuildConfiguration.0" type="QVariantMap">
|
||||||
|
<valuemap key="ProjectExplorer.BuildConfiguration.BuildStep.0" type="QVariantMap">
|
||||||
|
<value key="ProjectExplorer.ProjectConfiguration.DisplayName" type="QString"></value>
|
||||||
|
<value key="ProjectExplorer.ProjectConfiguration.Id" type="QString">QtProjectManager.QMakeBuildStep</value>
|
||||||
|
<valuelist key="QtProjectManager.QMakeBuildStep.QMakeArguments" type="QVariantList"/>
|
||||||
|
</valuemap>
|
||||||
|
<valuemap key="ProjectExplorer.BuildConfiguration.BuildStep.1" type="QVariantMap">
|
||||||
|
<value key="ProjectExplorer.ProjectConfiguration.DisplayName" type="QString"></value>
|
||||||
|
<value key="ProjectExplorer.ProjectConfiguration.Id" type="QString">Qt4ProjectManager.MakeStep</value>
|
||||||
|
<value key="Qt4ProjectManager.MakeStep.Clean" type="bool">false</value>
|
||||||
|
<valuelist key="Qt4ProjectManager.MakeStep.MakeArguments" type="QVariantList"/>
|
||||||
|
<value key="Qt4ProjectManager.MakeStep.MakeCommand" type="QString"></value>
|
||||||
|
</valuemap>
|
||||||
|
<value key="ProjectExplorer.BuildConfiguration.BuildStepsCount" type="int">2</value>
|
||||||
|
<valuemap key="ProjectExplorer.BuildConfiguration.CleanStep.0" type="QVariantMap">
|
||||||
|
<value key="ProjectExplorer.ProjectConfiguration.DisplayName" type="QString"></value>
|
||||||
|
<value key="ProjectExplorer.ProjectConfiguration.Id" type="QString">Qt4ProjectManager.MakeStep</value>
|
||||||
|
<value key="Qt4ProjectManager.MakeStep.Clean" type="bool">true</value>
|
||||||
|
<valuelist key="Qt4ProjectManager.MakeStep.MakeArguments" type="QVariantList">
|
||||||
|
<value type="QString">clean</value>
|
||||||
|
</valuelist>
|
||||||
|
<value key="Qt4ProjectManager.MakeStep.MakeCommand" type="QString"></value>
|
||||||
|
</valuemap>
|
||||||
|
<value key="ProjectExplorer.BuildConfiguration.CleanStepsCount" type="int">1</value>
|
||||||
|
<value key="ProjectExplorer.BuildConfiguration.ClearSystemEnvironment" type="bool">false</value>
|
||||||
|
<valuelist key="ProjectExplorer.BuildConfiguration.UserEnvironmentChanges" type="QVariantList"/>
|
||||||
|
<value key="ProjectExplorer.ProjectConfiguration.DisplayName" type="QString">Debug</value>
|
||||||
|
<value key="ProjectExplorer.ProjectConfiguration.Id" type="QString">Qt4ProjectManager.Qt4BuildConfiguration</value>
|
||||||
|
<value key="Qt4ProjectManager.Qt4BuildConfiguration.BuildConfiguration" type="int">2</value>
|
||||||
|
<value key="Qt4ProjectManager.Qt4BuildConfiguration.BuildDirectory" type="QString">C:/Users/Andrey/Desktop/aliendefender/build</value>
|
||||||
|
<value key="Qt4ProjectManager.Qt4BuildConfiguration.QtVersionId" type="int">5</value>
|
||||||
|
<value key="Qt4ProjectManager.Qt4BuildConfiguration.ToolChain" type="int">2</value>
|
||||||
|
<value key="Qt4ProjectManager.Qt4BuildConfiguration.UseShadowBuild" type="bool">true</value>
|
||||||
|
</valuemap>
|
||||||
|
<valuemap key="ProjectExplorer.Target.BuildConfiguration.1" type="QVariantMap">
|
||||||
|
<valuemap key="ProjectExplorer.BuildConfiguration.BuildStep.0" type="QVariantMap">
|
||||||
|
<value key="ProjectExplorer.ProjectConfiguration.DisplayName" type="QString"></value>
|
||||||
|
<value key="ProjectExplorer.ProjectConfiguration.Id" type="QString">QtProjectManager.QMakeBuildStep</value>
|
||||||
|
<valuelist key="QtProjectManager.QMakeBuildStep.QMakeArguments" type="QVariantList"/>
|
||||||
|
</valuemap>
|
||||||
|
<valuemap key="ProjectExplorer.BuildConfiguration.BuildStep.1" type="QVariantMap">
|
||||||
|
<value key="ProjectExplorer.ProjectConfiguration.DisplayName" type="QString"></value>
|
||||||
|
<value key="ProjectExplorer.ProjectConfiguration.Id" type="QString">Qt4ProjectManager.MakeStep</value>
|
||||||
|
<value key="Qt4ProjectManager.MakeStep.Clean" type="bool">false</value>
|
||||||
|
<valuelist key="Qt4ProjectManager.MakeStep.MakeArguments" type="QVariantList"/>
|
||||||
|
<value key="Qt4ProjectManager.MakeStep.MakeCommand" type="QString"></value>
|
||||||
|
</valuemap>
|
||||||
|
<value key="ProjectExplorer.BuildConfiguration.BuildStepsCount" type="int">2</value>
|
||||||
|
<valuemap key="ProjectExplorer.BuildConfiguration.CleanStep.0" type="QVariantMap">
|
||||||
|
<value key="ProjectExplorer.ProjectConfiguration.DisplayName" type="QString"></value>
|
||||||
|
<value key="ProjectExplorer.ProjectConfiguration.Id" type="QString">Qt4ProjectManager.MakeStep</value>
|
||||||
|
<value key="Qt4ProjectManager.MakeStep.Clean" type="bool">true</value>
|
||||||
|
<valuelist key="Qt4ProjectManager.MakeStep.MakeArguments" type="QVariantList"/>
|
||||||
|
<value key="Qt4ProjectManager.MakeStep.MakeCommand" type="QString"></value>
|
||||||
|
</valuemap>
|
||||||
|
<value key="ProjectExplorer.BuildConfiguration.CleanStepsCount" type="int">1</value>
|
||||||
|
<value key="ProjectExplorer.BuildConfiguration.ClearSystemEnvironment" type="bool">false</value>
|
||||||
|
<valuelist key="ProjectExplorer.BuildConfiguration.UserEnvironmentChanges" type="QVariantList"/>
|
||||||
|
<value key="ProjectExplorer.ProjectConfiguration.DisplayName" type="QString">Release</value>
|
||||||
|
<value key="ProjectExplorer.ProjectConfiguration.Id" type="QString">Qt4ProjectManager.Qt4BuildConfiguration</value>
|
||||||
|
<value key="Qt4ProjectManager.Qt4BuildConfiguration.BuildConfiguration" type="int">0</value>
|
||||||
|
<value key="Qt4ProjectManager.Qt4BuildConfiguration.BuildDirectory" type="QString">C:/Users/Andrey/Desktop/aliendefender/ADeditor-build-desktop</value>
|
||||||
|
<value key="Qt4ProjectManager.Qt4BuildConfiguration.QtVersionId" type="int">5</value>
|
||||||
|
<value key="Qt4ProjectManager.Qt4BuildConfiguration.ToolChain" type="int">2</value>
|
||||||
|
<value key="Qt4ProjectManager.Qt4BuildConfiguration.UseShadowBuild" type="bool">true</value>
|
||||||
|
</valuemap>
|
||||||
|
<value key="ProjectExplorer.Target.BuildConfigurationCount" type="int">2</value>
|
||||||
|
<valuemap key="ProjectExplorer.Target.RunConfiguration.0" type="QVariantMap">
|
||||||
|
<value key="ProjectExplorer.ProjectConfiguration.DisplayName" type="QString">ADeditor</value>
|
||||||
|
<value key="ProjectExplorer.ProjectConfiguration.Id" type="QString">Qt4ProjectManager.Qt4RunConfiguration</value>
|
||||||
|
<value key="Qt4ProjectManager.Qt4RunConfiguration.BaseEnvironmentBase" type="int">2</value>
|
||||||
|
<valuelist key="Qt4ProjectManager.Qt4RunConfiguration.CommandLineArguments" type="QVariantList"/>
|
||||||
|
<value key="Qt4ProjectManager.Qt4RunConfiguration.ProFile" type="QString">ADeditor.pro</value>
|
||||||
|
<value key="Qt4ProjectManager.Qt4RunConfiguration.UseDyldImageSuffix" type="bool">false</value>
|
||||||
|
<value key="Qt4ProjectManager.Qt4RunConfiguration.UseTerminal" type="bool">false</value>
|
||||||
|
<valuelist key="Qt4ProjectManager.Qt4RunConfiguration.UserEnvironmentChanges" type="QVariantList"/>
|
||||||
|
<value key="Qt4ProjectManager.Qt4RunConfiguration.UserSetName" type="bool">false</value>
|
||||||
|
<value key="Qt4ProjectManager.Qt4RunConfiguration.UserSetWorkingDirectory" type="bool">true</value>
|
||||||
|
<value key="Qt4ProjectManager.Qt4RunConfiguration.UserWorkingDirectory" type="QString">C:\Users\Andrey\Desktop\ADeditor-build</value>
|
||||||
|
</valuemap>
|
||||||
|
<value key="ProjectExplorer.Target.RunConfigurationCount" type="int">1</value>
|
||||||
</valuemap>
|
</valuemap>
|
||||||
</data>
|
</data>
|
||||||
<data>
|
<data>
|
||||||
<variable>buildconfiguration-Debug-buildstep0</variable>
|
<variable>ProjectExplorer.Project.TargetCount</variable>
|
||||||
<valuemap type="QVariantMap">
|
<value type="int">1</value>
|
||||||
<value key="ProjectExplorer.BuildConfiguration.DisplayName" type="QString">Debug</value>
|
|
||||||
<valuelist key="abstractProcess.Environment" type="QVariantList">
|
|
||||||
<value type="QString">DBUS_SESSION_BUS_ADDRESS=unix:abstract=/tmp/dbus-5i8Go7nPio,guid=870ffe971971ceac89206f0e4c5facbd</value>
|
|
||||||
<value type="QString">DEFAULTS_PATH=/usr/share/gconf/gnome.default.path</value>
|
|
||||||
<value type="QString">DESKTOP_SESSION=gnome</value>
|
|
||||||
<value type="QString">DISPLAY=:0.0</value>
|
|
||||||
<value type="QString">GDMSESSION=gnome</value>
|
|
||||||
<value type="QString">GDM_KEYBOARD_LAYOUT=us</value>
|
|
||||||
<value type="QString">GDM_LANG=ru_RU.UTF-8</value>
|
|
||||||
<value type="QString">GNOME_DESKTOP_SESSION_ID=this-is-deprecated</value>
|
|
||||||
<value type="QString">GNOME_KEYRING_CONTROL=/tmp/keyring-7vXnOW</value>
|
|
||||||
<value type="QString">GTK_MODULES=canberra-gtk-module</value>
|
|
||||||
<value type="QString">HOME=/home/andrey</value>
|
|
||||||
<value type="QString">LANG=ru_RU.UTF-8</value>
|
|
||||||
<value type="QString">LD_LIBRARY_PATH=/usr/lib/qtcreator:</value>
|
|
||||||
<value type="QString">LOGNAME=andrey</value>
|
|
||||||
<value type="QString">MANDATORY_PATH=/usr/share/gconf/gnome.mandatory.path</value>
|
|
||||||
<value type="QString">ORBIT_SOCKETDIR=/tmp/orbit-andrey</value>
|
|
||||||
<value type="QString">PATH=/usr/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games</value>
|
|
||||||
<value type="QString">PWD=/home/andrey</value>
|
|
||||||
<value type="QString">QTDIR=/usr/share/qt4</value>
|
|
||||||
<value type="QString">SESSION_MANAGER=local/buull-eeePC:@/tmp/.ICE-unix/1124,unix/buull-eeePC:/tmp/.ICE-unix/1124</value>
|
|
||||||
<value type="QString">SHELL=/bin/bash</value>
|
|
||||||
<value type="QString">SPEECHD_PORT=6561</value>
|
|
||||||
<value type="QString">SSH_AGENT_PID=1158</value>
|
|
||||||
<value type="QString">SSH_AUTH_SOCK=/tmp/keyring-7vXnOW/ssh</value>
|
|
||||||
<value type="QString">USER=andrey</value>
|
|
||||||
<value type="QString">USERNAME=andrey</value>
|
|
||||||
<value type="QString">XAUTHORITY=/var/run/gdm/auth-for-andrey-HWCXAG/database</value>
|
|
||||||
<value type="QString">XDG_CONFIG_DIRS=/etc/xdg/xdg-gnome:/etc/xdg</value>
|
|
||||||
<value type="QString">XDG_DATA_DIRS=/usr/share/gnome:/usr/local/share/:/usr/share/</value>
|
|
||||||
<value type="QString">XDG_SESSION_COOKIE=f0649decca52f2beb55c9ea74ad1d028-1281338556.676663-803309736</value>
|
|
||||||
</valuelist>
|
|
||||||
<valuelist key="abstractProcess.arguments" type="QVariantList">
|
|
||||||
<value type="QString">/home/andrey/AD/aliendefender/ADeditor/ADeditor.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">/home/andrey/AD/aliendefender/ADeditor</value>
|
|
||||||
</valuemap>
|
|
||||||
</data>
|
</data>
|
||||||
<data>
|
<data>
|
||||||
<variable>buildconfiguration-Debug-buildstep1</variable>
|
<variable>ProjectExplorer.Project.Updater.FileVersion</variable>
|
||||||
<valuemap type="QVariantMap">
|
<value type="int">4</value>
|
||||||
<value key="ProjectExplorer.BuildConfiguration.DisplayName" type="QString">Debug</value>
|
|
||||||
<valuelist key="abstractProcess.Environment" type="QVariantList">
|
|
||||||
<value type="QString">DBUS_SESSION_BUS_ADDRESS=unix:abstract=/tmp/dbus-5i8Go7nPio,guid=870ffe971971ceac89206f0e4c5facbd</value>
|
|
||||||
<value type="QString">DEFAULTS_PATH=/usr/share/gconf/gnome.default.path</value>
|
|
||||||
<value type="QString">DESKTOP_SESSION=gnome</value>
|
|
||||||
<value type="QString">DISPLAY=:0.0</value>
|
|
||||||
<value type="QString">GDMSESSION=gnome</value>
|
|
||||||
<value type="QString">GDM_KEYBOARD_LAYOUT=us</value>
|
|
||||||
<value type="QString">GDM_LANG=ru_RU.UTF-8</value>
|
|
||||||
<value type="QString">GNOME_DESKTOP_SESSION_ID=this-is-deprecated</value>
|
|
||||||
<value type="QString">GNOME_KEYRING_CONTROL=/tmp/keyring-7vXnOW</value>
|
|
||||||
<value type="QString">GTK_MODULES=canberra-gtk-module</value>
|
|
||||||
<value type="QString">HOME=/home/andrey</value>
|
|
||||||
<value type="QString">LANG=ru_RU.UTF-8</value>
|
|
||||||
<value type="QString">LD_LIBRARY_PATH=/usr/lib/qtcreator:</value>
|
|
||||||
<value type="QString">LOGNAME=andrey</value>
|
|
||||||
<value type="QString">MANDATORY_PATH=/usr/share/gconf/gnome.mandatory.path</value>
|
|
||||||
<value type="QString">ORBIT_SOCKETDIR=/tmp/orbit-andrey</value>
|
|
||||||
<value type="QString">PATH=/usr/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games</value>
|
|
||||||
<value type="QString">PWD=/home/andrey</value>
|
|
||||||
<value type="QString">QTDIR=/usr/share/qt4</value>
|
|
||||||
<value type="QString">SESSION_MANAGER=local/buull-eeePC:@/tmp/.ICE-unix/1124,unix/buull-eeePC:/tmp/.ICE-unix/1124</value>
|
|
||||||
<value type="QString">SHELL=/bin/bash</value>
|
|
||||||
<value type="QString">SPEECHD_PORT=6561</value>
|
|
||||||
<value type="QString">SSH_AGENT_PID=1158</value>
|
|
||||||
<value type="QString">SSH_AUTH_SOCK=/tmp/keyring-7vXnOW/ssh</value>
|
|
||||||
<value type="QString">USER=andrey</value>
|
|
||||||
<value type="QString">USERNAME=andrey</value>
|
|
||||||
<value type="QString">XAUTHORITY=/var/run/gdm/auth-for-andrey-HWCXAG/database</value>
|
|
||||||
<value type="QString">XDG_CONFIG_DIRS=/etc/xdg/xdg-gnome:/etc/xdg</value>
|
|
||||||
<value type="QString">XDG_DATA_DIRS=/usr/share/gnome:/usr/local/share/:/usr/share/</value>
|
|
||||||
<value type="QString">XDG_SESSION_COOKIE=f0649decca52f2beb55c9ea74ad1d028-1281338556.676663-803309736</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">/home/andrey/AD/aliendefender/ADeditor</value>
|
|
||||||
</valuemap>
|
|
||||||
</data>
|
|
||||||
<data>
|
|
||||||
<variable>buildconfiguration-Debug-cleanstep0</variable>
|
|
||||||
<valuemap type="QVariantMap">
|
|
||||||
<value key="ProjectExplorer.BuildConfiguration.DisplayName" type="QString">Debug</value>
|
|
||||||
<valuelist key="abstractProcess.Environment" type="QVariantList">
|
|
||||||
<value type="QString">DBUS_SESSION_BUS_ADDRESS=unix:abstract=/tmp/dbus-5i8Go7nPio,guid=870ffe971971ceac89206f0e4c5facbd</value>
|
|
||||||
<value type="QString">DEFAULTS_PATH=/usr/share/gconf/gnome.default.path</value>
|
|
||||||
<value type="QString">DESKTOP_SESSION=gnome</value>
|
|
||||||
<value type="QString">DISPLAY=:0.0</value>
|
|
||||||
<value type="QString">GDMSESSION=gnome</value>
|
|
||||||
<value type="QString">GDM_KEYBOARD_LAYOUT=us</value>
|
|
||||||
<value type="QString">GDM_LANG=ru_RU.UTF-8</value>
|
|
||||||
<value type="QString">GNOME_DESKTOP_SESSION_ID=this-is-deprecated</value>
|
|
||||||
<value type="QString">GNOME_KEYRING_CONTROL=/tmp/keyring-7vXnOW</value>
|
|
||||||
<value type="QString">GTK_MODULES=canberra-gtk-module</value>
|
|
||||||
<value type="QString">HOME=/home/andrey</value>
|
|
||||||
<value type="QString">LANG=ru_RU.UTF-8</value>
|
|
||||||
<value type="QString">LD_LIBRARY_PATH=/usr/lib/qtcreator:</value>
|
|
||||||
<value type="QString">LOGNAME=andrey</value>
|
|
||||||
<value type="QString">MANDATORY_PATH=/usr/share/gconf/gnome.mandatory.path</value>
|
|
||||||
<value type="QString">ORBIT_SOCKETDIR=/tmp/orbit-andrey</value>
|
|
||||||
<value type="QString">PATH=/usr/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games</value>
|
|
||||||
<value type="QString">PWD=/home/andrey</value>
|
|
||||||
<value type="QString">QTDIR=/usr/share/qt4</value>
|
|
||||||
<value type="QString">SESSION_MANAGER=local/buull-eeePC:@/tmp/.ICE-unix/1124,unix/buull-eeePC:/tmp/.ICE-unix/1124</value>
|
|
||||||
<value type="QString">SHELL=/bin/bash</value>
|
|
||||||
<value type="QString">SPEECHD_PORT=6561</value>
|
|
||||||
<value type="QString">SSH_AGENT_PID=1158</value>
|
|
||||||
<value type="QString">SSH_AUTH_SOCK=/tmp/keyring-7vXnOW/ssh</value>
|
|
||||||
<value type="QString">USER=andrey</value>
|
|
||||||
<value type="QString">USERNAME=andrey</value>
|
|
||||||
<value type="QString">XAUTHORITY=/var/run/gdm/auth-for-andrey-HWCXAG/database</value>
|
|
||||||
<value type="QString">XDG_CONFIG_DIRS=/etc/xdg/xdg-gnome:/etc/xdg</value>
|
|
||||||
<value type="QString">XDG_DATA_DIRS=/usr/share/gnome:/usr/local/share/:/usr/share/</value>
|
|
||||||
<value type="QString">XDG_SESSION_COOKIE=f0649decca52f2beb55c9ea74ad1d028-1281338556.676663-803309736</value>
|
|
||||||
</valuelist>
|
|
||||||
<value key="abstractProcess.IgnoreReturnValue" type="bool">true</value>
|
|
||||||
<valuelist key="abstractProcess.arguments" type="QVariantList">
|
|
||||||
<value type="QString">clean</value>
|
|
||||||
<value type="QString">-w</value>
|
|
||||||
</valuelist>
|
|
||||||
<value key="abstractProcess.command" type="QString">/usr/bin/make</value>
|
|
||||||
<value key="abstractProcess.enabled" type="bool">true</value>
|
|
||||||
<value key="abstractProcess.workingDirectory" type="QString">/home/andrey/AD/aliendefender/ADeditor</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>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>
|
</data>
|
||||||
</qtcreator>
|
</qtcreator>
|
||||||
|
|||||||
@@ -8,16 +8,16 @@ class AlienModel : public QAbstractListModel
|
|||||||
{
|
{
|
||||||
Q_OBJECT
|
Q_OBJECT
|
||||||
public:
|
public:
|
||||||
explicit AlienModel(QList<tbAlien> aliens, QObject *parent = 0);
|
explicit AlienModel(QList <tbHeader*> *data, QObject *parent = 0);
|
||||||
int rowCount(const QModelIndex &parent = QModelIndex()) const;
|
int rowCount(const QModelIndex &parent = QModelIndex()) const;
|
||||||
QVariant data(const QModelIndex &index, int role) const;
|
QVariant data(const QModelIndex &index, int role) const;
|
||||||
void refresh(QList<tbAlien> aliens);
|
void refresh(QList <tbAlien> aliens);
|
||||||
signals:
|
signals:
|
||||||
|
|
||||||
public slots:
|
public slots:
|
||||||
|
|
||||||
private:
|
private:
|
||||||
QList<tbAlien> aliens;
|
QList <tbHeader*> *data;
|
||||||
};
|
};
|
||||||
|
|
||||||
#endif // ALIENMODEL_H
|
#endif // ALIENMODEL_H
|
||||||
|
|||||||
@@ -5,160 +5,192 @@
|
|||||||
|
|
||||||
|
|
||||||
MainWindow::MainWindow(QWidget *parent) :
|
MainWindow::MainWindow(QWidget *parent) :
|
||||||
QMainWindow(parent),
|
QMainWindow(parent),
|
||||||
ui(new Ui::MainWindow)
|
ui(new Ui::MainWindow)
|
||||||
{
|
{
|
||||||
ui->setupUi(this);
|
ui->setupUi(this);
|
||||||
adloader = new Loader(this);
|
adloader = new Loader(this);
|
||||||
adloader->load("data2.xml");
|
adloader->load("data2.xml");
|
||||||
alModel = new AlienModel(adloader->aliens.values());
|
alModel = new AlienModel(adloader->aliens.values());
|
||||||
ui->lvAliens->setModel((QAbstractItemModel * )alModel);
|
ui->lvAliens->setModel((QAbstractItemModel * )alModel);
|
||||||
connect(ui->lvAliens->selectionModel(),SIGNAL(currentChanged(QModelIndex, QModelIndex)),this,SLOT(lvAliens_select(QModelIndex, QModelIndex)));
|
connect(ui->lvAliens->selectionModel(),SIGNAL(currentChanged(QModelIndex, QModelIndex)),this,SLOT(lvAliens_select(QModelIndex, QModelIndex)));
|
||||||
ui->lvAliens->selectionModel()->setCurrentIndex(ui->lvAliens->model()->index(0,0),QItemSelectionModel::Select);
|
ui->lvAliens->selectionModel()->setCurrentIndex(ui->lvAliens->model()->index(0,0),QItemSelectionModel::Select);
|
||||||
|
twModel = new TowerModel(adloader->towers.values());
|
||||||
|
ui->lvTowers->setModel((QAbstractItemModel * )twModel);
|
||||||
|
connect(ui->lvTowers->selectionModel(),SIGNAL(currentChanged(QModelIndex, QModelIndex)),this,SLOT(lvTowers_select(QModelIndex, QModelIndex)));
|
||||||
|
ui->lvTowers->selectionModel()->setCurrentIndex(ui->lvTowers->model()->index(0,0),QItemSelectionModel::Select);
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
MainWindow::~MainWindow()
|
MainWindow::~MainWindow()
|
||||||
{
|
{
|
||||||
delete ui;
|
delete ui;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
void MainWindow::changeEvent(QEvent *e)
|
void MainWindow::changeEvent(QEvent *e)
|
||||||
{
|
{
|
||||||
QMainWindow::changeEvent(e);
|
QMainWindow::changeEvent(e);
|
||||||
switch (e->type()) {
|
switch (e->type()) {
|
||||||
case QEvent::LanguageChange:
|
case QEvent::LanguageChange:
|
||||||
ui->retranslateUi(this);
|
ui->retranslateUi(this);
|
||||||
break;
|
break;
|
||||||
default:
|
default:
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
void MainWindow::on_cbAlArmor_toggled(bool checked)
|
void MainWindow::on_cbAlArmor_toggled(bool checked)
|
||||||
{
|
{
|
||||||
int id = adloader->aliens.values().at(ui->lvAliens->currentIndex().row()).id;
|
int id = adloader->aliens.values().at(ui->lvAliens->currentIndex().row()).id;
|
||||||
ui->sbAlArmor->setEnabled(checked);
|
ui->sbAlArmor->setEnabled(checked);
|
||||||
if (checked) adloader->aliens[id].armor = ui->sbAlArmor->value();
|
if (checked) adloader->aliens[id].armor = ui->sbAlArmor->value();
|
||||||
else adloader->aliens[id].armor = 0;
|
else adloader->aliens[id].armor = 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
void MainWindow::on_cbAlRegeneration_toggled(bool checked)
|
void MainWindow::on_cbAlRegeneration_toggled(bool checked)
|
||||||
{
|
{
|
||||||
int id = adloader->aliens.values().at(ui->lvAliens->currentIndex().row()).id;
|
int id = adloader->aliens.values().at(ui->lvAliens->currentIndex().row()).id;
|
||||||
ui->sbAlregeneration->setEnabled(checked);
|
ui->sbAlregeneration->setEnabled(checked);
|
||||||
if (checked) adloader->aliens[id].regeneration = ui->sbAlregeneration->value();
|
if (checked) adloader->aliens[id].regeneration = ui->sbAlregeneration->value();
|
||||||
else adloader->aliens[id].regeneration = 0;
|
else adloader->aliens[id].regeneration = 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
void MainWindow::lvAliens_select(QModelIndex index, QModelIndex)
|
void MainWindow::lvAliens_select(QModelIndex index, QModelIndex)
|
||||||
{
|
{
|
||||||
tbAlien al = adloader->aliens.values().at(index.row());
|
tbAlien al = adloader->aliens.values().at(index.row());
|
||||||
ui->leAlName->setText(al.name);
|
ui->leAlName->setText(al.name);
|
||||||
ui->sbAlHealth->setValue(al.health);
|
ui->sbAlHealth->setValue(al.health);
|
||||||
ui->sbAlArmor->setValue(al.armor);
|
ui->sbAlArmor->setValue(al.armor);
|
||||||
if (al.armor > 0) ui->cbAlArmor->setChecked(true);
|
if (al.armor > 0) ui->cbAlArmor->setChecked(true);
|
||||||
else ui->cbAlArmor->setChecked(false);
|
else ui->cbAlArmor->setChecked(false);
|
||||||
ui->sbAlSpeed->setValue(al.speed);
|
ui->sbAlSpeed->setValue(al.speed);
|
||||||
ui->sbAlPrise->setValue(al.prise);
|
ui->sbAlPrise->setValue(al.prise);
|
||||||
ui->sbAlregeneration->setValue(al.regeneration);
|
ui->sbAlregeneration->setValue(al.regeneration);
|
||||||
if (al.regeneration > 0) ui->cbAlRegeneration->setChecked(true);
|
if (al.regeneration > 0) ui->cbAlRegeneration->setChecked(true);
|
||||||
else ui->cbAlRegeneration->setChecked(false);
|
else ui->cbAlRegeneration->setChecked(false);
|
||||||
ui->sbAlScore->setValue(al.score);
|
ui->sbAlScore->setValue(al.score);
|
||||||
ui->cbAlIsFly->setChecked(al.isFlying);
|
ui->cbAlIsFly->setChecked(al.isFlying);
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
void MainWindow::lvTowers_select(QModelIndex index, QModelIndex)
|
||||||
|
{
|
||||||
|
tbTower tw = adloader->towers.values().at(index.row());
|
||||||
|
ui->sbTwBuildTime->setValue(tw.buildTime);
|
||||||
|
ui->sbTwCost->setValue(tw.cost);
|
||||||
|
ui->sbTwExpByDam->setValue(tw.expByDamage);
|
||||||
|
ui->sbTwExpByKill->setValue(tw.expByKill);
|
||||||
|
ui->sbTwExpByShot->setValue(tw.expByShot);
|
||||||
|
ui->leTwName->setText(tw.name);
|
||||||
|
ui->sbTwRadius->setValue(tw.radius);
|
||||||
|
ui->sbTwReload->setValue(tw.reload);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
void MainWindow::on_pbSave_clicked()
|
void MainWindow::on_pbSave_clicked()
|
||||||
{
|
{
|
||||||
adloader->save("data2.xml");
|
adloader->save("data2.xml");
|
||||||
adloader->load("data2.xml");
|
adloader->load("data2.xml");
|
||||||
alModel->refresh(adloader->aliens.values());
|
alModel->refresh(adloader->aliens.values());
|
||||||
}
|
}
|
||||||
|
|
||||||
void MainWindow::on_sbAlHealth_valueChanged(double value)
|
void MainWindow::on_sbAlHealth_valueChanged(double value)
|
||||||
{
|
{
|
||||||
int id = adloader->aliens.values().at(ui->lvAliens->currentIndex().row()).id;
|
int id = adloader->aliens.values().at(ui->lvAliens->currentIndex().row()).id;
|
||||||
adloader->aliens[id].health = value;
|
adloader->aliens[id].health = value;
|
||||||
}
|
}
|
||||||
|
|
||||||
void MainWindow::on_sbAlArmor_valueChanged(double value)
|
void MainWindow::on_sbAlArmor_valueChanged(double value)
|
||||||
{
|
{
|
||||||
int id = adloader->aliens.values().at(ui->lvAliens->currentIndex().row()).id;
|
int id = adloader->aliens.values().at(ui->lvAliens->currentIndex().row()).id;
|
||||||
adloader->aliens[id].armor = value;
|
adloader->aliens[id].armor = value;
|
||||||
}
|
}
|
||||||
|
|
||||||
void MainWindow::on_sbAlregeneration_valueChanged(double value)
|
void MainWindow::on_sbAlregeneration_valueChanged(double value)
|
||||||
{
|
{
|
||||||
int id = adloader->aliens.values().at(ui->lvAliens->currentIndex().row()).id;
|
int id = adloader->aliens.values().at(ui->lvAliens->currentIndex().row()).id;
|
||||||
adloader->aliens[id].regeneration = value;
|
adloader->aliens[id].regeneration = value;
|
||||||
}
|
}
|
||||||
|
|
||||||
void MainWindow::on_sbAlSpeed_valueChanged(double value)
|
void MainWindow::on_sbAlSpeed_valueChanged(double value)
|
||||||
{
|
{
|
||||||
int id = adloader->aliens.values().at(ui->lvAliens->currentIndex().row()).id;
|
int id = adloader->aliens.values().at(ui->lvAliens->currentIndex().row()).id;
|
||||||
adloader->aliens[id].speed = value;
|
adloader->aliens[id].speed = value;
|
||||||
}
|
}
|
||||||
|
|
||||||
void MainWindow::on_sbAlPrise_valueChanged(int val)
|
void MainWindow::on_sbAlPrise_valueChanged(int val)
|
||||||
{
|
{
|
||||||
int id = adloader->aliens.values().at(ui->lvAliens->currentIndex().row()).id;
|
int id = adloader->aliens.values().at(ui->lvAliens->currentIndex().row()).id;
|
||||||
adloader->aliens[id].prise = val;
|
adloader->aliens[id].prise = val;
|
||||||
}
|
}
|
||||||
|
|
||||||
void MainWindow::on_sbAlScore_valueChanged(int val)
|
void MainWindow::on_sbAlScore_valueChanged(int val)
|
||||||
{
|
{
|
||||||
int id = adloader->aliens.values().at(ui->lvAliens->currentIndex().row()).id;
|
int id = adloader->aliens.values().at(ui->lvAliens->currentIndex().row()).id;
|
||||||
adloader->aliens[id].score = val;
|
adloader->aliens[id].score = val;
|
||||||
}
|
}
|
||||||
|
|
||||||
void MainWindow::on_cbAlIsFly_clicked(bool checked)
|
void MainWindow::on_cbAlIsFly_clicked(bool checked)
|
||||||
{
|
{
|
||||||
int id = adloader->aliens.values().at(ui->lvAliens->currentIndex().row()).id;
|
int id = adloader->aliens.values().at(ui->lvAliens->currentIndex().row()).id;
|
||||||
adloader->aliens[id].isFlying = checked;
|
adloader->aliens[id].isFlying = checked;
|
||||||
}
|
}
|
||||||
|
|
||||||
void MainWindow::on_leAlName_editingFinished()
|
void MainWindow::on_leAlName_editingFinished()
|
||||||
{
|
{
|
||||||
int id = adloader->aliens.values().at(ui->lvAliens->currentIndex().row()).id;
|
int id = adloader->aliens.values().at(ui->lvAliens->currentIndex().row()).id;
|
||||||
adloader->aliens[id].name = ui->leAlName->text();
|
adloader->aliens[id].name = ui->leAlName->text();
|
||||||
alModel->refresh(adloader->aliens.values());
|
alModel->refresh(adloader->aliens.values());
|
||||||
ui->lvAliens->setModel((QAbstractItemModel * )alModel);
|
ui->lvAliens->setModel((QAbstractItemModel * )alModel);
|
||||||
}
|
}
|
||||||
|
|
||||||
void MainWindow::on_pbAlAdd_clicked()
|
void MainWindow::on_pbAlAdd_clicked()
|
||||||
{
|
{
|
||||||
int i = 1;
|
int i = 1;
|
||||||
while (adloader->aliens.contains(i)) i++;
|
while (adloader->aliens.contains(i)) i++;
|
||||||
tbAlien al;
|
tbAlien al;
|
||||||
al.id = i;
|
al.id = i;
|
||||||
adloader->aliens.insert(al.id,al);
|
adloader->aliens.insert(al.id,al);
|
||||||
int index = adloader->aliens.keys().indexOf(i);
|
int index = adloader->aliens.keys().indexOf(i);
|
||||||
alModel->refresh(adloader->aliens.values());
|
alModel->refresh(adloader->aliens.values());
|
||||||
ui->lvAliens->setModel((QAbstractItemModel * )alModel);
|
ui->lvAliens->setModel((QAbstractItemModel * )alModel);
|
||||||
ui->lvAliens->reset();
|
ui->lvAliens->reset();
|
||||||
ui->lvAliens->selectionModel()->setCurrentIndex(ui->lvAliens->model()->index(index,0),QItemSelectionModel::Select);
|
ui->lvAliens->selectionModel()->setCurrentIndex(ui->lvAliens->model()->index(index,0),QItemSelectionModel::Select);
|
||||||
}
|
}
|
||||||
|
|
||||||
void MainWindow::on_pbAlDel_clicked()
|
void MainWindow::on_pbAlDel_clicked()
|
||||||
{
|
{
|
||||||
QMessageBox msgBox;
|
QMessageBox msgBox;
|
||||||
int id = adloader->aliens.keys().at(ui->lvAliens->currentIndex().row());
|
int id = adloader->aliens.keys().at(ui->lvAliens->currentIndex().row());
|
||||||
msgBox.setText(tr("Delete alien %1 id=%2").arg(adloader->aliens.value(id).name).arg(id));
|
msgBox.setText(tr("Delete alien %1 id=%2").arg(adloader->aliens.value(id).name).arg(id));
|
||||||
msgBox.setInformativeText(tr("Are you sure?"));
|
msgBox.setInformativeText(tr("Are you sure?"));
|
||||||
msgBox.setStandardButtons(QMessageBox::Ok | QMessageBox::Cancel);
|
msgBox.setStandardButtons(QMessageBox::Ok | QMessageBox::Cancel);
|
||||||
msgBox.setDefaultButton(QMessageBox::Ok);
|
msgBox.setDefaultButton(QMessageBox::Ok);
|
||||||
int ret = msgBox.exec();
|
int ret = msgBox.exec();
|
||||||
if (ret == QMessageBox::Ok)
|
if (ret == QMessageBox::Ok)
|
||||||
{
|
{
|
||||||
adloader->aliens.remove(id);
|
adloader->aliens.remove(id);
|
||||||
alModel->refresh(adloader->aliens.values());
|
alModel->refresh(adloader->aliens.values());
|
||||||
ui->lvAliens->setModel((QAbstractItemModel * )alModel);
|
ui->lvAliens->setModel((QAbstractItemModel * )alModel);
|
||||||
ui->lvAliens->reset();
|
ui->lvAliens->reset();
|
||||||
ui->lvAliens->selectionModel()->setCurrentIndex(ui->lvAliens->model()->index(0,0),QItemSelectionModel::Select);
|
ui->lvAliens->selectionModel()->setCurrentIndex(ui->lvAliens->model()->index(0,0),QItemSelectionModel::Select);
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
void MainWindow::on_leTwName_editingFinished()
|
||||||
|
{
|
||||||
|
int id = adloader->towers.values().at(ui->lvTowers->currentIndex().row()).id;
|
||||||
|
adloader->towers[id].name = ui->leTwName->text();
|
||||||
|
twModel->refresh(adloader->towers.values());
|
||||||
|
ui->lvTowers->setModel((QAbstractItemModel * )twModel);
|
||||||
|
}
|
||||||
|
|
||||||
|
void MainWindow::on_pbTwAdd_clicked()
|
||||||
|
{
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -6,6 +6,7 @@
|
|||||||
#include <QListWidgetItem>
|
#include <QListWidgetItem>
|
||||||
|
|
||||||
#include "alienmodel.h"
|
#include "alienmodel.h"
|
||||||
|
#include "towermodel.h"
|
||||||
|
|
||||||
|
|
||||||
namespace Ui {
|
namespace Ui {
|
||||||
@@ -23,24 +24,28 @@ protected:
|
|||||||
|
|
||||||
private:
|
private:
|
||||||
Ui::MainWindow *ui;
|
Ui::MainWindow *ui;
|
||||||
Loader * adloader;
|
Loader * adloader;
|
||||||
AlienModel * alModel;
|
AlienModel * alModel;
|
||||||
|
TowerModel * twModel;
|
||||||
|
|
||||||
private slots:
|
private slots:
|
||||||
void on_pbAlDel_clicked();
|
void on_pbTwAdd_clicked();
|
||||||
void on_pbAlAdd_clicked();
|
void on_leTwName_editingFinished();
|
||||||
void on_leAlName_editingFinished();
|
void on_pbAlDel_clicked();
|
||||||
void on_cbAlIsFly_clicked(bool checked);
|
void on_pbAlAdd_clicked();
|
||||||
void on_sbAlScore_valueChanged(int );
|
void on_leAlName_editingFinished();
|
||||||
void on_sbAlPrise_valueChanged(int );
|
void on_cbAlIsFly_clicked(bool checked);
|
||||||
void on_sbAlSpeed_valueChanged(double );
|
void on_sbAlScore_valueChanged(int );
|
||||||
void on_sbAlregeneration_valueChanged(double );
|
void on_sbAlPrise_valueChanged(int );
|
||||||
void on_sbAlArmor_valueChanged(double );
|
void on_sbAlSpeed_valueChanged(double );
|
||||||
void on_sbAlHealth_valueChanged(double );
|
void on_sbAlregeneration_valueChanged(double );
|
||||||
void on_pbSave_clicked();
|
void on_sbAlArmor_valueChanged(double );
|
||||||
void lvAliens_select(QModelIndex, QModelIndex);
|
void on_sbAlHealth_valueChanged(double );
|
||||||
void on_cbAlRegeneration_toggled(bool checked);
|
void on_pbSave_clicked();
|
||||||
void on_cbAlArmor_toggled(bool checked);
|
void lvAliens_select(QModelIndex, QModelIndex);
|
||||||
|
void lvTowers_select(QModelIndex, QModelIndex);
|
||||||
|
void on_cbAlRegeneration_toggled(bool checked);
|
||||||
|
void on_cbAlArmor_toggled(bool checked);
|
||||||
};
|
};
|
||||||
|
|
||||||
#endif // MAINWINDOW_H
|
#endif // MAINWINDOW_H
|
||||||
|
|||||||
@@ -6,25 +6,38 @@
|
|||||||
<rect>
|
<rect>
|
||||||
<x>0</x>
|
<x>0</x>
|
||||||
<y>0</y>
|
<y>0</y>
|
||||||
<width>516</width>
|
<width>598</width>
|
||||||
<height>468</height>
|
<height>489</height>
|
||||||
</rect>
|
</rect>
|
||||||
</property>
|
</property>
|
||||||
|
<property name="cursor">
|
||||||
|
<cursorShape>PointingHandCursor</cursorShape>
|
||||||
|
</property>
|
||||||
<property name="windowTitle">
|
<property name="windowTitle">
|
||||||
<string>MainWindow</string>
|
<string>MainWindow</string>
|
||||||
</property>
|
</property>
|
||||||
|
<property name="dockOptions">
|
||||||
|
<set>QMainWindow::AllowNestedDocks|QMainWindow::AllowTabbedDocks|QMainWindow::AnimatedDocks|QMainWindow::ForceTabbedDocks</set>
|
||||||
|
</property>
|
||||||
<widget class="QWidget" name="centralWidget">
|
<widget class="QWidget" name="centralWidget">
|
||||||
<layout class="QVBoxLayout" name="verticalLayout">
|
<layout class="QGridLayout" name="gridLayout_2">
|
||||||
<item>
|
<item row="3" column="0">
|
||||||
<widget class="QTabWidget" name="tabAlien_2">
|
<widget class="QTabWidget" name="tabWidget">
|
||||||
<property name="currentIndex">
|
<property name="currentIndex">
|
||||||
<number>0</number>
|
<number>2</number>
|
||||||
</property>
|
</property>
|
||||||
<widget class="QWidget" name="tabAlien">
|
<widget class="QWidget" name="tabAliens">
|
||||||
<attribute name="title">
|
<attribute name="title">
|
||||||
<string>Aliens</string>
|
<string>Aliens</string>
|
||||||
</attribute>
|
</attribute>
|
||||||
<layout class="QGridLayout" name="gridLayout" rowstretch="0,0" columnstretch="1,0">
|
<layout class="QGridLayout" name="gridLayout_4" columnstretch="1,2">
|
||||||
|
<item row="0" column="0">
|
||||||
|
<widget class="QListView" name="lvAliens">
|
||||||
|
<property name="editTriggers">
|
||||||
|
<set>QAbstractItemView::AllEditTriggers</set>
|
||||||
|
</property>
|
||||||
|
</widget>
|
||||||
|
</item>
|
||||||
<item row="0" column="1" rowspan="2">
|
<item row="0" column="1" rowspan="2">
|
||||||
<widget class="QFrame" name="frame">
|
<widget class="QFrame" name="frame">
|
||||||
<property name="frameShape">
|
<property name="frameShape">
|
||||||
@@ -366,6 +379,9 @@
|
|||||||
<verstretch>0</verstretch>
|
<verstretch>0</verstretch>
|
||||||
</sizepolicy>
|
</sizepolicy>
|
||||||
</property>
|
</property>
|
||||||
|
<property name="cursor">
|
||||||
|
<cursorShape>PointingHandCursor</cursorShape>
|
||||||
|
</property>
|
||||||
<property name="text">
|
<property name="text">
|
||||||
<string>Add</string>
|
<string>Add</string>
|
||||||
</property>
|
</property>
|
||||||
@@ -386,25 +402,21 @@
|
|||||||
</item>
|
</item>
|
||||||
</layout>
|
</layout>
|
||||||
</item>
|
</item>
|
||||||
<item row="0" column="0">
|
|
||||||
<widget class="QListView" name="lvAliens">
|
|
||||||
<property name="editTriggers">
|
|
||||||
<set>QAbstractItemView::AllEditTriggers</set>
|
|
||||||
</property>
|
|
||||||
</widget>
|
|
||||||
</item>
|
|
||||||
</layout>
|
</layout>
|
||||||
</widget>
|
</widget>
|
||||||
<widget class="QWidget" name="tabTower">
|
<widget class="QWidget" name="tabTowers">
|
||||||
<attribute name="title">
|
<attribute name="title">
|
||||||
<string>Towers</string>
|
<string>Towers</string>
|
||||||
</attribute>
|
</attribute>
|
||||||
<layout class="QGridLayout" name="gridLayout_4">
|
<layout class="QGridLayout" name="gridLayout_5" columnstretch="1,2">
|
||||||
<item row="0" column="0">
|
<item row="0" column="0">
|
||||||
<widget class="QListView" name="TowerList"/>
|
<widget class="QListView" name="lvTowers"/>
|
||||||
</item>
|
</item>
|
||||||
<item row="0" column="1">
|
<item row="0" column="1" rowspan="2">
|
||||||
<widget class="QFrame" name="frame_2">
|
<widget class="QFrame" name="frame_2">
|
||||||
|
<property name="cursor">
|
||||||
|
<cursorShape>ArrowCursor</cursorShape>
|
||||||
|
</property>
|
||||||
<property name="frameShape">
|
<property name="frameShape">
|
||||||
<enum>QFrame::StyledPanel</enum>
|
<enum>QFrame::StyledPanel</enum>
|
||||||
</property>
|
</property>
|
||||||
@@ -431,7 +443,7 @@
|
|||||||
</widget>
|
</widget>
|
||||||
</item>
|
</item>
|
||||||
<item>
|
<item>
|
||||||
<widget class="QLineEdit" name="leAlName_5"/>
|
<widget class="QLineEdit" name="leTwName"/>
|
||||||
</item>
|
</item>
|
||||||
</layout>
|
</layout>
|
||||||
</item>
|
</item>
|
||||||
@@ -454,7 +466,7 @@
|
|||||||
</widget>
|
</widget>
|
||||||
</item>
|
</item>
|
||||||
<item>
|
<item>
|
||||||
<widget class="QSpinBox" name="sbAlPrise_5"/>
|
<widget class="QSpinBox" name="sbTwBuildTime"/>
|
||||||
</item>
|
</item>
|
||||||
</layout>
|
</layout>
|
||||||
</item>
|
</item>
|
||||||
@@ -477,7 +489,7 @@
|
|||||||
</widget>
|
</widget>
|
||||||
</item>
|
</item>
|
||||||
<item>
|
<item>
|
||||||
<widget class="QSpinBox" name="sbAlPrise_3"/>
|
<widget class="QSpinBox" name="sbTwCost"/>
|
||||||
</item>
|
</item>
|
||||||
</layout>
|
</layout>
|
||||||
</item>
|
</item>
|
||||||
@@ -500,7 +512,7 @@
|
|||||||
</widget>
|
</widget>
|
||||||
</item>
|
</item>
|
||||||
<item>
|
<item>
|
||||||
<widget class="QComboBox" name="comboBox"/>
|
<widget class="QComboBox" name="cbTwSplash"/>
|
||||||
</item>
|
</item>
|
||||||
</layout>
|
</layout>
|
||||||
</item>
|
</item>
|
||||||
@@ -523,7 +535,7 @@
|
|||||||
</widget>
|
</widget>
|
||||||
</item>
|
</item>
|
||||||
<item>
|
<item>
|
||||||
<widget class="QSpinBox" name="sbAlPrise_4"/>
|
<widget class="QSpinBox" name="sbTwReload"/>
|
||||||
</item>
|
</item>
|
||||||
</layout>
|
</layout>
|
||||||
</item>
|
</item>
|
||||||
@@ -546,7 +558,7 @@
|
|||||||
</widget>
|
</widget>
|
||||||
</item>
|
</item>
|
||||||
<item>
|
<item>
|
||||||
<widget class="QDoubleSpinBox" name="sbAlSpeed_3"/>
|
<widget class="QDoubleSpinBox" name="sbTwRadius"/>
|
||||||
</item>
|
</item>
|
||||||
</layout>
|
</layout>
|
||||||
</item>
|
</item>
|
||||||
@@ -569,7 +581,7 @@
|
|||||||
</widget>
|
</widget>
|
||||||
</item>
|
</item>
|
||||||
<item>
|
<item>
|
||||||
<widget class="QDoubleSpinBox" name="sbAlHealth_4"/>
|
<widget class="QDoubleSpinBox" name="sbTwExpByShot"/>
|
||||||
</item>
|
</item>
|
||||||
</layout>
|
</layout>
|
||||||
</item>
|
</item>
|
||||||
@@ -592,7 +604,7 @@
|
|||||||
</widget>
|
</widget>
|
||||||
</item>
|
</item>
|
||||||
<item>
|
<item>
|
||||||
<widget class="QDoubleSpinBox" name="sbAlHealth_6"/>
|
<widget class="QDoubleSpinBox" name="sbTwExpByDam"/>
|
||||||
</item>
|
</item>
|
||||||
</layout>
|
</layout>
|
||||||
</item>
|
</item>
|
||||||
@@ -615,7 +627,7 @@
|
|||||||
</widget>
|
</widget>
|
||||||
</item>
|
</item>
|
||||||
<item>
|
<item>
|
||||||
<widget class="QDoubleSpinBox" name="sbAlHealth_5"/>
|
<widget class="QDoubleSpinBox" name="sbTwExpByKill"/>
|
||||||
</item>
|
</item>
|
||||||
</layout>
|
</layout>
|
||||||
</item>
|
</item>
|
||||||
@@ -638,7 +650,7 @@
|
|||||||
</widget>
|
</widget>
|
||||||
</item>
|
</item>
|
||||||
<item>
|
<item>
|
||||||
<widget class="QGraphicsView" name="graphicsView_3">
|
<widget class="QGraphicsView" name="TwImage">
|
||||||
<property name="sizePolicy">
|
<property name="sizePolicy">
|
||||||
<sizepolicy hsizetype="Preferred" vsizetype="Preferred">
|
<sizepolicy hsizetype="Preferred" vsizetype="Preferred">
|
||||||
<horstretch>0</horstretch>
|
<horstretch>0</horstretch>
|
||||||
@@ -683,6 +695,9 @@
|
|||||||
<height>32</height>
|
<height>32</height>
|
||||||
</size>
|
</size>
|
||||||
</property>
|
</property>
|
||||||
|
<property name="cursor">
|
||||||
|
<cursorShape>PointingHandCursor</cursorShape>
|
||||||
|
</property>
|
||||||
<property name="text">
|
<property name="text">
|
||||||
<string>...</string>
|
<string>...</string>
|
||||||
</property>
|
</property>
|
||||||
@@ -693,12 +708,343 @@
|
|||||||
</layout>
|
</layout>
|
||||||
</widget>
|
</widget>
|
||||||
</item>
|
</item>
|
||||||
|
<item row="1" column="0">
|
||||||
|
<layout class="QHBoxLayout" name="horizontalLayout_11" stretch="2,1">
|
||||||
|
<property name="spacing">
|
||||||
|
<number>20</number>
|
||||||
|
</property>
|
||||||
|
<item>
|
||||||
|
<widget class="QPushButton" name="pbTwAdd">
|
||||||
|
<property name="sizePolicy">
|
||||||
|
<sizepolicy hsizetype="Preferred" vsizetype="Fixed">
|
||||||
|
<horstretch>0</horstretch>
|
||||||
|
<verstretch>0</verstretch>
|
||||||
|
</sizepolicy>
|
||||||
|
</property>
|
||||||
|
<property name="cursor">
|
||||||
|
<cursorShape>PointingHandCursor</cursorShape>
|
||||||
|
</property>
|
||||||
|
<property name="text">
|
||||||
|
<string>Add</string>
|
||||||
|
</property>
|
||||||
|
</widget>
|
||||||
|
</item>
|
||||||
|
<item>
|
||||||
|
<widget class="QPushButton" name="pbTwDel">
|
||||||
|
<property name="sizePolicy">
|
||||||
|
<sizepolicy hsizetype="Preferred" vsizetype="Fixed">
|
||||||
|
<horstretch>0</horstretch>
|
||||||
|
<verstretch>0</verstretch>
|
||||||
|
</sizepolicy>
|
||||||
|
</property>
|
||||||
|
<property name="cursor">
|
||||||
|
<cursorShape>PointingHandCursor</cursorShape>
|
||||||
|
</property>
|
||||||
|
<property name="text">
|
||||||
|
<string>Delete</string>
|
||||||
|
</property>
|
||||||
|
</widget>
|
||||||
|
</item>
|
||||||
|
</layout>
|
||||||
|
</item>
|
||||||
</layout>
|
</layout>
|
||||||
</widget>
|
</widget>
|
||||||
|
<widget class="QWidget" name="tabSplashes">
|
||||||
|
<attribute name="title">
|
||||||
|
<string>Splashes</string>
|
||||||
|
</attribute>
|
||||||
|
<layout class="QGridLayout" name="gridLayout_3" columnstretch="1,2">
|
||||||
|
<item row="0" column="0">
|
||||||
|
<widget class="QListView" name="lvSplashes">
|
||||||
|
<property name="editTriggers">
|
||||||
|
<set>QAbstractItemView::AllEditTriggers</set>
|
||||||
|
</property>
|
||||||
|
</widget>
|
||||||
|
</item>
|
||||||
|
<item row="0" column="1" rowspan="2">
|
||||||
|
<widget class="QFrame" name="frameSplash">
|
||||||
|
<property name="enabled">
|
||||||
|
<bool>true</bool>
|
||||||
|
</property>
|
||||||
|
<property name="sizePolicy">
|
||||||
|
<sizepolicy hsizetype="Preferred" vsizetype="Preferred">
|
||||||
|
<horstretch>0</horstretch>
|
||||||
|
<verstretch>0</verstretch>
|
||||||
|
</sizepolicy>
|
||||||
|
</property>
|
||||||
|
<property name="cursor">
|
||||||
|
<cursorShape>IBeamCursor</cursorShape>
|
||||||
|
</property>
|
||||||
|
<property name="frameShape">
|
||||||
|
<enum>QFrame::StyledPanel</enum>
|
||||||
|
</property>
|
||||||
|
<property name="frameShadow">
|
||||||
|
<enum>QFrame::Raised</enum>
|
||||||
|
</property>
|
||||||
|
<layout class="QVBoxLayout" name="verticalLayout_7" stretch="0,0,0,0,0">
|
||||||
|
<property name="sizeConstraint">
|
||||||
|
<enum>QLayout::SetDefaultConstraint</enum>
|
||||||
|
</property>
|
||||||
|
<property name="leftMargin">
|
||||||
|
<number>5</number>
|
||||||
|
</property>
|
||||||
|
<property name="topMargin">
|
||||||
|
<number>5</number>
|
||||||
|
</property>
|
||||||
|
<property name="rightMargin">
|
||||||
|
<number>2</number>
|
||||||
|
</property>
|
||||||
|
<item>
|
||||||
|
<layout class="QHBoxLayout" name="horizontalLayout_28">
|
||||||
|
<item>
|
||||||
|
<widget class="QLabel" name="label_32">
|
||||||
|
<property name="sizePolicy">
|
||||||
|
<sizepolicy hsizetype="Fixed" vsizetype="Fixed">
|
||||||
|
<horstretch>0</horstretch>
|
||||||
|
<verstretch>0</verstretch>
|
||||||
|
</sizepolicy>
|
||||||
|
</property>
|
||||||
|
<property name="text">
|
||||||
|
<string>Name</string>
|
||||||
|
</property>
|
||||||
|
<property name="alignment">
|
||||||
|
<set>Qt::AlignCenter</set>
|
||||||
|
</property>
|
||||||
|
</widget>
|
||||||
|
</item>
|
||||||
|
<item>
|
||||||
|
<widget class="QLineEdit" name="leSplName"/>
|
||||||
|
</item>
|
||||||
|
</layout>
|
||||||
|
</item>
|
||||||
|
<item>
|
||||||
|
<layout class="QHBoxLayout" name="horizontalLayout_13">
|
||||||
|
<item>
|
||||||
|
<widget class="QLabel" name="label_9">
|
||||||
|
<property name="sizePolicy">
|
||||||
|
<sizepolicy hsizetype="Fixed" vsizetype="Fixed">
|
||||||
|
<horstretch>0</horstretch>
|
||||||
|
<verstretch>0</verstretch>
|
||||||
|
</sizepolicy>
|
||||||
|
</property>
|
||||||
|
<property name="text">
|
||||||
|
<string>Speed</string>
|
||||||
|
</property>
|
||||||
|
<property name="alignment">
|
||||||
|
<set>Qt::AlignCenter</set>
|
||||||
|
</property>
|
||||||
|
</widget>
|
||||||
|
</item>
|
||||||
|
<item>
|
||||||
|
<widget class="QDoubleSpinBox" name="sbSplSpeed">
|
||||||
|
<property name="suffix">
|
||||||
|
<string/>
|
||||||
|
</property>
|
||||||
|
<property name="decimals">
|
||||||
|
<number>5</number>
|
||||||
|
</property>
|
||||||
|
<property name="maximum">
|
||||||
|
<double>99.000000000000000</double>
|
||||||
|
</property>
|
||||||
|
<property name="singleStep">
|
||||||
|
<double>0.010000000000000</double>
|
||||||
|
</property>
|
||||||
|
<property name="value">
|
||||||
|
<double>0.010000000000000</double>
|
||||||
|
</property>
|
||||||
|
</widget>
|
||||||
|
</item>
|
||||||
|
</layout>
|
||||||
|
</item>
|
||||||
|
<item>
|
||||||
|
<layout class="QHBoxLayout" name="horizontalLayout_14">
|
||||||
|
<item>
|
||||||
|
<widget class="QCheckBox" name="cbSplAutoControl">
|
||||||
|
<property name="sizePolicy">
|
||||||
|
<sizepolicy hsizetype="Fixed" vsizetype="Fixed">
|
||||||
|
<horstretch>0</horstretch>
|
||||||
|
<verstretch>0</verstretch>
|
||||||
|
</sizepolicy>
|
||||||
|
</property>
|
||||||
|
<property name="cursor">
|
||||||
|
<cursorShape>ArrowCursor</cursorShape>
|
||||||
|
</property>
|
||||||
|
<property name="layoutDirection">
|
||||||
|
<enum>Qt::LeftToRight</enum>
|
||||||
|
</property>
|
||||||
|
<property name="text">
|
||||||
|
<string>AutoControl</string>
|
||||||
|
</property>
|
||||||
|
</widget>
|
||||||
|
</item>
|
||||||
|
<item>
|
||||||
|
<spacer name="horizontalSpacer_3">
|
||||||
|
<property name="orientation">
|
||||||
|
<enum>Qt::Horizontal</enum>
|
||||||
|
</property>
|
||||||
|
<property name="sizeHint" stdset="0">
|
||||||
|
<size>
|
||||||
|
<width>40</width>
|
||||||
|
<height>20</height>
|
||||||
|
</size>
|
||||||
|
</property>
|
||||||
|
</spacer>
|
||||||
|
</item>
|
||||||
|
</layout>
|
||||||
|
</item>
|
||||||
|
<item>
|
||||||
|
<layout class="QHBoxLayout" name="horizontalLayout_42">
|
||||||
|
<item>
|
||||||
|
<widget class="QLabel" name="label_37">
|
||||||
|
<property name="sizePolicy">
|
||||||
|
<sizepolicy hsizetype="Fixed" vsizetype="Fixed">
|
||||||
|
<horstretch>0</horstretch>
|
||||||
|
<verstretch>0</verstretch>
|
||||||
|
</sizepolicy>
|
||||||
|
</property>
|
||||||
|
<property name="text">
|
||||||
|
<string>LifeTime</string>
|
||||||
|
</property>
|
||||||
|
<property name="alignment">
|
||||||
|
<set>Qt::AlignCenter</set>
|
||||||
|
</property>
|
||||||
|
</widget>
|
||||||
|
</item>
|
||||||
|
<item>
|
||||||
|
<widget class="QSpinBox" name="sbSplLifeTime"/>
|
||||||
|
</item>
|
||||||
|
</layout>
|
||||||
|
</item>
|
||||||
|
<item>
|
||||||
|
<layout class="QHBoxLayout" name="horizontalLayout_46" stretch="10,4,0,1">
|
||||||
|
<item>
|
||||||
|
<widget class="QLabel" name="label_41">
|
||||||
|
<property name="sizePolicy">
|
||||||
|
<sizepolicy hsizetype="Fixed" vsizetype="Fixed">
|
||||||
|
<horstretch>0</horstretch>
|
||||||
|
<verstretch>0</verstretch>
|
||||||
|
</sizepolicy>
|
||||||
|
</property>
|
||||||
|
<property name="text">
|
||||||
|
<string>Image</string>
|
||||||
|
</property>
|
||||||
|
<property name="alignment">
|
||||||
|
<set>Qt::AlignCenter</set>
|
||||||
|
</property>
|
||||||
|
</widget>
|
||||||
|
</item>
|
||||||
|
<item>
|
||||||
|
<widget class="QGraphicsView" name="SplImage">
|
||||||
|
<property name="sizePolicy">
|
||||||
|
<sizepolicy hsizetype="Preferred" vsizetype="Preferred">
|
||||||
|
<horstretch>0</horstretch>
|
||||||
|
<verstretch>0</verstretch>
|
||||||
|
</sizepolicy>
|
||||||
|
</property>
|
||||||
|
<property name="maximumSize">
|
||||||
|
<size>
|
||||||
|
<width>40</width>
|
||||||
|
<height>40</height>
|
||||||
|
</size>
|
||||||
|
</property>
|
||||||
|
</widget>
|
||||||
|
</item>
|
||||||
|
<item>
|
||||||
|
<spacer name="horizontalSpacer_8">
|
||||||
|
<property name="orientation">
|
||||||
|
<enum>Qt::Horizontal</enum>
|
||||||
|
</property>
|
||||||
|
<property name="sizeHint" stdset="0">
|
||||||
|
<size>
|
||||||
|
<width>40</width>
|
||||||
|
<height>20</height>
|
||||||
|
</size>
|
||||||
|
</property>
|
||||||
|
</spacer>
|
||||||
|
</item>
|
||||||
|
<item>
|
||||||
|
<widget class="QPushButton" name="pushButton_7">
|
||||||
|
<property name="enabled">
|
||||||
|
<bool>true</bool>
|
||||||
|
</property>
|
||||||
|
<property name="sizePolicy">
|
||||||
|
<sizepolicy hsizetype="Preferred" vsizetype="Preferred">
|
||||||
|
<horstretch>0</horstretch>
|
||||||
|
<verstretch>0</verstretch>
|
||||||
|
</sizepolicy>
|
||||||
|
</property>
|
||||||
|
<property name="maximumSize">
|
||||||
|
<size>
|
||||||
|
<width>48</width>
|
||||||
|
<height>32</height>
|
||||||
|
</size>
|
||||||
|
</property>
|
||||||
|
<property name="cursor">
|
||||||
|
<cursorShape>PointingHandCursor</cursorShape>
|
||||||
|
</property>
|
||||||
|
<property name="text">
|
||||||
|
<string>...</string>
|
||||||
|
</property>
|
||||||
|
</widget>
|
||||||
|
</item>
|
||||||
|
</layout>
|
||||||
|
</item>
|
||||||
|
</layout>
|
||||||
|
</widget>
|
||||||
|
</item>
|
||||||
|
<item row="1" column="0">
|
||||||
|
<layout class="QHBoxLayout" name="horizontalLayout_12" stretch="2,0">
|
||||||
|
<property name="spacing">
|
||||||
|
<number>20</number>
|
||||||
|
</property>
|
||||||
|
<item>
|
||||||
|
<widget class="QPushButton" name="pbSplAdd">
|
||||||
|
<property name="sizePolicy">
|
||||||
|
<sizepolicy hsizetype="Preferred" vsizetype="Fixed">
|
||||||
|
<horstretch>0</horstretch>
|
||||||
|
<verstretch>0</verstretch>
|
||||||
|
</sizepolicy>
|
||||||
|
</property>
|
||||||
|
<property name="cursor">
|
||||||
|
<cursorShape>PointingHandCursor</cursorShape>
|
||||||
|
</property>
|
||||||
|
<property name="text">
|
||||||
|
<string>Add</string>
|
||||||
|
</property>
|
||||||
|
</widget>
|
||||||
|
</item>
|
||||||
|
<item>
|
||||||
|
<widget class="QPushButton" name="pbSlpDel">
|
||||||
|
<property name="sizePolicy">
|
||||||
|
<sizepolicy hsizetype="Preferred" vsizetype="Fixed">
|
||||||
|
<horstretch>0</horstretch>
|
||||||
|
<verstretch>0</verstretch>
|
||||||
|
</sizepolicy>
|
||||||
|
</property>
|
||||||
|
<property name="cursor">
|
||||||
|
<cursorShape>PointingHandCursor</cursorShape>
|
||||||
|
</property>
|
||||||
|
<property name="text">
|
||||||
|
<string>Delete</string>
|
||||||
|
</property>
|
||||||
|
</widget>
|
||||||
|
</item>
|
||||||
|
</layout>
|
||||||
|
</item>
|
||||||
|
</layout>
|
||||||
|
</widget>
|
||||||
|
<widget class="QWidget" name="tab_2">
|
||||||
|
<attribute name="title">
|
||||||
|
<string>Tab 2</string>
|
||||||
|
</attribute>
|
||||||
|
</widget>
|
||||||
</widget>
|
</widget>
|
||||||
</item>
|
</item>
|
||||||
<item>
|
<item row="4" column="0">
|
||||||
<widget class="QPushButton" name="pbSave">
|
<widget class="QPushButton" name="pbSave">
|
||||||
|
<property name="cursor">
|
||||||
|
<cursorShape>PointingHandCursor</cursorShape>
|
||||||
|
</property>
|
||||||
<property name="text">
|
<property name="text">
|
||||||
<string>Save</string>
|
<string>Save</string>
|
||||||
</property>
|
</property>
|
||||||
|
|||||||
6
ADeditor/splashmodel.cpp
Normal file
6
ADeditor/splashmodel.cpp
Normal file
@@ -0,0 +1,6 @@
|
|||||||
|
#include "splashmodel.h"
|
||||||
|
|
||||||
|
SplashModel::SplashModel(QList<tbSplash> splashes, QObject *parent) :
|
||||||
|
QAbstractListModel(parent)
|
||||||
|
{
|
||||||
|
}
|
||||||
23
ADeditor/splashmodel.h
Normal file
23
ADeditor/splashmodel.h
Normal file
@@ -0,0 +1,23 @@
|
|||||||
|
#ifndef SPLASHMODEL_H
|
||||||
|
#define SPLASHMODEL_H
|
||||||
|
|
||||||
|
#include <QAbstractListModel>
|
||||||
|
#include "../loader.h"
|
||||||
|
|
||||||
|
class SplashModel : public QAbstractListModel
|
||||||
|
{
|
||||||
|
Q_OBJECT
|
||||||
|
public:
|
||||||
|
explicit SplashModel(QList <tbSplash> splashes, QObject *parent = 0);
|
||||||
|
//int rowCount(const QModelIndex &parent = QModelIndex()) const;
|
||||||
|
//QVariant data(const QModelIndex &index, int role) const;
|
||||||
|
void refresh(QList <tbSplash> splashes);
|
||||||
|
|
||||||
|
signals:
|
||||||
|
|
||||||
|
public slots:
|
||||||
|
private:
|
||||||
|
QList <tbSplash> splashes;
|
||||||
|
};
|
||||||
|
|
||||||
|
#endif // SPLASHMODEL_H
|
||||||
34
ADeditor/towermodel.cpp
Normal file
34
ADeditor/towermodel.cpp
Normal file
@@ -0,0 +1,34 @@
|
|||||||
|
#include "towermodel.h"
|
||||||
|
|
||||||
|
TowerModel::TowerModel(QList<tbTower> mtowers, QObject *parent) :
|
||||||
|
QAbstractListModel(parent)
|
||||||
|
{
|
||||||
|
towers = mtowers;
|
||||||
|
}
|
||||||
|
|
||||||
|
void TowerModel::refresh(QList<tbTower> mtowers)
|
||||||
|
{
|
||||||
|
towers = mtowers;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
int TowerModel::rowCount(const QModelIndex &) const
|
||||||
|
{
|
||||||
|
return towers.count();
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
QVariant TowerModel::data(const QModelIndex &index, int role) const
|
||||||
|
{
|
||||||
|
if (!index.isValid())
|
||||||
|
return QVariant();
|
||||||
|
|
||||||
|
if (index.row() >= towers.size())
|
||||||
|
return QVariant();
|
||||||
|
|
||||||
|
if (role == Qt::DisplayRole)
|
||||||
|
{
|
||||||
|
return towers.at(index.row()).name;
|
||||||
|
}
|
||||||
|
return QVariant();
|
||||||
|
}
|
||||||
22
ADeditor/towermodel.h
Normal file
22
ADeditor/towermodel.h
Normal file
@@ -0,0 +1,22 @@
|
|||||||
|
#ifndef TOWERMODEL_H
|
||||||
|
#define TOWERMODEL_H
|
||||||
|
|
||||||
|
#include <QAbstractListModel>
|
||||||
|
#include "../loader.h"
|
||||||
|
|
||||||
|
class TowerModel : public QAbstractListModel
|
||||||
|
{
|
||||||
|
Q_OBJECT
|
||||||
|
public:
|
||||||
|
explicit TowerModel(QList <tbTower> towers, QObject *parent = 0);
|
||||||
|
int rowCount(const QModelIndex &parent = QModelIndex()) const;
|
||||||
|
QVariant data(const QModelIndex &index, int role) const;
|
||||||
|
void refresh(QList <tbTower> towers);
|
||||||
|
signals:
|
||||||
|
|
||||||
|
public slots:
|
||||||
|
private:
|
||||||
|
QList <tbTower> towers;
|
||||||
|
};
|
||||||
|
|
||||||
|
#endif // TOWERMODEL_H
|
||||||
@@ -1,255 +1,113 @@
|
|||||||
<!DOCTYPE QtCreatorProject>
|
<!DOCTYPE QtCreatorProject>
|
||||||
<qtcreator>
|
<qtcreator>
|
||||||
<data>
|
<data>
|
||||||
<variable>RunConfiguration0-BaseEnvironmentBase</variable>
|
<variable>ProjectExplorer.Project.ActiveTarget</variable>
|
||||||
<value type="int">2</value>
|
|
||||||
</data>
|
|
||||||
<data>
|
|
||||||
<variable>RunConfiguration0-CommandLineArguments</variable>
|
|
||||||
<valuelist type="QVariantList"/>
|
|
||||||
</data>
|
|
||||||
<data>
|
|
||||||
<variable>RunConfiguration0-ProFile</variable>
|
|
||||||
<value type="QString">aliendefender.pro</value>
|
|
||||||
</data>
|
|
||||||
<data>
|
|
||||||
<variable>RunConfiguration0-RunConfiguration.name</variable>
|
|
||||||
<value type="QString">aliendefender</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>
|
<value type="int">0</value>
|
||||||
</data>
|
</data>
|
||||||
<data>
|
<data>
|
||||||
<variable>activebuildconfiguration</variable>
|
<variable>ProjectExplorer.Project.EditorSettings</variable>
|
||||||
<value type="QString">Debug</value>
|
|
||||||
</data>
|
|
||||||
<data>
|
|
||||||
<variable>buildConfiguration-Debug</variable>
|
|
||||||
<valuemap type="QVariantMap">
|
<valuemap type="QVariantMap">
|
||||||
<value key="ProjectExplorer.BuildConfiguration.DisplayName" type="QString">Debug</value>
|
<value key="EditorConfiguration.Codec" type="QByteArray">System</value>
|
||||||
<value key="QtVersionId" type="int">2</value>
|
|
||||||
<value key="ToolChain" type="int">0</value>
|
|
||||||
<value key="addQDumper" type=""></value>
|
|
||||||
<value key="buildConfiguration" type="int">2</value>
|
|
||||||
</valuemap>
|
</valuemap>
|
||||||
</data>
|
</data>
|
||||||
<data>
|
<data>
|
||||||
<variable>buildconfiguration-Debug-buildstep0</variable>
|
<variable>ProjectExplorer.Project.Target.0</variable>
|
||||||
<valuemap type="QVariantMap">
|
<valuemap type="QVariantMap">
|
||||||
<value key="ProjectExplorer.BuildConfiguration.DisplayName" type="QString">Debug</value>
|
<value key="ProjectExplorer.ProjectConfiguration.DisplayName" type="QString">Настольный компьютер</value>
|
||||||
<valuelist key="abstractProcess.Environment" type="QVariantList">
|
<value key="ProjectExplorer.ProjectConfiguration.Id" type="QString">Qt4ProjectManager.Target.DesktopTarget</value>
|
||||||
<value type="QString">DBUS_SESSION_BUS_ADDRESS=unix:abstract=/tmp/dbus-5i8Go7nPio,guid=870ffe971971ceac89206f0e4c5facbd</value>
|
<value key="ProjectExplorer.Target.ActiveBuildConfiguration" type="int">0</value>
|
||||||
<value type="QString">DEFAULTS_PATH=/usr/share/gconf/gnome.default.path</value>
|
<value key="ProjectExplorer.Target.ActiveRunConfiguration" type="int">0</value>
|
||||||
<value type="QString">DESKTOP_SESSION=gnome</value>
|
<valuemap key="ProjectExplorer.Target.BuildConfiguration.0" type="QVariantMap">
|
||||||
<value type="QString">DISPLAY=:0.0</value>
|
<valuemap key="ProjectExplorer.BuildConfiguration.BuildStep.0" type="QVariantMap">
|
||||||
<value type="QString">GDMSESSION=gnome</value>
|
<value key="ProjectExplorer.ProjectConfiguration.DisplayName" type="QString">qmake</value>
|
||||||
<value type="QString">GDM_KEYBOARD_LAYOUT=us</value>
|
<value key="ProjectExplorer.ProjectConfiguration.Id" type="QString">QtProjectManager.QMakeBuildStep</value>
|
||||||
<value type="QString">GDM_LANG=ru_RU.UTF-8</value>
|
<valuelist key="QtProjectManager.QMakeBuildStep.QMakeArguments" type="QVariantList"/>
|
||||||
<value type="QString">GNOME_DESKTOP_SESSION_ID=this-is-deprecated</value>
|
</valuemap>
|
||||||
<value type="QString">GNOME_KEYRING_CONTROL=/tmp/keyring-7vXnOW</value>
|
<valuemap key="ProjectExplorer.BuildConfiguration.BuildStep.1" type="QVariantMap">
|
||||||
<value type="QString">GTK_MODULES=canberra-gtk-module</value>
|
<value key="ProjectExplorer.ProjectConfiguration.DisplayName" type="QString">Сборка</value>
|
||||||
<value type="QString">HOME=/home/andrey</value>
|
<value key="ProjectExplorer.ProjectConfiguration.Id" type="QString">Qt4ProjectManager.MakeStep</value>
|
||||||
<value type="QString">LANG=ru_RU.UTF-8</value>
|
<value key="Qt4ProjectManager.MakeStep.Clean" type="bool">false</value>
|
||||||
<value type="QString">LD_LIBRARY_PATH=/usr/lib/qtcreator:</value>
|
<valuelist key="Qt4ProjectManager.MakeStep.MakeArguments" type="QVariantList"/>
|
||||||
<value type="QString">LOGNAME=andrey</value>
|
<value key="Qt4ProjectManager.MakeStep.MakeCommand" type="QString"></value>
|
||||||
<value type="QString">MANDATORY_PATH=/usr/share/gconf/gnome.mandatory.path</value>
|
</valuemap>
|
||||||
<value type="QString">ORBIT_SOCKETDIR=/tmp/orbit-andrey</value>
|
<value key="ProjectExplorer.BuildConfiguration.BuildStepsCount" type="int">2</value>
|
||||||
<value type="QString">PATH=/usr/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games</value>
|
<valuemap key="ProjectExplorer.BuildConfiguration.CleanStep.0" type="QVariantMap">
|
||||||
<value type="QString">PWD=/home/andrey</value>
|
<value key="ProjectExplorer.ProjectConfiguration.DisplayName" type="QString">Сборка</value>
|
||||||
<value type="QString">QTDIR=/usr/share/qt4</value>
|
<value key="ProjectExplorer.ProjectConfiguration.Id" type="QString">Qt4ProjectManager.MakeStep</value>
|
||||||
<value type="QString">SESSION_MANAGER=local/buull-eeePC:@/tmp/.ICE-unix/1124,unix/buull-eeePC:/tmp/.ICE-unix/1124</value>
|
<value key="Qt4ProjectManager.MakeStep.Clean" type="bool">true</value>
|
||||||
<value type="QString">SHELL=/bin/bash</value>
|
<valuelist key="Qt4ProjectManager.MakeStep.MakeArguments" type="QVariantList">
|
||||||
<value type="QString">SPEECHD_PORT=6561</value>
|
<value type="QString">clean</value>
|
||||||
<value type="QString">SSH_AGENT_PID=1158</value>
|
</valuelist>
|
||||||
<value type="QString">SSH_AUTH_SOCK=/tmp/keyring-7vXnOW/ssh</value>
|
<value key="Qt4ProjectManager.MakeStep.MakeCommand" type="QString"></value>
|
||||||
<value type="QString">USER=andrey</value>
|
</valuemap>
|
||||||
<value type="QString">USERNAME=andrey</value>
|
<value key="ProjectExplorer.BuildConfiguration.CleanStepsCount" type="int">1</value>
|
||||||
<value type="QString">XAUTHORITY=/var/run/gdm/auth-for-andrey-HWCXAG/database</value>
|
<value key="ProjectExplorer.BuildConfiguration.ClearSystemEnvironment" type="bool">false</value>
|
||||||
<value type="QString">XDG_CONFIG_DIRS=/etc/xdg/xdg-gnome:/etc/xdg</value>
|
<valuelist key="ProjectExplorer.BuildConfiguration.UserEnvironmentChanges" type="QVariantList"/>
|
||||||
<value type="QString">XDG_DATA_DIRS=/usr/share/gnome:/usr/local/share/:/usr/share/</value>
|
<value key="ProjectExplorer.ProjectConfiguration.DisplayName" type="QString">Отладка</value>
|
||||||
<value type="QString">XDG_SESSION_COOKIE=f0649decca52f2beb55c9ea74ad1d028-1281338556.676663-803309736</value>
|
<value key="ProjectExplorer.ProjectConfiguration.Id" type="QString">Qt4ProjectManager.Qt4BuildConfiguration</value>
|
||||||
</valuelist>
|
<value key="Qt4ProjectManager.Qt4BuildConfiguration.BuildConfiguration" type="int">2</value>
|
||||||
<valuelist key="abstractProcess.arguments" type="QVariantList">
|
<value key="Qt4ProjectManager.Qt4BuildConfiguration.BuildDirectory" type="QString">C:/Users/Andrey/Desktop/aliendefender-build-desktop</value>
|
||||||
<value type="QString">/home/andrey/AD/aliendefender/aliendefender.pro</value>
|
<value key="Qt4ProjectManager.Qt4BuildConfiguration.QtVersionId" type="int">5</value>
|
||||||
<value type="QString">-spec</value>
|
<value key="Qt4ProjectManager.Qt4BuildConfiguration.ToolChain" type="int">2</value>
|
||||||
<value type="QString">linux-g++</value>
|
<value key="Qt4ProjectManager.Qt4BuildConfiguration.UseShadowBuild" type="bool">true</value>
|
||||||
<value type="QString">-r</value>
|
</valuemap>
|
||||||
<value type="QString">CONFIG+=debug</value>
|
<valuemap key="ProjectExplorer.Target.BuildConfiguration.1" type="QVariantMap">
|
||||||
</valuelist>
|
<valuemap key="ProjectExplorer.BuildConfiguration.BuildStep.0" type="QVariantMap">
|
||||||
<value key="abstractProcess.command" type="QString">/usr/bin/qmake-qt4</value>
|
<value key="ProjectExplorer.ProjectConfiguration.DisplayName" type="QString">qmake</value>
|
||||||
<value key="abstractProcess.enabled" type="bool">false</value>
|
<value key="ProjectExplorer.ProjectConfiguration.Id" type="QString">QtProjectManager.QMakeBuildStep</value>
|
||||||
<value key="abstractProcess.workingDirectory" type="QString">/home/andrey/AD/aliendefender</value>
|
<valuelist key="QtProjectManager.QMakeBuildStep.QMakeArguments" type="QVariantList"/>
|
||||||
|
</valuemap>
|
||||||
|
<valuemap key="ProjectExplorer.BuildConfiguration.BuildStep.1" type="QVariantMap">
|
||||||
|
<value key="ProjectExplorer.ProjectConfiguration.DisplayName" type="QString">Сборка</value>
|
||||||
|
<value key="ProjectExplorer.ProjectConfiguration.Id" type="QString">Qt4ProjectManager.MakeStep</value>
|
||||||
|
<value key="Qt4ProjectManager.MakeStep.Clean" type="bool">false</value>
|
||||||
|
<valuelist key="Qt4ProjectManager.MakeStep.MakeArguments" type="QVariantList"/>
|
||||||
|
<value key="Qt4ProjectManager.MakeStep.MakeCommand" type="QString"></value>
|
||||||
|
</valuemap>
|
||||||
|
<value key="ProjectExplorer.BuildConfiguration.BuildStepsCount" type="int">2</value>
|
||||||
|
<valuemap key="ProjectExplorer.BuildConfiguration.CleanStep.0" type="QVariantMap">
|
||||||
|
<value key="ProjectExplorer.ProjectConfiguration.DisplayName" type="QString">Сборка</value>
|
||||||
|
<value key="ProjectExplorer.ProjectConfiguration.Id" type="QString">Qt4ProjectManager.MakeStep</value>
|
||||||
|
<value key="Qt4ProjectManager.MakeStep.Clean" type="bool">true</value>
|
||||||
|
<valuelist key="Qt4ProjectManager.MakeStep.MakeArguments" type="QVariantList">
|
||||||
|
<value type="QString">clean</value>
|
||||||
|
</valuelist>
|
||||||
|
<value key="Qt4ProjectManager.MakeStep.MakeCommand" type="QString"></value>
|
||||||
|
</valuemap>
|
||||||
|
<value key="ProjectExplorer.BuildConfiguration.CleanStepsCount" type="int">1</value>
|
||||||
|
<value key="ProjectExplorer.BuildConfiguration.ClearSystemEnvironment" type="bool">false</value>
|
||||||
|
<valuelist key="ProjectExplorer.BuildConfiguration.UserEnvironmentChanges" type="QVariantList"/>
|
||||||
|
<value key="ProjectExplorer.ProjectConfiguration.DisplayName" type="QString">Релиз</value>
|
||||||
|
<value key="ProjectExplorer.ProjectConfiguration.Id" type="QString">Qt4ProjectManager.Qt4BuildConfiguration</value>
|
||||||
|
<value key="Qt4ProjectManager.Qt4BuildConfiguration.BuildConfiguration" type="int">0</value>
|
||||||
|
<value key="Qt4ProjectManager.Qt4BuildConfiguration.BuildDirectory" type="QString">C:/Users/Andrey/Desktop/aliendefender-build-desktop</value>
|
||||||
|
<value key="Qt4ProjectManager.Qt4BuildConfiguration.QtVersionId" type="int">5</value>
|
||||||
|
<value key="Qt4ProjectManager.Qt4BuildConfiguration.ToolChain" type="int">2</value>
|
||||||
|
<value key="Qt4ProjectManager.Qt4BuildConfiguration.UseShadowBuild" type="bool">true</value>
|
||||||
|
</valuemap>
|
||||||
|
<value key="ProjectExplorer.Target.BuildConfigurationCount" type="int">2</value>
|
||||||
|
<valuemap key="ProjectExplorer.Target.RunConfiguration.0" type="QVariantMap">
|
||||||
|
<value key="ProjectExplorer.ProjectConfiguration.DisplayName" type="QString">aliendefender</value>
|
||||||
|
<value key="ProjectExplorer.ProjectConfiguration.Id" type="QString">Qt4ProjectManager.Qt4RunConfiguration</value>
|
||||||
|
<value key="Qt4ProjectManager.Qt4RunConfiguration.BaseEnvironmentBase" type="int">2</value>
|
||||||
|
<valuelist key="Qt4ProjectManager.Qt4RunConfiguration.CommandLineArguments" type="QVariantList"/>
|
||||||
|
<value key="Qt4ProjectManager.Qt4RunConfiguration.ProFile" type="QString">aliendefender.pro</value>
|
||||||
|
<value key="Qt4ProjectManager.Qt4RunConfiguration.UseDyldImageSuffix" type="bool">false</value>
|
||||||
|
<value key="Qt4ProjectManager.Qt4RunConfiguration.UseTerminal" type="bool">false</value>
|
||||||
|
<valuelist key="Qt4ProjectManager.Qt4RunConfiguration.UserEnvironmentChanges" type="QVariantList"/>
|
||||||
|
<value key="Qt4ProjectManager.Qt4RunConfiguration.UserSetName" type="bool">false</value>
|
||||||
|
<value key="Qt4ProjectManager.Qt4RunConfiguration.UserSetWorkingDirectory" type="bool">false</value>
|
||||||
|
<value key="Qt4ProjectManager.Qt4RunConfiguration.UserWorkingDirectory" type="QString"></value>
|
||||||
|
</valuemap>
|
||||||
|
<value key="ProjectExplorer.Target.RunConfigurationCount" type="int">1</value>
|
||||||
</valuemap>
|
</valuemap>
|
||||||
</data>
|
</data>
|
||||||
<data>
|
<data>
|
||||||
<variable>buildconfiguration-Debug-buildstep1</variable>
|
<variable>ProjectExplorer.Project.TargetCount</variable>
|
||||||
<valuemap type="QVariantMap">
|
<value type="int">1</value>
|
||||||
<value key="ProjectExplorer.BuildConfiguration.DisplayName" type="QString">Debug</value>
|
|
||||||
<valuelist key="abstractProcess.Environment" type="QVariantList">
|
|
||||||
<value type="QString">DBUS_SESSION_BUS_ADDRESS=unix:abstract=/tmp/dbus-5i8Go7nPio,guid=870ffe971971ceac89206f0e4c5facbd</value>
|
|
||||||
<value type="QString">DEFAULTS_PATH=/usr/share/gconf/gnome.default.path</value>
|
|
||||||
<value type="QString">DESKTOP_SESSION=gnome</value>
|
|
||||||
<value type="QString">DISPLAY=:0.0</value>
|
|
||||||
<value type="QString">GDMSESSION=gnome</value>
|
|
||||||
<value type="QString">GDM_KEYBOARD_LAYOUT=us</value>
|
|
||||||
<value type="QString">GDM_LANG=ru_RU.UTF-8</value>
|
|
||||||
<value type="QString">GNOME_DESKTOP_SESSION_ID=this-is-deprecated</value>
|
|
||||||
<value type="QString">GNOME_KEYRING_CONTROL=/tmp/keyring-7vXnOW</value>
|
|
||||||
<value type="QString">GTK_MODULES=canberra-gtk-module</value>
|
|
||||||
<value type="QString">HOME=/home/andrey</value>
|
|
||||||
<value type="QString">LANG=ru_RU.UTF-8</value>
|
|
||||||
<value type="QString">LD_LIBRARY_PATH=/usr/lib/qtcreator:</value>
|
|
||||||
<value type="QString">LOGNAME=andrey</value>
|
|
||||||
<value type="QString">MANDATORY_PATH=/usr/share/gconf/gnome.mandatory.path</value>
|
|
||||||
<value type="QString">ORBIT_SOCKETDIR=/tmp/orbit-andrey</value>
|
|
||||||
<value type="QString">PATH=/usr/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games</value>
|
|
||||||
<value type="QString">PWD=/home/andrey</value>
|
|
||||||
<value type="QString">QTDIR=/usr/share/qt4</value>
|
|
||||||
<value type="QString">SESSION_MANAGER=local/buull-eeePC:@/tmp/.ICE-unix/1124,unix/buull-eeePC:/tmp/.ICE-unix/1124</value>
|
|
||||||
<value type="QString">SHELL=/bin/bash</value>
|
|
||||||
<value type="QString">SPEECHD_PORT=6561</value>
|
|
||||||
<value type="QString">SSH_AGENT_PID=1158</value>
|
|
||||||
<value type="QString">SSH_AUTH_SOCK=/tmp/keyring-7vXnOW/ssh</value>
|
|
||||||
<value type="QString">USER=andrey</value>
|
|
||||||
<value type="QString">USERNAME=andrey</value>
|
|
||||||
<value type="QString">XAUTHORITY=/var/run/gdm/auth-for-andrey-HWCXAG/database</value>
|
|
||||||
<value type="QString">XDG_CONFIG_DIRS=/etc/xdg/xdg-gnome:/etc/xdg</value>
|
|
||||||
<value type="QString">XDG_DATA_DIRS=/usr/share/gnome:/usr/local/share/:/usr/share/</value>
|
|
||||||
<value type="QString">XDG_SESSION_COOKIE=f0649decca52f2beb55c9ea74ad1d028-1281338556.676663-803309736</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">/home/andrey/AD/aliendefender</value>
|
|
||||||
</valuemap>
|
|
||||||
</data>
|
</data>
|
||||||
<data>
|
<data>
|
||||||
<variable>buildconfiguration-Debug-cleanstep0</variable>
|
<variable>ProjectExplorer.Project.Updater.FileVersion</variable>
|
||||||
<valuemap type="QVariantMap">
|
<value type="int">4</value>
|
||||||
<value key="ProjectExplorer.BuildConfiguration.DisplayName" type="QString">Debug</value>
|
|
||||||
<valuelist key="abstractProcess.Environment" type="QVariantList">
|
|
||||||
<value type="QString">DBUS_SESSION_BUS_ADDRESS=unix:abstract=/tmp/dbus-5i8Go7nPio,guid=870ffe971971ceac89206f0e4c5facbd</value>
|
|
||||||
<value type="QString">DEFAULTS_PATH=/usr/share/gconf/gnome.default.path</value>
|
|
||||||
<value type="QString">DESKTOP_SESSION=gnome</value>
|
|
||||||
<value type="QString">DISPLAY=:0.0</value>
|
|
||||||
<value type="QString">GDMSESSION=gnome</value>
|
|
||||||
<value type="QString">GDM_KEYBOARD_LAYOUT=us</value>
|
|
||||||
<value type="QString">GDM_LANG=ru_RU.UTF-8</value>
|
|
||||||
<value type="QString">GNOME_DESKTOP_SESSION_ID=this-is-deprecated</value>
|
|
||||||
<value type="QString">GNOME_KEYRING_CONTROL=/tmp/keyring-7vXnOW</value>
|
|
||||||
<value type="QString">GTK_MODULES=canberra-gtk-module</value>
|
|
||||||
<value type="QString">HOME=/home/andrey</value>
|
|
||||||
<value type="QString">LANG=ru_RU.UTF-8</value>
|
|
||||||
<value type="QString">LD_LIBRARY_PATH=/usr/lib/qtcreator:</value>
|
|
||||||
<value type="QString">LOGNAME=andrey</value>
|
|
||||||
<value type="QString">MANDATORY_PATH=/usr/share/gconf/gnome.mandatory.path</value>
|
|
||||||
<value type="QString">ORBIT_SOCKETDIR=/tmp/orbit-andrey</value>
|
|
||||||
<value type="QString">PATH=/usr/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games</value>
|
|
||||||
<value type="QString">PWD=/home/andrey</value>
|
|
||||||
<value type="QString">QTDIR=/usr/share/qt4</value>
|
|
||||||
<value type="QString">SESSION_MANAGER=local/buull-eeePC:@/tmp/.ICE-unix/1124,unix/buull-eeePC:/tmp/.ICE-unix/1124</value>
|
|
||||||
<value type="QString">SHELL=/bin/bash</value>
|
|
||||||
<value type="QString">SPEECHD_PORT=6561</value>
|
|
||||||
<value type="QString">SSH_AGENT_PID=1158</value>
|
|
||||||
<value type="QString">SSH_AUTH_SOCK=/tmp/keyring-7vXnOW/ssh</value>
|
|
||||||
<value type="QString">USER=andrey</value>
|
|
||||||
<value type="QString">USERNAME=andrey</value>
|
|
||||||
<value type="QString">XAUTHORITY=/var/run/gdm/auth-for-andrey-HWCXAG/database</value>
|
|
||||||
<value type="QString">XDG_CONFIG_DIRS=/etc/xdg/xdg-gnome:/etc/xdg</value>
|
|
||||||
<value type="QString">XDG_DATA_DIRS=/usr/share/gnome:/usr/local/share/:/usr/share/</value>
|
|
||||||
<value type="QString">XDG_SESSION_COOKIE=f0649decca52f2beb55c9ea74ad1d028-1281338556.676663-803309736</value>
|
|
||||||
</valuelist>
|
|
||||||
<value key="abstractProcess.IgnoreReturnValue" type="bool">true</value>
|
|
||||||
<valuelist key="abstractProcess.arguments" type="QVariantList">
|
|
||||||
<value type="QString">clean</value>
|
|
||||||
<value type="QString">-w</value>
|
|
||||||
</valuelist>
|
|
||||||
<value key="abstractProcess.command" type="QString">/usr/bin/make</value>
|
|
||||||
<value key="abstractProcess.enabled" type="bool">true</value>
|
|
||||||
<value key="abstractProcess.workingDirectory" type="QString">/home/andrey/AD/aliendefender</value>
|
|
||||||
<value key="cleanConfig" type="bool">true</value>
|
|
||||||
<valuelist key="makeargs" type="QVariantList">
|
|
||||||
<value type="QString">clean</value>
|
|
||||||
</valuelist>
|
|
||||||
</valuemap>
|
|
||||||
</data>
|
|
||||||
<data>
|
|
||||||
<variable>buildconfigurations</variable>
|
|
||||||
<valuelist type="QVariantList">
|
|
||||||
<value type="QString">Debug</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>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>
|
</data>
|
||||||
</qtcreator>
|
</qtcreator>
|
||||||
|
|||||||
@@ -56,25 +56,18 @@
|
|||||||
<variable>buildConfiguration-Debug</variable>
|
<variable>buildConfiguration-Debug</variable>
|
||||||
<valuemap type="QVariantMap">
|
<valuemap type="QVariantMap">
|
||||||
<value key="ProjectExplorer.BuildConfiguration.DisplayName" type="QString">Debug</value>
|
<value key="ProjectExplorer.BuildConfiguration.DisplayName" type="QString">Debug</value>
|
||||||
<value key="QtVersionId" type="int">0</value>
|
<value key="QtVersionId" type="int">2</value>
|
||||||
<value key="ToolChain" type="int">0</value>
|
<value key="ToolChain" type="int">0</value>
|
||||||
|
<value key="addQDumper" type=""></value>
|
||||||
<value key="buildConfiguration" type="int">2</value>
|
<value key="buildConfiguration" type="int">2</value>
|
||||||
</valuemap>
|
</valuemap>
|
||||||
</data>
|
</data>
|
||||||
<data>
|
|
||||||
<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>
|
<data>
|
||||||
<variable>buildconfiguration-Debug-buildstep0</variable>
|
<variable>buildconfiguration-Debug-buildstep0</variable>
|
||||||
<valuemap type="QVariantMap">
|
<valuemap type="QVariantMap">
|
||||||
<value key="ProjectExplorer.BuildConfiguration.DisplayName" type="QString">Debug</value>
|
<value key="ProjectExplorer.BuildConfiguration.DisplayName" type="QString">Debug</value>
|
||||||
<valuelist key="abstractProcess.Environment" type="QVariantList">
|
<valuelist key="abstractProcess.Environment" type="QVariantList">
|
||||||
<value type="QString">DBUS_SESSION_BUS_ADDRESS=unix:abstract=/tmp/dbus-p5HnkClUWv,guid=600e78a10ff64ffb1ced7c414c4c6498</value>
|
<value type="QString">DBUS_SESSION_BUS_ADDRESS=unix:abstract=/tmp/dbus-5i8Go7nPio,guid=870ffe971971ceac89206f0e4c5facbd</value>
|
||||||
<value type="QString">DEFAULTS_PATH=/usr/share/gconf/gnome.default.path</value>
|
<value type="QString">DEFAULTS_PATH=/usr/share/gconf/gnome.default.path</value>
|
||||||
<value type="QString">DESKTOP_SESSION=gnome</value>
|
<value type="QString">DESKTOP_SESSION=gnome</value>
|
||||||
<value type="QString">DISPLAY=:0.0</value>
|
<value type="QString">DISPLAY=:0.0</value>
|
||||||
@@ -82,7 +75,7 @@
|
|||||||
<value type="QString">GDM_KEYBOARD_LAYOUT=us</value>
|
<value type="QString">GDM_KEYBOARD_LAYOUT=us</value>
|
||||||
<value type="QString">GDM_LANG=ru_RU.UTF-8</value>
|
<value type="QString">GDM_LANG=ru_RU.UTF-8</value>
|
||||||
<value type="QString">GNOME_DESKTOP_SESSION_ID=this-is-deprecated</value>
|
<value type="QString">GNOME_DESKTOP_SESSION_ID=this-is-deprecated</value>
|
||||||
<value type="QString">GNOME_KEYRING_CONTROL=/tmp/keyring-wgH6gj</value>
|
<value type="QString">GNOME_KEYRING_CONTROL=/tmp/keyring-7vXnOW</value>
|
||||||
<value type="QString">GTK_MODULES=canberra-gtk-module</value>
|
<value type="QString">GTK_MODULES=canberra-gtk-module</value>
|
||||||
<value type="QString">HOME=/home/andrey</value>
|
<value type="QString">HOME=/home/andrey</value>
|
||||||
<value type="QString">LANG=ru_RU.UTF-8</value>
|
<value type="QString">LANG=ru_RU.UTF-8</value>
|
||||||
@@ -93,20 +86,20 @@
|
|||||||
<value type="QString">PATH=/usr/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games</value>
|
<value type="QString">PATH=/usr/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games</value>
|
||||||
<value type="QString">PWD=/home/andrey</value>
|
<value type="QString">PWD=/home/andrey</value>
|
||||||
<value type="QString">QTDIR=/usr/share/qt4</value>
|
<value type="QString">QTDIR=/usr/share/qt4</value>
|
||||||
<value type="QString">SESSION_MANAGER=local/buull-eeePC:@/tmp/.ICE-unix/1203,unix/buull-eeePC:/tmp/.ICE-unix/1203</value>
|
<value type="QString">SESSION_MANAGER=local/buull-eeePC:@/tmp/.ICE-unix/1124,unix/buull-eeePC:/tmp/.ICE-unix/1124</value>
|
||||||
<value type="QString">SHELL=/bin/bash</value>
|
<value type="QString">SHELL=/bin/bash</value>
|
||||||
<value type="QString">SPEECHD_PORT=6561</value>
|
<value type="QString">SPEECHD_PORT=6561</value>
|
||||||
<value type="QString">SSH_AGENT_PID=1245</value>
|
<value type="QString">SSH_AGENT_PID=1158</value>
|
||||||
<value type="QString">SSH_AUTH_SOCK=/tmp/keyring-wgH6gj/ssh</value>
|
<value type="QString">SSH_AUTH_SOCK=/tmp/keyring-7vXnOW/ssh</value>
|
||||||
<value type="QString">USER=andrey</value>
|
<value type="QString">USER=andrey</value>
|
||||||
<value type="QString">USERNAME=andrey</value>
|
<value type="QString">USERNAME=andrey</value>
|
||||||
<value type="QString">XAUTHORITY=/var/run/gdm/auth-for-andrey-MPPKxH/database</value>
|
<value type="QString">XAUTHORITY=/var/run/gdm/auth-for-andrey-HWCXAG/database</value>
|
||||||
<value type="QString">XDG_CONFIG_DIRS=/etc/xdg/xdg-gnome:/etc/xdg</value>
|
<value type="QString">XDG_CONFIG_DIRS=/etc/xdg/xdg-gnome:/etc/xdg</value>
|
||||||
<value type="QString">XDG_DATA_DIRS=/usr/share/gnome:/usr/local/share/:/usr/share/</value>
|
<value type="QString">XDG_DATA_DIRS=/usr/share/gnome:/usr/local/share/:/usr/share/</value>
|
||||||
<value type="QString">XDG_SESSION_COOKIE=f0649decca52f2beb55c9ea74ad1d028-1280074903.597291-1238668786</value>
|
<value type="QString">XDG_SESSION_COOKIE=f0649decca52f2beb55c9ea74ad1d028-1281338556.676663-803309736</value>
|
||||||
</valuelist>
|
</valuelist>
|
||||||
<valuelist key="abstractProcess.arguments" type="QVariantList">
|
<valuelist key="abstractProcess.arguments" type="QVariantList">
|
||||||
<value type="QString">/home/andrey/aliendefender/aliendefender.pro</value>
|
<value type="QString">/home/andrey/AD/aliendefender/aliendefender.pro</value>
|
||||||
<value type="QString">-spec</value>
|
<value type="QString">-spec</value>
|
||||||
<value type="QString">linux-g++</value>
|
<value type="QString">linux-g++</value>
|
||||||
<value type="QString">-r</value>
|
<value type="QString">-r</value>
|
||||||
@@ -114,7 +107,7 @@
|
|||||||
</valuelist>
|
</valuelist>
|
||||||
<value key="abstractProcess.command" type="QString">/usr/bin/qmake-qt4</value>
|
<value key="abstractProcess.command" type="QString">/usr/bin/qmake-qt4</value>
|
||||||
<value key="abstractProcess.enabled" type="bool">false</value>
|
<value key="abstractProcess.enabled" type="bool">false</value>
|
||||||
<value key="abstractProcess.workingDirectory" type="QString">/home/andrey/aliendefender</value>
|
<value key="abstractProcess.workingDirectory" type="QString">/home/andrey/AD/aliendefender</value>
|
||||||
</valuemap>
|
</valuemap>
|
||||||
</data>
|
</data>
|
||||||
<data>
|
<data>
|
||||||
@@ -122,7 +115,7 @@
|
|||||||
<valuemap type="QVariantMap">
|
<valuemap type="QVariantMap">
|
||||||
<value key="ProjectExplorer.BuildConfiguration.DisplayName" type="QString">Debug</value>
|
<value key="ProjectExplorer.BuildConfiguration.DisplayName" type="QString">Debug</value>
|
||||||
<valuelist key="abstractProcess.Environment" type="QVariantList">
|
<valuelist key="abstractProcess.Environment" type="QVariantList">
|
||||||
<value type="QString">DBUS_SESSION_BUS_ADDRESS=unix:abstract=/tmp/dbus-p5HnkClUWv,guid=600e78a10ff64ffb1ced7c414c4c6498</value>
|
<value type="QString">DBUS_SESSION_BUS_ADDRESS=unix:abstract=/tmp/dbus-5i8Go7nPio,guid=870ffe971971ceac89206f0e4c5facbd</value>
|
||||||
<value type="QString">DEFAULTS_PATH=/usr/share/gconf/gnome.default.path</value>
|
<value type="QString">DEFAULTS_PATH=/usr/share/gconf/gnome.default.path</value>
|
||||||
<value type="QString">DESKTOP_SESSION=gnome</value>
|
<value type="QString">DESKTOP_SESSION=gnome</value>
|
||||||
<value type="QString">DISPLAY=:0.0</value>
|
<value type="QString">DISPLAY=:0.0</value>
|
||||||
@@ -130,7 +123,7 @@
|
|||||||
<value type="QString">GDM_KEYBOARD_LAYOUT=us</value>
|
<value type="QString">GDM_KEYBOARD_LAYOUT=us</value>
|
||||||
<value type="QString">GDM_LANG=ru_RU.UTF-8</value>
|
<value type="QString">GDM_LANG=ru_RU.UTF-8</value>
|
||||||
<value type="QString">GNOME_DESKTOP_SESSION_ID=this-is-deprecated</value>
|
<value type="QString">GNOME_DESKTOP_SESSION_ID=this-is-deprecated</value>
|
||||||
<value type="QString">GNOME_KEYRING_CONTROL=/tmp/keyring-wgH6gj</value>
|
<value type="QString">GNOME_KEYRING_CONTROL=/tmp/keyring-7vXnOW</value>
|
||||||
<value type="QString">GTK_MODULES=canberra-gtk-module</value>
|
<value type="QString">GTK_MODULES=canberra-gtk-module</value>
|
||||||
<value type="QString">HOME=/home/andrey</value>
|
<value type="QString">HOME=/home/andrey</value>
|
||||||
<value type="QString">LANG=ru_RU.UTF-8</value>
|
<value type="QString">LANG=ru_RU.UTF-8</value>
|
||||||
@@ -141,17 +134,17 @@
|
|||||||
<value type="QString">PATH=/usr/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games</value>
|
<value type="QString">PATH=/usr/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games</value>
|
||||||
<value type="QString">PWD=/home/andrey</value>
|
<value type="QString">PWD=/home/andrey</value>
|
||||||
<value type="QString">QTDIR=/usr/share/qt4</value>
|
<value type="QString">QTDIR=/usr/share/qt4</value>
|
||||||
<value type="QString">SESSION_MANAGER=local/buull-eeePC:@/tmp/.ICE-unix/1203,unix/buull-eeePC:/tmp/.ICE-unix/1203</value>
|
<value type="QString">SESSION_MANAGER=local/buull-eeePC:@/tmp/.ICE-unix/1124,unix/buull-eeePC:/tmp/.ICE-unix/1124</value>
|
||||||
<value type="QString">SHELL=/bin/bash</value>
|
<value type="QString">SHELL=/bin/bash</value>
|
||||||
<value type="QString">SPEECHD_PORT=6561</value>
|
<value type="QString">SPEECHD_PORT=6561</value>
|
||||||
<value type="QString">SSH_AGENT_PID=1245</value>
|
<value type="QString">SSH_AGENT_PID=1158</value>
|
||||||
<value type="QString">SSH_AUTH_SOCK=/tmp/keyring-wgH6gj/ssh</value>
|
<value type="QString">SSH_AUTH_SOCK=/tmp/keyring-7vXnOW/ssh</value>
|
||||||
<value type="QString">USER=andrey</value>
|
<value type="QString">USER=andrey</value>
|
||||||
<value type="QString">USERNAME=andrey</value>
|
<value type="QString">USERNAME=andrey</value>
|
||||||
<value type="QString">XAUTHORITY=/var/run/gdm/auth-for-andrey-MPPKxH/database</value>
|
<value type="QString">XAUTHORITY=/var/run/gdm/auth-for-andrey-HWCXAG/database</value>
|
||||||
<value type="QString">XDG_CONFIG_DIRS=/etc/xdg/xdg-gnome:/etc/xdg</value>
|
<value type="QString">XDG_CONFIG_DIRS=/etc/xdg/xdg-gnome:/etc/xdg</value>
|
||||||
<value type="QString">XDG_DATA_DIRS=/usr/share/gnome:/usr/local/share/:/usr/share/</value>
|
<value type="QString">XDG_DATA_DIRS=/usr/share/gnome:/usr/local/share/:/usr/share/</value>
|
||||||
<value type="QString">XDG_SESSION_COOKIE=f0649decca52f2beb55c9ea74ad1d028-1280074903.597291-1238668786</value>
|
<value type="QString">XDG_SESSION_COOKIE=f0649decca52f2beb55c9ea74ad1d028-1281338556.676663-803309736</value>
|
||||||
</valuelist>
|
</valuelist>
|
||||||
<value key="abstractProcess.IgnoreReturnValue" type="bool">false</value>
|
<value key="abstractProcess.IgnoreReturnValue" type="bool">false</value>
|
||||||
<valuelist key="abstractProcess.arguments" type="QVariantList">
|
<valuelist key="abstractProcess.arguments" type="QVariantList">
|
||||||
@@ -159,42 +152,63 @@
|
|||||||
</valuelist>
|
</valuelist>
|
||||||
<value key="abstractProcess.command" type="QString">/usr/bin/make</value>
|
<value key="abstractProcess.command" type="QString">/usr/bin/make</value>
|
||||||
<value key="abstractProcess.enabled" type="bool">true</value>
|
<value key="abstractProcess.enabled" type="bool">true</value>
|
||||||
<value key="abstractProcess.workingDirectory" type="QString">/home/andrey/aliendefender</value>
|
<value key="abstractProcess.workingDirectory" type="QString">/home/andrey/AD/aliendefender</value>
|
||||||
</valuemap>
|
</valuemap>
|
||||||
</data>
|
</data>
|
||||||
<data>
|
<data>
|
||||||
<variable>buildconfiguration-Debug-cleanstep0</variable>
|
<variable>buildconfiguration-Debug-cleanstep0</variable>
|
||||||
<valuemap type="QVariantMap">
|
<valuemap type="QVariantMap">
|
||||||
<value key="ProjectExplorer.BuildConfiguration.DisplayName" type="QString">Debug</value>
|
<value key="ProjectExplorer.BuildConfiguration.DisplayName" type="QString">Debug</value>
|
||||||
|
<valuelist key="abstractProcess.Environment" type="QVariantList">
|
||||||
|
<value type="QString">DBUS_SESSION_BUS_ADDRESS=unix:abstract=/tmp/dbus-5i8Go7nPio,guid=870ffe971971ceac89206f0e4c5facbd</value>
|
||||||
|
<value type="QString">DEFAULTS_PATH=/usr/share/gconf/gnome.default.path</value>
|
||||||
|
<value type="QString">DESKTOP_SESSION=gnome</value>
|
||||||
|
<value type="QString">DISPLAY=:0.0</value>
|
||||||
|
<value type="QString">GDMSESSION=gnome</value>
|
||||||
|
<value type="QString">GDM_KEYBOARD_LAYOUT=us</value>
|
||||||
|
<value type="QString">GDM_LANG=ru_RU.UTF-8</value>
|
||||||
|
<value type="QString">GNOME_DESKTOP_SESSION_ID=this-is-deprecated</value>
|
||||||
|
<value type="QString">GNOME_KEYRING_CONTROL=/tmp/keyring-7vXnOW</value>
|
||||||
|
<value type="QString">GTK_MODULES=canberra-gtk-module</value>
|
||||||
|
<value type="QString">HOME=/home/andrey</value>
|
||||||
|
<value type="QString">LANG=ru_RU.UTF-8</value>
|
||||||
|
<value type="QString">LD_LIBRARY_PATH=/usr/lib/qtcreator:</value>
|
||||||
|
<value type="QString">LOGNAME=andrey</value>
|
||||||
|
<value type="QString">MANDATORY_PATH=/usr/share/gconf/gnome.mandatory.path</value>
|
||||||
|
<value type="QString">ORBIT_SOCKETDIR=/tmp/orbit-andrey</value>
|
||||||
|
<value type="QString">PATH=/usr/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games</value>
|
||||||
|
<value type="QString">PWD=/home/andrey</value>
|
||||||
|
<value type="QString">QTDIR=/usr/share/qt4</value>
|
||||||
|
<value type="QString">SESSION_MANAGER=local/buull-eeePC:@/tmp/.ICE-unix/1124,unix/buull-eeePC:/tmp/.ICE-unix/1124</value>
|
||||||
|
<value type="QString">SHELL=/bin/bash</value>
|
||||||
|
<value type="QString">SPEECHD_PORT=6561</value>
|
||||||
|
<value type="QString">SSH_AGENT_PID=1158</value>
|
||||||
|
<value type="QString">SSH_AUTH_SOCK=/tmp/keyring-7vXnOW/ssh</value>
|
||||||
|
<value type="QString">USER=andrey</value>
|
||||||
|
<value type="QString">USERNAME=andrey</value>
|
||||||
|
<value type="QString">XAUTHORITY=/var/run/gdm/auth-for-andrey-HWCXAG/database</value>
|
||||||
|
<value type="QString">XDG_CONFIG_DIRS=/etc/xdg/xdg-gnome:/etc/xdg</value>
|
||||||
|
<value type="QString">XDG_DATA_DIRS=/usr/share/gnome:/usr/local/share/:/usr/share/</value>
|
||||||
|
<value type="QString">XDG_SESSION_COOKIE=f0649decca52f2beb55c9ea74ad1d028-1281338556.676663-803309736</value>
|
||||||
|
</valuelist>
|
||||||
|
<value key="abstractProcess.IgnoreReturnValue" type="bool">true</value>
|
||||||
|
<valuelist key="abstractProcess.arguments" type="QVariantList">
|
||||||
|
<value type="QString">clean</value>
|
||||||
|
<value type="QString">-w</value>
|
||||||
|
</valuelist>
|
||||||
|
<value key="abstractProcess.command" type="QString">/usr/bin/make</value>
|
||||||
|
<value key="abstractProcess.enabled" type="bool">true</value>
|
||||||
|
<value key="abstractProcess.workingDirectory" type="QString">/home/andrey/AD/aliendefender</value>
|
||||||
<value key="cleanConfig" type="bool">true</value>
|
<value key="cleanConfig" type="bool">true</value>
|
||||||
<valuelist key="makeargs" type="QVariantList">
|
<valuelist key="makeargs" type="QVariantList">
|
||||||
<value type="QString">clean</value>
|
<value type="QString">clean</value>
|
||||||
</valuelist>
|
</valuelist>
|
||||||
</valuemap>
|
</valuemap>
|
||||||
</data>
|
</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>
|
<data>
|
||||||
<variable>buildconfigurations</variable>
|
<variable>buildconfigurations</variable>
|
||||||
<valuelist type="QVariantList">
|
<valuelist type="QVariantList">
|
||||||
<value type="QString">Debug</value>
|
<value type="QString">Debug</value>
|
||||||
<value type="QString">Release</value>
|
|
||||||
</valuelist>
|
</valuelist>
|
||||||
</data>
|
</data>
|
||||||
<data>
|
<data>
|
||||||
|
|||||||
@@ -726,7 +726,7 @@ void Loader::readMaps()
|
|||||||
|
|
||||||
void Loader::validate(QString filename)
|
void Loader::validate(QString filename)
|
||||||
{
|
{
|
||||||
QFile sfile("schema.xml");
|
QFile sfile("schema.xml");
|
||||||
if (!sfile.open(QIODevice::ReadOnly))
|
if (!sfile.open(QIODevice::ReadOnly))
|
||||||
qFatal("No file schema.xml found!");
|
qFatal("No file schema.xml found!");
|
||||||
QXmlSchema schema;
|
QXmlSchema schema;
|
||||||
|
|||||||
30
loader.h
30
loader.h
@@ -8,10 +8,14 @@
|
|||||||
#include <QXmlSchemaValidator>
|
#include <QXmlSchemaValidator>
|
||||||
#include "game_data.h"
|
#include "game_data.h"
|
||||||
|
|
||||||
struct tbAlien
|
struct tbHeader
|
||||||
|
{
|
||||||
|
int id;
|
||||||
|
QString name;
|
||||||
|
};
|
||||||
|
|
||||||
|
struct tbAlien : tbHeader
|
||||||
{
|
{
|
||||||
int id;
|
|
||||||
QString name;
|
|
||||||
float speed;
|
float speed;
|
||||||
float health;
|
float health;
|
||||||
float armor;
|
float armor;
|
||||||
@@ -22,17 +26,15 @@ struct tbAlien
|
|||||||
unsigned int prise;
|
unsigned int prise;
|
||||||
};
|
};
|
||||||
|
|
||||||
struct tbSplash
|
struct tbSplash : tbHeader
|
||||||
{
|
{
|
||||||
int id;
|
|
||||||
QString name;
|
|
||||||
float speed;
|
float speed;
|
||||||
unsigned int lifetime;
|
unsigned int lifetime;
|
||||||
bool autoControl;
|
bool autoControl;
|
||||||
int imgType;
|
int imgType;
|
||||||
};
|
};
|
||||||
|
|
||||||
struct tbTrigger
|
struct tbTrigger : tbHeader
|
||||||
{
|
{
|
||||||
enum triggerType
|
enum triggerType
|
||||||
{
|
{
|
||||||
@@ -48,8 +50,6 @@ struct tbTrigger
|
|||||||
allSide,
|
allSide,
|
||||||
nearlestAlien
|
nearlestAlien
|
||||||
};
|
};
|
||||||
int id;
|
|
||||||
QString name;
|
|
||||||
float damage;
|
float damage;
|
||||||
float radius;
|
float radius;
|
||||||
int chance;
|
int chance;
|
||||||
@@ -61,10 +61,8 @@ struct tbTrigger
|
|||||||
float randomPosRadius;
|
float randomPosRadius;
|
||||||
};
|
};
|
||||||
|
|
||||||
struct tbTower
|
struct tbTower : tbHeader
|
||||||
{
|
{
|
||||||
int id;
|
|
||||||
QString name;
|
|
||||||
float radius;
|
float radius;
|
||||||
unsigned int cost;
|
unsigned int cost;
|
||||||
unsigned int reload;
|
unsigned int reload;
|
||||||
@@ -124,10 +122,8 @@ struct tbWaveOnLevel
|
|||||||
int waveId;
|
int waveId;
|
||||||
};
|
};
|
||||||
|
|
||||||
struct tbMap
|
struct tbMap : tbHeader
|
||||||
{
|
{
|
||||||
int id;
|
|
||||||
QString name;
|
|
||||||
unsigned int maxPlayers;
|
unsigned int maxPlayers;
|
||||||
//QVector < QVector <int> > cells;
|
//QVector < QVector <int> > cells;
|
||||||
QByteArray data;
|
QByteArray data;
|
||||||
@@ -142,10 +138,8 @@ struct tbTowerOnLevel
|
|||||||
//int enableWaveId;
|
//int enableWaveId;
|
||||||
};
|
};
|
||||||
|
|
||||||
struct tbLevel
|
struct tbLevel : tbHeader
|
||||||
{
|
{
|
||||||
int id;
|
|
||||||
QString name;
|
|
||||||
int mapId;
|
int mapId;
|
||||||
unsigned int score;
|
unsigned int score;
|
||||||
};
|
};
|
||||||
|
|||||||
Reference in New Issue
Block a user