| 1 |
/* --------------------------------------------------------------------- */ |
| 2 |
/* NeuroManager - A spike train analysis tool */ |
| 3 |
/* Copyright (c) 2005-2006 RIKEN, Japan. All rights reserved. */ |
| 4 |
/* http://satellite.sourceforge.jp/ */ |
| 5 |
/* --------------------------------------------------------------------- */ |
| 6 |
/* This program is free software; you can redistribute it and/or */ |
| 7 |
/* modify it under the terms of the GNU General Public License */ |
| 8 |
/* as published by the Free Software Foundation; either version 2 */ |
| 9 |
/* of the License, or (at your option) any later version. */ |
| 10 |
/* */ |
| 11 |
/* This program is distributed in the hope that it will be useful, */ |
| 12 |
/* but WITHOUT ANY WARRANTY; without even the implied warranty of */ |
| 13 |
/* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the */ |
| 14 |
/* GNU 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; see the file COPYING.txt. If not, write */ |
| 18 |
/* to the Free Software Foundation, Inc., 51 Franklin Street, Fifth */ |
| 19 |
/* Floor, Boston, MA 02110-1301, USA. */ |
| 20 |
/* --------------------------------------------------------------------- */ |
| 21 |
|
| 22 |
/* $Id: DataViewProperties.h,v 1.16 2006/01/24 01:59:57 orrisroot Exp $ */ |
| 23 |
|
| 24 |
// DataViewProperties.h : interface of the CDataViewProperties class |
| 25 |
// |
| 26 |
|
| 27 |
#pragma once |
| 28 |
|
| 29 |
// CDataViewProperties form view |
| 30 |
|
| 31 |
class CDataViewProperties : public CFormView, public CDataViewContext |
| 32 |
{ |
| 33 |
DECLARE_DYNCREATE( CDataViewProperties ) |
| 34 |
|
| 35 |
protected: |
| 36 |
CDataViewProperties(); // protected constructor used by dynamic creation |
| 37 |
virtual ~CDataViewProperties(); |
| 38 |
|
| 39 |
public: |
| 40 |
enum { IDD = IDD_DATAVIEWPROPERTIES }; |
| 41 |
#ifdef _DEBUG |
| 42 |
|
| 43 |
virtual void AssertValid() const; |
| 44 |
virtual void Dump( CDumpContext &dc ) const; |
| 45 |
#endif |
| 46 |
|
| 47 |
protected: |
| 48 |
virtual void DoDataExchange( CDataExchange *pDX ); // DDX/DDV support |
| 49 |
|
| 50 |
DECLARE_MESSAGE_MAP() |
| 51 |
// user defined variable |
| 52 |
private: |
| 53 |
BOOL m_bInitCtrlList; |
| 54 |
CListCtrlEdit m_ctrlList; |
| 55 |
// user defined methods |
| 56 |
private: |
| 57 |
BOOL String2Double( CString &str, double &result ); |
| 58 |
BOOL IsEdit( CWnd *pWnd ); |
| 59 |
CScrollView *GetDataView() const; |
| 60 |
void FormatTime( CString &str, double dTime ) const; |
| 61 |
void InitializeDataChannelList(); |
| 62 |
BOOL InitializeDataLength( QWORD len, double dTime ); |
| 63 |
BOOL OnChangedVisibleDataChannelState( LPNMLISTVIEW pNMLV ); |
| 64 |
protected: |
| 65 |
BOOL SetVisibleDataChannelState( UINT ch, BOOL bState ); |
| 66 |
void SetDataYAxisRange( UINT ch, double ymin, double ymax ); |
| 67 |
public: |
| 68 |
void SetDataTime( double dTime ); |
| 69 |
// messages |
| 70 |
protected: |
| 71 |
virtual void OnUpdate( CView* /*pSender*/, LPARAM /*lHint*/, CObject* /*pHint*/ ); |
| 72 |
public: |
| 73 |
afx_msg void OnLvnItemchangedListChannel( NMHDR *pNMHDR, LRESULT *pResult ); |
| 74 |
afx_msg void OnLvnBeginlabeleditListChannel( NMHDR *pNMHDR, LRESULT *pResult ); |
| 75 |
afx_msg void OnLvnEndlabeleditListChannel( NMHDR *pNMHDR, LRESULT *pResult ); |
| 76 |
afx_msg void OnUpdateNeedSel( CCmdUI *pCmdUI ); |
| 77 |
afx_msg void OnUpdateNeedClip( CCmdUI* pCmdUI ); |
| 78 |
afx_msg void OnEditCopy(); |
| 79 |
afx_msg void OnEditCut(); |
| 80 |
afx_msg void OnEditPaste(); |
| 81 |
}; |