]> Creatis software - creaImageIO.git/blob - src2/creaImageIOWxDumpPanel.h
For a given file, display all dicom tags.
[creaImageIO.git] / src2 / 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     /// Display in a control Text all dicom tags
33         void Print();
34
35         /// wxEvent to save Dicom Tags in a text file
36          void SaveInfos(wxCommandEvent& event);
37
38    /// Parent DialogBox
39         wxDialog* dialog;
40
41         /// Icons list
42         wxImageList *mIcon;
43
44         /// ControlText to display tags
45         wxTextCtrl *DumpText;
46
47         /// Dicom file to display
48         std::string filename;
49
50     DECLARE_EVENT_TABLE()
51
52   }; // class WxEditFieldsPanel
53   //=====================================================================
54
55   
56 } // EO namespace creaImageIO
57
58
59 #endif // USE_WIDGETS
60 // EOF
61 #endif
62