Main Page | Class Hierarchy | Class List | File List | Class Members | Related Pages

D:/Programming/GUI Editor (Source)/GUIEditorView.h

00001 // GUIEditorView.h : interface of the CGUIEditorView class 00002 // 00003 #if !defined(AFX_GUIEditVIEW_H__83300727_68FC_4801_81F7_BB1C1B8716C5__INCLUDED_) 00004 #define AFX_GUIEditVIEW_H__83300727_68FC_4801_81F7_BB1C1B8716C5__INCLUDED_ 00005 00006 00007 #pragma once 00008 #include "MainFrm.h" 00009 #include "GUIEditorDoc.h" 00010 00011 class CGUIEditorView : public CView 00012 { 00013 public: // create from serialization only 00014 CGUIEditorView(); 00015 DECLARE_DYNCREATE(CGUIEditorView) 00016 00017 // OpenGL specific 00018 00019 HDC m_hDC; 00020 int m_GLPixelIndex; 00021 00022 void AddToSelection(CGUIElement *pElement); 00023 void ClearSelection(); 00024 int GetSelectionCount(); 00025 CGUIElement *GetFirstSelection(); 00026 CGUIElement *GetNextSelection(); 00027 00028 void RenderGLScene(); 00029 // Attributes 00030 public: 00031 CGUIEditorDoc* GetDocument(); 00032 // Operations 00033 public: 00034 00035 tRect GenerateRandomRect(int MinWidth, int MaxWidth, int MinHeight, int MaxHeight); 00036 00037 // Overrides 00038 // ClassWizard generated virtual function overrides 00039 //{{AFX_VIRTUAL(CGUIEditorView) 00040 public: 00041 virtual void OnDraw(CDC* pDC); // overridden to draw this view 00042 virtual BOOL PreCreateWindow(CREATESTRUCT& cs); 00043 protected: 00044 virtual BOOL OnPreparePrinting(CPrintInfo* pInfo); 00045 virtual void OnBeginPrinting(CDC* pDC, CPrintInfo* pInfo); 00046 virtual void OnEndPrinting(CDC* pDC, CPrintInfo* pInfo); 00047 //}}AFX_VIRTUAL 00048 00049 CChildFrame *GetActiveChild(); 00050 // Implementation 00051 public: 00052 virtual ~CGUIEditorView(); 00053 #ifdef _DEBUG 00054 virtual void AssertValid() const; 00055 virtual void Dump(CDumpContext& dc) const; 00056 #endif 00057 00058 protected: 00059 CDoubleList<CGUIElement *> m_lstSelection; 00060 // Generated message map functions 00061 protected: 00062 //{{AFX_MSG(CGUIEditorView) 00063 //}}AFX_MSG 00064 DECLARE_MESSAGE_MAP() 00065 public: 00066 afx_msg void OnKeyDown(UINT nChar, UINT nRepCnt, UINT nFlags); 00067 afx_msg int OnCreate(LPCREATESTRUCT lpCreateStruct); 00068 afx_msg void OnSize(UINT nType, int cx, int cy); 00069 afx_msg void OnResourcesTextures(); 00070 afx_msg void OnResourcesMaterials(); 00071 afx_msg BOOL OnEraseBkgnd(CDC* pDC); 00072 afx_msg void OnResourcesAnimations(); 00073 afx_msg void OnResourcesFonts(); 00074 afx_msg void OnGuiProperties(); 00075 protected: 00076 virtual LRESULT WindowProc(UINT uiMessageIndex, WPARAM wParam, LPARAM lParam); 00077 public: 00078 afx_msg void OnDestroy(); 00079 afx_msg void OnAddElement(); 00080 afx_msg void OnAddStatic(); 00081 afx_msg void OnAddTextbox(); 00082 afx_msg void OnAddButton(); 00083 afx_msg void OnAddScrollbarHorizontal(); 00084 afx_msg void OnAddScrollbarVertical(); 00085 afx_msg void OnAddProgressbarHorizontal(); 00086 afx_msg void OnAddProgressbarVertical(); 00087 afx_msg void OnAddDroplist(); 00088 afx_msg void OnAddListbox(); 00089 afx_msg void OnAddMenu(); 00090 afx_msg void OnAddTabcontrol(); 00091 afx_msg void OnAddWindow(); 00092 afx_msg void OnAddBorder(); 00093 afx_msg void OnGuiRemoveBorder(); 00094 afx_msg void OnFileSaveEx(); 00095 afx_msg void OnFileSaveAsEx(); 00096 afx_msg void OnAddRadiogroup(); 00097 }; 00098 00099 #ifndef _DEBUG // debug version in GUIEditView.cpp 00100 inline CGUIEditorDoc* CGUIEditorView::GetDocument() 00101 { return (CGUIEditorDoc*)m_pDocument; } 00102 #endif 00103 00104 00105 int Random(int from, int to); 00106 #endif

Generated on Sun Jul 17 21:34:26 2005 for OpenGL GUI by doxygen 1.3.8