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

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [rtos/] [ecos-3.0/] [host/] [tools/] [Utils/] [win32/] [IntegerEdit.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
//===========================================================================
23
//#####DESCRIPTIONBEGIN####
24
//
25
// Author(s):   sdf
26
// Contact(s):  sdf
27
// Date:                1998/08/11
28
// Version:             0.01
29
// Purpose:     
30
// Description: Interface of the masked edit control used by the control view for
31
//                              in-cell editing
32
// Requires:    
33
// Provides:    
34
// See also:    
35
// Known bugs:  
36
// Usage:       
37
//
38
//####DESCRIPTIONEND####
39
//
40
//===========================================================================
41
#if !defined(AFX_INTEGEREDIT_H__8F19DC24_06B9_11D2_80BE_00A0C949ADAC__INCLUDED_)
42
#define AFX_INTEGEREDIT_H__8F19DC24_06B9_11D2_80BE_00A0C949ADAC__INCLUDED_
43
 
44
#if _MSC_VER >= 1000
45
#pragma once
46
#endif // _MSC_VER >= 1000
47
// IntegerEdit.h : header file
48
//
49
class CConfigItem;
50
/////////////////////////////////////////////////////////////////////////////
51
// CIntegerEdit window
52
#include "CellEdit.h"
53
class CIntegerEdit : public CCellEdit
54
{
55
// Construction
56
public:
57
        CIntegerEdit(__int64 nInitialValue);
58
 
59
// Attributes
60
public:
61
        static LPCTSTR FORMAT_HEX;
62
        static LPCTSTR FORMAT_INT;
63
// Operations
64
public:
65
 
66
// Overrides
67
        // ClassWizard generated virtual function overrides
68
        //{{AFX_VIRTUAL(CIntegerEdit)
69
        public:
70
        protected:
71
        virtual BOOL PreCreateWindow(CREATESTRUCT& cs);
72
        //}}AFX_VIRTUAL
73
 
74
// Implementation
75
public:
76
  void SetValue(__int64 n);
77
        virtual ~CIntegerEdit();
78
 
79
        // Generated message map functions
80
protected:
81
        bool m_bInSize;
82
        CSpinButtonCtrl m_wndSpin;
83
 
84
        CString m_strPrevText;
85
        bool m_bHex;
86
        CString m_strData;
87
        //{{AFX_MSG(CIntegerEdit)
88
        afx_msg void OnUpdate();
89
        afx_msg int OnCreate(LPCREATESTRUCT lpCreateStruct);
90
        afx_msg void OnSize(UINT nType, int cx, int cy);
91
        //}}AFX_MSG
92
 
93
        DECLARE_MESSAGE_MAP()
94
};
95
 
96
/////////////////////////////////////////////////////////////////////////////
97
 
98
//{{AFX_INSERT_LOCATION}}
99
// Microsoft Developer Studio will insert additional declarations immediately before the previous line.
100
 
101
#endif // !defined(AFX_INTEGEREDIT_H__8F19DC24_06B9_11D2_80BE_00A0C949ADAC__INCLUDED_)

powered by: WebSVN 2.1.0

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