1 // TortoiseGit - a Windows shell extension for easy version control
3 // Copyright (C) 2003-2008 - Stefan Kueng
5 // This program is free software; you can redistribute it and/or
6 // modify it under the terms of the GNU General Public License
7 // as published by the Free Software Foundation; either version 2
8 // of the License, or (at your option) any later version.
10 // This program is distributed in the hope that it will be useful,
11 // but WITHOUT ANY WARRANTY; without even the implied warranty of
12 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13 // GNU General Public License for more details.
15 // You should have received a copy of the GNU General Public License
16 // along with this program; if not, write to the Free Software Foundation,
17 // 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
21 #include "StandAloneDlg.h"
22 #include "HyperLink.h"
25 * \ingroup TortoiseProc
26 * Helper dialog class, which checks if there are updated version of TortoiseSVN
29 class CCheckForUpdatesDlg
: public CStandAloneDialog
31 DECLARE_DYNAMIC(CCheckForUpdatesDlg
)
34 CCheckForUpdatesDlg(CWnd
* pParent
= NULL
); // standard constructor
35 virtual ~CCheckForUpdatesDlg();
37 enum { IDD
= IDD_CHECKFORUPDATES
};
40 afx_msg
void OnStnClickedCheckresult();
41 afx_msg
void OnTimer(UINT_PTR nIDEvent
);
42 afx_msg
void OnWindowPosChanging(WINDOWPOS
* lpwndpos
);
43 afx_msg BOOL
OnSetCursor(CWnd
* pWnd
, UINT nHitTest
, UINT message
);
44 virtual void DoDataExchange(CDataExchange
* pDX
); // DDX/DDV support
45 virtual BOOL
OnInitDialog();
47 virtual void OnCancel();
52 static UINT
CheckThreadEntry(LPVOID pVoid
);
55 BOOL m_bThreadRunning
;
63 CString m_sUpdateDownloadLink
; ///< Where to send a user looking to download a update
64 CString m_sUpdateChangeLogLink
; ///< Where to send a user looking to change log
66 CHyperLink m_ChangeLogLink
;