OSDN Git Service

Update version number to 1.2.1.0
[tortoisegit/TortoiseGitJp.git] / src / TortoiseMerge / LocatorBar.h
1 // TortoiseMerge - a Diff/Patch program\r
2 \r
3 // Copyright (C) 2006-2008 - TortoiseSVN\r
4 \r
5 // This program is free software; you can redistribute it and/or\r
6 // modify it under the terms of the GNU General Public License\r
7 // as published by the Free Software Foundation; either version 2\r
8 // of the License, or (at your option) any later version.\r
9 \r
10 // This program is distributed in the hope that it will be useful,\r
11 // but WITHOUT ANY WARRANTY; without even the implied warranty of\r
12 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the\r
13 // GNU General Public License for more details.\r
14 \r
15 // You should have received a copy of the GNU General Public License\r
16 // along with this program; if not, write to the Free Software Foundation,\r
17 // 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.\r
18 //\r
19 #pragma once\r
20 \r
21 class CMainFrame;\r
22 \r
23 /**\r
24  * \ingroup TortoiseMerge\r
25  *\r
26  * A Toolbar showing the differences in the views. The Toolbar\r
27  * is best attached to the left of the mainframe. The Toolbar\r
28  * also scrolls the views to the location the user clicks\r
29  * on the bar.\r
30  */\r
31 class CLocatorBar : public CPaneDialog\r
32 {\r
33         DECLARE_DYNAMIC(CLocatorBar)\r
34 \r
35 public:\r
36         CLocatorBar();\r
37         virtual ~CLocatorBar();\r
38         BOOL Create(CWnd* pParentWnd, UINT nIDTemplate, UINT nStyle, UINT nID)\r
39         {\r
40                 BOOL bRet = CPaneDialog::Create(pParentWnd, nIDTemplate, nStyle, nID);\r
41                 m_dwControlBarStyle = 0; // can't float, resize, close, slide\r
42                 return bRet;\r
43         }\r
44 \r
45         void                    DocumentUpdated();\r
46 \r
47 protected:\r
48         afx_msg void    OnPaint();\r
49         afx_msg void    OnSize(UINT nType, int cx, int cy);\r
50         afx_msg BOOL    OnEraseBkgnd(CDC* pDC);\r
51         afx_msg void    OnLButtonDown(UINT nFlags, CPoint point);\r
52         afx_msg void    OnMouseMove(UINT nFlags, CPoint point);\r
53         LRESULT                 OnMouseLeave(WPARAM, LPARAM);\r
54 \r
55         CBitmap *               m_pCacheBitmap;\r
56 \r
57         int                             m_nLines;\r
58         CPoint                  m_MousePos;\r
59         BOOL                    m_bMouseWithin;\r
60         CDWordArray             m_arLeftIdent;\r
61         CDWordArray             m_arLeftState;\r
62         CDWordArray             m_arRightIdent;\r
63         CDWordArray             m_arRightState;\r
64         CDWordArray             m_arBottomIdent;\r
65         CDWordArray             m_arBottomState;\r
66 \r
67         DECLARE_MESSAGE_MAP()\r
68 public:\r
69         CMainFrame *    m_pMainFrm;\r
70 };\r
71 \r
72 \r