1 // branch_patcherDlg.h : header file
4 #if !defined(AFX_BRANCH_PATCHERDLG_H__7CA97ADE_2C97_4144_AF32_B6F3B5116214__INCLUDED_)
5 #define AFX_BRANCH_PATCHERDLG_H__7CA97ADE_2C97_4144_AF32_B6F3B5116214__INCLUDED_
9 #endif // _MSC_VER > 1000
14 * Class by Girish_Bharadwaj@Pictel.com
20 virtual ~CDirDialog();
31 /////////////////////////////////////////////////////////////////////////////
32 // CBranch_patcherDlg dialog
34 class CBranch_patcherDlg
: public CDialog
38 CBranch_patcherDlg(CWnd
* pParent
= NULL
); // standard constructor
40 void processCommandLine();
41 void loadConfiguration();
42 void saveConfiguration();
44 void setSrcDirectory( const CString
& s
);
45 void setDestDirectory( const CString
& s
);
46 void displayFile( const CString
& filename
);
47 void displayMessage( const CString
& msg
, bool insertAtTop
=false );
48 void saveFile( const CString
& filename
);
50 void guessDestDirectory();
51 void extractDirTokens();
52 bool hasTokens() const;
56 CRichEditCtrl
*m_Display
;
57 bool SaveDiff
, EnteringTokens
;
58 CString Token1
, Token2
, SrcDirBackup
, TargetDirBackup
, PatchExeDir
;
63 //{{AFX_DATA(CBranch_patcherDlg)
64 enum { IDD
= IDD_BRANCH_PATCHER_DIALOG
};
69 CString m_SrcDirLabel
;
70 CString m_TargetDirLabel
;
73 // ClassWizard generated virtual function overrides
74 //{{AFX_VIRTUAL(CBranch_patcherDlg)
76 virtual void DoDataExchange(CDataExchange
* pDX
); // DDX/DDV support
83 // Generated message map functions
84 //{{AFX_MSG(CBranch_patcherDlg)
85 virtual BOOL
OnInitDialog();
86 afx_msg
void OnPaint();
87 afx_msg HCURSOR
OnQueryDragIcon();
88 afx_msg
void OnButtonSetSrcDir();
89 afx_msg
void OnButtonSetDestDir();
90 afx_msg
void OnButtonPatch();
91 afx_msg
void OnDoPatch();
92 afx_msg
void OnSize(UINT nType
, int cx
, int cy
);
93 afx_msg
void OnClose();
94 afx_msg
void OnButtonExtractTokens();
95 afx_msg
void OnButtonClearTokens();
102 //{{AFX_INSERT_LOCATION}}
103 // Microsoft Visual C++ will insert additional declarations immediately before the previous line.
105 #endif // !defined(AFX_BRANCH_PATCHERDLG_H__7CA97ADE_2C97_4144_AF32_B6F3B5116214__INCLUDED_)