OpenCores
URL https://opencores.org/ocsvn/openrisc/openrisc/trunk

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [rtos/] [ecos-3.0/] [host/] [tools/] [configtool/] [standalone/] [win32/] [MainFrm.h] - Blame information for rev 790

Go to most recent revision | Details | Compare with Previous | View Log

Line No. Rev Author Line
1 786 skrzyp
// ####ECOSHOSTGPLCOPYRIGHTBEGIN####                                        
2
// -------------------------------------------                              
3
// This file is part of the eCos host tools.                                
4
// Copyright (C) 1998, 1999, 2000 Free Software Foundation, Inc.            
5
//
6
// This program is free software; you can redistribute it and/or modify     
7
// it under the terms of the GNU General Public License as published by     
8
// the Free Software Foundation; either version 2 or (at your option) any   
9
// later version.                                                           
10
//
11
// This program is distributed in the hope that it will be useful, but      
12
// WITHOUT ANY WARRANTY; without even the implied warranty of               
13
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU        
14
// General Public License for more details.                                 
15
//
16
// You should have received a copy of the GNU General Public License        
17
// along with this program; if not, write to the                            
18
// Free Software Foundation, Inc., 51 Franklin Street,                      
19
// Fifth Floor, Boston, MA  02110-1301, USA.                                
20
// -------------------------------------------                              
21
// ####ECOSHOSTGPLCOPYRIGHTEND####                                          
22
// MainFrm.h : interface of the CMainFrame class
23
//
24
/////////////////////////////////////////////////////////////////////////////
25
//===========================================================================
26
//#####DESCRIPTIONBEGIN####
27
//
28
// Author(s):   sdf
29
// Contact(s):  sdf
30
// Date:                1998/08/11
31
// Version:             0.01
32
// Purpose:     
33
// Description: Interface of the main frame class
34
// Requires:    
35
// Provides:    
36
// See also:    
37
// Known bugs:  
38
// Usage:       
39
//
40
//####DESCRIPTIONEND####
41
//
42
//===========================================================================
43
#if !defined(AFX_MAINFRM_H__A4845244_05EE_11D2_80BE_00A0C949ADAC__INCLUDED_)
44
#define AFX_MAINFRM_H__A4845244_05EE_11D2_80BE_00A0C949ADAC__INCLUDED_
45
 
46
#if _MSC_VER >= 1000
47
#pragma once
48
#endif // _MSC_VER >= 1000
49
class CControlView;
50
class CPropertiesView;
51
class COutputView;
52
class CFindDialog;
53
class CMessageBox;
54
class CCellView;
55
class CDescView;
56
class CConfigToolApp;
57
class CSplitterWndEx;
58
#include "BCMenu.h"
59
#include "Subprocess.h"
60
 
