| 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: MainFrm.h,v 1.3 2006/03/20 08:33:59 orrisroot Exp $ */ |
| 23 |
|
| 24 |
// MainFrm.h : interface of the CMainFrame class |
| 25 |
// |
| 26 |
|
| 27 |
#pragma once |
| 28 |
|
| 29 |
class CMainFrame : public CFrameWnd |
| 30 |
{ |
| 31 |
protected: |
| 32 |
// create from serialization only |
| 33 |
CMainFrame(); |
| 34 |
DECLARE_DYNCREATE( CMainFrame ) |
| 35 |
|
| 36 |
// Attributes |
| 37 |
public: |
| 38 |
|
| 39 |
// Operations |
| 40 |
public: |
| 41 |
|
| 42 |
// Overrides |
| 43 |
virtual void GetMessageString( UINT nID, CString& rMessage ) const; |
| 44 |
|
| 45 |
public: |
| 46 |
virtual BOOL PreCreateWindow( CREATESTRUCT& cs ); |
| 47 |
|
| 48 |
// Implementation |
| 49 |
public: |
| 50 |
virtual ~CMainFrame(); |
| 51 |
#ifdef _DEBUG |
| 52 |
|
| 53 |
virtual void AssertValid() const; |
| 54 |
virtual void Dump( CDumpContext& dc ) const; |
| 55 |
#endif |
| 56 |
|
| 57 |
protected: |
| 58 |
// control bar embedded members |
| 59 |
CStatusBar m_wndStatusBar; |
| 60 |
CToolBar m_wndToolBar; |
| 61 |
CDataViewBar m_wndDataViewBar; |
| 62 |
CSpikeViewBar m_wndSpikeViewBar; |
| 63 |
// user defined functions |
| 64 |
private: |
| 65 |
void SaveLoadToolBar( BOOL bSave ); |
| 66 |
// Generated message map functions |
| 67 |
protected: |
| 68 |
afx_msg int OnCreate( LPCREATESTRUCT lpCreateStruct ); |
| 69 |
afx_msg void OnOpenMCDataFileType( UINT nID ); |
| 70 |
DECLARE_MESSAGE_MAP() |
| 71 |
public: |
| 72 |
afx_msg void OnViewDataViewBar(); |
| 73 |
afx_msg void OnViewSpikeViewBar(); |
| 74 |
afx_msg void OnUpdateViewDataViewBar( CCmdUI *pCmdUI ); |
| 75 |
afx_msg void OnUpdateViewSpikeViewBar( CCmdUI *pCmdUI ); |
| 76 |
virtual BOOL DestroyWindow(); |
| 77 |
}; |