Small stub web view that I'm hoping to use in conjunction with ~/.hedgewars/Data - I'd like to link to a page on hedgewars.org, intercept linkClicked, fetch zip files, then unpack the structure under Data. Just checking this in so it doesn't clutter up project. Also tidied up the .pro a bit, even though we aren't really using it for much anymore. Should in theory be able to do a build now.
--- a/QTfrontend/CMakeLists.txt Mon Jun 20 09:32:31 2011 -0400
+++ b/QTfrontend/CMakeLists.txt Mon Jun 20 12:57:44 2011 -0400
@@ -4,6 +4,7 @@
set(QT_USE_QTCORE TRUE)
set(QT_USE_QTGUI TRUE)
set(QT_USE_QTNETWORK TRUE)
+set(QT_USE_QTWEBKIT TRUE)
set(QT_USE_QTSVG FALSE)
set(QT_USE_QTXML FALSE)
set(QT_USE_QTOPENGL FALSE)
@@ -67,6 +68,7 @@
pagenetserver.cpp
pagenetgame.cpp
pageinfo.cpp
+ pagedata.cpp
pagesingleplayer.cpp
pagetraining.cpp
pagecampaign.cpp
@@ -151,6 +153,7 @@
pageoptions.h
pagemain.h
pageinfo.h
+ pagedata.h
pagesingleplayer.h
pagenettype.h
pageconnecting.h
--- a/QTfrontend/ui_hwform.h Mon Jun 20 09:32:31 2011 -0400
+++ b/QTfrontend/ui_hwform.h Mon Jun 20 12:57:44 2011 -0400
@@ -29,6 +29,7 @@
class PageNetChat;
class PageNetGame;
class PageInfo;
+class PageDataDownload;
class PageGameStats;
class PageSinglePlayer;
class PageTraining;
@@ -62,6 +63,7 @@
PageNetChat *pageNetChat;
PageNetGame *pageNetGame;
PageInfo *pageInfo;
+ PageDataDownload *pageDataDownload;
PageGameStats *pageGameStats;
PageSinglePlayer *pageSinglePlayer;
PageTraining *pageTraining;
--- a/project_files/hedgewars.pro Mon Jun 20 09:32:31 2011 -0400
+++ b/project_files/hedgewars.pro Mon Jun 20 12:57:44 2011 -0400
@@ -3,6 +3,7 @@
DEPENDPATH += ../QTfrontend/
INCLUDEPATH += ../QTfrontend/
INCLUDEPATH += /usr/local/include/SDL
+INCLUDEPATH += /usr/include/SDL
DESTDIR = .
@@ -11,6 +12,7 @@
}
QT += network
+QT += webkit
HEADERS += ../QTfrontend/KB.h ../QTfrontend/SDLs.h \
../QTfrontend/SquareLabel.h ../QTfrontend/about.h \
@@ -24,13 +26,12 @@
../QTfrontend/igbox.h ../QTfrontend/input_ip.h \
../QTfrontend/itemNum.h ../QTfrontend/mapContainer.h \
../QTfrontend/misc.h ../QTfrontend/namegen.h \
- ../QTfrontend/netregister.h ../QTfrontend/netserver.h \
+ ../QTfrontend/netregister.h ../QTfrontend/netserver.h \
../QTfrontend/netserverslist.h ../QTfrontend/netudpserver.h \
../QTfrontend/netudpwidget.h ../QTfrontend/newnetclient.h \
- ../QTfrontend/pages.h ../QTfrontend/playrecordpage.h \
- ../QTfrontend/proto.h \
+ ../QTfrontend/proto.h \
../QTfrontend/sdlkeys.h ../QTfrontend/selectWeapon.h \
- ../QTfrontend/statsPage.h ../QTfrontend/tcpBase.h \
+ ../QTfrontend/tcpBase.h \
../QTfrontend/team.h ../QTfrontend/teamselect.h \
../QTfrontend/teamselhelper.h ../QTfrontend/togglebutton.h \
../QTfrontend/ui_hwform.h ../QTfrontend/vertScrollArea.h \
@@ -38,7 +39,27 @@
../QTfrontend/achievements.h \
../QTfrontend/drawmapwidget.h \
../QTfrontend/drawmapscene.h \
- ../QTfrontend/qaspectratiolayout.h
+ ../QTfrontend/qaspectratiolayout.h \
+ ../QTfrontend/pagetraining.h \
+ ../QTfrontend/pagesingleplayer.h \
+ ../QTfrontend/pageselectweapon.h \
+ ../QTfrontend/pagescheme.h \
+ ../QTfrontend/pageroomslist.h \
+ ../QTfrontend/pageoptions.h \
+ ../QTfrontend/pagenettype.h \
+ ../QTfrontend/pagenetserver.h \
+ ../QTfrontend/pagenetgame.h \
+ ../QTfrontend/pagenet.h \
+ ../QTfrontend/pagemultiplayer.h \
+ ../QTfrontend/pagemain.h \
+ ../QTfrontend/pageingame.h \
+ ../QTfrontend/pageinfo.h \
+ ../QTfrontend/pagedata.h \
+ ../QTfrontend/pageeditteam.h \
+ ../QTfrontend/pagedrawmap.h \
+ ../QTfrontend/pageconnecting.h \
+ ../QTfrontend/pagecampaign.h \
+ ../QTfrontend/pageadmin.h
SOURCES += ../QTfrontend/SDLs.cpp ../QTfrontend/SquareLabel.cpp \
../QTfrontend/about.cpp ../QTfrontend/ammoSchemeModel.cpp \
@@ -54,9 +75,9 @@
../QTfrontend/namegen.cpp ../QTfrontend/netregister.cpp \
../QTfrontend/netserver.cpp ../QTfrontend/netserverslist.cpp \
../QTfrontend/netudpserver.cpp ../QTfrontend/netudpwidget.cpp \
- ../QTfrontend/newnetclient.cpp \
- ../QTfrontend/playrecordpage.cpp ../QTfrontend/proto.cpp \
- ../QTfrontend/selectWeapon.cpp ../QTfrontend/statsPage.cpp \
+ ../QTfrontend/newnetclient.cpp \
+ ../QTfrontend/proto.cpp \
+ ../QTfrontend/selectWeapon.cpp \
../QTfrontend/tcpBase.cpp ../QTfrontend/team.cpp \
../QTfrontend/teamselect.cpp ../QTfrontend/teamselhelper.cpp \
../QTfrontend/togglebutton.cpp ../QTfrontend/ui_hwform.cpp \
@@ -80,6 +101,7 @@
../QTfrontend/pagemain.cpp \
../QTfrontend/pageingame.cpp \
../QTfrontend/pageinfo.cpp \
+ ../QTfrontend/pagedata.cpp \
../QTfrontend/pageeditteam.cpp \
../QTfrontend/pagedrawmap.cpp \
../QTfrontend/pageconnecting.cpp \