Skip to content

Commit 1ccc366

Browse files
authored
Merge pull request #10 from saturneric/develop
Develop Version 1.1.3
2 parents 817c30b + 4ada913 commit 1ccc366

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

65 files changed

+17352
-1479
lines changed

.gitignore

+1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
# Project
22
include/GpgFrontend.h
3+
include/GpgFrontendBuildInfo.h
34

45
#CLion
56
.idea/*

CMakeLists.txt

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
cmake_minimum_required(VERSION 3.16)
22

3-
project(GpgFrontend VERSION 1.1.2 LANGUAGES CXX)
3+
project(GpgFrontend VERSION 1.1.3 LANGUAGES CXX)
44

55
message(STATUS "GPGFrontend Build Configuration Started CMAKE Version ${CMAKE_VERSION}")
66

README.md

+2
Original file line numberDiff line numberDiff line change
@@ -196,6 +196,8 @@ mingw-w64: http://mingw-w64.org/doku.php
196196

197197
AppImage: https://appimage.org/
198198

199+
rapidjson: https://github.com/Tencent/rapidjson
200+
199201
Application
200202
Bundles: [Link](https://developer.apple.com/library/archive/documentation/CoreFoundation/Conceptual/CFBundles/BundleTypes/BundleTypes.html#//apple_ref/doc/uid/10000123i-CH101-SW1)
201203

README_CN.md

+2
Original file line numberDiff line numberDiff line change
@@ -179,6 +179,8 @@ mingw-w64: http://mingw-w64.org/doku.php
179179

180180
AppImage: https://appimage.org/
181181

182+
rapidjson: https://github.com/Tencent/rapidjson
183+
182184
Application Bundles: [Link](!https://developer.apple.com/library/archive/documentation/CoreFoundation/Conceptual/CFBundles/BundleTypes/BundleTypes.html#//apple_ref/doc/uid/10000123i-CH101-SW1)
183185

184186
本软件图标使用来自 [阿里巴巴矢量图标库](!https://www.iconfont.cn/) 的素材。免费库中的图标未注册为商标。不涉及版权问题。

include/GpgFrontend.h.in

+24-16
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,27 @@
1+
/**
2+
* This file is part of GPGFrontend.
3+
*
4+
* GPGFrontend is free software: you can redistribute it and/or modify
5+
* it under the terms of the GNU General Public License as published by
6+
* the Free Software Foundation, either version 3 of the License, or
7+
* (at your option) any later version.
8+
*
9+
* Foobar is distributed in the hope that it will be useful,
10+
* but WITHOUT ANY WARRANTY; without even the implied warranty of
11+
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12+
* GNU General Public License for more details.
13+
*
14+
* You should have received a copy of the GNU General Public License
15+
* along with Foobar. If not, see <https://www.gnu.org/licenses/>.
16+
*
17+
* The initial version of the source code is inherited from gpg4usb-team.
18+
* Their source code version also complies with GNU General Public License.
19+
*
20+
* The source code version of this software was modified and released
21+
* by Saturneric<[email protected]> starting on May 12, 2021.
22+
*
23+
*/
24+
125
#ifndef GPGFRONTEND_H_IN
226
#define GPGFRONTEND_H_IN
327

@@ -23,22 +47,6 @@
2347
#define RELEASE 0
2448
#define DEBUG 1
2549

26-
#define PROJECT_NAME "@PROJECT_NAME@"
27-
#define BUILD_VERSION "@BUILD_VERSION@"
28-
#define GIT_VERSION "@GIT_VERSION@"
29-
#define OS_PLATFORM @OS_PLATFORM@
30-
31-
#define BUILD_FLAG @BUILD_FLAG@
32-
33-
#define VERSION_MAJOR @CMAKE_PROJECT_VERSION_MAJOR@
34-
#define VERSION_MINOR @CMAKE_PROJECT_VERSION_MINOR@
35-
#define VERSION_PATCH @CMAKE_PROJECT_VERSION_PATCH@
36-
37-
#define BUILD_TIMESTAMP "@BUILD_TIMESTAMP@"
38-
39-
#define GIT_BRANCH_NAME "@GIT_BRANCH_NAME@"
40-
#define GIT_COMMIT_HASH "@GIT_COMMIT_HASH@"
41-
4250
#if OS_PLATFORM == MACOS && BUILD_FLAG == RELEASE
4351
# define RESOURCE_DIR(appDir) (appDir + "/../Resources/")
4452
#elif OS_PLATFORM == LINUX && BUILD_FLAG == RELEASE

