Header
Product Comparison: USB I2C | USB SPI | USB GPIO
  • My Account
  • Shopping Cart
  • Products
  • My Account
  • About
  • Products
  • PC-I2C/SPI/GPIO Adapters
  • Main Page
  • Classes
  • Files
  • File List
  • File Members

D:/_sources/u2c_12/ControlPanel/ControlPanelView.h

Go to the documentation of this file.
00001 // Copyright (C)2006 Diolan ( http://www.diolan.com )
00002 //
00003 // This program is free software; you can redistribute it and/or
00004 // modify it under the terms of the GNU General Public License
00005 // as published by the Free Software Foundation
00006 //
00007 // This program is distributed in the hope that it will be useful,
00008 // but WITHOUT ANY WARRANTY; without even the implied warranty of
00009 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
00010 // GNU General Public License for more details.
00011 
00012 
00013 #if !defined(AFX_CONTROLPANELVIEW_H__A65BC073_A580_49D8_8D97_128E70CCB1E9__INCLUDED_)
00014 #define AFX_CONTROLPANELVIEW_H__A65BC073_A580_49D8_8D97_128E70CCB1E9__INCLUDED_
00015 
00016 #if _MSC_VER > 1000
00017 #pragma once
00018 #endif // _MSC_VER > 1000
00019 // ControlPanelView.h : header file
00020 //
00021 #include "../common/I2CBridge.h"
00022 #include "MainFrm.h"
00023 
00025 // CControlPanelView view
00026 
00027 class CControlPanelView : public CListView
00028 {
00029 protected:
00030         CControlPanelView();           // protected constructor used by dynamic creation
00031         DECLARE_DYNCREATE(CControlPanelView)
00032 
00033 // Attributes
00034 public:
00035 
00036 // Operations
00037 public:
00038         CMainFrame* GetMainFrame();
00039         void PrintLine(CString str);
00040         void PrintHexBuffer(const BYTE *pBuffer, int Length);
00041         void PrintTransaction(const U2C_TRANSACTION &Transaction, bool bPrintBuffer);
00042         void PrintError(CString strFunName, U2C_RESULT ErrorCode);
00043         void IncIndent() {m_indent++;};
00044         void DecIndent() {m_indent--;};
00045         void EnableControls(bool bEnable);
00046 
00047 
00048 protected:
00049         CString U2cResult2Str(U2C_RESULT res);
00050 
00051 // Overrides
00052         // ClassWizard generated virtual function overrides
00053         //{{AFX_VIRTUAL(CControlPanelView)
00054         public:
00055         virtual void OnInitialUpdate();
00056         virtual BOOL OnScroll(UINT nScrollCode, UINT nPos, BOOL bDoScroll = TRUE);
00057         protected:
00058         virtual BOOL PreCreateWindow(CREATESTRUCT& cs);
00059         //}}AFX_VIRTUAL
00060 
00061 // Implementation
00062 protected:
00063         virtual ~CControlPanelView();
00064 #ifdef _DEBUG
00065         virtual void AssertValid() const;
00066         virtual void Dump(CDumpContext& dc) const;
00067 #endif
00068 
00069         // Generated message map functions
00070 protected:
00071         //{{AFX_MSG(CControlPanelView)
00072         afx_msg void OnSize(UINT nType, int cx, int cy);
00073         afx_msg void OnClearLog();
00074         afx_msg void OnAutoscroll();
00075         afx_msg void OnUpdateAutoscroll(CCmdUI* pCmdUI);
00076         afx_msg void OnUpdateI2cFrequency(CCmdUI* pCmdUI);
00077         //}}AFX_MSG
00078         DECLARE_MESSAGE_MAP()
00079 private:
00080         int m_indent;
00081         BOOL m_bAutoscroll;
00082         bool m_bControlsEnabled;
00083 
00084 };
00085 
00087 
00088 //{{AFX_INSERT_LOCATION}}
00089 // Microsoft Visual C++ will insert additional declarations immediately before the previous line.
00090 
00091 #endif // !defined(AFX_CONTROLPANELVIEW_H__A65BC073_A580_49D8_8D97_128E70CCB1E9__INCLUDED_)
  • Products
  • PC-I2C/SPI/GPIO Adapters
  • Comparison
  • PC-I2C/SPI/GPIO Adapter DLN-1
  • USB-I2C/SPI/GPIO Adapter DLN-2
  • Multiprotocol Master DLN-4M
  • Multiprotocol Slave DLN-4S
  • Downloads
  • Software
  • Documentation
  • SW Tools & Examples
  • Development Boards
  • Open Source Projects
  • Discontinued Products
  • API Documentation
  • Downloads
  • SW Tools and Examples
footer top footer bottom
© Copyright Diolan 2006-2012