]> Creatis software - creaImageIO.git/blob - src/creaImageIOWxDumpPanel.h
474892cd1ed58403d72198d62f0da681ca9921f9
[creaImageIO.git] / src / creaImageIOWxDumpPanel.h
1 #ifndef __creaImageIOWxDumpPanel_h_INCLUDED__
2 #define __creaImageIOWxDumpPanel_h_INCLUDED__
3
4 #ifdef USE_WXWIDGETS
5 #include <creaWx.h>
6 #include <creaImageIOWxGimmickView.h>
7
8 #define DUMP_SAVE_ID 1800
9
10
11 namespace creaImageIO
12 {
13   /**
14    * \ingroup GUI
15    */
16   //=====================================================================
17  //=====================================================================
18   /// Display all dicom tags from a given DICOM file
19         class WxDumpPanel : public wxDialog
20   {
21   public:
22
23     /// Constructor
24         WxDumpPanel(wxWindow *parent, std::string i_filename);
25     
26         /// Destructor
27     ~WxDumpPanel();
28         
29         
30   private :
31
32          const std::string clean(const std::string &i_line);
33     /// Display in a control Text all dicom tags
34         void Print();
35
36         /// wxEvent to save Dicom Tags in a text file
37          void SaveInfos(wxCommandEvent& event);
38
39    /// Parent DialogBox
40         wxDialog* dialog;
41
42         /// Icons list
43         wxImageList *mIcon;
44
45         /// ControlText to display tags
46         wxTextCtrl *DumpText;
47
48         /// Dicom file to display
49         std::string filename;
50
51     DECLARE_EVENT_TABLE()
52
53   }; // class WxEditFieldsPanel
54   //=====================================================================
55
56   
57 } // EO namespace creaImageIO
58
59
60 #endif // USE_WIDGETS
61 // EOF
62 #endif
63