doom3-gpl
Doom 3 GPL source release
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
DialogDeclEditor.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 __DIALOGDECLEDITOR_H__
30 #define __DIALOGDECLEDITOR_H__
31 
32 #pragma once
33 
34 #include "../comafx/CSyntaxRichEditCtrl.h"
35 
36 // DialogDeclEditor dialog
37 
38 class DialogDeclEditor : public CDialog {
39 
40  DECLARE_DYNAMIC(DialogDeclEditor)
41 
42 public:
43  DialogDeclEditor( CWnd* pParent = NULL ); // standard constructor
44  virtual ~DialogDeclEditor();
45 
46  void LoadDecl( idDecl *decl );
47 
48  //{{AFX_VIRTUAL(DialogDeclEditor)
49  virtual BOOL OnInitDialog();
50  virtual void DoDataExchange( CDataExchange* pDX ); // DDX/DDV support
51  virtual BOOL PreTranslateMessage( MSG* pMsg );
52  //}}AFX_VIRTUAL
53 
54 protected:
55  //{{AFX_MSG(DialogDeclEditor)
56  afx_msg BOOL OnToolTipNotify( UINT id, NMHDR *pNMHDR, LRESULT *pResult );
57  afx_msg void OnSetFocus( CWnd *pOldWnd );
58  afx_msg void OnDestroy();
59  afx_msg void OnActivate( UINT nState, CWnd* pWndOther, BOOL bMinimized );
60  afx_msg void OnMove( int x, int y );
61  afx_msg void OnSize( UINT nType, int cx, int cy );
62  afx_msg void OnSizing( UINT nSide, LPRECT lpRect );
63  afx_msg void OnEditGoToLine();
64  afx_msg void OnEditFind();
65  afx_msg void OnEditFindNext();
66  afx_msg void OnEditReplace();
67  afx_msg LRESULT OnFindDialogMessage( WPARAM wParam, LPARAM lParam );
68  afx_msg void OnEnChangeEdit( NMHDR *pNMHDR, LRESULT *pResult );
69  afx_msg void OnEnInputEdit( NMHDR *pNMHDR, LRESULT *pResult );
70  afx_msg void OnBnClickedTest();
71  afx_msg void OnBnClickedOk();
72  afx_msg void OnBnClickedCancel();
73  //}}AFX_MSG
74 
75  DECLARE_MESSAGE_MAP()
76 
77 private:
78 
79  //{{AFX_DATA(DialogDeclEditor)
81  CStatusBarCtrl statusBar;
83  CButton testButton;
84  CButton okButton;
85  CButton cancelButton;
86  //}}AFX_DATA
87 
88  static toolTip_t toolTips[];
89 
90  HACCEL m_hAccel;
91  CRect initialRect;
92  CFindReplaceDialog *findDlg;
93  CString findStr;
94  CString replaceStr;
95  bool matchCase;
99  int firstLine;
100 
101 private:
102  bool TestDecl( const idStr &declText );
103  void UpdateStatusBar( void );
104 };
105 
106 #endif /* !__DIALOGDECLEDITOR_H__ */
afx_msg void OnEditFind()
CONST PIXELFORMATDESCRIPTOR UINT
Definition: win_qgl.cpp:47
GLenum GLint GLint y
Definition: glext.h:2849
afx_msg void OnEditGoToLine()
static toolTip_t toolTips[]
void UpdateStatusBar(void)
CSyntaxRichEditCtrl declEdit
afx_msg BOOL OnToolTipNotify(UINT id, NMHDR *pNMHDR, LRESULT *pResult)
virtual BOOL OnInitDialog()
afx_msg void OnSize(UINT nType, int cx, int cy)
virtual ~DialogDeclEditor()
GLenum GLint x
Definition: glext.h:2849
#define BOOL
Definition: mprintf.c:71
afx_msg void OnSizing(UINT nSide, LPRECT lpRect)
bool TestDecl(const idStr &declText)
afx_msg void OnEditFindNext()
afx_msg void OnBnClickedOk()
afx_msg void OnBnClickedCancel()
virtual void DoDataExchange(CDataExchange *pDX)
#define NULL
Definition: Lib.h:88
afx_msg void OnMove(int x, int y)
afx_msg void OnEnInputEdit(NMHDR *pNMHDR, LRESULT *pResult)
void LoadDecl(idDecl *decl)
afx_msg void OnEnChangeEdit(NMHDR *pNMHDR, LRESULT *pResult)
afx_msg void OnBnClickedTest()
afx_msg void OnSetFocus(CWnd *pOldWnd)
CStatusBarCtrl statusBar
CFindReplaceDialog * findDlg
afx_msg void OnActivate(UINT nState, CWnd *pWndOther, BOOL bMinimized)
Definition: Str.h:116
afx_msg LRESULT OnFindDialogMessage(WPARAM wParam, LPARAM lParam)
afx_msg void OnDestroy()
DialogDeclEditor(CWnd *pParent=NULL)
virtual BOOL PreTranslateMessage(MSG *pMsg)
afx_msg void OnEditReplace()
#define IDD_DIALOG_DECLEDITOR