]> Creatis software - creaMaracasVisu.git/blob - lib/maracasVisuLib/src/interface/wxWindows/wxMaracasFrame.h
ef4520ea8c47ff024479551aefef62432aa720a5
[creaMaracasVisu.git] / lib / maracasVisuLib / src / interface / wxWindows / wxMaracasFrame.h
1 /*=========================================================================
2
3   Program:   wxMaracas
4   Module:    $RCSfile: wxMaracasFrame.h,v $
5   Language:  C++
6   Date:      $Date: 2008/10/31 16:32:10 $
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__MARACAS__FRAME__HXX__
19 #define __WX__MARACAS__FRAME__HXX__
20
21 #include <wx/wx.h>
22 #include <wx/frame.h>
23 #include "marTypes.h"
24 #include "wxMaracas3DBrowser.h"
25 #include "wxMaracasQuantification.h"
26 #include <kernel/marSimpleDicom.h>
27
28 class marInterface;
29
30 /**
31  * \brief Principal Frame of the application 
32  * MARACAS: MAgnetic Resonance Angiography Computer ASsisted analysis
33  *
34  */
35
36 class MAR_INTERFACEWX_EXPORT wxMaracasFrame: public wxFrame
37 {
38 public:
39
40     wxMaracasFrame( wxFrame *parent, wxWindowID id = -1,
41             marInterface* mar = NULL, marSimpleDicom *simpleDicom=NULL, char *dictionaryFileName=NULL,
42             const wxString& title = wxT("MARACAS: MAgnetic Resonance Angiography Computer ASsisted analysis"),
43             const wxPoint& pos = wxDefaultPosition,
44             const wxSize& size = wxDefaultSize,
45             long style = wxDEFAULT_FRAME_STYLE);
46         
47         void OnDeleteAxis(wxCommandEvent &event);
48         void OnNewAxis(wxCommandEvent &event);
49         
50     void RecreateToolbar( );
51
52         void OnAboutCreatis( wxCommandEvent& event );
53     void OnQuit( wxCloseEvent& event );
54 // PS ->     void OnLoadPatientData( wxCommandEvent& event );
55     void OnParameters( wxCommandEvent& event );
56 // PS ->     void OnLoadImageData( wxCommandEvent& event );
57     void OnStartExperiment( wxCommandEvent& event );
58 // PS ->     void OnHelp (wxCommandEvent& event );
59     void OnQuant (wxCommandEvent& event );
60
61         void OnRegenerateAll( wxCommandEvent& event );
62         void OnRegenerateSplineAxe(     wxCommandEvent& event );
63         void OnCleanContours( wxCommandEvent& event );
64         void OnRegenerateSignal( wxCommandEvent& event );
65
66
67
68         wxMaracas3DBrowser*                     Getwxmaracas3dbrowser()                 { return _wxmaracas3dbrowser;           }
69         wxMaracasQuantification*        Getwxmaracasquantification()    { return _wxmaracasquantification;      }
70
71 private:
72     wxPanel                                     *_actual_panel;
73     wxGauge                                     *_progressGauge;
74     marInterface                        *_mar;
75         marSimpleDicom                  *_marSimpleDicom;
76
77         wxMaracas3DBrowser              *_wxmaracas3dbrowser;
78         wxMaracasQuantification *_wxmaracasquantification;
79
80     DECLARE_EVENT_TABLE( );
81
82         void DeletePanels();
83 };
84
85 static const long TOOLBAR_STYLE = wxNO_BORDER | wxTB_FLAT | wxTB_DOCKABLE | wxTB_HORIZONTAL;
86
87 enum
88 {
89     //! Toolbar & menu buttons
90     ID_TOOLBAR = 200,
91     ID_TOOLBAR_DATA_BROWSER,
92     ID_TOOLBAR_PARAMETERS,
93     ID_TOOLBAR_IMAGE_BROWSER,
94     ID_TOOLBAR_3D_BROWSER,
95     ID_TOOLBAR_PLANS,
96     ID_TOOLBAR_QUANT,
97     ID_TOOLBAR_ROTATE,
98     ID_TOOLBAR_BRIGHT,
99     ID_TOOLBAR_PAN,
100     ID_TOOLBAR_ZOOM,
101     ID_TOOLBAR_CLEAR,
102     ID_TOOLBAR_INTENSITY,
103     ID_TOOLBAR_HELP,
104 };
105
106 #endif // __WX__MARACAS__FRAME__HXX__