Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
F
FMVip_Today
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
zhenfei.zhang
FMVip_Today
Commits
bc4c83aa
Commit
bc4c83aa
authored
Sep 07, 2016
by
unknown
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
添加托盘菜单
parent
599b7612
Hide whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
308 additions
and
17 deletions
+308
-17
.gitignore
+4
-0
FMVip/FMVip.pro.user
+250
-3
FMVip/fmvipdispatcher.cpp
+32
-9
FMVip/fmvipdispatcher.h
+5
-0
FMVip/fmvipforward.cpp
+8
-5
FMVip/fmvipwnd.h
+1
-0
FMVip/main.cpp
+8
-0
No files found.
.gitignore
View file @
bc4c83aa
...
@@ -11,3 +11,6 @@
...
@@ -11,3 +11,6 @@
*.lai
*.lai
*.la
*.la
*.a
*.a
/build*
/test
\ No newline at end of file
FMVip/FMVip.pro.user
View file @
bc4c83aa
<?xml version="1.0" encoding="UTF-8"?>
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE QtCreatorProject>
<!DOCTYPE QtCreatorProject>
<!-- Written by QtCreator 4.0.2, 2016-09-0
4T23:10:28
. -->
<!-- Written by QtCreator 4.0.2, 2016-09-0
7T11:12:17
. -->
<qtcreator>
<qtcreator>
<data>
<data>
<variable>
EnvironmentId
</variable>
<variable>
EnvironmentId
</variable>
...
@@ -292,7 +292,254 @@
...
@@ -292,7 +292,254 @@
<value
type=
"QString"
key=
"Qt4ProjectManager.Qt4RunConfiguration.ProFile"
>
FMVip.pro
</value>
<value
type=
"QString"
key=
"Qt4ProjectManager.Qt4RunConfiguration.ProFile"
>
FMVip.pro
</value>
<value
type=
"bool"
key=
"Qt4ProjectManager.Qt4RunConfiguration.UseDyldImageSuffix"
>
false
</value>
<value
type=
"bool"
key=
"Qt4ProjectManager.Qt4RunConfiguration.UseDyldImageSuffix"
>
false
</value>
<value
type=
"QString"
key=
"Qt4ProjectManager.Qt4RunConfiguration.UserWorkingDirectory"
></value>
<value
type=
"QString"
key=
"Qt4ProjectManager.Qt4RunConfiguration.UserWorkingDirectory"
></value>
<value
type=
"QString"
key=
"Qt4ProjectManager.Qt4RunConfiguration.UserWorkingDirectory.default"
>
C:/Users/zzf/Documents/Qt/FMVip/build-FMVip-Desktop_Qt_5_7_0_MinGW_32bit-Debug
</value>
<value
type=
"QString"
key=
"Qt4ProjectManager.Qt4RunConfiguration.UserWorkingDirectory.default"
></value>
<value
type=
"uint"
key=
"RunConfiguration.QmlDebugServerPort"
>
3768
</value>
<value
type=
"bool"
key=
"RunConfiguration.UseCppDebugger"
>
false
</value>
<value
type=
"bool"
key=
"RunConfiguration.UseCppDebuggerAuto"
>
true
</value>
<value
type=
"bool"
key=
"RunConfiguration.UseMultiProcess"
>
false
</value>
<value
type=
"bool"
key=
"RunConfiguration.UseQmlDebugger"
>
false
</value>
<value
type=
"bool"
key=
"RunConfiguration.UseQmlDebuggerAuto"
>
true
</value>
</valuemap>
<value
type=
"int"
key=
"ProjectExplorer.Target.RunConfigurationCount"
>
1
</value>
</valuemap>
</data>
<data>
<variable>
ProjectExplorer.Project.Target.1
</variable>
<valuemap
type=
"QVariantMap"
>
<value
type=
"QString"
key=
"ProjectExplorer.ProjectConfiguration.DefaultDisplayName"
>
Qt 5.5.1 static
</value>
<value
type=
"QString"
key=
"ProjectExplorer.ProjectConfiguration.DisplayName"
>
Qt 5.5.1 static
</value>
<value
type=
"QString"
key=
"ProjectExplorer.ProjectConfiguration.Id"
>
{f6d61798-91db-4f0b-837e-62c2d680f144}
</value>
<value
type=
"int"
key=
"ProjectExplorer.Target.ActiveBuildConfiguration"
>
1
</value>
<value
type=
"int"
key=
"ProjectExplorer.Target.ActiveDeployConfiguration"
>
0
</value>
<value
type=
"int"
key=
"ProjectExplorer.Target.ActiveRunConfiguration"
>
0
</value>
<valuemap
type=
"QVariantMap"
key=
"ProjectExplorer.Target.BuildConfiguration.0"
>
<value
type=
"QString"
key=
"ProjectExplorer.BuildConfiguration.BuildDirectory"
>
C:/Users/zzf/Documents/Qt/FMVip/build-FMVip-Qt_5_5_1_static-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.DefaultDisplayName"
>
qmake
</value>
<value
type=
"QString"
key=
"ProjectExplorer.ProjectConfiguration.DisplayName"
></value>
<value
type=
"QString"
key=
"ProjectExplorer.ProjectConfiguration.Id"
>
QtProjectManager.QMakeBuildStep
</value>
<value
type=
"bool"
key=
"QtProjectManager.QMakeBuildStep.LinkQmlDebuggingLibrary"
>
true
</value>
<value
type=
"QString"
key=
"QtProjectManager.QMakeBuildStep.QMakeArguments"
></value>
<value
type=
"bool"
key=
"QtProjectManager.QMakeBuildStep.QMakeForced"
>
false
</value>
<value
type=
"bool"
key=
"QtProjectManager.QMakeBuildStep.SeparateDebugInfo"
>
false
</value>
<value
type=
"bool"
key=
"QtProjectManager.QMakeBuildStep.UseQtQuickCompiler"
>
false
</value>
</valuemap>
<valuemap
type=
"QVariantMap"
key=
"ProjectExplorer.BuildStepList.Step.1"
>
<value
type=
"bool"
key=
"ProjectExplorer.BuildStep.Enabled"
>
true
</value>
<value
type=
"QString"
key=
"ProjectExplorer.ProjectConfiguration.DefaultDisplayName"
>
Make
</value>
<value
type=
"QString"
key=
"ProjectExplorer.ProjectConfiguration.DisplayName"
></value>
<value
type=
"QString"
key=
"ProjectExplorer.ProjectConfiguration.Id"
>
Qt4ProjectManager.MakeStep
</value>
<valuelist
type=
"QVariantList"
key=
"Qt4ProjectManager.MakeStep.AutomaticallyAddedMakeArguments"
/>
<value
type=
"bool"
key=
"Qt4ProjectManager.MakeStep.Clean"
>
false
</value>
<value
type=
"QString"
key=
"Qt4ProjectManager.MakeStep.MakeArguments"
></value>
<value
type=
"QString"
key=
"Qt4ProjectManager.MakeStep.MakeCommand"
></value>
</valuemap>
<value
type=
"int"
key=
"ProjectExplorer.BuildStepList.StepsCount"
>
2
</value>
<value
type=
"QString"
key=
"ProjectExplorer.ProjectConfiguration.DefaultDisplayName"
>
构建
</value>
<value
type=
"QString"
key=
"ProjectExplorer.ProjectConfiguration.DisplayName"
></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.DefaultDisplayName"
>
Make
</value>
<value
type=
"QString"
key=
"ProjectExplorer.ProjectConfiguration.DisplayName"
></value>
<value
type=
"QString"
key=
"ProjectExplorer.ProjectConfiguration.Id"
>
Qt4ProjectManager.MakeStep
</value>
<valuelist
type=
"QVariantList"
key=
"Qt4ProjectManager.MakeStep.AutomaticallyAddedMakeArguments"
/>
<value
type=
"bool"
key=
"Qt4ProjectManager.MakeStep.Clean"
>
true
</value>
<value
type=
"QString"
key=
"Qt4ProjectManager.MakeStep.MakeArguments"
>
clean
</value>
<value
type=
"QString"
key=
"Qt4ProjectManager.MakeStep.MakeCommand"
></value>
</valuemap>
<value
type=
"int"
key=
"ProjectExplorer.BuildStepList.StepsCount"
>
1
</value>
<value
type=
"QString"
key=
"ProjectExplorer.ProjectConfiguration.DefaultDisplayName"
>
清理
</value>
<value
type=
"QString"
key=
"ProjectExplorer.ProjectConfiguration.DisplayName"
></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.UserEnvironmentChanges"
/>
<value
type=
"QString"
key=
"ProjectExplorer.ProjectConfiguration.DefaultDisplayName"
>
Debug
</value>
<value
type=
"QString"
key=
"ProjectExplorer.ProjectConfiguration.DisplayName"
></value>
<value
type=
"QString"
key=
"ProjectExplorer.ProjectConfiguration.Id"
>
Qt4ProjectManager.Qt4BuildConfiguration
</value>
<value
type=
"int"
key=
"Qt4ProjectManager.Qt4BuildConfiguration.BuildConfiguration"
>
2
</value>
<value
type=
"bool"
key=
"Qt4ProjectManager.Qt4BuildConfiguration.UseShadowBuild"
>
true
</value>
</valuemap>
<valuemap
type=
"QVariantMap"
key=
"ProjectExplorer.Target.BuildConfiguration.1"
>
<value
type=
"QString"
key=
"ProjectExplorer.BuildConfiguration.BuildDirectory"
>
C:/Users/zzf/Documents/Qt/FMVip/build-FMVip-Qt_5_5_1_static-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.DefaultDisplayName"
>
qmake
</value>
<value
type=
"QString"
key=
"ProjectExplorer.ProjectConfiguration.DisplayName"
></value>
<value
type=
"QString"
key=
"ProjectExplorer.ProjectConfiguration.Id"
>
QtProjectManager.QMakeBuildStep
</value>
<value
type=
"bool"
key=
"QtProjectManager.QMakeBuildStep.LinkQmlDebuggingLibrary"
>
false
</value>
<value
type=
"QString"
key=
"QtProjectManager.QMakeBuildStep.QMakeArguments"
></value>
<value
type=
"bool"
key=
"QtProjectManager.QMakeBuildStep.QMakeForced"
>
false
</value>
<value
type=
"bool"
key=
"QtProjectManager.QMakeBuildStep.SeparateDebugInfo"
>
false
</value>
<value
type=
"bool"
key=
"QtProjectManager.QMakeBuildStep.UseQtQuickCompiler"
>
false
</value>
</valuemap>
<valuemap
type=
"QVariantMap"
key=
"ProjectExplorer.BuildStepList.Step.1"
>
<value
type=
"bool"
key=
"ProjectExplorer.BuildStep.Enabled"
>
true
</value>
<value
type=
"QString"
key=
"ProjectExplorer.ProjectConfiguration.DefaultDisplayName"
>
Make
</value>
<value
type=
"QString"
key=
"ProjectExplorer.ProjectConfiguration.DisplayName"
></value>
<value
type=
"QString"
key=
"ProjectExplorer.ProjectConfiguration.Id"
>
Qt4ProjectManager.MakeStep
</value>
<valuelist
type=
"QVariantList"
key=
"Qt4ProjectManager.MakeStep.AutomaticallyAddedMakeArguments"
/>
<value
type=
"bool"
key=
"Qt4ProjectManager.MakeStep.Clean"
>
false
</value>
<value
type=
"QString"
key=
"Qt4ProjectManager.MakeStep.MakeArguments"
></value>
<value
type=
"QString"
key=
"Qt4ProjectManager.MakeStep.MakeCommand"
></value>
</valuemap>
<value
type=
"int"
key=
"ProjectExplorer.BuildStepList.StepsCount"
>
2
</value>
<value
type=
"QString"
key=
"ProjectExplorer.ProjectConfiguration.DefaultDisplayName"
>
构建
</value>
<value
type=
"QString"
key=
"ProjectExplorer.ProjectConfiguration.DisplayName"
></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.DefaultDisplayName"
>
Make
</value>
<value
type=
"QString"
key=
"ProjectExplorer.ProjectConfiguration.DisplayName"
></value>
<value
type=
"QString"
key=
"ProjectExplorer.ProjectConfiguration.Id"
>
Qt4ProjectManager.MakeStep
</value>
<valuelist
type=
"QVariantList"
key=
"Qt4ProjectManager.MakeStep.AutomaticallyAddedMakeArguments"
/>
<value
type=
"bool"
key=
"Qt4ProjectManager.MakeStep.Clean"
>
true
</value>
<value
type=
"QString"
key=
"Qt4ProjectManager.MakeStep.MakeArguments"
>
clean
</value>
<value
type=
"QString"
key=
"Qt4ProjectManager.MakeStep.MakeCommand"
></value>
</valuemap>
<value
type=
"int"
key=
"ProjectExplorer.BuildStepList.StepsCount"
>
1
</value>
<value
type=
"QString"
key=
"ProjectExplorer.ProjectConfiguration.DefaultDisplayName"
>
清理
</value>
<value
type=
"QString"
key=
"ProjectExplorer.ProjectConfiguration.DisplayName"
></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.UserEnvironmentChanges"
/>
<value
type=
"QString"
key=
"ProjectExplorer.ProjectConfiguration.DefaultDisplayName"
>
Release
</value>
<value
type=
"QString"
key=
"ProjectExplorer.ProjectConfiguration.DisplayName"
></value>
<value
type=
"QString"
key=
"ProjectExplorer.ProjectConfiguration.Id"
>
Qt4ProjectManager.Qt4BuildConfiguration
</value>
<value
type=
"int"
key=
"Qt4ProjectManager.Qt4BuildConfiguration.BuildConfiguration"
>
0
</value>
<value
type=
"bool"
key=
"Qt4ProjectManager.Qt4BuildConfiguration.UseShadowBuild"
>
true
</value>
</valuemap>
<valuemap
type=
"QVariantMap"
key=
"ProjectExplorer.Target.BuildConfiguration.2"
>
<value
type=
"QString"
key=
"ProjectExplorer.BuildConfiguration.BuildDirectory"
>
C:/Users/zzf/Documents/Qt/FMVip/build-FMVip-Qt_5_5_1_static-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.DefaultDisplayName"
>
qmake
</value>
<value
type=
"QString"
key=
"ProjectExplorer.ProjectConfiguration.DisplayName"
></value>
<value
type=
"QString"
key=
"ProjectExplorer.ProjectConfiguration.Id"
>
QtProjectManager.QMakeBuildStep
</value>
<value
type=
"bool"
key=
"QtProjectManager.QMakeBuildStep.LinkQmlDebuggingLibrary"
>
true
</value>
<value
type=
"QString"
key=
"QtProjectManager.QMakeBuildStep.QMakeArguments"
></value>
<value
type=
"bool"
key=
"QtProjectManager.QMakeBuildStep.QMakeForced"
>
false
</value>
<value
type=
"bool"
key=
"QtProjectManager.QMakeBuildStep.SeparateDebugInfo"
>
true
</value>
<value
type=
"bool"
key=
"QtProjectManager.QMakeBuildStep.UseQtQuickCompiler"
>
false
</value>
</valuemap>
<valuemap
type=
"QVariantMap"
key=
"ProjectExplorer.BuildStepList.Step.1"
>
<value
type=
"bool"
key=
"ProjectExplorer.BuildStep.Enabled"
>
true
</value>
<value
type=
"QString"
key=
"ProjectExplorer.ProjectConfiguration.DefaultDisplayName"
>
Make
</value>
<value
type=
"QString"
key=
"ProjectExplorer.ProjectConfiguration.DisplayName"
></value>
<value
type=
"QString"
key=
"ProjectExplorer.ProjectConfiguration.Id"
>
Qt4ProjectManager.MakeStep
</value>
<valuelist
type=
"QVariantList"
key=
"Qt4ProjectManager.MakeStep.AutomaticallyAddedMakeArguments"
/>
<value
type=
"bool"
key=
"Qt4ProjectManager.MakeStep.Clean"
>
false
</value>
<value
type=
"QString"
key=
"Qt4ProjectManager.MakeStep.MakeArguments"
></value>
<value
type=
"QString"
key=
"Qt4ProjectManager.MakeStep.MakeCommand"
></value>
</valuemap>
<value
type=
"int"
key=
"ProjectExplorer.BuildStepList.StepsCount"
>
2
</value>
<value
type=
"QString"
key=
"ProjectExplorer.ProjectConfiguration.DefaultDisplayName"
>
构建
</value>
<value
type=
"QString"
key=
"ProjectExplorer.ProjectConfiguration.DisplayName"
></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.DefaultDisplayName"
>
Make
</value>
<value
type=
"QString"
key=
"ProjectExplorer.ProjectConfiguration.DisplayName"
></value>
<value
type=
"QString"
key=
"ProjectExplorer.ProjectConfiguration.Id"
>
Qt4ProjectManager.MakeStep
</value>
<valuelist
type=
"QVariantList"
key=
"Qt4ProjectManager.MakeStep.AutomaticallyAddedMakeArguments"
/>
<value
type=
"bool"
key=
"Qt4ProjectManager.MakeStep.Clean"
>
true
</value>
<value
type=
"QString"
key=
"Qt4ProjectManager.MakeStep.MakeArguments"
>
clean
</value>
<value
type=
"QString"
key=
"Qt4ProjectManager.MakeStep.MakeCommand"
></value>
</valuemap>
<value
type=
"int"
key=
"ProjectExplorer.BuildStepList.StepsCount"
>
1
</value>
<value
type=
"QString"
key=
"ProjectExplorer.ProjectConfiguration.DefaultDisplayName"
>
清理
</value>
<value
type=
"QString"
key=
"ProjectExplorer.ProjectConfiguration.DisplayName"
></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.UserEnvironmentChanges"
/>
<value
type=
"QString"
key=
"ProjectExplorer.ProjectConfiguration.DefaultDisplayName"
>
Profile
</value>
<value
type=
"QString"
key=
"ProjectExplorer.ProjectConfiguration.DisplayName"
></value>
<value
type=
"QString"
key=
"ProjectExplorer.ProjectConfiguration.Id"
>
Qt4ProjectManager.Qt4BuildConfiguration
</value>
<value
type=
"int"
key=
"Qt4ProjectManager.Qt4BuildConfiguration.BuildConfiguration"
>
0
</value>
<value
type=
"bool"
key=
"Qt4ProjectManager.Qt4BuildConfiguration.UseShadowBuild"
>
true
</value>
</valuemap>
<value
type=
"int"
key=
"ProjectExplorer.Target.BuildConfigurationCount"
>
3
</value>
<valuemap
type=
"QVariantMap"
key=
"ProjectExplorer.Target.DeployConfiguration.0"
>
<valuemap
type=
"QVariantMap"
key=
"ProjectExplorer.BuildConfiguration.BuildStepList.0"
>
<value
type=
"int"
key=
"ProjectExplorer.BuildStepList.StepsCount"
>
0
</value>
<value
type=
"QString"
key=
"ProjectExplorer.ProjectConfiguration.DefaultDisplayName"
>
部署
</value>
<value
type=
"QString"
key=
"ProjectExplorer.ProjectConfiguration.DisplayName"
></value>
<value
type=
"QString"
key=
"ProjectExplorer.ProjectConfiguration.Id"
>
ProjectExplorer.BuildSteps.Deploy
</value>
</valuemap>
<value
type=
"int"
key=
"ProjectExplorer.BuildConfiguration.BuildStepListCount"
>
1
</value>
<value
type=
"QString"
key=
"ProjectExplorer.ProjectConfiguration.DefaultDisplayName"
>
在本地部署
</value>
<value
type=
"QString"
key=
"ProjectExplorer.ProjectConfiguration.DisplayName"
></value>
<value
type=
"QString"
key=
"ProjectExplorer.ProjectConfiguration.Id"
>
ProjectExplorer.DefaultDeployConfiguration
</value>
</valuemap>
<value
type=
"int"
key=
"ProjectExplorer.Target.DeployConfigurationCount"
>
1
</value>
<valuemap
type=
"QVariantMap"
key=
"ProjectExplorer.Target.PluginSettings"
/>
<valuemap
type=
"QVariantMap"
key=
"ProjectExplorer.Target.RunConfiguration.0"
>
<value
type=
"bool"
key=
"Analyzer.QmlProfiler.AggregateTraces"
>
false
</value>
<value
type=
"bool"
key=
"Analyzer.QmlProfiler.FlushEnabled"
>
false
</value>
<value
type=
"uint"
key=
"Analyzer.QmlProfiler.FlushInterval"
>
1000
</value>
<value
type=
"QString"
key=
"Analyzer.QmlProfiler.LastTraceFile"
></value>
<value
type=
"bool"
key=
"Analyzer.QmlProfiler.Settings.UseGlobalSettings"
>
true
</value>
<valuelist
type=
"QVariantList"
key=
"Analyzer.Valgrind.AddedSuppressionFiles"
/>
<value
type=
"bool"
key=
"Analyzer.Valgrind.Callgrind.CollectBusEvents"
>
false
</value>
<value
type=
"bool"
key=
"Analyzer.Valgrind.Callgrind.CollectSystime"
>
false
</value>
<value
type=
"bool"
key=
"Analyzer.Valgrind.Callgrind.EnableBranchSim"
>
false
</value>
<value
type=
"bool"
key=
"Analyzer.Valgrind.Callgrind.EnableCacheSim"
>
false
</value>
<value
type=
"bool"
key=
"Analyzer.Valgrind.Callgrind.EnableEventToolTips"
>
true
</value>
<value
type=
"double"
key=
"Analyzer.Valgrind.Callgrind.MinimumCostRatio"
>
0.01
</value>
<value
type=
"double"
key=
"Analyzer.Valgrind.Callgrind.VisualisationMinimumCostRatio"
>
10
</value>
<value
type=
"bool"
key=
"Analyzer.Valgrind.FilterExternalIssues"
>
true
</value>
<value
type=
"int"
key=
"Analyzer.Valgrind.LeakCheckOnFinish"
>
1
</value>
<value
type=
"int"
key=
"Analyzer.Valgrind.NumCallers"
>
25
</value>
<valuelist
type=
"QVariantList"
key=
"Analyzer.Valgrind.RemovedSuppressionFiles"
/>
<value
type=
"int"
key=
"Analyzer.Valgrind.SelfModifyingCodeDetection"
>
1
</value>
<value
type=
"bool"
key=
"Analyzer.Valgrind.Settings.UseGlobalSettings"
>
true
</value>
<value
type=
"bool"
key=
"Analyzer.Valgrind.ShowReachable"
>
false
</value>
<value
type=
"bool"
key=
"Analyzer.Valgrind.TrackOrigins"
>
true
</value>
<value
type=
"QString"
key=
"Analyzer.Valgrind.ValgrindExecutable"
>
valgrind
</value>
<valuelist
type=
"QVariantList"
key=
"Analyzer.Valgrind.VisibleErrorKinds"
>
<value
type=
"int"
>
0
</value>
<value
type=
"int"
>
1
</value>
<value
type=
"int"
>
2
</value>
<value
type=
"int"
>
3
</value>
<value
type=
"int"
>
4
</value>
<value
type=
"int"
>
5
</value>
<value
type=
"int"
>
6
</value>
<value
type=
"int"
>
7
</value>
<value
type=
"int"
>
8
</value>
<value
type=
"int"
>
9
</value>
<value
type=
"int"
>
10
</value>
<value
type=
"int"
>
11
</value>
<value
type=
"int"
>
12
</value>
<value
type=
"int"
>
13
</value>
<value
type=
"int"
>
14
</value>
</valuelist>
<value
type=
"int"
key=
"PE.EnvironmentAspect.Base"
>
2
</value>
<valuelist
type=
"QVariantList"
key=
"PE.EnvironmentAspect.Changes"
/>
<value
type=
"QString"
key=
"ProjectExplorer.ProjectConfiguration.DefaultDisplayName"
>
FMVip
</value>
<value
type=
"QString"
key=
"ProjectExplorer.ProjectConfiguration.DisplayName"
></value>
<value
type=
"QString"
key=
"ProjectExplorer.ProjectConfiguration.Id"
>
Qt4ProjectManager.Qt4RunConfiguration:C:/Users/zzf/Documents/Qt/FMVip/FMVip/FMVip.pro
</value>
<value
type=
"bool"
key=
"QmakeProjectManager.QmakeRunConfiguration.UseLibrarySearchPath"
>
true
</value>
<value
type=
"QString"
key=
"Qt4ProjectManager.Qt4RunConfiguration.CommandLineArguments"
></value>
<value
type=
"QString"
key=
"Qt4ProjectManager.Qt4RunConfiguration.ProFile"
>
FMVip.pro
</value>
<value
type=
"bool"
key=
"Qt4ProjectManager.Qt4RunConfiguration.UseDyldImageSuffix"
>
false
</value>
<value
type=
"QString"
key=
"Qt4ProjectManager.Qt4RunConfiguration.UserWorkingDirectory"
></value>
<value
type=
"QString"
key=
"Qt4ProjectManager.Qt4RunConfiguration.UserWorkingDirectory.default"
>
C:/Users/zzf/Documents/Qt/FMVip/build-FMVip-Qt_5_5_1_static-Release
</value>
<value
type=
"uint"
key=
"RunConfiguration.QmlDebugServerPort"
>
3768
</value>
<value
type=
"uint"
key=
"RunConfiguration.QmlDebugServerPort"
>
3768
</value>
<value
type=
"bool"
key=
"RunConfiguration.UseCppDebugger"
>
false
</value>
<value
type=
"bool"
key=
"RunConfiguration.UseCppDebugger"
>
false
</value>
<value
type=
"bool"
key=
"RunConfiguration.UseCppDebuggerAuto"
>
true
</value>
<value
type=
"bool"
key=
"RunConfiguration.UseCppDebuggerAuto"
>
true
</value>
...
@@ -305,7 +552,7 @@
...
@@ -305,7 +552,7 @@
</data>
</data>
<data>
<data>
<variable>
ProjectExplorer.Project.TargetCount
</variable>
<variable>
ProjectExplorer.Project.TargetCount
</variable>
<value
type=
"int"
>
1
</value>
<value
type=
"int"
>
2
</value>
</data>
</data>
<data>
<data>
<variable>
ProjectExplorer.Project.Updater.FileVersion
</variable>
<variable>
ProjectExplorer.Project.Updater.FileVersion
</variable>
...
...
FMVip/fmvipdispatcher.cpp
View file @
bc4c83aa
...
@@ -9,17 +9,42 @@
...
@@ -9,17 +9,42 @@
#include <QJsonObject>
#include <QJsonObject>
#include <QApplication>
#include <QApplication>
#include <QMessageBox>
#include <QMessageBox>
#include <QMenu>
FMVipDispatcher
::
FMVipDispatcher
(
QObject
*
parent
)
FMVipDispatcher
::
FMVipDispatcher
(
QObject
*
parent
)
:
QObject
(
parent
),
:
QObject
(
parent
),
FMApiRelay
(),
FMApiRelay
(),
_vindow
(
0
),
_vindow
(
0
),
isLastOne
(
true
),
isLastOne
(
true
),
_windowReturn
(
0
)
_windowReturn
(
0
),
_sysIcon
(
new
QSystemTrayIcon
)
{
{
connect
(
this
,
SIGNAL
(
requested
(
QJsonObject
)),
SLOT
(
onRequest
(
QJsonObject
)));
connect
(
this
,
SIGNAL
(
requested
(
QJsonObject
)),
SLOT
(
onRequest
(
QJsonObject
)));
connect
(
this
,
SIGNAL
(
responded
(
QByteArray
)),
SLOT
(
onResponse
(
QByteArray
)));
connect
(
this
,
SIGNAL
(
responded
(
QByteArray
)),
SLOT
(
onResponse
(
QByteArray
)));
connect
(
FMVipForward
::
instance
(),
SIGNAL
(
serverResponsed
(
QJsonObject
)),
SLOT
(
onServerResponsed
(
QJsonObject
)));
connect
(
FMVipForward
::
instance
(),
SIGNAL
(
serverResponsed
(
QJsonObject
)),
SLOT
(
onServerResponsed
(
QJsonObject
)));
QIcon
icon
=
QIcon
(
":/img_logo.png"
);
_sysIcon
->
setIcon
(
icon
);
_sysIcon
->
setToolTip
(
"FMVIP"
);
QMenu
*
menu
=
new
QMenu
();
menu
->
addAction
(
"退出"
,
[
=
](){
qDebug
()
<<
"quit"
;
});
_sysIcon
->
setContextMenu
(
menu
);
connect
(
_sysIcon
,
SIGNAL
(
activated
(
QSystemTrayIcon
::
ActivationReason
)),
SLOT
(
onActiveSysTrayIcon
(
QSystemTrayIcon
::
ActivationReason
)));
_sysIcon
->
show
();
}
void
FMVipDispatcher
::
onActiveSysTrayIcon
(
QSystemTrayIcon
::
ActivationReason
reason
)
{
switch
(
reason
)
{
case
QSystemTrayIcon
:
:
Trigger
:
break
;
default
:
break
;
}
}
}
INT
FMVipDispatcher
::
_ParseRequest
(
LPSTR
data
)
INT
FMVipDispatcher
::
_ParseRequest
(
LPSTR
data
)
...
@@ -27,13 +52,10 @@ INT FMVipDispatcher::_ParseRequest(LPSTR data)
...
@@ -27,13 +52,10 @@ INT FMVipDispatcher::_ParseRequest(LPSTR data)
qDebug
()
<<
__FUNCTION__
;
qDebug
()
<<
__FUNCTION__
;
QJsonParseError
err
;
QJsonParseError
err
;
QJsonDocument
json
=
QJsonDocument
::
fromJson
(
data
,
&
err
);
QJsonDocument
json
=
QJsonDocument
::
fromJson
(
data
,
&
err
);
if
(
err
.
error
!=
QJsonParseError
::
NoError
)
{
if
(
err
.
error
!=
QJsonParseError
::
NoError
)
{
return
FM_API_BADJSON
;
return
FM_API_BADJSON
;
}
}
_posReqObj
=
json
.
object
();
_posReqObj
=
json
.
object
();
FMVipForward
::
instance
()
->
resetSessionData
(
_posReqObj
);
FMVipForward
::
instance
()
->
resetSessionData
(
_posReqObj
);
isLastOne
=
true
;
isLastOne
=
true
;
...
@@ -72,11 +94,12 @@ void FMVipDispatcher::onRequest(const QJsonObject &jsonObj)
...
@@ -72,11 +94,12 @@ void FMVipDispatcher::onRequest(const QJsonObject &jsonObj)
coupon
();
coupon
();
}
}
#ifdef _DEBUG
#ifdef _DEBUG
else
if
(
type
==
""
)
{
else
if
(
type
==
"-1"
)
{
// qDebug() << "Quit";
qDebug
()
<<
"Quit"
;
// _serverRspData.clear();
canBeContinue
=
true
;
// canBeContinue = true;
jsonObj
[
"reqType"
]
=
-
1
;
// _serverRspData = "{\"reqType\":-1}";
QJsonDocument
d
=
QJsonDocument
(
jsonObj
);
_serverRspData
=
d
.
toJson
();
qApp
->
quit
();
qApp
->
quit
();
}
}
#endif
#endif
...
...
FMVip/fmvipdispatcher.h
View file @
bc4c83aa
...
@@ -3,6 +3,7 @@
...
@@ -3,6 +3,7 @@
#include <QObject>
#include <QObject>
#include <QJsonObject>
#include <QJsonObject>
#include <QSystemTrayIcon>
#include "fmapirelay.h"
#include "fmapirelay.h"
//#include <QNetworkAccessManager>
//#include <QNetworkAccessManager>
//#include <QNetworkReply>
//#include <QNetworkReply>
...
@@ -54,6 +55,8 @@ private slots:
...
@@ -54,6 +55,8 @@ private slots:
void
onServerResponsed
(
const
QJsonObject
&
rspObj
);
void
onServerResponsed
(
const
QJsonObject
&
rspObj
);
void
onDoPost
();
void
onDoPost
();
void
onActiveSysTrayIcon
(
QSystemTrayIcon
::
ActivationReason
);
private
:
private
:
FMVipWnd
*
_vindow
;
FMVipWnd
*
_vindow
;
QJsonObject
_posReqObj
;
QJsonObject
_posReqObj
;
...
@@ -62,6 +65,8 @@ private:
...
@@ -62,6 +65,8 @@ private:
QByteArray
_serverRspData
;
QByteArray
_serverRspData
;
BOOL
isLastOne
;
BOOL
isLastOne
;
int
_windowReturn
;
int
_windowReturn
;
QSystemTrayIcon
*
_sysIcon
;
};
};
#endif // FMVIPDISPATCHER_H
#endif // FMVIPDISPATCHER_H
FMVip/fmvipforward.cpp
View file @
bc4c83aa
...
@@ -3,10 +3,12 @@
...
@@ -3,10 +3,12 @@
#include <QJsonParseError>
#include <QJsonParseError>
#include <QJsonObject>
#include <QJsonObject>
#include <QJsonArray>
#include <QJsonArray>
#include <QCryptographicHash>
#include <QDateTime>
#include <QDebug>
#include <QDebug>
FMVipForward
*
FMVipForward
::
_instance
=
nullptr
;
FMVipForward
*
FMVipForward
::
_instance
=
NULL
;
FMVipForward
*
FMVipForward
::
instance
()
FMVipForward
*
FMVipForward
::
instance
()
{
{
...
@@ -186,7 +188,7 @@ void FMVipForward::final(const QJsonObject &job, QJsonObject &fmjob)
...
@@ -186,7 +188,7 @@ void FMVipForward::final(const QJsonObject &job, QJsonObject &fmjob)
QJsonArray
couponArray
;
QJsonArray
couponArray
;
int
codeAmount
=
0
,
scoreAmount
=
0
,
cashAmount
=
0
,
thirdAmount
=
0
;
int
codeAmount
=
0
,
scoreAmount
=
0
,
cashAmount
=
0
,
thirdAmount
=
0
;
for
(
QJsonValue
pay_v
:
pay_ids
)
for
each
(
QJsonValue
pay_v
,
pay_ids
)
{
{
QJsonObject
pay_ob
=
pay_v
.
toObject
();
QJsonObject
pay_ob
=
pay_v
.
toObject
();
if
(
pay_ob
[
"pay_id"
]
==
"001"
)
{
if
(
pay_ob
[
"pay_id"
]
==
"001"
)
{
...
@@ -211,7 +213,7 @@ void FMVipForward::final(const QJsonObject &job, QJsonObject &fmjob)
...
@@ -211,7 +213,7 @@ void FMVipForward::final(const QJsonObject &job, QJsonObject &fmjob)
QJsonArray
posProdArray
=
posTransObj
[
"products"
].
toArray
();
QJsonArray
posProdArray
=
posTransObj
[
"products"
].
toArray
();
QJsonArray
prodArray
;
QJsonArray
prodArray
;
for
(
QJsonValue
v
:
posProdArray
)
for
each
(
QJsonValue
v
,
posProdArray
)
{
{
QJsonObject
po
=
v
.
toObject
();
QJsonObject
po
=
v
.
toObject
();
QJsonObject
o
;
QJsonObject
o
;
...
@@ -306,7 +308,7 @@ QString FMVipForward::sign(const QJsonObject &reqJob) const
...
@@ -306,7 +308,7 @@ QString FMVipForward::sign(const QJsonObject &reqJob) const
// 使用URL键值对的格式拼接
// 使用URL键值对的格式拼接
QString
sb
=
""
;
QString
sb
=
""
;
for
(
QString
key
:
mapData
.
keys
())
for
each
(
QString
key
,
mapData
.
keys
())
{
{
sb
+=
(
key
+
"="
+
mapData
.
value
(
key
)
+
"&"
);
sb
+=
(
key
+
"="
+
mapData
.
value
(
key
)
+
"&"
);
}
}
...
@@ -324,8 +326,9 @@ QString FMVipForward::sign(const QJsonObject &reqJob) const
...
@@ -324,8 +326,9 @@ QString FMVipForward::sign(const QJsonObject &reqJob) const
void
FMVipForward
::
resetSessionData
(
const
QJsonObject
&
jsonObj
)
void
FMVipForward
::
resetSessionData
(
const
QJsonObject
&
jsonObj
)
{
{
// _sessionDataMap.clear();
// _sessionDataMap.clear();
for
(
QString
sessionData
:
_sessionDataList
)
for
each
(
QString
sessionData
,
_sessionDataList
)
{
{
qDebug
()
<<
sessionData
;
addSessionData
(
sessionData
,
jsonObj
[
sessionData
].
toString
());
addSessionData
(
sessionData
,
jsonObj
[
sessionData
].
toString
());
}
}
}
}
...
...
FMVip/fmvipwnd.h
View file @
bc4c83aa
...
@@ -29,6 +29,7 @@ protected:
...
@@ -29,6 +29,7 @@ protected:
protected
:
protected
:
QJsonObject
_profile_obj
;
QJsonObject
_profile_obj
;
bool
_isBusy
;
bool
_isBusy
;
#endif
#endif
};
};
...
...
FMVip/main.cpp
View file @
bc4c83aa
...
@@ -3,6 +3,7 @@
...
@@ -3,6 +3,7 @@
#include "fmsockserver.h"
#include "fmsockserver.h"
#include "fmvipdispatcher.h"
#include "fmvipdispatcher.h"
#include <QApplication>
#include <QApplication>
#include <QSystemTrayIcon>
int
main
(
int
argc
,
char
*
argv
[])
int
main
(
int
argc
,
char
*
argv
[])
{
{
...
@@ -13,5 +14,12 @@ int main(int argc, char *argv[])
...
@@ -13,5 +14,12 @@ int main(int argc, char *argv[])
server
.
Listen
(
23770
);
server
.
Listen
(
23770
);
// QSystemTrayIcon *_sysIcon = new QSystemTrayIcon();
// _sysIcon->setToolTip("FMVIP");
// _sysIcon->show();
// relay._ParseRequest();
return
a
.
exec
();
return
a
.
exec
();
}
}
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment