Update lua versions
[ryzomcore.git] / nel / tools / misc / branch_patcher / branch_patcherDlg.h
blobf2310520415712e270386ca971a44133817da938
1 // branch_patcherDlg.h : header file
2 //
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_
7 #if _MSC_VER > 1000
8 #pragma once
9 #endif // _MSC_VER > 1000
14 * Class by Girish_Bharadwaj@Pictel.com
16 class CDirDialog
18 public:
19 CDirDialog();
20 virtual ~CDirDialog();
21 int DoBrowse ();
22 CString m_strPath;
23 CString m_strInitDir;
24 CString m_strTitle;
25 int m_iImageIndex;
31 /////////////////////////////////////////////////////////////////////////////
32 // CBranch_patcherDlg dialog
34 class CBranch_patcherDlg : public CDialog
36 // Construction
37 public:
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 );
49 void colorizeDiff();
50 void guessDestDirectory();
51 void extractDirTokens();
52 bool hasTokens() const;
53 void displayTokens();
55 CDirDialog DirDialog;
56 CRichEditCtrl *m_Display;
57 bool SaveDiff, EnteringTokens;
58 CString Token1, Token2, SrcDirBackup, TargetDirBackup, PatchExeDir;
59 int CvsDiffDirLevel;
62 // Dialog Data
63 //{{AFX_DATA(CBranch_patcherDlg)
64 enum { IDD = IDD_BRANCH_PATCHER_DIALOG };
65 CString m_SrcDir;
66 CString m_DestDir;
67 CString m_Filename;
68 CString m_Tokens;
69 CString m_SrcDirLabel;
70 CString m_TargetDirLabel;
71 //}}AFX_DATA
73 // ClassWizard generated virtual function overrides
74 //{{AFX_VIRTUAL(CBranch_patcherDlg)
75 protected:
76 virtual void DoDataExchange(CDataExchange* pDX); // DDX/DDV support
77 //}}AFX_VIRTUAL
79 // Implementation
80 protected:
81 HICON m_hIcon;
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();
96 //}}AFX_MSG
97 DECLARE_MESSAGE_MAP()
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_)