]> Creatis software - creaMaracasVisu.git/blob - lib/maracasVisuLib/src/interface/wxWindows/wxMaracasDataBrowser.h
creaMaracasVisu Library
[creaMaracasVisu.git] / lib / maracasVisuLib / src / interface / wxWindows / wxMaracasDataBrowser.h
1 /*=========================================================================
2
3   Program:   wxMaracas
4   Module:    $RCSfile: wxMaracasDataBrowser.h,v $
5   Language:  C++
6   Date:      $Date: 2008/10/31 16:32:09 $
7   Version:   $Revision: 1.1 $
8
9   Copyright: (c) 2002, 2003
10   License:
11   
12      This software is distributed WITHOUT ANY WARRANTY; without even 
13      the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR 
14      PURPOSE.  See the above copyright notice for more information.
15
16 =========================================================================*/
17
18 #ifndef __WX__DATA__BROWSER__
19 #define __WX__DATA__BROWSER__
20
21 #include <wx/wx.h>
22 #include <wx/panel.h>
23 #include <wx/listctrl.h>
24 #include <wx/splitter.h>
25
26 #include <kernel/marInterface.h>
27
28 /**
29  * \brief Panel class showing patient name etc...
30  */
31 class wxMaracasDataBrowser : public wxPanel
32 {
33 public:
34     wxMaracasDataBrowser( wxFrame* parent, marInterface* mar, wxWindowID id = -1 );
35
36     void LoadData( );
37         void CreateDicomFile( );
38
39         void LoadDicomData(int type, wxString msg);
40         void OnChangeDir( wxCommandEvent& event );
41         void OnChangeDicomFile( wxCommandEvent& event );
42         void OnCreateDicomFile( wxCommandEvent& event );
43     void OnStudySelected( wxListEvent& event );
44     void OnSerieSelected( wxListEvent& event );
45     void OnActivated( wxListEvent& event );
46
47 private:
48
49         bool                            _parseDir;
50
51     wxSplitterWindow    *_splitter;
52     wxListCtrl                  *_studies;
53     wxListCtrl                  *_series;
54     marInterface                *_mar;
55     wxFrame                             *frame_parent;
56
57     DECLARE_EVENT_TABLE( );
58
59 };
60
61 enum
62 {
63     ID_STUDIES_LIST                             = 0x2000,
64     ID_SERIES_LIST                              = 0x2001,
65     ID_BUTTON_CHANGEDIR                 = 0x2002,
66     ID_BUTTON_CHANGEDICOMFILE   = 0x2003,
67     ID_BUTTON_CREATEDICOMFILE   = 0x2004,
68 };
69
70 #endif // __WX__DATA__BROWSER__