RebaseDlg: Prevent entering an invalid state when text transformations are performed...
[TortoiseGit.git] / src / TortoiseProc / UpdateListCtrl.h
blob595ff462935274b8d1d7c40c18e6da3aaebd53a8
1 // TortoiseGit - a Windows shell extension for easy version control
3 // Copyright (C) 2012, 2016, 2018, 2024 - TortoiseGit
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.
19 #pragma once
21 // CUpdateListCtrl
23 class CUpdateListCtrl : public CListCtrl
25 DECLARE_DYNAMIC(CUpdateListCtrl)
27 public:
28 CUpdateListCtrl();
29 virtual ~CUpdateListCtrl();
30 enum
32 STATUS_NONE,
33 STATUS_DOWNLOADING = 0x10000,
34 STATUS_FAIL = 0x1,
35 STATUS_SUCCESS = 0x2,
36 STATUS_IGNORE = 0x4,
37 STATUS_MASK = 0xffff
40 class Entry
42 public:
43 CString m_filename;
44 bool m_languagepack;
45 int m_status;
47 Entry(CString filename, bool languagepack, int status)
48 : m_filename(filename)
49 , m_languagepack(languagepack)
50 , m_status(status)
55 CFont m_boldFont;
57 protected:
58 DECLARE_MESSAGE_MAP()
59 afx_msg void OnNMCustomdraw(NMHDR *pNMHDR, LRESULT *pResult);
60 void PreSubclassWindow() override;