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

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [rtos/] [ecos-2.0/] [tools/] [src/] [tools/] [Utils/] [win32/] [CSHCommon.h] - Blame information for rev 810

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

Line No. Rev Author Line
1 26 unneback
//####COPYRIGHTBEGIN####
2
//                                                                          
3
// ----------------------------------------------------------------------------
4
// Copyright (C) 1998, 1999, 2000 Red Hat, Inc.
5
//
6
// This program is part of the eCos host tools.
7
//
8
// This program is free software; you can redistribute it and/or modify it 
9
// under the terms of the GNU General Public License as published by the Free 
10
// Software Foundation; either version 2 of the License, or (at your option) 
11
// any later version.
12
// 
13
// This program is distributed in the hope that it will be useful, but WITHOUT 
14
// ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or 
15
// FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License for 
16
// more details.
17
// 
18
// You should have received a copy of the GNU General Public License along with
19
// this program; if not, write to the Free Software Foundation, Inc., 
20
// 59 Temple Place - Suite 330, Boston, MA  02111-1307, USA.
21
//
22
// ----------------------------------------------------------------------------
23
//                                                                          
24
//####COPYRIGHTEND####
25
#if !defined(AFX_CSHCOMMON_H__B9FD78FA_DE33_11D3_A53F_00A0C949ADAC__INCLUDED_)
26
#define AFX_CSHCOMMON_H__B9FD78FA_DE33_11D3_A53F_00A0C949ADAC__INCLUDED_
27
 
28
#if _MSC_VER > 1000
29
#pragma once
30
#endif // _MSC_VER > 1000
31
// CSHCommon.h : header file
32
//
33
 
34
/////////////////////////////////////////////////////////////////////////////
35
// CCSHCommon window
36
 
37
class CCSHCommon
38
{
39
// Construction
40
public:
41
        CCSHCommon();
42
 
43
// Attributes
44
public:
45
 
46
// Operations
47
public:
48
 
49
  // What CSHFile() will probably return something starting with this path
50
  static void  SetCSHFilePath(LPCTSTR pszCSHFilePath) { m_strCSHFilePath=pszCSHFilePath; }
51
  static const CString GetCSHFilePath() { return m_strCSHFilePath; }
52
 
53
  // Used by dialogs handling NM_RCLICK notifications to display a context menu to avoid getting two in a row.
54
  void SuppressNextContextMenuMessage() { m_bSupressContextMenu=true; }
55
 
56
// Implementation
57
public:
58
        virtual ~CCSHCommon();
59
 
60
protected:
61
        bool OnContextMenu (CWnd *pDialog, CPoint pt, UINT idHelp);
62
  enum {ID_WHATS_THIS=42};
63
 
64
  bool m_bSupressContextMenu;
65
 
66
  static CString m_strCSHFilePath;
67
 
68
        static void DisplayHelp (HWND hCtrl, UINT ids, HINSTANCE hInst);
69
 
70
  static CWnd *WndFromPoint(CWnd *pDialog,CWnd* pWnd,CPoint pt);
71
        CWnd* m_pwndContext;
72
 
73
  bool FilterMessage(UINT &message, WPARAM &wParam,LPARAM &lParam,LRESULT *&pResult);
74
};
75
 
76
/////////////////////////////////////////////////////////////////////////////
77
 
78
//{{AFX_INSERT_LOCATION}}
79
// Microsoft Visual C++ will insert additional declarations immediately before the previous line.
80
 
81
#endif // !defined(AFX_CSHCOMMON_H__B9FD78FA_DE33_11D3_A53F_00A0C949ADAC__INCLUDED_)

powered by: WebSVN 2.1.0

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