完成客制化背景產生器:
1. only finish one side name. 2. only finish chinese name and three word name.
This commit is contained in:
parent
599480df0f
commit
8bfd5da5f1
@ -17,6 +17,7 @@
|
||||
#include "TowelCreater.h"
|
||||
#include "NewFiveCreater.h"
|
||||
#include "HKHolderCreater.h"
|
||||
#include "customlogo.h"
|
||||
|
||||
|
||||
#define FONT_PATH ":/NameCreater/_exp/DFYuanStd-W8.otf"
|
||||
@ -40,6 +41,7 @@ NameCreater::NameCreater(QWidget *parent)
|
||||
connect(ui.birthday_eng_eng_btn, &QPushButton::released, this, &NameCreater::OnClickedReadBtn);
|
||||
connect(ui.handkerchief_btn, &QPushButton::released, this, &NameCreater::OnClickedReadBtn);
|
||||
connect(ui.fivesingle_zh_eng_btn, &QPushButton::released, this, &NameCreater::OnClickedReadBtn);
|
||||
connect(ui.customlogo_btn, &QPushButton::released, this , &NameCreater::OnClickedCustomLogoBtn);
|
||||
|
||||
QString font_path = FONT_PATH;
|
||||
QFile font_res(font_path);
|
||||
@ -149,3 +151,13 @@ void NameCreater::OnClickedReadBtn() {
|
||||
};
|
||||
QFileDialog::getOpenFileContent("CSV (*.csv)", fileContentReady);
|
||||
}
|
||||
|
||||
void NameCreater::OnClickedCustomLogoBtn() {
|
||||
QEventLoop loop;
|
||||
CustomLogo widget(&this->font);
|
||||
widget.show();
|
||||
connect(&widget, &CustomLogo::finished, &loop, &QEventLoop::quit);
|
||||
loop.exec();
|
||||
qDebug()<<"exit event loop";
|
||||
|
||||
}
|
||||
|
||||
@ -20,4 +20,5 @@ private:
|
||||
|
||||
private Q_SLOTS:
|
||||
void OnClickedReadBtn();
|
||||
void OnClickedCustomLogoBtn();
|
||||
};
|
||||
|
||||
@ -16,7 +16,8 @@ HEADERS += ./resource.h \
|
||||
./OldFiveCreater.h \
|
||||
./TowelCreater.h \
|
||||
./NewFiveCreater.h \
|
||||
./HKHolderCreater.h
|
||||
./HKHolderCreater.h \
|
||||
./customlogo.h
|
||||
SOURCES += ./NameCreater.cpp \
|
||||
./main.cpp \
|
||||
./BirthdayCreater.cpp \
|
||||
@ -25,6 +26,8 @@ SOURCES += ./NameCreater.cpp \
|
||||
./INameCreater.cpp \
|
||||
./TowelCreater.cpp \
|
||||
./NewFiveCreater.cpp \
|
||||
./HKHolderCreater.cpp
|
||||
FORMS += ./NameCreater.ui
|
||||
./HKHolderCreater.cpp \
|
||||
./customlogo.cpp
|
||||
FORMS += ./NameCreater.ui \
|
||||
./customlogo.ui
|
||||
RESOURCES += NameCreater.qrc
|
||||
|
||||
@ -21,3 +21,4 @@ else: unix:!android: target.path = /opt/$${TARGET}/bin
|
||||
|
||||
QMAKE_LFLAGS+= -s TOTAL_MEMORY=67108864
|
||||
|
||||
|
||||
|
||||
@ -1,6 +1,6 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!DOCTYPE QtCreatorProject>
|
||||
<!-- Written by QtCreator 7.0.2, 2024-03-27T15:04:12. -->
|
||||
<!-- Written by QtCreator 7.0.2, 2024-05-15T10:47:25. -->
|
||||
<qtcreator>
|
||||
<data>
|
||||
<variable>EnvironmentId</variable>
|
||||
@ -89,157 +89,6 @@
|
||||
</data>
|
||||
<data>
|
||||
<variable>ProjectExplorer.Project.Target.0</variable>
|
||||
<valuemap type="QVariantMap">
|
||||
<value type="QString" key="DeviceType">WebAssemblyDeviceType</value>
|
||||
<value type="QString" key="ProjectExplorer.ProjectConfiguration.DefaultDisplayName">Qt 5.15.2 WebAssembly</value>
|
||||
<value type="QString" key="ProjectExplorer.ProjectConfiguration.DisplayName">Qt 5.15.2 WebAssembly</value>
|
||||
<value type="QString" key="ProjectExplorer.ProjectConfiguration.Id">qt.qt5.5152.wasm_32_kit</value>
|
||||
<value type="qlonglong" key="ProjectExplorer.Target.ActiveBuildConfiguration">0</value>
|
||||
<value type="qlonglong" key="ProjectExplorer.Target.ActiveDeployConfiguration">-1</value>
|
||||
<value type="qlonglong" key="ProjectExplorer.Target.ActiveRunConfiguration">0</value>
|
||||
<valuemap type="QVariantMap" key="ProjectExplorer.Target.BuildConfiguration.0">
|
||||
<value type="int" key="EnableQmlDebugging">0</value>
|
||||
<value type="QString" key="ProjectExplorer.BuildConfiguration.BuildDirectory">D:\_develop\_project\NameCreater\build-NameCreater-Qt_5_15_2_WebAssembly-Debug</value>
|
||||
<value type="QString" key="ProjectExplorer.BuildConfiguration.BuildDirectory.shadowDir">D:/_develop/_project/NameCreater/build-NameCreater-Qt_5_15_2_WebAssembly-Debug</value>
|
||||
<valuemap type="QVariantMap" key="ProjectExplorer.BuildConfiguration.BuildStepList.0">
|
||||
<valuemap type="QVariantMap" key="ProjectExplorer.BuildStepList.Step.0">
|
||||
<value type="bool" key="ProjectExplorer.BuildStep.Enabled">true</value>
|
||||
<value type="QString" key="ProjectExplorer.ProjectConfiguration.Id">QtProjectManager.QMakeBuildStep</value>
|
||||
<value type="bool" key="QtProjectManager.QMakeBuildStep.QMakeForced">false</value>
|
||||
<valuelist type="QVariantList" key="QtProjectManager.QMakeBuildStep.SelectedAbis"/>
|
||||
</valuemap>
|
||||
<valuemap type="QVariantMap" key="ProjectExplorer.BuildStepList.Step.1">
|
||||
<value type="bool" key="ProjectExplorer.BuildStep.Enabled">true</value>
|
||||
<value type="QString" key="ProjectExplorer.ProjectConfiguration.Id">Qt4ProjectManager.MakeStep</value>
|
||||
</valuemap>
|
||||
<value type="qlonglong" key="ProjectExplorer.BuildStepList.StepsCount">2</value>
|
||||
<value type="QString" key="ProjectExplorer.ProjectConfiguration.DefaultDisplayName">Build</value>
|
||||
<value type="QString" key="ProjectExplorer.ProjectConfiguration.DisplayName">Build</value>
|
||||
<value type="QString" key="ProjectExplorer.ProjectConfiguration.Id">ProjectExplorer.BuildSteps.Build</value>
|
||||
</valuemap>
|
||||
<valuemap type="QVariantMap" key="ProjectExplorer.BuildConfiguration.BuildStepList.1">
|
||||
<valuemap type="QVariantMap" key="ProjectExplorer.BuildStepList.Step.0">
|
||||
<value type="bool" key="ProjectExplorer.BuildStep.Enabled">true</value>
|
||||
<value type="QString" key="ProjectExplorer.ProjectConfiguration.Id">Qt4ProjectManager.MakeStep</value>
|
||||
<value type="QString" key="Qt4ProjectManager.MakeStep.MakeArguments">clean</value>
|
||||
</valuemap>
|
||||
<value type="qlonglong" key="ProjectExplorer.BuildStepList.StepsCount">1</value>
|
||||
<value type="QString" key="ProjectExplorer.ProjectConfiguration.DefaultDisplayName">Clean</value>
|
||||
<value type="QString" key="ProjectExplorer.ProjectConfiguration.DisplayName">Clean</value>
|
||||
<value type="QString" key="ProjectExplorer.ProjectConfiguration.Id">ProjectExplorer.BuildSteps.Clean</value>
|
||||
</valuemap>
|
||||
<value type="int" key="ProjectExplorer.BuildConfiguration.BuildStepListCount">2</value>
|
||||
<value type="bool" key="ProjectExplorer.BuildConfiguration.ClearSystemEnvironment">false</value>
|
||||
<valuelist type="QVariantList" key="ProjectExplorer.BuildConfiguration.CustomParsers"/>
|
||||
<value type="bool" key="ProjectExplorer.BuildConfiguration.ParseStandardOutput">false</value>
|
||||
<valuelist type="QVariantList" key="ProjectExplorer.BuildConfiguration.UserEnvironmentChanges"/>
|
||||
<value type="QString" key="ProjectExplorer.ProjectConfiguration.DisplayName">Debug</value>
|
||||
<value type="QString" key="ProjectExplorer.ProjectConfiguration.Id">Qt4ProjectManager.Qt4BuildConfiguration</value>
|
||||
<value type="int" key="Qt4ProjectManager.Qt4BuildConfiguration.BuildConfiguration">2</value>
|
||||
</valuemap>
|
||||
<valuemap type="QVariantMap" key="ProjectExplorer.Target.BuildConfiguration.1">
|
||||
<value type="QString" key="ProjectExplorer.BuildConfiguration.BuildDirectory">D:\_develop\_project\NameCreater\build-NameCreater-Qt_5_15_2_WebAssembly-Release</value>
|
||||
<value type="QString" key="ProjectExplorer.BuildConfiguration.BuildDirectory.shadowDir">D:/_develop/_project/NameCreater/build-NameCreater-Qt_5_15_2_WebAssembly-Release</value>
|
||||
<valuemap type="QVariantMap" key="ProjectExplorer.BuildConfiguration.BuildStepList.0">
|
||||
<valuemap type="QVariantMap" key="ProjectExplorer.BuildStepList.Step.0">
|
||||
<value type="bool" key="ProjectExplorer.BuildStep.Enabled">true</value>
|
||||
<value type="QString" key="ProjectExplorer.ProjectConfiguration.Id">QtProjectManager.QMakeBuildStep</value>
|
||||
<value type="bool" key="QtProjectManager.QMakeBuildStep.QMakeForced">true</value>
|
||||
<valuelist type="QVariantList" key="QtProjectManager.QMakeBuildStep.SelectedAbis"/>
|
||||
</valuemap>
|
||||
<valuemap type="QVariantMap" key="ProjectExplorer.BuildStepList.Step.1">
|
||||
<value type="bool" key="ProjectExplorer.BuildStep.Enabled">true</value>
|
||||
<value type="QString" key="ProjectExplorer.ProjectConfiguration.Id">Qt4ProjectManager.MakeStep</value>
|
||||
</valuemap>
|
||||
<value type="qlonglong" key="ProjectExplorer.BuildStepList.StepsCount">2</value>
|
||||
<value type="QString" key="ProjectExplorer.ProjectConfiguration.DefaultDisplayName">Build</value>
|
||||
<value type="QString" key="ProjectExplorer.ProjectConfiguration.DisplayName">Build</value>
|
||||
<value type="QString" key="ProjectExplorer.ProjectConfiguration.Id">ProjectExplorer.BuildSteps.Build</value>
|
||||
</valuemap>
|
||||
<valuemap type="QVariantMap" key="ProjectExplorer.BuildConfiguration.BuildStepList.1">
|
||||
<valuemap type="QVariantMap" key="ProjectExplorer.BuildStepList.Step.0">
|
||||
<value type="bool" key="ProjectExplorer.BuildStep.Enabled">true</value>
|
||||
<value type="QString" key="ProjectExplorer.ProjectConfiguration.Id">Qt4ProjectManager.MakeStep</value>
|
||||
<value type="QString" key="Qt4ProjectManager.MakeStep.MakeArguments">clean</value>
|
||||
</valuemap>
|
||||
<value type="qlonglong" key="ProjectExplorer.BuildStepList.StepsCount">1</value>
|
||||
<value type="QString" key="ProjectExplorer.ProjectConfiguration.DefaultDisplayName">Clean</value>
|
||||
<value type="QString" key="ProjectExplorer.ProjectConfiguration.DisplayName">Clean</value>
|
||||
<value type="QString" key="ProjectExplorer.ProjectConfiguration.Id">ProjectExplorer.BuildSteps.Clean</value>
|
||||
</valuemap>
|
||||
<value type="int" key="ProjectExplorer.BuildConfiguration.BuildStepListCount">2</value>
|
||||
<value type="bool" key="ProjectExplorer.BuildConfiguration.ClearSystemEnvironment">false</value>
|
||||
<valuelist type="QVariantList" key="ProjectExplorer.BuildConfiguration.CustomParsers"/>
|
||||
<value type="bool" key="ProjectExplorer.BuildConfiguration.ParseStandardOutput">false</value>
|
||||
<valuelist type="QVariantList" key="ProjectExplorer.BuildConfiguration.UserEnvironmentChanges"/>
|
||||
<value type="QString" key="ProjectExplorer.ProjectConfiguration.DisplayName">Release</value>
|
||||
<value type="QString" key="ProjectExplorer.ProjectConfiguration.Id">Qt4ProjectManager.Qt4BuildConfiguration</value>
|
||||
<value type="int" key="Qt4ProjectManager.Qt4BuildConfiguration.BuildConfiguration">0</value>
|
||||
<value type="int" key="QtQuickCompiler">0</value>
|
||||
</valuemap>
|
||||
<valuemap type="QVariantMap" key="ProjectExplorer.Target.BuildConfiguration.2">
|
||||
<value type="int" key="EnableQmlDebugging">0</value>
|
||||
<value type="QString" key="ProjectExplorer.BuildConfiguration.BuildDirectory">D:\_develop\_project\NameCreater\build-NameCreater-Qt_5_15_2_WebAssembly-Profile</value>
|
||||
<value type="QString" key="ProjectExplorer.BuildConfiguration.BuildDirectory.shadowDir">D:/_develop/_project/NameCreater/build-NameCreater-Qt_5_15_2_WebAssembly-Profile</value>
|
||||
<valuemap type="QVariantMap" key="ProjectExplorer.BuildConfiguration.BuildStepList.0">
|
||||
<valuemap type="QVariantMap" key="ProjectExplorer.BuildStepList.Step.0">
|
||||
<value type="bool" key="ProjectExplorer.BuildStep.Enabled">true</value>
|
||||
<value type="QString" key="ProjectExplorer.ProjectConfiguration.Id">QtProjectManager.QMakeBuildStep</value>
|
||||
<value type="bool" key="QtProjectManager.QMakeBuildStep.QMakeForced">true</value>
|
||||
<valuelist type="QVariantList" key="QtProjectManager.QMakeBuildStep.SelectedAbis"/>
|
||||
</valuemap>
|
||||
<valuemap type="QVariantMap" key="ProjectExplorer.BuildStepList.Step.1">
|
||||
<value type="bool" key="ProjectExplorer.BuildStep.Enabled">true</value>
|
||||
<value type="QString" key="ProjectExplorer.ProjectConfiguration.Id">Qt4ProjectManager.MakeStep</value>
|
||||
</valuemap>
|
||||
<value type="qlonglong" key="ProjectExplorer.BuildStepList.StepsCount">2</value>
|
||||
<value type="QString" key="ProjectExplorer.ProjectConfiguration.DefaultDisplayName">Build</value>
|
||||
<value type="QString" key="ProjectExplorer.ProjectConfiguration.DisplayName">Build</value>
|
||||
<value type="QString" key="ProjectExplorer.ProjectConfiguration.Id">ProjectExplorer.BuildSteps.Build</value>
|
||||
</valuemap>
|
||||
<valuemap type="QVariantMap" key="ProjectExplorer.BuildConfiguration.BuildStepList.1">
|
||||
<valuemap type="QVariantMap" key="ProjectExplorer.BuildStepList.Step.0">
|
||||
<value type="bool" key="ProjectExplorer.BuildStep.Enabled">true</value>
|
||||
<value type="QString" key="ProjectExplorer.ProjectConfiguration.Id">Qt4ProjectManager.MakeStep</value>
|
||||
<value type="QString" key="Qt4ProjectManager.MakeStep.MakeArguments">clean</value>
|
||||
</valuemap>
|
||||
<value type="qlonglong" key="ProjectExplorer.BuildStepList.StepsCount">1</value>
|
||||
<value type="QString" key="ProjectExplorer.ProjectConfiguration.DefaultDisplayName">Clean</value>
|
||||
<value type="QString" key="ProjectExplorer.ProjectConfiguration.DisplayName">Clean</value>
|
||||
<value type="QString" key="ProjectExplorer.ProjectConfiguration.Id">ProjectExplorer.BuildSteps.Clean</value>
|
||||
</valuemap>
|
||||
<value type="int" key="ProjectExplorer.BuildConfiguration.BuildStepListCount">2</value>
|
||||
<value type="bool" key="ProjectExplorer.BuildConfiguration.ClearSystemEnvironment">false</value>
|
||||
<valuelist type="QVariantList" key="ProjectExplorer.BuildConfiguration.CustomParsers"/>
|
||||
<value type="bool" key="ProjectExplorer.BuildConfiguration.ParseStandardOutput">false</value>
|
||||
<valuelist type="QVariantList" key="ProjectExplorer.BuildConfiguration.UserEnvironmentChanges"/>
|
||||
<value type="QString" key="ProjectExplorer.ProjectConfiguration.DisplayName">Profile</value>
|
||||
<value type="QString" key="ProjectExplorer.ProjectConfiguration.Id">Qt4ProjectManager.Qt4BuildConfiguration</value>
|
||||
<value type="int" key="Qt4ProjectManager.Qt4BuildConfiguration.BuildConfiguration">0</value>
|
||||
<value type="int" key="QtQuickCompiler">0</value>
|
||||
<value type="int" key="SeparateDebugInfo">0</value>
|
||||
</valuemap>
|
||||
<value type="qlonglong" key="ProjectExplorer.Target.BuildConfigurationCount">3</value>
|
||||
<value type="qlonglong" key="ProjectExplorer.Target.DeployConfigurationCount">0</value>
|
||||
<valuemap type="QVariantMap" key="ProjectExplorer.Target.RunConfiguration.0">
|
||||
<value type="bool" key="Analyzer.Perf.Settings.UseGlobalSettings">true</value>
|
||||
<value type="bool" key="Analyzer.QmlProfiler.Settings.UseGlobalSettings">true</value>
|
||||
<value type="bool" key="Analyzer.Valgrind.Settings.UseGlobalSettings">true</value>
|
||||
<valuelist type="QVariantList" key="CustomOutputParsers"/>
|
||||
<value type="QString" key="ProjectExplorer.ProjectConfiguration.DisplayName">NameCreater</value>
|
||||
<value type="QString" key="ProjectExplorer.ProjectConfiguration.Id">WebAssembly.RunConfiguration.EmrunD:/_develop/_project/NameCreater/NameCreater/NameCreater.pro</value>
|
||||
<value type="QString" key="ProjectExplorer.RunConfiguration.BuildKey">D:/_develop/_project/NameCreater/NameCreater/NameCreater.pro</value>
|
||||
<value type="bool" key="RunConfiguration.UseCppDebugger">false</value>
|
||||
<value type="bool" key="RunConfiguration.UseCppDebuggerAuto">true</value>
|
||||
<value type="bool" key="RunConfiguration.UseQmlDebugger">false</value>
|
||||
<value type="bool" key="RunConfiguration.UseQmlDebuggerAuto">true</value>
|
||||
<value type="QString" key="WASM.WebBrowserSelectionAspect.Browser">chrome</value>
|
||||
</valuemap>
|
||||
<value type="qlonglong" key="ProjectExplorer.Target.RunConfigurationCount">1</value>
|
||||
</valuemap>
|
||||
</data>
|
||||
<data>
|
||||
<variable>ProjectExplorer.Project.Target.1</variable>
|
||||
<valuemap type="QVariantMap">
|
||||
<value type="QString" key="DeviceType">Desktop</value>
|
||||
<value type="QString" key="ProjectExplorer.ProjectConfiguration.DefaultDisplayName">Desktop Qt 5.15.2 MSVC2019 64bit</value>
|
||||
@ -398,6 +247,158 @@
|
||||
<value type="bool" key="RunConfiguration.UseLibrarySearchPath">true</value>
|
||||
<value type="bool" key="RunConfiguration.UseQmlDebugger">false</value>
|
||||
<value type="bool" key="RunConfiguration.UseQmlDebuggerAuto">true</value>
|
||||
<value type="QString" key="RunConfiguration.WorkingDirectory.default">D:/_develop/_project/NameCreater/build-NameCreater-Desktop_Qt_5_15_2_MSVC2019_64bit-Debug</value>
|
||||
</valuemap>
|
||||
<value type="qlonglong" key="ProjectExplorer.Target.RunConfigurationCount">1</value>
|
||||
</valuemap>
|
||||
</data>
|
||||
<data>
|
||||
<variable>ProjectExplorer.Project.Target.1</variable>
|
||||
<valuemap type="QVariantMap">
|
||||
<value type="QString" key="DeviceType">WebAssemblyDeviceType</value>
|
||||
<value type="QString" key="ProjectExplorer.ProjectConfiguration.DefaultDisplayName">Qt 5.15.2 WebAssembly</value>
|
||||
<value type="QString" key="ProjectExplorer.ProjectConfiguration.DisplayName">Qt 5.15.2 WebAssembly</value>
|
||||
<value type="QString" key="ProjectExplorer.ProjectConfiguration.Id">qt.qt5.5152.wasm_32_kit</value>
|
||||
<value type="qlonglong" key="ProjectExplorer.Target.ActiveBuildConfiguration">0</value>
|
||||
<value type="qlonglong" key="ProjectExplorer.Target.ActiveDeployConfiguration">-1</value>
|
||||
<value type="qlonglong" key="ProjectExplorer.Target.ActiveRunConfiguration">0</value>
|
||||
<valuemap type="QVariantMap" key="ProjectExplorer.Target.BuildConfiguration.0">
|
||||
<value type="int" key="EnableQmlDebugging">0</value>
|
||||
<value type="QString" key="ProjectExplorer.BuildConfiguration.BuildDirectory">D:\_develop\_project\NameCreater\build-NameCreater-Qt_5_15_2_WebAssembly-Debug</value>
|
||||
<value type="QString" key="ProjectExplorer.BuildConfiguration.BuildDirectory.shadowDir">D:/_develop/_project/NameCreater/build-NameCreater-Qt_5_15_2_WebAssembly-Debug</value>
|
||||
<valuemap type="QVariantMap" key="ProjectExplorer.BuildConfiguration.BuildStepList.0">
|
||||
<valuemap type="QVariantMap" key="ProjectExplorer.BuildStepList.Step.0">
|
||||
<value type="bool" key="ProjectExplorer.BuildStep.Enabled">true</value>
|
||||
<value type="QString" key="ProjectExplorer.ProjectConfiguration.Id">QtProjectManager.QMakeBuildStep</value>
|
||||
<value type="bool" key="QtProjectManager.QMakeBuildStep.QMakeForced">false</value>
|
||||
<valuelist type="QVariantList" key="QtProjectManager.QMakeBuildStep.SelectedAbis"/>
|
||||
</valuemap>
|
||||
<valuemap type="QVariantMap" key="ProjectExplorer.BuildStepList.Step.1">
|
||||
<value type="bool" key="ProjectExplorer.BuildStep.Enabled">true</value>
|
||||
<value type="QString" key="ProjectExplorer.ProjectConfiguration.Id">Qt4ProjectManager.MakeStep</value>
|
||||
</valuemap>
|
||||
<value type="qlonglong" key="ProjectExplorer.BuildStepList.StepsCount">2</value>
|
||||
<value type="QString" key="ProjectExplorer.ProjectConfiguration.DefaultDisplayName">Build</value>
|
||||
<value type="QString" key="ProjectExplorer.ProjectConfiguration.DisplayName">Build</value>
|
||||
<value type="QString" key="ProjectExplorer.ProjectConfiguration.Id">ProjectExplorer.BuildSteps.Build</value>
|
||||
</valuemap>
|
||||
<valuemap type="QVariantMap" key="ProjectExplorer.BuildConfiguration.BuildStepList.1">
|
||||
<valuemap type="QVariantMap" key="ProjectExplorer.BuildStepList.Step.0">
|
||||
<value type="bool" key="ProjectExplorer.BuildStep.Enabled">true</value>
|
||||
<value type="QString" key="ProjectExplorer.ProjectConfiguration.Id">Qt4ProjectManager.MakeStep</value>
|
||||
<value type="QString" key="Qt4ProjectManager.MakeStep.MakeArguments">clean</value>
|
||||
</valuemap>
|
||||
<value type="qlonglong" key="ProjectExplorer.BuildStepList.StepsCount">1</value>
|
||||
<value type="QString" key="ProjectExplorer.ProjectConfiguration.DefaultDisplayName">Clean</value>
|
||||
<value type="QString" key="ProjectExplorer.ProjectConfiguration.DisplayName">Clean</value>
|
||||
<value type="QString" key="ProjectExplorer.ProjectConfiguration.Id">ProjectExplorer.BuildSteps.Clean</value>
|
||||
</valuemap>
|
||||
<value type="int" key="ProjectExplorer.BuildConfiguration.BuildStepListCount">2</value>
|
||||
<value type="bool" key="ProjectExplorer.BuildConfiguration.ClearSystemEnvironment">false</value>
|
||||
<valuelist type="QVariantList" key="ProjectExplorer.BuildConfiguration.CustomParsers"/>
|
||||
<value type="bool" key="ProjectExplorer.BuildConfiguration.ParseStandardOutput">false</value>
|
||||
<valuelist type="QVariantList" key="ProjectExplorer.BuildConfiguration.UserEnvironmentChanges"/>
|
||||
<value type="QString" key="ProjectExplorer.ProjectConfiguration.DisplayName">Debug</value>
|
||||
<value type="QString" key="ProjectExplorer.ProjectConfiguration.Id">Qt4ProjectManager.Qt4BuildConfiguration</value>
|
||||
<value type="int" key="Qt4ProjectManager.Qt4BuildConfiguration.BuildConfiguration">2</value>
|
||||
</valuemap>
|
||||
<valuemap type="QVariantMap" key="ProjectExplorer.Target.BuildConfiguration.1">
|
||||
<value type="QString" key="ProjectExplorer.BuildConfiguration.BuildDirectory">D:\_develop\_project\NameCreater\build-NameCreater-Qt_5_15_2_WebAssembly-Release</value>
|
||||
<value type="QString" key="ProjectExplorer.BuildConfiguration.BuildDirectory.shadowDir">D:/_develop/_project/NameCreater/build-NameCreater-Qt_5_15_2_WebAssembly-Release</value>
|
||||
<valuemap type="QVariantMap" key="ProjectExplorer.BuildConfiguration.BuildStepList.0">
|
||||
<valuemap type="QVariantMap" key="ProjectExplorer.BuildStepList.Step.0">
|
||||
<value type="bool" key="ProjectExplorer.BuildStep.Enabled">true</value>
|
||||
<value type="QString" key="ProjectExplorer.ProjectConfiguration.Id">QtProjectManager.QMakeBuildStep</value>
|
||||
<value type="bool" key="QtProjectManager.QMakeBuildStep.QMakeForced">true</value>
|
||||
<valuelist type="QVariantList" key="QtProjectManager.QMakeBuildStep.SelectedAbis"/>
|
||||
</valuemap>
|
||||
<valuemap type="QVariantMap" key="ProjectExplorer.BuildStepList.Step.1">
|
||||
<value type="bool" key="ProjectExplorer.BuildStep.Enabled">true</value>
|
||||
<value type="QString" key="ProjectExplorer.ProjectConfiguration.Id">Qt4ProjectManager.MakeStep</value>
|
||||
</valuemap>
|
||||
<value type="qlonglong" key="ProjectExplorer.BuildStepList.StepsCount">2</value>
|
||||
<value type="QString" key="ProjectExplorer.ProjectConfiguration.DefaultDisplayName">Build</value>
|
||||
<value type="QString" key="ProjectExplorer.ProjectConfiguration.DisplayName">Build</value>
|
||||
<value type="QString" key="ProjectExplorer.ProjectConfiguration.Id">ProjectExplorer.BuildSteps.Build</value>
|
||||
</valuemap>
|
||||
<valuemap type="QVariantMap" key="ProjectExplorer.BuildConfiguration.BuildStepList.1">
|
||||
<valuemap type="QVariantMap" key="ProjectExplorer.BuildStepList.Step.0">
|
||||
<value type="bool" key="ProjectExplorer.BuildStep.Enabled">true</value>
|
||||
<value type="QString" key="ProjectExplorer.ProjectConfiguration.Id">Qt4ProjectManager.MakeStep</value>
|
||||
<value type="QString" key="Qt4ProjectManager.MakeStep.MakeArguments">clean</value>
|
||||
</valuemap>
|
||||
<value type="qlonglong" key="ProjectExplorer.BuildStepList.StepsCount">1</value>
|
||||
<value type="QString" key="ProjectExplorer.ProjectConfiguration.DefaultDisplayName">Clean</value>
|
||||
<value type="QString" key="ProjectExplorer.ProjectConfiguration.DisplayName">Clean</value>
|
||||
<value type="QString" key="ProjectExplorer.ProjectConfiguration.Id">ProjectExplorer.BuildSteps.Clean</value>
|
||||
</valuemap>
|
||||
<value type="int" key="ProjectExplorer.BuildConfiguration.BuildStepListCount">2</value>
|
||||
<value type="bool" key="ProjectExplorer.BuildConfiguration.ClearSystemEnvironment">false</value>
|
||||
<valuelist type="QVariantList" key="ProjectExplorer.BuildConfiguration.CustomParsers"/>
|
||||
<value type="bool" key="ProjectExplorer.BuildConfiguration.ParseStandardOutput">false</value>
|
||||
<valuelist type="QVariantList" key="ProjectExplorer.BuildConfiguration.UserEnvironmentChanges"/>
|
||||
<value type="QString" key="ProjectExplorer.ProjectConfiguration.DisplayName">Release</value>
|
||||
<value type="QString" key="ProjectExplorer.ProjectConfiguration.Id">Qt4ProjectManager.Qt4BuildConfiguration</value>
|
||||
<value type="int" key="Qt4ProjectManager.Qt4BuildConfiguration.BuildConfiguration">0</value>
|
||||
<value type="int" key="QtQuickCompiler">0</value>
|
||||
</valuemap>
|
||||
<valuemap type="QVariantMap" key="ProjectExplorer.Target.BuildConfiguration.2">
|
||||
<value type="int" key="EnableQmlDebugging">0</value>
|
||||
<value type="QString" key="ProjectExplorer.BuildConfiguration.BuildDirectory">D:\_develop\_project\NameCreater\build-NameCreater-Qt_5_15_2_WebAssembly-Profile</value>
|
||||
<value type="QString" key="ProjectExplorer.BuildConfiguration.BuildDirectory.shadowDir">D:/_develop/_project/NameCreater/build-NameCreater-Qt_5_15_2_WebAssembly-Profile</value>
|
||||
<valuemap type="QVariantMap" key="ProjectExplorer.BuildConfiguration.BuildStepList.0">
|
||||
<valuemap type="QVariantMap" key="ProjectExplorer.BuildStepList.Step.0">
|
||||
<value type="bool" key="ProjectExplorer.BuildStep.Enabled">true</value>
|
||||
<value type="QString" key="ProjectExplorer.ProjectConfiguration.Id">QtProjectManager.QMakeBuildStep</value>
|
||||
<value type="bool" key="QtProjectManager.QMakeBuildStep.QMakeForced">true</value>
|
||||
<valuelist type="QVariantList" key="QtProjectManager.QMakeBuildStep.SelectedAbis"/>
|
||||
</valuemap>
|
||||
<valuemap type="QVariantMap" key="ProjectExplorer.BuildStepList.Step.1">
|
||||
<value type="bool" key="ProjectExplorer.BuildStep.Enabled">true</value>
|
||||
<value type="QString" key="ProjectExplorer.ProjectConfiguration.Id">Qt4ProjectManager.MakeStep</value>
|
||||
</valuemap>
|
||||
<value type="qlonglong" key="ProjectExplorer.BuildStepList.StepsCount">2</value>
|
||||
<value type="QString" key="ProjectExplorer.ProjectConfiguration.DefaultDisplayName">Build</value>
|
||||
<value type="QString" key="ProjectExplorer.ProjectConfiguration.DisplayName">Build</value>
|
||||
<value type="QString" key="ProjectExplorer.ProjectConfiguration.Id">ProjectExplorer.BuildSteps.Build</value>
|
||||
</valuemap>
|
||||
<valuemap type="QVariantMap" key="ProjectExplorer.BuildConfiguration.BuildStepList.1">
|
||||
<valuemap type="QVariantMap" key="ProjectExplorer.BuildStepList.Step.0">
|
||||
<value type="bool" key="ProjectExplorer.BuildStep.Enabled">true</value>
|
||||
<value type="QString" key="ProjectExplorer.ProjectConfiguration.Id">Qt4ProjectManager.MakeStep</value>
|
||||
<value type="QString" key="Qt4ProjectManager.MakeStep.MakeArguments">clean</value>
|
||||
</valuemap>
|
||||
<value type="qlonglong" key="ProjectExplorer.BuildStepList.StepsCount">1</value>
|
||||
<value type="QString" key="ProjectExplorer.ProjectConfiguration.DefaultDisplayName">Clean</value>
|
||||
<value type="QString" key="ProjectExplorer.ProjectConfiguration.DisplayName">Clean</value>
|
||||
<value type="QString" key="ProjectExplorer.ProjectConfiguration.Id">ProjectExplorer.BuildSteps.Clean</value>
|
||||
</valuemap>
|
||||
<value type="int" key="ProjectExplorer.BuildConfiguration.BuildStepListCount">2</value>
|
||||
<value type="bool" key="ProjectExplorer.BuildConfiguration.ClearSystemEnvironment">false</value>
|
||||
<valuelist type="QVariantList" key="ProjectExplorer.BuildConfiguration.CustomParsers"/>
|
||||
<value type="bool" key="ProjectExplorer.BuildConfiguration.ParseStandardOutput">false</value>
|
||||
<valuelist type="QVariantList" key="ProjectExplorer.BuildConfiguration.UserEnvironmentChanges"/>
|
||||
<value type="QString" key="ProjectExplorer.ProjectConfiguration.DisplayName">Profile</value>
|
||||
<value type="QString" key="ProjectExplorer.ProjectConfiguration.Id">Qt4ProjectManager.Qt4BuildConfiguration</value>
|
||||
<value type="int" key="Qt4ProjectManager.Qt4BuildConfiguration.BuildConfiguration">0</value>
|
||||
<value type="int" key="QtQuickCompiler">0</value>
|
||||
<value type="int" key="SeparateDebugInfo">0</value>
|
||||
</valuemap>
|
||||
<value type="qlonglong" key="ProjectExplorer.Target.BuildConfigurationCount">3</value>
|
||||
<value type="qlonglong" key="ProjectExplorer.Target.DeployConfigurationCount">0</value>
|
||||
<valuemap type="QVariantMap" key="ProjectExplorer.Target.RunConfiguration.0">
|
||||
<value type="bool" key="Analyzer.Perf.Settings.UseGlobalSettings">true</value>
|
||||
<value type="bool" key="Analyzer.QmlProfiler.Settings.UseGlobalSettings">true</value>
|
||||
<value type="bool" key="Analyzer.Valgrind.Settings.UseGlobalSettings">true</value>
|
||||
<valuelist type="QVariantList" key="CustomOutputParsers"/>
|
||||
<value type="QString" key="ProjectExplorer.ProjectConfiguration.DisplayName">NameCreater</value>
|
||||
<value type="QString" key="ProjectExplorer.ProjectConfiguration.Id">WebAssembly.RunConfiguration.EmrunD:/_develop/_project/NameCreater/NameCreater/NameCreater.pro</value>
|
||||
<value type="QString" key="ProjectExplorer.RunConfiguration.BuildKey">D:/_develop/_project/NameCreater/NameCreater/NameCreater.pro</value>
|
||||
<value type="bool" key="RunConfiguration.UseCppDebugger">false</value>
|
||||
<value type="bool" key="RunConfiguration.UseCppDebuggerAuto">true</value>
|
||||
<value type="bool" key="RunConfiguration.UseQmlDebugger">false</value>
|
||||
<value type="bool" key="RunConfiguration.UseQmlDebuggerAuto">true</value>
|
||||
<value type="QString" key="WASM.WebBrowserSelectionAspect.Browser">chrome</value>
|
||||
</valuemap>
|
||||
<value type="qlonglong" key="ProjectExplorer.Target.RunConfigurationCount">1</value>
|
||||
</valuemap>
|
||||
|
||||
@ -1,104 +1,105 @@
|
||||
<RCC>
|
||||
<qresource prefix="/NameCreater">
|
||||
<file>_exp/DFYuanStd-W8.otf</file>
|
||||
<file>resource/background_sample.jpg</file>
|
||||
<file>resource/background_b.jpg</file>
|
||||
<file>resource/background_g.jpg</file>
|
||||
<file>resource/background_r.jpg</file>
|
||||
<file>resource/background_y.jpg</file>
|
||||
<file>resource/two_word_sample.jpg</file>
|
||||
<file>resource/background_1.jpg</file>
|
||||
<file>resource/background_2.jpg</file>
|
||||
<file>resource/background_3.jpg</file>
|
||||
<file>resource/background_4.jpg</file>
|
||||
<file>resource/background_5.jpg</file>
|
||||
<file>resource/background_6.jpg</file>
|
||||
<file>resource/background_7.jpg</file>
|
||||
<file>resource/background_8.jpg</file>
|
||||
<file>resource/background_9.jpg</file>
|
||||
<file>resource/background_10.jpg</file>
|
||||
<file>resource/background_number_smaple.jpg</file>
|
||||
<file>resource/background_11.jpg</file>
|
||||
<file>resource/background_12.jpg</file>
|
||||
<file>resource/background_13.jpg</file>
|
||||
<file>resource/background_14.jpg</file>
|
||||
<file>resource/background_15.jpg</file>
|
||||
<file>resource/background_16.jpg</file>
|
||||
<file>resource/background_17.jpg</file>
|
||||
<file>resource/background_18.jpg</file>
|
||||
<file>resource/background_19.jpg</file>
|
||||
<file>resource/background_20.jpg</file>
|
||||
<file>resource/background.jpg</file>
|
||||
<file>resource/background_boy.jpg</file>
|
||||
<file>resource/background_girl.jpg</file>
|
||||
<file>resource/b.jpg</file>
|
||||
<file>resource/boy_bg.jpg</file>
|
||||
<file>resource/co.jpg</file>
|
||||
<file>resource/g.jpg</file>
|
||||
<file>resource/girl_bg.jpg</file>
|
||||
<file>resource/m.jpg</file>
|
||||
<file>resource/ol.jpg</file>
|
||||
<file>resource/p.jpg</file>
|
||||
<file>resource/r.jpg</file>
|
||||
<file>resource/sn.jpg</file>
|
||||
<file>resource/st.jpg</file>
|
||||
<file>resource/w.jpg</file>
|
||||
<file>resource/y.jpg</file>
|
||||
<file>_exp/W1.ttc</file>
|
||||
<file>resource/five/b_1.jpg</file>
|
||||
<file>resource/five/b_2.jpg</file>
|
||||
<file>resource/five/b_3.jpg</file>
|
||||
<file>resource/five/b_4.jpg</file>
|
||||
<file>resource/five/b_5.jpg</file>
|
||||
<file>resource/five/g_1.jpg</file>
|
||||
<file>resource/five/g_2.jpg</file>
|
||||
<file>resource/five/g_3.jpg</file>
|
||||
<file>resource/five/g_4.jpg</file>
|
||||
<file>resource/five/g_5.jpg</file>
|
||||
<file>resource/five/nb_1.jpg</file>
|
||||
<file>resource/five/nb_2.jpg</file>
|
||||
<file>resource/five/nb_3.jpg</file>
|
||||
<file>resource/five/nb_4.jpg</file>
|
||||
<file>resource/five/nb_5.jpg</file>
|
||||
<file>resource/five/new_bg_sample.jpg</file>
|
||||
<file>resource/five/ng_1.jpg</file>
|
||||
<file>resource/five/ng_2.jpg</file>
|
||||
<file>resource/five/ng_3.jpg</file>
|
||||
<file>resource/five/ng_4.jpg</file>
|
||||
<file>resource/five/ng_5.jpg</file>
|
||||
<file>_exp/FontsFree-Net-Acumin-Pro-Semibold.ttf</file>
|
||||
<file>resource/hk_holder/b.jpg</file>
|
||||
<file>resource/hk_holder/g.jpg</file>
|
||||
<file>resource/hk_holder/p.jpg</file>
|
||||
<file>resource/hk_holder/r.jpg</file>
|
||||
<file>resource/hk_holder/sample.jpg</file>
|
||||
<file>resource/hk_holder/y.jpg</file>
|
||||
<file>resource/hk_holder/m.jpg</file>
|
||||
<file>resource/hk_holder/st.jpg</file>
|
||||
<file>resource/hk_holder/w.jpg</file>
|
||||
<file>resource/hk_holder/a.jpg</file>
|
||||
<file>resource/hk_holder/pg.jpg</file>
|
||||
<file>resource/a.jpg</file>
|
||||
<file>resource/pg.jpg</file>
|
||||
<file>resource/background_21.jpg</file>
|
||||
<file>resource/background_22.jpg</file>
|
||||
<file>resource/background_23.jpg</file>
|
||||
<file>resource/background_24.jpg</file>
|
||||
<file>resource/background_25.jpg</file>
|
||||
<file>resource/background_26.jpg</file>
|
||||
<file>resource/background_27.jpg</file>
|
||||
<file>resource/background_28.jpg</file>
|
||||
<file>resource/background_29.jpg</file>
|
||||
<file>resource/background_30.jpg</file>
|
||||
<file>resource/five/kb_1.jpg</file>
|
||||
<file>resource/five/kb_2.jpg</file>
|
||||
<file>resource/five/kb_3.jpg</file>
|
||||
<file>resource/five/kb_4.jpg</file>
|
||||
<file>resource/five/kb_5.jpg</file>
|
||||
<file>resource/five/kg_1.jpg</file>
|
||||
<file>resource/five/kg_2.jpg</file>
|
||||
<file>resource/five/kg_3.jpg</file>
|
||||
<file>resource/five/kg_4.jpg</file>
|
||||
<file>resource/five/kg_5.jpg</file>
|
||||
</qresource>
|
||||
<qresource prefix="/NameCreater">
|
||||
<file>resource/custom_logo/bg_1.jpg</file>
|
||||
<file>_exp/DFYuanStd-W8.otf</file>
|
||||
<file>resource/background_sample.jpg</file>
|
||||
<file>resource/background_b.jpg</file>
|
||||
<file>resource/background_g.jpg</file>
|
||||
<file>resource/background_r.jpg</file>
|
||||
<file>resource/background_y.jpg</file>
|
||||
<file>resource/two_word_sample.jpg</file>
|
||||
<file>resource/background_1.jpg</file>
|
||||
<file>resource/background_2.jpg</file>
|
||||
<file>resource/background_3.jpg</file>
|
||||
<file>resource/background_4.jpg</file>
|
||||
<file>resource/background_5.jpg</file>
|
||||
<file>resource/background_6.jpg</file>
|
||||
<file>resource/background_7.jpg</file>
|
||||
<file>resource/background_8.jpg</file>
|
||||
<file>resource/background_9.jpg</file>
|
||||
<file>resource/background_10.jpg</file>
|
||||
<file>resource/background_number_smaple.jpg</file>
|
||||
<file>resource/background_11.jpg</file>
|
||||
<file>resource/background_12.jpg</file>
|
||||
<file>resource/background_13.jpg</file>
|
||||
<file>resource/background_14.jpg</file>
|
||||
<file>resource/background_15.jpg</file>
|
||||
<file>resource/background_16.jpg</file>
|
||||
<file>resource/background_17.jpg</file>
|
||||
<file>resource/background_18.jpg</file>
|
||||
<file>resource/background_19.jpg</file>
|
||||
<file>resource/background_20.jpg</file>
|
||||
<file>resource/background.jpg</file>
|
||||
<file>resource/background_boy.jpg</file>
|
||||
<file>resource/background_girl.jpg</file>
|
||||
<file>resource/b.jpg</file>
|
||||
<file>resource/boy_bg.jpg</file>
|
||||
<file>resource/co.jpg</file>
|
||||
<file>resource/g.jpg</file>
|
||||
<file>resource/girl_bg.jpg</file>
|
||||
<file>resource/m.jpg</file>
|
||||
<file>resource/ol.jpg</file>
|
||||
<file>resource/p.jpg</file>
|
||||
<file>resource/r.jpg</file>
|
||||
<file>resource/sn.jpg</file>
|
||||
<file>resource/st.jpg</file>
|
||||
<file>resource/w.jpg</file>
|
||||
<file>resource/y.jpg</file>
|
||||
<file>_exp/W1.ttc</file>
|
||||
<file>resource/five/b_1.jpg</file>
|
||||
<file>resource/five/b_2.jpg</file>
|
||||
<file>resource/five/b_3.jpg</file>
|
||||
<file>resource/five/b_4.jpg</file>
|
||||
<file>resource/five/b_5.jpg</file>
|
||||
<file>resource/five/g_1.jpg</file>
|
||||
<file>resource/five/g_2.jpg</file>
|
||||
<file>resource/five/g_3.jpg</file>
|
||||
<file>resource/five/g_4.jpg</file>
|
||||
<file>resource/five/g_5.jpg</file>
|
||||
<file>resource/five/nb_1.jpg</file>
|
||||
<file>resource/five/nb_2.jpg</file>
|
||||
<file>resource/five/nb_3.jpg</file>
|
||||
<file>resource/five/nb_4.jpg</file>
|
||||
<file>resource/five/nb_5.jpg</file>
|
||||
<file>resource/five/new_bg_sample.jpg</file>
|
||||
<file>resource/five/ng_1.jpg</file>
|
||||
<file>resource/five/ng_2.jpg</file>
|
||||
<file>resource/five/ng_3.jpg</file>
|
||||
<file>resource/five/ng_4.jpg</file>
|
||||
<file>resource/five/ng_5.jpg</file>
|
||||
<file>_exp/FontsFree-Net-Acumin-Pro-Semibold.ttf</file>
|
||||
<file>resource/hk_holder/b.jpg</file>
|
||||
<file>resource/hk_holder/g.jpg</file>
|
||||
<file>resource/hk_holder/p.jpg</file>
|
||||
<file>resource/hk_holder/r.jpg</file>
|
||||
<file>resource/hk_holder/sample.jpg</file>
|
||||
<file>resource/hk_holder/y.jpg</file>
|
||||
<file>resource/hk_holder/m.jpg</file>
|
||||
<file>resource/hk_holder/st.jpg</file>
|
||||
<file>resource/hk_holder/w.jpg</file>
|
||||
<file>resource/hk_holder/a.jpg</file>
|
||||
<file>resource/hk_holder/pg.jpg</file>
|
||||
<file>resource/a.jpg</file>
|
||||
<file>resource/pg.jpg</file>
|
||||
<file>resource/background_21.jpg</file>
|
||||
<file>resource/background_22.jpg</file>
|
||||
<file>resource/background_23.jpg</file>
|
||||
<file>resource/background_24.jpg</file>
|
||||
<file>resource/background_25.jpg</file>
|
||||
<file>resource/background_26.jpg</file>
|
||||
<file>resource/background_27.jpg</file>
|
||||
<file>resource/background_28.jpg</file>
|
||||
<file>resource/background_29.jpg</file>
|
||||
<file>resource/background_30.jpg</file>
|
||||
<file>resource/five/kb_1.jpg</file>
|
||||
<file>resource/five/kb_2.jpg</file>
|
||||
<file>resource/five/kb_3.jpg</file>
|
||||
<file>resource/five/kb_4.jpg</file>
|
||||
<file>resource/five/kb_5.jpg</file>
|
||||
<file>resource/five/kg_1.jpg</file>
|
||||
<file>resource/five/kg_2.jpg</file>
|
||||
<file>resource/five/kg_3.jpg</file>
|
||||
<file>resource/five/kg_4.jpg</file>
|
||||
<file>resource/five/kg_5.jpg</file>
|
||||
</qresource>
|
||||
</RCC>
|
||||
|
||||
@ -60,7 +60,7 @@
|
||||
<x>10</x>
|
||||
<y>40</y>
|
||||
<width>851</width>
|
||||
<height>581</height>
|
||||
<height>681</height>
|
||||
</rect>
|
||||
</property>
|
||||
<property name="styleSheet">
|
||||
@ -77,6 +77,91 @@ border-color: rgb(255, 255, 255);
|
||||
<enum>QFrame::Raised</enum>
|
||||
</property>
|
||||
<layout class="QGridLayout" name="gridLayout">
|
||||
<item row="4" column="0">
|
||||
<widget class="QPushButton" name="birthday_btn">
|
||||
<property name="minimumSize">
|
||||
<size>
|
||||
<width>0</width>
|
||||
<height>76</height>
|
||||
</size>
|
||||
</property>
|
||||
<property name="text">
|
||||
<string>Open File</string>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
<item row="9" column="0">
|
||||
<widget class="QLabel" name="tital_label_9">
|
||||
<property name="font">
|
||||
<font>
|
||||
<family>Yu Gothic UI</family>
|
||||
<pointsize>20</pointsize>
|
||||
<weight>50</weight>
|
||||
<italic>false</italic>
|
||||
<bold>false</bold>
|
||||
</font>
|
||||
</property>
|
||||
<property name="styleSheet">
|
||||
<string notr="true">
|
||||
color: rgb(255, 255, 255);
|
||||
</string>
|
||||
</property>
|
||||
<property name="text">
|
||||
<string>客製底圖產生器</string>
|
||||
</property>
|
||||
<property name="alignment">
|
||||
<set>Qt::AlignCenter</set>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
<item row="7" column="0">
|
||||
<widget class="QLabel" name="tital_label_7">
|
||||
<property name="font">
|
||||
<font>
|
||||
<family>Yu Gothic UI</family>
|
||||
<pointsize>20</pointsize>
|
||||
<weight>50</weight>
|
||||
<italic>false</italic>
|
||||
<bold>false</bold>
|
||||
</font>
|
||||
</property>
|
||||
<property name="styleSheet">
|
||||
<string notr="true">
|
||||
color: rgb(255, 255, 255);
|
||||
</string>
|
||||
</property>
|
||||
<property name="text">
|
||||
<string>生日禮產生器(英/英)</string>
|
||||
</property>
|
||||
<property name="alignment">
|
||||
<set>Qt::AlignCenter</set>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
<item row="5" column="0">
|
||||
<widget class="QLabel" name="tital_label_6">
|
||||
<property name="font">
|
||||
<font>
|
||||
<family>Yu Gothic UI</family>
|
||||
<pointsize>20</pointsize>
|
||||
<weight>50</weight>
|
||||
<italic>false</italic>
|
||||
<bold>false</bold>
|
||||
</font>
|
||||
</property>
|
||||
<property name="styleSheet">
|
||||
<string notr="true">
|
||||
color: rgb(255, 255, 255);
|
||||
</string>
|
||||
</property>
|
||||
<property name="text">
|
||||
<string>生日禮產生器(中/英)</string>
|
||||
</property>
|
||||
<property name="alignment">
|
||||
<set>Qt::AlignCenter</set>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
<item row="2" column="1">
|
||||
<widget class="QPushButton" name="fivesingle_btn">
|
||||
<property name="minimumSize">
|
||||
@ -90,8 +175,71 @@ border-color: rgb(255, 255, 255);
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
<item row="5" column="1">
|
||||
<widget class="QLabel" name="tital_label_5">
|
||||
<item row="8" column="0">
|
||||
<widget class="QPushButton" name="birthday_eng_eng_btn">
|
||||
<property name="minimumSize">
|
||||
<size>
|
||||
<width>0</width>
|
||||
<height>76</height>
|
||||
</size>
|
||||
</property>
|
||||
<property name="text">
|
||||
<string>Open File</string>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
<item row="2" column="0">
|
||||
<widget class="QPushButton" name="fivenew_btn">
|
||||
<property name="minimumSize">
|
||||
<size>
|
||||
<width>0</width>
|
||||
<height>76</height>
|
||||
</size>
|
||||
</property>
|
||||
<property name="text">
|
||||
<string>Open File</string>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
<item row="4" column="1">
|
||||
<widget class="QPushButton" name="fivesingle_zh_eng_btn">
|
||||
<property name="minimumSize">
|
||||
<size>
|
||||
<width>0</width>
|
||||
<height>76</height>
|
||||
</size>
|
||||
</property>
|
||||
<property name="text">
|
||||
<string>Open File</string>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
<item row="3" column="0">
|
||||
<widget class="QLabel" name="tital_label_4">
|
||||
<property name="font">
|
||||
<font>
|
||||
<family>Yu Gothic UI</family>
|
||||
<pointsize>20</pointsize>
|
||||
<weight>50</weight>
|
||||
<italic>false</italic>
|
||||
<bold>false</bold>
|
||||
</font>
|
||||
</property>
|
||||
<property name="styleSheet">
|
||||
<string notr="true">
|
||||
color: rgb(255, 255, 255);
|
||||
</string>
|
||||
</property>
|
||||
<property name="text">
|
||||
<string>生日禮產生器</string>
|
||||
</property>
|
||||
<property name="alignment">
|
||||
<set>Qt::AlignCenter</set>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
<item row="1" column="1">
|
||||
<widget class="QLabel" name="tital_label">
|
||||
<property name="font">
|
||||
<font>
|
||||
<family>Yu Gothic UI</family>
|
||||
@ -106,15 +254,15 @@ border-color: rgb(255, 255, 255);
|
||||
</string>
|
||||
</property>
|
||||
<property name="text">
|
||||
<string>小方巾產生器</string>
|
||||
<string>五入組拆成單入產生器</string>
|
||||
</property>
|
||||
<property name="alignment">
|
||||
<set>Qt::AlignCenter</set>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
<item row="8" column="1">
|
||||
<widget class="QPushButton" name="handkerchief_btn">
|
||||
<item row="6" column="0">
|
||||
<widget class="QPushButton" name="birthday_zh_eng_btn">
|
||||
<property name="minimumSize">
|
||||
<size>
|
||||
<width>0</width>
|
||||
@ -162,8 +310,8 @@ border-color: rgb(255, 255, 255);
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
<item row="1" column="1">
|
||||
<widget class="QLabel" name="tital_label">
|
||||
<item row="1" column="0">
|
||||
<widget class="QLabel" name="tital_label_3">
|
||||
<property name="font">
|
||||
<font>
|
||||
<family>Yu Gothic UI</family>
|
||||
@ -178,15 +326,38 @@ border-color: rgb(255, 255, 255);
|
||||
</string>
|
||||
</property>
|
||||
<property name="text">
|
||||
<string>五入組拆成單入產生器</string>
|
||||
<string>五入組產生器</string>
|
||||
</property>
|
||||
<property name="alignment">
|
||||
<set>Qt::AlignCenter</set>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
<item row="2" column="0">
|
||||
<widget class="QPushButton" name="fivenew_btn">
|
||||
<item row="5" column="1">
|
||||
<widget class="QLabel" name="tital_label_5">
|
||||
<property name="font">
|
||||
<font>
|
||||
<family>Yu Gothic UI</family>
|
||||
<pointsize>20</pointsize>
|
||||
<weight>50</weight>
|
||||
<italic>false</italic>
|
||||
<bold>false</bold>
|
||||
</font>
|
||||
</property>
|
||||
<property name="styleSheet">
|
||||
<string notr="true">color: rgb(255, 255, 255);
|
||||
</string>
|
||||
</property>
|
||||
<property name="text">
|
||||
<string>小方巾產生器</string>
|
||||
</property>
|
||||
<property name="alignment">
|
||||
<set>Qt::AlignCenter</set>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
<item row="8" column="1">
|
||||
<widget class="QPushButton" name="handkerchief_btn">
|
||||
<property name="minimumSize">
|
||||
<size>
|
||||
<width>0</width>
|
||||
@ -222,31 +393,8 @@ color: rgb(250, 250, 250);
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
<item row="1" column="0">
|
||||
<widget class="QLabel" name="tital_label_3">
|
||||
<property name="font">
|
||||
<font>
|
||||
<family>Yu Gothic UI</family>
|
||||
<pointsize>20</pointsize>
|
||||
<weight>50</weight>
|
||||
<italic>false</italic>
|
||||
<bold>false</bold>
|
||||
</font>
|
||||
</property>
|
||||
<property name="styleSheet">
|
||||
<string notr="true">color: rgb(255, 255, 255);
|
||||
</string>
|
||||
</property>
|
||||
<property name="text">
|
||||
<string>五入組產生器</string>
|
||||
</property>
|
||||
<property name="alignment">
|
||||
<set>Qt::AlignCenter</set>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
<item row="4" column="1">
|
||||
<widget class="QPushButton" name="fivesingle_zh_eng_btn">
|
||||
<item row="10" column="0">
|
||||
<widget class="QPushButton" name="customlogo_btn">
|
||||
<property name="minimumSize">
|
||||
<size>
|
||||
<width>0</width>
|
||||
@ -254,118 +402,7 @@ color: rgb(250, 250, 250);
|
||||
</size>
|
||||
</property>
|
||||
<property name="text">
|
||||
<string>Open File</string>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
<item row="3" column="0">
|
||||
<widget class="QLabel" name="tital_label_4">
|
||||
<property name="font">
|
||||
<font>
|
||||
<family>Yu Gothic UI</family>
|
||||
<pointsize>20</pointsize>
|
||||
<weight>50</weight>
|
||||
<italic>false</italic>
|
||||
<bold>false</bold>
|
||||
</font>
|
||||
</property>
|
||||
<property name="styleSheet">
|
||||
<string notr="true">
|
||||
color: rgb(255, 255, 255);
|
||||
</string>
|
||||
</property>
|
||||
<property name="text">
|
||||
<string>生日禮產生器</string>
|
||||
</property>
|
||||
<property name="alignment">
|
||||
<set>Qt::AlignCenter</set>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
<item row="4" column="0">
|
||||
<widget class="QPushButton" name="birthday_btn">
|
||||
<property name="minimumSize">
|
||||
<size>
|
||||
<width>0</width>
|
||||
<height>76</height>
|
||||
</size>
|
||||
</property>
|
||||
<property name="text">
|
||||
<string>Open File</string>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
<item row="5" column="0">
|
||||
<widget class="QLabel" name="tital_label_6">
|
||||
<property name="font">
|
||||
<font>
|
||||
<family>Yu Gothic UI</family>
|
||||
<pointsize>20</pointsize>
|
||||
<weight>50</weight>
|
||||
<italic>false</italic>
|
||||
<bold>false</bold>
|
||||
</font>
|
||||
</property>
|
||||
<property name="styleSheet">
|
||||
<string notr="true">
|
||||
color: rgb(255, 255, 255);
|
||||
</string>
|
||||
</property>
|
||||
<property name="text">
|
||||
<string>生日禮產生器(中/英)</string>
|
||||
</property>
|
||||
<property name="alignment">
|
||||
<set>Qt::AlignCenter</set>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
<item row="6" column="0">
|
||||
<widget class="QPushButton" name="birthday_zh_eng_btn">
|
||||
<property name="minimumSize">
|
||||
<size>
|
||||
<width>0</width>
|
||||
<height>76</height>
|
||||
</size>
|
||||
</property>
|
||||
<property name="text">
|
||||
<string>Open File</string>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
<item row="7" column="0">
|
||||
<widget class="QLabel" name="tital_label_7">
|
||||
<property name="font">
|
||||
<font>
|
||||
<family>Yu Gothic UI</family>
|
||||
<pointsize>20</pointsize>
|
||||
<weight>50</weight>
|
||||
<italic>false</italic>
|
||||
<bold>false</bold>
|
||||
</font>
|
||||
</property>
|
||||
<property name="styleSheet">
|
||||
<string notr="true">
|
||||
color: rgb(255, 255, 255);
|
||||
</string>
|
||||
</property>
|
||||
<property name="text">
|
||||
<string>生日禮產生器(英/英)</string>
|
||||
</property>
|
||||
<property name="alignment">
|
||||
<set>Qt::AlignCenter</set>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
<item row="8" column="0">
|
||||
<widget class="QPushButton" name="birthday_eng_eng_btn">
|
||||
<property name="minimumSize">
|
||||
<size>
|
||||
<width>0</width>
|
||||
<height>76</height>
|
||||
</size>
|
||||
</property>
|
||||
<property name="text">
|
||||
<string>Open File</string>
|
||||
<string>Open Dialog</string>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
|
||||
@ -112,8 +112,14 @@
|
||||
<Command>xcopy /y "$(ProjectDir)_exp\*" "$(TargetDir)"</Command>
|
||||
</PreBuildEvent>
|
||||
<ClCompile>
|
||||
<AdditionalOptions>/Zm100</AdditionalOptions>
|
||||
<AdditionalOptions>/Zm1000</AdditionalOptions>
|
||||
</ClCompile>
|
||||
<Link>
|
||||
<HeapCommitSize>
|
||||
</HeapCommitSize>
|
||||
<HeapReserveSize>
|
||||
</HeapReserveSize>
|
||||
</Link>
|
||||
</ItemDefinitionGroup>
|
||||
<ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">
|
||||
<PreBuildEvent>
|
||||
@ -179,11 +185,13 @@
|
||||
</ItemDefinitionGroup>
|
||||
<ItemGroup>
|
||||
<ClCompile Include="BirthdayCreater.cpp" />
|
||||
<ClCompile Include="customlogo.cpp" />
|
||||
<ClCompile Include="HKHolderCreater.cpp" />
|
||||
<ClCompile Include="NewFiveCreater.cpp" />
|
||||
<ClCompile Include="OldFiveCreater.cpp" />
|
||||
<ClCompile Include="TowelCreater.cpp" />
|
||||
<QtRcc Include="NameCreater.qrc" />
|
||||
<QtUic Include="customlogo.ui" />
|
||||
<QtUic Include="NameCreater.ui" />
|
||||
<QtMoc Include="NameCreater.h" />
|
||||
<ClCompile Include="FiveToSingle.cpp" />
|
||||
@ -193,6 +201,7 @@
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<ClInclude Include="BirthdayCreater.h" />
|
||||
<QtMoc Include="customlogo.h" />
|
||||
<ClInclude Include="FiveToSingle.h" />
|
||||
<ClInclude Include="HKHolderCreater.h" />
|
||||
<ClInclude Include="INameCreater.h" />
|
||||
|
||||
@ -64,6 +64,9 @@
|
||||
<ClCompile Include="HKHolderCreater.cpp">
|
||||
<Filter>Creaters</Filter>
|
||||
</ClCompile>
|
||||
<ClCompile Include="customlogo.cpp">
|
||||
<Filter>Creaters</Filter>
|
||||
</ClCompile>
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<ClInclude Include="resource.h">
|
||||
@ -96,4 +99,14 @@
|
||||
<Filter>Resource Files</Filter>
|
||||
</ResourceCompile>
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<QtUic Include="customlogo.ui">
|
||||
<Filter>Form Files</Filter>
|
||||
</QtUic>
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<QtMoc Include="customlogo.h">
|
||||
<Filter>Creaters</Filter>
|
||||
</QtMoc>
|
||||
</ItemGroup>
|
||||
</Project>
|
||||
@ -17,15 +17,23 @@
|
||||
<DebuggerFlavor>WindowsLocalDebugger</DebuggerFlavor>
|
||||
</PropertyGroup>
|
||||
<PropertyGroup Label="QtSettings" Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">
|
||||
<QtLastBackgroundBuild>2024-03-08T00:24:36.2679670Z</QtLastBackgroundBuild>
|
||||
<QtLastBackgroundBuild>2024-05-14T07:08:49.3700216Z</QtLastBackgroundBuild>
|
||||
<QtTouchProperty>
|
||||
</QtTouchProperty>
|
||||
</PropertyGroup>
|
||||
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|x64'" Label="QtSettings">
|
||||
<QtLastBackgroundBuild>2024-03-08T00:24:36.4421487Z</QtLastBackgroundBuild>
|
||||
<QtLastBackgroundBuild>2024-05-14T07:08:49.6936159Z</QtLastBackgroundBuild>
|
||||
<QtTouchProperty>
|
||||
</QtTouchProperty>
|
||||
</PropertyGroup>
|
||||
<PropertyGroup Label="QtSettings" Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">
|
||||
<QtLastBackgroundBuild>2024-03-08T00:24:36.6106971Z</QtLastBackgroundBuild>
|
||||
<QtLastBackgroundBuild>2024-05-14T07:08:49.8356144Z</QtLastBackgroundBuild>
|
||||
<QtTouchProperty>
|
||||
</QtTouchProperty>
|
||||
</PropertyGroup>
|
||||
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|x64'" Label="QtSettings">
|
||||
<QtLastBackgroundBuild>2024-03-08T00:24:36.7243928Z</QtLastBackgroundBuild>
|
||||
<QtLastBackgroundBuild>2024-05-14T07:08:49.9726151Z</QtLastBackgroundBuild>
|
||||
<QtTouchProperty>
|
||||
</QtTouchProperty>
|
||||
</PropertyGroup>
|
||||
</Project>
|
||||
61
NameCreater/_exp/客制背景範例_中.csv
Normal file
61
NameCreater/_exp/客制背景範例_中.csv
Normal file
@ -0,0 +1,61 @@
|
||||
name
|
||||
曹瑀樂
|
||||
謝沛希
|
||||
何采璇
|
||||
余梓鳳
|
||||
陳品臻
|
||||
邱媺涵
|
||||
翁菀妏
|
||||
鄭欣妮
|
||||
林昱澔
|
||||
林和緻
|
||||
王芃宥
|
||||
蔡曉蓉
|
||||
郭乃甄
|
||||
詹斐晴
|
||||
游子萱
|
||||
陳玟如
|
||||
黃子芩
|
||||
張凱晴
|
||||
陳珈琳
|
||||
曾靖媞
|
||||
黃芷璿
|
||||
吳子弘
|
||||
黃珮綺
|
||||
何飛翰
|
||||
林筱芙
|
||||
汪詩軒
|
||||
蘇竹君
|
||||
蔡芊薏
|
||||
陳品蓁
|
||||
林聿安
|
||||
曾逸星
|
||||
鄭亞兒
|
||||
陳尚青
|
||||
呂惠玉
|
||||
陳品勳
|
||||
鍾承羲
|
||||
簡君恬
|
||||
翁承毅
|
||||
陳婕熙
|
||||
柯彥辰
|
||||
陳星月
|
||||
張宸菲
|
||||
林秭安
|
||||
王宇安
|
||||
林采睫
|
||||
吳宇晴
|
||||
王芷甯
|
||||
巫少杰
|
||||
易庭安
|
||||
陳宥博
|
||||
黃乙蔓
|
||||
何盈萱
|
||||
楊蕙慈
|
||||
林珆安
|
||||
吳秀一
|
||||
鄭金柔
|
||||
鄭碩軒
|
||||
白浚緯
|
||||
紀艾德
|
||||
辛翊僑
|
||||
|
264
NameCreater/customlogo.cpp
Normal file
264
NameCreater/customlogo.cpp
Normal file
@ -0,0 +1,264 @@
|
||||
#include "customlogo.h"
|
||||
#include "ui_customlogo.h"
|
||||
#include "QFileDialog"
|
||||
|
||||
#include <QMessageBox>
|
||||
#include <QDateTime>
|
||||
#include <QTextCodec>
|
||||
#include <QTextStream>
|
||||
#include <QBuffer>
|
||||
#include <QDebug>
|
||||
|
||||
|
||||
static QPointF BG_POS[] = {
|
||||
QPointF(159, 61), QPointF(482, 61), QPointF(802, 61),
|
||||
QPointF(1122, 61), QPointF(1449, 61), QPointF(1772, 61),
|
||||
QPointF(2095, 61), QPointF(2414, 61), QPointF(2738, 61),
|
||||
QPointF(3060, 61), QPointF(900, 2094), QPointF(900, 2420),
|
||||
};
|
||||
|
||||
static int BG_POS_COUNT = sizeof(BG_POS) / sizeof(BG_POS[0]);
|
||||
|
||||
|
||||
|
||||
static QPointF NAME_OFFSET_START = QPointF(79, 377);
|
||||
static qreal EACH_WORD_OFFSET = 142;
|
||||
|
||||
static QColor FONT_COLOR = QColor(0, 0, 0);
|
||||
|
||||
CustomLogo::CustomLogo(QFont* font, QDialog* parent):
|
||||
QDialog(parent),
|
||||
ui(new Ui::CustomLogo),
|
||||
customFont(font)
|
||||
{
|
||||
ui->setupUi(this);
|
||||
|
||||
|
||||
connect(ui->load_bg_btn, &QPushButton::released,this, &CustomLogo::onClickedBtn);
|
||||
connect(ui->load_list_btn, &QPushButton::released, this, &CustomLogo::onClickedBtn);
|
||||
}
|
||||
|
||||
CustomLogo::~CustomLogo()
|
||||
{
|
||||
delete ui;
|
||||
}
|
||||
|
||||
void CustomLogo::loadBGFromFile()
|
||||
{
|
||||
auto fileContentReady = [this](const QString& fileName, const QByteArray& fileContent) {
|
||||
if (fileName.isEmpty()) {
|
||||
// No file was selected
|
||||
}else{
|
||||
QPixmap pix;
|
||||
if(pix.loadFromData(fileContent,"JPG")) {
|
||||
ui->display_label->setPixmap(pix);
|
||||
}else{
|
||||
qDebug()<<"Data content not image format";
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
|
||||
};
|
||||
|
||||
QFileDialog::getOpenFileContent("Image (*.jpg)", fileContentReady);
|
||||
}
|
||||
|
||||
void CustomLogo::loadListFromFile()
|
||||
{
|
||||
auto fileContentReady = [this](const QString& fileName, const QByteArray& fileContent) {
|
||||
if (fileName.isEmpty()) {
|
||||
// No file was selected
|
||||
}
|
||||
else {
|
||||
QList<NameInfo_t> nameList = getNameByFileContent(Name_zh, fileContent);
|
||||
if (!nameList.isEmpty()) {
|
||||
qDebug() << "List size: "<< QString::number(nameList.count());
|
||||
gerneraImageFromList(nameList, Name_zh);
|
||||
}
|
||||
else {
|
||||
qDebug() << "List is empty!!";
|
||||
}
|
||||
}
|
||||
|
||||
};
|
||||
|
||||
QFileDialog::getOpenFileContent("CSV file (*.csv)", fileContentReady);
|
||||
|
||||
}
|
||||
|
||||
void CustomLogo::gerneraImageFromList(const QList<NameInfo_t>& nameList, Name_Type_e type)
|
||||
{
|
||||
int export_times = 0;
|
||||
QGraphicsScene scene;
|
||||
scene.setBackgroundBrush(QBrush(QColor(255, 255, 255)));
|
||||
QGraphicsView view(&scene);
|
||||
|
||||
switch (type) {
|
||||
case Name_zh:
|
||||
{
|
||||
for (int n = 0; n < nameList.length(); n++) {
|
||||
int idx = n % BG_POS_COUNT;
|
||||
NameInfo_t name_info = nameList.at(n);
|
||||
|
||||
if (idx == 0) {
|
||||
|
||||
QGraphicsRectItem* bg_item = new QGraphicsRectItem(0, 0, BG_WIDTH, BG_HEIGHT);
|
||||
bg_item->setBrush(QBrush(QColor(255, 255, 255)));
|
||||
scene.addItem(bg_item);
|
||||
}
|
||||
|
||||
|
||||
QGraphicsPixmapItem* name_bgItem = new QGraphicsPixmapItem(*ui->display_label->pixmap());
|
||||
bool rot = (idx == 10 || idx == 11);
|
||||
name_bgItem->setRotation(rot ? -90 : 0);
|
||||
name_bgItem->setPos(BG_POS[idx]);
|
||||
scene.addItem(name_bgItem);
|
||||
|
||||
|
||||
if (name_info.name1.isEmpty()) {
|
||||
QMessageBox msgBox;
|
||||
msgBox.setText(QString().asprintf("Name is Empty at %d", export_times + 1));
|
||||
msgBox.exec();
|
||||
}
|
||||
QString name = name_info.name1;
|
||||
int name_len = name.length();
|
||||
for (int j = 0; j < 1; j++) { // never reverse
|
||||
int pos_idx = idx * 2 + j;
|
||||
qreal xscale, yscale;
|
||||
|
||||
xscale = yscale = (j == 1) ? -1 : 1;
|
||||
QPointF pos = NAME_OFFSET_START;
|
||||
qreal y_offset = 0;
|
||||
if (name_len == 2) {
|
||||
if (!rot) {
|
||||
pos.setY(pos.y() + 82.0 * xscale);
|
||||
}
|
||||
else {
|
||||
pos.setX(pos.x() + 82.0 * xscale);
|
||||
|
||||
}
|
||||
y_offset = 25;
|
||||
}
|
||||
|
||||
for (int k = 0; k < name_len; k++) {
|
||||
QGraphicsTextItem* textItem = new QGraphicsTextItem(name.mid(k, 1), name_bgItem);
|
||||
textItem->setFont(*customFont);
|
||||
textItem->setDefaultTextColor(FONT_COLOR);
|
||||
textItem->setPos(pos.x(),pos.y() + k* EACH_WORD_OFFSET + y_offset);
|
||||
textItem->setTransform(QTransform::fromScale(xscale, yscale));
|
||||
scene.addItem(textItem);
|
||||
}
|
||||
}
|
||||
bool is_export_page = ((idx + 1) % BG_POS_COUNT == 0);
|
||||
if (is_export_page || n == nameList.count() - 1) {
|
||||
QString date_str = QDateTime::currentDateTime().toString("MMddhhmm");
|
||||
QString file_name = QString("Signal_%2_%1.jpg").arg(QString::number(export_times + 1), date_str);
|
||||
saveToImage(file_name, &scene);
|
||||
export_times++;
|
||||
|
||||
scene.clear();
|
||||
}
|
||||
}
|
||||
}
|
||||
break;
|
||||
|
||||
default:
|
||||
break;
|
||||
}
|
||||
|
||||
QMessageBox msgBox;
|
||||
msgBox.setText(QString().asprintf("Export Finshed. Count:%d", export_times));
|
||||
msgBox.exec();
|
||||
|
||||
}
|
||||
|
||||
QList<NameInfo_t> CustomLogo::getNameByFileContent(Name_Type_e type, const QByteArray& conetent)
|
||||
{
|
||||
QList<NameInfo_t> nameList;
|
||||
|
||||
QTextCodec* tc = QTextCodec::codecForName("Big5");
|
||||
QString codec = tc->toUnicode(conetent.data());
|
||||
QTextStream stream(&codec);
|
||||
|
||||
int row = 0;
|
||||
while (!stream.atEnd())
|
||||
{
|
||||
NameInfo_t info;
|
||||
QString line = stream.readLine();
|
||||
QString name_tc = line;
|
||||
QStringList csvList = name_tc.split(',');
|
||||
|
||||
QString name, eng_name, bg_type;
|
||||
|
||||
switch (type) {
|
||||
case Name_zh:
|
||||
name = csvList.at(0);
|
||||
break;
|
||||
default:
|
||||
break;
|
||||
|
||||
}
|
||||
|
||||
qDebug() << "row :" << row << " " << name;
|
||||
|
||||
if (name.compare("name_1") == 0 || name.compare("name") == 0 ||
|
||||
eng_name.compare("eng_name") == 0 ) {
|
||||
//pass first line
|
||||
continue;
|
||||
}
|
||||
|
||||
info.name1 = name;
|
||||
|
||||
nameList.append(info);
|
||||
|
||||
row++;
|
||||
}
|
||||
return nameList;
|
||||
}
|
||||
|
||||
|
||||
void CustomLogo::onClickedBtn() {
|
||||
auto sender = (QPushButton*)QObject::sender();
|
||||
|
||||
if (sender == ui->load_bg_btn) {
|
||||
loadBGFromFile();
|
||||
}
|
||||
else if (sender == ui->load_list_btn) {
|
||||
loadListFromFile();
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
|
||||
void CustomLogo::saveToImage(const QString& filename, QGraphicsScene* scene)
|
||||
{
|
||||
scene->clearSelection(); // Selections would also render to the file
|
||||
scene->setSceneRect(scene->itemsBoundingRect()); // Re-shrink the scene to it's bounding contents
|
||||
QImage image(scene->sceneRect().size().toSize(), QImage::Format_ARGB32); // Create the image with the exact size of the shrunk scene
|
||||
image.fill(Qt::transparent); // Start all pixels transparent
|
||||
int dpm = 300 / 0.0254; // ~300 DPI
|
||||
image.setDotsPerMeterX(dpm);
|
||||
image.setDotsPerMeterY(dpm);
|
||||
|
||||
|
||||
QPainter painter(&image);
|
||||
scene->render(&painter);
|
||||
|
||||
#ifdef Q_OS_MAC
|
||||
QString folder_name = QCoreApplication::applicationDirPath() + "/../../../export_" + QDateTime::currentDateTime().toString("yyyyMMdd");
|
||||
#else
|
||||
QString folder_name = QCoreApplication::applicationDirPath() + "/export_" + QDateTime::currentDateTime().toString("yyyyMMdd");
|
||||
#endif
|
||||
|
||||
image.save(filename, "JPEG");
|
||||
|
||||
QByteArray imageData;
|
||||
QBuffer buffer(&imageData);
|
||||
buffer.open(QIODevice::WriteOnly);
|
||||
QPixmap pixmap = QPixmap::fromImage(image);
|
||||
pixmap.save(&buffer, "JPEG", 100); // You can also use other formats like "JPEG" or "BMP"
|
||||
|
||||
QFileDialog::saveFileContent(imageData, filename);
|
||||
|
||||
}
|
||||
39
NameCreater/customlogo.h
Normal file
39
NameCreater/customlogo.h
Normal file
@ -0,0 +1,39 @@
|
||||
#ifndef CUSTOMLOGO_H
|
||||
#define CUSTOMLOGO_H
|
||||
|
||||
#include <QDialog>
|
||||
#include "INameCreater.h"
|
||||
#include "QFont"
|
||||
|
||||
namespace Ui {
|
||||
class CustomLogo;
|
||||
}
|
||||
|
||||
class CustomLogo : public QDialog
|
||||
{
|
||||
Q_OBJECT
|
||||
|
||||
public:
|
||||
explicit CustomLogo(QFont *customFont, QDialog *parent = nullptr);
|
||||
~CustomLogo();
|
||||
|
||||
private:
|
||||
Ui::CustomLogo *ui;
|
||||
QFont* customFont;
|
||||
|
||||
void loadBGFromFile();
|
||||
void loadListFromFile();
|
||||
void gerneraImageFromList(const QList<NameInfo_t>& nameList, Name_Type_e type);
|
||||
void saveToImage(const QString& filename, QGraphicsScene* scene);
|
||||
|
||||
protected:
|
||||
QList<NameInfo_t> getNameByFileContent(Name_Type_e type, const QByteArray& conetent);
|
||||
|
||||
private Q_SLOTS:
|
||||
void onClickedBtn();
|
||||
|
||||
|
||||
|
||||
};
|
||||
|
||||
#endif // CUSTOMLOGO_H
|
||||
66
NameCreater/customlogo.ui
Normal file
66
NameCreater/customlogo.ui
Normal file
@ -0,0 +1,66 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<ui version="4.0">
|
||||
<class>CustomLogo</class>
|
||||
<widget class="QWidget" name="CustomLogo">
|
||||
<property name="geometry">
|
||||
<rect>
|
||||
<x>0</x>
|
||||
<y>0</y>
|
||||
<width>545</width>
|
||||
<height>1741</height>
|
||||
</rect>
|
||||
</property>
|
||||
<property name="windowTitle">
|
||||
<string>Form</string>
|
||||
</property>
|
||||
<widget class="QLabel" name="display_label">
|
||||
<property name="geometry">
|
||||
<rect>
|
||||
<x>20</x>
|
||||
<y>10</y>
|
||||
<width>293</width>
|
||||
<height>1715</height>
|
||||
</rect>
|
||||
</property>
|
||||
<property name="text">
|
||||
<string/>
|
||||
</property>
|
||||
<property name="pixmap">
|
||||
<pixmap resource="NameCreater.qrc">:/NameCreater/resource/custom_logo/bg_1.jpg</pixmap>
|
||||
</property>
|
||||
<property name="scaledContents">
|
||||
<bool>false</bool>
|
||||
</property>
|
||||
</widget>
|
||||
<widget class="QPushButton" name="load_bg_btn">
|
||||
<property name="geometry">
|
||||
<rect>
|
||||
<x>340</x>
|
||||
<y>70</y>
|
||||
<width>141</width>
|
||||
<height>51</height>
|
||||
</rect>
|
||||
</property>
|
||||
<property name="text">
|
||||
<string>Load BG</string>
|
||||
</property>
|
||||
</widget>
|
||||
<widget class="QPushButton" name="load_list_btn">
|
||||
<property name="geometry">
|
||||
<rect>
|
||||
<x>340</x>
|
||||
<y>160</y>
|
||||
<width>141</width>
|
||||
<height>51</height>
|
||||
</rect>
|
||||
</property>
|
||||
<property name="text">
|
||||
<string>Load List</string>
|
||||
</property>
|
||||
</widget>
|
||||
</widget>
|
||||
<resources>
|
||||
<include location="NameCreater.qrc"/>
|
||||
</resources>
|
||||
<connections/>
|
||||
</ui>
|
||||
@ -1,6 +1,6 @@
|
||||
#ifndef DEF_H
|
||||
#define DEF_H
|
||||
|
||||
#define VERSION "v2.4.6"
|
||||
#define VERSION "v2.5.0"
|
||||
|
||||
#endif // DEF_H
|
||||
|
||||
BIN
NameCreater/resource/custom_logo/bg_1.jpg
Normal file
BIN
NameCreater/resource/custom_logo/bg_1.jpg
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 381 KiB |
BIN
NameCreater/resource/custom_logo/demo_1.jpg
Normal file
BIN
NameCreater/resource/custom_logo/demo_1.jpg
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 904 KiB |
Loading…
x
Reference in New Issue
Block a user