Skip to content

Commit eda4802

Browse files
authored
1.4 Update
1 parent a4ad867 commit eda4802

5 files changed

+34
-14
lines changed

src/Focusing_Recorder.cpp

+20
Original file line numberDiff line numberDiff line change
@@ -125,9 +125,29 @@ VOID CALLBACK TimerProc( HWND, UINT, UINT, DWORD ) ;
125125
CloseHandle(hSnapshot);
126126
return a;
127127
}
128+
void rechecktime()
129+
{
130+
SYSTEMTIME curTime;
131+
GetLocalTime(&curTime);
132+
if(sheet[n].year==curTime.wYear&&sheet[n].month==curTime.wMonth&&sheet[n].day==curTime.wDay)
133+
{
134+
sheet[n].total++;
135+
sheet[n].time=ftot;
136+
sheet[n].rest=rtot;
137+
}
138+
else
139+
{
128140

141+
n++;
142+
sheet[n].year=curTime.wYear,sheet[n].month=curTime.wMonth,sheet[n].day=curTime.wDay;
143+
sheet[n].total=1;
144+
sheet[n].time=ftot;
145+
sheet[n].rest=rtot;
146+
}
147+
}
129148
void gout() //函数,输出时间记录
130149
{
150+
rechecktime();
131151
ofstream fout;
132152
fout.open("Time Recording.csv");
133153
fout<<"Date,Focus Time,Rest Time\n";

src/Focusing_Recorder.dev

+4-4
Original file line numberDiff line numberDiff line change
@@ -33,20 +33,20 @@ UnitCount=1
3333

3434
[VersionInfo]
3535
Major=1
36-
Minor=3
36+
Minor=4
3737
Release=0
3838
Build=0
3939
LanguageID=1033
4040
CharsetID=1252
4141
CompanyName=yhcz171726
42-
FileVersion=1.3.0.0
42+
FileVersion=1.4.0.0
4343
FileDescription=Focusing Recorder
4444
InternalName=
45-
LegalCopyright=Copyright (C) 2018-2020 Dian_Jiao, All Rights Reserved.
45+
LegalCopyright=Copyright (C) 2018-2021 Dian_Jiao, All Rights Reserved.
4646
LegalTrademarks=
4747
OriginalFilename=
4848
ProductName=
49-
ProductVersion=1.3.0.0
49+
ProductVersion=1.4.0.0
5050
AutoIncBuildNr=0
5151
SyncProduct=1
5252

src/Focusing_Recorder_private.h

+5-5
Original file line numberDiff line numberDiff line change
@@ -5,19 +5,19 @@
55
#define FOCUSING_RECORDER_PRIVATE_H
66

77
/* VERSION DEFINITIONS */
8-
#define VER_STRING "1.3.0.0"
8+
#define VER_STRING "1.4.0.0"
99
#define VER_MAJOR 1
10-
#define VER_MINOR 3
10+
#define VER_MINOR 4
1111
#define VER_RELEASE 0
1212
#define VER_BUILD 0
1313
#define COMPANY_NAME "yhcz171726"
14-
#define FILE_VERSION "1.3.0.0"
14+
#define FILE_VERSION "1.4.0.0"
1515
#define FILE_DESCRIPTION "Focusing Recorder"
1616
#define INTERNAL_NAME ""
17-
#define LEGAL_COPYRIGHT "Copyright (C) 2018-2020 Dian_Jiao, All Rights Reserved."
17+
#define LEGAL_COPYRIGHT "Copyright (C) 2018-2021 Dian_Jiao, All Rights Reserved."
1818
#define LEGAL_TRADEMARKS ""
1919
#define ORIGINAL_FILENAME ""
2020
#define PRODUCT_NAME ""
21-
#define PRODUCT_VERSION "1.3.0.0"
21+
#define PRODUCT_VERSION "1.4.0.0"
2222

2323
#endif /*FOCUSING_RECORDER_PRIVATE_H*/

src/Focusing_Recorder_private.rc

+5-5
Original file line numberDiff line numberDiff line change
@@ -10,23 +10,23 @@ A ICON "Focusing_Recorder.ico"
1010
// TO CHANGE VERSION INFORMATION, EDIT PROJECT OPTIONS...
1111
//
1212
1 VERSIONINFO
13-
FILEVERSION 1,3,0,0
14-
PRODUCTVERSION 1,3,0,0
13+
FILEVERSION 1,4,0,0
14+
PRODUCTVERSION 1,4,0,0
1515
FILETYPE VFT_APP
1616
{
1717
BLOCK "StringFileInfo"
1818
{
1919
BLOCK "040904E4"
2020
{
2121
VALUE "CompanyName", "yhcz171726"
22-
VALUE "FileVersion", "1.3.0.0"
22+
VALUE "FileVersion", "1.4.0.0"
2323
VALUE "FileDescription", "Focusing Recorder"
2424
VALUE "InternalName", ""
25-
VALUE "LegalCopyright", "Copyright (C) 2018-2020 Dian_Jiao, All Rights Reserved."
25+
VALUE "LegalCopyright", "Copyright (C) 2018-2021 Dian_Jiao, All Rights Reserved."
2626
VALUE "LegalTrademarks", ""
2727
VALUE "OriginalFilename", ""
2828
VALUE "ProductName", ""
29-
VALUE "ProductVersion", "1.3.0.0"
29+
VALUE "ProductVersion", "1.4.0.0"
3030
}
3131
}
3232
BLOCK "VarFileInfo"

src/Focusing_Recorder_private.res

-8 Bytes
Binary file not shown.

0 commit comments

Comments
 (0)