Develop and Download Open Source Software

Browse CVS Repository

Contents of /satellite/neuromanager/neuromanager/SpikeViewSplitter.cpp

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


Revision 1.1 - (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
File MIME type: text/x-c++src
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: SpikeViewSplitter.cpp,v 1.1 2006/02/02 07:33:27 orrisroot Exp $ */
23
24 // SpikeViewSplitter.cpp : implementation of the CSpikeViewSplitter class
25
26 #include "stdafx.h"
27 #include "NeuroManager.h"
28 #include "SpikeView.h"
29 #include "SpikeViewProperties.h"
30 #include "SpikeViewSplitter.h"
31 #include ".\spikeviewsplitter.h"
32
33
34 // CSpikeViewSplitter
35
36 IMPLEMENT_DYNAMIC( CSpikeViewSplitter, CSplitterWnd )
37 CSpikeViewSplitter::CSpikeViewSplitter()
38 {}
39
40 CSpikeViewSplitter::~CSpikeViewSplitter()
41 {}
42
43
44 BEGIN_MESSAGE_MAP( CSpikeViewSplitter, CSplitterWnd )
45 ON_WM_MOUSEMOVE()
46 ON_WM_LBUTTONDOWN()
47 END_MESSAGE_MAP()
48
49
50 // user defined methods
51 CView *CSpikeViewSplitter::GetSpikeViewWindow() const
52 {
53 CWnd * wnd = GetPane( 0, 0 ); // spikeview
54 if ( wnd == NULL || !wnd->IsKindOf( RUNTIME_CLASS( CSpikeView ) ) )
55 return NULL;
56 return ( CView* ) wnd;
57 }
58
59 CFormView *CSpikeViewSplitter::GetSpikeViewPropertiesWindow() const
60 {
61 CWnd * wnd = GetPane( 0, 1 ); // properties
62 if ( wnd == NULL || !wnd->IsKindOf( RUNTIME_CLASS( CSpikeViewProperties ) ) )
63 return NULL;
64 return ( CFormView* ) wnd;
65 }
66
67 // CSpikeViewSplitter message handlers
68
69 void CSpikeViewSplitter::OnMouseMove( UINT nFlags, CPoint point )
70 {
71 // disable to change mouse cursor
72 // CSplitterWnd::OnMouseMove(nFlags, point);
73 }
74
75 void CSpikeViewSplitter::OnLButtonDown( UINT nFlags, CPoint point )
76 {
77 // disable to move splitter bar
78 // CSplitterWnd::OnLButtonDown(nFlags, point);
79 }

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