61
class CMainFrame : public CFrameWnd
62
{
63
protected: // create from serialization only
64
        CMainFrame();
65
        DECLARE_DYNCREATE(CMainFrame)
66
// Attributes
67
public:
68
        //CMFWnd m_wndHelp;
69
 
70
// Operations
71
public:
72
 
73
// Overrides
74
        // ClassWizard generated virtual function overrides
75
        //{{AFX_VIRTUAL(CMainFrame)
76
        public:
77
        virtual BOOL PreCreateWindow(CREATESTRUCT& cs);
78
        virtual void ActivateFrame(int nCmdShow = -1);
79
        virtual BOOL PreTranslateMessage(MSG* pMsg);
80
        protected:
81
        virtual BOOL OnCreateClient(LPCREATESTRUCT lpcs, CCreateContext* pContext);
82
        //}}AFX_VIRTUAL
83
 
84
// Implementation
85
 
86
  enum {Horz=-3, Vert=-2, Thin=-1};
87
  struct Split {
88
    int type;
89
    double fFrac;
90
    CSplitterWndEx *pSplit;
91
    int nLevel;
92
    Split(int _type,int _nLevel,double _fFrac=0.5) : type(_type), nLevel(_nLevel), fFrac(_fFrac), pSplit(0) {}
93
    ~Split(){};
94
  };
95
  static Split arSplit[];
96
 
97
public:
98
  BCMenu m_menu;
99
        HMENU NewMenu();
100
        void OnUpdateFrameTitle(BOOL bAddToTitle);
101
        void SetFailRulePane(int nCount);
102
        bool m_bFindInProgress;
103
        void SetThermometerMax (int nMax);
104
  enum PaneType { Cell, Control, ShortDesc, Output, Properties, Rules, MLT, PaneTypeMax};
105
  LPCTSTR GetPaneName(PaneType p) { return arView[p].pszName; }
106
        CFont &GetPaneFont(PaneType pane);
107
        bool SetPaneFont (PaneType pane, const LOGFONT &lf);
108
 
109
        void SetIdleMessage (LPCTSTR pszIdleMessage=NULL);
110
        void UpdateThermometer (int nLines);
111
        bool m_bExiting;
112
        CConfigToolApp * GetApp();
113
        virtual ~CMainFrame();
114
#ifdef _DEBUG
115
        virtual void AssertValid() const;
116
        virtual void Dump(CDumpContext& dc) const;
117
#endif
118
 
119
        CProgressCtrl m_Progress;
120
        enum {StatusPane, ThermometerPane, PercentagePane, FailRulePane};
121
        int m_nFailRulePaneSize;
122
        int m_nThermometerPaneSize;
123
        int m_nPercentagePaneSize;
124
 
125
        CStatusBar  m_wndStatusBar;
126
        afx_msg void OnHelp();
127
        bool PrepareEnvironment(bool bWithBuildTools = true);
128
 
129
  // public so available as a utility function for windows creating popups
130
        LRESULT OnMenuChar(UINT nChar, UINT nFlags, CMenu* pMenu);
131
 
132
protected:
133
        static bool m_arMounted[26];
134
        static void CygMount(TCHAR c);
135
        int m_nLogicalLines;
136
        DWORD m_dwThreadId;
137
 
138
  struct ViewStruct {
139
    LPCTSTR pszName;
140
    CSplitterWndEx *pParent;
141
    bool bVisible;
142
        CFont font;
143
    CRuntimeClass *pClass;
144
    CView *pView;
145
    ViewStruct(LPCTSTR _pszName,bool _bVisible,CRuntimeClass *_pClass) : pszName(_pszName), pParent(0), bVisible(_bVisible), pClass(_pClass), pView(0) {}
146
    ViewStruct(const ViewStruct &o) : pszName(o.pszName), pParent(0), bVisible(o.bVisible), pClass(o.pClass), pView(0) {}
147
  };
148
  static ViewStruct arView[PaneTypeMax];
149
 
150
        static DWORD WINAPI ThreadFunc( LPVOID );
151
 
152
        static UINT indicators[];
153
        CToolBar    m_wndToolBar;
154
  CToolBar    m_wndMLTToolBar;
155
  bool m_bMLTToolbarVisible;
156
        CFindDialog * m_pFindReplaceDialog;
157
 
158
        bool m_bStatusBarCreated;
159
 
160
        CString m_strIdleMessage;
161
        int m_nThermometerMax;
162
        CString m_strBuildTarget;
163
        void BumpWindow (int nInc);
164
 
165
        CSubprocess m_sp;
166
 
167
        void Build(const CString &strWhat=_T(""));
168
 
169
        //{{AFX_MSG(CMainFrame)
170
        afx_msg int OnCreate(LPCREATESTRUCT lpCreateStruct);
171
        afx_msg void OnViewProperties();
172
        afx_msg void OnUpdateViewProperties(CCmdUI* pCmdUI);
173
        afx_msg void OnViewMLT();
174
        afx_msg void OnViewShortdesc();
175
        afx_msg void OnUpdateViewShortdesc(CCmdUI* pCmdUI);
176
        afx_msg void OnViewOutput();
177
        afx_msg void OnUpdateViewOutput(CCmdUI* pCmdUI);
178
        afx_msg void OnUpdateBuildConfigure(CCmdUI* pCmdUI);
179
        afx_msg void OnBuildStop();
180
        afx_msg void OnUpdateBuildStop(CCmdUI* pCmdUI);
181
        afx_msg void OnConfigurationBuild();
182
        afx_msg void OnDestroy();
183
        afx_msg void OnBuildTests();
184
        afx_msg void OnUpdateBuildTests(CCmdUI* pCmdUI);
185
        afx_msg void OnUpdateFileSave(CCmdUI* pCmdUI);
186
        afx_msg void OnUpdateFileSaveAs(CCmdUI* pCmdUI);
187
        afx_msg void OnUpdateFileOpen(CCmdUI* pCmdUI);
188
        afx_msg void OnUpdateFileNew(CCmdUI* pCmdUI);
189
        afx_msg void OnUpdateAppExit(CCmdUI* pCmdUI);
190
        afx_msg void OnUpdateViewMLT(CCmdUI* pCmdUI);
191
        afx_msg void OnSysCommand(UINT nID, LPARAM lParam);
192
        afx_msg void OnUpdateConfigurationRefresh(CCmdUI* pCmdUI);
193
        afx_msg void OnConfigurationRefresh();
194
        afx_msg void OnViewSettings();
195
        afx_msg void OnToolsPaths();
196
        afx_msg void OnSize(UINT nType, int cx, int cy);
197
        afx_msg void OnUpdateConfigurationRepository(CCmdUI* pCmdUI);
198
        afx_msg void OnWindowNext();
199
        afx_msg void OnWindowPrev();
200
        afx_msg void OnHelpSubmitPr();
201
        afx_msg void OnHelpEcos();
202
        afx_msg void OnHelpRedHatHome();
203
        afx_msg void OnHelpUitron();
204
        afx_msg void OnHelpEcoshome();
205
        afx_msg void OnRunSim();
206
        afx_msg void OnBuildClean();
207
        afx_msg void OnUpdateBuildClean(CCmdUI* pCmdUI);
208
        afx_msg void OnToolsShell();
209
        afx_msg void OnClose();
210
        afx_msg void OnBuildOptions();
211
        afx_msg void OnToolsOptions();
212
        afx_msg void OnUsertoolsPaths();
213
        afx_msg LRESULT OnSetMessageString(WPARAM wParam, LPARAM lParam);
214
        afx_msg void OnUpdateRunSim(CCmdUI* pCmdUI);
215
        afx_msg void OnViewConflicts();
216
        afx_msg void OnUpdateViewConflicts(CCmdUI* pCmdUI);
217
        afx_msg void OnViewMltbar();
218
        afx_msg void OnUpdateViewMltbar(CCmdUI* pCmdUI);
219
        afx_msg void OnResolveConflicts();
220
        afx_msg void OnUpdateResolveConflicts(CCmdUI* pCmdUI);
221
        afx_msg void OnGoHome();
222
        afx_msg void OnMeasureItem(int nIDCtl, LPMEASUREITEMSTRUCT lpMeasureItemStruct);
223
        afx_msg void OnInitMenuPopup(CMenu* pPopupMenu, UINT nIndex, BOOL bSysMenu);
224
        afx_msg void OnUpdateBuildOptions(CCmdUI* pCmdUI);
225
        afx_msg LRESULT OnSubprocess(WPARAM wParam, LPARAM lParam);
226
        afx_msg void OnUpdateToolsAdministration(CCmdUI* pCmdUI);
227
        afx_msg BOOL OnHelpInfo(HELPINFO* pHelpInfo);
228
        afx_msg void OnEditPlatforms();
229
  afx_msg void OnTimer(UINT nIDEvent);
230
        //}}AFX_MSG
231
  void OnNavComplete(NMHDR*, LRESULT*);
232
        DECLARE_MESSAGE_MAP()
233
  static void CALLBACK SubprocessOutputFunc(void *pParam,LPCTSTR psz);
234
};
235
 
236
/////////////////////////////////////////////////////////////////////////////
237
 
238
//{{AFX_INSERT_LOCATION}}
239
// Microsoft Developer Studio will insert additional declarations immediately before the previous line.
240
 
241
#endif // !defined(AFX_MAINFRM_H__A4845244_05EE_11D2_80BE_00A0C949ADAC__INCLUDED_)

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.