doom3-gpl
Doom 3 GPL source release
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
DialogScriptEditor.h
Go to the documentation of this file.
1 /*
2 ===========================================================================
3 
4 Doom 3 GPL Source Code
5 Copyright (C) 1999-2011 id Software LLC, a ZeniMax Media company.
6 
7 This file is part of the Doom 3 GPL Source Code (?Doom 3 Source Code?).
8 
9 Doom 3 Source Code is free software: you can redistribute it and/or modify
10 it under the terms of the GNU General Public License as published by
11 the Free Software Foundation, either version 3 of the License, or
12 (at your option) any later version.
13 
14 Doom 3 Source Code is distributed in the hope that it will be useful,
15 but WITHOUT ANY WARRANTY; without even the implied warranty of
16 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
17 GNU General Public License for more details.
18 
19 You should have received a copy of the GNU General Public License
20 along with Doom 3 Source Code. If not, see <http://www.gnu.org/licenses/>.
21 
22 In addition, the Doom 3 Source Code is also subject to certain additional terms. You should have received a copy of these additional terms immediately following the terms and conditions of the GNU General Public License which accompanied the Doom 3 Source Code. If not, please request a copy in writing from id Software at the address below.
23 
24 If you have questions concerning this license or the applicable additional terms, you may contact in writing id Software LLC, c/o ZeniMax Media Inc., Suite 120, Rockville, Maryland 20850 USA.
25 
26 ===========================================================================
27 */
28 
29 #ifndef __DIALOGSCRIPTEDITOR_H__
30 #define __DIALOGSCRIPTEDITOR_H__
31 
32 #pragma once
33 
34 #include "../comafx/CSyntaxRichEditCtrl.h"
35 
36 
37 // DialogScriptEditor dialog
38 
39 class DialogScriptEditor : public CDialog {
40 
41  DECLARE_DYNAMIC(DialogScriptEditor)
42 
43 public:
44  DialogScriptEditor( CWnd* pParent = NULL ); // standard constructor
45  virtual ~DialogScriptEditor();
46 
47  void OpenFile( const char *fileName );
48 
49  //{{AFX_VIRTUAL(DialogScriptEditor)
50  virtual BOOL OnInitDialog();
51  virtual void DoDataExchange( CDataExchange* pDX ); // DDX/DDV support
52  virtual BOOL PreTranslateMessage( MSG* pMsg );
53  //}}AFX_VIRTUAL
54 
55 protected:
56  //{{AFX_MSG(DialogScriptEditor)
57  afx_msg BOOL OnToolTipNotify( UINT id, NMHDR *pNMHDR, LRESULT *pResult );
58  afx_msg void OnSetFocus( CWnd *pOldWnd );
59  afx_msg void OnDestroy();
60  afx_msg void OnActivate( UINT nState, CWnd* pWndOther, BOOL bMinimized );
61  afx_msg void OnMove( int x, int y );
62  afx_msg void OnSize( UINT nType, int cx, int cy );
63  afx_msg void OnSizing( UINT nSide, LPRECT lpRect );
64  afx_msg void OnEditGoToLine();
65  afx_msg void OnEditFind();
66  afx_msg void OnEditFindNext();
67  afx_msg void OnEditReplace();
68  afx_msg LRESULT OnFindDialogMessage( WPARAM wParam, LPARAM lParam );
69  afx_msg void OnEnChangeEdit( NMHDR *pNMHDR, LRESULT *pResult );
70  afx_msg void OnEnInputEdit( NMHDR *pNMHDR, LRESULT *pResult );
71  afx_msg void OnBnClickedOk();
72  afx_msg void OnBnClickedCancel();
73  //}}AFX_MSG
74 
75  DECLARE_MESSAGE_MAP()
76 
77 private:
78  //{{AFX_DATA(DialogScriptEditor)
80  CStatusBarCtrl statusBar;
82  CButton okButton;
83  CButton cancelButton;
84  //}}AFX_DATA
85 
86  static toolTip_t toolTips[];
87 
88  HACCEL m_hAccel;
89  CRect initialRect;
90  CFindReplaceDialog *findDlg;
91  CString findStr;
92  CString replaceStr;
93  bool matchCase;
97  int firstLine;
98 
99 private:
100  void InitScriptEvents( void );
101  void UpdateStatusBar( void );
102 };
103 
104 #endif /* !__DIALOGSCRIPTEDITOR_H__ */
afx_msg LRESULT OnFindDialogMessage(WPARAM wParam, LPARAM lParam)
CONST PIXELFORMATDESCRIPTOR UINT
Definition: win_qgl.cpp:47
afx_msg void OnSizing(UINT nSide, LPRECT lpRect)
GLenum GLint GLint y
Definition: glext.h:2849
virtual void DoDataExchange(CDataExchange *pDX)
afx_msg void OnEditGoToLine()
#define IDD_DIALOG_SCRIPTEDITOR
CSyntaxRichEditCtrl scriptEdit
GLenum GLint x
Definition: glext.h:2849
#define BOOL
Definition: mprintf.c:71
afx_msg void OnEnChangeEdit(NMHDR *pNMHDR, LRESULT *pResult)
afx_msg void OnMove(int x, int y)
afx_msg void OnEditReplace()
afx_msg void OnBnClickedOk()
DialogScriptEditor(CWnd *pParent=NULL)
CFindReplaceDialog * findDlg
#define NULL
Definition: Lib.h:88
afx_msg void OnSize(UINT nType, int cx, int cy)
afx_msg void OnBnClickedCancel()
afx_msg void OnActivate(UINT nState, CWnd *pWndOther, BOOL bMinimized)
afx_msg void OnEditFindNext()
static toolTip_t toolTips[]
void OpenFile(const char *fileName)
afx_msg void OnSetFocus(CWnd *pOldWnd)
afx_msg void OnEnInputEdit(NMHDR *pNMHDR, LRESULT *pResult)
Definition: Str.h:116
virtual BOOL OnInitDialog()
virtual BOOL PreTranslateMessage(MSG *pMsg)
afx_msg BOOL OnToolTipNotify(UINT id, NMHDR *pNMHDR, LRESULT *pResult)
CStatusBarCtrl statusBar