| 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: DataViewSplitter.cpp,v 1.9 2006/01/24 01:59:57 orrisroot Exp $ */ |
| 23 |
|
| 24 |
// DataViewSplitter.cpp : implementation of the CDataViewSplitter class |
| 25 |
|
| 26 |
#include "stdafx.h" |
| 27 |
#include "NeuroManager.h" |
| 28 |
#include "DataViewContext.h" |
| 29 |
#include "DataView.h" |
| 30 |
#include "DataViewProperties.h" |
| 31 |
#include "DataViewSplitter.h" |
| 32 |
#include ".\dataviewsplitter.h" |
| 33 |
|
| 34 |
|
| 35 |
// CDataViewSplitter |
| 36 |
|
| 37 |
IMPLEMENT_DYNAMIC( CDataViewSplitter, CSplitterWnd ) |
| 38 |
CDataViewSplitter::CDataViewSplitter() |
| 39 |
{} |
| 40 |
|
| 41 |
CDataViewSplitter::~CDataViewSplitter() |
| 42 |
{} |
| 43 |
|
| 44 |
|
| 45 |
BEGIN_MESSAGE_MAP( CDataViewSplitter, CSplitterWnd ) |
| 46 |
ON_WM_MOUSEMOVE() |
| 47 |
ON_WM_LBUTTONDOWN() |
| 48 |
END_MESSAGE_MAP() |
| 49 |
|
| 50 |
|
| 51 |
// user defined methods |
| 52 |
CScrollView *CDataViewSplitter::GetDataViewWindow() const |
| 53 |
{ |
| 54 |
CWnd * wnd = GetPane( 1, 0 ); // dataview |
| 55 |
if ( wnd == NULL || !wnd->IsKindOf( RUNTIME_CLASS( CDataView ) ) ) |
| 56 |
return NULL; |
| 57 |
return ( CScrollView* ) wnd; |
| 58 |
} |
| 59 |
|
| 60 |
CFormView *CDataViewSplitter::GetDataViewPropertiesWindow() const |
| 61 |
{ |
| 62 |
CWnd * wnd = GetPane( 0, 0 ); // properties |
| 63 |
if ( wnd == NULL || !wnd->IsKindOf( RUNTIME_CLASS( CDataViewProperties ) ) ) |
| 64 |
return NULL; |
| 65 |
return ( CFormView* ) wnd; |
| 66 |
} |
| 67 |
|
| 68 |
// CDataViewSplitter message handlers |
| 69 |
|
| 70 |
void CDataViewSplitter::OnMouseMove( UINT nFlags, CPoint point ) |
| 71 |
{ |
| 72 |
// disable to change mouse cursor |
| 73 |
// CSplitterWnd::OnMouseMove(nFlags, point); |
| 74 |
} |
| 75 |
|
| 76 |
void CDataViewSplitter::OnLButtonDown( UINT nFlags, CPoint point ) |
| 77 |
{ |
| 78 |
// disable to move splitter bar |
| 79 |
// CSplitterWnd::OnLButtonDown(nFlags, point); |
| 80 |
} |