Develop and Download Open Source Software

Browse CVS Repository

Contents of /satellite/neuromanager/SpikeView.cpp

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


Revision 1.2 - (show annotations) (download) (as text)
Sat Feb 4 13:38:16 2006 UTC (18 years, 2 months ago) by orrisroot
Branch: MAIN
CVS Tags: HEAD
Changes since 1.1: +1 -1 lines
File MIME type: text/x-c++src
FILE REMOVED
moved main application sources to neuromanager directory.

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.1 2006/02/02 07:33:27 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
32 // CSpikeView
33
34 IMPLEMENT_DYNCREATE(CSpikeView, CView)
35
36 CSpikeView::CSpikeView()
37 {
38 EnableActiveAccessibility();
39 EnableAutomation();
40 }
41
42 CSpikeView::~CSpikeView()
43 {
44 }
45
46 void CSpikeView::OnFinalRelease()
47 {
48 // When the last reference for an automation object is released
49 // OnFinalRelease is called. The base class will automatically
50 // deletes the object. Add additional cleanup required for your
51 // object before calling the base class.
52
53 CView::OnFinalRelease();
54 }
55
56 BEGIN_MESSAGE_MAP(CSpikeView, CView)
57 END_MESSAGE_MAP()
58
59 BEGIN_DISPATCH_MAP(CSpikeView, CView)
60 END_DISPATCH_MAP()
61
62 // Note: we add support for IID_INeuroManager to support typesafe binding
63 // from VBA. This IID must match the GUID that is attached to the
64 // dispinterface in the .IDL file.
65
66 // {64DD08D0-8554-4926-A8E7-F452792D3DA6}
67 static const IID IID_ISpikeView =
68 { 0x64DD08D0, 0x8554, 0x4926, { 0xA8, 0xE7, 0xF4, 0x52, 0x79, 0x2D, 0x3D, 0xA6 } };
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
97
98
99 // CSpikeView message handlers

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