小更一下
This commit is contained in:
parent
14b29b9ebc
commit
6f7a0d9266
|
@ -3,4 +3,5 @@
|
|||
!TestPlugin.json
|
||||
!BadTestPlugin.json
|
||||
**/*.pro.user
|
||||
push.sh
|
||||
push.sh
|
||||
mlicense/
|
||||
|
|
|
@ -1,7 +1,6 @@
|
|||
SOURCES += \
|
||||
$$PWD/main.cpp \
|
||||
$$PWD/dialog/mainwindow.cpp \
|
||||
$$PWD/class/appmanager.cpp \
|
||||
$$PWD/control/gotobar.cpp \
|
||||
$$PWD/settings.cpp \
|
||||
$$PWD/dialog/finddialog.cpp \
|
||||
|
@ -11,12 +10,16 @@ SOURCES += \
|
|||
$$PWD/dialog/driverselectordialog.cpp \
|
||||
$$PWD/dialog/aboutsoftwaredialog.cpp \
|
||||
$$PWD/dialog/sponsordialog.cpp \
|
||||
$$PWD/class/logger.cpp \
|
||||
$$PWD/winghexapplication.cpp \
|
||||
$$PWD/settingdialog.cpp \
|
||||
$$PWD/dialog/encodingdialog.cpp \
|
||||
$$PWD/class/workspacemanager.cpp \
|
||||
$$PWD/class/recentfilemanager.cpp
|
||||
$$PWD/class/recentfilemanager.cpp \
|
||||
$$PWD/class/appmanager.cpp \
|
||||
$$PWD/class/logger.cpp \
|
||||
$$PWD/dialog/settingwindow.cpp \
|
||||
$$PWD/mlicense/licensemanager.cpp \
|
||||
$$PWD/mlicense/lincensedialog.cpp \
|
||||
|
||||
|
||||
RESOURCES += resources.qrc
|
||||
|
@ -25,9 +28,8 @@ DISTFILES += \
|
|||
README.md
|
||||
|
||||
HEADERS += \
|
||||
$$PWD/dialog/mainwindow.h \
|
||||
$$PWD/dialog/mainwindow.h \
|
||||
$$PWD/utilities.h \
|
||||
$$PWD/class/appmanager.h \
|
||||
$$PWD/control/gotobar.h \
|
||||
$$PWD/settings.h \
|
||||
$$PWD/dialog/finddialog.h \
|
||||
|
@ -38,12 +40,20 @@ HEADERS += \
|
|||
$$PWD/dialog/driverselectordialog.h \
|
||||
$$PWD/dialog/aboutsoftwaredialog.h \
|
||||
$$PWD/dialog/sponsordialog.h \
|
||||
$$PWD/class/logger.h \
|
||||
$$PWD/winghexapplication.h \
|
||||
$$PWD/dialog/encodingdialog.h \
|
||||
$$PWD/class/workspacemanager.h \
|
||||
$$PWD/class/recentfilemanager.h
|
||||
$$PWD/class/recentfilemanager.h \
|
||||
$$PWD/class/appmanager.h \
|
||||
$$PWD/class/logger.h \
|
||||
$$PWD/dialog/settingwindow.h \
|
||||
$$PWD/mlicense/licensemanager.h \
|
||||
$$PWD/mlicense/lincensedialog.h \
|
||||
$$PWD/mlicense/qaesencryption.h \
|
||||
|
||||
LIBS += $$PWD/mlicense/libQtAES.a
|
||||
|
||||
TRANSLATIONS += \
|
||||
$$PWD/lang/zh.ts
|
||||
|
||||
DEFINES += USE_INTEL_AES_IF_AVAILABLE
|
||||
|
|
|
@ -36,6 +36,10 @@
|
|||
#include <QStorageInfo>
|
||||
#include <QThread>
|
||||
|
||||
#ifndef WITHOUTLICENSEINFO
|
||||
#include "mlicense/lincensedialog.h"
|
||||
#endif
|
||||
|
||||
#define FILEMAXBUFFER 0x6400000 // 100MB
|
||||
|
||||
#define CheckEnabled \
|
||||
|
@ -397,6 +401,11 @@ MainWindow::MainWindow(DMainWindow *parent) {
|
|||
tm->setIcon(ICONRES("author"));
|
||||
AddToolSubMenuAction("soft", tr("About"), MainWindow::on_about);
|
||||
AddToolSubMenuAction("sponsor", tr("Sponsor"), MainWindow::on_sponsor);
|
||||
|
||||
#ifndef WITHOUTLICENSEINFO
|
||||
AddToolSubMenuAction("license", tr("License"), MainWindow::on_license);
|
||||
#endif
|
||||
|
||||
AddToolSubMenuAction("wiki", tr("Wiki"), MainWindow::on_wiki);
|
||||
a = new QAction(ICONRES("qt"), tr("AboutQT"), tm);
|
||||
connect(a, &QAction::triggered, this, [=] { QMessageBox::aboutQt(this); });
|
||||
|
@ -592,6 +601,11 @@ MainWindow::MainWindow(DMainWindow *parent) {
|
|||
AddToolsDB(ToolBoxIndex::Encoding);
|
||||
toolbar->addSeparator();
|
||||
AddToolBarTool("general", MainWindow::on_setting_general, tr("General"));
|
||||
|
||||
#ifndef WITHOUTLICENSEINFO
|
||||
AddToolBarTool("license", MainWindow::on_license, tr("License"));
|
||||
#endif
|
||||
|
||||
AddToolBarTool("soft", MainWindow::on_about, tr("About"));
|
||||
toolbar->addSeparator();
|
||||
this->addToolBar(toolbar);
|
||||
|
@ -3235,6 +3249,13 @@ void MainWindow::on_sponsor() {
|
|||
d.exec();
|
||||
}
|
||||
|
||||
#ifndef WITHOUTLICENSEINFO
|
||||
void MainWindow::on_license() {
|
||||
LincenseDialog d;
|
||||
d.exec();
|
||||
}
|
||||
#endif
|
||||
|
||||
void MainWindow::on_about() {
|
||||
AboutSoftwareDialog d;
|
||||
d.exec();
|
||||
|
|
|
@ -200,6 +200,11 @@ private:
|
|||
void on_restoreLayout();
|
||||
void on_about();
|
||||
void on_sponsor();
|
||||
|
||||
#ifndef WITHOUTLICENSEINFO
|
||||
void on_license();
|
||||
#endif
|
||||
|
||||
void on_wiki();
|
||||
void on_fillnop();
|
||||
void on_fillzero();
|
||||
|
|
Binary file not shown.
After Width: | Height: | Size: 8.5 KiB |
Binary file not shown.
After Width: | Height: | Size: 28 KiB |
Binary file not shown.
After Width: | Height: | Size: 5.6 KiB |
Binary file not shown.
File diff suppressed because it is too large
Load Diff
|
@ -76,6 +76,9 @@
|
|||
<file>images/metashow.png</file>
|
||||
<file>images/metadatah.png</file>
|
||||
<file>images/qt.png</file>
|
||||
<file>images/license.png</file>
|
||||
<file>images/thanks.png</file>
|
||||
<file>images/usr.jpg</file>
|
||||
</qresource>
|
||||
<qresource prefix="/resources">
|
||||
<file>settings.json</file>
|
||||
|
|
Loading…
Reference in New Issue