Moved bisect start logic to AppUtils
[TortoiseGit.git] / src / TortoiseGitBlame / MainFrm.h
blob3bd093698b48c1c18766abe5764a59bfaf2c13d7
1 // TortoiseGit - a Windows shell extension for easy version control
3 // Copyright (C) 2008-2011 - 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.
21 // MainFrm.h : interface of the CMainFrame class
24 #pragma once
25 #include "OutputWnd.h"
26 #include "PropertiesWnd.h"
28 class CMainFrame : public CFrameWndEx
31 protected: // create from serialization only
32 CMainFrame();
33 DECLARE_DYNCREATE(CMainFrame)
34 virtual void OnUpdateFrameTitle(BOOL bAddToTitle)
36 CFrameWndEx::OnUpdateFrameTitle( bAddToTitle);
38 // Attributes
39 public:
41 // Operations
42 public:
44 // Overrides
45 public:
46 virtual BOOL PreCreateWindow(CREATESTRUCT& cs);
47 virtual BOOL LoadFrame(UINT nIDResource, DWORD dwDefaultStyle = WS_OVERLAPPEDWINDOW | FWS_ADDTOTITLE, CWnd* pParentWnd = NULL, CCreateContext* pContext = NULL);
49 // Implementation
50 public:
51 virtual ~CMainFrame();
52 #ifdef _DEBUG
53 virtual void AssertValid() const;
54 virtual void Dump(CDumpContext& dc) const;
55 #endif
57 COutputWnd m_wndOutput;
58 CPropertiesWnd m_wndProperties;
59 protected: // control bar embedded members
60 CMFCMenuBar m_wndMenuBar;
61 CMFCToolBar m_wndToolBar;
62 CMFCStatusBar m_wndStatusBar;
63 CMFCToolBarImages m_UserImages;
65 // Generated message map functions
66 protected:
67 afx_msg int OnCreate(LPCREATESTRUCT lpCreateStruct);
68 afx_msg void OnViewCustomize();
69 afx_msg LRESULT OnToolbarCreateNew(WPARAM wp, LPARAM lp);
70 afx_msg void OnApplicationLook(UINT id);
71 afx_msg void OnUpdateApplicationLook(CCmdUI* pCmdUI);
72 DECLARE_MESSAGE_MAP()
74 BOOL CreateDockingWindows();
75 void SetDockingWindowIcons(BOOL bHiColorIcons);