diff --git a/.DS_Store b/.DS_Store index eb77152..7be0160 100644 Binary files a/.DS_Store and b/.DS_Store differ diff --git a/PentaZen.pro b/PentaZen.pro index dbbe7ae..8262c21 100644 --- a/PentaZen.pro +++ b/PentaZen.pro @@ -25,19 +25,6 @@ DEFINES += QT_DEPRECATED_WARNINGS CONFIG += c++11 SOURCES += \ - main.cpp \ - ui/chessboard.cpp \ - ui/xrhall.cpp \ - ui/xrroom.cpp \ - ui/xrtemp.cpp \ - main.cpp \ - engine/board.c \ - engine/book.c \ - engine/pair.c \ - engine/search.c \ - engine/table.c \ - engine/tree.c \ - engine/uiinc.c \ ui/chessboard.cpp \ ui/xrhall.cpp \ ui/xrroom.cpp \ @@ -52,21 +39,6 @@ SOURCES += \ engine/uiinc.c HEADERS += \ - engine/board.h \ - engine/book.h \ - engine/key.h \ - engine/macro.h \ - engine/mvlist.h \ - engine/pair.h \ - engine/pattern.h \ - engine/search.h \ - engine/table.h \ - engine/tree.h \ - engine/uiinc.h \ - ui/chessboard.h \ - ui/xrhall.h \ - ui/xrroom.h \ - ui/xrtemp.h \ engine/board.h \ engine/book.h \ engine/key.h \ @@ -84,8 +56,6 @@ HEADERS += \ ui/xrtemp.h FORMS += \ - ui/xrhall.ui \ - ui/xrroom.ui \ ui/xrhall.ui \ ui/xrroom.ui @@ -93,3 +63,10 @@ FORMS += \ qnx: target.path = /tmp/$${TARGET}/bin else: unix:!android: target.path = /opt/$${TARGET}/bin !isEmpty(target.path): INSTALLS += target + +RESOURCES += \ + resources/myicon.qrc + +DISTFILES += \ + resources/restartV2.icns \ + resources/undoV2.icns diff --git a/resources/.DS_Store b/resources/.DS_Store new file mode 100644 index 0000000..4ced882 Binary files /dev/null and b/resources/.DS_Store differ diff --git a/resources/myicon.qrc b/resources/myicon.qrc new file mode 100755 index 0000000..fc12a97 --- /dev/null +++ b/resources/myicon.qrc @@ -0,0 +1,6 @@ + + + restartV2.icns + undoV2.icns + + diff --git a/resources/restartV2.icns b/resources/restartV2.icns new file mode 100755 index 0000000..9a561e3 Binary files /dev/null and b/resources/restartV2.icns differ diff --git a/resources/undoV2.icns b/resources/undoV2.icns new file mode 100755 index 0000000..00845f3 Binary files /dev/null and b/resources/undoV2.icns differ diff --git a/ui/xrhall.cpp b/ui/xrhall.cpp index eabdc32..5c35179 100755 --- a/ui/xrhall.cpp +++ b/ui/xrhall.cpp @@ -1,7 +1,7 @@ #include "xrhall.h" #include "ui_xrhall.h" -#include "Kernel/uiinc.h" -#include "Kernel/macro.h" +#include "engine/uiinc.h" +#include "engine/macro.h" xrHall::xrHall(QWidget *parent) : QWidget(parent), @@ -11,9 +11,9 @@ xrHall::xrHall(QWidget *parent) : initialize(); - this->setWindowTitle("Welcome to SunGomoku!"); + this->setWindowTitle("Welcome to PentaZen!"); - vtext = "AI v1.1.4, UI v1.4.1"; + vtext = "AI v1.0.0, UI v1.0.0"; ui->versionLabel->setText(vtext); ui->versionLabel->setAlignment(Qt::AlignCenter); diff --git a/ui/xrhall.ui b/ui/xrhall.ui index 1ab49dd..9c80a40 100755 --- a/ui/xrhall.ui +++ b/ui/xrhall.ui @@ -6,25 +6,15 @@ 0 0 - 502 - 340 + 366 + 136 Form - - - - <html><head/><body><p align="center"><img src=":/myimages/bigLogo.png"/></p></body></html> - - - Qt::AlignCenter - - - - + @@ -40,7 +30,7 @@ - + @@ -70,7 +60,20 @@ - + + + + + 0 + 0 + + + + 开始 + + + + @@ -90,19 +93,6 @@ - - - - - 0 - 0 - - - - 开始 - - - diff --git a/ui/xrroom.cpp b/ui/xrroom.cpp index a764024..86a5a6a 100755 --- a/ui/xrroom.cpp +++ b/ui/xrroom.cpp @@ -1,7 +1,7 @@ #include "xrroom.h" #include "ui_xrroom.h" -#include "Kernel/uiinc.h" -#include "Kernel/macro.h" +#include "engine/uiinc.h" +#include "engine/macro.h" #include #include diff --git a/ui/xrroom.ui b/ui/xrroom.ui index 5d59969..8403eae 100755 --- a/ui/xrroom.ui +++ b/ui/xrroom.ui @@ -34,7 +34,7 @@ 0 0 640 - 21 + 22 @@ -70,7 +70,7 @@ - + :/myimages/restartV2.icns:/myimages/restartV2.icns @@ -99,7 +99,7 @@ - + :/myimages/undoV2.icns:/myimages/undoV2.icns @@ -111,7 +111,7 @@ - +