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

Subversion Repositories openrisc

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

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
// ConfigTool.h : 
23
//
24
//===========================================================================
25
//#####DESCRIPTIONBEGIN####
26
//
27
// Author(s):   sdf
28
// Contact(s):  sdf
29
// Date:                1998/08/11
30
// Version:             0.01
31
// Purpose:     
32
// Description: main header file for the ConfigTool application
33
// Requires:    
34
// Provides:    
35
// See also:    
36
// Known bugs:  
37
// Usage:       
38
//
39
//####DESCRIPTIONEND####
40
//
41
//===========================================================================
42
 
43
#if !defined(AFX_ConfigTool_H__A4845240_05EE_11D2_80BE_00A0C949ADAC__INCLUDED_)
44
#define AFX_ConfigTool_H__A4845240_05EE_11D2_80BE_00A0C949ADAC__INCLUDED_
45
 
46
#if _MSC_VER >= 1000
47
#pragma once
48
#endif // _MSC_VER >= 1000
49
 
50
#ifndef __AFXWIN_H__
51
#error include 'stdafx.h' before including this file for PCH
52
#endif
53
 
54
#include "stdafx.h"       // main symbols
55
#include "FileName.h"
56
#include "FindDialog.h"
57
 
58
/////////////////////////////////////////////////////////////////////////////
59
// CConfigToolApp:
60
// See ConfigTool.cpp for the implementation of this class
61
//
62
 
63
class CConfigToolDoc;
64
class COutputView;
65
class CControlView;
66
class CCellView;
67
class CDescView;
68
class CMLTView;
69
class CPropertiesView;
70
class CRulesView;
71
class CMainFrame;
72
 
73
class CConfigTool {
74
public:
75
  static void DismissSplash();
76
  static void SetDocument(CConfigToolDoc *pDoc);
77
  static void SetMain(CMainFrame * pMain);
78
  static void SetControlView(CControlView *pControlView);
79
  static void SetOutputView(COutputView *pOutputView);
80
  static void SetCellView(CCellView *pCellView);
81
  static void SetDescView(CDescView *pDescView);
82
  static void SetMLTView(CMLTView *pMLTView);
83
  static void SetPropertiesView(CPropertiesView *pPropertiesView);
84
  static void SetRulesView(CRulesView *pRulesView);
85
 
86
  static CConfigToolDoc  * GetConfigToolDoc() { return m_pConfigToolDoc; }
87
 
88
  static CControlView    * GetControlView();
89
  static CCellView       * GetCellView();
90
  static CDescView       * GetDescView();
91
  static COutputView     * GetOutputView();
92
  static CPropertiesView * GetPropertiesView();
93
  static CRulesView      * GetRulesView();
94
  static CMLTView        * GetMLTView();
95
  static CMainFrame      * GetMain();
96
 
97
  static int Log(LPCTSTR,...);
98
  static void CALLBACK OutputWindowTextCB(LPCTSTR pszMsg);
99
 
100
  static CString strHelpFile;
101
 
102
protected:
103
  static CEditView         *m_pEditView;
104
  static COutputView       *m_pOutputView;
105
  static CControlView    *m_pControlView;
106
  static CCellView       *m_pCellView;
107
  static CDescView       *m_pDescView;
108
  static CPropertiesView *m_pPropertiesView;
109
  static CMLTView        *m_pMLTView;
110
  static CRulesView      *m_pRulesView;
111
  static CConfigToolDoc  *m_pConfigToolDoc;
112
  static CMainFrame      *m_pMain;
113
};
114
 
115
class CConfigToolApp : public CWinApp
116
{
117
public:
118
        CString m_strOriginalPath;
119
 
120
  CFileName m_strUserToolsDir;
121
  void SaveWindowPlacement(CWnd *pWnd, const CString &strKey);
122
  void SaveFont (const CString &strKey,const LOGFONT &lf);
123
  void LoadFont (const CString &strKey,LOGFONT &lf);
124
  BOOL RestoreWindowPlacement(CWnd *pWwnd, const CString &strKey,const CRect &rcDefault);
125
  CStringArray m_arstrUserToolPaths;
126
  CString m_strMakeOptions;
127
  OSVERSIONINFO m_VersionInfo;
128
  bool Launch (const CString &strFileName,const CString &strViewer=_T(""));
129
  CPen m_GrayPen;
130
  virtual BOOL PreTranslateMessage(MSG* pMsg);
131
 
132
  CConfigToolApp();
133
  CString m_strBufferedLogMessages;
134
  int GetRepositoryRegistryClues (CStringArray &arstrRepository,LPCTSTR pszPrefix);
135
  CMapStringToString m_arstrBinDirs;
136
  CString GetInstallVersionKey ();
137
 
138
  // Overrides
139
  // ClassWizard generated virtual function overrides
140
  //{{AFX_VIRTUAL(CConfigToolApp)
141
public:
142
  virtual BOOL InitInstance();
143
  virtual int ExitInstance();
144
  virtual BOOL OnIdle(LONG lCount);
145
  //    virtual void AddToRecentFileList(LPCTSTR lpszPathName);
146
  //}}AFX_VIRTUAL
147
 
148
  // Implementation
149
 
150
  //{{AFX_MSG(CConfigToolApp)
151
  afx_msg void OnAppAbout();
152
  //}}AFX_MSG
153
  DECLARE_MESSAGE_MAP()
154
protected:
155
  void LoadStdProfileSettings();
156
private:
157
  static LPCTSTR s_profileRect;
158
  static LPCTSTR s_profileIcon;
159
  static LPCTSTR s_profileMax;
160
  static LPCTSTR s_profileTool;
161
  static LPCTSTR s_profileStatus;
162
 
163
};
164
 
165
 
166
/////////////////////////////////////////////////////////////////////////////
167
 
168
//{{AFX_INSERT_LOCATION}}
169
// Microsoft Developer Studio will insert additional declarations immediately before the previous line.
170
 
171
#endif // !defined(AFX_ConfigTool_H__A4845240_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.