Develop and Download Open Source Software

Browse CVS Repository

Contents of /satellite/neuromanager/neuromanager/DataViewBar.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: DataViewBar.cpp,v 1.14 2006/01/24 01:59:57 orrisroot Exp $ */
23
24 // DataViewBar.cpp : implementation of the CDataViewBar class
25 //
26
27 #include "stdafx.h"
28 #include "NeuroManager.h"
29
30 #include "DataViewContext.h"
31 #include "DataView.h"
32 #include "DataViewProperties.h"
33 #include "DataViewSplitter.h"
34 #include "DataViewBar.h"
35 #include ".\dataviewbar.h"
36
37 #ifdef _DEBUG
38 #define new DEBUG_NEW
39 #undef THIS_FILE
40 static char THIS_FILE[] = __FILE__;
41 #endif
42
43
44 #define DEFAULT_WIDTH 600
45 #define DEFAULT_HEIGHT 100
46
47 // CDataViewBar
48
49 CDataViewBar::CDataViewBar()
50 {}
51
52 CDataViewBar::~CDataViewBar()
53 {}
54
55
56 BEGIN_MESSAGE_MAP( CDataViewBar, baseCDataViewBar )
57 ON_WM_CREATE()
58 END_MESSAGE_MAP()
59
60
61 // CDataViewBar message handlers
62
63 int CDataViewBar::OnCreate( LPCREATESTRUCT lpCreateStruct )
64 {
65 if ( baseCDataViewBar::OnCreate( lpCreateStruct ) == -1 )
66 return -1;
67
68 SetSCBStyle( GetSCBStyle() | SCBS_SHOWEDGES | SCBS_SIZECHILD );
69
70 return 0;
71 }
72
73 BOOL CDataViewBar::CreateInnerViews( CCreateContext *pContext )
74 {
75 // create inner frame
76 if ( !m_spWndChild.CreateStatic( this, 2, 1, WS_CHILD | WS_VISIBLE, IDS_DATAVIEW ) )
77 return FALSE;
78
79 if ( !m_spWndChild.CreateView( 0, 0, RUNTIME_CLASS( CDataViewProperties ),
80 CSize( DEFAULT_WIDTH, 120 ), pContext ) )
81 return FALSE;
82 if ( !m_spWndChild.CreateView( 1, 0, RUNTIME_CLASS( CDataView ),
83 CSize( DEFAULT_WIDTH, DEFAULT_HEIGHT ), pContext ) )
84 return FALSE;
85 return TRUE;
86
87 }

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