include/GpgFrontendBuildInfo.h.in

+44
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,44 @@
1+
/**
2+
* This file is part of GPGFrontend.
3+
*
4+
* GPGFrontend is free software: you can redistribute it and/or modify
5+
* it under the terms of the GNU General Public License as published by
6+
* the Free Software Foundation, either version 3 of the License, or
7+
* (at your option) any later version.
8+
*
9+
* Foobar is distributed in the hope that it will be useful,
10+
* but WITHOUT ANY WARRANTY; without even the implied warranty of
11+
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12+
* GNU General Public License for more details.
13+
*
14+
* You should have received a copy of the GNU General Public License
15+
* along with Foobar. If not, see <https://www.gnu.org/licenses/>.
16+
*
17+
* The initial version of the source code is inherited from gpg4usb-team.
18+
* Their source code version also complies with GNU General Public License.
19+
*
20+
* The source code version of this software was modified and released
21+
* by Saturneric<[email protected]> starting on May 12, 2021.
22+
*
23+
*/
24+
25+
#ifndef GPGFRONTEND_BUILD_INFO_H_IN
26+
#define GPGFRONTEND_BUILD_INFO_H_IN
27+
28+
#define VERSION_MAJOR @CMAKE_PROJECT_VERSION_MAJOR@
29+
#define VERSION_MINOR @CMAKE_PROJECT_VERSION_MINOR@
30+
#define VERSION_PATCH @CMAKE_PROJECT_VERSION_PATCH@
31+
32+
#define GIT_BRANCH_NAME "@GIT_BRANCH_NAME@"
33+
#define GIT_COMMIT_HASH "@GIT_COMMIT_HASH@"
34+
35+
#define PROJECT_NAME "@PROJECT_NAME@"
36+
#define BUILD_VERSION "@BUILD_VERSION@"
37+
#define GIT_VERSION "@GIT_VERSION@"
38+
#define OS_PLATFORM @OS_PLATFORM@
39+
40+
#define BUILD_FLAG @BUILD_FLAG@
41+
42+
#define BUILD_TIMESTAMP "@BUILD_TIMESTAMP@"
43+
44+
#endif // GPGFRONTEND_BUILD_INFO_H_IN

include/MainWindow.h

+14-1
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@
3131
#include "ui/widgets/TextEdit.h"
3232
#include "ui/FileEncryptionDialog.h"
3333
#include "ui/SettingsDialog.h"
34-
#include "ui/AboutDialog.h"
34+
#include "ui/help/AboutDialog.h"
3535
#include "ui/widgets/InfoBoardWidget.h"
3636
#include "ui/FindWidget.h"
3737
#include "ui/Wizard.h"
@@ -216,6 +216,11 @@ private slots:
216216
*/
217217
void slotAbout();
218218

219+
/**
220+
* @details Open check-update-tab in about-dialog.
221+
*/
222+
void slotCheckUpdate();
223+
219224
/**
220225
* @details Open File Opera Tab
221226
*/
@@ -258,6 +263,11 @@ private slots:
258263
*/
259264
void slotSetRestartNeeded(bool needed);
260265

266+
/**
267+
* @details called when need to upgrade.
268+
*/
269+
void slotVersionUpgrade(const QString &currentVersion, const QString &latestVersion);
270+
261271
private:
262272
/**
263273
* @details Create actions for the main-menu and the context-menu of the keylist.
@@ -363,6 +373,7 @@ private slots:
363373
QAction *zoomInAct; /** Action to zoom in */
364374
QAction *zoomOutAct; /** Action to zoom out */
365375
QAction *aboutAct; /** Action to open about dialog */
376+
QAction *checkUpdateAct; /** Action to open about dialog */
366377
QAction *fileEncryptAct; /** Action to open dialog for encrypting file */
367378
QAction *fileDecryptAct; /** Action to open dialog for decrypting file */
368379
QAction *fileSignAct; /** Action to open dialog for signing file */
@@ -387,6 +398,8 @@ private slots:
387398
KeyMgmt *keyMgmt; /**< TODO */
388399
KeyServerImportDialog *importDialog; /**< TODO */
389400

401+
QNetworkAccessManager *networkAccessManager;
402+
390403
bool attachmentDockCreated;
391404
bool restartNeeded;
392405
};

0 commit comments

Comments
 (0)