Fix typos
[TortoiseGit.git] / src / TortoiseProc / AboutDlg.h
blob109216ce43c823e71f647a4d6ac8e69f7f100070
1 // TortoiseGit - a Windows shell extension for easy version control
3 // Copyright (C) 2023 - TortoiseGit
4 // Copyright (C) 2003-2006 - Stefan Kueng
6 // This program is free software; you can redistribute it and/or
7 // modify it under the terms of the GNU General Public License
8 // as published by the Free Software Foundation; either version 2
9 // of the License, or (at your option) any later version.
11 // This program is distributed in the hope that it will be useful,
12 // but WITHOUT ANY WARRANTY; without even the implied warranty of
13 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14 // GNU General Public License for more details.
16 // You should have received a copy of the GNU General Public License
17 // along with this program; if not, write to the Free Software Foundation,
18 // 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
20 #pragma once
22 #include "StandAloneDlg.h"
23 #include "Watereffect.h"
24 #include "Dib.h"
25 #include "HyperLink.h"
26 #include "StandAloneDlg.h"
28 #define ID_EFFECTTIMER 1111
29 #define ID_DROPTIMER 1112
31 /**
32 * \ingroup TortoiseProc
33 * Class for showing an About box of TortoiseSVN. Contains a Picture
34 * with the TortoiseSVN logo with a nice water effect. See CWaterEffect
35 * for the implementation.
37 class CAboutDlg : public CStandAloneDialog
39 // DECLARE_DYNAMIC(CAboutDlg)
41 public:
42 CAboutDlg(CWnd* pParent = nullptr); // standard constructor
43 virtual ~CAboutDlg();
45 enum { IDD = IDD_ABOUT };
47 protected:
48 void DoDataExchange(CDataExchange* pDX) override; // DDX/DDV support
49 BOOL OnInitDialog() override;
51 afx_msg void OnTimer(UINT_PTR nIDEvent);
52 afx_msg void OnMouseMove(UINT nFlags, CPoint point);
53 afx_msg void OnBnClickedUpdate();
54 afx_msg void OnClose();
56 DECLARE_MESSAGE_MAP()
58 private:
59 bool TryLoadSVG(UINT logoID, int& logoWidth, int& logoHeight);
61 CWaterEffect m_waterEffect;
62 CDib m_renderSrc;
63 CDib m_renderDest;
64 CHyperLink m_cWebLink;
65 CHyperLink m_cSupportLink;