forked from ImpulseAdventure/JPEGsnoop
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathJPEGsnoop.h
137 lines (111 loc) · 4.22 KB
/
JPEGsnoop.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
// JPEGsnoop - JPEG Image Decoder & Analysis Utility
// Copyright (C) 2017 - Calvin Hass
// http://www.impulseadventure.com/photo/jpeg-snoop.html
//
// This program is free software: you can redistribute it and/or modify
// it under the terms of the GNU General Public License as published by
// the Free Software Foundation, either version 2 of the License, or
// (at your option) any later version.
//
// This program is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
// GNU General Public License for more details.
//
// You should have received a copy of the GNU General Public License
// along with this program. If not, see <http://www.gnu.org/licenses/>.
//
// ==========================================================================
// CLASS DESCRIPTION:
// - Main application code entry-point
//
// ==========================================================================
// JPEGsnoop.h : main header file for the JPEGsnoop application
//
#pragma once
#ifndef __AFXWIN_H__
#error include 'stdafx.h' before including this file for PCH
#endif
#include "resource.h" // main symbols
#include "snoop.h"
#include "JPEGsnoopDoc.h"
#include "SnoopConfig.h"
#include "afxwinappex.h" //xxx
#include "JPEGsnoopCore.h"
// CJPEGsnoopApp:
// See JPEGsnoop.cpp for the implementation of this class
//
// Define global variable for application log
extern CDocLog* glb_pDocLog;
class CJPEGsnoopApp : public CWinApp
{
public:
CJPEGsnoopApp();
~CJPEGsnoopApp();
// Overrides
public:
virtual BOOL InitInstance();
// Implementation
afx_msg void OnAppAbout();
DECLARE_MESSAGE_MAP()
private:
void MyOnFileOpen();
void MyOnFileNew();
void DoCmdLineCore();
void CmdLineHelp();
void CmdLineMessage(CString strMsg);
void CmdLineDoneMessage();
void CheckUpdates(bool bForceNow);
bool CheckUpdatesWww();
bool CheckEula();
CString RemoveTokenWithSeparators(CString& strText, LPCTSTR szCharSet);
CString RemoveTokenFromCharset(CString& strText, LPCTSTR szCharSet);
CJPEGsnoopDoc* GetCurDoc();
void DocReprocess();
void DocImageDirty();
void HandleAutoReprocess();
HINSTANCE LoadAppLangResourceDLL(); // MFC override
afx_msg void OnOptionsDhtexpand();
afx_msg void OnOptionsMakernotes();
afx_msg void OnOptionsScandump();
afx_msg void OnOptionsDecodescan();
afx_msg void OnOptionsHistoydump();
afx_msg void OnUpdateOptionsDhtexpand(CCmdUI *pCmdUI);
afx_msg void OnUpdateOptionsMakernotes(CCmdUI *pCmdUI);
afx_msg void OnUpdateOptionsScandump(CCmdUI *pCmdUI);
afx_msg void OnUpdateOptionsDecodescan(CCmdUI *pCmdUI);
afx_msg void OnUpdateOptionsHistoydump(CCmdUI *pCmdUI);
afx_msg void OnOptionsConfiguration();
afx_msg void OnOptionsCheckforupdates();
afx_msg void OnToolsManagelocaldb();
afx_msg void OnOptionsSignaturesearch();
afx_msg void OnUpdateOptionsSignaturesearch(CCmdUI *pCmdUI);
afx_msg void OnOptionsDecodeac();
afx_msg void OnUpdateOptionsDecodeac(CCmdUI *pCmdUI);
afx_msg void OnScansegmentDecodeimage();
afx_msg void OnScansegmentFullidct();
afx_msg void OnScansegmentHistogramy();
afx_msg void OnScansegmentDump();
afx_msg void OnUpdateScansegmentDecodeimage(CCmdUI *pCmdUI);
afx_msg void OnUpdateScansegmentFullidct(CCmdUI *pCmdUI);
afx_msg void OnUpdateScansegmentHistogramy(CCmdUI *pCmdUI);
afx_msg void OnUpdateScansegmentDump(CCmdUI *pCmdUI);
afx_msg void OnScansegmentNoidct();
afx_msg void OnUpdateScansegmentNoidct(CCmdUI *pCmdUI);
afx_msg void OnScansegmentHistogram();
afx_msg void OnUpdateScansegmentHistogram(CCmdUI *pCmdUI);
afx_msg void OnOptionsHideuknownexiftags();
afx_msg void OnUpdateOptionsHideuknownexiftags(CCmdUI *pCmdUI);
afx_msg void OnFileBatchprocess();
public:
// Main config options
CSnoopConfig* m_pAppConfig;
// Needs to be accessed by JfifDec
CDbSigs* m_pDbSigs;
private:
bool m_bFatal; // Fatal error occurred (e.g. mem alloc)
public:
afx_msg void OnOptionsRelaxedparsing();
afx_msg void OnUpdateOptionsRelaxedparsing(CCmdUI *pCmdUI);
};
extern CJPEGsnoopApp theApp;