Develop and Download Open Source Software

Browse CVS Repository

Contents of /satellite/neuromanager/neuromanager/SpikeView.cpp

Parent Directory Parent Directory | Revision Log Revision Log | View Revision Graph Revision Graph


Revision 1.3 - (show annotations) (download) (as text)
Mon Mar 20 07:24:14 2006 UTC (18 years ago) by orrisroot
Branch: MAIN
CVS Tags: HEAD
Changes since 1.2: +1 -5 lines
File MIME type: text/x-c++src
added menubar update samples.

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: SpikeView.cpp,v 1.2 2006/03/14 13:17:47 orrisroot Exp $ */
23
24 // SpikeView.cpp : implementation of the CSpikeView class
25 //
26
27 #include "stdafx.h"
28 #include "NeuroManager.h"
29 #include "SpikeView.h"
30
31 // CSpikeView
32
33 IMPLEMENT_DYNCREATE( CSpikeView, CView )
34
35 CSpikeView::CSpikeView()
36 {
37 EnableActiveAccessibility();
38 EnableAutomation();
39 }
40
41 CSpikeView::~CSpikeView()
42 {}
43
44 void CSpikeView::OnFinalRelease()
45 {
46 // When the last reference for an automation object is released
47 // OnFinalRelease is called. The base class will automatically
48 // deletes the object. Add additional cleanup required for your
49 // object before calling the base class.
50
51 CView::OnFinalRelease();
52 }
53
54 BEGIN_MESSAGE_MAP( CSpikeView, CView )
55 END_MESSAGE_MAP()
56
57 BEGIN_DISPATCH_MAP( CSpikeView, CView )
58 END_DISPATCH_MAP()
59
60 // Note: we add support for IID_INeuroManager to support typesafe binding
61 // from VBA. This IID must match the GUID that is attached to the
62 // dispinterface in the .IDL file.
63
64 // {64DD08D0-8554-4926-A8E7-F452792D3DA6}
65 static const IID IID_ISpikeView =
66 {
67 0x64DD08D0, 0x8554, 0x4926, { 0xA8, 0xE7, 0xF4, 0x52, 0x79, 0x2D, 0x3D, 0xA6 }
68 };
69
70 BEGIN_INTERFACE_MAP( CSpikeView, CView )
71 INTERFACE_PART( CSpikeView, IID_ISpikeView, Dispatch )
72 END_INTERFACE_MAP()
73
74
75 // CSpikeView drawing
76
77 void CSpikeView::OnDraw( CDC* pDC )
78 {
79 CDocument * pDoc = GetDocument();
80 // TODO: add draw code here
81 }
82
83
84 // CSpikeView diagnostics
85
86 #ifdef _DEBUG
87 void CSpikeView::AssertValid() const
88 {
89 CView::AssertValid();
90 }
91
92 void CSpikeView::Dump( CDumpContext& dc ) const
93 {
94 CView::Dump( dc );
95 }
96 #endif //_DEBUG

Back to OSDN">Back to OSDN
ViewVC Help
Powered by ViewVC 1.1.26